:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --line: rgba(0, 0, 0, .09);
  --red: #d70015;
  --orange: #ff9f0a;
  --cyan: #32ade6;
  --green: #248a3d;
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; padding-top: env(safe-area-inset-top); color: var(--ink); background: var(--canvas); font-size: 16px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.content-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.global-nav { position: sticky; z-index: 30; top: 0; height: 52px; border-bottom: 1px solid rgba(0,0,0,.06); background: rgba(250,250,252,.86); backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { width: min(1180px, calc(100% - 48px)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 0; border: 0; color: var(--ink); background: transparent; }
.wordmark strong { font-size: .91rem; letter-spacing: -.02em; }
.mark { width: 22px; height: 22px; display: flex; align-items: flex-end; gap: 2px; padding: 4px; border-radius: 7px; background: var(--ink); }
.mark i { display: block; width: 4px; border-radius: 3px; background: #fff; }
.mark i:nth-child(1) { height: 6px; opacity: .55; }
.mark i:nth-child(2) { height: 14px; }
.mark i:nth-child(3) { height: 10px; opacity: .78; }
.desktop-nav { display: flex; align-items: center; gap: 23px; }
.desktop-nav button { padding: 6px 0; border: 0; color: #4d4d50; background: transparent; font-size: .76rem; }
.desktop-nav button:hover, .desktop-nav button.active { color: #000; }
.desktop-nav b { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 3px; padding: 0 5px; border-radius: 99px; color: #fff; background: var(--red); font-size: .62rem; }
.desktop-nav b[hidden], .inventory-nav-count[hidden] { display: none; }
.nav-source-marker { margin-left: 2px; font-size: .58rem; font-weight: 600; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.network-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.network-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.network-state.offline i { background: var(--red); }
.install-button { padding: 5px 12px; border: 0; border-radius: 99px; color: #fff; background: var(--blue); font-size: .72rem; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: .65rem; font-weight: 700; }

.refresh-progress { position: fixed; z-index: 50; top: calc(64px + env(safe-area-inset-top)); left: 50%; width: min(560px, calc(100% - 32px)); padding: 14px 16px 15px; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 16px 46px rgba(0,0,0,.14); backdrop-filter: saturate(180%) blur(20px); transform: translateX(-50%); }
.refresh-progress[hidden] { display: none; }
.refresh-progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.refresh-progress-heading strong, .refresh-progress-heading span { display: block; }
.refresh-progress-heading strong { font-size: .82rem; }
.refresh-progress-heading div > span { margin-top: 4px; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.refresh-progress-stage { flex: 0 0 auto; padding: 4px 8px; border-radius: 99px; color: #0066cc; background: #e7f2ff; font-size: .61rem; font-weight: 700; }
.refresh-progress-track { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e8e8ed; }
.refresh-progress-track i { display: block; width: var(--refresh-progress, 0%); height: 100%; border-radius: inherit; background: var(--blue); transition: width .24s ease, background-color .2s ease; }
.refresh-progress.indeterminate .refresh-progress-track i { width: 38%; animation: refresh-progress-slide 1.15s ease-in-out infinite; }
.refresh-progress.success .refresh-progress-track i { background: var(--green); }
.refresh-progress.success .refresh-progress-stage { color: var(--green); background: #e9f7ed; }
.refresh-progress.error .refresh-progress-track i { width: 100%; background: var(--red); }
.refresh-progress.error .refresh-progress-stage { color: var(--red); background: #fff0f1; }
@keyframes refresh-progress-slide { from { transform: translateX(-110%); } to { transform: translateX(270%); } }

.view { display: none; }
.view.active { display: block; animation: fade-in .28s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.hero { min-height: 560px; padding: 84px 24px 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, #fff 0%, #fbfbfd 72%, var(--canvas) 100%); }
.eyebrow, .kicker { margin: 0 0 12px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .1em; }
.hero h1 { max-width: 100%; margin: 0; font-size: clamp(3.1rem, 5.4vw, 5.5rem); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.hero h1::first-line { background: linear-gradient(100deg, #1d1d1f 0%, #626267 78%); background-clip: text; color: transparent; }
.hero-copy { max-width: 660px; margin: 32px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; letter-spacing: -.02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.pill-button { min-height: 42px; padding: 0 21px; border-radius: 999px; font-size: .88rem; border: 1px solid transparent; transition: .18s ease; }
.pill-button.primary { color: #fff; background: var(--blue); }
.pill-button.primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.pill-button.secondary { color: var(--blue); border-color: var(--blue); background: transparent; }
.pill-button.secondary:hover { color: #fff; background: var(--blue); }
.pill-button:disabled { cursor: wait; opacity: .58; transform: none !important; }

.overview-content { padding: 90px 0 110px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-intro h2 { max-width: 640px; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -.055em; }
.updated-at { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: .78rem; }
.updated-at strong { color: var(--ink); }
.update-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.source-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.source-badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.source-badge.api { color: #0066cc; background: #e7f2ff; }
.source-badge.empty { color: #6e6e73; background: #f0f0f2; }
.source-marker { margin-left: 4px; color: #8e8e93; font-size: .62rem; font-weight: 600; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.source-marker.api, .nav-source-marker.api, .source-key .api { color: #0066cc; }
.source-marker.empty, .nav-source-marker.empty { color: #8e8e93; }
.metric-card strong .source-marker { font-size: .65rem; }
.legend-item strong .source-marker { font-size: .58rem; }
.source-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -13px 0 24px; color: var(--muted); font-size: .72rem; }
.source-key span { font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card { min-height: 218px; display: flex; flex-direction: column; padding: 28px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.metric-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.metric-card strong { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: auto; font-size: 4rem; line-height: 1; letter-spacing: -.065em; }
.metric-card small { margin-top: 10px; color: var(--metric-color); font-size: .78rem; font-weight: 600; }
.metric-card.blue { --metric-color: var(--blue); }
.metric-card.red { --metric-color: var(--red); }
.metric-card.amber { --metric-color: #b56700; }
.metric-card.green { --metric-color: var(--green); }
.metric-card.purple { --metric-color: #5856d6; }
.metric-card.unavailable strong { color: #8e8e93; }
.metric-card.unavailable small { color: #6e6e73; }
.fulfillment-metrics { margin-top: 32px; }
.fulfillment-metrics-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 4px 14px; }
.fulfillment-metrics-heading .kicker { margin-bottom: 5px; }
.fulfillment-metrics-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.metric-card.fulfillment { min-height: 184px; }
.metric-card.fulfillment strong { font-size: 3.25rem; }
.feature-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 16px; margin-top: 16px; }
.card { border-radius: var(--radius); background: var(--surface); }
.risk-card, .focus-card { min-height: 390px; padding: 30px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 48px; }
.card-heading h3 { margin: 0; font-size: 1.7rem; letter-spacing: -.04em; }
.link-button { padding: 5px 0; border: 0; color: var(--blue); background: transparent; font-size: .85rem; }
.link-button span { font-size: 1.2em; }
.live-tag { padding: 7px 11px; border-radius: 99px; color: var(--green); background: #e9f7ed; font-size: .69rem; font-weight: 700; }
.risk-visual { height: 19px; display: flex; overflow: hidden; border-radius: 99px; background: #e8e8ed; }
.risk-segment { min-width: 4px; transition: width .3s ease; }
.risk-segment.overdue { background: var(--red); }
.risk-segment.urgent { background: var(--orange); }
.risk-segment.watch { background: var(--cyan); }
.risk-segment.notice { background: #5856d6; }
.risk-segment.unknown { background: #8e8e93; }
.risk-segment.normal { background: #30b050; }
.risk-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; margin-top: 32px; }
.legend-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.legend-item i { width: 9px; height: 9px; border-radius: 50%; }
.legend-item strong { margin-left: auto; color: var(--ink); font-size: 1.1rem; text-align: right; }
.focus-list { display: grid; gap: 10px; }
.focus-item { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 16px; background: #f5f5f7; }
.focus-item .risk-bar { width: 5px; height: 38px; border-radius: 99px; background: var(--risk); }
.focus-item strong, .focus-item small { display: block; }
.focus-item strong { font-size: .84rem; }
.focus-item small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.focus-item time { color: var(--risk); font-size: .75rem; font-weight: 700; }

.page-view { padding: 92px 0 110px; }
.page-hero { margin: 0 0 48px; }
.page-hero h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.page-hero > p:last-child, .page-hero > div > p:last-child { max-width: 620px; margin: 23px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.store-hero, .split-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.import-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.import-status { margin: 0 6px 18px; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.operations-report-actions { display: flex; flex: 0 0 auto; }
.operations-report-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; margin: -28px 4px 16px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.operations-report-meta button { padding: 6px 10px; border: 1px solid currentColor; border-radius: 99px; color: var(--red); background: transparent; font-size: .68rem; }
.report-load-error { color: var(--red); }
.operations-report-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.report-summary-card { min-height: 132px; display: flex; flex-direction: column; padding: 19px; box-shadow: inset 0 4px 0 var(--report-tone); }
.report-summary-card > span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.report-summary-card > strong { margin-top: auto; font-size: 2.4rem; line-height: 1; letter-spacing: -.055em; }
.report-summary-card > small { margin-top: 7px; color: var(--report-tone); font-size: .61rem; font-weight: 600; }
.report-summary-card.critical { --report-tone: var(--red); }
.report-summary-card.high { --report-tone: #f06a00; }
.report-summary-card.medium { --report-tone: #9c6b00; }
.report-summary-card.low { --report-tone: #5856d6; }
.report-placeholder { grid-column: 1 / -1; min-height: 170px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.report-placeholder strong { font-size: 1rem; }
.report-placeholder span { margin-top: 8px; color: var(--muted); font-size: .75rem; }
.report-placeholder.error strong { color: var(--red); }
.report-placeholder.loading strong::before { width: 16px; height: 16px; display: inline-block; margin-right: 9px; border: 2px solid #d2d2d7; border-top-color: var(--blue); border-radius: 50%; animation: sku-spin .7s linear infinite; vertical-align: -3px; content: ""; }
.operations-report-todos, .operations-report-data { margin-top: 54px; }
.operations-report-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 4px 16px; }
.operations-report-section-heading .kicker { margin-bottom: 5px; }
.operations-report-section-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.operations-report-section-heading > span { color: var(--muted); font-size: .72rem; }
.operations-report-toolbar { justify-content: flex-start; margin-bottom: 12px; }
.operations-report-todo-list { display: grid; gap: 12px; }
.operations-report-todo { padding: 24px 26px; box-shadow: inset 4px 0 0 var(--todo-tone); }
.operations-report-todo.priority-critical { --todo-tone: var(--red); }
.operations-report-todo.priority-high { --todo-tone: #f06a00; }
.operations-report-todo.priority-medium { --todo-tone: #b07b00; }
.operations-report-todo.priority-low { --todo-tone: #5856d6; }
.operations-report-todo.priority-unknown { --todo-tone: #8e8e93; }
.report-todo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-todo-head > div { display: flex; flex-wrap: wrap; gap: 7px; }
.report-todo-head time { color: var(--muted); font-size: .69rem; }
.report-priority, .report-category { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: .63rem; font-weight: 700; }
.report-priority.critical { color: var(--red); background: #fff0f1; }
.report-priority.high { color: #a94a00; background: #fff1e7; }
.report-priority.medium { color: #805700; background: #fff7df; }
.report-priority.low { color: #4543b5; background: #eeedff; }
.report-priority.unknown { color: #636366; background: #f0f0f2; }
.report-category { color: #55555a; background: var(--canvas); }
.operations-report-todo > h3 { margin: 17px 0 0; font-size: 1.12rem; letter-spacing: -.02em; }
.operations-report-todo > p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.report-todo-entity { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 13px; }
.report-todo-entity span { color: var(--muted); font-size: .63rem; }
.report-todo-entity strong { overflow-wrap: anywhere; font-size: .74rem; }
.report-priority-reason { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 15px; padding: 11px 13px; border-radius: 12px; background: #fbfbfd; }
.report-priority-reason strong { color: var(--todo-tone); font-size: .67rem; }
.report-priority-reason span { color: #55555a; font-size: .7rem; line-height: 1.45; }
.report-evidence { margin-top: 15px; border-top: 1px solid var(--line); }
.report-evidence summary { padding: 14px 0 0; color: var(--blue); font-size: .7rem; font-weight: 700; cursor: pointer; }
.report-evidence > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.report-evidence section { min-width: 0; padding: 14px; border-radius: 14px; background: #fbfbfd; }
.report-evidence h4 { margin: 0 0 10px; font-size: .72rem; }
.report-facts, .report-source { display: grid; gap: 8px; margin: 0; }
.report-facts > div, .report-source > div { display: grid; grid-template-columns: minmax(90px, .36fr) 1fr; gap: 10px; }
.report-facts dt, .report-source dt { color: var(--muted); font-size: .61rem; }
.report-facts dd, .report-source dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .65rem; line-height: 1.45; }
.report-detail-empty { margin: 0; color: var(--muted); font-size: .66rem; }
.operations-report-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-data-card { padding: 24px; }
.report-data-card h3 { margin: 0 0 16px; font-size: 1.15rem; }
.report-data-card.unavailable h3 { color: #6e6e73; }
.report-data-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 5px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.report-data-row:first-child, .report-unavailable-row:first-child { border-top: 0; }
.report-data-row > span { color: var(--muted); font-size: .68rem; }
.report-data-row > strong { font-size: .76rem; text-align: right; }
.report-data-row > small { grid-column: 1 / -1; color: var(--muted); font-size: .61rem; }
.report-unavailable-row { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 0; border-top: 1px solid var(--line); }
.report-unavailable-row strong { color: #55555a; font-size: .73rem; }
.report-unavailable-row span { color: var(--muted); font-size: .65rem; line-height: 1.5; }
.analytics-hero-actions { display: flex; flex: 0 0 auto; }
.analytics-meta { min-height: 24px; margin: -28px 4px 17px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.analytics-summary-grid, .promotion-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promotion-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-summary-card { min-height: 154px; display: flex; flex-direction: column; padding: 22px; box-shadow: inset 0 4px 0 var(--analytics-tone, var(--blue)); }
.analytics-summary-card > span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.analytics-summary-card > strong { margin-top: auto; font-size: 2.65rem; line-height: 1; letter-spacing: -.055em; }
.analytics-summary-card > small { min-height: 2.7em; margin-top: 8px; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.analytics-summary-card.blue { --analytics-tone: var(--blue); }
.analytics-summary-card.green { --analytics-tone: var(--green); }
.analytics-summary-card.amber { --analytics-tone: #a86500; }
.analytics-summary-card.red { --analytics-tone: var(--red); }
.analytics-summary-card.purple { --analytics-tone: #5856d6; }
.analytics-summary-card.unavailable > strong { color: #8e8e93; }
.analytics-section { margin-top: 52px; }
.analytics-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 4px 15px; }
.analytics-section-heading .kicker { margin-bottom: 5px; }
.analytics-section-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.analytics-section-heading > span { color: var(--muted); font-size: .7rem; text-align: right; }
.analytics-section-heading.compact { margin: 0 0 18px; }
.analytics-section-heading.compact h2 { font-size: 1.35rem; }
.analytics-chart-card { min-height: 260px; padding: 24px; overflow: hidden; }
.analytics-chart-scroll { min-width: var(--chart-min-width, 760px); height: 218px; display: grid; grid-template-columns: repeat(var(--chart-columns), minmax(18px, 1fr)); gap: 6px; align-items: end; }
.analytics-chart-wrap { overflow-x: auto; padding-bottom: 4px; }
.analytics-bar-item { height: 100%; min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 8px; align-items: end; }
.analytics-bar-slot { height: 178px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.analytics-bar { width: min(18px, 80%); min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--blue); opacity: .82; }
.analytics-bar.partial { background: #8e8e93; opacity: .58; }
.analytics-bar-item time { overflow: hidden; color: var(--muted); font-size: .55rem; text-align: center; white-space: nowrap; }
.analytics-chart-empty { min-height: 210px; display: grid; place-items: center; color: var(--muted); font-size: .76rem; text-align: center; }
.sales-anomaly-list { display: grid; gap: 10px; }
.sales-anomaly-card { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(100px, .45fr)); gap: 18px; align-items: center; padding: 20px 22px; }
.sales-anomaly-product { min-width: 0; display: flex; align-items: center; gap: 13px; }
.sales-anomaly-image { width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border-radius: 12px; background: var(--canvas); }
.sales-anomaly-image img { width: 100%; height: 100%; object-fit: cover; }
.sales-anomaly-image span { width: 100%; height: 100%; display: grid; place-items: center; color: #8e8e93; font-size: .62rem; }
.sales-anomaly-product strong, .sales-anomaly-product small { display: block; overflow-wrap: anywhere; }
.sales-anomaly-product strong { font-size: .8rem; }
.sales-anomaly-product small { margin-top: 5px; color: var(--muted); font-size: .65rem; }
.sales-anomaly-metric span, .sales-anomaly-metric strong { display: block; }
.sales-anomaly-metric span { color: var(--muted); font-size: .62rem; }
.sales-anomaly-metric strong { margin-top: 6px; font-size: .84rem; }
.sales-anomaly-metric.signal-high strong { color: var(--red); }
.sales-anomaly-metric.signal-low strong { color: #7456b5; }
.analytics-disclaimer { margin: 0 4px 14px; padding: 12px 14px; border-radius: 13px; color: #665000; background: #fff8df; font-size: .7rem; line-height: 1.5; }
.price-toolbar { align-items: center; }
.price-toolbar .search-box { flex: 1; }
.price-product { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; gap: 11px; }
.price-product > div:last-child { min-width: 0; flex: 1 1 auto; }
.price-product-image { width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; border-radius: 10px; background: var(--canvas); }
.price-product-image img { width: 100%; height: 100%; object-fit: cover; }
.price-product-image span { width: 100%; height: 100%; display: grid; place-items: center; color: #8e8e93; font-size: .58rem; }
.price-product strong, .price-product small { max-width: 100%; overflow: hidden; }
.price-product strong { display: -webkit-box; line-height: 1.38; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.price-product small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.price-amount { font-size: .9rem; white-space: nowrap; }

[data-view="sales-analysis"] table { min-width: 860px; table-layout: fixed; white-space: normal; }
[data-view="sales-analysis"] th:nth-child(1) { width: 42%; }
[data-view="sales-analysis"] th:nth-child(2) { width: 19%; }
[data-view="sales-analysis"] th:nth-child(3) { width: 15%; }
[data-view="sales-analysis"] th:nth-child(4), [data-view="sales-analysis"] th:nth-child(5) { width: 12%; }
[data-view="sales-analysis"] #productPriceTableBody td { min-width: 0; overflow: hidden; vertical-align: middle; }
[data-view="sales-analysis"] #productPriceTableBody td:nth-child(2) strong,
[data-view="sales-analysis"] #productPriceTableBody td:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-view="sales-analysis"] #productPriceTableBody td:nth-child(3) { line-height: 1.4; overflow-wrap: anywhere; }
[data-view="sales-analysis"] #productPriceTableBody td:nth-child(4),
[data-view="sales-analysis"] #productPriceTableBody td:nth-child(5) { white-space: nowrap; }
.promotion-comparison { padding: 4px 24px; overflow-x: auto; }
.promotion-comparison-row { min-width: 650px; display: grid; grid-template-columns: minmax(130px, 1.2fr) repeat(3, minmax(120px, 1fr)); gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.promotion-comparison-row:first-child { border-top: 0; }
.promotion-comparison-row > strong { font-size: .76rem; }
.promotion-comparison-value span, .promotion-comparison-value strong { display: block; }
.promotion-comparison-value span { color: var(--muted); font-size: .6rem; }
.promotion-comparison-value strong { margin-top: 5px; font-size: .82rem; }
.promotion-change.up { color: var(--red); }
.promotion-change.down { color: var(--green); }
.promotion-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promotion-alert-card, .promotion-settings-card { min-height: 290px; padding: 24px; }
.promotion-alert-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.promotion-alert-row:first-child { border-top: 0; }
.promotion-alert-row strong, .promotion-alert-row span { display: block; }
.promotion-alert-row strong { font-size: .76rem; }
.promotion-alert-row span { margin-top: 5px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.promotion-alert-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; font-size: .62rem; font-weight: 700; }
.promotion-alert-state.alert { color: var(--red); background: #fff0f1; }
.promotion-alert-state.normal { color: var(--green); background: #e9f7ed; }
.promotion-alert-state.unknown { color: #636366; background: #f0f0f2; }
.promotion-settings-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promotion-settings-card label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; }
.promotion-settings-card input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; outline: none; }
.promotion-settings-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.promotion-settings-card button { grid-column: 1 / -1; justify-self: start; }
.promotion-settings-card > p { margin: 16px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.promotion-scope-note { margin-top: 18px; color: #55555a; background: #ececf1; }
.inventory-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.inventory-hero-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.inventory-summary-card { min-height: 156px; display: flex; flex-direction: column; padding: 22px; overflow: hidden; }
.inventory-summary-card > span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.inventory-summary-card > strong { margin-top: auto; font-size: 2.6rem; line-height: 1; letter-spacing: -.055em; }
.inventory-summary-card > small { margin-top: 8px; color: var(--summary-color); font-size: .7rem; font-weight: 600; }
.inventory-summary-card.blue { --summary-color: var(--blue); }
.inventory-summary-card.red { --summary-color: var(--red); }
.inventory-summary-card.amber { --summary-color: #9c5900; }
.inventory-summary-card.green { --summary-color: var(--green); }
.inventory-summary-card.loading span, .inventory-summary-card.loading strong, .inventory-summary-card.loading small { display: block; border-radius: 99px; background: linear-gradient(90deg, #ececf0 20%, #f7f7f9 50%, #ececf0 80%); background-size: 220% 100%; animation: inventory-shimmer 1.4s ease infinite; }
.inventory-summary-card.loading span { width: 44%; height: 11px; }
.inventory-summary-card.loading strong { width: 28%; height: 38px; margin-top: auto; }
.inventory-summary-card.loading small { width: 67%; height: 9px; }
@keyframes inventory-shimmer { to { background-position: -220% 0; } }
.inventory-coverage { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 14px; padding: 23px 25px; }
.inventory-coverage-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #0071e3, #43a2ff); box-shadow: 0 10px 24px rgba(0,113,227,.2); font-size: .8rem; font-weight: 800; }
.inventory-coverage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.inventory-coverage-heading .kicker { margin-bottom: 5px; }
.inventory-coverage h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.inventory-coverage > div > p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.inventory-toolbar { margin-bottom: 14px; }
.inventory-toolbar .search-box { flex: 1; }
.inventory-alert-list { display: grid; gap: 14px; }
.inventory-alert-card { overflow: hidden; padding: 26px; box-shadow: inset 4px 0 0 transparent; }
.inventory-alert-card.shortage { box-shadow: inset 4px 0 0 var(--red); }
.inventory-alert-card.blacklisted { box-shadow: inset 4px 0 0 #7135a5; }
.inventory-alert-card.shortage.blacklisted { box-shadow: inset 4px 0 0 var(--red), inset 8px 0 0 #7135a5; }
.inventory-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.inventory-product { min-width: 0; display: flex; align-items: center; gap: 15px; }
.inventory-product > div { min-width: 0; }
.inventory-product h3 { max-width: 610px; margin: 0; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.45; letter-spacing: -.015em; }
.inventory-product p, .inventory-product small { display: block; margin: 5px 0 0; color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.inventory-image { width: 82px; height: 82px; flex: 0 0 82px; display: grid; overflow: hidden; place-items: center; border: 1px solid #e5e5ea; border-radius: 17px; background: var(--canvas); }
.inventory-image.missing { border-style: dashed; }
.inventory-image img { width: 100%; height: 100%; object-fit: cover; }
.inventory-decision { min-width: 238px; display: flex; flex-direction: column; align-items: flex-end; padding: 13px 15px; border-radius: 15px; text-align: right; }
.inventory-decision span { font-size: .66rem; font-weight: 700; }
.inventory-decision strong { margin-top: 4px; font-size: .86rem; }
.inventory-decision small { margin-top: 4px; font-size: .62rem; }
.inventory-decision.shortage { color: #a60012; background: #fff0f1; }
.inventory-decision.blocked { color: #7135a5; background: #f4eaff; }
.inventory-decision.normal { color: var(--green); background: #ebf8ee; }
.inventory-decision.unavailable { color: #636366; background: #f0f0f2; }
.inventory-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.inventory-metric-grid > div { min-width: 0; display: flex; flex-direction: column; padding: 14px 15px; background: #fff; }
.inventory-metric-grid span { color: var(--muted); font-size: .66rem; }
.inventory-metric-grid strong { margin-top: 6px; overflow-wrap: anywhere; font-size: .84rem; }
.inventory-metric-grid .official-missing { font-size: .69rem; font-weight: 500; }
.inventory-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 14px; margin-top: 14px; }
.sales-panel, .linkage-panel { border: 1px solid var(--line); border-radius: 17px; background: #fbfbfd; }
.sales-panel { padding: 18px; }
.sales-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sales-panel-heading span, .sales-panel-heading strong { display: block; }
.sales-panel-heading span { color: var(--muted); font-size: .66rem; }
.sales-panel-heading strong { margin-top: 4px; font-size: .9rem; }
.sales-panel-heading b { font-size: 1.25rem; letter-spacing: -.035em; }
.sales-panel-heading b .official-missing { font-size: .68rem; font-weight: 500; }
.sales-totals { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: .68rem; }
.sales-totals strong { margin-left: 4px; color: var(--ink); }
.sales-history-chart, .sales-history-empty { margin-top: 16px; padding: 12px 12px 9px; border-radius: 13px; background: #fff; }
.sales-history-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .63rem; }
.sales-history-meta strong { color: var(--ink); }
.sales-history-chart svg { width: 100%; height: 112px; display: block; overflow: visible; margin-top: 4px; }
.sales-history-chart .chart-baseline { stroke: #dedee3; stroke-width: 1; }
.sales-history-chart .chart-line { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.sales-history-chart circle { fill: #fff; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.sales-history-axis { display: grid; grid-template-columns: repeat(var(--history-columns, 2), minmax(38px, 1fr)); gap: 3px; color: var(--muted); font-size: .55rem; text-align: center; }
.sales-history-axis span, .sales-history-axis b, .sales-history-axis em { display: block; min-width: 0; font-style: normal; }
.sales-history-axis b { color: #6e6e73; font-weight: 600; }
.sales-history-axis em { margin-top: 2px; color: var(--ink); }
.sales-history-empty { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sales-history-empty strong { font-size: .76rem; }
.sales-history-empty span { max-width: 330px; margin-top: 6px; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.linkage-panel { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.linkage-metric { min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 14px 17px; border-bottom: 1px solid var(--line); background: #fff; }
.linkage-metric:last-child { border-bottom: 0; }
.linkage-metric > span { color: var(--muted); font-size: .65rem; }
.linkage-metric > strong { margin-top: 5px; font-size: .84rem; overflow-wrap: anywhere; }
.linkage-metric > small { margin-top: 5px; color: var(--muted); font-size: .62rem; line-height: 1.4; overflow-wrap: anywhere; }
.linkage-metric.unavailable strong { color: #636366; }
.inventory-alert-card footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 15px; color: var(--muted); font-size: .62rem; }
.inventory-alert-card footer span:first-child { color: var(--blue); font-weight: 700; }
.inventory-loading { min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.inventory-loading i { width: 23px; height: 23px; margin-bottom: 15px; border: 3px solid #d2d2d7; border-top-color: var(--blue); border-radius: 50%; animation: sku-spin .7s linear infinite; }
.inventory-loading strong { font-size: 1rem; }
.inventory-loading span { margin-top: 7px; color: var(--muted); font-size: .74rem; }
.inventory-loading button { margin-top: 17px; }
.inventory-loading.compact { min-height: 150px; }
.inventory-loading.error strong { color: var(--red); }
.inventory-empty { margin-top: 0; }
.product-risk-hero-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.product-risk-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.product-risk-summary-card { min-height: 146px; display: flex; flex-direction: column; padding: 22px; overflow: hidden; }
.product-risk-summary-card > span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.product-risk-summary-card > strong { margin-top: auto; font-size: 2.65rem; line-height: 1; letter-spacing: -.055em; }
.product-risk-summary-card > small { margin-top: 8px; color: var(--summary-color); font-size: .7rem; font-weight: 600; }
.product-risk-summary-card.red { --summary-color: var(--red); }
.product-risk-summary-card.amber { --summary-color: #9c5900; }
.product-risk-summary-card.green { --summary-color: var(--green); }
.product-risk-summary-card.gray { --summary-color: #6e6e73; }
.product-risk-summary-card.loading span, .product-risk-summary-card.loading strong, .product-risk-summary-card.loading small { display: block; border-radius: 99px; background: linear-gradient(90deg, #ececf0 20%, #f7f7f9 50%, #ececf0 80%); background-size: 220% 100%; animation: inventory-shimmer 1.4s ease infinite; }
.product-risk-summary-card.loading span { width: 44%; height: 11px; }
.product-risk-summary-card.loading strong { width: 28%; height: 38px; margin-top: auto; }
.product-risk-summary-card.loading small { width: 67%; height: 9px; }
.product-risk-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 14px; overflow: hidden; background: var(--line); }
.product-risk-overview > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: #fff; }
.product-risk-overview span { color: var(--muted); font-size: .7rem; }
.product-risk-overview strong { overflow-wrap: anywhere; font-size: .9rem; text-align: right; }
.product-risk-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
.product-risk-search { width: 100%; }
.product-risk-query-fields { display: grid; grid-template-columns: 1fr 1.35fr 1.15fr 1fr 1fr auto; gap: 8px; }
.product-risk-query-fields .query-field { min-width: 0; }
.product-risk-result-meta { margin: 0 5px 14px; color: var(--muted); font-size: .72rem; }
.product-risk-list { display: grid; gap: 10px; }
.product-risk-card { overflow: hidden; box-shadow: inset 4px 0 0 var(--risk-color); }
.product-risk-card.level-high { --risk-color: var(--red); }
.product-risk-card.level-medium { --risk-color: var(--orange); }
.product-risk-card.level-low { --risk-color: var(--green); }
.product-risk-card.level-insufficient { --risk-color: #8e8e93; }
.product-risk-card-button { width: 100%; display: grid; grid-template-columns: minmax(330px, 1.25fr) minmax(420px, 1fr) auto; gap: 22px; align-items: center; padding: 19px 22px 19px 25px; border: 0; color: inherit; background: transparent; text-align: left; }
.product-risk-card-button:hover { background: #fbfbfd; }
.product-risk-card-main { min-width: 0; display: flex; align-items: center; gap: 15px; }
.product-risk-image, .product-risk-detail-image { display: grid; overflow: hidden; place-items: center; border: 1px solid #e5e5ea; background: var(--canvas); }
.product-risk-image { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 15px; }
.product-risk-image img, .product-risk-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-risk-image.missing, .product-risk-detail-image.missing { border-style: dashed; }
.product-risk-product-copy { min-width: 0; }
.product-risk-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-risk-observed { color: var(--muted); font-size: .6rem; }
.product-risk-product-copy h3 { display: -webkit-box; margin: 7px 0 0; overflow: hidden; font-size: .88rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-risk-product-copy p, .product-risk-product-copy small { display: block; margin: 4px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .65rem; }
.product-risk-level { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 99px; font-size: .62rem; font-weight: 750; white-space: nowrap; }
.product-risk-level.high { color: #a60012; background: #fff0f1; }
.product-risk-level.medium { color: #955000; background: #fff3dc; }
.product-risk-level.low { color: var(--green); background: #ebf8ee; }
.product-risk-level.insufficient { color: #636366; background: #f0f0f2; }
.product-risk-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.product-risk-reasons span { padding: 4px 7px; border-radius: 99px; color: #5a5a5f; background: #f0f0f2; font-size: .58rem; }
.product-risk-reasons span.missing { color: #8e8e93; font-style: italic; }
.product-risk-card-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.product-risk-card-metrics div { min-width: 0; }
.product-risk-card-metrics span, .product-risk-card-metrics strong { display: block; }
.product-risk-card-metrics span { color: var(--muted); font-size: .58rem; }
.product-risk-card-metrics strong { margin-top: 5px; overflow-wrap: anywhere; font-size: .7rem; line-height: 1.35; }
.product-risk-card-metrics .official-missing { font-size: .62rem; font-weight: 500; }
.product-risk-open { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.product-risk-open b { font-size: 1rem; }
.product-risk-empty { margin-top: 0; }
.product-risk-pagination { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 14px; padding: 12px; }
.product-risk-pagination[hidden] { display: none; }
.product-risk-pagination span { color: var(--muted); font-size: .74rem; }
.product-risk-pagination .pill-button { min-height: 34px; padding-inline: 15px; font-size: .72rem; }
.product-risk-rules { margin-top: 14px; padding: 28px; }
.product-risk-rules-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.product-risk-rules-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.product-risk-rules > p { max-width: 880px; margin: 12px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.product-risk-rule-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 20px; }
.product-risk-rule-list article { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfbfd; }
.product-risk-rule-list article > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-risk-rule-list strong { font-size: .78rem; }
.product-risk-rule-list code, .product-risk-evidence code { padding: 3px 5px; border-radius: 5px; color: #55555a; background: #ececf0; font-size: .57rem; }
.product-risk-rule-list p { margin: 9px 0 0; color: #55555a; font-size: .7rem; line-height: 1.5; }
.product-risk-rule-list small { display: block; margin-top: 7px; color: var(--muted); font-size: .62rem; }
.product-risk-rule-placeholder { grid-column: 1 / -1; padding: 18px; border-radius: 14px; color: var(--muted); background: var(--canvas); font-size: .72rem; text-align: center; }
.product-risk-dialog { width: min(920px, calc(100% - 28px)); max-height: min(880px, calc(100vh - 32px)); overflow: auto; }
.product-risk-dialog-shell { padding: 30px; }
.product-risk-dialog-heading { position: sticky; z-index: 2; top: -30px; margin: -30px -30px 24px; padding: 30px 30px 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.product-risk-detail-warning { margin: 0 0 16px; padding: 11px 13px; border-radius: 12px; color: #8a5700; background: #fff5e1; font-size: .72rem; line-height: 1.45; }
.product-risk-detail-head { display: flex; align-items: center; gap: 16px; }
.product-risk-detail-image { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 19px; }
.product-risk-detail-head h3 { margin: 8px 0 0; font-size: 1.05rem; line-height: 1.4; }
.product-risk-detail-head p, .product-risk-detail-head small { display: block; margin: 5px 0 0; color: var(--muted); font-size: .7rem; }
.product-risk-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.product-risk-detail-grid section, .product-risk-evidence, .product-risk-field-coverage { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fbfbfd; }
.product-risk-detail-grid h4, .product-risk-evidence h4, .product-risk-field-coverage h4 { margin: 0; font-size: .86rem; }
.product-risk-detail-grid dl, .product-risk-evidence dl { margin: 12px 0 0; }
.product-risk-detail-grid dl > div { padding: 9px 0; border-top: 1px solid var(--line); }
.product-risk-detail-grid dt, .product-risk-detail-grid dd, .product-risk-evidence dt, .product-risk-evidence dd { margin: 0; }
.product-risk-detail-grid dt { color: var(--muted); font-size: .61rem; }
.product-risk-detail-grid dd { margin-top: 4px; overflow-wrap: anywhere; font-size: .73rem; font-weight: 650; }
.field-boundary-note { margin: 11px 0 0; color: var(--muted); font-size: .61rem; line-height: 1.45; }
.product-risk-evidence { margin-top: 10px; }
.product-risk-detail-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-risk-detail-section-heading .kicker { margin-bottom: 4px; }
.product-risk-detail-section-heading > span { color: var(--muted); font-size: .62rem; }
.product-risk-evidence > article { margin-top: 9px; padding: 13px; border-radius: 13px; background: #fff; }
.product-risk-evidence > article > div { display: flex; align-items: center; gap: 7px; }
.product-risk-evidence strong { font-size: .74rem; }
.product-risk-evidence dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.product-risk-evidence dl > div { min-width: 0; padding: 9px; border-radius: 10px; background: var(--canvas); }
.product-risk-evidence dt { color: var(--muted); font-size: .57rem; }
.product-risk-evidence dd { margin-top: 4px; overflow-wrap: anywhere; font-size: .65rem; }
.product-risk-evidence-empty { margin-top: 12px; color: var(--muted); font-size: .7rem; }
.product-risk-field-coverage { margin-top: 10px; }
.product-risk-field-coverage > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.field-availability { padding: 5px 8px; border-radius: 99px; font-size: .59rem; }
.field-availability.available { color: var(--green); background: #ebf8ee; }
.field-availability.missing { color: #636366; background: #f0f0f2; }
.product-risk-field-coverage > p { margin: 12px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.5; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 14px; }
.stock-query-toolbar, .shipping-query-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
.stock-query-row { display: flex; align-items: stretch; gap: 10px; }
.stock-query-row .search-box { flex: 1 1 300px; }
.stock-query-fields { display: flex; align-items: stretch; gap: 8px; }
.query-field { min-width: 145px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 11px; border-radius: 12px; background: var(--canvas); }
.query-field span { color: var(--muted); font-size: .61rem; font-weight: 600; }
.query-field input, .query-field select { min-width: 0; height: 23px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .76rem; }
.status-query-field { min-width: 120px; }
.clear-query-button { padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); background: #fff; font-size: .74rem; font-weight: 600; }
.clear-query-button:hover { border-color: rgba(0,113,227,.35); background: #f5faff; }
.single-toolbar .search-box { width: 100%; }
.search-box { min-width: 330px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 13px; background: var(--canvas); color: var(--muted); }
.search-box input { width: 100%; height: 42px; border: 0; outline: none; background: transparent; color: var(--ink); }
.filter-group { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: var(--canvas); }
.filter-group button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .78rem; }
.filter-group button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1180px; border-collapse: collapse; white-space: nowrap; }
[data-view="shipping-orders"] table { min-width: 1660px; }
th { padding: 17px 18px; color: var(--muted); background: #fbfbfd; font-size: .69rem; font-weight: 600; text-align: left; }
td { padding: 18px; border-top: 1px solid var(--line); font-size: .78rem; }
.order-cell strong, .order-cell small { display: block; }
.order-cell small { margin-top: 5px; color: var(--muted); }
.order-flag-stack { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.risk-badge, .status-badge, .order-type-badge, .issue-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 99px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.risk-badge.overdue { color: var(--red); background: #fff0f1; }
.risk-badge.urgent { color: #9c5900; background: #fff5e1; }
.risk-badge.watch { color: #07739b; background: #eaf8fd; }
.risk-badge.notice { color: #4543b5; background: #eeedff; }
.risk-badge.unknown { color: #636366; background: #f0f0f2; }
.risk-badge.normal { color: var(--green); background: #ebf8ee; }
.issue-badge.inbound { color: #b00020; background: #ffe8ec; box-shadow: inset 0 0 0 1px rgba(215,0,21,.12); }
.issue-badge.label { color: #7135a5; background: #f4eaff; box-shadow: inset 0 0 0 1px rgba(113,53,165,.12); }
.issue-badge.timing { color: #a60012; background: #fff0f1; box-shadow: inset 0 0 0 1px rgba(215,0,21,.12); }
.status-badge { color: #55555a; background: var(--canvas); }
.order-type-status { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.timestamp-stack { display: inline-flex; flex-direction: column; gap: 5px; white-space: normal; }
.timestamp-stack strong { font-size: .76rem; }
.timestamp-stack small { max-width: 210px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.order-type-badge.reverse { color: #a60012; background: #ffe7e9; box-shadow: inset 0 0 0 1px rgba(215,0,21,.14); }
.order-type-badge.jit-urgent { color: #955000; background: #fff0d2; box-shadow: inset 0 0 0 1px rgba(255,159,10,.18); }
.order-type-badge.urgent { color: #6e3aa7; background: #f4eaff; }
.order-type-badge.jit { color: #0066cc; background: #e7f2ff; }
.order-type-badge.normal, .order-type-badge.unknown { color: #5a5a5f; background: #eeeeF2; }
.countdown { color: var(--risk); font-weight: 700; }
.quantity-stack { display: inline-flex; align-items: center; gap: 6px; }
.quantity-stack b { font-size: .8rem; }
.quantity-stack i { color: #b0b0b5; font-style: normal; }
.secondary-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.order-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfbfd; }
.order-pagination > span { color: var(--muted); font-size: .72rem; }
.order-pagination > div { display: flex; gap: 8px; }
.order-pagination .pill-button { min-height: 34px; padding-inline: 15px; font-size: .72rem; }
.order-pagination .pill-button:disabled { cursor: default; opacity: .4; }
.sku-detail-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #d2d2d7; border-radius: 99px; color: var(--blue); background: #fff; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.sku-detail-toggle:hover { border-color: var(--blue); background: #f3f8ff; }
.sku-detail-toggle span { display: inline-block; transition: transform .18s ease; }
.sku-detail-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.sku-detail-row td { padding: 0 18px 18px; border-top: 0; background: #fbfbfd; }
.sku-detail-panel { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; white-space: normal; }
.sku-detail-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.sku-detail-summary strong { font-size: .88rem; }
.sku-detail-summary span { color: #0066cc; font-size: .68rem; font-weight: 700; }
.sku-detail-list { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.sku-detail-columns, .sku-detail-item { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(110px, .8fr) minmax(130px, .9fr) minmax(140px, 1fr) minmax(90px, .65fr) minmax(120px, .85fr); gap: 14px; align-items: center; }
.sku-detail-columns { padding: 9px 12px; color: var(--muted); background: var(--canvas); font-size: .65rem; font-weight: 700; }
.sku-detail-item { padding: 12px; border-top: 1px solid var(--line); color: #3a3a3c; font-size: .72rem; }
.sku-detail-item strong { color: var(--ink); font-size: .74rem; overflow-wrap: anywhere; }
.sku-detail-item span { min-width: 0; overflow-wrap: anywhere; }
.sku-product-cell { min-width: 0; display: flex; align-items: center; gap: 12px; }
.sku-product-name { display: -webkit-box; overflow: hidden; color: var(--ink); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sku-product-copy { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.sku-inventory-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 0; border-radius: 99px; color: #636366; background: #f0f0f2; font-size: .61rem; font-weight: 700; text-align: left; }
.sku-inventory-link.shortage { color: var(--red); background: #fff0f1; }
.sku-inventory-link.normal { color: var(--green); background: #ebf8ee; }
.sku-inventory-link span { font-size: 1.15em; }
.sku-image-frame { width: 68px; height: 68px; flex: 0 0 68px; display: grid; overflow: hidden; place-items: center; border: 1px solid #e5e5ea; border-radius: 12px; background: #f5f5f7; }
.sku-image-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sku-image-frame.missing { border-style: dashed; }
.sku-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 7px; color: #8e8e93; text-align: center; }
.sku-image-placeholder[hidden] { display: none; }
.sku-image-placeholder > span { font-size: 1.05rem; line-height: 1; }
.sku-image-placeholder small { font-size: .55rem; line-height: 1.25; }
.official-missing { color: #8e8e93; font-style: italic; }
.sku-detail-message { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: .76rem; text-align: center; }
.sku-detail-message.loading i { width: 15px; height: 15px; border: 2px solid #d2d2d7; border-top-color: var(--blue); border-radius: 50%; animation: sku-spin .7s linear infinite; }
.sku-detail-message.error { color: var(--red); }
.sku-detail-message button { padding: 6px 10px; border: 1px solid currentColor; border-radius: 99px; color: inherit; background: transparent; font-size: .69rem; }
@keyframes sku-spin { to { transform: rotate(360deg); } }
.mobile-card-list { display: none; }
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 7px; color: var(--muted); }

.store-card { display: grid; grid-template-columns: 330px 1fr; overflow: hidden; }
.store-identity { min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; padding: 38px; color: #fff; background: #1d1d1f; }
.store-monogram { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: auto; border-radius: 22px; color: #1d1d1f; background: #fff; font-size: .78rem; font-weight: 800; }
.store-identity h3 { margin: 22px 0 6px; font-size: 1.65rem; letter-spacing: -.04em; }
.store-identity .source-marker { color: #a1a1a6; }
.store-identity .source-marker.api { color: #64d2ff; }
.store-identity p { margin: 0; color: #a1a1a6; }
.store-status { margin-top: 18px; padding: 6px 10px; border-radius: 99px; color: #8ee6a2; background: rgba(48,209,88,.13); font-size: .72rem; }
.store-status-row { display: flex; align-items: center; gap: 4px; margin-top: 18px; }
.store-status-row .store-status { margin-top: 0; }
.store-details { display: grid; grid-template-columns: repeat(2, 1fr); padding: 18px 38px; }
.detail-item { display: flex; flex-direction: column; justify-content: center; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.detail-item:nth-last-child(-n+2) { border-bottom: 0; }
.detail-item span { color: var(--muted); font-size: .76rem; }
.detail-item strong { margin-top: 8px; font-size: 1rem; }
.api-capabilities-section { margin-top: 58px; }
.api-capabilities-note { margin: 0 4px 15px; padding: 13px 15px; border-radius: 14px; color: #665000; background: #fff8df; font-size: .72rem; line-height: 1.55; }
.api-capabilities-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.api-capability-stat { min-height: 118px; display: flex; flex-direction: column; padding: 18px; box-shadow: inset 0 4px 0 var(--capability-tone); }
.api-capability-stat span { color: var(--muted); font-size: .7rem; font-weight: 600; }
.api-capability-stat strong { margin-top: auto; font-size: 2.2rem; line-height: 1; letter-spacing: -.05em; }
.api-capability-stat small { margin-top: 6px; color: var(--capability-tone); font-size: .61rem; }
.api-capability-stat.integrated { --capability-tone: var(--green); }
.api-capability-stat.partial { --capability-tone: #a86500; }
.api-capability-stat.limited { --capability-tone: var(--red); }
.api-capability-stat.declared-only { --capability-tone: #6e6e73; }
.api-capabilities-toolbar { align-items: center; }
.api-capabilities-toolbar .search-box { flex: 1; }
.api-capabilities-toolbar > span { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.api-capabilities-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.api-capability-card { min-width: 0; padding: 20px; box-shadow: inset 4px 0 0 var(--capability-tone); }
.api-capability-card.integrated { --capability-tone: var(--green); }
.api-capability-card.partial { --capability-tone: #a86500; }
.api-capability-card.limited { --capability-tone: var(--red); }
.api-capability-card.declared-only { --capability-tone: #8e8e93; }
.api-capability-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.api-capability-card code { min-width: 0; overflow-wrap: anywhere; color: #343438; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .69rem; }
.api-capability-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; color: var(--capability-tone); background: color-mix(in srgb, var(--capability-tone) 10%, white); font-size: .6rem; font-weight: 700; }
.api-capability-card h3 { margin: 15px 0 0; font-size: .9rem; letter-spacing: -.02em; }
.api-capability-card p { margin: 7px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }

dialog { width: min(720px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(0,0,0,.34); backdrop-filter: blur(8px); }
dialog form { padding: 30px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.dialog-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.close-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: var(--canvas); font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .75rem; }
.form-grid input, .form-grid select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #d2d2d7; border-radius: 12px; outline: none; background: #fff; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.install-dialog { width: min(610px, calc(100% - 28px)); }
.install-requirement { margin: -8px 0 22px; padding: 13px 15px; border-radius: 14px; color: #55555a; background: var(--canvas); font-size: .78rem; line-height: 1.5; }
.install-requirement.ready { color: var(--green); background: #e9f7ed; }
.install-requirement.warning { color: #8a5700; background: #fff5e1; }
.install-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.install-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: .73rem; font-weight: 700; }
.install-steps strong, .install-steps p { display: block; }
.install-steps strong { font-size: .85rem; }
.install-steps p { margin: 5px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.install-note { margin: 18px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 30px; padding: 12px 18px; border-radius: 99px; color: #fff; background: rgba(29,29,31,.94); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s ease; font-size: .8rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav button { font-size: .7rem; }
  .operations-report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promotion-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-anomaly-card { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(85px, .45fr)); gap: 12px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .stock-query-row { flex-direction: column; }
  .stock-query-row .search-box { flex: 0 0 auto; }
  .stock-query-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .query-field, .status-query-field { min-width: 0; }
  .search-box { min-width: 0; }
  .store-card { grid-template-columns: 1fr; }
  .store-identity { min-height: 280px; }
  .api-capabilities-list { grid-template-columns: 1fr; }
  .inventory-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-detail-grid { grid-template-columns: 1fr; }
  .product-risk-query-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-risk-query-fields .clear-query-button { min-height: 48px; }
  .product-risk-card-button { grid-template-columns: 1fr auto; }
  .product-risk-card-metrics { grid-column: 1 / -1; }
  .product-risk-detail-grid { grid-template-columns: 1fr; }
  .linkage-panel { grid-template-columns: repeat(3, 1fr); }
  .linkage-metric { border-right: 1px solid var(--line); border-bottom: 0; }
  .linkage-metric:last-child { border-right: 0; }
}

@media (max-width: 680px) {
  .content-width, .nav-inner { width: min(100% - 28px, 1180px); }
  .global-nav { height: 48px; }
  .refresh-progress { top: calc(57px + env(safe-area-inset-top)); width: calc(100% - 28px); padding: 13px 14px 14px; border-radius: 16px; }
  .refresh-progress-heading { gap: 10px; }
  .refresh-progress-heading div > span { max-width: 245px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .network-state { display: none; }
  .hero { min-height: 460px; padding: 64px 20px 60px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.14; letter-spacing: -.035em; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
  .hero-actions .pill-button { flex: 1 1 100%; max-width: 280px; }
  .overview-content, .page-view { padding: 64px 0 96px; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .section-intro h2 { font-size: 2.6rem; }
  .metric-grid { gap: 10px; }
  .source-key { margin-top: -8px; }
  .metric-card { min-height: 165px; padding: 20px; border-radius: 22px; }
  .metric-card strong { font-size: 3rem; }
  .fulfillment-metrics { margin-top: 24px; }
  .fulfillment-metrics-heading { align-items: flex-start; flex-direction: column; }
  .metric-card.fulfillment { min-height: 156px; }
  .metric-card.fulfillment strong { font-size: 2.45rem; }
  .metric-card strong .source-marker { flex-basis: 100%; margin: 7px 0 0; }
  .metric-label { font-size: .77rem; }
  .feature-grid { gap: 10px; margin-top: 10px; }
  .risk-card, .focus-card { min-height: 0; padding: 22px; border-radius: 22px; }
  .card-heading { margin-bottom: 34px; }
  .card-heading h3 { font-size: 1.45rem; }
  .risk-legend { gap: 14px; }
  .legend-item strong .source-marker { display: block; margin: 3px 0 0; }
  .page-hero { margin-bottom: 32px; }
  .page-hero h1 { font-size: 4rem; }
  .store-hero, .split-hero { align-items: flex-start; flex-direction: column; }
  .operations-report-actions { width: 100%; }
  .operations-report-actions .pill-button { width: 100%; }
  .operations-report-meta { align-items: flex-start; flex-direction: column; margin-top: -15px; }
  .operations-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .report-summary-card { min-height: 124px; padding: 17px; border-radius: 20px; }
  .report-summary-card > strong { font-size: 2.1rem; }
  .operations-report-todos, .operations-report-data { margin-top: 42px; }
  .operations-report-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .operations-report-section-heading h2 { font-size: 1.7rem; }
  .operations-report-toolbar { border-radius: 22px; }
  .operations-report-todo { padding: 19px; border-radius: 22px; }
  .report-todo-head { align-items: flex-start; flex-direction: column; }
  .report-priority-reason { grid-template-columns: 1fr; }
  .report-evidence > div { grid-template-columns: 1fr; }
  .operations-report-data-grid { grid-template-columns: 1fr; }
  .report-data-card { padding: 20px; border-radius: 22px; }
  .analytics-hero-actions { width: 100%; }
  .analytics-hero-actions .pill-button { width: 100%; }
  .analytics-meta { margin-top: -15px; }
  .analytics-summary-grid, .promotion-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .analytics-summary-card { min-height: 132px; padding: 18px; border-radius: 21px; }
  .analytics-summary-card > strong { font-size: 2.2rem; }
  .analytics-section { margin-top: 42px; }
  .analytics-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .analytics-section-heading h2 { font-size: 1.7rem; }
  .analytics-section-heading > span { text-align: left; }
  .analytics-chart-card { padding: 18px; border-radius: 22px; }
  .sales-anomaly-card { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; border-radius: 22px; }
  .sales-anomaly-product { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .analytics-disclaimer { margin-inline: 0; }
  .price-toolbar .pill-button { width: 100%; }
  .promotion-lower-grid { grid-template-columns: 1fr; }
  .promotion-comparison { padding-inline: 16px; }
  .promotion-comparison-row { min-width: 0; grid-template-columns: minmax(86px, 1.1fr) repeat(3, minmax(58px, .75fr)); gap: 8px; }
  .promotion-comparison-value strong { font-size: .7rem; }
  .promotion-alert-card, .promotion-settings-card { min-height: 0; padding: 20px; border-radius: 22px; }
  .promotion-settings-card form { grid-template-columns: 1fr; }
  .promotion-settings-card button { grid-column: auto; width: 100%; }
  .import-actions { width: 100%; flex-wrap: wrap; }
  .import-actions .pill-button { flex: 1; }
  .inventory-hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .inventory-hero-actions .pill-button { width: 100%; }
  .product-risk-hero-actions { width: 100%; }
  .product-risk-hero-actions .pill-button { width: 100%; }
  .update-stack { align-items: flex-start; }
  .toolbar { border-radius: 22px; }
  .stock-query-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-query-field { grid-column: 1 / -1; }
  .clear-query-button { grid-column: 1 / -1; min-height: 38px; }
  .filter-group { width: 100%; overflow-x: auto; }
  .filter-group button { flex: 1 0 auto; }
  .inventory-summary-grid { gap: 9px; }
  .product-risk-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-risk-summary-card { min-height: 128px; padding: 18px; border-radius: 21px; }
  .product-risk-summary-card > strong { font-size: 2.25rem; }
  .product-risk-overview { grid-template-columns: 1fr; border-radius: 22px; }
  .product-risk-query-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-risk-query-fields label:nth-child(-n+3), .product-risk-query-fields .clear-query-button { grid-column: 1 / -1; }
  .product-risk-card { border-radius: 22px; }
  .product-risk-card-button { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .product-risk-card-main { align-items: flex-start; }
  .product-risk-card-metrics { grid-column: auto; grid-template-columns: repeat(2, 1fr); padding-top: 14px; border-top: 1px solid var(--line); }
  .product-risk-card-metrics div:last-child { grid-column: 1 / -1; }
  .product-risk-open { justify-self: end; }
  .product-risk-rules { padding: 21px; border-radius: 22px; }
  .product-risk-rules-heading { flex-direction: column; }
  .product-risk-rule-list { grid-template-columns: 1fr; }
  .product-risk-dialog-shell { padding: 22px; }
  .product-risk-dialog-heading { top: -22px; margin: -22px -22px 20px; padding: 22px 22px 15px; }
  .product-risk-dialog-heading h2 { max-width: 260px; font-size: 1.35rem; }
  .product-risk-detail-head { align-items: flex-start; }
  .product-risk-detail-image { width: 74px; height: 74px; flex-basis: 74px; border-radius: 15px; }
  .product-risk-evidence dl { grid-template-columns: 1fr; }
  .inventory-summary-card { min-height: 132px; padding: 18px; border-radius: 21px; }
  .inventory-summary-card > strong { font-size: 2.25rem; }
  .inventory-coverage { grid-template-columns: 1fr; padding: 20px; border-radius: 22px; }
  .inventory-coverage-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .inventory-coverage-icon { width: 43px; height: 43px; border-radius: 14px; }
  .inventory-toolbar { align-items: stretch; flex-direction: column; border-radius: 22px; }
  .inventory-toolbar .search-box { flex: none; width: 100%; }
  .inventory-filter-group { width: 100%; overflow-x: auto; }
  .inventory-alert-card { padding: 19px; border-radius: 22px; }
  .inventory-card-head { flex-direction: column; }
  .inventory-product { align-items: flex-start; }
  .inventory-image { width: 72px; height: 72px; flex-basis: 72px; border-radius: 15px; }
  .inventory-decision { min-width: 0; width: 100%; align-items: flex-start; text-align: left; }
  .inventory-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-detail-grid { grid-template-columns: 1fr; }
  .linkage-panel { grid-template-columns: 1fr; }
  .linkage-metric { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .linkage-metric:last-child { border-bottom: 0; }
  .inventory-alert-card footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sales-history-chart { overflow-x: auto; }
  .sales-history-chart svg, .sales-history-axis { min-width: 430px; }
  .table-wrap { display: none; }
  .table-panel { background: transparent; }
  .mobile-card-list { display: grid; gap: 10px; }
  .shipment-card { padding: 20px; border-radius: 22px; background: #fff; }
  .shipment-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .shipment-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .shipment-card-head > div, .shipment-card-grid > div { min-width: 0; }
  .shipment-card h3 { margin: 12px 0 5px; font-size: 1rem; }
  .shipment-card p { margin: 0; color: var(--muted); font-size: .72rem; }
  .shipment-card h3, .shipment-card p, .shipment-card strong { overflow-wrap: anywhere; }
  .shipment-card-head > strong { font-size: .74rem; text-align: right; }
  .shipment-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
  .shipment-card-grid span, .shipment-card-grid strong { display: block; }
  .shipment-card-grid span { color: var(--muted); font-size: .68rem; }
  .shipment-card-grid strong { margin-top: 5px; font-size: .78rem; }
  .shipment-card.expanded { box-shadow: inset 0 0 0 1px rgba(0,113,227,.18); }
  .order-pagination { align-items: stretch; flex-direction: column; margin-top: 10px; border: 0; border-radius: 18px; background: #fff; }
  .order-pagination > div { display: grid; grid-template-columns: repeat(2, 1fr); }
  .order-pagination .pill-button { width: 100%; }
  .sku-detail-toggle.mobile { width: 100%; min-height: 40px; margin-top: 18px; border-color: #b9d8f7; font-size: .76rem; }
  .sku-detail-panel.mobile { margin-top: 12px; padding: 14px; background: #fbfbfd; }
  .sku-detail-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sku-detail-columns { display: none; }
  .sku-detail-list { border: 0; border-radius: 0; }
  .sku-detail-item { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin-top: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .sku-detail-columns + .sku-detail-item { margin-top: 0; }
  .sku-detail-item [data-label]::before { display: block; margin-bottom: 5px; color: var(--muted); content: attr(data-label); font-size: .62rem; font-weight: 500; }
  .sku-detail-item [data-label]:first-child { grid-column: 1 / -1; }
  .sku-product-cell { position: relative; min-height: 94px; align-items: flex-start; padding-top: 18px; }
  .sku-product-cell::before { position: absolute; top: 0; left: 0; }
  .sku-product-name { padding-top: 4px; -webkit-line-clamp: 4; }
  .sku-image-frame { width: 76px; height: 76px; flex-basis: 76px; }
  .sku-detail-message { min-height: 90px; flex-direction: column; line-height: 1.5; }
  .store-card { border-radius: 22px; }
  .store-identity { min-height: 265px; padding: 28px; }
  .store-details { grid-template-columns: 1fr; padding: 12px 25px; }
  .api-capabilities-section { margin-top: 44px; }
  .api-capabilities-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .api-capability-stat { min-height: 108px; padding: 16px; border-radius: 20px; }
  .api-capabilities-toolbar { align-items: stretch; }
  .api-capabilities-toolbar > span { text-align: left; }
  .api-capability-card { padding: 18px; border-radius: 20px; }
  .detail-item, .detail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-item:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  dialog form { padding: 24px; }
  .bottom-nav { position: fixed; z-index: 35; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); height: 62px; display: flex; overflow-x: auto; padding: 5px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; background: rgba(29,29,31,.9); backdrop-filter: blur(20px); box-shadow: 0 12px 34px rgba(0,0,0,.2); scrollbar-width: none; }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bottom-nav button { flex: 1 0 52px; min-width: 52px; padding-inline: 2px; border: 0; border-radius: 17px; color: #a1a1a6; background: transparent; font-size: .56rem; }
  .bottom-nav button.active { color: #fff; background: rgba(255,255,255,.13); }
  .bottom-nav span { display: block; margin-bottom: 3px; font-size: .72rem; font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .refresh-progress.indeterminate .refresh-progress-track i { width: 100%; opacity: .45; animation: none; transform: none; }
}
