:root {
  color-scheme: light;
  --ink: #16211d;
  --muted: #66736d;
  --line: #dce3df;
  --paper: #f4f7f5;
  --white: #ffffff;
  --green: #176b4d;
  --green-soft: #dff2e8;
  --amber: #8a5b08;
  --amber-soft: #fff0ca;
  --navy: #17394c;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.topbar { min-height: 68px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: var(--navy); }
.brand { color: white; font-size: 1.15rem; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.topbar-right { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a { color: #dbe8ee; padding: 9px 12px; border-radius: 7px; text-decoration: none; font-weight: 650; }
nav a:hover { color: white; background: #ffffff14; }
.nav-form { margin: 0; }
.nav-form button { padding: 9px 12px; color: #dbe8ee; background: transparent; border: 0; border-radius: 7px; font: inherit; font-weight: 650; cursor: pointer; }
.nav-form button:hover { color: white; background: #ffffff14; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu > summary { padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: white; border-radius: 8px; cursor: pointer; font-weight: 700; list-style: none; white-space: nowrap; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::marker { content: ""; }
.account-menu > summary::after { content: "⌄"; margin-left: 2px; color: #b9ccd5; font-size: .8rem; }
.account-menu[open] > summary, .account-menu > summary:hover { background: #ffffff14; }
.account-avatar { width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy); background: #dbe8ee; border-radius: 50%; font-size: .78rem; font-weight: 850; }
.account-dropdown { position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: 240px; padding: 7px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 16px 44px #071a2460; }
.account-menu-heading { margin: -7px -7px 6px; padding: 14px 15px; display: flex; flex-direction: column; background: #f8fbf9; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.account-menu-heading small { margin-top: 2px; color: var(--muted); font-size: .74rem; text-transform: capitalize; }
.account-dropdown > a, .account-dropdown form button { width: 100%; padding: 10px 11px; display: block; color: var(--ink); background: transparent; border: 0; border-radius: 7px; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.account-dropdown > a:hover, .account-dropdown form button:hover { background: var(--paper); }
.account-dropdown form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.account-dropdown form button { color: #a12619; font-weight: 700; }
.development-banner { padding: 7px 5vw; color: #5f3b00; background: var(--amber-soft); border-bottom: 1px solid #e9d18e; font-size: .84rem; font-weight: 700; text-align: center; }
.sync-strip { padding: 7px 5vw; display: flex; justify-content: center; gap: 18px; overflow-x: auto; color: var(--muted); background: white; border-bottom: 1px solid var(--line); font-size: .73rem; white-space: nowrap; }
.sync-strip a { color: inherit; text-decoration: none; }
.sync-dot { width: 8px; height: 8px; margin-right: 6px; display: inline-block; background: #9ba7a1; border-radius: 50%; }
.sync-dot.succeeded { background: var(--green); }
.sync-dot.running { background: #2476a8; box-shadow: 0 0 0 3px #d8edf8; }
.sync-dot.failed { background: #b63b2c; }
.container { width: min(1180px, 90vw); margin: 42px auto 80px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 3px 0 5px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.05em; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--green) !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status { display: inline-flex; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.status.ready { color: var(--green); background: var(--green-soft); }
.status.waiting { color: var(--amber); background: var(--amber-soft); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metrics article, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 22px #17394c0a; }
.metrics article { min-height: 145px; padding: 22px; display: flex; flex-direction: column; }
.metrics span, .metrics small { color: var(--muted); }
.metrics strong { margin: auto 0 0; font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; }
.metrics small { margin-top: 8px; }
.panel { padding: 26px; }
.notice { margin: 0 0 24px; padding: 15px 18px; color: var(--amber); background: var(--amber-soft); border: 1px solid #e9d18e; border-radius: 10px; }
.notice a { color: inherit; font-weight: 800; }
.notice.neutral { color: var(--ink); background: #eaf2f6; border-color: #c9dce5; }
.notice.success { color: var(--green); background: var(--green-soft); border-color: #9bcdb6; }
.classification-summary { margin-bottom: 24px; }
.classification-summary p { margin: 18px 0 0; color: var(--muted); }
.classification-summary a { color: var(--green); font-weight: 800; }
.panel h2 { margin: 2px 0; }
.panel + .panel { margin-top: 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.muted { color: var(--muted); }
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.location-card { padding: 18px; display: flex; flex-direction: column; gap: 4px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 10px; }
.location-card strong { font-size: 1.1rem; }
.location-card small { color: var(--muted); }
.location-type { color: var(--green); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.shipping-summary { margin-top: 16px; padding-top: 16px; display: flex; gap: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.shipping-summary strong { color: var(--ink); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 9px; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 15px; height: 15px; border: 2px solid #9ba7a1; border-radius: 50%; }
.checklist li.complete::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px white; }
.table-panel { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f9fbfa; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf9; }
.number { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.pill { padding: 5px 8px; color: var(--green); background: var(--green-soft); border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: capitalize; }
.pill.warning { color: var(--amber); background: var(--amber-soft); }
.wrap { min-width: 380px; white-space: normal; }
.subdued { color: var(--muted); font-size: .85rem; }
.empty { padding: 42px; color: var(--muted); text-align: center; }
.issue-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; margin-bottom: 18px; }
.issue-filter { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; text-transform: capitalize; }
.issue-filter strong { color: var(--ink); font-size: 1.2rem; }
.issue-filter.selected { color: var(--green); border-color: #8fc4ad; box-shadow: inset 0 0 0 1px #8fc4ad; }
.search-bar { margin-bottom: 18px; }
.search-bar label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.search-bar div { display: flex; gap: 8px; }
.search-bar input { width: 100%; min-width: 0; padding: 12px 14px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.search-bar button, .pagination a { padding: 11px 16px; color: white; background: var(--green); border: 0; border-radius: 9px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.filter-grid { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; align-items: end; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.filter-grid label { color: var(--muted); font-size: .8rem; font-weight: 750; }
.filter-grid input, .filter-grid select { width: 100%; margin-top: 5px; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.filter-grid button, .button, .bulk-action button { padding: 11px 14px; color: white; background: var(--green); border: 0; border-radius: 8px; font: inherit; font-weight: 750; cursor: pointer; white-space: nowrap; }
.button.secondary { color: var(--green); background: var(--green-soft); }
.bulk-action { margin-bottom: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.bulk-action div { display: flex; flex-direction: column; }
.bulk-action span { color: var(--muted); font-size: .85rem; }
.inventory-filters { grid-template-columns: 1fr 1.6fr 1fr auto; }
.location-heading small { display: block; margin-top: 3px; color: var(--green); font-size: .68rem; letter-spacing: 0; text-transform: none; }
.inventory-cell strong { display: block; font-size: 1.1rem; }
.inventory-cell small { display: block; color: var(--muted); font-size: .72rem; }
.inventory-cell.negative { color: #a12619; background: #fff0ed; }
.total-cell { background: #f4f8f6; }
.sync-time { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.channel-panel { margin-bottom: 24px; }
.channel-list { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.channel-list div { padding: 13px 15px; display: flex; flex-direction: column; background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px; }
.channel-list span { color: var(--muted); font-size: .8rem; text-transform: capitalize; }
.pill.trend-increasing { color: var(--green); background: var(--green-soft); }
.pill.trend-declining { color: var(--amber); background: var(--amber-soft); }
.pill.trend-stable { color: var(--navy); background: #eaf2f6; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.login-card { width: min(440px, 100%); padding: 34px; background: white; border-radius: 16px; box-shadow: 0 20px 60px #0004; }
.login-card h1 { margin: 5px 0 8px; line-height: 1.1; }
.login-card > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); }
.login-card form { display: grid; gap: 9px; }
.login-card label { color: var(--muted); font-size: .82rem; font-weight: 750; }
.login-card input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.login-card button { margin-top: 5px; padding: 12px 16px; color: white; background: var(--green); border: 0; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; }
.login-card small { display: block; margin-top: 18px; color: var(--muted); }
.account-panel { max-width: 860px; }
.account-form { display: grid; gap: 14px; max-width: 560px; }
.account-form-grid { max-width: none; grid-template-columns: 1.2fr 1fr .8fr auto; align-items: end; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.account-form input, .account-form select { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.account-list { margin-top: 24px; }
.row-actions { display: flex; gap: 7px; }
.row-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.role-form { display: flex; align-items: center; gap: 7px; }
.role-form select { min-width: 130px; padding: 9px 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.credential-card { max-width: 680px; }
.credential-card > div { margin-bottom: 14px; padding: 14px 16px; display: flex; flex-direction: column; background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px; }
.credential-card span { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.credential-card strong { margin-top: 4px; font-size: 1.15rem; }
.credential-card .temporary-password { font-size: 1.45rem; letter-spacing: .04em; user-select: all; }
.credential-card .button { display: inline-block; text-decoration: none; }
.forecast-upload { margin-bottom: 24px; }
.forecast-upload .panel-heading p { margin: 5px 0 0; }
.upload-form { margin-top: 20px; display: flex; align-items: end; gap: 12px; }
.upload-form label { flex: 1; display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.upload-form input[type="file"] { padding: 9px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.upload-history { margin-top: 24px; }
.upload-history ul { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.upload-history li { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 8px; }
.upload-history small { grid-column: 2 / -1; color: #a12619; }
.sync-job-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sync-job-card h2 { display: inline; font-size: 1.2rem; }
.sync-job-card dl { margin: 18px 0; display: grid; gap: 8px; }
.sync-job-card dl div { display: flex; justify-content: space-between; gap: 20px; }
.sync-job-card dt { color: var(--muted); }
.sync-job-card dd { margin: 0; text-align: right; font-weight: 700; }
.sync-message { min-height: 42px; white-space: normal; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.settings-list { display: grid; gap: 16px; }
.forecast-setting-card { padding: 22px; }
.setting-title { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.setting-title h2 { margin: 0; }
.forecast-setting-form { display: grid; grid-template-columns: 1.5fr repeat(4, .7fr) auto; align-items: end; gap: 10px; }
.forecast-setting-form label { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.forecast-setting-form input { width: 100%; min-width: 0; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.setting-footer { margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; }
.text-button { padding: 0; color: #a12619; background: none; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.setting-history { margin-top: 24px; }
.setting-history ul { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.setting-history li { padding: 12px 14px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 8px; }
.setting-history li div { display: flex; justify-content: space-between; gap: 12px; }
.setting-history p { margin: 6px 0 2px; }
.setting-history small { color: var(--muted); }

.subnav { margin: -18px 0 30px; padding: 9px; display: flex; flex-wrap: wrap; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 22px #17394c0a; }
.subnav a { padding: 8px 10px; color: var(--navy); font-size: .82rem; }
.subnav a:hover { color: var(--green); background: var(--green-soft); }
.operations-metrics { grid-template-columns: repeat(4, 1fr); }
.operation-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.operation-grid a { min-height: 126px; padding: 20px; display: flex; flex-direction: column; gap: 7px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; box-shadow: 0 6px 22px #17394c0a; }
.operation-grid a:hover { border-color: #8fc4ad; transform: translateY(-1px); }
.operation-grid strong { font-size: 1.08rem; }
.operation-grid span { color: var(--muted); font-size: .88rem; }
.padded { padding: 22px 24px 10px; }
.panel-heading a { color: var(--green); font-weight: 800; }
.form-panel { margin-bottom: 24px; }
.form-panel > h2 { margin-bottom: 18px; }
.workflow-form { display: grid; gap: 12px; }
.workflow-form.four { grid-template-columns: repeat(4, 1fr); align-items: end; }
.workflow-form.five { grid-template-columns: repeat(5, 1fr); align-items: end; }
.workflow-form.six { grid-template-columns: repeat(6, 1fr); align-items: end; }
.workflow-form label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.workflow-form input, .workflow-form select, .workflow-form textarea, .quantity-input { min-width: 0; width: 100%; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.workflow-form textarea { min-height: 90px; resize: vertical; }
.workflow-form .wide { grid-column: span 2; }
.filter-tabs { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-tabs a { padding: 8px 11px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 750; text-decoration: none; }
.filter-tabs a.selected { color: var(--green); background: var(--green-soft); border-color: #9bcdb6; }
.priority-urgent, .status-blocked, .status-needs_review { color: #a12619; background: #ffe4df; }
.priority-high, .status-receiving, .status-in_transit, .status-counting { color: var(--amber); background: var(--amber-soft); }
.status-completed, .status-approved, .status-received, .status-packed, .status-handed_to_shippo { color: var(--green); background: var(--green-soft); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.details { margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.details div { padding: 11px 13px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 8px; }
.details dt { color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.details dd { margin: 3px 0 0; font-weight: 700; }
.stack { display: grid; gap: 16px; }
.receipt-line .workflow-form { margin-top: 20px; }
.final-action { margin-top: 22px; display: flex; justify-content: flex-end; }
.inline-count { display: grid; grid-template-columns: 90px minmax(140px, 1fr) auto; gap: 7px; }
.inline-count input { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.action-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form { margin-top: 12px; }
.negative-text { color: #a12619; font-weight: 750; }
.workflow-actions { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.workflow-actions .panel { margin: 0; }
.workflow-actions p { color: var(--muted); }
.scanner-shell { margin: 0 auto 24px; max-width: 860px; padding: 34px; color: white; background: var(--navy); border-radius: 18px; }
.scanner-shell h1 { margin: 2px 0 5px; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.06em; }
.scanner-shell > div > p:not(.eyebrow) { color: #dbe8ee; }
.scanner-form { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.scanner-form input { min-width: 0; padding: 16px 17px; border: 2px solid transparent; border-radius: 10px; font: inherit; font-size: 1.08rem; }
.scanner-form input:focus { outline: none; border-color: #80d4af; }
.scan-result { max-width: 860px; margin-inline: auto; }
.scan-result h2 { font-size: 1.7rem; }
.scan-list { padding-left: 20px; }
.scan-list li { margin: 8px 0; }
.role-guide { margin: 16px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-guide span { padding: 10px 12px; display: flex; flex-direction: column; color: var(--muted); background: #f8fbf9; border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; }
.role-guide strong { color: var(--ink); }
.sales-filters { grid-template-columns: 1fr 2fr auto auto; }
.sales-filters .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.scope-list { display: grid; gap: 14px; }
.scope-card { padding: 22px; }
.scope-title { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.scope-title h2 { margin: 0; }
.scope-title p { margin: 4px 0 0; }
.scope-form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; align-items: end; gap: 12px; }
.check-option { min-height: 70px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; color: var(--ink); background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.check-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.check-option span { display: flex; flex-direction: column; }
.check-option small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.scope-reason { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.scope-reason input { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.edit-account-panel .account-form { margin-top: 22px; }
.edit-account-panel .account-form p { margin: 0; }

.stock-style-list { overflow-x: auto; }
.stock-style-grid { min-width: 820px; display: grid !important; align-items: center; gap: 12px; }
.stock-style-header { padding: 0 20px 8px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stock-style-card { padding: 0; overflow: hidden; }
.stock-style-card + .stock-style-card { margin-top: 10px; }
.stock-style-card summary { padding: 17px 20px; cursor: pointer; list-style: none; }
.stock-style-card summary::-webkit-details-marker { display: none; }
.stock-style-card summary::marker { content: ""; }
.stock-style-card summary:hover { background: #f8fbf9; }
.stock-style-card[open] summary { background: #eef6f2; border-bottom: 1px solid var(--line); }
.stock-style-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.stock-style-name::before { content: "›"; flex: 0 0 auto; color: var(--green); font-size: 1.5rem; line-height: 1; transition: transform .15s ease; }
.stock-style-card[open] .stock-style-name::before { transform: rotate(90deg); }
.stock-style-label { min-width: 0; display: flex; flex-direction: column; }
.stock-style-label strong { white-space: normal; line-height: 1.25; }
.stock-style-name small, .stock-quantity small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.stock-quantity strong { display: block; font-size: 1.05rem; }
.stock-size-table { max-height: 620px; overflow: auto; }
.stock-size-table table { min-width: 900px; }
.stock-size-table th { position: sticky; top: 0; z-index: 1; }

@media (max-width: 780px) {
  .topbar, .page-heading { align-items: flex-start; flex-direction: column; }
  .topbar { padding-block: 16px; }
  .topbar-right { width: 100%; align-items: stretch; flex-direction: column; }
  .primary-nav { width: 100%; }
  .account-menu { align-self: flex-end; }
  .metrics, .checklist, .location-grid, .filter-grid, .inventory-filters, .account-form-grid, .sync-job-grid, .operation-grid, .workflow-form.four, .workflow-form.five, .workflow-form.six, .detail-grid, .role-guide, .sales-filters, .scope-form { grid-template-columns: 1fr; }
  .bulk-action { align-items: stretch; flex-direction: column; }
  .panel-heading, .shipping-summary, .upload-form { align-items: stretch; flex-direction: column; }
  .forecast-setting-form { grid-template-columns: 1fr 1fr; }
  .forecast-setting-form .supplier-field, .forecast-setting-form button { grid-column: 1 / -1; }
  .setting-footer { align-items: flex-start; flex-direction: column; }
  .container { margin-top: 28px; }
  .workflow-form .wide { grid-column: auto; }
  .inline-count { grid-template-columns: 76px 1fr; }
  .inline-count button { grid-column: 1 / -1; }
  .scanner-shell { padding: 24px; }
  .scanner-form { grid-template-columns: 1fr; }
  .stock-style-grid { min-width: 820px; }
}
