:root {
  color-scheme: light;
  --canvas: #f4f1e9;
  --surface: #fffdf8;
  --surface-soft: #ebe8df;
  --navy: #0d2834;
  --ink: #18343f;
  --muted: #5c6e72;
  --line: #d8d7cf;
  --teal: #057471;
  --teal-dark: #075e5e;
  --teal-soft: #d8eeea;
  --slate: #64808b;
  --blue: #2a78d6;
  --orange: #eb6834;
  --positive: #0a7b55;
  --positive-soft: #dcefe6;
  --negative: #bd3c4f;
  --negative-soft: #f6dfe2;
  --shadow: 0 16px 45px rgb(13 40 52 / 7%);
  --radius: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0a9892; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; color: white; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; background: var(--navy); color: #fff; }
.header-inner { width: min(1440px, calc(100% - 48px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 40px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; color: #79d6cb; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { letter-spacing: -.02em; }
.brand-lockup small { margin-top: 3px; color: #9fb4ba; font-size: .7rem; letter-spacing: .04em; }
nav { display: flex; gap: 24px; }
nav a { color: #c6d2d5; font-size: .84rem; text-decoration: none; }
nav a:hover { color: white; }
.header-actions { display: flex; gap: 8px; }
.button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover { background: #07938e; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.site-header .button.secondary { border-color: rgb(255 255 255 / 23%); color: white; }
.control-bar { position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgb(255 253 248 / 94%); backdrop-filter: blur(12px); }
.controls { width: min(1440px, calc(100% - 48px)); margin: auto; display: flex; align-items: end; gap: 1px; padding: 11px 0; }
.controls label { min-width: 0; display: grid; gap: 3px; padding: 0 14px; border-right: 1px solid var(--line); }
.controls label:first-child { padding-left: 0; }
.controls label:last-child { border: 0; }
.controls span { padding-left: 2px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .05em; }
.controls select { min-width: 132px; border: 0; background: transparent; color: var(--navy); font-size: .86rem; font-weight: 750; cursor: pointer; }
main { width: min(1440px, calc(100% - 48px)); margin: auto; min-width: 0; }
.section { min-width: 0; padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.section-kicker, .eyebrow, .panel-label { margin: 0 0 10px; color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.overview-section { padding-top: 40px; padding-bottom: 48px; }
.overview-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8%; align-items: end; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2.3rem, 3.8vw, 3.8rem); line-height: .98; letter-spacing: -.065em; }
.overview-deck { max-width: 520px; margin: 0 0 8px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.insight-panel { display: grid; grid-template-columns: 76px 1fr 170px; gap: 24px; align-items: center; margin-top: 30px; padding: 24px 28px; background: var(--navy); color: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.insight-index { align-self: stretch; display: grid; place-items: center; border-right: 1px solid rgb(255 255 255 / 16%); color: #78cfc6; font-size: 1.25rem; font-weight: 800; }
.insight-panel h2 { margin: 0 0 7px; color: white; font-size: clamp(1.25rem, 2.2vw, 1.85rem); letter-spacing: -.035em; }
.insight-panel p { margin: 0; color: #b9c9cd; line-height: 1.6; }
.insight-context { padding-left: 24px; border-left: 1px solid rgb(255 255 255 / 16%); }
.insight-context span, .insight-context strong { display: block; }
.insight-context span { color: #819aa1; font-size: .7rem; }
.insight-context strong { margin-top: 6px; font-size: 1.05rem; }
.kpi-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.kpi-card { min-width: 0; padding: 25px 22px; border-left: 1px solid var(--line); }
.kpi-card:first-child { border-left: 0; }
.kpi-card p { min-height: 2em; margin: 0 0 17px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.kpi-card strong { display: block; color: var(--navy); font-size: clamp(1.55rem, 2vw, 2.25rem); letter-spacing: -.05em; white-space: nowrap; }
.hero-kpi strong { color: var(--teal-dark); }
.kpi-card span { display: block; margin-top: 9px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-heading > div { display: flex; gap: 20px; align-items: start; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.65; font-size: .86rem; text-align: right; }
.section-number { color: var(--teal); font-size: .78rem; font-weight: 800; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.045em; }
.chart-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; min-width: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.chart-panel, .table-panel { padding: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 16px; }
.panel-heading h3 { margin: 0 0 5px; color: var(--navy); font-size: 1rem; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .74rem; }
.data-badge { padding: 5px 9px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-size: .65rem; font-weight: 800; }
.chart { position: relative; width: 100%; height: 330px; min-width: 0; }
.chart-tall { height: 390px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.sku-chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.sku-chip { display: inline-flex; align-items: center; gap: 7px; }
.sku-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--sku-color); flex-shrink: 0; }
.sku-chip.active { border-color: var(--sku-color); background: color-mix(in srgb, var(--sku-color) 14%, white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--sku-color); }
.chips-note { color: var(--muted); font-size: .72rem; font-weight: 700; }
.movement-chart { height: 460px; }
.efficiency-charts { grid-template-columns: 1.35fr 1fr; }
.small-multiple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.small-chart { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.small-chart h4 { margin: 0 0 4px; color: var(--navy); font-size: .78rem; }
.small-chart p { margin: 0; color: var(--muted); font-size: .65rem; }
.small-chart .chart { height: 220px; }
#efficiency-table small { color: var(--muted); font-weight: 600; }
.assessment-cell { min-width: 205px; white-space: normal; line-height: 1.45; }
.assessment-cell strong, .assessment-cell span { display: block; }
.assessment-cell span { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.hypothesis-cell { min-width: 130px; white-space: normal; color: var(--teal-dark); font-weight: 750; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart:has(.chart-legend) { display: flex; flex-direction: column; }
.chart:has(.chart-legend) > svg { flex: 1; min-height: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 0 4px 6px; font-size: 10px; line-height: 1.3; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 14px; height: 3px; flex-shrink: 0; }
.chart .sku-rate { font-weight: 800; }
.chart .sku-rate-up { fill: #087044; }
.chart .sku-rate-down { fill: #bd2856; }
.chart .sku-rate-flat { fill: #64808b; }
.chart text.bar-value-inside { fill: white; font-weight: 700; paint-order: stroke; stroke: rgb(0 0 0 / 12%); stroke-width: 2px; }
.chart .grid { stroke: #e2e1db; stroke-width: 1; }
.chart .axis { stroke: #bbbdb8; stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .mark-hit { cursor: pointer; }
.chart .mark-hit:hover, .chart .mark-hit:focus { filter: brightness(1.07); }
.legend-inline { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; }
.legend-inline i { width: 13px; height: 7px; border-radius: 2px; }
.legend-inline .positive { background: var(--positive); }
.legend-inline .negative { margin-left: 6px; background: var(--negative); }
.data-view { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-view summary { padding: 13px 16px; color: var(--navy); font-size: .78rem; font-weight: 750; cursor: pointer; }
.table-panel { margin-top: 18px; padding-bottom: 10px; }
.table-tools { align-items: center; }
.table-tools input { width: min(230px, 100%); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; }
th { padding: 11px 12px; color: var(--muted); background: #f2f0e9; font-size: .67rem; text-align: left; white-space: nowrap; }
th button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
td { padding: 13px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
tbody tr[data-sku] { cursor: pointer; }
tbody tr[data-sku]:hover, tbody tr[data-sku]:focus-within { background: #f4faf8; }
td.numeric, th.numeric { text-align: right; }
.delta-up { color: var(--positive); font-weight: 750; }
.delta-down { color: var(--negative); font-weight: 750; }
.sku-button { padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 720; text-align: left; cursor: pointer; }
.empty-state { padding: 72px 24px; border: 1px dashed #b7c1bf; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 1.3rem; }
.empty-state h3 { margin: 0 0 8px; color: var(--navy); }
.empty-state p { max-width: 540px; margin: auto; color: var(--muted); line-height: 1.65; }
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: priority; }
.priority-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.priority-card::before { counter-increment: priority; content: "0" counter(priority); color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.priority-card h3 { min-height: 2.4em; margin: 14px 0 10px; color: var(--navy); font-size: 1.04rem; }
.priority-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.priority-card strong { display: block; margin-top: 20px; color: var(--ink); font-size: .8rem; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.method-grid article { padding: 24px; background: var(--surface); }
.method-grid span { color: var(--teal); font-size: .7rem; font-weight: 800; }
.method-grid h3 { margin: 14px 0 8px; color: var(--navy); font-size: .95rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.download-band { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 24px; padding: 30px 34px; border-radius: var(--radius); background: var(--navy); color: white; }
.download-band h3 { margin: 0 0 5px; font-size: 1.35rem; }
.download-band .section-kicker { color: #e6efed; }
.download-band p:not(.section-kicker) { margin: 0; color: #a9bdc2; font-size: .78rem; }
.download-band > div:last-child { display: flex; gap: 8px; flex-shrink: 0; }
.download-band .button.secondary { border-color: rgb(255 255 255 / 28%); color: white; }
footer { width: min(1440px, calc(100% - 48px)); margin: auto; padding: 28px 0 45px; display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }
dialog { width: min(780px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 28px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: 0 30px 80px rgb(13 40 52 / 30%); }
dialog::backdrop { background: rgb(13 40 52 / 65%); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-header h2 { margin: 0; color: var(--navy); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.35rem; cursor: pointer; }
.dialog-sku { margin: 20px 0; padding: 12px; background: #f0eee7; border-radius: 8px; color: var(--muted); font-size: .76rem; word-break: break-word; }
.dialog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 18px; background: var(--line); border: 1px solid var(--line); }
.dialog-stats div { padding: 14px; background: white; }
.dialog-stats span, .dialog-stats strong { display: block; }
.dialog-stats span { color: var(--muted); font-size: .68rem; }
.dialog-stats strong { margin-top: 5px; color: var(--navy); }
.dialog-note { color: var(--muted); font-size: .72rem; line-height: 1.6; }
.chart-tooltip { position: fixed; z-index: 50; min-width: 150px; max-width: 260px; padding: 10px 12px; pointer-events: none; border: 1px solid #304b54; border-radius: 8px; background: rgb(13 40 52 / 96%); color: white; box-shadow: var(--shadow); font-size: .72rem; line-height: 1.5; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip span { color: #bbcccf; }
.noscript { padding: 20px; background: #fff3cd; color: #5f4600; }
@media (max-width: 1024px) {
  nav { display: none; }
  .overview-heading { grid-template-columns: 1fr; }
  .overview-deck { margin-top: 25px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-card:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .kpi-card:nth-child(5) { border-top: 1px solid var(--line); }
  .chart-grid, .efficiency-charts { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner, main, footer, .controls { width: min(100% - 28px, 1440px); }
  .header-actions .secondary { display: none; }
  .control-bar { position: relative; }
  .controls { overflow-x: auto; padding-bottom: 12px; }
  .controls label { flex: 0 0 auto; }
  .section { padding: 62px 0; }
  .insight-panel { grid-template-columns: 48px 1fr; padding: 22px; }
  .insight-context { grid-column: 2; padding: 12px 0 0; border: 0; border-top: 1px solid rgb(255 255 255 / 16%); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card:nth-child(odd) { border-left: 0; }
  .kpi-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .method-grid { grid-template-columns: 1fr; }
  .download-band { align-items: start; flex-direction: column; }
  footer { flex-direction: column; gap: 3px; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 67px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-lockup small { display: none; }
  .header-actions .button { min-height: 36px; padding: 0 12px; }
  h1 { font-size: 2.7rem; }
  .overview-section { padding-top: 48px; }
  .overview-deck { font-size: .9rem; }
  .insight-panel { grid-template-columns: 1fr; gap: 15px; }
  .insight-index { display: block; border: 0; }
  .insight-context { grid-column: auto; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card, .kpi-card:nth-child(odd), .kpi-card:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .kpi-card:first-child { border-top: 0; }
  .chart-panel, .table-panel { padding: 18px 14px; }
  .chart { height: 290px; }
  .chart-tall { height: 360px; }
  .small-multiple-grid { grid-template-columns: 1fr; }
  .small-chart .chart { height: 240px; }
  .panel-heading { gap: 10px; }
  .priority-grid { grid-template-columns: 1fr; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .table-tools input { width: 100%; }
  .download-band { padding: 24px; }
  .download-band > div:last-child { width: 100%; }
  .download-band .button { flex: 1; }
  .dialog-stats { grid-template-columns: 1fr; }
}
@media print {
  :root { --canvas: #fff; --surface: #fff; }
  .site-header nav, .header-actions, .control-bar, .download-band .button, .table-tools input, .icon-button { display: none !important; }
  .site-header { background: white; color: var(--navy); border-bottom: 2px solid var(--navy); }
  .brand-lockup small { color: var(--muted); }
  .brand-mark { border-color: var(--navy); color: var(--navy); }
  .section { break-inside: avoid; padding: 32px 0; }
  .panel, .kpi-grid { box-shadow: none; }
  .insight-panel { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  details { display: block; }
  details > summary { display: none; }
  details > .table-scroll { display: block; }
  footer { padding-bottom: 0; }
}
@media (forced-colors: active) {
  .chart .line, .chart rect, .legend-inline i { forced-color-adjust: none; }
  .chart .line:nth-of-type(even) { stroke-dasharray: 5 4; }
  .priority-card { border-top-style: double; }
}
