:root {
  --canvas: #EEF1F0;
  --ink: #1F2623;
  --amber: #E8A33D;
  --teal: #146C64;
  --rust: #C0432B;
  --moss: #5C8A3A;
  --surface: #FFFFFF;
  --line: #DEDFDA;
  --muted: #69716D;
  --subtle: #F7F8F7;
  --ink-06: rgba(31, 38, 35, .06);
  --ink-10: rgba(31, 38, 35, .1);
  --ink-16: rgba(31, 38, 35, .16);
  --amber-soft: rgba(232, 163, 61, .14);
  --teal-soft: rgba(20, 108, 100, .10);
  --rust-soft: rgba(192, 67, 43, .10);
  --moss-soft: rgba(92, 138, 58, .11);
  --shadow: 0 1px 2px rgba(31,38,35,.04), 0 12px 34px rgba(31,38,35,.045);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.04; letter-spacing: -.045em; font-weight: 720; }
h2 { margin-bottom: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin: 0 0 4px; font-size: 14px; }
small { line-height: 1.35; }
code { color: var(--teal); font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 14px 18px; color: rgba(255,255,255,.75); background: var(--ink); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 8px; color: #fff; }
.brand-symbol { display: block; flex: 0 0 auto; width: 48px; height: 48px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.12)); }
.brand-copy { display: grid; }
.brand-name { display: inline-flex; font-size: 21px; font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.brand-name span:last-child { color: var(--amber); }
.workspace-switcher { position: relative; margin: 24px 4px 17px; }
.workspace-switcher > summary { list-style: none; }
.workspace-switcher > summary::-webkit-details-marker { display: none; }
.workspace-chip { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.04); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.workspace-chip:hover, .workspace-switcher[open] .workspace-chip { border-color: rgba(232,163,61,.28); background: rgba(255,255,255,.07); }
.workspace-avatar, .user-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.workspace-avatar { color: var(--amber); background: rgba(232,163,61,.12); }
.workspace-chip > span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.workspace-chip > i { color: rgba(255,255,255,.4); font-size: 10px; font-style: normal; transition: transform .15s ease; }
.workspace-switcher[open] .workspace-chip > i { transform: rotate(180deg); }
.workspace-chip small { color: rgba(255,255,255,.4); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-chip strong { overflow: hidden; color: rgba(255,255,255,.85); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu { display: grid; gap: 4px; margin-top: 7px; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: #29312e; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.workspace-menu > p { margin: 3px 6px 5px; color: rgba(255,255,255,.34); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.workspace-menu form { display: block !important; margin: 0; }
.workspace-menu button, .workspace-menu > a { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; column-gap: 8px; width: 100%; min-height: 40px; padding: 6px 7px; border: 0; border-radius: 8px; color: rgba(255,255,255,.67); background: transparent; cursor: pointer; text-align: left; }
.workspace-menu button:hover, .workspace-menu button.active, .workspace-menu > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.workspace-menu button > span, .workspace-menu > a > span { grid-row: span 2; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--amber); background: rgba(232,163,61,.1); font-size: 9px; font-weight: 800; }
.workspace-menu b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu small { color: rgba(255,255,255,.35); font-size: 8px; }
.sidebar-nav { display: grid; }
.sidebar-label { margin: 15px 10px 7px; color: rgba(255,255,255,.32); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-link { position: relative; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; min-height: 41px; gap: 9px; padding: 8px 10px; margin: 1px 0; border-radius: 9px; color: rgba(255,255,255,.61); font-size: 12px; font-weight: 650; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-link.active { color: #fff; background: rgba(232,163,61,.14); box-shadow: inset 3px 0 0 var(--amber); }
.nav-link.ai-nav .nav-icon { color: #fff; background: rgba(20,108,100,.55); }
.nav-link.ai-nav.active { background: rgba(20,108,100,.34); box-shadow: inset 3px 0 0 var(--teal); }
.nav-icon { display: grid; place-items: center; width: 22px; height: 22px; color: rgba(255,255,255,.46); font-size: 15px; }
.nav-link.active .nav-icon { color: var(--amber); }
.nav-link kbd { padding: 3px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: rgba(255,255,255,.4); font: 8px inherit; text-transform: uppercase; }
.sidebar-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-footer > span:last-child { display: grid; }
.sidebar-footer strong { color: rgba(255,255,255,.73); font-size: 10px; }
.sidebar-footer small { color: rgba(255,255,255,.34); font-size: 9px; }
.pulse { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 4px rgba(92,138,58,.13); }
.sidebar-close { display: none !important; color: #fff !important; border-color: rgba(255,255,255,.1) !important; background: rgba(255,255,255,.05) !important; }

.main-content { min-width: 0; width: 100%; max-width: 1680px; margin: 0 auto; padding: 25px clamp(22px, 3.5vw, 54px) 58px; }
.page-content { animation: page-in .24s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
.topbar { position: relative; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.topbar-title { display: flex; align-items: center; min-width: 0; gap: 12px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 9px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.menu-button { display: none !important; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); cursor: pointer; }
.icon-button:hover { border-color: var(--ink-16); background: var(--subtle); }
.command-trigger { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.65); cursor: pointer; }
.command-trigger:hover { border-color: var(--ink-16); background: var(--surface); }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--subtle); font: 9px inherit; }
.status-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid rgba(92,138,58,.22); border-radius: 999px; color: var(--moss); background: var(--moss-soft); font-size: 10px; font-weight: 760; }
.status-chip i { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.status-chip.error { color: var(--rust); border-color: rgba(192,67,43,.2); background: var(--rust-soft); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); }
.user-avatar { color: var(--surface); background: var(--teal); }
.user-chip > span:nth-child(2) { display: grid; min-width: 0; }
.user-chip b { max-width: 130px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.business-identity .workspace-chip { cursor: default; }
.business-identity .workspace-chip:hover { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.business-identity .workspace-chip > i { color: var(--moss); font-size: 11px; }
.profile-menu { position: relative; flex: 0 1 auto; min-width: 0; }
.profile-menu > summary { list-style: none; cursor: pointer; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu .user-chip > i { margin-left: 2px; color: var(--muted); font-size: 9px; font-style: normal; transition: transform .15s ease; }
.profile-menu[open] .user-chip { border-color: rgba(20,108,100,.28); background: var(--surface); box-shadow: 0 0 0 3px var(--teal-soft); }
.profile-menu[open] .user-chip > i { transform: rotate(180deg); }
.profile-popover { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; width: min(280px, calc(100vw - 28px)); padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 22px 55px rgba(31,38,35,.17); }
.profile-summary { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.profile-summary > div { min-width: 0; display: grid; }
.profile-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar.large { width: 38px; height: 38px; border-radius: 10px; }
.profile-popover dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 0; }
.profile-popover dl div { min-width: 0; padding: 8px; border-radius: 8px; background: var(--subtle); }
.profile-popover dt { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-popover dd { overflow: hidden; margin: 2px 0 0; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.profile-popover > a, .profile-popover > form button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 8px 9px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; cursor: pointer; font-size: 10px; font-weight: 750; text-align: left; }
.profile-popover > a:hover, .profile-popover > form button:hover { background: var(--subtle); }
.profile-popover > form { margin: 3px 0 0; padding-top: 3px; border-top: 1px solid var(--line); }
.profile-popover > form button { color: var(--rust); }
.logout-form { display: inline-flex; margin: 0; }

.hero-row, .panel-header, .section-heading, .picker-hero, .picker-tools, .picker-order-actions, .order-actions-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-row { margin-bottom: 22px; }
.hero-row > div:first-child { max-width: 760px; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.subhead { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.panel-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-eyebrow { color: var(--teal); }
.critical-eyebrow { color: var(--rust); }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { padding-bottom: 18px; }
.section-heading { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 10px; }
.mini-badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--subtle); font-size: 9px; font-weight: 750; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 14px; border: 1px solid var(--amber); border-radius: 9px; color: var(--ink); background: var(--amber); box-shadow: 0 5px 14px rgba(232,163,61,.16); cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; transition: transform .14s ease, filter .14s ease, box-shadow .14s ease; }
.button:hover { filter: brightness(.97); box-shadow: 0 7px 18px rgba(232,163,61,.23); transform: translateY(-1px); }
.button.primary { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: none; }
.button.secondary:hover { border-color: var(--ink-16); background: var(--subtle); }
.button.danger { color: var(--rust); background: var(--rust-soft); border-color: rgba(192,67,43,.18); box-shadow: none; }
.button.ai-button { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 5px 14px rgba(20,108,100,.16); }
.button.compact { min-height: 29px; padding: 5px 9px; font-size: 9px; }
.button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.2); transform: none; box-shadow: none; }
.button.is-loading::before { content: ""; width: 10px; height: 10px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.inline-actions, .table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.table-actions form, .inline-actions form { margin: 0; }
.table-filters { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px !important; margin: 0 0 14px; padding: 11px; box-shadow: none; }
.table-filters input, .table-filters select { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; }
.table-filters input:focus, .table-filters select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.filter-search { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; flex: 1 1 260px; min-width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filter-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.filter-search > span { padding-left: 10px; color: var(--muted); }
.filter-search input { width: 100%; border: 0; box-shadow: none !important; }
.filter-total { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 750; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.pagination-bar strong { color: var(--ink); }
.pagination-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.stacked-panels { display: grid; gap: 16px; align-self: start; }
.pending-invites { display: grid; gap: 8px; margin-top: 5px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pending-invites > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.pending-invites > div > span:first-child { display: grid; min-width: 0; }
.pending-invites b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.pending-invites small { color: var(--muted); font-size: 8px; }
.return-filter { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px !important; }
.return-filter input, .return-filter select { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; }
.return-filter input:focus, .return-filter select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.text-link { color: var(--teal); font-size: 10px; font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 122px; display: flex; align-items: flex-start; gap: 13px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--line); }
.metric-card.blue::after, .metric-card.violet::after, .metric-card.ai::after { background: var(--teal); }
.metric-card.amber::after, .metric-card.critical::after { background: var(--rust); }
.metric-card.mint::after, .metric-card.healthy::after { background: var(--moss); }
.metric-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; color: var(--ink); background: var(--amber-soft); font-size: 16px; font-weight: 800; }
.blue .metric-icon, .violet .metric-icon, .ai .metric-icon { color: var(--teal); background: var(--teal-soft); }
.mint .metric-icon, .healthy .metric-icon { color: var(--moss); background: var(--moss-soft); }
.amber .metric-icon, .critical .metric-icon { color: var(--rust); background: var(--rust-soft); }
.metric-label, .metric-card > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-card strong { display: block; font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr); gap: 16px; margin-bottom: 18px; }
.manage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.location-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.forecast-panel, .how-panel, .form-panel, .return-audit-panel, .linked-returns-panel { padding: 21px; }
.how-panel { color: var(--surface); background: var(--teal); border-color: var(--teal); }
.how-panel .eyebrow, .how-panel .muted { color: rgba(255,255,255,.6); }
.how-panel h2 { font-size: 21px; }
.steps { display: grid; gap: 13px; margin: 19px 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.79); font-size: 11px; }
.steps b { display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; color: var(--teal); background: var(--surface); font-size: 9px; }
.how-panel .text-link { color: #fff; }
.recommendation-list { display: grid; }
.recommendation { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.recommendation-main { display: flex; align-items: flex-start; gap: 10px; }
.recommendation p, .recommendation small { display: block; margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.recommendation-order { text-align: right; color: var(--muted); font-size: 9px; }
.recommendation-order strong { display: block; margin-top: 3px; color: var(--rust); font-size: 12px; }
.risk-dot { display: block; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }
.risk-dot.high { background: var(--rust); box-shadow: 0 0 0 4px var(--rust-soft); }
.risk-dot.safe { background: var(--moss); box-shadow: 0 0 0 4px var(--moss-soft); }
.shift-panel, .risk-actions-panel { padding: 21px; }
.shift-panel .steps li { color: var(--ink); }
.shift-panel .steps b { color: #fff; background: var(--teal); }
.compact-empty { grid-column: 1/-1; padding: 22px 10px; }
.okay, .covered-tag, .risk-pill.healthy { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--moss); background: var(--moss-soft); font-size: 9px; font-weight: 780; }
.action-tag, .risk-pill.critical { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--rust); background: var(--rust-soft); font-size: 9px; font-weight: 780; }
.risk-pill.watch { color: #8a5a13; background: var(--amber-soft); }

.table-panel { padding-top: 20px; }
.table-panel > .panel-header { padding: 0 21px 17px; }
.table-wrap { width: 100%; overflow-x: auto; }
.bulk-product-actions { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 21px; border-top: 1px solid var(--line); background: var(--subtle); }
.bulk-selection-summary { display: grid; gap: 2px; min-width: 0; }
.bulk-selection-summary strong { color: var(--ink); font-size: 10px; }
.bulk-selection-summary span { color: var(--muted); font-size: 9px; }
.selection-column { width: 46px; padding-left: 18px; padding-right: 8px; text-align: center; }
.selection-column input { width: 15px; height: 15px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.selection-unavailable { color: var(--muted); }
tbody tr.is-selected { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th { position: relative; padding: 10px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); background: var(--subtle); text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
th[data-sortable="true"] { padding-right: 28px; cursor: pointer; user-select: none; }
th[data-sortable="true"]::after { content: "↕"; position: absolute; right: 11px; color: rgba(31,38,35,.3); }
th.sort-asc::after { content: "↑"; color: var(--teal); }
th.sort-desc::after { content: "↓"; color: var(--teal); }
td { padding: 13px 18px; border-bottom: 1px solid rgba(222,223,218,.72); color: #4c5551; font-size: 11px; vertical-align: middle; }
tbody tr { transition: background .13s ease; }
tbody tr:hover { background: rgba(238,241,240,.55); }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; color: var(--ink); font-size: 11px; }
td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 13px; }
.table-search { position: relative; flex: 1; max-width: 340px; }
.table-search::before { content: "⌕"; position: absolute; left: 11px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.table-search input { width: 100%; min-height: 35px; padding: 7px 10px 7px 31px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: var(--surface); font-size: 10px; }
.table-filter { min-height: 35px; padding: 6px 30px 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 10px; }
.table-count { margin-left: auto; color: var(--muted); font-size: 9px; white-space: nowrap; }
.table-no-results { border-top: 1px solid var(--line); }
.empty-row { padding: 33px; color: var(--muted); text-align: center; }
.location-tag { display: inline-flex; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--subtle); font-size: 9px; font-weight: 700; }
.confidence { display: inline-block; width: 46px; height: 5px; margin-right: 6px; overflow: hidden; border-radius: 99px; background: var(--line); vertical-align: 1px; }
.confidence i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.empty-state { display: grid; place-items: center; padding: 34px 18px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 12px; border-radius: 11px; color: var(--teal); background: var(--teal-soft); font-size: 17px; }
.empty-state h3 { color: var(--ink); }
.empty-state p { max-width: 420px; margin-bottom: 0; font-size: 10px; }
.loading-state { position: relative; min-height: 180px; overflow: hidden; background: linear-gradient(100deg,var(--subtle) 20%,#fff 40%,var(--subtle) 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.data-form, form:not(.logout-form):not(.table-actions form):not(.inline-actions form) { display: grid; gap: 12px; }
.data-form label, .form-panel label, .po-receipt-form label, .auth-form label { display: grid; gap: 5px; color: #535c58; font-size: 10px; font-weight: 750; }
.data-form input, .data-form select, .data-form textarea, .form-panel input, .form-panel select, .po-receipt-form input, .po-receipt-form select, .auth-form input, .assistant-form input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: var(--surface); font-size: 11px; transition: border .14s ease, box-shadow .14s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--teal) !important; box-shadow: 0 0 0 3px var(--teal-soft); }
input::placeholder, textarea::placeholder { color: #9aa09d; }
.form-panel.wide, .manage-grid > .wide { grid-column: span 2; }
.form-panel h2 { margin-bottom: 17px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.form-row.triple { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-help { margin: -7px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.checkbox-label { display: flex !important; align-items: center; align-self: end; min-height: 38px; gap: 8px; }
.checkbox-label input { width: auto !important; min-height: 0 !important; accent-color: var(--teal); }
.flash-stack { display: grid; gap: 7px; margin: -5px 0 18px; }
.flash { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 10px; font-weight: 700; box-shadow: var(--shadow); }
.flash > span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.flash.success { color: var(--moss); border-color: rgba(92,138,58,.2); }
.flash.success > span { background: var(--moss-soft); }
.flash.error { color: var(--rust); border-color: rgba(192,67,43,.2); }
.flash.error > span { background: var(--rust-soft); }

.stock-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.stock-pills span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--subtle); font-size: 9px; }
.stock-pills b { color: var(--ink); }
.products-hero { margin-bottom: 20px; }
.location-card .panel-header { align-items: flex-start; }
.location-address { margin: 5px 0 0; }
.bin-list { display: grid; margin-bottom: 15px; border-top: 1px solid var(--line); }
.bin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bin-row strong, .bin-row small { display: block; }
.bin-row small { color: var(--muted); font-size: 9px; }
.bin-form, .po-receipt-form { padding-top: 13px; border-top: 1px dashed var(--line); }
.edit-card { max-width: 780px; }
.transfer-layout, .user-layout, .scanner-layout, .order-layout { grid-template-columns: minmax(300px,.82fr) minmax(0,1.65fr); align-items: start; }
.order-list-only { grid-template-columns: 1fr; }

.role-tag, .order-status, .return-status, .return-disposition { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.role-tag.admin { color: var(--rust); background: var(--rust-soft); }
.role-tag.manager { color: var(--teal); background: var(--teal-soft); }
.role-tag.picker { color: var(--moss); background: var(--moss-soft); }
.role-tag.viewer { color: #5b6370; background: rgba(91,99,112,.1); }

.inventory-scope { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 15px 17px; overflow: visible; }
.scope-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scope-copy h2 { font-size: 15px; }
.scope-copy p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.scope-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: var(--teal); background: var(--teal-soft); font-size: 17px; }
.scope-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 0; gap: 8px; }
.scope-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--subtle); }
.scope-toggle a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; padding: 5px 10px; border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.scope-toggle a.active { color: #fff; background: var(--teal); box-shadow: 0 4px 11px rgba(20,108,100,.18); }
.warehouse-select { display: flex !important; align-items: center; gap: 6px !important; }
.warehouse-select select { min-height: 38px; max-width: 230px; padding: 7px 30px 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 10px; }
.warehouse-network-panel { margin-bottom: 18px; padding: 20px; }
.warehouse-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.warehouse-summary-card { display: grid; gap: 13px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg,#fff,var(--subtle)); transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.warehouse-summary-card:hover { border-color: rgba(20,108,100,.25); box-shadow: 0 10px 25px rgba(31,38,35,.07); transform: translateY(-2px); }
.warehouse-summary-card > div:first-child { display: grid; min-width: 0; }
.warehouse-summary-card > div:first-child strong { overflow: hidden; margin-top: 5px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-summary-card > div:first-child small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-code { justify-self: start; padding: 3px 6px; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 850; }
.warehouse-summary-card dl { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: 0; }
.warehouse-summary-card dl div { min-width: 0; }
.warehouse-summary-card dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.warehouse-summary-card dd { margin: 2px 0 0; font-size: 12px; font-weight: 800; }
.warehouse-summary-card .risk-pill { justify-self: start; }

.warehouse-create { margin-bottom: 16px; }
.warehouse-create-form .button { justify-self: start; }
.permission-note { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(20,108,100,.16); border-radius: 11px; color: var(--teal); background: var(--teal-soft); }
.permission-note > span { font-size: 18px; }
.permission-note p { display: grid; margin: 0; }
.permission-note strong { font-size: 10px; }
.permission-note small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.warehouse-card { overflow: visible; }
.warehouse-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 3px 0 18px; }
.warehouse-stats span { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); }
.warehouse-stats small, .warehouse-stats strong { display: block; }
.warehouse-stats small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.warehouse-stats strong { margin-top: 3px; font-size: 16px; }
.bin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bin-section-head h3 { font-size: 13px; }
.warehouse-empty { grid-column: 1/-1; }
.csv-template-callout { display: flex; align-items: center; gap: 11px; margin: 14px 0; padding: 11px; border: 1px solid rgba(20,108,100,.18); border-radius: 10px; background: var(--teal-soft); }
.csv-template-callout > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--teal); font-size: 9px; font-weight: 850; }
.csv-template-callout > div { min-width: 0; display: grid; flex: 1; }
.csv-template-callout strong { font-size: 10px; }
.csv-template-callout small { color: var(--muted); font-size: 8px; }
.profile-settings-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; }
.profile-settings-aside { display: grid; align-content: start; gap: 16px; }
.profile-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 17px; }
.profile-card-head h2 { font-size: 20px; }
.profile-facts { display: grid; gap: 9px; margin: 16px 0 0; }
.profile-facts div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 9px; }
.profile-facts dd { margin: 0; font-size: 10px; font-weight: 800; text-align: right; }
.profile-security-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 11px; padding: 16px; }
.profile-security-card > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }
.profile-security-card h3, .profile-security-card p { margin: 0; }
.profile-security-card p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-security-card .button { grid-column: 1/-1; }
.order-status.pending, .return-status.requested, .return-status.authorized { color: #8a5a13; background: var(--amber-soft); }
.order-status.picking, .return-status.receiving { color: var(--teal); background: var(--teal-soft); }
.order-status.packed { color: var(--teal); border: 1px solid rgba(20,108,100,.2); background: var(--surface); }
.order-status.shipped, .return-status.completed, .return-disposition.restock { color: var(--moss); background: var(--moss-soft); }
.order-status.cancelled, .return-status.rejected, .return-status.cancelled, .return-disposition.damaged { color: var(--rust); background: var(--rust-soft); }
.order-lines { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.order-lines legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.order-line { display: grid; grid-template-columns: minmax(0,1fr) 95px; gap: 8px; }
.order-progress-panel { padding: 19px 21px; margin-bottom: 16px; }
.order-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.progress-step { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.progress-step::after { content: ""; position: absolute; left: 33px; right: 8px; top: 14px; height: 2px; background: var(--line); }
.progress-step:last-child::after { display: none; }
.progress-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); font-size: 9px; font-weight: 850; }
.progress-step.done > span, .progress-step.current > span { color: #fff; background: var(--teal); }
.progress-step.done::after { background: var(--teal); }
.progress-step strong, .progress-step small { display: block; font-size: 9px; }
.order-item-card, .return-item-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.allocation-list, .receipt-history { display: grid; gap: 6px; margin-top: 12px; }
.allocation-row, .receipt-history > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 9px; }

.barcode-reader { min-height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--ink); }
.barcode-reader:empty { display: grid; place-items: center; }
.barcode-reader:empty::after { content: "Camera preview"; color: rgba(255,255,255,.45); font-size: 10px; }
.scanner-message { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.scanner-message.error { color: var(--rust); }
.scanner-message.success { color: var(--moss); }
.manual-scan-form { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); }
.scanner-panel, .scanner-result { min-width: 0; }
.scanner-result { align-self: start; }
.scanner-result-header { align-items: flex-start; padding: 21px 21px 15px; }
.scanner-result-header > div { min-width: 0; }
.scanner-result-header h2 { overflow-wrap: anywhere; }
.scanner-result-header .location-tag { flex: 0 0 auto; }
.scan-facts, .return-quantities, .factor-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.scanner-result .scan-facts { margin: 0; padding: 0 21px 18px; }
.scan-facts div, .return-quantities div, .factor-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.scan-facts dt, .return-quantities dt, .factor-grid dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.scan-facts dd, .return-quantities dd, .factor-grid dd { margin: 4px 0 0; color: var(--ink); font-size: 10px; font-weight: 750; }
.scanner-result .scan-stock-table { border-top: 1px solid var(--line); }
.scanner-result .scan-stock-table table { min-width: 590px; }
.scanner-result .scan-result-actions { padding: 16px 21px; border-top: 1px solid var(--line); }

.picker-hero { margin-bottom: 16px; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.picker-safety { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.network-status { display: inline-flex; align-items: center; padding: 7px 9px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.network-status.online { color: var(--moss); background: var(--moss-soft); }
.network-status.offline { color: var(--rust); background: var(--rust-soft); }
.picker-queue { display: grid; gap: 13px; }
.picker-order-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.picker-order-card > header, .picker-order-actions { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 16px 18px; }
.picker-order-card > header { border-bottom: 1px solid var(--line); }
.picker-order-card > header small { color: var(--muted); font-size: 9px; }
.picker-lines { display: grid; }
.picker-line { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.picker-line.picked { background: var(--moss-soft); }
.picker-item-heading { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.picker-sequence { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 10px; font-weight: 850; }
.picker-item-heading strong, .picker-item-heading small { display: block; }
.picker-item-heading small { color: var(--muted); font-size: 9px; }
.picker-item-heading > b { font-size: 12px; }
.picker-bin-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 39px; }
.picker-bin-list span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--subtle); }
.picker-bin-list b, .picker-bin-list small { display: block; font-size: 9px; }
.picker-bin-list small { color: var(--muted); }
.picker-line form, .picker-complete { margin: 10px 0 0 39px; }
.picker-complete, .picker-ready { color: var(--moss); font-size: 9px; font-weight: 800; }

.explainability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.explainability-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.explainability-card summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; cursor: pointer; list-style: none; }
.explainability-card summary::-webkit-details-marker { display: none; }
.explainability-card summary strong, .explainability-card summary small { display: block; }
.explainability-card summary small { color: var(--muted); font-size: 8px; }
.explainability-card[open] { border-color: rgba(20,108,100,.24); box-shadow: inset 3px 0 0 var(--teal); }
.explainability-narrative, .factor-grid, .factor-method { margin-left: 13px; margin-right: 13px; }
.explainability-narrative, .factor-method { color: var(--muted); font-size: 10px; line-height: 1.55; }
.factor-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 12px; }

.po-list { display: grid; gap: 11px; }
.po-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.po-card > header, .return-item-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.po-card > header strong, .po-card > header small { display: block; }
.po-card > header small { color: var(--muted); font-size: 9px; }
.procurement-tools { margin-bottom: 16px; }
.purchase-hero { margin-bottom: 14px; }
.purchase-hero h2 { margin: 2px 0 5px; font-size: 20px; }
.purchase-metrics { margin-top: 0; }
.inventory-workflow-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.inventory-workflow-steps a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .15s ease,transform .15s ease; }
.inventory-workflow-steps a:hover { border-color: rgba(20,108,100,.3); transform: translateY(-1px); }
.inventory-workflow-steps a > span, .workflow-stage-number { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: var(--teal); font-size: 10px; font-weight: 850; }
.inventory-workflow-steps div { display: grid; min-width: 0; }
.inventory-workflow-steps strong { font-size: 10px; }
.inventory-workflow-steps small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-stage { margin-bottom: 20px; scroll-margin-top: 18px; }
.workflow-stage-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg,var(--surface),var(--subtle)); }
.workflow-stage-header h2 { margin: 1px 0 3px; font-size: 16px; }
.workflow-stage-header p:last-child { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.workflow-stage-header form { display: block; }
.workflow-stage-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.65fr); gap: 16px; align-items: start; }
.catalogue-side-stack { display: grid; gap: 16px; }
.catalogue-actions .form-panel { grid-column: auto; }
.workflow-prerequisite { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid rgba(192,67,43,.18); border-radius: 10px; color: var(--rust); background: var(--rust-soft); }
.workflow-prerequisite > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--rust); font-weight: 850; }
.workflow-prerequisite p { display: grid; margin: 0; }
.workflow-prerequisite strong { font-size: 10px; }
.workflow-prerequisite small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.selection-guidance { margin: -2px 0 10px; padding: 8px 10px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 9px; }
.critical-guidance { color: var(--rust); background: var(--rust-soft); }
.receipt-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 2px 0 11px; }
.receipt-form-heading strong, .receipt-form-heading small { display: block; }
.receipt-form-heading small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.receipt-form-heading > span { padding: 5px 7px; border-radius: 99px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 800; white-space: nowrap; }
.correction-layout { grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); align-items: start; }
.correction-layout > .wide { grid-column: auto; }
.correction-guidance { align-self: stretch; }
.plain-check-list { display: grid; gap: 9px; margin: 17px 0; padding: 0; list-style: none; }
.plain-check-list li { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.45; }
.plain-check-list span { color: var(--moss); font-weight: 900; }
.po-card[data-source="ai"], .ai-surface { border-color: rgba(20,108,100,.24); background: linear-gradient(145deg,#fff 70%,var(--teal-soft)); }
.po-card[data-source="ai"] > header::before { content: "✦"; display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; margin-right: -2px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.po-card[data-source="ai"] > header > div { margin-right: auto; }
.po-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.po-controls input { min-width: 210px; min-height: 35px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface); }
.po-filter { min-height: 31px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 750; }
.po-filter.active { color: #fff; border-color: var(--teal); background: var(--teal); }
.po-results { margin-left: auto; color: var(--muted); font-size: 9px; }
.po-register .po-controls { padding: 0 18px; }
.po-register .po-list { padding: 0 18px 18px; }

.assistant-panel { margin-top: 18px; border-color: rgba(20,108,100,.22); }
.assistant-intro { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.assistant-mark { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--teal); font-size: 16px; box-shadow: 0 6px 18px rgba(20,108,100,.18); }
.assistant-prompts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 15px 20px 0; }
.assistant-prompts button { min-height: 30px; padding: 5px 9px; border: 1px solid rgba(20,108,100,.2); border-radius: 99px; color: var(--teal); background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 750; }
.assistant-prompts button:hover { color: #fff; background: var(--teal); }
.assistant-messages { min-height: 84px; max-height: 340px; display: grid; align-content: start; gap: 7px; overflow-y: auto; padding: 16px 20px; }
.assistant-messages p { width: fit-content; max-width: min(90%,760px); margin: 0; padding: 9px 11px; border-radius: 10px; font-size: 10px; line-height: 1.55; }
.assistant-question { justify-self: end; color: #fff; background: var(--teal); }
.assistant-answer { color: var(--ink); background: var(--teal-soft); }
.assistant-error { color: var(--rust); background: var(--rust-soft); }
.assistant-loading { width: 55px !important; min-height: 34px; background: var(--teal-soft); }
.assistant-loading::after { content: "•••"; color: var(--teal); letter-spacing: .14em; animation: pulse-text .9s infinite alternate; }
@keyframes pulse-text { to { opacity: .35; } }
.assistant-form { display: grid !important; grid-template-columns: minmax(0,1fr) auto; gap: 8px !important; padding: 0 20px 20px; }

.insight-visuals { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.75fr); gap: 16px; margin-bottom: 18px; }
.chart-panel { padding: 20px; }
.chart-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chart-filter { min-height: 29px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 750; }
.chart-filter.active { color: #fff; border-color: var(--teal); background: var(--teal); }
.chart-canvas { min-height: 230px; margin-top: 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chart-canvas svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-tooltip { position: fixed; z-index: 80; max-width: 220px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: #fff; background: var(--ink); pointer-events: none; font-size: 9px; box-shadow: var(--shadow); }
.accuracy-gauge { display: grid; place-items: center; min-height: 170px; text-align: center; }
.gauge-ring { --value: 0; display: grid; place-items: center; width: 122px; height: 122px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--value)*1%), var(--line) 0); }
.gauge-ring::before { content: ""; grid-area: 1/1; width: 94px; height: 94px; border-radius: 50%; background: var(--surface); }
.gauge-ring span { z-index: 1; grid-area: 1/1; font-size: 22px; font-weight: 800; }
.accuracy-gauge small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.accuracy-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 0; }
.accuracy-facts div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); text-align: center; }
.accuracy-facts dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.accuracy-facts dd { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.ai-badge { color: var(--teal); border-color: rgba(20,108,100,.2); background: var(--teal-soft); }
.expiry-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.expiry-action { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.expiry-action.critical { border-color: rgba(192,67,43,.2); background: var(--rust-soft); }
.expiry-action strong, .expiry-action small { display: block; }
.expiry-action small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.command-palette { width: min(92vw,570px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 90px rgba(31,38,35,.22); }
.command-palette::backdrop { background: rgba(31,38,35,.42); backdrop-filter: blur(3px); }
.command-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.command-head input { min-height: 36px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.command-close { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--subtle); cursor: pointer; font-size: 9px; }
.command-close:hover { color: var(--ink); border-color: var(--ink-16); }
.command-results { display: grid; max-height: 420px; overflow-y: auto; padding: 8px; }
.command-group { margin: 6px 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.command-results a { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; column-gap: 9px; padding: 9px; border-radius: 8px; }
.command-results a:hover, .command-results a:focus { outline: 0; background: var(--amber-soft); }
.command-results a > span { grid-row: span 2; color: var(--teal); }
.command-results b { font-size: 10px; }
.command-results small { color: var(--muted); font-size: 8px; }
.command-empty { padding: 22px; color: var(--muted); text-align: center; font-size: 10px; }
.mobile-nav, .mobile-scrim { display: none; }

.offline-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--canvas); }
.offline-card { width: min(100%,440px); padding: 31px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 70px rgba(31,38,35,.15); }

.auth-body { position: relative; min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 48% 14%,rgba(255,255,255,.96),rgba(238,241,240,.78) 43%,rgba(217,238,226,.7) 100%); }
.auth-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.28) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.28) 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom,rgba(0,0,0,.25),transparent 75%); }
.auth-orb { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.auth-orb-one { width: 460px; height: 460px; left: -180px; top: -160px; background: rgba(20,108,100,.12); }
.auth-orb-two { width: 520px; height: 520px; right: -210px; top: -190px; background: rgba(92,138,58,.13); }
.auth-orb-three { width: 360px; height: 360px; left: 4%; bottom: -230px; background: rgba(232,163,61,.14); }
.auth-stage { position: relative; z-index: 1; width: min(100%,1440px); min-height: 100vh; margin: 0 auto; padding: 28px clamp(24px,5vw,78px) 22px; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.auth-brand > span:last-child { display: grid; }
.auth-brand .brand-name { font-size: 21px; }
.auth-brand .brand-name span:last-child { color: var(--teal); }
.auth-frame { display: grid; grid-template-columns: minmax(340px,.9fr) minmax(450px,1.1fr); align-items: center; gap: clamp(38px,7vw,105px); min-height: calc(100vh - 116px); padding: 36px 0; }
.signup-frame { grid-template-columns: minmax(320px,.65fr) minmax(620px,1.35fr); gap: clamp(35px,5vw,72px); }
.auth-copy { max-width: 590px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 19px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.auth-kicker::before { content: ""; width: 32px; height: 2px; background: var(--teal); }
.auth-copy h1 { max-width: 650px; font-size: clamp(44px,5.4vw,78px); line-height: .96; letter-spacing: -.065em; }
.signup-copy h1 { font-size: clamp(40px,4.5vw,66px); }
.auth-copy > p { max-width: 570px; margin: 23px 0 0; color: #535c58; font-size: clamp(15px,1.4vw,19px); line-height: 1.6; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.auth-proof span { padding: 8px 11px; border: 1px solid rgba(20,108,100,.14); border-radius: 999px; color: var(--teal); background: rgba(255,255,255,.62); font-size: 10px; font-weight: 780; }
.signup-steps { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.signup-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 13px; background: rgba(255,255,255,.46); backdrop-filter: blur(8px); }
.signup-steps b { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--teal); font-size: 10px; }
.signup-steps span { display: grid; }
.signup-steps strong { font-size: 11px; }
.signup-steps small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.auth-card-wrap { position: relative; width: 100%; max-width: 580px; justify-self: end; padding: 18px; }
.signup-frame .auth-card-wrap { max-width: 790px; }
.auth-card-wrap::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.78); border-radius: 38px; background: rgba(255,255,255,.39); box-shadow: 0 34px 90px rgba(31,38,35,.12); backdrop-filter: blur(16px); }
.auth-card { position: relative; overflow: hidden; padding: clamp(24px,3vw,38px); border: 1px solid rgba(222,223,218,.84); border-radius: 27px; background: rgba(255,255,255,.91); box-shadow: 0 20px 55px rgba(31,38,35,.09); }
.auth-card::before { content: ""; position: absolute; inset: 0 9% auto; height: 4px; border-radius: 0 0 10px 10px; background: linear-gradient(90deg,var(--teal),var(--moss),rgba(92,138,58,.15)); }
.auth-card::after { content: ""; position: absolute; right: -65px; top: -78px; width: 190px; height: 190px; border-radius: 50%; background: rgba(92,138,58,.11); pointer-events: none; }
.auth-tabs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; margin-bottom: 27px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--subtle); }
.auth-tabs a { display: grid; place-items: center; min-height: 38px; border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.auth-tabs a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(31,38,35,.08); }
.auth-card-head { position: relative; z-index: 1; margin-bottom: 22px; }
.auth-card-head h2 { font-size: clamp(25px,2.5vw,34px); letter-spacing: -.045em; }
.auth-card-head > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.auth-flashes { display: grid; gap: 7px; margin-bottom: 17px; }
.auth-form { position: relative; z-index: 1; display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; color: #535c58; font-size: 10px; font-weight: 780; }
.auth-form label > small { color: var(--muted); font-weight: 500; }
.auth-form input, .auth-form select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: rgba(255,255,255,.84); font-size: 12px; }
.input-shell { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.84); transition: border .14s ease,box-shadow .14s ease; }
.input-shell:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.input-shell > span { padding-left: 12px; color: var(--teal); font-size: 12px; font-weight: 800; }
.input-shell input { border: 0 !important; border-radius: 0; background: transparent; box-shadow: none !important; }
.password-toggle { align-self: stretch; padding: 0 11px; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.auth-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.auth-form-meta a, .auth-switch a { color: var(--teal); font-weight: 800; }
.auth-submit { width: 100%; min-height: 49px; margin-top: 2px; border-radius: 12px; font-size: 12px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 9px; }
.auth-divider::before,.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-sso { width: 100%; min-height: 44px; }
.auth-sso.disabled { opacity: .52; cursor: not-allowed; }
.sso-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 6px; color: #fff; background: var(--teal); font-size: 9px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.auth-footer { margin: 0; color: rgba(31,38,35,.45); text-align: center; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.signup-form fieldset { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(247,248,247,.72); }
.signup-form legend { padding: 0 7px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.auth-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 8px !important; }
.auth-consent input { width: auto; min-height: 0; margin-top: 2px; accent-color: var(--teal); }
.field-status.success { color: var(--moss) !important; }
.field-status.error { color: var(--rust) !important; }
.field-status.checking { color: var(--teal) !important; }
.auth-simple-stage { display: grid; grid-template-rows: auto 1fr auto; }
.auth-simple-wrap { align-self: center; justify-self: center; width: min(100%,540px); }
.auth-simple-card { padding: clamp(28px,4vw,44px); }
.auth-state-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 19px; border-radius: 16px; color: #fff; background: var(--teal); font-size: 22px; box-shadow: 0 10px 25px rgba(20,108,100,.18); }
.auth-state-icon.critical { background: var(--rust); }
.auth-state-copy { text-align: center; }
.mfa-secret { display: inline-block; padding: 7px 9px; border: 1px dashed rgba(20,108,100,.28); border-radius: 7px; background: var(--teal-soft); word-break: break-all; }
.security-grid { align-items: start; }
.security-steps li { color: var(--ink); }
.security-steps b { color: #fff; background: var(--teal); }
.mfa-uri { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); }
.mfa-uri summary { cursor: pointer; color: var(--teal); font-size: 9px; font-weight: 800; }
.mfa-uri code { display: block; margin-top: 8px; white-space: normal; word-break: break-all; }
.recovery-alert { margin-top: 18px; padding: 14px; border: 1px solid rgba(192,67,43,.2); border-radius: 10px; background: var(--rust-soft); }
.recovery-alert p { color: var(--muted); font-size: 10px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.recovery-codes code { padding: 8px; border-radius: 6px; color: var(--ink); background: #fff; text-align: center; }
.workspace-handle { padding: 7px 10px; border: 1px solid rgba(20,108,100,.2); border-radius: 99px; color: var(--teal); background: var(--teal-soft); font-size: 10px; font-weight: 800; }
.settings-layout { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px !important; }
.settings-save { grid-column: 1/-1; justify-self: end; }
.offline-card p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 226px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid, .insight-visuals { grid-template-columns: 1fr; }
  .command-label { display: none; }
  .topbar-actions { gap: 6px; }
  .auth-frame { gap: 38px; }
  .signup-frame { grid-template-columns: minmax(275px,.55fr) minmax(560px,1.45fr); }
  .warehouse-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(86vw,290px); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 60px rgba(31,38,35,.2); }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(31,38,35,.42); }
  body.nav-open .mobile-scrim { display: block; }
  .sidebar-close, .menu-button { display: grid !important; }
  .main-content { padding: 20px 20px 88px; }
  .mobile-nav { position: fixed; z-index: 24; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: repeat(4,1fr); padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(31,38,35,.17); backdrop-filter: blur(10px); }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; gap: 2px; min-height: 48px; padding: 4px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 750; }
  .mobile-nav span { font-size: 15px; }
  .mobile-nav .active { color: var(--teal); background: var(--teal-soft); }
  .manage-grid, .location-grid { grid-template-columns: 1fr; }
  .form-panel.wide, .manage-grid > .wide { grid-column: span 1; }
  .workflow-stage-grid, .correction-layout { grid-template-columns: 1fr; }
  .explainability-grid { grid-template-columns: 1fr; }
  .auth-stage { padding-left: 22px; padding-right: 22px; }
  .auth-frame,.signup-frame { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .auth-copy { max-width: 700px; margin: 0 auto; text-align: center; }
  .auth-copy h1,.auth-copy > p { margin-left: auto; margin-right: auto; }
  .auth-kicker::before { display: none; }
  .auth-proof { justify-content: center; }
  .auth-card-wrap,.signup-frame .auth-card-wrap { max-width: 720px; justify-self: center; }
  .signup-steps { grid-template-columns: repeat(3,1fr); }
  .signup-steps li { text-align: left; }
  .settings-layout { grid-template-columns: 1fr; }
  .inventory-scope { align-items: flex-start; flex-direction: column; }
  .scope-controls { width: 100%; justify-content: space-between; }
  .profile-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content { padding: 16px 13px 84px; }
  .topbar { align-items: flex-start; margin-bottom: 21px; }
  .topbar-title { align-items: flex-start; }
  .topbar-actions .command-trigger, .topbar-actions .status-chip { display: none; }
  .profile-menu .user-chip { padding: 3px; }
  .profile-menu .user-chip > span:nth-child(2), .profile-menu .user-chip > i { display: none; }
  .profile-popover { position: fixed; top: 72px; right: 13px; left: 13px; width: auto; }
  h1 { font-size: 25px; }
  .hero-row, .panel-header, .picker-hero, .picker-tools, .picker-order-actions, .order-actions-panel { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-actions { width: 100%; justify-content: stretch; }
  .hero-actions .button { flex: 1; }
  .hero-row .inline-actions { width: 100%; }
  .hero-row .button { flex: 1; }
  .table-filters { align-items: stretch; }
  .table-filters .filter-search { flex-basis: 100%; }
  .table-filters select { flex: 1; min-width: 0; }
  .table-filters .text-link { align-self: center; padding: 8px; }
  .bulk-product-actions { align-items: stretch; flex-direction: column; }
  .bulk-product-actions .button { width: 100%; }
  .filter-total { flex-basis: 100%; margin-left: 0; }
  .pagination-bar { align-items: flex-start; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .metric-card { min-height: 105px; padding: 13px; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-card strong { font-size: 20px; }
  .scope-controls, .warehouse-select { align-items: stretch; flex-direction: column; }
  .scope-toggle { width: 100%; }
  .warehouse-select select { width: 100%; max-width: none; }
  .warehouse-select .button { display: none; }
  .warehouse-summary-grid { grid-template-columns: 1fr; }
  .csv-template-callout { align-items: flex-start; flex-wrap: wrap; }
  .csv-template-callout .button { width: 100%; }
  .inventory-workflow-steps { gap: 6px; }
  .inventory-workflow-steps a { align-items: flex-start; padding: 9px 7px; }
  .inventory-workflow-steps a > span { width: 25px; height: 25px; border-radius: 7px; }
  .inventory-workflow-steps small { display: none; }
  .workflow-stage-header { grid-template-columns: auto minmax(0,1fr); align-items: flex-start; padding: 13px; }
  .workflow-stage-header > :last-child { grid-column: 2; justify-self: start; }
  .receipt-form-heading { flex-direction: column; }
  .form-row, .form-row.triple, .scan-facts, .return-quantities, .factor-grid, .expiry-action-grid { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .table-search { flex-basis: 100%; max-width: none; }
  .table-count { margin-left: 0; }
  .po-controls input { width: 100%; }
  .po-results { margin-left: 0; }
  .assistant-form { grid-template-columns: 1fr; }
  .assistant-form .button { width: 100%; }
  .picker-order-card > header { align-items: flex-start; }
  .picker-item-heading { grid-template-columns: 29px minmax(0,1fr); }
  .picker-item-heading > b { grid-column: 2; }
  .picker-bin-list, .picker-line form, .picker-complete { margin-left: 39px; }
  .picker-action { width: 100%; min-height: 46px; }
  .order-progress { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .progress-step::after { display: none; }
  .auth-stage { padding: 18px 12px 16px; }
  .auth-brand { margin-left: 6px; }
  .auth-frame,.signup-frame { gap: 25px; padding-top: 45px; }
  .auth-copy h1,.signup-copy h1 { font-size: 39px; }
  .auth-copy > p { margin-top: 15px; font-size: 13px; }
  .auth-proof,.signup-steps { display: none; }
  .auth-card-wrap { padding: 7px; }
  .auth-card-wrap::before { border-radius: 29px; }
  .auth-card { padding: 24px 19px; border-radius: 23px; }
  .auth-tabs { margin-bottom: 22px; }
  .auth-form-meta { align-items: flex-start; flex-direction: column; }
  .auth-footer { margin-top: 25px; }
  .recovery-codes { grid-template-columns: 1fr; }
  .chart-canvas svg { width: 660px; max-width: none; }
}
