:root {
    --navy: #073b4c;
    --navy-dark: #042b38;
    --teal: #087e7b;
    --green: #17a673;
    --green-soft: #e9f8f2;
    --blue: #3977e5;
    --violet: #805ad5;
    --orange: #f59e42;
    --red: #e65353;
    --ink: #122832;
    --muted: #65777f;
    --line: #e4eceb;
    --bg: #f5f8f7;
    --white: #ffffff;
    --sidebar: 260px;
    --shadow: 0 1px 2px rgba(11, 43, 51, .03), 0 10px 28px rgba(11, 43, 51, .055);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { transition: .18s ease; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }

/* Sidebar */
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); }
.brand { height: 76px; padding: 7px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.brand-logo { width: 100%; max-width: 205px; height: 60px; display: block; object-fit: contain; object-position: left center; }
.brand-mark { position: relative; width: 41px; height: 41px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, var(--teal), var(--navy)); box-shadow: 0 8px 20px rgba(5, 99, 103, .22); }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; border-radius: 10px; background: #fff; }
.brand-mark::before { width: 22px; height: 7px; transform: rotate(-45deg); }
.brand-mark::after { width: 7px; height: 22px; transform: rotate(-45deg); }
.brand-mark i, .brand-mark b { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #84e2c1; }
.brand-mark i { left: 8px; bottom: 8px; }
.brand-mark b { right: 8px; top: 8px; }
.brand > span:last-child { line-height: 1; }
.brand strong { display: block; color: var(--navy); font-size: 21px; font-weight: 850; letter-spacing: .08em; }
.brand small { display: block; margin-top: 6px; color: #8c9b9f; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.workspace-switch { margin: 15px 14px 2px; padding: 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; cursor: pointer; }
.workspace-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--teal); }
.workspace-icon svg { width: 17px; }
.workspace-switch > div { min-width: 0; flex: 1; line-height: 1.35; }
.workspace-switch b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.workspace-switch small i, .environment i, .map-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(23, 166, 115, .12); }
.workspace-switch > svg { width: 14px; color: #9aa9ad; }
.nav { padding: 11px 12px 18px; overflow: auto; flex: 1; scrollbar-width: thin; }
.nav-label { display: block; padding: 16px 12px 6px; color: #9aa8ad; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { height: 42px; margin: 2px 0; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 9px; color: #5d6f76; font-size: 12px; font-weight: 580; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #f4f8f7; color: var(--navy); }
.nav-item.active { background: #e9f7f3; color: var(--teal); font-weight: 750; }
.nav-item em { margin-left: auto; padding: 2px 7px; border-radius: 10px; background: #e6f4f1; color: var(--teal); font-size: 9px; font-style: normal; font-weight: 800; }
.nav-expand summary { list-style: none; cursor: pointer; }
.nav-expand summary::-webkit-details-marker { display: none; }
.nav-expand summary > span:first-of-type { min-width: 0; flex: 1; }
.nav-expand .nav-item em { margin-left: 0; }
.nav-chevron { width: 17px; height: 17px; margin-left: 0; display: grid; place-items: center; flex: 0 0 auto !important; transition: transform .2s; }
.nav-chevron svg { width: 13px; }
.nav-expand[open] .nav-chevron { transform: rotate(90deg); }
.nav-submenu { margin: 2px 0 7px 26px; padding-left: 13px; border-left: 1px solid #dfe9e7; }
.nav-submenu a { min-height: 34px; padding: 6px 9px; display: flex; align-items: center; gap: 8px; border-radius: 8px; color: #718187; font-size: 10px; }
.nav-submenu a:hover, .nav-submenu a.active { background: #eff8f5; color: var(--teal); font-weight: 700; }
.nav-submenu a i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #b9c9c6; }
.nav-submenu a.active i { background: var(--teal); box-shadow: 0 0 0 3px rgba(8,126,123,.1); }
.sidebar-user { position: relative; padding: 15px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.avatar, .top-avatar { display: grid; place-items: center; border: 0; border-radius: 10px; background: linear-gradient(135deg, #0e9588, #076171); color: #fff; font-weight: 800; cursor: pointer; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; font-size: 11px; }
.sidebar-user > div:nth-child(2) { min-width: 0; flex: 1; line-height: 1.35; }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 11px; }
.sidebar-user span { color: var(--muted); font-size: 8px; }
.icon-button { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #77898f; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #f7faf9; color: var(--navy); }
.account-menu { position: absolute; z-index: 80; right: 12px; bottom: 65px; width: 215px; padding: 9px; display: none; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 50px rgba(4, 45, 58, .16); }
.account-menu.open { display: block; animation: pop .18s ease; }
.account-menu > small, .account-menu > b { display: block; padding: 0 8px; }
.account-menu > small { color: var(--muted); font-size: 8px; }
.account-menu > b { padding-bottom: 9px; overflow: hidden; border-bottom: 1px solid var(--line); font-size: 10px; text-overflow: ellipsis; }
.account-menu a { padding: 9px 8px; display: flex; align-items: center; gap: 9px; border-radius: 8px; font-size: 10px; }
.account-menu a:hover { background: var(--bg); }
.account-menu svg { width: 15px; }

/* Topbar and page shell */
.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; height: 76px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.menu-button { display: none; }
.global-search { width: min(440px, 42vw); height: 40px; padding: 0 10px 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; color: #8a999e; cursor: pointer; }
.global-search svg { width: 17px; }
.global-search span { flex: 1; text-align: left; font-size: 11px; }
kbd { padding: 3px 6px; border: 1px solid #dde6e4; border-radius: 5px; background: white; color: #86969b; font: 8px inherit; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.environment { padding: 7px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #d7ebe5; border-radius: 9px; background: #f1faf7; color: #28735d; font-size: 9px; font-weight: 700; }
.notification { position: relative; border-color: var(--line); }
.notification > i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--red); box-sizing: content-box; }
.top-avatar { width: 38px; height: 38px; font-size: 10px; }
.page-content { width: min(1500px, 100%); margin: 0 auto; padding: 28px 30px 50px; }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.breadcrumb { margin: 0 0 8px; color: #9aa8ad; font-size: 9px; }
.breadcrumb span { color: var(--teal); font-weight: 700; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; font-size: 10px; font-weight: 750; cursor: pointer; }
.primary-button { border: 1px solid var(--teal); background: var(--teal); color: white; box-shadow: 0 7px 18px rgba(8, 126, 123, .17); }
.primary-button:hover { border-color: #066b69; background: #066b69; transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line); background: white; color: #51666d; }
.secondary-button:hover { border-color: #cbd9d7; background: #fbfdfc; }
.primary-button svg, .secondary-button svg { width: 15px; }
.secondary-button.icon-only { width: 38px; padding: 0; }
.full { width: 100%; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.panel-head { padding: 19px 20px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head h2 { margin: 0; color: var(--navy); font-size: 13px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.panel-head > a { display: flex; align-items: center; gap: 6px; color: var(--teal); font-size: 9px; font-weight: 750; }
.panel-head > a svg { width: 13px; }

/* Dashboard */
.stats-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.stat-icon svg { width: 18px; }
.stat-icon.green, .attention-icon.green { background: #e8f8f1; color: var(--green); }
.stat-icon.blue, .attention-icon.blue { background: #edf3fe; color: var(--blue); }
.stat-icon.violet, .attention-icon.violet { background: #f2edfc; color: var(--violet); }
.stat-icon.orange, .attention-icon.orange, .stat-icon.red { background: #fff3e7; color: #e7882f; }
.stat-icon.red { background: #feeeee; color: var(--red); }
.trend { padding: 4px 7px; border-radius: 7px; background: #edf8f3; color: var(--green); font-size: 8px; font-weight: 800; }
.trend.warning { background: #fff3e7; color: #cf7322; }
.stat-card > p { margin: 15px 0 3px; color: var(--muted); font-size: 10px; }
.stat-card > strong { display: block; color: var(--navy); font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.stat-card > small { color: #9aabad; font-size: 8px; }
.dashboard-grid { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 18px; }
.revenue-panel, .channel-panel { min-height: 340px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 8px; }
.legend span, .channel-list span { display: flex; align-items: center; gap: 6px; }
.legend i, .channel-list i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.retail { background: var(--teal); }
.wholesale { background: #9bd9c8; }
.revenue-summary { padding: 4px 20px 6px; display: flex; align-items: end; justify-content: space-between; }
.revenue-summary small { display: block; color: var(--muted); font-size: 8px; }
.revenue-summary strong { color: var(--navy); font-size: 20px; }
.revenue-summary > span { padding: 4px 7px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 700; }
.chart-wrap { height: 205px; padding: 13px 20px 18px; display: flex; }
.chart-y { padding: 0 8px 24px 0; display: flex; flex-direction: column; justify-content: space-between; color: #a5b1b4; font-size: 7px; }
.bar-chart { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf2f1 25%); }
.bar-chart > div { position: relative; width: 11%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar-chart .bar { width: 9px; min-height: 4px; border-radius: 4px 4px 0 0; transition: .25s; }
.bar-chart .bar.zero { min-height: 0; }
.bar-chart > div:hover .bar { filter: brightness(.92); }
.bar-chart small { position: absolute; bottom: -19px; color: #8fa0a4; font-size: 7px; }
.donut { width: 155px; height: 155px; margin: 10px auto 18px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 62%, #9bd9c8 62% 100%); }
.donut::before { width: 108px; height: 108px; content: ""; border-radius: 50%; background: white; }
.donut > div { position: absolute; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { color: var(--navy); font-size: 22px; }
.donut small { color: var(--muted); font-size: 8px; }
.channel-list b small { display: inline; margin-left: 3px; color: var(--muted); font-size: 7px; font-weight: 600; }
.channel-list { padding: 0 24px; }
.channel-list p { margin: 10px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.channel-list b { color: var(--navy); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 10px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafcfb; color: #8a999e; font-size: 8px; font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 13px 15px; border-bottom: 1px solid #edf2f1; color: #64767c; font-size: 9px; }
td b { color: var(--ink); }
tbody tr:hover { background: #fbfdfc; }
.channel-badge { padding: 4px 7px; border-radius: 6px; background: #eef5f4; color: #516c70; font-size: 8px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 12px; background: #edf4fa; color: #4e79a7; font-size: 8px; font-weight: 700; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.confirmed, .status.delivered { background: #eaf8f2; color: #258261; }
.status.packed { background: #f0ecfb; color: #7753ae; }
.status.warning { background: #fff2e5; color: #c6752a; }
.attention-panel { padding-bottom: 8px; }
.attention-panel > a { margin: 0 12px; padding: 11px 8px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #edf2f1; border-radius: 9px; }
.attention-panel > a:hover { background: #f8fbfa; }
.attention-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.attention-icon svg { width: 16px; }
.attention-panel > a > div { min-width: 0; flex: 1; }
.attention-panel b, .attention-panel small { display: block; }
.attention-panel b { font-size: 9px; }
.attention-panel small { color: var(--muted); font-size: 8px; }
.attention-panel em { color: var(--teal); font-size: 8px; font-style: normal; font-weight: 750; }
.dashboard-empty-row { height: 110px; color: var(--muted); text-align: center; }

/* Workspaces and data tables */
.mini-stats, .module-stats { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.module-stats { grid-template-columns: repeat(3, 1fr); }
.mini-stats article, .module-stats article { padding: 14px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.mini-stats article > div, .module-stats article > div { flex: 1; }
.mini-stats small, .mini-stats b, .module-stats small, .module-stats b { display: block; }
.mini-stats small, .module-stats small { color: var(--muted); font-size: 8px; }
.mini-stats b, .module-stats b { color: var(--navy); font-size: 17px; }
.mini-stats em, .module-stats em { color: var(--green); font-size: 7px; font-style: normal; }
.danger-text { color: var(--red) !important; }
.workspace-panel { overflow: hidden; }
.workspace-toolbar { min-height: 64px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; }
.tabs button { padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.tabs button:hover, .tabs button.active { background: #edf7f4; color: var(--teal); font-weight: 700; }
.tabs button span { margin-left: 4px; padding: 2px 5px; border-radius: 8px; background: #edf2f1; font-size: 7px; }
.toolbar-actions { display: flex; gap: 7px; }
.table-search { width: 220px; height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.table-search svg { width: 15px; color: #94a2a6; }
.table-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 9px; }
.product-cell { display: flex; align-items: center; gap: 10px; }
.product-thumb { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; }
.product-thumb svg { width: 17px; }
.tone-blue { background: #edf3fe; color: var(--blue); }
.tone-teal { background: #e8f7f4; color: var(--teal); }
.tone-mint { background: #e8f8f1; color: var(--green); }
.tone-orange { background: #fff2e6; color: var(--orange); }
.tone-violet { background: #f1edfb; color: var(--violet); }
.product-cell b, .product-cell small { display: block; }
.product-cell small { color: #92a0a5; font-size: 7px; }
code { padding: 3px 5px; border-radius: 5px; background: #f2f6f5; color: #4d686e; font: 8px ui-monospace, SFMono-Regular, monospace; }
.table-footer { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.table-footer > div { display: flex; gap: 3px; }
.table-footer > div button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 8px; cursor: pointer; }
.table-footer > div button.active { border-color: var(--teal); background: var(--teal); color: white; }
.generic-empty { min-height: 430px; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.generic-empty > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--green-soft); color: var(--teal); }
.generic-empty h2 { margin: 17px 0 5px; color: var(--navy); font-size: 16px; }
.generic-empty p { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.module-data-stats { grid-template-columns: repeat(4, 1fr); }
.module-data-stats article { min-width: 0; }
.module-data-stats article > div { min-width: 0; }
.module-data-stats em { max-width: 82px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.module-workspace { min-height: 430px; }
.module-table-wrap { min-height: 310px; }
.module-table td { height: 62px; }
.module-primary-cell { display: flex; align-items: center; gap: 9px; }
.module-primary-cell b { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.module-row-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }
.module-row-icon svg { width: 15px; }

/* Media */
.media-overview-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.media-overview-grid article { min-width: 0; padding: 15px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.media-overview-grid article > div { min-width: 0; }
.media-overview-grid small, .media-overview-grid b, .media-overview-grid em { display: block; }
.media-overview-grid small { color: var(--muted); font-size: 8px; }
.media-overview-grid b { margin: 2px 0; overflow: hidden; color: var(--navy); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.media-overview-grid em { color: var(--green); font-size: 7px; font-style: normal; }
.media-summary-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.media-summary-icon svg { width: 18px; }
.media-summary-icon.mint { background: #e8f8f1; color: var(--green); }
.media-summary-icon.blue { background: #edf3fe; color: var(--blue); }
.media-summary-icon.violet { background: #f2edfc; color: var(--violet); }
.media-summary-icon.orange { background: #fff2e6; color: var(--orange); }
.media-policy-card { background: linear-gradient(140deg, #073b4c, #102f3a) !important; }
.media-policy-card small, .media-policy-card em { color: #aec5c8; }
.media-policy-card b { color: white; }
.storage-banner { margin-bottom: 18px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border: 1px solid #d8ebe5; border-radius: 14px; background: linear-gradient(110deg, #f3fbf8, #fff); }
.storage-banner > div:first-child { display: flex; align-items: center; gap: 11px; }
.storage-banner > div:first-child > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #dff3ec; color: var(--teal); }
.storage-banner b, .storage-banner small { display: block; }
.storage-banner b { font-size: 10px; }
.storage-banner small { color: var(--muted); font-size: 8px; }
.storage-meter { height: 6px; overflow: hidden; border-radius: 5px; background: #e7efed; }
.storage-meter i { width: 34%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #38b995); }
.storage-banner > button { border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 750; cursor: pointer; }
.media-panel { overflow: hidden; }
.media-filter-bar { margin: 12px 14px; padding: 10px; display: grid; grid-template-columns: minmax(260px, 1fr) 170px auto auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; }
.media-list-search { height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #dce7e5; border-radius: 9px; background: white; }
.media-list-search svg { width: 16px; flex: 0 0 auto; color: #91a1a5; }
.media-list-search input { height: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
.media-filter-bar > select { height: 40px; margin: 0; }
.media-filter-bar > button { height: 40px; }
.media-shown-count { padding: 0 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.media-shown-count b { color: var(--ink); }
.media-table-wrap { min-height: 390px; }
.media-list-table { table-layout: fixed; }
.media-list-table th:first-child { width: 33%; }
.media-list-table th:nth-child(2) { width: 11%; }
.media-list-table th:nth-child(3) { width: 12%; }
.media-list-table th:nth-child(4) { width: 17%; }
.media-list-table th:nth-child(5) { width: 12%; }
.media-list-table th:last-child { width: 15%; }
.media-list-table td { height: 76px; }
.media-file-name { min-width: 0; }
.media-file-name b, .media-file-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-file-name b { max-width: 390px; font-size: 9px; }
.media-file-name small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.media-list-thumb { position: relative; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(7,59,76,.07); border-radius: 11px; }
.media-list-thumb img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; background: #f4f8f7; }
.media-list-thumb::after { position: absolute; right: -10px; bottom: -12px; width: 38px; height: 38px; content: ""; border-radius: 50%; background: rgba(255,255,255,.52); }
.media-list-thumb svg { width: 20px; opacity: .74; }
.media-list-thumb > span { position: absolute; right: 5px; bottom: 3px; z-index: 1; color: rgba(7,59,76,.56); font-size: 6px; font-weight: 850; }
.media-list-thumb.mint { background: linear-gradient(145deg, #e4f6ee, #c9ebdf); color: #258568; }
.media-list-thumb.blue { background: linear-gradient(145deg, #e8f1fd, #cbdcf7); color: #4a78bd; }
.media-list-thumb.orange { background: linear-gradient(145deg, #fff2e5, #f8d7b8); color: #d88439; }
.media-list-thumb.violet { background: linear-gradient(145deg, #f0ebfb, #ddcff6); color: #7c5daf; }
.media-list-thumb.rose { background: linear-gradient(145deg, #fbecef, #f2cfd8); color: #ba6478; }
.media-list-thumb.cyan { background: linear-gradient(145deg, #e6f7f7, #c4e9e9); color: #278a91; }
.webp-badge { padding: 5px 8px; display: inline-flex; border-radius: 12px; background: #e9f8f1; color: #198260; font-size: 7px; font-weight: 850; }
.directory-badge { padding: 5px 8px; font-size: 8px; }
.media-size { color: #50676d; font-size: 8px; }
.media-actions-heading, .media-actions-cell { text-align: center; }
.media-actions-cell .icon-button { margin: auto; }
.media-row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.media-row-actions button { min-height: 29px; padding: 0 8px; border-radius: 7px; background: white; font-size: 8px; font-weight: 750; cursor: pointer; }
.media-action-edit { border: 1px solid #cfe3de; color: var(--teal); }
.media-action-edit:hover { border-color: var(--teal); background: var(--green-soft); }
.media-action-delete { border: 1px solid #f0d2d2; color: var(--red); }
.media-action-delete:hover { border-color: var(--red); background: #fff4f4; }
.media-edit-drawer { width: min(560px, 95vw); }
.media-delete-card { width: min(430px, 92vw); padding: 28px; text-align: center; }
.media-delete-icon { width: 54px; height: 54px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 16px; background: #fff0f0; color: var(--red); }
.media-delete-icon svg { width: 24px; }
.media-delete-card h2 { margin: 0; color: var(--navy); font-size: 19px; }
.media-delete-card > p { margin: 8px auto 18px; max-width: 340px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.media-delete-confirm { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--red); color: white; font-size: 9px; font-weight: 750; cursor: pointer; }
.media-delete-confirm:disabled { opacity: .65; cursor: wait; }
.media-empty-state { min-height: 270px; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); }
.media-empty-state:not([hidden]) { display: flex; }
.media-empty-state svg { width: 28px; margin-bottom: 8px; color: #a9b7ba; }
.media-empty-state b { color: var(--ink); font-size: 10px; }
.media-empty-state small { margin-top: 3px; font-size: 8px; }
.webp-policy-note { margin-bottom: 14px; padding: 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfe7df; border-radius: 10px; background: #f1faf6; }
.webp-policy-note > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #dcf2e9; color: var(--teal); }
.webp-policy-note svg { width: 15px; }
.webp-policy-note b, .webp-policy-note small { display: block; }
.webp-policy-note b { font-size: 9px; }
.webp-policy-note small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.media-upload-fields { margin-top: 15px; }
.media-upload-options { margin: 11px 0 0; }
.upload-preview.error { background: #feeeee; color: var(--red); }
.media-grid { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; transition: .2s; }
.media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.media-preview { position: relative; height: 145px; display: grid; place-items: center; background: #edf7f4; color: var(--teal); }
.media-preview.mint { background: linear-gradient(145deg, #e4f6ee, #c9ebdf); color: #258568; }
.media-preview.blue { background: linear-gradient(145deg, #e8f1fd, #cbdcf7); color: #4a78bd; }
.media-preview.orange { background: linear-gradient(145deg, #fff2e5, #f8d7b8); color: #d88439; }
.media-preview.violet { background: linear-gradient(145deg, #f0ebfb, #ddcff6); color: #7c5daf; }
.media-preview.rose { background: linear-gradient(145deg, #fbecef, #f2cfd8); color: #ba6478; }
.media-preview.cyan { background: linear-gradient(145deg, #e6f7f7, #c4e9e9); color: #278a91; }
.media-preview > span svg { width: 38px; height: 38px; opacity: .7; }
.media-preview > button { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.82); }
.media-preview > label { position: absolute; top: 10px; left: 10px; }
.media-preview > label input { display: none; }
.media-preview > label i { width: 17px; height: 17px; display: block; border: 1px solid rgba(7,59,76,.25); border-radius: 5px; background: rgba(255,255,255,.8); }
.media-preview > label input:checked + i { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 4px white; }
.media-meta { padding: 12px; }
.media-meta b { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.media-meta p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.media-meta span { color: var(--teal); }

/* Zones */
.zone-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .55fr); gap: 18px; }
.zone-map-panel, .zone-health { overflow: hidden; }
.map-live { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 8px; font-weight: 700; }
.zone-map { position: relative; height: 370px; overflow: hidden; background: #eef3f0; }
.google-zone-map { background: #e8efec; }
.google-zone-map-canvas, .google-zone-map > iframe { width: 100%; height: 100%; display: block; border: 0; }
.google-map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(238,243,240,.88); color: var(--navy); font-size: 9px; font-weight: 750; }
.google-map-loading span { width: 17px; height: 17px; border: 2px solid #c8d9d4; border-top-color: var(--teal); border-radius: 50%; animation: mapSpin .7s linear infinite; }
.google-map-key-note { position: absolute; top: 10px; right: 10px; padding: 6px 9px; border: 1px solid rgba(210,224,220,.9); border-radius: 7px; background: rgba(255,255,255,.92); color: #657980; font-size: 7px; box-shadow: 0 4px 13px rgba(7,59,76,.08); }
.zone-map-switcher { position: absolute; z-index: 3; right: 12px; bottom: 12px; left: 12px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.zone-map-switcher::-webkit-scrollbar { display: none; }
.zone-map-filter { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 1px solid rgba(210,224,220,.95); border-radius: 8px; background: rgba(255,255,255,.94); color: #50656d; font-size: 8px; font-weight: 750; box-shadow: 0 5px 15px rgba(7,59,76,.11); cursor: pointer; pointer-events: auto; }
.zone-map-filter:hover, .zone-map-filter.active { border-color: var(--teal); background: var(--navy); color: white; }
.zone-map-filter i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.zone-map-filter i.teal { background: var(--teal); }.zone-map-filter i.blue { background: var(--blue); }.zone-map-filter i.violet { background: var(--violet); }.zone-map-filter i.orange { background: var(--orange); }
.map-grid { position: absolute; inset: 0; opacity: .65; background-image: linear-gradient(#dae5e1 1px, transparent 1px), linear-gradient(90deg, #dae5e1 1px, transparent 1px); background-size: 32px 32px; transform: rotate(8deg) scale(1.2); }
.road { position: absolute; height: 12px; border: 3px solid white; background: #d4ddda; transform-origin: center; }
.road-one { width: 130%; top: 45%; left: -15%; transform: rotate(-18deg); }
.road-two { width: 110%; top: 51%; left: -5%; transform: rotate(49deg); }
.river { position: absolute; width: 45px; height: 150%; top: -25%; right: 19%; border-radius: 50%; background: #c8e8e7; transform: rotate(12deg); }
.zone-shape { position: absolute; display: grid; place-items: center; border: 2px solid rgba(8,126,123,.58); border-radius: 48% 42% 52% 44%; background: rgba(36,176,143,.18); color: #156b62; font-size: 8px; font-weight: 800; }
.zone-shape.central { width: 120px; height: 90px; top: 35%; left: 42%; }
.zone-shape.south { width: 155px; height: 105px; bottom: 9%; left: 44%; border-color: rgba(57,119,229,.55); background: rgba(57,119,229,.13); color: #456ca8; }
.zone-shape.west { width: 140px; height: 115px; top: 34%; left: 13%; border-color: rgba(128,90,213,.52); background: rgba(128,90,213,.12); color: #7659ad; }
.zone-shape.north { width: 130px; height: 100px; top: 5%; left: 41%; border-color: rgba(245,158,66,.6); background: rgba(245,158,66,.14); color: #b66d28; }
.map-pin { position: absolute; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 0; background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(7,59,76,.28); transform: rotate(-45deg); }
.map-pin svg { width: 14px; transform: rotate(45deg); }
.main-pin { top: 43%; left: 49%; }
.map-scale { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 5px; background: rgba(255,255,255,.85); color: #74868e; font-size: 7px; }
.health-score { padding: 15px 20px 20px; text-align: center; }
.health-score > div { width: 112px; height: 112px; margin: auto; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle at center, white 57%, transparent 59%), conic-gradient(var(--green) 0 var(--health-percent, 0%), #e9efed var(--health-percent, 0%)); }
.health-score strong { color: var(--navy); font-size: 28px; line-height: 1; }
.health-score small { color: var(--muted); font-size: 8px; }
.health-score > span { display: inline-block; margin-top: 9px; padding: 4px 9px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 750; }
.health-list { padding: 0 20px 15px; }
.health-list p { margin: 0; padding: 11px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.health-list b { color: var(--ink); }
.zone-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.zone-card { padding: 16px; }
.zone-card-top { display: flex; align-items: center; }
.zone-card-top .status { margin-left: auto; }
.zone-card-top .icon-button { width: 30px; height: 30px; margin-left: 3px; }
.zone-dot { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; }
.zone-dot.teal { background: #e5f6f1; color: var(--teal); }
.zone-dot.blue { background: #edf3fe; color: var(--blue); }
.zone-dot.violet { background: #f2edfc; color: var(--violet); }
.zone-dot.orange { background: #fff2e6; color: var(--orange); }
.zone-dot svg { width: 16px; }
.zone-card h3 { margin: 14px 0 3px; color: var(--navy); font-size: 12px; }
.zone-card > p { height: 25px; margin: 0 0 14px; color: var(--muted); font-size: 8px; }
.zone-card > div:nth-of-type(2) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.zone-card > div:nth-of-type(2) small, .zone-card > div:nth-of-type(2) b { display: block; }
.zone-card > div:nth-of-type(2) small { color: var(--muted); font-size: 7px; }
.zone-card > div:nth-of-type(2) b { font-size: 9px; }
.zone-edit { width: 100%; margin-top: 15px; padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--teal); font-size: 8px; font-weight: 700; cursor: pointer; }
.zone-edit svg { width: 13px; }

/* Settings and profile */
.settings-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-tabs-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.settings-nav { padding: 8px; }
.settings-nav button { width: 100%; padding: 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; background: transparent; color: #687a80; text-align: left; cursor: pointer; }
.settings-nav button:hover, .settings-nav button.active { background: #edf7f4; color: var(--teal); }
.settings-nav svg { width: 17px; }
.settings-nav span { flex: 1; }
.settings-nav b, .settings-nav small { display: block; }
.settings-nav b { font-size: 9px; }
.settings-nav small { color: #8c9b9f; font-size: 7px; }
.settings-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.settings-tabs button { width: auto; min-height: 58px; justify-content: center; border: 1px solid transparent; }
.settings-tabs button:hover { border-color: #e1ebe8; background: #f7faf9; }
.settings-tabs button.active { border-color: #cce7de; background: linear-gradient(135deg, #edf9f5, #e5f5f0); box-shadow: inset 0 -2px 0 var(--teal); }
.settings-tabs button > svg { flex: 0 0 auto; }
.settings-tabs button span { flex: 0 1 auto; }
.settings-content { min-height: 590px; padding: 22px; }
.settings-pane { display: none; }
.settings-pane.active { display: block; animation: fade .18s ease; }
.settings-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.settings-head h2 { margin: 0; color: var(--navy); font-size: 14px; }
.settings-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.settings-form, .form-panel form { padding-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid label, .auth-form > label { display: block; color: #50646a; font-size: 8px; font-weight: 700; }
.form-grid label.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #dce7e5; border-radius: 8px; background: white; color: var(--ink); outline: 0; font-size: 9px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,126,123,.09); }
input:disabled { background: #f4f7f6; color: #8c9b9f; }
textarea { resize: vertical; }
.form-save { margin-top: 20px; padding-top: 17px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.setting-toggles { margin: 20px 0; }
.setting-toggles > label { padding: 14px 0; display: flex; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-toggles span { flex: 1; }
.setting-toggles b, .setting-toggles small { display: block; }
.setting-toggles b { font-size: 9px; }
.setting-toggles small { color: var(--muted); font-size: 8px; }
.setting-toggles input { display: none; }
.setting-toggles i { position: relative; width: 35px; height: 20px; border-radius: 12px; background: #dce4e2; }
.setting-toggles i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; content: ""; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.setting-toggles input:checked + i { background: var(--teal); }
.setting-toggles input:checked + i::after { left: 18px; }
.push-settings-status { margin: 20px 0 5px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid #dceae6; border-radius: 11px; background: #f8fbfa; }
.push-settings-status > div { flex: 1; }
.push-settings-status b, .push-settings-status small { display: block; }
.push-settings-status b { font-size: 11px; }
.push-settings-status small { color: var(--muted); font-size: 9px; }
.compact-toggles { margin-top: 8px; }
.settings-subhead { margin: 24px 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.settings-subhead h3 { margin: 0; color: var(--navy); font-size: 13px; }
.settings-subhead p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.credential-note { margin: 14px 0 0; display: flex; align-items: center; gap: 7px; color: #788a8f; font-size: 8px; }
.credential-note svg { width: 14px; color: var(--teal); }
.push-settings-form .form-save { gap: 8px; }

/* Push notification workspace */
.push-compose-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 18px; align-items: start; }
.push-compose-card { overflow: hidden; }
.compose-step { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--teal); font-size: 8px; font-weight: 800; }
.push-form { padding: 5px 20px 20px; }
.field-label { margin: 14px 0; display: block; color: #50646a; font-size: 10px; font-weight: 700; }
.field-label em { color: var(--red); font-style: normal; }
.field-label small { margin-top: 5px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 400; }
.schedule-field[hidden] { display: none; }
.push-image-field { margin-top: 17px; padding: 13px; display: flex; align-items: center; gap: 12px; border: 1px dashed #cbded9; border-radius: 11px; background: #f9fbfa; }
.push-image-field > div { flex: 1; display: flex; align-items: center; gap: 9px; }
.push-image-field > div > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--teal); }
.push-image-field b, .push-image-field small { display: block; }
.push-image-field b { font-size: 10px; }
.push-image-field small { color: var(--muted); font-size: 8px; }
.push-form-actions { margin-top: 20px; padding-top: 17px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.push-preview-column { display: grid; gap: 18px; }
.push-preview-panel { overflow: hidden; }
.phone-preview { width: 270px; margin: 5px auto 12px; overflow: hidden; border: 7px solid #132a31; border-radius: 25px; background: #edf4f1; box-shadow: 0 16px 34px rgba(4,43,56,.14); }
.preview-phone-top { height: 30px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; background: #f8fbfa; color: #345057; font-size: 7px; font-weight: 700; }
.preview-wallpaper { min-height: 290px; padding: 16px 10px; background: radial-gradient(circle at 70% 80%, rgba(47,181,145,.28), transparent 28%), linear-gradient(145deg, #dfeeea, #bddbd3); }
.push-notification-preview { padding: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 13px; background: rgba(255,255,255,.86); box-shadow: 0 9px 24px rgba(7,59,76,.12); backdrop-filter: blur(10px); }
.push-preview-head { display: flex; align-items: center; gap: 6px; }
.preview-app-mark { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: var(--teal); color: white; font-size: 8px; font-weight: 800; }
.push-preview-head b { font-size: 8px; }
.push-preview-head small { margin-left: auto; color: var(--muted); font-size: 7px; }
.push-notification-preview > strong { margin-top: 8px; display: block; font-size: 9px; }
.push-notification-preview > p { min-height: 28px; margin: 3px 0 8px; color: #65787e; font-size: 8px; line-height: 1.45; }
.push-preview-actions { padding-top: 7px; display: flex; gap: 16px; border-top: 1px solid rgba(7,59,76,.08); color: var(--teal); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.preview-note { padding: 0 18px 15px; color: var(--muted); font-size: 8px; text-align: center; }
.delivery-checklist { padding-bottom: 9px; }
.delivery-checklist ul { margin: 0; padding: 0 17px 8px; list-style: none; }
.delivery-checklist li { padding: 8px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.delivery-checklist li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #f0f4f3; color: #8b9a9e; font-size: 8px; }
.delivery-checklist li.done { color: #286d58; }
.delivery-checklist li.done span { background: var(--green-soft); color: var(--green); }
.drawer-media-grid { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-media-grid button { padding: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; cursor: pointer; }
.drawer-media-grid button:hover { border-color: #bfdbd4; background: #f8fbfa; }
.drawer-media-grid .media-preview { height: 105px; margin-bottom: 8px; border-radius: 8px; }
.drawer-media-grid .media-preview svg { width: 27px; }
.drawer-media-grid b, .drawer-media-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-media-grid b { font-size: 9px; }
.drawer-media-grid small { color: var(--muted); font-size: 8px; }
.push-stats { grid-template-columns: repeat(4, 1fr); }
.notification-title-cell { max-width: 330px; display: flex; align-items: center; gap: 10px; }
.notification-title-cell > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--green-soft); color: var(--teal); }
.notification-title-cell > span svg { width: 15px; }
.notification-title-cell b, .notification-title-cell small { display: block; }
.notification-title-cell small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

/* Catalog hierarchy */
.catalog-flow { margin-bottom: 18px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #d9e9e5; border-radius: 14px; background: linear-gradient(110deg, #f3faf7, #fff); }
.catalog-flow > span { display: grid; grid-template-columns: 29px auto; column-gap: 9px; align-items: center; }
.catalog-flow > span i { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--teal); color: white; font-size: 9px; font-style: normal; font-weight: 800; }
.catalog-flow > span b { color: var(--navy); font-size: 10px; }
.catalog-flow > span small { color: var(--muted); font-size: 8px; }
.catalog-flow > svg { width: 16px; color: #a1b6b1; }
.catalog-stats { grid-template-columns: repeat(4, 1fr); }
.catalog-overview-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 18px; align-items: start; }
.catalog-tree-panel { overflow: hidden; }
.catalog-tree { padding: 0 14px 14px; }
.catalog-section-node { margin: 8px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.catalog-section-node > summary { min-height: 68px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; list-style: none; cursor: pointer; }
.catalog-section-node > summary::-webkit-details-marker { display: none; }
.catalog-node-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.catalog-node-icon svg { width: 18px; }
.catalog-section-node > summary > div { min-width: 0; flex: 1; }
.catalog-section-node > summary b, .catalog-section-node > summary small { display: block; }
.catalog-section-node > summary b { color: var(--navy); font-size: 11px; }
.catalog-section-node > summary small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-section-node > summary em { padding: 4px 8px; border-radius: 9px; background: #f0f5f4; color: #6e8287; font-size: 8px; font-style: normal; }
.tree-chevron { width: 24px; height: 24px; display: grid; place-items: center; color: #84969a; transition: transform .2s; }
.tree-chevron svg { width: 13px; }
.catalog-section-node[open] .tree-chevron { transform: rotate(90deg); }
.catalog-section-node[open] > summary { border-bottom: 1px solid var(--line); background: #fafcfb; }
.category-nodes { padding: 5px 15px 12px 51px; background: #fcfdfd; }
.category-node { position: relative; padding: 11px 0 11px 15px; border-left: 1px solid #d8e5e2; }
.category-node::before { position: absolute; top: 30px; left: -1px; width: 11px; height: 1px; content: ""; background: #d8e5e2; }
.category-node-head { display: flex; align-items: center; gap: 9px; }
.category-node-head > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #edf6f3; color: var(--teal); }
.category-node-head > span svg { width: 14px; }
.category-node-head > div { flex: 1; }
.category-node-head b, .category-node-head small { display: block; }
.category-node-head b { font-size: 10px; }
.category-node-head small { color: var(--muted); font-size: 8px; }
.category-node-head > a { color: var(--teal); font-size: 8px; font-weight: 750; }
.product-chips { margin: 9px 0 0 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-chips a, .product-chips button { min-height: 29px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e9e7; border-radius: 8px; background: white; color: #60747a; font-size: 8px; cursor: pointer; }
.product-chips a:hover { border-color: #bfdcd4; color: var(--teal); }
.product-chips svg { width: 12px; }
.product-chips button, .product-chips a.add-product-chip { border-style: dashed; color: var(--teal); }
.catalog-side-column { display: grid; gap: 18px; }
.catalog-health { padding-bottom: 8px; }
.catalog-score { width: 112px; height: 112px; margin: 7px auto 17px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle at center, white 57%, transparent 59%), conic-gradient(var(--teal) 0 92%, #e6efec 92%); }
.catalog-score strong { color: var(--navy); font-size: 29px; line-height: 1; }
.catalog-score small { color: var(--muted); font-size: 8px; }
.catalog-guidance { padding: 19px; }
.catalog-guidance > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--teal); }
.catalog-guidance > span svg { width: 18px; }
.catalog-guidance h3 { margin: 13px 0 5px; color: var(--navy); font-size: 12px; }
.catalog-guidance p { margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.catalog-guidance a { display: flex; align-items: center; justify-content: space-between; color: var(--teal); font-size: 8px; font-weight: 750; }
.catalog-guidance a svg { width: 13px; }
.catalog-section-actions { margin: 3px 0 5px; padding: 7px 0 9px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed #dfe8e6; }
.catalog-section-actions > span { color: #98a7aa; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.catalog-section-actions button { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--teal); font-size: 8px; font-weight: 700; cursor: pointer; }
.catalog-section-actions svg { width: 12px; }
.workflow-mini-guide { margin-bottom: 18px; padding: 11px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #dbe9e6; border-radius: 12px; background: #f9fbfa; color: #8a999d; }
.workflow-mini-guide > span { padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: white; font-size: 8px; }
.workflow-mini-guide > span.complete { color: var(--green); }
.workflow-mini-guide > span.current { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(8,126,123,.16); }
.workflow-mini-guide > svg { width: 13px; }
.workflow-mini-guide > small { margin-left: auto; color: var(--muted); font-size: 8px; }
.hierarchy-parent { display: inline-flex; align-items: center; gap: 6px; }
.hierarchy-parent svg { width: 13px; color: var(--teal); }
.category-edit-button svg { width: 15px; }
.catalog-drawer { width: min(580px, calc(100% - 28px)); }
.product-drawer { width: min(660px, calc(100% - 28px)); }
.drawer-kicker { display: block; margin-bottom: 4px; color: var(--teal); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.catalog-drawer form { min-height: calc(100vh - 78px); display: flex; flex-direction: column; }
.drawer-form-body { padding: 18px 20px 8px; flex: 1; }
.workflow-context { margin-bottom: 18px; padding: 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #d9e9e5; border-radius: 11px; background: #f5faf8; }
.workflow-context > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--teal); color: white; font-size: 8px; font-weight: 800; }
.workflow-context > span.done-step { background: var(--green); }
.workflow-context > span.muted-step { background: #e5ecea; color: #85969a; }
.workflow-context > div { min-width: 0; flex: 1; }
.workflow-context b, .workflow-context small { display: block; }
.workflow-context b { color: var(--navy); font-size: 9px; }
.workflow-context small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-context > svg { width: 13px; flex: 0 0 auto; color: #9db0ac; }
.drawer-section { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.drawer-section > h3 { margin: 0; color: var(--navy); font-size: 12px; }
.drawer-section > p { margin: 3px 0 14px; color: var(--muted); font-size: 8px; }
.drawer-section > .form-grid { margin-top: 13px; }
.catalog-appearance-section { background: #fbfdfc; }
.catalog-style-preview { margin-bottom: 16px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid #bfe2d8; border-radius: 11px; background: #eff9f6; }
.catalog-style-preview > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--teal); color: white; box-shadow: 0 7px 16px rgba(8,126,123,.18); }
.catalog-style-preview > span svg { width: 20px; }
.catalog-style-preview > div { min-width: 0; }
.catalog-style-preview small, .catalog-style-preview b, .catalog-style-preview em { display: block; }
.catalog-style-preview small { color: var(--teal); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.catalog-style-preview b { margin-top: 2px; overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-style-preview em { margin-top: 2px; color: var(--muted); font-size: 7px; font-style: normal; }
.catalog-style-preview.tone-blue { border-color: #c9daf8; background: #f0f5fd; }
.catalog-style-preview.tone-blue > span { background: var(--blue); box-shadow: 0 7px 16px rgba(57,119,229,.18); }
.catalog-style-preview.tone-blue small { color: var(--blue); }
.catalog-style-preview.tone-violet { border-color: #d9cff2; background: #f6f2fd; }
.catalog-style-preview.tone-violet > span { background: var(--violet); box-shadow: 0 7px 16px rgba(128,90,213,.18); }
.catalog-style-preview.tone-violet small { color: var(--violet); }
.catalog-style-preview.tone-orange { border-color: #f4d5b5; background: #fff7ef; }
.catalog-style-preview.tone-orange > span { background: var(--orange); box-shadow: 0 7px 16px rgba(245,158,66,.18); }
.catalog-style-preview.tone-orange small { color: #d97c25; }
.catalog-style-field { min-width: 0; margin: 0 0 15px; padding: 0; border: 0; }
.catalog-style-field:last-child { margin-bottom: 0; }
.catalog-style-field legend { margin-bottom: 8px; color: #52666c; font-size: 8px; font-weight: 800; }
.catalog-icon-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.catalog-icon-options label { position: relative; min-height: 78px; padding: 10px 7px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #67797f; text-align: center; cursor: pointer; }
.catalog-icon-options label:hover { border-color: #b8d8d1; background: #f9fcfb; }
.catalog-icon-options label.selected { border-color: var(--teal); background: #eef9f6; color: var(--teal); box-shadow: 0 0 0 2px rgba(8,126,123,.08); }
.catalog-icon-options label.selected::after { position: absolute; top: 5px; right: 6px; width: 15px; height: 15px; display: grid; place-items: center; content: "✓"; border-radius: 50%; background: var(--teal); color: white; font-size: 7px; font-weight: 850; }
.catalog-icon-options input, .catalog-color-options input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-icon-options span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f2f6f5; }
.catalog-icon-options label.selected span { background: white; }
.catalog-icon-options svg { width: 16px; }
.catalog-icon-options b { font-size: 7px; line-height: 1.25; }
.catalog-color-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.catalog-color-options label { position: relative; min-width: 0; padding: 9px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.catalog-color-options label:hover { border-color: #c8d8d5; }
.catalog-color-options label.selected { border-color: currentColor; box-shadow: 0 0 0 2px rgba(8,126,123,.07); }
.catalog-color-options label.teal { color: var(--teal); }
.catalog-color-options label > i { width: 22px; height: 22px; flex: 0 0 auto; border: 4px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #cbdad7; }
.catalog-color-options label.blue { color: var(--blue); }
.catalog-color-options label.blue > i { background: var(--blue); }
.catalog-color-options label.violet { color: var(--violet); }
.catalog-color-options label.violet > i { background: var(--violet); }
.catalog-color-options label.orange { color: #d97c25; }
.catalog-color-options label.orange > i { background: var(--orange); }
.catalog-color-options label > span { min-width: 0; }
.catalog-color-options b, .catalog-color-options small { display: block; }
.catalog-color-options b { color: #4d6268; font-size: 7px; }
.catalog-color-options small { overflow: hidden; color: var(--muted); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-sticky-actions { position: sticky; z-index: 5; bottom: 0; padding: 13px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(5,54,64,.05); backdrop-filter: blur(10px); }
.catalog-media-picker { padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px dashed #cbded9; border-radius: 10px; background: #f9fbfa; }
.catalog-media-picker > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--green-soft); color: var(--teal); }
.catalog-media-picker > span svg { width: 17px; }
.catalog-media-picker > div { min-width: 0; flex: 1; }
.catalog-media-picker b, .catalog-media-picker small { display: block; }
.catalog-media-picker b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-media-picker small { color: var(--muted); font-size: 7px; }
.pricing-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.pricing-grid label { color: #50646a; font-size: 10px; font-weight: 700; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-card { position: relative; overflow: hidden; padding-bottom: 18px; text-align: center; }
.profile-cover { height: 95px; background: linear-gradient(135deg, var(--navy), var(--teal)); }
.profile-avatar { position: relative; width: 82px; height: 82px; margin: -43px auto 12px; display: grid; place-items: center; border: 5px solid white; border-radius: 22px; background: linear-gradient(135deg, #16a28f, #07586b); color: white; font-size: 20px; font-weight: 800; }
.profile-avatar button { position: absolute; right: -8px; bottom: -6px; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--navy); color: white; cursor: pointer; }
.profile-avatar svg { width: 12px; }
.profile-card h2 { margin: 0; color: var(--navy); font-size: 15px; }
.profile-card > p { margin: 3px 0 8px; color: var(--muted); font-size: 9px; }
.verified-badge { display: inline-block; padding: 4px 8px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 7px; font-weight: 750; }
.profile-meta { margin: 18px 18px 0; padding-top: 7px; border-top: 1px solid var(--line); text-align: left; }
.profile-meta p { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.profile-meta span, .profile-meta b { display: block; }
.profile-meta span { color: var(--muted); font-size: 7px; }
.profile-meta b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; }
.profile-content { display: grid; gap: 18px; }
.form-panel { padding: 22px; }
.security-card { padding: 22px; }
.security-row { padding: 15px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.security-row > div { flex: 1; }
.security-row b, .security-row small { display: block; }
.security-row b { font-size: 9px; }
.security-row small { color: var(--muted); font-size: 8px; }

/* Modals, drawers and utility UI */
.modal, .command-modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; }
.modal { align-items: stretch; justify-content: flex-end; }
.modal.open, .command-modal.open { display: flex; }
.modal-scrim, .command-scrim { position: absolute; inset: 0; background: rgba(3, 35, 44, .64); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 2; width: min(520px, calc(100% - 28px)); height: 100vh; max-height: 100vh; overflow: auto; border-radius: 18px 0 0 18px; background: white; box-shadow: -24px 0 70px rgba(3,35,44,.22); animation: drawerIn .28s cubic-bezier(.22,.78,.28,1); }
.modal.closing .modal-card { animation: drawerOut .2s ease forwards; }
.modal.closing .modal-scrim { animation: scrimOut .2s ease forwards; }
.modal-head { padding: 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; color: var(--navy); font-size: 15px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.modal-head > button, .drawer-head > button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f1f5f4; color: #718287; font-size: 18px; cursor: pointer; }
.form-modal form { padding: 20px; }
.modal-actions { margin-top: 20px; padding-top: 15px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.quick-action-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-action-grid a { padding: 14px; display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; border: 1px solid var(--line); border-radius: 11px; }
.quick-action-grid a:hover { border-color: #c9ded8; background: #f7fbf9; }
.quick-action-grid a > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--teal); }
.quick-action-grid b { align-self: end; font-size: 9px; }
.quick-action-grid small { color: var(--muted); font-size: 7px; }
.drop-zone { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bcd6cf; border-radius: 12px; background: #f7fbf9; text-align: center; cursor: pointer; }
.drop-zone input { display: none; }
.drop-zone svg { width: 29px; height: 29px; margin-bottom: 10px; color: var(--teal); }
.drop-zone b { font-size: 9px; }
.drop-zone small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.upload-preview { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--green-soft); color: var(--teal); font-size: 8px; }
.conversion-preview { padding: 0; overflow: hidden; border: 1px solid #cce6de; background: white; color: var(--ink); }
.conversion-preview-head { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #f2faf7; }
.conversion-preview-head b { color: var(--navy); font-size: 8px; }
.conversion-preview-head span { padding: 4px 7px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 7px; font-weight: 800; }
.conversion-file-row { padding: 10px 12px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf2f1; }
.conversion-file-row:last-child { border-bottom: 0; }
.conversion-file-row > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 850; }
.conversion-file-row > div { min-width: 0; }
.conversion-file-row b, .conversion-file-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversion-file-row b { color: var(--navy); font-size: 8px; }
.conversion-file-row small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.conversion-file-row em { padding: 4px 7px; border-radius: 7px; background: #eef8f5; color: var(--teal); font-size: 7px; font-style: normal; font-weight: 800; }
.command-card { position: relative; z-index: 2; width: min(570px, calc(100% - 28px)); overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 15px; background: white; box-shadow: 0 30px 90px rgba(3,35,44,.35); animation: modalIn .18s ease; }
.command-input { height: 58px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.command-input input { height: 100%; margin: 0; padding: 0; flex: 1; border: 0; box-shadow: none; font-size: 11px; }
.command-results { padding: 10px; }
.command-results > small { display: block; padding: 6px 9px; color: #9ba9ad; font-size: 7px; font-weight: 800; }
.command-results a { padding: 9px; display: flex; align-items: center; gap: 10px; border-radius: 9px; }
.command-results a:hover { background: #f2f8f6; }
.command-results a > svg { width: 17px; color: var(--teal); }
.command-results a > span { flex: 1; }
.command-results b, .command-results a small { display: block; }
.command-results b { font-size: 9px; }
.command-results a small { color: var(--muted); font-size: 7px; }
.notification-drawer { position: fixed; z-index: 90; top: 0; right: -390px; width: min(380px, 100%); height: 100vh; background: white; box-shadow: -20px 0 60px rgba(3,35,44,.16); transition: .25s ease; }
.notification-drawer.open { right: 0; }
.drawer-head { height: 76px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; color: var(--navy); font-size: 14px; }
.drawer-head p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.notification-list { padding: 8px 14px; }
.notification-list article { padding: 13px 5px; display: flex; gap: 11px; border-bottom: 1px solid var(--line); }
.notice-icon { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; }
.notice-icon.warning { background: #fff2e6; color: var(--orange); }
.notice-icon.violet { background: #f2edfc; color: var(--violet); }
.notice-icon.blue { background: #edf3fe; color: var(--blue); }
.notice-icon svg { width: 17px; }
.notification-list b, .notification-list p, .notification-list small { display: block; }
.notification-list b { font-size: 9px; }
.notification-list p { margin: 3px 0; color: var(--muted); font-size: 8px; }
.notification-list small { color: #a1adb1; font-size: 7px; }
.toast { position: fixed; z-index: 150; right: 24px; bottom: -100px; min-width: 290px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfe9df; border-radius: 12px; background: white; box-shadow: 0 18px 50px rgba(3,35,44,.18); transition: .28s ease; }
.toast.show { bottom: 24px; }
.toast > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-weight: 800; }
.toast b, .toast small { display: block; }
.toast b { font-size: 9px; }
.toast small { color: var(--muted); font-size: 7px; }
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found > span { color: #d9e6e3; font-size: 90px; font-weight: 900; line-height: 1; }
.not-found h1 { color: var(--navy); }
.not-found p { color: var(--muted); }

/* Authentication */
.auth-body { min-height: 100vh; background: white; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, .9fr) minmax(500px, 1.1fr); }
.auth-brand { position: relative; padding: 50px 10%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: linear-gradient(145deg, var(--navy-dark), #075867); color: white; }
.auth-brand::after { position: absolute; right: -240px; bottom: -270px; width: 620px; height: 620px; content: ""; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.auth-brand .brand { width: max-content; margin-bottom: 90px; padding: 0; border: 0; }
.auth-brand .brand strong { color: white; }
.auth-brand .brand small { color: #94b8bb; }
.auth-kicker { color: #78dfbd; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.auth-brand h1 { max-width: 520px; margin: 15px 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.045em; }
.auth-brand p { max-width: 500px; color: #b8d0d2; line-height: 1.7; }
.auth-feature { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.auth-feature > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(121,224,188,.14); color: #7de0bd; }
.auth-feature b, .auth-feature small { display: block; }
.auth-feature b { font-size: 10px; }
.auth-feature small { color: #91b3b5; font-size: 8px; }
.auth-brand > small { position: relative; z-index: 2; color: #749da0; font-size: 8px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; }
.auth-form { width: min(390px, 100%); }
.mobile-auth-brand { display: none; }
.auth-form h2 { margin: 0; color: var(--navy); font-size: 27px; }
.auth-form > p { margin: 6px 0 28px; color: var(--muted); font-size: 10px; }
.auth-form > label { margin: 15px 0; }
.auth-form input { height: 44px; font-size: 10px; }
.password-field { position: relative; }
.password-field button { position: absolute; right: 10px; top: 15px; border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 750; cursor: pointer; }
.auth-options { margin: 15px 0 20px; display: flex; justify-content: space-between; font-size: 8px; }
.auth-options label { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.auth-options input { width: auto; height: auto; margin: 0; accent-color: var(--teal); }
.auth-options a { color: var(--teal); font-weight: 700; }
.demo-note { display: block; margin-top: 14px; color: #9aa8ad; font-size: 7px; text-align: center; }
.sidebar-scrim { display: none; }

/* Centered Super Admin authentication */
.auth-centered-body { background: #eef6f3; }
.centered-auth-shell { position: relative; min-height: 100vh; padding: 42px 20px 82px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.95) 0, rgba(255,255,255,.7) 23%, transparent 52%), linear-gradient(145deg, #eef8f5, #e4efed); }
.centered-auth-shell::before { position: absolute; inset: 0; content: ""; opacity: .45; background-image: linear-gradient(rgba(7,59,76,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(7,59,76,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.centered-auth-shell::after { position: absolute; top: -330px; left: 50%; width: 720px; height: 720px; content: ""; border: 1px solid rgba(8,126,123,.08); border-radius: 50%; box-shadow: 0 0 0 95px rgba(8,126,123,.025), 0 0 0 190px rgba(8,126,123,.018); transform: translateX(-50%); }
.auth-orbit { position: absolute; z-index: 1; border-radius: 50%; background: var(--teal); box-shadow: 0 8px 25px rgba(8,126,123,.22); }
.auth-orbit-one { top: 18%; left: calc(50% - 335px); width: 9px; height: 9px; }
.auth-orbit-two { right: calc(50% - 320px); bottom: 24%; width: 6px; height: 6px; background: var(--orange); }
.centered-auth-card { position: relative; z-index: 3; width: min(440px, 100%); padding: 36px 40px 30px; overflow: hidden; border: 1px solid rgba(213,229,225,.92); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 28px 75px rgba(5,54,64,.13), 0 3px 12px rgba(5,54,64,.05); backdrop-filter: blur(16px); }
.auth-card-accent { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--teal), #42bf98); }
.centered-auth-brand { width: 270px; max-width: 100%; height: auto; margin: 0 auto 22px; padding: 0; border: 0; }
.centered-auth-brand .brand-logo { width: 100%; max-width: none; height: auto; object-position: center; }
.secure-label { width: max-content; margin: 0 auto 12px; padding: 5px 9px; display: flex; align-items: center; gap: 6px; border: 1px solid #d5ece4; border-radius: 20px; background: #f0faf6; color: #29755e; font-size: 7px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.secure-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(23,166,115,.12); }
.centered-auth-card > h1 { margin: 0; color: var(--navy); font-size: 27px; line-height: 1.2; text-align: center; letter-spacing: -.04em; }
.centered-auth-card > p { margin: 7px 0 28px; color: var(--muted); font-size: 10px; text-align: center; }
.auth-method-tabs { margin-bottom: 22px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid #dfe9e7; border-radius: 11px; background: #f3f7f6; }
.auth-method-tabs button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; background: transparent; color: #76888d; font-size: 8px; font-weight: 750; cursor: pointer; }
.auth-method-tabs button svg { width: 14px; }
.auth-method-tabs button:hover { color: var(--teal); }
.auth-method-tabs button.active { background: white; color: var(--teal); box-shadow: 0 4px 13px rgba(5,54,64,.08); }
.auth-method-panel { display: none; }
.auth-method-panel.active { display: block; animation: fade .2s ease; }
.centered-auth-form { width: 100%; }
.centered-auth-form > label { margin: 0 0 16px; color: #405a61; font-size: 9px; }
.auth-input-wrap { position: relative; margin-top: 7px; }
.auth-input-wrap > svg { position: absolute; z-index: 2; top: 50%; left: 13px; width: 16px; height: 16px; color: #82979b; transform: translateY(-50%); pointer-events: none; }
.auth-input-wrap input { height: 47px; margin: 0; padding: 0 45px 0 40px; border-radius: 10px; background: #fbfdfc; font-size: 10px; }
.auth-input-wrap input:focus { background: white; }
.auth-input-wrap.password-field button { top: 50%; right: 12px; transform: translateY(-50%); }
.centered-auth-form .auth-options { margin: 2px 0 19px; }
.auth-submit { width: 100%; min-height: 47px; border-radius: 10px; font-size: 10px; }
.auth-submit svg { width: 16px; margin-left: 4px; }
.otp-intro > p { margin: 10px 0 18px; display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.otp-sent-message { margin-bottom: 16px; padding: 10px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #d1eadf; border-radius: 10px; background: #f1faf6; }
.otp-sent-message > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #dcf3e9; color: var(--green); font-size: 9px; font-weight: 800; }
.otp-sent-message p { min-width: 0; margin: 0; }
.otp-sent-message b, .otp-sent-message small { display: block; }
.otp-sent-message b { color: #286b57; font-size: 8px; }
.otp-sent-message small { overflow: hidden; color: #648079; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.otp-code-input { height: 51px !important; padding: 0 15px !important; font-size: 19px !important; font-weight: 800; letter-spacing: .42em; text-align: center; }
.otp-code-input::placeholder { color: #aab8b5; letter-spacing: .24em; }
.otp-resend { margin: -5px 0 17px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 7px; }
.otp-resend button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 7px; font-weight: 800; cursor: pointer; }
.otp-demo-note { display: block; margin-top: 11px; color: #98a7ab; font-size: 7px; text-align: center; }
.auth-divider { margin: 24px 0 17px; display: flex; align-items: center; gap: 10px; color: #9aa9ad; font-size: 7px; text-transform: uppercase; letter-spacing: .09em; }
.auth-divider::before, .auth-divider::after { height: 1px; content: ""; flex: 1; background: var(--line); }
.auth-security-note { padding: 10px 11px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #f6faf8; }
.auth-security-note > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.auth-security-note p { margin: 0; }
.auth-security-note b, .auth-security-note small { display: block; }
.auth-security-note b { color: var(--navy); font-size: 8px; }
.auth-security-note small { color: var(--muted); font-size: 7px; }
.auth-footer { position: absolute; z-index: 3; right: 24px; bottom: 20px; left: 24px; display: flex; align-items: center; justify-content: space-between; color: #829499; font-size: 8px; }
.auth-footer a { color: var(--teal); font-weight: 650; }

/* Admin-wide readability scale */
.nav-item { font-size: 13px; }
.nav-label { font-size: 10px; }
.workspace-switch b { font-size: 12px; }
.workspace-switch small { font-size: 9px; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user span { font-size: 9px; }
.global-search span { font-size: 12px; }
.environment { font-size: 10px; }
.breadcrumb { font-size: 10px; }
.page-heading h1 { font-size: 27px; }
.page-heading > div > p:last-child { font-size: 12px; }
.primary-button, .secondary-button { font-size: 11px; }
.panel-head h2 { font-size: 15px; }
.panel-head p { font-size: 10px; }
.panel-head > a { font-size: 10px; }
.stat-card > p { font-size: 11px; }
.stat-card > strong { font-size: 26px; }
.stat-card > small { font-size: 9px; }
.trend { font-size: 9px; }
.mini-stats small, .module-stats small { font-size: 9px; }
.mini-stats b, .module-stats b { font-size: 19px; }
.mini-stats em, .module-stats em { font-size: 8px; }
th { font-size: 9px; }
td { font-size: 11px; }
.channel-badge, .status { font-size: 9px; }
.attention-panel b { font-size: 11px; }
.attention-panel small, .attention-panel em { font-size: 9px; }
.tabs button { font-size: 10px; }
.table-search input { font-size: 10px; }
.product-cell small { font-size: 8px; }
.table-footer { font-size: 9px; }
.media-meta b { font-size: 10px; }
.media-meta p { font-size: 9px; }
.settings-nav b { font-size: 10px; }
.settings-nav small { font-size: 8px; }
.settings-head h2 { font-size: 16px; }
.settings-head p { font-size: 10px; }
.form-grid label, .auth-form > label { font-size: 10px; }
input, select, textarea { font-size: 11px; }
.setting-toggles b { font-size: 11px; }
.setting-toggles small { font-size: 9px; }
.profile-meta span { font-size: 8px; }
.profile-meta b { font-size: 10px; }
.security-row b { font-size: 11px; }
.security-row small { font-size: 9px; }
.modal-head h2 { font-size: 17px; }
.modal-head p { font-size: 10px; }
.notification-list b { font-size: 11px; }
.notification-list p { font-size: 9px; }
.notification-list small { font-size: 8px; }
.centered-auth-card > p { font-size: 11px; }
.auth-method-tabs button { font-size: 10px; }
.centered-auth-form > label { font-size: 11px; }
.auth-input-wrap input { font-size: 12px; }
.otp-sent-message b { font-size: 10px; }
.otp-sent-message small { font-size: 9px; }
.otp-resend, .otp-resend button, .otp-demo-note { font-size: 8px; }
.auth-security-note b { font-size: 10px; }
.auth-security-note small { font-size: 8px; }

/* Full-page product editor */
.product-editor-heading { margin-bottom: 16px; }
.editor-kicker { width: max-content; margin: 8px 0 7px; padding: 5px 8px; display: block; border: 1px solid #d7ebe5; border-radius: 20px; background: #eff9f5; color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.editor-progress { margin-bottom: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #dce9e6; border-radius: 14px; background: white; box-shadow: 0 6px 20px rgba(7,59,76,.035); }
.editor-progress > span { min-width: 0; display: grid; grid-template-columns: 29px 1fr; column-gap: 9px; align-items: center; flex: 1; }
.editor-progress > span i { width: 29px; height: 29px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 9px; background: #eef4f3; color: #87999d; font-size: 9px; font-style: normal; font-weight: 800; }
.editor-progress > span b { color: var(--navy); font-size: 10px; }
.editor-progress > span small { color: var(--muted); font-size: 8px; }
.editor-progress > span.complete i { background: var(--green-soft); color: var(--green); }
.editor-progress > span.current i { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(8,126,123,.2); }
.editor-progress > svg { width: 15px; flex: 0 0 auto; color: #a8b8ba; }
.product-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.product-editor-main { min-width: 0; display: grid; gap: 16px; }
.editor-card { padding: 20px; overflow: visible; }
.editor-card-head { margin-bottom: 18px; padding-bottom: 15px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.editor-card-head > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #edf8f5; color: var(--teal); font-size: 9px; font-weight: 850; }
.editor-card-head > div { min-width: 0; flex: 1; }
.editor-card-head h2 { margin: 0; color: var(--navy); font-size: 15px; }
.editor-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.editor-card-head em { padding: 4px 7px; border-radius: 20px; background: #f1f5f4; color: #73868a; font-size: 7px; font-style: normal; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.editor-card .form-grid { gap: 15px; }
.editor-card .form-grid label > small { margin-top: 5px; display: block; color: #8b9a9e; font-size: 8px; font-weight: 500; }
.editor-card input, .editor-card select, .editor-card textarea, .publish-card input, .publish-card select { background: #fcfefd; }
.editor-card input:focus, .editor-card select:focus, .editor-card textarea:focus, .publish-card input:focus, .publish-card select:focus { background: white; }
.editor-pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
.price-summary { margin-top: 16px; padding: 12px 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dcebe7; border-radius: 11px; background: #f7fbf9; }
.price-summary span { padding: 0 12px; border-right: 1px solid #dfebe8; }
.price-summary span:first-child { padding-left: 0; }
.price-summary span:last-child { padding-right: 0; border-right: 0; }
.price-summary small, .price-summary b { display: block; }
.price-summary small { color: var(--muted); font-size: 8px; }
.price-summary b { margin-top: 3px; color: var(--navy); font-size: 12px; }
.success-text { color: var(--green) !important; }
.editor-toggles { margin-top: 16px; }
.product-page-media { padding: 16px; }
.product-page-media > span { width: 48px; height: 48px; }
.media-field-note { margin-top: 11px; display: flex; align-items: center; gap: 9px; }
.media-field-note > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #edf3fe; color: var(--blue); font-size: 9px; font-weight: 800; }
.media-field-note p { margin: 0; }
.media-field-note b, .media-field-note small { display: block; }
.media-field-note b { color: var(--navy); font-size: 9px; }
.media-field-note small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.product-editor-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.publish-card, .completion-card { padding: 17px; }
.publish-card-head { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.publish-card-head > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--teal); }
.publish-card-head > span svg { width: 17px; }
.publish-card-head h3 { margin: 0; color: var(--navy); font-size: 13px; }
.publish-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.publish-card > label { margin-bottom: 13px; display: block; color: #50646a; font-size: 10px; font-weight: 700; }
.publish-actions { margin-top: 16px; display: grid; gap: 8px; }
.publish-actions button { width: 100%; }
.completion-score { display: flex; align-items: baseline; justify-content: space-between; }
.completion-score strong { color: var(--navy); font-size: 24px; }
.completion-score span { color: var(--muted); font-size: 8px; }
.completion-bar { height: 6px; margin: 10px 0 15px; overflow: hidden; border-radius: 10px; background: #e8efed; }
.completion-bar i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #44bf96); }
.completion-card ul { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.completion-card li { color: #8a999d; font-size: 9px; }
.completion-card li.done { color: var(--green); font-weight: 700; }
.editor-help-card { padding: 15px; display: flex; gap: 10px; border: 1px solid #d9e8f8; border-radius: 13px; background: #f4f8fd; }
.editor-help-card > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: white; color: var(--blue); }
.editor-help-card > span svg { width: 15px; }
.editor-help-card b { color: var(--navy); font-size: 9px; }
.editor-help-card p { margin: 3px 0 7px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.editor-help-card a { color: var(--teal); font-size: 8px; font-weight: 700; }
.mobile-editor-actions { display: none; }

/* Vendor onboarding drawer */
.vendor-drawer { width: min(620px, 94vw); }
.vendor-settings-button { color: var(--teal); }
.vendor-settings-button:hover { border-color: #bfded6; background: #edf8f5; }
.module-primary-cell > div { min-width: 0; }
.module-primary-cell > div small { margin-top: 3px; display: block; color: var(--muted); font-size: 8px; }
.vendor-document-upload { width: 100%; margin-top: 13px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px dashed #c8ded8; border-radius: 10px; background: #f8fbfa; color: var(--teal); text-align: left; cursor: pointer; }
.vendor-document-upload:hover { border-color: var(--teal); background: #f1faf7; }
.vendor-document-upload > svg { width: 18px; flex: 0 0 auto; }
.vendor-document-upload > svg:last-child { margin-left: auto; width: 15px; }
.vendor-document-upload span { min-width: 0; flex: 1; }
.vendor-document-upload b, .vendor-document-upload small { display: block; }
.vendor-document-upload b { color: var(--navy); font-size: 10px; }
.vendor-document-upload small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.vendor-review-summary { padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #d7e9e4; border-radius: 11px; background: #f5faf8; }
.vendor-review-summary > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: white; color: var(--teal); }
.vendor-review-summary > span svg { width: 16px; }
.vendor-review-summary > div { min-width: 0; flex: 1; }
.vendor-review-summary b, .vendor-review-summary small { display: block; }
.vendor-review-summary b { color: var(--navy); font-size: 10px; }
.vendor-review-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.vendor-review-summary em { padding: 5px 8px; border-radius: 20px; background: #fff2df; color: #a96b18; font-size: 8px; font-style: normal; font-weight: 750; }
.vendor-name-link { color: var(--navy); font-size: 11px; font-weight: 750; }
.vendor-name-link:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* Vendor detail workspace */
.vendor-detail-heading { margin-bottom: 18px; }
.vendor-title-line { margin-top: 7px; display: flex; align-items: center; gap: 12px; }
.vendor-title-line > div { min-width: 0; }
.vendor-title-line h1 { margin: 0; }
.vendor-title-line p { margin: 4px 0 0 !important; }
.vendor-title-line > .status { margin-left: 4px; }
.vendor-detail-logo { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: linear-gradient(145deg, var(--navy), var(--teal)); color: white; box-shadow: 0 9px 20px rgba(7,59,76,.16); }
.vendor-detail-logo svg { width: 22px; }
.vendor-detail-tabs { margin-bottom: 18px; padding: 5px; display: flex; gap: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: white; scrollbar-width: thin; }
.vendor-detail-tabs button { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; border: 0; border-radius: 9px; background: transparent; color: #6e8186; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.vendor-detail-tabs button svg { width: 15px; }
.vendor-detail-tabs button em { min-width: 20px; padding: 3px 5px; border-radius: 12px; background: #edf2f1; color: #829397; font-size: 7px; font-style: normal; }
.vendor-detail-tabs button:hover { color: var(--teal); background: #f7faf9; }
.vendor-detail-tabs button.active { background: var(--navy); color: white; box-shadow: 0 6px 15px rgba(7,59,76,.15); }
.vendor-detail-tabs button.active em { background: rgba(255,255,255,.15); color: white; }
.vendor-detail-pane { animation: fade .2s ease; }
.vendor-detail-pane[hidden] { display: none !important; }
.vendor-overview-stats { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vendor-overview-stats article { min-width: 0; padding: 15px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.vendor-overview-stats article > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #edf8f5; color: var(--teal); }
.vendor-overview-stats article > span svg { width: 17px; }
.vendor-overview-stats small, .vendor-overview-stats b, .vendor-overview-stats em { display: block; }
.vendor-overview-stats small { color: var(--muted); font-size: 8px; }
.vendor-overview-stats b { margin: 2px 0; color: var(--navy); font-size: 17px; }
.vendor-overview-stats em { overflow: hidden; color: #718589; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.vendor-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.vendor-info-card, .commercial-card, .vendor-tab-panel { padding: 19px; }
.verified-label { padding: 5px 8px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 750; }
.vendor-info-list { margin: 3px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.vendor-info-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.vendor-info-list > div.full { grid-column: 1 / -1; }
.vendor-info-list dt, .vendor-info-list dd { margin: 0; }
.vendor-info-list dt { color: var(--muted); font-size: 8px; }
.vendor-info-list dd { margin-top: 4px; overflow-wrap: anywhere; color: var(--navy); font-size: 10px; font-weight: 700; }
.vendor-overview-side { display: grid; gap: 13px; }
.commercial-limit { margin: 6px 0 8px; display: flex; align-items: flex-end; justify-content: space-between; }
.commercial-limit small, .commercial-limit b { display: block; }
.commercial-limit small { color: var(--muted); font-size: 8px; }
.commercial-limit b { margin-top: 3px; color: var(--navy); font-size: 20px; }
.commercial-limit em { color: var(--muted); font-size: 8px; font-style: normal; }
.commercial-card dl { margin: 13px 0 0; }
.commercial-card dl div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.commercial-card dt, .commercial-card dd { margin: 0; font-size: 9px; }
.commercial-card dt { color: var(--muted); }
.commercial-card dd { color: var(--navy); font-weight: 700; }
.vendor-account-note { padding: 14px; display: flex; gap: 10px; border: 1px solid #cfe8dd; border-radius: 13px; background: #f1faf6; }
.vendor-account-note > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: white; color: var(--green); }
.vendor-account-note > span svg { width: 15px; }
.vendor-account-note b { color: #296951; font-size: 9px; }
.vendor-account-note p { margin: 3px 0 0; color: #668177; font-size: 8px; line-height: 1.5; }
.vendor-account-note.needs-review { border-color: #f1d8b7; background: #fff8ee; }
.vendor-account-note.needs-review > span { color: #b3731b; }
.vendor-account-note.needs-review b { color: #8a5b1d; }
.vendor-account-note.needs-review p { color: #8d7657; }
.vendor-tab-panel .panel-head { margin-bottom: 4px; }
.vendor-document-list article { padding: 14px 3px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.vendor-document-list article > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #eef4fc; color: var(--blue); }
.vendor-document-list article > span svg { width: 18px; }
.vendor-document-list article > div { min-width: 0; flex: 1; }
.vendor-document-list b, .vendor-document-list small { display: block; }
.vendor-document-list b { color: var(--navy); font-size: 10px; }
.vendor-document-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.vendor-document-list em { padding: 5px 8px; border-radius: 20px; font-size: 8px; font-style: normal; font-weight: 700; }
.vendor-document-list em.verified { background: var(--green-soft); color: var(--green); }
.vendor-document-list em.pending { background: #fff2df; color: #a96b18; }
.vendor-payment-stats { margin-bottom: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vendor-payment-stats article { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.vendor-payment-stats small, .vendor-payment-stats b, .vendor-payment-stats em { display: block; }
.vendor-payment-stats small { color: var(--muted); font-size: 8px; }
.vendor-payment-stats b { margin: 5px 0; color: var(--navy); font-size: 20px; }
.vendor-payment-stats em { color: #718589; font-size: 8px; font-style: normal; }
.vendor-payment-list article { padding: 14px 3px; display: grid; grid-template-columns: 38px 1fr auto 100px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.vendor-payment-list article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 9px; font-weight: 800; }
.vendor-payment-list article > span.paid { background: var(--green-soft); color: var(--green); }
.vendor-payment-list article > span.due { background: #fff2df; color: #a96b18; }
.vendor-payment-list b, .vendor-payment-list small { display: block; }
.vendor-payment-list b { color: var(--navy); font-size: 10px; }
.vendor-payment-list small, .vendor-payment-list em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
.vendor-payment-list strong { color: var(--navy); font-size: 11px; }
.vendor-timeline { position: relative; margin: 12px 0 0 8px; padding-left: 24px; border-left: 1px solid #d8e5e2; }
.vendor-timeline article { position: relative; padding: 3px 0 23px; }
.vendor-timeline article > i { position: absolute; top: 5px; left: -30px; width: 11px; height: 11px; border: 3px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #bcd9d2; }
.vendor-timeline b { color: var(--navy); font-size: 10px; }
.vendor-timeline p { margin: 4px 0; color: #52676c; font-size: 9px; }
.vendor-timeline small { color: var(--muted); font-size: 8px; }
.vendor-empty-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.vendor-empty-state > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #edf6f3; color: var(--teal); }
.vendor-empty-state > span svg { width: 24px; }
.vendor-empty-state h3 { margin: 12px 0 4px; color: var(--navy); font-size: 13px; }
.vendor-empty-state p { margin: 0; font-size: 9px; }
.customer-detail-logo { background: linear-gradient(145deg, #315fa8, #6d67c9); }
.customer-detail-tabs button { min-width: 120px; }
.customer-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-address-card { padding: 18px; }
.customer-address-card.primary { border-color: #badfd6; box-shadow: 0 8px 24px rgba(8,126,123,.06); }
.address-card-head { display: flex; align-items: center; gap: 10px; }
.address-card-head > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #edf8f5; color: var(--teal); }
.address-card-head > span svg { width: 17px; }
.address-card-head > div { min-width: 0; flex: 1; }
.address-card-head b, .address-card-head small { display: block; }
.address-card-head b { color: var(--navy); font-size: 11px; }
.address-card-head small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.address-card-head em { padding: 4px 7px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 7px; font-style: normal; font-weight: 750; }
.customer-address-card > p { min-height: 38px; margin: 18px 0; color: #53676c; font-size: 9px; line-height: 1.65; }
.customer-address-card > div:last-child { display: flex; justify-content: space-between; gap: 8px; }
.customer-add-address { min-height: 178px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bfd8d2; border-radius: 13px; background: #f8fbfa; color: var(--teal); cursor: pointer; }
.customer-add-address:hover { border-color: var(--teal); background: #f0f9f6; }
.customer-add-address > svg { width: 22px; margin-bottom: 9px; }
.customer-add-address b { color: var(--navy); font-size: 10px; }
.customer-add-address small { margin-top: 4px; color: var(--muted); font-size: 8px; }

/* Vendor approval requests */
.vendor-request-flow { margin-bottom: 17px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.vendor-request-flow > span { min-width: 0; display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; flex: 1; }
.vendor-request-flow > span i { width: 30px; height: 30px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 9px; background: #eef3f2; color: #87989c; font-size: 9px; font-style: normal; font-weight: 800; }
.vendor-request-flow > span b { color: var(--navy); font-size: 10px; }
.vendor-request-flow > span small { color: var(--muted); font-size: 8px; }
.vendor-request-flow > span.done i { background: var(--green-soft); color: var(--green); }
.vendor-request-flow > span.current i { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(8,126,123,.18); }
.vendor-request-flow > svg { width: 15px; flex: 0 0 auto; color: #a6b5b7; }
.vendor-request-list { padding: 4px 18px 18px; }
.vendor-request-list > article { padding: 15px 3px; display: grid; grid-template-columns: minmax(190px, 1.15fr) minmax(350px, 2fr) 110px auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.request-vendor { display: flex; align-items: center; gap: 10px; }
.request-vendor > div { min-width: 0; }
.request-vendor b, .request-vendor small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-vendor b { color: var(--navy); font-size: 10px; }
.request-vendor small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.request-meta small, .request-meta b { display: block; }
.request-meta small { color: var(--muted); font-size: 7px; }
.request-meta b { margin-top: 3px; color: #40575e; font-size: 9px; }
.request-state small { margin-top: 5px; display: block; color: var(--muted); font-size: 7px; }
.request-actions { display: flex; align-items: center; gap: 7px; }
.request-actions .secondary-button, .request-actions button { min-height: 34px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.reject-button, .reject-submit-button { border: 1px solid #efcaca; border-radius: 9px; background: white; color: #c74c4c; font-weight: 750; cursor: pointer; }
.reject-button:hover, .reject-submit-button:hover { background: #fff3f3; }
.approve-button { border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; font-weight: 750; cursor: pointer; }
.approve-button:hover { background: #128a60; }
.vendor-request-list > article.request-resolved { background: #fbfdfc; opacity: .76; }
.request-decision-recorded { padding: 8px 10px; border: 1px solid #cee7de; border-radius: 9px; background: #f0faf6; color: var(--green); font-size: 8px; font-weight: 750; white-space: nowrap; }
.approval-confirm-card { width: min(430px, 92vw); padding: 28px; text-align: center; }
.approval-icon { width: 54px; height: 54px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 16px; }
.approval-icon.success { background: var(--green-soft); color: var(--green); }
.approval-icon svg { width: 24px; }
.approval-confirm-card h2 { margin: 0; color: var(--navy); font-size: 19px; }
.approval-confirm-card > p { margin: 7px auto 17px; max-width: 330px; color: var(--muted); font-size: 10px; }
.approval-checklist { padding: 12px; display: grid; gap: 8px; border-radius: 11px; background: #f4faf7; text-align: left; }
.approval-checklist span { color: #39705e; font-size: 9px; }
.approval-note { margin-top: 15px; display: block; color: #50646a; font-size: 9px; font-weight: 700; text-align: left; }
.request-decision-drawer { width: min(540px, 94vw); }
.reject-submit-button { min-height: 38px; padding: 0 15px; background: #d85252; color: white; }
.request-profile-summary { margin-bottom: 14px; padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #dce9e6; border-radius: 11px; background: #f7faf9; }
.request-profile-summary > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: white; color: var(--teal); }
.request-profile-summary > span svg { width: 19px; }
.request-profile-summary > div { min-width: 0; flex: 1; }
.request-profile-summary b, .request-profile-summary small { display: block; }
.request-profile-summary b { color: var(--navy); font-size: 11px; }
.request-profile-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-profile-summary em { padding: 5px 8px; border-radius: 20px; background: #fff2df; color: #a96b18; font-size: 8px; font-style: normal; font-weight: 750; }
.request-review-details { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.request-review-details div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.request-review-details dt, .request-review-details dd { margin: 0; }
.request-review-details dt { color: var(--muted); font-size: 8px; }
.request-review-details dd { margin-top: 3px; color: var(--navy); font-size: 9px; font-weight: 700; }
.review-document-list { margin-top: 10px; display: grid; gap: 8px; }
.review-document-row { min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfb; }
.review-document-row.pending { border-color: #f0d7bd; background: #fff9f2; }
.review-document-row.verified { border-color: #bfe3d6; background: #f4fbf8; }
.review-document-row.rejected { border-color: #efc7c7; background: #fff7f7; }
.review-document-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e7f8f1; color: var(--green); font-size: 10px; font-weight: 800; }
.review-document-row.pending .review-document-mark { background: #fff0df; color: var(--orange); }
.review-document-row.rejected .review-document-mark { background: #fee9e9; color: var(--red); }
.review-document-row > div { min-width: 0; }
.review-document-list b, .review-document-list small { display: block; }
.review-document-list b { color: var(--navy); font-size: 10px; }
.review-document-list small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.document-review-actions { display: flex; align-items: center; gap: 5px; }
.document-view-button, .document-verify-button, .document-reject-button { min-height: 31px; padding: 0 9px; border: 1px solid #b8dad3; border-radius: 8px; background: white; color: var(--teal); font-size: 8px; font-weight: 750; white-space: nowrap; }
.document-verify-button { border-color: #b9dfd0; color: var(--green); }
.document-reject-button { border-color: #efcaca; color: var(--red); }
.document-view-button:hover:not(:disabled) { border-color: var(--teal); background: #effaf7; }
.document-verify-button:hover:not(:disabled) { border-color: var(--green); background: #effaf5; }
.document-reject-button:hover:not(:disabled) { border-color: var(--red); background: #fff2f2; }
.document-view-button:disabled, .document-verify-button:disabled, .document-reject-button:disabled { border-color: var(--line); background: #f5f7f6; color: #9ba9a6; cursor: not-allowed; opacity: 1; }
.approve-button:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .55; }
@media (max-width: 640px) {
    .review-document-row { grid-template-columns: 22px minmax(0, 1fr); }
    .document-review-actions { grid-column: 2; flex-wrap: wrap; }
}

/* Interactive zone setup */
.zone-operations-strip { margin-bottom: 17px; padding: 12px 16px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; border: 1px solid #dce9e6; border-radius: 13px; background: white; }
.zone-operations-strip > span { min-width: 0; padding: 0 15px; border-right: 1px solid var(--line); }
.zone-operations-strip > span:first-child { padding-left: 0; display: flex; align-items: center; gap: 10px; }
.zone-operations-strip > span:last-child { padding-right: 0; border-right: 0; }
.zone-operations-strip i.live { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(23,166,115,.11); }
.zone-operations-strip i.live.offline { background: var(--red); box-shadow: 0 0 0 5px rgba(216,82,82,.11); }
.zone-operations-strip small, .zone-operations-strip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-operations-strip small { color: var(--muted); font-size: 8px; }
.zone-operations-strip b { margin-top: 2px; color: var(--navy); font-size: 10px; }
.zone-serviceability { margin-bottom: 17px; padding: 14px 16px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(210px, 330px) auto; align-items: center; gap: 11px; }
.zone-serviceability > div { display: flex; align-items: center; gap: 10px; }
.zone-serviceability > div > span { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.zone-serviceability > div > span svg { width: 17px; }
.zone-serviceability h2, .zone-serviceability p { margin: 0; }
.zone-serviceability h2 { color: var(--navy); font-size: 11px; }
.zone-serviceability > div p { margin-top: 2px; color: var(--muted); font-size: 8px; }
.zone-serviceability input { width: 100%; height: 38px; margin: 0; }
.zone-serviceability-result { grid-column: 2 / -1; min-height: 16px; color: var(--muted); font-size: 8px; font-weight: 650; }
.zone-serviceability-result.success { color: var(--green); }
.zone-serviceability-result.error { color: var(--red); }
.zone-empty-state { padding: 54px 20px; display: grid; justify-items: center; text-align: center; }
.zone-empty-state > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green); }
.zone-empty-state h2 { margin: 15px 0 4px; color: var(--navy); }
.zone-empty-state p { margin: 0 0 16px; color: var(--muted); }
.zone-shape { padding: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.zone-shape b, .zone-shape small { display: block; pointer-events: none; }
.zone-shape b { font-size: 9px; }
.zone-shape small { margin-top: 2px; font-size: 6px; font-weight: 650; opacity: .8; }
.zone-shape:hover, .zone-shape.active { z-index: 2; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(7,59,76,.15); }
.zone-shape.active { border-width: 3px; background: rgba(36,176,143,.28); }
.map-compass { position: absolute; top: 12px; right: 12px; width: 33px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(210,224,220,.85); border-radius: 17px; background: rgba(255,255,255,.85); color: var(--navy); }
.map-compass b { font-size: 8px; }
.map-compass i { width: 1px; height: 17px; background: var(--red); }
.zone-map-selection { padding: 14px 18px; display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); }
.zone-map-selection > div { min-width: 150px; flex: 1; }
.zone-map-selection > div small { color: var(--muted); font-size: 7px; letter-spacing: .08em; }
.zone-map-selection h3 { margin: 1px 0; color: var(--navy); font-size: 12px; }
.zone-map-selection p { margin: 0; color: var(--muted); font-size: 8px; }
.zone-map-selection dl { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 20px; }
.zone-map-selection dl div { min-width: 70px; }
.zone-map-selection dt, .zone-map-selection dd { margin: 0; }
.zone-map-selection dt { color: var(--muted); font-size: 7px; }
.zone-map-selection dd { margin-top: 3px; color: var(--navy); font-size: 9px; font-weight: 750; }
.zone-legend { margin: 15px 20px 18px; padding-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); }
.zone-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.zone-legend i { width: 7px; height: 7px; border-radius: 50%; }
.zone-legend i.teal { background: var(--teal); }.zone-legend i.blue { background: var(--blue); }.zone-legend i.violet { background: var(--violet); }.zone-legend i.orange { background: var(--orange); }
.zone-card > .zone-rule-grid { grid-template-columns: 1fr 1fr; gap: 10px 6px; }
.zone-rule-grid span.full { grid-column: 1 / -1; }
.zone-rule-grid span { padding: 7px 8px; border-radius: 8px; background: #f7faf9; }
.zone-rule-drawer { width: min(660px, 95vw); }
.weekly-schedule { display: grid; gap: 8px; }
.schedule-row { padding: 9px 10px; display: grid; grid-template-columns: 1fr 42px 110px 110px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.schedule-row > div b, .schedule-row > div small { display: block; }
.schedule-row > div b { color: var(--navy); font-size: 9px; }
.schedule-row > div small { color: var(--green); font-size: 7px; }
.schedule-row > label:not(.day-switch) { color: var(--muted); font-size: 7px; font-weight: 650; }
.schedule-row input[type="time"] { height: 34px; margin-top: 3px; padding: 0 7px; font-size: 8px; }
.schedule-row.closed { background: #f4f6f5; opacity: .72; }
.schedule-row.closed > div small { color: var(--red); }
.day-switch { position: relative; width: 36px; height: 21px; display: block; }
.day-switch input { position: absolute; opacity: 0; }
.day-switch i { position: absolute; inset: 0; border-radius: 20px; background: #ccd7d5; cursor: pointer; transition: .18s; }
.day-switch i::after { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; content: ""; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .18s; }
.day-switch input:checked + i { background: var(--green); }
.day-switch input:checked + i::after { transform: translateX(15px); }

/* Staff and role management */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.staff-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-size: 9px; font-weight: 800; }
.staff-avatar.tone-blue { background: #eaf2fd; color: var(--blue); }.staff-avatar.tone-mint { background: var(--green-soft); color: var(--green); }.staff-avatar.tone-violet { background: #f1edfb; color: var(--violet); }.staff-avatar.tone-orange { background: #fff1e3; color: #b66c24; }
.role-badge { padding: 5px 8px; border-radius: 8px; background: #f1f5f4; color: #50666c; font-size: 8px; font-weight: 700; white-space: nowrap; }
.staff-drawer { width: min(570px, 94vw); }
.role-select-card { color: #50646a; font-size: 10px; font-weight: 700; }
.role-select-card > span { margin-top: 9px; padding: 10px; display: block; border: 1px solid #d9e9e5; border-radius: 9px; background: #f7fbf9; }
.role-select-card b, .role-select-card small { display: block; }
.role-select-card b { color: var(--teal); font-size: 9px; }
.role-select-card small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.role-summary-strip { margin-bottom: 17px; padding: 14px 17px; display: grid; grid-template-columns: repeat(4, .55fr) 1.6fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.role-summary-strip > span { padding-right: 12px; border-right: 1px solid var(--line); }
.role-summary-strip > span b, .role-summary-strip > span small { display: block; }
.role-summary-strip > span b { color: var(--navy); font-size: 18px; }
.role-summary-strip > span small { color: var(--muted); font-size: 8px; }
.role-summary-strip > p { margin: 0; display: flex; align-items: center; gap: 10px; }
.role-summary-strip > p > svg { width: 31px; height: 31px; padding: 7px; border-radius: 9px; background: var(--green-soft); color: var(--teal); }
.role-summary-strip > p b, .role-summary-strip > p small { display: block; }
.role-summary-strip > p b { color: var(--navy); font-size: 9px; }
.role-summary-strip > p small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.roles-grid { margin-bottom: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card { padding: 17px; }
.role-card-head { display: flex; align-items: center; }
.role-card-head .stat-icon { width: 39px; height: 39px; }
.role-card-head > em { margin-left: auto; padding: 4px 7px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 7px; font-style: normal; font-weight: 750; }
.role-card-head > em.system { background: #eaf2fd; color: var(--blue); }
.role-card-head .icon-button { width: 31px; height: 31px; margin-left: 4px; }
.role-card h2 { margin: 14px 0 4px; color: var(--navy); font-size: 13px; }
.role-card > p { min-height: 36px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.role-card-stats { margin: 14px 0 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-card-stats span { padding: 9px; border-radius: 9px; background: #f7faf9; }
.role-card-stats b, .role-card-stats small { display: block; }
.role-card-stats b { color: var(--navy); font-size: 13px; }
.role-card-stats small { color: var(--muted); font-size: 7px; }
.role-permission-preview { display: flex; flex-wrap: wrap; gap: 5px; }
.role-permission-preview span { padding: 4px 6px; border-radius: 6px; background: #edf8f5; color: var(--teal); font-size: 7px; font-weight: 700; }
.role-manage-button { width: 100%; margin-top: 14px; padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--teal); font-size: 8px; font-weight: 750; cursor: pointer; }
.role-manage-button svg { width: 13px; }
.permission-overview { margin-bottom: 10px; overflow: hidden; }
.permission-cell { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 7px; font-size: 9px; font-weight: 800; }
.permission-cell.allowed { background: var(--green-soft); color: var(--green); }
.permission-cell.denied { background: #f1f4f3; color: #a0adaf; }
.role-drawer { width: min(760px, 96vw); }
.role-permission-matrix { margin-top: 12px; min-width: 610px; }
.permission-matrix-head, .permission-matrix-row { display: grid; grid-template-columns: minmax(145px, 1.5fr) repeat(5, 60px); align-items: center; }
.permission-matrix-head { padding: 0 9px 7px; color: var(--muted); font-size: 7px; text-align: center; }
.permission-matrix-head b { text-align: left; }
.permission-matrix-row { min-height: 42px; padding: 5px 9px; border-top: 1px solid var(--line); }
.permission-matrix-row > b { color: #425a60; font-size: 8px; }
.permission-matrix-row > label { position: relative; width: 24px; height: 24px; margin: auto; cursor: pointer; }
.permission-matrix-row input { position: absolute; opacity: 0; }
.permission-matrix-row label > i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d7e2df; border-radius: 7px; background: white; color: transparent; font-size: 8px; font-style: normal; transition: .16s; }
.permission-matrix-row input:checked + i { border-color: #aedccc; background: var(--green-soft); color: var(--green); }
.role-drawer .drawer-section { overflow-x: auto; }

/* Product import and export actions */
.product-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.product-import-drawer { width: min(620px, 95vw); }
.import-guide { margin-bottom: 15px; padding: 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfa; }
.import-guide > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.import-guide > span i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: white; color: #829397; font-style: normal; font-weight: 800; }
.import-guide > span.done i { background: var(--green-soft); color: var(--green); }
.import-guide > span.current { color: var(--teal); }
.import-guide > span.current i { background: var(--teal); color: white; }
.import-guide > svg { width: 12px; color: #a2b2b4; }
.import-template-card { width: 100%; margin-top: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfe4df; border-radius: 10px; background: #f6fbf9; text-align: left; cursor: pointer; }
.import-template-card:hover { border-color: var(--teal); background: #eff9f6; }
.import-template-card > svg { width: 20px; flex: 0 0 auto; color: var(--teal); }
.import-template-card > span { min-width: 0; flex: 1; }
.import-template-card b, .import-template-card small { display: block; }
.import-template-card b { color: var(--navy); font-size: 9px; }
.import-template-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.import-template-card em { padding: 4px 7px; border-radius: 6px; background: white; color: var(--green); font-size: 7px; font-style: normal; font-weight: 800; }
.import-required-columns { margin-top: 13px; }
.import-required-columns > small { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.import-required-columns > div { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.import-required-columns span { padding: 4px 7px; border-radius: 6px; background: #f1f5f4; color: #62767b; font-size: 7px; }
.product-import-drop { margin-top: 12px; min-height: 155px; }
.import-file-preview { margin-top: 10px; }
.import-validation-note { padding: 13px; display: flex; gap: 10px; border: 1px solid #d4e5f5; border-radius: 11px; background: #f3f8fd; }
.import-validation-note > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: white; color: var(--blue); }
.import-validation-note > span svg { width: 16px; }
.import-validation-note b { color: var(--navy); font-size: 9px; }
.import-validation-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* New order processing workspace */
.new-orders-heading { margin-bottom: 18px; }
.new-order-stats { margin-bottom: 16px; }
.new-order-queue { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.queue-heading { padding: 13px 16px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.queue-heading > div { display: flex; align-items: center; gap: 7px; }
.queue-heading b { color: var(--navy); font-size: 10px; }
.queue-heading small, .queue-heading > span { color: var(--muted); font-size: 8px; }
.queue-heading > span { padding: 4px 7px; border-radius: 7px; background: #f2f6f5; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,166,115,.12); }
.queue-scroll { padding: 9px; display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 8px; overflow-x: auto; }
.order-queue-card { min-width: 0; padding: 10px; display: grid; grid-template-columns: 34px minmax(115px, 1fr) auto auto 14px; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; background: #f8faf9; color: #5d7076; text-align: left; cursor: pointer; }
.order-queue-card:hover { border-color: #d4e5e1; background: #f4faf8; }
.order-queue-card.active { border-color: #9fd6ca; background: #edf9f5; box-shadow: inset 3px 0 var(--teal); }
.queue-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #e9f3fd; color: var(--blue); font-size: 10px; font-weight: 850; }
.queue-avatar.tone-orange, .customer-order-avatar.tone-orange { background: #fff2e6; color: #df7a24; }
.queue-avatar.tone-violet, .customer-order-avatar.tone-violet { background: #f2edfc; color: var(--violet); }
.queue-avatar.tone-blue, .customer-order-avatar.tone-blue { background: #eaf2fd; color: var(--blue); }
.order-queue-card > span:nth-child(2) { min-width: 0; }
.order-queue-card > span:nth-child(2) b, .order-queue-card > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-queue-card > span:nth-child(2) b { color: var(--navy); font-size: 9px; }
.order-queue-card > span:nth-child(2) small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.order-queue-card em { padding: 3px 6px; border-radius: 6px; background: white; color: var(--teal); font-size: 7px; font-style: normal; font-weight: 800; }
.order-queue-card strong { color: var(--navy); font-size: 9px; white-space: nowrap; }
.order-queue-card > svg { width: 12px; color: #8ba09d; }
.incoming-order-card { overflow: hidden; }
.incoming-order-head { min-height: 76px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.incoming-order-head > div:last-child { display: flex; align-items: center; gap: 7px; }
.order-reference { color: var(--teal); font-size: 16px; font-weight: 850; letter-spacing: -.02em; }
.incoming-order-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.channel-pill { padding: 5px 8px; border-radius: 7px; background: #edf3fe; color: var(--blue); font-size: 8px; font-weight: 800; }
.channel-pill.b2b { background: #f2edfc; color: var(--violet); }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; }
.order-detail-main { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.order-customer-card { margin-bottom: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.customer-order-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-size: 12px; font-weight: 850; }
.order-customer-card > div { min-width: 0; flex: 1; }
.order-customer-card small { color: var(--teal); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.order-customer-card h2 { margin: 2px 0; color: var(--navy); font-size: 12px; }
.order-customer-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.order-items-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.order-items-title { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; }
.order-items-title h2 { margin: 0; color: var(--navy); font-size: 11px; }
.order-items-title p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.order-items-title > span { padding: 4px 7px; border-radius: 7px; background: #f1f6f5; color: #5e7378; font-size: 8px; font-weight: 700; }
.order-items-table th:first-child { width: 48%; }
.order-items-table td { padding-top: 11px; padding-bottom: 11px; }
.medicine-line { display: flex; align-items: center; gap: 9px; }
.medicine-thumb { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #fff1e3; color: #e47d23; font-size: 9px; font-weight: 850; }
.medicine-thumb.tone-blue { background: #edf3fe; color: var(--blue); }
.medicine-thumb.tone-mint, .medicine-thumb.tone-green { background: var(--green-soft); color: var(--green); }
.medicine-thumb.tone-violet { background: #f2edfc; color: var(--violet); }
.medicine-line b, .medicine-line small { display: block; }
.medicine-line b { color: var(--navy); font-size: 9px; }
.medicine-line small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.stock-chip { padding: 4px 7px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 7px; font-weight: 750; }
.items-foot { min-height: 42px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fafcfb; }
.items-foot > span { color: var(--muted); font-size: 7px; }
.items-foot button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 750; cursor: pointer; }
.items-foot button svg { width: 12px; }
.order-side { padding: 18px; background: #fafcfb; }
.order-summary-card, .driver-assignment-card, .prescription-check-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.driver-assignment-card, .prescription-check-card { margin-top: 12px; }
.order-summary-card h2, .driver-assignment-card h2 { margin: 0; color: var(--navy); font-size: 10px; }
.order-summary-card dl { margin: 12px 0 9px; }
.order-summary-card dl > div { padding: 5px 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.order-summary-card dd { margin: 0; color: var(--ink); font-weight: 750; }
.order-summary-card .order-grand-total { margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--navy); font-weight: 750; }
.order-grand-total dd { color: var(--navy); font-size: 17px; }
.payment-state { display: block; padding: 7px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 750; text-align: center; }
.driver-card-title { display: flex; align-items: center; gap: 9px; }
.driver-card-title > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #edf8f5; color: var(--teal); }
.driver-card-title > span svg { width: 16px; }
.driver-card-title p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.driver-assignment-card > button { margin-top: 12px; }
.assigned-driver { margin-top: 11px; padding: 9px; display: flex; align-items: center; gap: 8px; border-radius: 9px; background: #f4faf8; }
.assigned-driver[hidden] { display: none; }
.assigned-driver > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--teal); color: white; font-size: 8px; font-weight: 800; }
.assigned-driver > div { min-width: 0; flex: 1; }
.assigned-driver b, .assigned-driver small { display: block; }
.assigned-driver b { color: var(--navy); font-size: 8px; }
.assigned-driver small { color: var(--muted); font-size: 7px; }
.assigned-driver em { color: var(--green); font-size: 7px; font-style: normal; font-weight: 800; }
.prescription-check-card { display: flex; gap: 9px; }
.prescription-check-card > span { color: var(--green); }
.prescription-check-card > span svg { width: 17px; }
.prescription-check-card b { color: var(--navy); font-size: 8px; }
.prescription-check-card p { margin: 3px 0 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.order-action-bar { min-height: 72px; padding: 12px 18px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: white; }
.order-action-bar > div { margin-right: auto; }
.order-action-bar b, .order-action-bar small { display: block; }
.order-action-bar b { color: var(--navy); font-size: 9px; }
.order-action-bar small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.order-action-bar select, .driver-filter-row select { height: 38px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #51666d; font-size: 9px; }
.driver-assignment-drawer { width: min(620px, 95vw); }
.driver-filter-row { margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.driver-filter-row .table-search { width: 100%; }
.driver-list { display: grid; gap: 8px; }
.driver-option { position: relative; padding: 11px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.driver-option[hidden] { display: none; }
[data-filter-row][hidden], [data-filter-empty][hidden] { display: none; }
.table-empty-state { padding: 30px 16px; text-align: center; }
.table-empty-state b, .table-empty-state small { display: block; }
.table-empty-state b { color: var(--navy); font-size: 14px; }
.table-empty-state small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.driver-option:hover, .driver-option.selected { border-color: #a8d8cd; background: #f2faf7; }
.driver-option input { position: absolute; opacity: 0; }
.driver-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); color: white; font-size: 9px; font-weight: 850; }
.driver-avatar.blue { background: var(--blue); }
.driver-avatar.violet { background: var(--violet); }
.driver-option > span:nth-of-type(2) { min-width: 0; }
.driver-option b, .driver-option small { display: block; }
.driver-option > span:nth-of-type(2) b { color: var(--navy); font-size: 9px; }
.driver-option small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.driver-option > em { text-align: right; font-style: normal; }
.driver-option > em b { color: var(--green); font-size: 9px; }
.assignment-note { margin-top: 13px; padding: 11px; display: flex; gap: 9px; border-radius: 10px; background: #f3f8fd; color: var(--blue); }
.assignment-note svg { width: 17px; flex: 0 0 auto; }
.assignment-note p { margin: 0; color: #607783; font-size: 8px; line-height: 1.55; }

/* Driver management */
.driver-setup-flow { margin-bottom: 17px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.driver-setup-flow > span { min-width: 0; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; color: var(--muted); }
.driver-setup-flow > span > i { width: 26px; height: 26px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 8px; background: #f1f5f4; color: #809196; font-size: 8px; font-style: normal; font-weight: 850; }
.driver-setup-flow > span > b { color: #4e636a; font-size: 9px; }
.driver-setup-flow > span > small { font-size: 7px; }
.driver-setup-flow > span.active > i { background: var(--teal); color: white; }
.driver-setup-flow > span.active > b { color: var(--teal); }
.driver-setup-flow > svg { width: 14px; flex: 0 0 auto; color: #9dafb0; }
.driver-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 16px; align-items: start; }
.driver-form-column { display: grid; gap: 14px; }
.driver-form-card { padding: 17px; }
.driver-section-head { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.driver-section-head > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--green-soft); color: var(--teal); }
.driver-section-head > span svg { width: 17px; }
.driver-section-head > div { min-width: 0; flex: 1; }
.driver-section-head h2 { margin: 0; color: var(--navy); font-size: 11px; }
.driver-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.driver-section-head em { padding: 4px 7px; border-radius: 7px; background: #f2f6f5; color: var(--muted); font-size: 7px; font-style: normal; font-weight: 750; }
.driver-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.driver-form-grid label { color: #52666c; font-size: 8px; font-weight: 750; }
.driver-form-grid label.full { grid-column: 1 / -1; }
.driver-form-grid input, .driver-form-grid select, .driver-form-grid textarea { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #dce7e5; border-radius: 9px; outline: 0; background: #fbfdfc; color: var(--ink); font-size: 9px; font-weight: 500; resize: vertical; }
.driver-form-grid input, .driver-form-grid select { height: 39px; }
.driver-form-grid input:focus, .driver-form-grid select:focus, .driver-form-grid textarea:focus { border-color: #8fcdbf; box-shadow: 0 0 0 3px rgba(8,126,123,.08); }
.driver-form-grid .field-helper { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 500; }
.driver-form-grid .field-helper.error { color: var(--red); font-weight: 750; }
.driver-document-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.driver-document-grid label { min-height: 100px; padding: 13px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #bcd6cf; border-radius: 10px; background: #f8fbfa; text-align: center; cursor: pointer; }
.driver-document-grid input { display: none; }
.driver-document-grid span { color: var(--teal); }
.driver-document-grid span svg { width: 19px; }
.driver-document-grid b { margin-top: 5px; color: var(--navy); font-size: 8px; }
.driver-document-grid small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.driver-account-toggles { margin-top: 14px; }
.driver-create-side { position: sticky; top: 94px; display: grid; gap: 12px; }
.driver-ready-card { padding: 20px; text-align: center; }
.driver-ready-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--teal), var(--navy)); color: white; box-shadow: 0 10px 22px rgba(8,126,123,.2); }
.driver-ready-icon svg { width: 24px; }
.driver-ready-card h2 { margin: 0; color: var(--navy); font-size: 12px; }
.driver-ready-card > p { margin: 5px 0 15px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.driver-ready-list { margin-bottom: 15px; text-align: left; }
.driver-ready-list > span { padding: 9px 0; display: grid; grid-template-columns: 22px 1fr; column-gap: 7px; border-bottom: 1px solid var(--line); color: #8a999e; font-size: 8px; }
.driver-ready-list > span::first-letter { font-weight: 850; }
.driver-ready-list b, .driver-ready-list small { display: block; }
.driver-ready-list b { color: #4d6268; }
.driver-ready-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.driver-ready-list > span.done { color: var(--green); }
.driver-submit-note { display: block; margin-top: 8px; color: var(--muted); font-size: 7px; }
.driver-safety-note { padding: 13px; display: flex; gap: 9px; border: 1px solid #d6e6f6; border-radius: 12px; background: #f3f8fd; }
.driver-safety-note > span { color: var(--blue); }
.driver-safety-note svg { width: 17px; }
.driver-safety-note b { color: var(--navy); font-size: 8px; }
.driver-safety-note p { margin: 3px 0 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.driver-table-profile { display: flex; align-items: center; gap: 9px; }
.driver-table-profile > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--green-soft); color: var(--teal); font-size: 8px; font-weight: 850; }
.driver-table-profile > span.tone-blue { background: #edf3fe; color: var(--blue); }
.driver-table-profile > span.tone-violet { background: #f2edfc; color: var(--violet); }
.driver-table-profile > span.tone-orange { background: #fff2e6; color: #df7a24; }
.driver-table-profile b, .driver-table-profile small, .table-subtext { display: block; }
.driver-table-profile small, .table-subtext { margin-top: 2px; color: var(--muted); font-size: 7px; }
.driver-order-count { padding: 4px 7px; border-radius: 7px; background: #f1f5f4; color: #536a70; font-size: 8px; font-weight: 700; }
.driver-rating { color: #de8a27; }
.driver-edit-drawer { width: min(620px, 95vw); }
.driver-edit-profile { margin-bottom: 15px; padding: 12px; display: flex; align-items: center; gap: 10px; border-radius: 11px; background: #f4faf8; }
.driver-edit-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); color: white; font-size: 9px; font-weight: 850; }
.driver-edit-profile > div { min-width: 0; flex: 1; }
.driver-edit-profile b, .driver-edit-profile small { display: block; }
.driver-edit-profile b { color: var(--navy); font-size: 9px; }
.driver-edit-profile small { color: var(--muted); font-size: 7px; }
.driver-edit-profile em { padding: 4px 7px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 7px; font-style: normal; font-weight: 800; }

/* Admin typography readability */
.app-shell .nav-item { font-size: 13px; }
.app-shell .nav-submenu a { color: #63767d; font-size: 11px; }
.app-shell .workspace-switch b, .app-shell .sidebar-user strong { font-size: 12px; }
.app-shell .workspace-switch small, .app-shell .sidebar-user span { font-size: 9px; }
.app-shell .page-heading h1 { font-size: 27px; }
.app-shell .page-heading > div > p:last-child { color: #596e76; font-size: 12px; }
.app-shell .breadcrumb { color: #7b8b91; font-size: 10px; }
.app-shell .panel-head h2, .app-shell .settings-head h2 { font-size: 14px; }
.app-shell .panel-head p, .app-shell .settings-head p, .app-shell .settings-subhead p { color: #60747b; font-size: 10px; }
.app-shell .primary-button, .app-shell .secondary-button { font-size: 11px; }
.app-shell th { color: #6d7e84; font-size: 9px; }
.app-shell td { color: #50656d; font-size: 10px; }
.app-shell .form-grid label, .app-shell .auth-form > label, .app-shell .field-label { color: #435b63; font-size: 9px; }
.app-shell input, .app-shell select, .app-shell textarea { color: #213840; font-size: 10px; }
.app-shell .module-stats small, .app-shell .mini-stats small, .app-shell .media-overview-grid small { color: #63767d; font-size: 9px; }
.app-shell .module-stats em, .app-shell .mini-stats em, .app-shell .media-overview-grid em { font-size: 8px; }
.app-shell .status, .app-shell .channel-badge, .app-shell .channel-pill { font-size: 9px; }
.app-shell .medicine-line b { color: #052f3d; font-size: 11px; }
.app-shell .medicine-line small { color: #5e727a; font-size: 9px; }
.app-shell .stock-chip { font-size: 8px; }
.app-shell .order-items-title h2, .app-shell .order-customer-card h2 { font-size: 13px; }
.app-shell .order-items-title p, .app-shell .order-customer-card p, .app-shell .incoming-order-head p { color: #5e727a; font-size: 9px; }
.app-shell .order-summary-card h2, .app-shell .driver-assignment-card h2 { font-size: 11px; }
.app-shell .order-summary-card dl > div { color: #60737a; font-size: 9px; }
.app-shell .media-file-name b { color: #092f3b; font-size: 10px; }
.app-shell .media-file-name small { color: #61747b; font-size: 8px; }
.app-shell .webp-badge, .app-shell .media-size { font-size: 8px; }

@keyframes pop { from { opacity: 0; transform: translateY(5px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes drawerIn { from { opacity: .65; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes drawerOut { to { opacity: .7; transform: translateX(100%); } }
@keyframes scrimOut { to { opacity: 0; } }
@keyframes mapSpin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .attention-panel { padding-bottom: 12px; }
    .zone-cards { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .media-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .mini-stats { grid-template-columns: repeat(2, 1fr); }
    .module-data-stats { grid-template-columns: repeat(2, 1fr); }
    .push-compose-layout { grid-template-columns: 1fr; }
    .push-preview-column { grid-template-columns: 1fr 1fr; }
    .catalog-overview-layout { grid-template-columns: 1fr; }
    .catalog-side-column { grid-template-columns: 1fr 1fr; }
    .product-editor-layout { grid-template-columns: minmax(0, 1fr) 250px; }
    .editor-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .vendor-overview-stats { grid-template-columns: repeat(2, 1fr); }
    .vendor-request-list > article { grid-template-columns: 1fr 1.7fr; }
    .request-state { grid-column: 1; }
    .request-actions { grid-column: 2; justify-content: flex-end; }
    .zone-map-selection { align-items: flex-start; flex-wrap: wrap; }
    .zone-map-selection dl { width: 100%; grid-template-columns: repeat(4, 1fr); }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .role-summary-strip { grid-template-columns: repeat(4, 1fr); }
    .role-summary-strip > p { grid-column: 1 / -1; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-main { border-right: 0; border-bottom: 1px solid var(--line); }
    .order-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .driver-assignment-card, .prescription-check-card { margin-top: 0; }
    .driver-create-layout { grid-template-columns: 1fr; }
    .driver-create-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --sidebar: 260px; }
    .sidebar { transform: translateX(-100%); transition: .25s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; z-index: 39; inset: 0; background: rgba(3,35,44,.55); backdrop-filter: blur(3px); }
    body.sidebar-open .sidebar-scrim { display: block; }
    .main { margin-left: 0; }
    .menu-button { display: inline-grid; }
    .topbar { padding: 0 20px; }
    .global-search { margin-left: 10px; }
    .page-content { padding: 24px 20px 45px; }
    .dashboard-grid, .zone-layout { grid-template-columns: 1fr; }
    .zone-cards { grid-column: auto; }
    .settings-layout, .profile-layout { grid-template-columns: 1fr; }
    .settings-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
    .settings-tabs button { min-width: 185px; justify-content: flex-start; }
    .profile-card { max-width: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .mobile-auth-brand { width: max-content; height: auto; margin-bottom: 42px; padding: 0; display: flex; border: 0; }
    .product-editor-layout { grid-template-columns: 1fr; }
    .product-editor-side { position: static; grid-template-columns: 1fr 1fr; }
    .editor-help-card { grid-column: 1 / -1; }
    .vendor-overview-grid { grid-template-columns: 1fr; }
    .vendor-overview-side { grid-template-columns: 1fr 1fr; }
    .zone-operations-strip { grid-template-columns: 1fr 1fr; row-gap: 13px; }
    .zone-operations-strip > span:nth-child(2) { border-right: 0; }
    .zone-serviceability { grid-template-columns: 1fr auto; }
    .zone-serviceability > div { grid-column: 1 / -1; }
    .zone-serviceability-result { grid-column: 1 / -1; }
    .request-meta { grid-template-columns: 1fr 1fr; }
    .queue-scroll { grid-template-columns: repeat(3, 285px); }
}

@media (max-width: 650px) {
    .topbar { height: 66px; padding: 0 14px; }
    .global-search { width: auto; flex: 1; }
    .global-search span { display: none; }
    .global-search kbd, .environment { display: none; }
    .page-content { padding: 20px 14px 40px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading h1 { font-size: 22px; }
    .heading-actions { width: 100%; }
    .heading-actions > * { flex: 1; }
    .stats-grid, .mini-stats, .module-stats { grid-template-columns: 1fr 1fr; }
    .module-data-stats { grid-template-columns: 1fr 1fr; }
    .push-stats { grid-template-columns: 1fr 1fr; }
    .push-preview-column { grid-template-columns: 1fr; }
    .push-image-field { align-items: stretch; flex-direction: column; }
    .push-image-field > button { width: 100%; }
    .drawer-media-grid { grid-template-columns: 1fr; }
    .catalog-flow { align-items: stretch; flex-direction: column; gap: 8px; }
    .catalog-flow > svg { align-self: center; transform: rotate(90deg); }
    .catalog-stats { grid-template-columns: 1fr 1fr; }
    .catalog-side-column { grid-template-columns: 1fr; }
    .category-nodes { padding-left: 24px; }
    .product-chips { margin-left: 0; }
    .workflow-mini-guide { align-items: stretch; flex-wrap: wrap; }
    .workflow-mini-guide > small { width: 100%; margin-left: 0; }
    .catalog-drawer, .product-drawer { width: 100%; max-width: 100%; }
    .workflow-context { align-items: stretch; flex-direction: column; }
    .workflow-context > svg { align-self: center; transform: rotate(90deg); }
    .catalog-media-picker { align-items: stretch; flex-wrap: wrap; }
    .catalog-media-picker > button { width: 100%; }
    .pricing-grid { grid-template-columns: 1fr; }
    .dashboard-grid { display: block; }
    .dashboard-grid > * { margin-bottom: 14px; }
    .revenue-panel, .channel-panel { min-height: 320px; }
    .workspace-toolbar { align-items: stretch; flex-direction: column; }
    .tabs { overflow-x: auto; }
    .tabs button { white-space: nowrap; }
    .toolbar-actions, .table-search { width: 100%; }
    .table-search { flex: 1; }
    .media-grid, .zone-cards { grid-template-columns: 1fr; }
    .media-overview-grid { grid-template-columns: 1fr 1fr; }
    .media-filter-bar { grid-template-columns: 1fr 1fr; }
    .media-list-search { grid-column: 1 / -1; }
    .media-filter-bar > select { min-width: 0; }
    .media-shown-count { text-align: right; }
    .media-table-wrap { min-height: 0; overflow: visible; }
    .media-list-table, .media-list-table tbody { display: block; }
    .media-list-table thead { display: none; }
    .media-list-table tr { margin: 10px 12px; padding: 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 16px rgba(3,35,44,.04); }
    .media-list-table td { height: auto; padding: 0; border: 0; }
    .media-list-table td:first-child { grid-column: 2 / 4; grid-row: 1; }
    .media-list-table td:nth-child(2) { grid-column: 1; grid-row: 1 / 3; }
    .media-list-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .media-list-table td:nth-child(4) { grid-column: 2; grid-row: 3; }
    .media-list-table td:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right; }
    .media-list-table td:last-child { grid-column: 3; grid-row: 3; }
    .media-row-actions { align-items: stretch; flex-direction: column; }
    .media-file-name b { max-width: none; }
    .media-list-thumb { width: 48px; height: 62px; }
    .media-preview { height: 180px; }
    .storage-banner { grid-template-columns: 1fr auto; }
    .storage-meter { grid-column: 1 / -1; grid-row: 2; }
    .zone-map { height: 320px; }
    .google-map-key-note { right: 8px; max-width: calc(100% - 16px); }
    .zone-map-switcher { right: 8px; bottom: 8px; left: 8px; }
    .zone-serviceability { grid-template-columns: 1fr; }
    .zone-serviceability > div, .zone-serviceability-result { grid-column: auto; }
    .zone-serviceability .primary-button { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid label.full { grid-column: auto; }
    .security-row { align-items: flex-start; flex-wrap: wrap; }
    .quick-action-grid { grid-template-columns: 1fr; }
    .modal-card { width: 100%; max-width: 100%; border-radius: 0; }
    .toast { right: 14px; left: 14px; min-width: 0; }
    .auth-form-wrap { padding: 30px 22px; }
    .centered-auth-shell { padding: 24px 15px 82px; align-items: center; }
    .centered-auth-card { padding: 31px 24px 25px; border-radius: 18px; }
    .auth-orbit { display: none; }
    .auth-footer { gap: 7px; flex-direction: column; text-align: center; }
    .product-editor-heading .heading-actions { display: none; }
    .editor-progress { align-items: stretch; flex-direction: column; }
    .editor-progress > svg { align-self: center; transform: rotate(90deg); }
    .editor-card { padding: 16px; }
    .editor-card-head { align-items: flex-start; }
    .editor-card-head em { display: none; }
    .editor-pricing-grid, .price-summary, .product-editor-side { grid-template-columns: 1fr; }
    .price-summary { gap: 9px; }
    .price-summary span, .price-summary span:first-child, .price-summary span:last-child { padding: 0 0 9px; border-right: 0; border-bottom: 1px solid #dfebe8; }
    .price-summary span:last-child { padding-bottom: 0; border-bottom: 0; }
    .editor-help-card { grid-column: auto; }
    .mobile-editor-actions { position: sticky; z-index: 20; bottom: 10px; margin: 18px 0 -22px; padding: 9px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(3,35,44,.16); backdrop-filter: blur(12px); }
    .mobile-editor-actions > * { width: 100%; }
    .vendor-title-line { align-items: flex-start; flex-wrap: wrap; }
    .vendor-title-line > .status { margin-left: 60px; }
    .vendor-detail-tabs button { min-width: 135px; flex: 0 0 auto; }
    .vendor-overview-stats, .vendor-payment-stats, .vendor-overview-side { grid-template-columns: 1fr; }
    .vendor-info-list { grid-template-columns: 1fr; }
    .vendor-info-list > div.full { grid-column: auto; }
    .vendor-document-list article { align-items: flex-start; flex-wrap: wrap; }
    .vendor-document-list article > div { min-width: calc(100% - 58px); }
    .vendor-document-list article > em { margin-left: 52px; }
    .vendor-payment-list article { grid-template-columns: 38px 1fr auto; }
    .vendor-payment-list article > em { grid-column: 2 / -1; }
    .customer-address-grid { grid-template-columns: 1fr; }
    .vendor-request-flow { align-items: stretch; flex-direction: column; }
    .vendor-request-flow > svg { align-self: center; transform: rotate(90deg); }
    .vendor-request-list { padding: 4px 14px 14px; }
    .vendor-request-list > article { grid-template-columns: 1fr; }
    .request-meta, .request-state, .request-actions { grid-column: auto; }
    .request-actions { flex-wrap: wrap; justify-content: stretch; }
    .request-actions > * { flex: 1; }
    .zone-operations-strip { grid-template-columns: 1fr; }
    .zone-operations-strip > span { padding: 9px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .zone-operations-strip > span:last-child { border-bottom: 0; }
    .zone-map-selection dl { grid-template-columns: 1fr 1fr; gap: 12px; }
    .schedule-row { grid-template-columns: 1fr 42px; }
    .schedule-row > label:not(.day-switch) { grid-column: span 1; }
    .roles-grid { grid-template-columns: 1fr; }
    .role-summary-strip { grid-template-columns: 1fr 1fr; }
    .role-summary-strip > span:nth-child(2), .role-summary-strip > span:nth-child(4) { border-right: 0; }
    .product-heading-actions > * { min-width: calc(50% - 5px); flex: 1; }
    .import-guide { align-items: stretch; flex-direction: column; }
    .import-guide > svg { align-self: center; transform: rotate(90deg); }
    .new-orders-heading .heading-actions { flex-wrap: wrap; }
    .queue-scroll { display: flex; }
    .order-queue-card { min-width: 270px; }
    .incoming-order-head { align-items: flex-start; flex-direction: column; }
    .order-detail-main, .order-side { padding: 13px; }
    .order-customer-card { align-items: flex-start; flex-wrap: wrap; }
    .order-customer-card > div { min-width: calc(100% - 58px); }
    .order-customer-card > button { width: 100%; }
    .order-items-table { min-width: 680px; }
    .order-side { display: grid; grid-template-columns: 1fr; }
    .order-action-bar { align-items: stretch; flex-direction: column; }
    .order-action-bar > div { margin: 0 0 4px; }
    .order-action-bar select, .order-action-bar button { width: 100%; }
    .driver-filter-row { grid-template-columns: 1fr; }
    .driver-filter-row select { width: 100%; }
    .driver-setup-flow { align-items: stretch; flex-direction: column; }
    .driver-setup-flow > svg { align-self: center; transform: rotate(90deg); }
    .driver-form-grid, .driver-document-grid, .driver-create-side { grid-template-columns: 1fr; }
    .driver-form-grid label.full { grid-column: auto; }
    .driver-edit-profile { align-items: flex-start; flex-wrap: wrap; }
    .driver-edit-profile em { margin-left: 48px; }
    .catalog-icon-options, .catalog-color-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
    .stats-grid, .mini-stats, .module-stats { grid-template-columns: 1fr; }
    .module-data-stats { grid-template-columns: 1fr; }
    .media-overview-grid { grid-template-columns: 1fr; }
    .catalog-stats { grid-template-columns: 1fr; }
    .heading-actions { flex-wrap: wrap; }
    .chart-wrap { padding-inline: 10px; }
    .bar-chart .bar { width: 7px; }
    .zone-shape.west { left: 2%; }
    .zone-shape.south { left: 39%; }
    .top-actions { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.auth-alert { margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.auth-alert-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.auth-alert-success { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.toast.error { background: #991b1b; }
.api-offline-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #fecaca; border-radius: 14px; color: #991b1b; background: #fff7f7; }
.api-offline-banner svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.api-offline-banner b, .api-offline-banner small { display: block; }

/* Final readability pass: keep operational text comfortably legible. */
.app-shell small { font-size: 10px !important; line-height: 1.45; }
.app-shell th { font-size: 10px !important; }
.app-shell td { font-size: 12px !important; }
.app-shell input, .app-shell select, .app-shell textarea { font-size: 12px !important; }
.app-shell .form-grid label,
.app-shell .field-label,
.app-shell .driver-form-grid label,
.app-shell .approval-note,
.app-shell .schedule-row > label:not(.day-switch) { font-size: 11px !important; }
.app-shell .primary-button,
.app-shell .secondary-button,
.app-shell .request-actions button,
.app-shell .media-row-actions button { font-size: 11px !important; }
.app-shell .status,
.app-shell .channel-badge,
.app-shell .channel-pill,
.app-shell .webp-badge,
.app-shell .role-badge,
.app-shell .stock-chip,
.app-shell .verified-label,
.app-shell .directory-badge { font-size: 10px !important; }
.app-shell .panel-head p,
.app-shell .settings-head p,
.app-shell .settings-subhead p,
.app-shell .modal-head p,
.app-shell .drawer-section > p { font-size: 11px !important; line-height: 1.55; }
.app-shell .drawer-section > h3 { font-size: 15px !important; }
.app-shell .drawer-kicker,
.app-shell .editor-kicker { font-size: 9px !important; }
.app-shell .nav-submenu a { font-size: 11px; }
.app-shell .module-stats em,
.app-shell .mini-stats em,
.app-shell .media-overview-grid em,
.app-shell .request-state small { font-size: 10px !important; }
.app-shell .media-file-name b,
.app-shell .module-primary-cell > div b,
.app-shell .medicine-line b,
.app-shell .request-meta b { font-size: 11px !important; }

/* Product import modal */
.app-shell .import-guide > span { font-size: 11px; }
.app-shell .import-template-card { min-height: 68px; padding: 14px; gap: 12px; }
.app-shell .import-template-card > svg { width: 23px; }
.app-shell .import-template-card b { font-size: 12px; }
.app-shell .import-template-card small { margin-top: 4px; font-size: 10px !important; }
.app-shell .import-template-card em { padding: 5px 9px; font-size: 10px; }
.app-shell .import-required-columns > small { font-size: 10px !important; }
.app-shell .import-required-columns > div { margin-top: 9px; gap: 7px; }
.app-shell .import-required-columns span { padding: 6px 9px; font-size: 10px; font-weight: 650; }
.app-shell .drop-zone b { font-size: 12px; }
.app-shell .import-validation-note b { font-size: 11px; }
.app-shell .import-validation-note p { font-size: 10px; }

/* Login readability */
.auth-body small { font-size: 10px !important; line-height: 1.45; }
.auth-body .centered-auth-card > p,
.auth-body .otp-intro > p { font-size: 12px; }
.auth-body .centered-auth-form > label { font-size: 12px; }
.auth-body .auth-input-wrap input { font-size: 13px; }
.auth-body .auth-method-tabs button,
.auth-body .auth-submit { font-size: 11px; }
.auth-body .secure-label,
.auth-body .auth-divider,
.auth-body .otp-resend,
.auth-body .otp-resend button,
.auth-body .otp-demo-note { font-size: 9px; }
