:root {
  --ink: #e8f4ff;
  --muted: #8aa0b8;
  --line: rgba(94, 234, 212, 0.16);
  --canvas: #060b16;
  --paper: rgba(12, 22, 40, 0.88);
  --espresso: #040912;
  --copper: #22d3ee;
  --indigo: #818cf8;
  --navy: var(--ink);
  --teal: #34d399;
  --glow-cyan: rgba(34, 211, 238, 0.45);
  --glow-violet: rgba(129, 140, 248, 0.4);
  --glow-mint: rgba(52, 211, 153, 0.35);
  --side: 216px;
  --pad: clamp(20px, 2.7vw, 48px);
  font-family: Inter, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(34, 211, 238, 0.16), transparent 58%),
    radial-gradient(900px 480px at 92% 8%, rgba(129, 140, 248, 0.18), transparent 55%),
    radial-gradient(700px 420px at 70% 100%, rgba(52, 211, 153, 0.08), transparent 50%),
    linear-gradient(180deg, #07111f 0%, #060b16 42%, #050914 100%);
  background-attachment: fixed;
  font-size: 14px;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
h1, h2, p { margin: 0; }
svg { display: block; width: 19px; height: 19px; flex: none; }
:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
.skip { position: fixed; left: 12px; top: -100px; padding: 10px; background: #0b1528; border: 1px solid var(--line); z-index: 10; }
.skip:focus { top: 12px; }

/* Workspace navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--side);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #d7e8ff;
  background:
    linear-gradient(180deg, rgba(8, 18, 34, 0.98), rgba(4, 9, 18, 0.98)),
    var(--espresso);
  border-right: 1px solid rgba(34, 211, 238, 0.14);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 20px; padding: 30px 3px; border-bottom: 1px solid rgba(94, 234, 212, 0.14); }
.brand b {
  display: block;
  font: 770 27px/1 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -.045em;
  background: linear-gradient(120deg, #e8f4ff 20%, #67e8f9 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small { display: block; margin-top: 7px; font-size: 11px; letter-spacing: .17em; color: #7dd3fc; }
.brand-symbol {
  display: grid;
  gap: 3px;
  place-content: center;
  width: 39px;
  height: 41px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.25), rgba(129, 140, 248, 0.3));
  border: 1px solid rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}
.brand-symbol i { width: 21px; height: 4px; background: linear-gradient(90deg, #67e8f9, #818cf8); transform: skew(-19deg); border-radius: 2px; }
.brand-symbol i:nth-child(2) { width: 15px; }
.sidebar nav { padding: 2px 13px 24px; }
.sidebar nav p { margin: 27px 13px 10px; color: #6b87a8; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  margin: 3px 0;
  border-radius: 10px;
  color: #b6c9df;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sidebar nav a:hover {
  background: rgba(34, 211, 238, 0.08);
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.18);
}
.sidebar nav a[aria-current] {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.12));
  color: #67e8f9;
  font-weight: 650;
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: inset 3px 0 #22d3ee, 0 0 20px rgba(34, 211, 238, 0.12);
}
.side-source { margin: auto 20px 0; border-top: 1px solid rgba(94, 234, 212, 0.14); padding: 20px 2px 25px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.side-source > span {
  padding: 8px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 10px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}
.side-source small { display: block; margin-bottom: 4px; color: #6b87a8; font-size: 11px; }
main { position: relative; z-index: 1; margin-left: var(--side); min-width: 0; }
.topbar {
  height: 62px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.crumb, .shop { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.crumb { color: var(--muted); }
.crumb svg { width: 16px; height: 16px; }
.crumb b { font-weight: 400; color: #5f7794; }
.crumb strong { color: #e2f3ff; font-weight: 550; }
.shop {
  position: relative;
  margin-left: auto;
  min-width: 0;
  max-width: min(420px, 46vw);
  font-weight: 550;
  color: #cfe8ff;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.shop i:first-child {
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.22));
  padding: 7px;
  border-radius: 50%;
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.28);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.18);
}
.shop svg { width: 16px; height: 16px; }
.shop-caption {
  flex: 0 0 auto;
  color: #8aa0b8;
  font-size: 12px;
  font-weight: 650;
}
.shop select {
  appearance: none;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  color: #e2f3ff;
  font: inherit;
  font-weight: 650;
  padding: 4px 18px 4px 0;
  cursor: pointer;
}
.shop select:disabled { opacity: .55; cursor: default; }
.shop > i:last-child {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8aa0b8;
  border-bottom: 1.5px solid #8aa0b8;
  transform: rotate(45deg);
  pointer-events: none;
}
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-left: 8px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.theme-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: #8aa0b8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.theme-switch button:hover { color: #e0f2fe; }
.theme-switch button[aria-pressed='true'] {
  color: #083344;
  background: linear-gradient(120deg, #67e8f9, #a5b4fc);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.28);
}
.menu, .scrim, .mobile-brand { display: none; }
.canvas { max-width: 1660px; margin: 0 auto; padding: 31px var(--pad) 48px; }
.page-heading, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-heading { margin-bottom: 23px; }
h1 {
  font-size: clamp(28px, 2.6vw, 39px);
  line-height: 1.25;
  letter-spacing: -.055em;
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}
.date-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 10px;
  background: rgba(10, 20, 38, 0.88);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12), inset 0 0 20px rgba(34, 211, 238, 0.04);
}
.date-control svg { width: 16px; height: 16px; color: #67e8f9; }
.date-caption { color: var(--muted); font-size: 12px; }
.date-control select { appearance: none; border: none; background: transparent; padding: 10px 14px 10px 0; font-size: 13px; font-weight: 650; color: #e8f4ff; }
.date-control select option { background: #0b1528; color: #e8f4ff; }
.date-control i { pointer-events: none; position: absolute; right: 13px; width: 6px; height: 6px; border: solid #7dd3fc; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.data-note, .state { padding: 18px; color: var(--muted); }
.data-note {
  margin-bottom: 16px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 10px;
  color: #fde68a;
}

/* Daily performance */
.kpis { display: grid; grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi, .panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(16, 28, 48, 0.92), rgba(8, 16, 32, 0.9)),
    var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.kpi { position: relative; isolation: isolate; overflow: hidden; padding: 16px clamp(14px, 1.45vw, 24px); }
.kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.55), transparent);
}
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 650; color: #c7ddf5; }
.kpi-label span {
  padding: 6px;
  border-radius: 8px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.kpi-label svg { width: 16px; height: 16px; }
.kpi-value {
  margin: 13px 0 15px;
  font-size: clamp(24px, 2.32vw, 42px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  color: #f0f9ff;
  text-shadow: 0 0 22px rgba(125, 211, 252, 0.18);
}
.kpi-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; border-top: 1px solid rgba(148, 163, 184, 0.16); padding-top: 11px; color: var(--muted); font-size: 12px; }
.kpi-sub b { color: #dbeafe; font-weight: 600; }
.kpi:first-child {
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(129, 140, 248, 0.28), transparent 50%),
    linear-gradient(126deg, #0b3a4a 0%, #0e5f73 45%, #155e75 78%, #1d4ed8 120%);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 12px 36px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.kpi:first-child::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, 0.045) 10px 11px),
    radial-gradient(circle at 88% 18%, rgba(165, 243, 252, 0.28), transparent 36%);
}
.kpi:first-child .kpi-label { color: #e0f2fe; }
.kpi:first-child .kpi-label span { background: rgba(255, 255, 255, 0.12); color: #ecfeff; border-color: rgba(255, 255, 255, 0.2); }
.kpi:first-child .kpi-value { text-shadow: 0 0 28px rgba(165, 243, 252, 0.35); }
.kpi:first-child .kpi-sub { border-color: rgba(255, 255, 255, 0.22); color: #bae6fd; }
.kpi:first-child .kpi-sub b { color: white; }

/* Carrier comparison and business mix */
.charts { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); align-items: stretch; gap: 16px; margin: 19px 0; }
.panel { padding: 21px clamp(16px, 1.6vw, 26px); }
.panel h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; color: #e8f4ff; }
.panel-head p { margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.copper { --series: var(--copper); }
.indigo { --series: var(--indigo); }
.key, .split-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  background: var(--series);
  border-radius: 3px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--series) 70%, transparent);
}
.carrier-chart { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 19px; }
.carrier-chart th { text-align: left; }
.carrier-chart thead th { padding: 0 0 9px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); color: var(--muted); font-size: 12px; font-weight: 550; }
.carrier-chart th:first-child { width: 20%; }
.carrier-chart th + th, .carrier-chart td { padding-left: clamp(10px, 1.4vw, 23px); }
.carrier-chart tbody th { font-size: 14px; font-weight: 600; color: #dbeafe; }
.carrier-chart tbody tr + tr { border-top: 1px solid rgba(148, 163, 184, 0.12); }
.measure { padding-top: 10px; padding-bottom: 10px; }
.measure strong { display: block; font-size: clamp(15px, 1.25vw, 20px); font-weight: 640; line-height: 1.2; letter-spacing: -.025em; color: #e2e8f0; }
.measure.indigo strong { color: #c7d2fe; }
.track { display: block; width: 100%; height: 5px; margin-top: 6px; border-radius: 3px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--series) 55%, #0f172a), var(--series)); box-shadow: 0 0 12px color-mix(in srgb, var(--series) 55%, transparent); }
.split { display: flex; flex-direction: column; }
.donut {
  width: clamp(142px, 11.8vw, 184px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(var(--copper) 0 var(--share), var(--indigo) var(--share) 100%);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18), inset 0 0 20px rgba(15, 23, 42, 0.35);
}
.donut.empty { background: rgba(148, 163, 184, 0.2); box-shadow: none; }
.donut > div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #15263f, #0a1424 70%);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.donut strong { font-size: clamp(26px, 2.15vw, 36px); letter-spacing: -.045em; line-height: 1; color: #ecfeff; }
.donut strong small { font-size: .53em; margin-left: 1px; }
.donut span { color: var(--muted); font-size: 11px; }
.split-legend > div { display: grid; grid-template-columns: 1fr auto 51px; align-items: baseline; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.split-legend > div:last-child { padding-bottom: 0; }
.split-legend span { font-weight: 550; color: #dbeafe; }
.split-legend small { text-align: right; color: var(--muted); font-size: 12px; }
.split-legend b { font-size: 15px; color: #f8fafc; }
.split .panel-head { margin-bottom: 14px; }
.split-legend { margin-top: 14px; }

/* Product ranking */
.text-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #67e8f9; font-size: 13px; font-weight: 600; }
button.text-link { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.text-link:hover { text-decoration: underline; text-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }
.text-link svg { width: 15px; }
small.warn { display: block; margin-top: 4px; color: #fbbf24; font-size: 11px; font-weight: 650; }
.dt-spend { display: grid; gap: 6px; }
.dt-meter { display: block; width: 100%; max-width: 140px; height: 4px; overflow: hidden; background: rgba(148, 163, 184, 0.18); border-radius: 4px; }
.dt-meter i { display: block; height: 100%; background: linear-gradient(90deg, #0e7490, #67e8f9); border-radius: inherit; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.product-panel table { border-collapse: collapse; width: 100%; }
.product-panel th, .product-panel td { padding: 11px 12px; text-align: right; white-space: nowrap; }
.product-panel th {
  background: rgba(34, 211, 238, 0.08);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 550;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
}
.product-panel td { border-bottom: 1px solid rgba(148, 163, 184, 0.12); font-size: 14px; color: #e2e8f0; }
.product-panel tr:last-child td { border-bottom: none; }
.product-panel tbody tr:hover td { background: rgba(34, 211, 238, 0.05); }
.product-panel :is(th,td):nth-child(-n+2) { text-align: left; }
.product-panel :is(th,td):first-child { width: 62px; }
.product-panel td:nth-child(2) { min-width: 150px; max-width: 520px; white-space: normal; font-weight: 550; color: #f1f5f9; }
.product-panel td:nth-child(3) { font-weight: 650; color: #67e8f9; }
.rank { display: inline-grid; place-items: center; padding: 3px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.product-panel tbody tr:first-child .rank {
  color: #083344;
  background: linear-gradient(120deg, #67e8f9, #a5b4fc);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}
.product-id { display: block; margin-top: 4px; color: var(--muted); font: 11px/1.4 ui-monospace, Menlo, monospace; }
.product-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px; background: rgba(15, 23, 42, 0.35);
}
.segmented button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; color: var(--muted);
  font: 600 12px/1.2 inherit;
}
.segmented button[aria-pressed='true'] {
  color: #083344; background: linear-gradient(120deg, #67e8f9, #a5b4fc);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}
.product-date { min-width: min(240px, 100%); }
.product-cell { display: grid; gap: 4px; }
.product-cell strong { font-weight: 600; color: inherit; }
.product-cell small { color: var(--muted); font-size: 11px; }
.product-link { color: inherit; text-decoration: none; }
.product-link:hover { color: #67e8f9; text-decoration: underline; }
html[data-theme='light'] .segmented {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
}
html[data-theme='light'] .product-link:hover { color: #0284c7; }

@media (max-width: 1180px) {
  :root { --side: 182px; --pad: 20px; }
  .kpis { gap: 10px; }
  .charts { gap: 12px; grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .sidebar { width: 216px; visibility: hidden; transform: translateX(-100%); }
  .menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 4; background: rgba(2, 6, 23, 0.72); border: 0; }
  .menu { display: grid; gap: 4px; padding: 8px; margin-left: -6px; border: 0; background: transparent; }
  .menu span { width: 18px; height: 2px; border-radius: 1px; background: #67e8f9; box-shadow: 0 0 8px rgba(34, 211, 238, 0.45); }
  .kpi { padding: 14px; }
}
@media (max-width: 700px) {
  :root { --pad: 16px; }
  .canvas { padding-top: 22px; }
  .topbar { height: 54px; gap: 7px; }
  .crumb { font-size: 12px; gap: 6px; }
  #crumb-icon, .workspace-name { display: none; }
  .mobile-brand { display: inline; font-size: 14px; font-weight: 760; letter-spacing: -.035em; color: #67e8f9; }
  .shop { gap: 6px; font-size: 12px; max-width: min(58vw, 280px); }
  .shop-caption { display: none; }
  .shop select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-heading { margin-bottom: 17px; }
  .date-control { padding: 0 9px; gap: 6px; }
  .date-caption { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-label { font-size: 13px; }
  .kpi-label span { padding: 5px; }
  .kpi-value { font-size: clamp(21px, 5.6vw, 31px); margin: 12px 0; }
  .kpi-sub { font-size: 11px; padding-top: 8px; }
  .charts { grid-template-columns: minmax(0, 1fr); margin: 14px 0; gap: 14px; }
  .panel { padding: 17px 15px; }
  .panel h2 { font-size: 18px; }
  .carrier-chart { margin-top: 17px; }
  .carrier-chart tbody th { font-size: 13px; }
  .measure strong { font-size: 15px; }
  .split { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1fr); align-items: center; gap: 16px; }
  .split .panel-head { grid-column: 1/-1; margin: 0; }
  .donut { width: min(100%, 139px); }
  .split-legend { margin: 0; }
  .split-legend > div { grid-template-columns: 1fr auto; gap: 4px; }
  .split-legend span { grid-column: 1/-1; font-size: 12px; }
  .split-legend b { font-size: 14px; }
  .product-panel :is(th,td) { padding: 10px 7px; }
  .theme-switch { margin-left: auto; }
  .theme-switch button { padding: 6px 9px; font-size: 11px; }
  .shop { margin-left: 0; }
}

/* Light tech theme */
html[data-theme='light'] {
  --ink: #17324d;
  --muted: #5d738c;
  --line: rgba(37, 99, 235, 0.12);
  --canvas: #f3f7fc;
  --paper: rgba(255, 255, 255, 0.9);
  --espresso: #0f2740;
  --copper: #0284c7;
  --indigo: #6366f1;
  --teal: #0f766e;
  color-scheme: light;
}
html[data-theme='light'] body {
  background:
    radial-gradient(1100px 480px at 8% -10%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(99, 102, 241, 0.14), transparent 52%),
    radial-gradient(700px 360px at 70% 100%, rgba(45, 212, 191, 0.1), transparent 48%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 48%, #e8eef8 100%);
}
html[data-theme='light'] body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px);
}
html[data-theme='light'] .skip { background: #ffffff; color: #17324d; }
html[data-theme='light'] .sidebar {
  color: #dbeafe;
  background:
    linear-gradient(180deg, #123252 0%, #0d243b 55%, #0a1c30 100%);
  border-right-color: rgba(125, 211, 252, 0.18);
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
}
html[data-theme='light'] .brand b {
  background: linear-gradient(120deg, #f8fbff 10%, #7dd3fc 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='light'] .brand small { color: #bae6fd; }
html[data-theme='light'] .sidebar nav p { color: #8fb0cf; }
html[data-theme='light'] .sidebar nav a { color: #d7e8ff; }
html[data-theme='light'] .sidebar nav a:hover {
  background: rgba(125, 211, 252, 0.12);
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.2);
}
html[data-theme='light'] .sidebar nav a[aria-current] {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.16));
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: inset 3px 0 #38bdf8, 0 0 18px rgba(56, 189, 248, 0.16);
}
html[data-theme='light'] .side-source { border-top-color: rgba(125, 211, 252, 0.16); }
html[data-theme='light'] .side-source > span {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(14, 165, 233, 0.12);
}
html[data-theme='light'] .side-source small { color: #8fb0cf; }
html[data-theme='light'] .topbar {
  border-bottom-color: rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.78);
}
html[data-theme='light'] .crumb b { color: #94a3b8; }
html[data-theme='light'] .crumb strong { color: #0f2740; }
html[data-theme='light'] .shop {
  color: #1e3a5f;
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.85);
}
html[data-theme='light'] .shop-caption { color: #64748b; }
html[data-theme='light'] .shop select { color: #0f2740; }
html[data-theme='light'] .shop i:first-child {
  color: #0284c7;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.12));
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.12);
}
html[data-theme='light'] .shop > i:last-child {
  border-right-color: #94a3b8;
  border-bottom-color: #94a3b8;
}
html[data-theme='light'] .theme-switch {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.85);
}
html[data-theme='light'] .theme-switch button { color: #64748b; }
html[data-theme='light'] .theme-switch button:hover { color: #0f2740; }
html[data-theme='light'] .theme-switch button[aria-pressed='true'] {
  color: #082f49;
  background: linear-gradient(120deg, #7dd3fc, #a5b4fc);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.18);
}
html[data-theme='light'] h1 {
  color: #0f2740;
  text-shadow: none;
}
html[data-theme='light'] .date-control {
  border-color: rgba(14, 165, 233, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
html[data-theme='light'] .date-control svg { color: #0284c7; }
html[data-theme='light'] .date-control select { color: #0f2740; }
html[data-theme='light'] .date-control select option { background: #ffffff; color: #0f2740; }
html[data-theme='light'] .date-control i { border-color: #64748b; }
html[data-theme='light'] .data-note {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
}
html[data-theme='light'] .kpi,
html[data-theme='light'] .panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94));
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme='light'] .kpi::before {
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.35), transparent);
}
html[data-theme='light'] .kpi-label { color: #334155; }
html[data-theme='light'] .kpi-label span {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.18);
}
html[data-theme='light'] .kpi-value {
  color: #0f2740;
  text-shadow: none;
}
html[data-theme='light'] .kpi-sub { border-top-color: rgba(148, 163, 184, 0.28); color: #64748b; }
html[data-theme='light'] .kpi-sub b { color: #1e3a5f; }
html[data-theme='light'] .kpi:first-child {
  color: #082f49;
  border-color: rgba(2, 132, 199, 0.28);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(165, 180, 252, 0.35), transparent 48%),
    linear-gradient(126deg, #e0f2fe 0%, #bae6fd 42%, #c7d2fe 100%);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html[data-theme='light'] .kpi:first-child .kpi-label { color: #0c4a6e; }
html[data-theme='light'] .kpi:first-child .kpi-label span {
  color: #0369a1;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(14, 165, 233, 0.2);
}
html[data-theme='light'] .kpi:first-child .kpi-value {
  color: #082f49;
  text-shadow: none;
}
html[data-theme='light'] .kpi:first-child .kpi-sub {
  border-color: rgba(14, 165, 233, 0.22);
  color: #0369a1;
}
html[data-theme='light'] .kpi:first-child .kpi-sub b { color: #0c4a6e; }
html[data-theme='light'] .panel h2 { color: #0f2740; }
html[data-theme='light'] .carrier-chart thead th { border-bottom-color: rgba(148, 163, 184, 0.28); }
html[data-theme='light'] .carrier-chart tbody th { color: #1e3a5f; }
html[data-theme='light'] .carrier-chart tbody tr + tr { border-top-color: rgba(148, 163, 184, 0.18); }
html[data-theme='light'] .measure strong { color: #0f2740; }
html[data-theme='light'] .measure.indigo strong { color: #4338ca; }
html[data-theme='light'] .track { background: rgba(148, 163, 184, 0.22); }
html[data-theme='light'] .donut {
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.14);
}
html[data-theme='light'] .donut > div {
  background: radial-gradient(circle at 40% 30%, #ffffff, #eef5ff 75%);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme='light'] .donut strong { color: #0f2740; }
html[data-theme='light'] .split-legend > div { border-top-color: rgba(148, 163, 184, 0.2); }
html[data-theme='light'] .split-legend span { color: #1e3a5f; }
html[data-theme='light'] .split-legend b { color: #0f2740; }
html[data-theme='light'] .text-link { color: #0284c7; }
html[data-theme='light'] small.warn { color: #b45309; }
html[data-theme='light'] .dt-meter { background: rgba(148,163,184,.22); }
html[data-theme='light'] .text-link:hover { text-shadow: none; }
html[data-theme='light'] .product-panel th {
  background: rgba(14, 165, 233, 0.08);
  color: #475569;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}
html[data-theme='light'] .product-panel td {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  color: #334155;
}
html[data-theme='light'] .product-panel tbody tr:hover td { background: rgba(14, 165, 233, 0.05); }
html[data-theme='light'] .product-panel td:nth-child(2) { color: #0f2740; }
html[data-theme='light'] .product-panel td:nth-child(3) { color: #0284c7; }
html[data-theme='light'] .product-panel tbody tr:first-child .rank {
  color: #082f49;
  background: linear-gradient(120deg, #7dd3fc, #a5b4fc);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.22);
}
html[data-theme='light'] .menu span {
  background: #0284c7;
  box-shadow: none;
}
html[data-theme='light'] .mobile-brand { color: #0284c7; }
html[data-theme='light'] .scrim:not([hidden]) { background: rgba(15, 23, 42, 0.42); }
html[data-theme='light'] :focus-visible {
  outline-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}
