/* =========================================================================
   Craft pass (unslop): quiet chrome, one cobalt accent, Geist type, a route-line signature.
   Direction - exact, steady, field-tested; a dispatch office and survey map sheets.
   The one rich moment is the Distance per day chart; the signature is the route line with stop dots
   that draws "areas visited in order". Layout and sizes are unchanged.
   Loaded last; delete this file (and its <link>) to return to the previous look.
   ========================================================================= */

/* ---------------------------------------------------------------- 1. ramp + accent (ink neutrals, cobalt) */
:root {
  --font: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --page: #f5f7fa; --surface: #ffffff; --surface-2: #f8f9fb; --surface-3: #eceff4; --glass: rgba(255, 255, 255, .88);
  --border: rgba(17, 24, 39, .08); --border-strong: rgba(17, 24, 39, .14);
  --text: #111827; --text-2: #4b5565; --muted: #667085;
  --grid: rgba(17, 24, 39, .06); --axis: rgba(17, 24, 39, .16);
  --brand: #1d4ff0; --brand-strong: #1639c4; --brand-soft: #edf2ff;
  --brand-grad: linear-gradient(#1d4ff0, #1d4ff0);
  --name-grad: linear-gradient(#111827, #111827);
  --bar-n: #b9c2cf; --bar-n-hover: #8e99a9;
  --bar-lo: #7cc7f5; --bar-mid: #2563eb; --bar-hi: #172b85; --bar-glow: rgba(37, 99, 235, .28);
  --ramp: linear-gradient(90deg, #7cc7f5 0%, #2563eb 60%, #172b85 100%);
  --ring: 0 0 0 3px rgba(29, 79, 240, .22);
  --shadow: 0 1px 2px rgba(17, 24, 39, .05); --shadow-hover: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-pop: 0 8px 24px rgba(17, 24, 39, .10), 0 1px 2px rgba(17, 24, 39, .06);
  --good-text: #15803d; --ease-out: cubic-bezier(.22, 1, .36, 1); --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  --page: #08090a; --surface: #111214; --surface-2: #16171a; --surface-3: #1e2024; --glass: rgba(12, 13, 15, .88);
  --border: rgba(237, 237, 237, .08); --border-strong: rgba(237, 237, 237, .14);
  --text: #ededed; --text-2: #a1a1a6; --muted: #8a8a90; --grid: rgba(255, 255, 255, .06); --axis: rgba(255, 255, 255, .16);
  --brand: #6c9bff; --brand-strong: #a9c2ff; --brand-soft: rgba(108, 155, 255, .12);
  --brand-grad: linear-gradient(#3d6ff5, #3d6ff5); --name-grad: linear-gradient(#ededed, #ededed);
  --bar-n: #3b3f47; --bar-n-hover: #5a5f69; --ring: 0 0 0 3px rgba(108, 155, 255, .3);
  --bar-lo: #1f5fd1; --bar-mid: #4f86ff; --bar-hi: #a6d8ff; --bar-glow: rgba(79, 134, 255, .35);
  --ramp: linear-gradient(90deg, #1f5fd1 0%, #4f86ff 60%, #a6d8ff 100%);
  --shadow: none; --shadow-hover: none; --shadow-pop: 0 12px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); --good-text: #4cc38a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #08090a; --surface: #111214; --surface-2: #16171a; --surface-3: #1e2024; --glass: rgba(12, 13, 15, .88);
    --border: rgba(237, 237, 237, .08); --border-strong: rgba(237, 237, 237, .14);
    --text: #ededed; --text-2: #a1a1a6; --muted: #8a8a90; --grid: rgba(255, 255, 255, .06); --axis: rgba(255, 255, 255, .16);
    --brand: #6c9bff; --brand-strong: #a9c2ff; --brand-soft: rgba(108, 155, 255, .12);
    --brand-grad: linear-gradient(#3d6ff5, #3d6ff5); --name-grad: linear-gradient(#ededed, #ededed);
    --bar-n: #3b3f47; --bar-n-hover: #5a5f69; --ring: 0 0 0 3px rgba(108, 155, 255, .3);
    --bar-lo: #1f5fd1; --bar-mid: #4f86ff; --bar-hi: #a6d8ff; --bar-glow: rgba(79, 134, 255, .35);
    --ramp: linear-gradient(90deg, #1f5fd1 0%, #4f86ff 60%, #a6d8ff 100%);
    --shadow: none; --shadow-hover: none; --shadow-pop: 0 12px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); --good-text: #4cc38a;
  }
}
body { font-family: var(--font); letter-spacing: 0; }
.bg-mesh, .ov-hero::after { display: none !important; }
b, strong { font-weight: 600; }

/* ---------------------------------------------------------------- 2. type: sentence case, 400-600, mono for figures and meta */
.ov-eyebrow, .ov-side-title, .combo-cap, .menu-label, .month-sep, .stat .l, .dd-sec h3, .donut-center span,
.card-pill, .day-item .dnum span, .heat-legend .title, .tl-axis, .rp-k { text-transform: none !important; letter-spacing: 0 !important; }
.ov-eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); }
.ov-side-title, .combo-cap { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.menu-label { font-size: 11.5px; font-weight: 500; }
.month-sep { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.card h2, .panel-head h2 { font-weight: 600; letter-spacing: -.005em; }
.ds-total b, .stat .v, .dc-stats b, .donut-center b, .area-detail .kv b, .rank-item .val, .split-row .v, .q-val { font-weight: 600; }
.dd-nav h2, .dialog h2 { font-weight: 600; }
.day-item .d1 .km, .hbar .nm, .rank-item .nm, .stop-main .t, .split-row .l, .dist-row, .meta-chip b { font-weight: 600; }
.chart .tick, .chart .avg-label, .chart .peak-tag text, .chart .guide-label, .tl-axis, .dc-meta, .count-pill, .card-pill,
.hbar .val, .rank-item .sub, .day-item .d2, .split-row .s, .heat-legend .scale div { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart .tick { font-size: 10px; }
.chart .avg-label { font-size: 9.5px; font-weight: 500; }
.chart .avg-label .n { font-weight: 600; }

/* ---------------------------------------------------------------- 3. chrome: header, filter bar, buttons */
.topbar, .filterbar { background: color-mix(in srgb, var(--page) 88%, transparent); }
.tab-ink { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"] .ico { color: var(--brand); }
.btn-primary { background: var(--brand); box-shadow: none !important; filter: none !important; }
.btn-primary:hover { background: var(--brand-strong); }
:root[data-theme="dark"] .btn-primary { background: #ededed; color: #111214; }
:root[data-theme="dark"] .btn-primary:hover { background: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #ededed; color: #111214; } }
.btn:active { transform: scale(.98); }
.btn-icon { color: var(--muted); }
.combo-ico { background: var(--surface-3); color: var(--text-2); }
.combo-btn:hover .combo-ico { background: var(--surface-3); color: var(--brand); }
.chip.active, .seg button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.date-range, .combo-btn, .data-chip { background: var(--surface); border-color: var(--border-strong); }
.brand-logo { filter: none; }

/* ---------------------------------------------------------------- 4. overview header: quiet facts, solid name */
.ov-hero { background: var(--surface) !important; }
.ov-name { color: var(--text); background: none; -webkit-background-clip: initial; background-clip: initial; }
.ov-name em { background: none !important; -webkit-text-fill-color: currentColor; color: var(--text) !important; animation: none !important; font-style: italic; }
.ov-meta { gap: 0; }
.meta-chip { background: none; border: 0; border-left: 1px solid var(--border-strong); border-radius: 0; height: 18px; padding: 0 12px; color: var(--text-2); font-weight: 400; }
.meta-chip:first-child { border-left: 0; padding-left: 0; }
.meta-chip svg { color: var(--muted) !important; }
.meta-chip b { color: var(--text); font-weight: 500; }
.ov-side .dist-row { --c: var(--bar-lo) !important; }
.ov-side .dist-row:nth-child(2) { --c: var(--bar-hi) !important; }
.ov-side .dist-row:nth-child(3) { --c: var(--bar-mid) !important; }
.dist-row > span:nth-child(3) { font-family: var(--mono); font-weight: 500; }

/* ---------------------------------------------------------------- 6. cards and charts: one accent per chart */
.card { box-shadow: none !important; border-color: var(--border); }
.card:hover { border-color: var(--border); }
.card-pill { background: none; color: var(--muted); padding: 0; font-weight: 400; font-size: 11px; }
.btn-link { font-weight: 500; }
.chart .bar.peak, .chart .range.peak { filter: drop-shadow(0 4px 8px var(--bar-glow)) !important; }
.chart .bar.mv-crit { fill: var(--mv-crit) !important; }
.chart .bar.mv-low { fill: var(--mv-low) !important; }
.chart .range.mv-crit { fill: var(--mv-crit) !important; }
.chart .range.mv-low { fill: var(--mv-low) !important; }
.chart .range.mv-crit.hover, .chart .range.mv-low.hover { filter: brightness(.9) !important; }
.chart .bar.hover, .chart .range.hover { filter: brightness(1.12) saturate(1.1) drop-shadow(0 4px 10px var(--bar-glow)) !important; }
.chart.has-hover .bar:not(.hover), .chart.has-hover .range:not(.hover) { opacity: .55; }
.chart .avg-line { animation: none !important; stroke: var(--text-2); opacity: .45; stroke-dasharray: 3 3; }
.chart .peak-tag { animation: none; }
.chart .peak-tag rect { fill: var(--text); }
.chart .nodata { fill: var(--border-strong); }
.hbar .track { background: var(--surface-3); }
.hbar .fill, .rank-item .bar i { background: var(--ramp) 0 0 / 420px 100% no-repeat !important; }
.hbar .fill::after { display: none; }
.hbar:hover { background: var(--surface-2); }
.donut .orbit, .donut circle.ticks, .donut::before { display: none !important; }
.donut-center b { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.donut-center span { font-size: 10px; font-weight: 400; }
.donut circle.seg { stroke-linecap: butt; }
.donut.has-hover circle.seg:not(.hover) { opacity: .45; }
.split-row > i { box-shadow: none; border-radius: 2px; }
.split-row.hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- 7. signature: areas visited in order (Day Routes detail) as a route line with stop dots */
.area-seq { gap: 6px 0; }
.area-seq .area-chip { position: relative; background: none !important; border: 0 !important; border-radius: 0; padding: 0 0 0 12px !important; box-shadow: none !important; transform: none !important; }
.area-seq .area-chip::before { content: ""; position: absolute; left: 1px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); }
.area-seq .area-chip:first-child::before { background: var(--brand); }
.area-seq .area-chip.pass::before { box-shadow: inset 0 0 0 1.5px var(--muted); }
.area-seq .area-chip b { color: var(--text); font-size: 12px; font-weight: 500; }
.area-seq .area-chip.pass b { color: var(--muted); font-weight: 400; }
.area-seq .area-chip span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.area-seq .arr { font-size: 0 !important; width: 14px; height: 2px; border-radius: 1px; background: var(--brand); opacity: .45; margin: 0 4px 0 5px; }

/* ---------------------------------------------------------------- 8. day routes + heatmap */
.day-summary { background: var(--surface-2) !important; border: 1px solid var(--border) !important; }
.ds-total b { background: none !important; -webkit-text-fill-color: currentColor; color: var(--text); }
.ds-bars i.sel { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--brand); }
.day-item:hover { background: var(--surface-2); }
.day-item[aria-selected="true"] { background: var(--surface-2) !important; border-color: var(--border-strong) !important; box-shadow: inset 2px 0 0 var(--brand) !important; }
.day-item[aria-selected="true"] .dnum { box-shadow: none !important; }
.day-item.mv-crit[aria-selected="true"], .day-item.mv-low[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--mv-crit) !important; }
.day-item .d1 .st { background: none; color: var(--muted); padding: 0; font-family: var(--mono); font-weight: 400; }
.day-item.mv-crit .mini i { background: var(--mv-crit) !important; } .day-item.mv-low .mini i { background: var(--mv-low) !important; }
.day-item.mv-crit, .day-item.mv-low { background: none; }
.day-item.mv-crit[aria-selected="true"] .dnum, .day-item.mv-low[aria-selected="true"] .dnum { background: var(--mv-crit) !important; color: #fff; }
.stat { background: var(--surface-2); }
.stat .l i { background: var(--border-strong) !important; }
.stop-list::before { background: var(--border-strong) !important; opacity: 1; width: 1.5px; }
.stop-num { background: var(--mk-stop-b) !important; box-shadow: 0 0 0 2px var(--surface) !important; }
.stop-num.start { background: var(--mk-start-b) !important; } .stop-num.end { background: var(--mk-end-b) !important; }
.stop-dur a { background: none; padding: 0; font-weight: 500; }
.stop-dur a:hover { background: none; color: var(--brand-strong); text-decoration: underline; }
.btn-play { background: var(--brand) !important; box-shadow: none !important; animation: none !important; }
.timeline .tl-stop { background: var(--mk-stop-a) !important; }
.timeline .tl-travel { background: var(--brand); }
.rank-item .rk { background: var(--surface-3) !important; color: var(--text-2) !important; }
.rank-item.top1 .rk { background: var(--brand) !important; color: #fff !important; }
.rank-item:hover, .rank-item.hl { background: var(--surface-2); }
.rank-item.sel { background: var(--brand-soft); }
.area-detail { background: var(--surface-2) !important; }
.mk-stop { background: var(--mk-stop-b) !important; }
.mk-pill.start { background: var(--mk-start-b) !important; } .mk-pill.end { background: var(--mk-end-b) !important; }
.mk-now { animation: none !important; }

/* ---------------------------------------------------------------- 9. motion: no loops, one easing, quick colour changes */
.kpi-spark path.line { animation-duration: .6s; }
.lp-pipe span { animation: none !important; }
.lp-accent { background: none !important; -webkit-text-fill-color: currentColor; color: var(--lp-blue) !important; }
.hbar, .split-row, .day-item, .rank-item, .stop-item { transition-property: background-color, border-color, color, opacity; transition-duration: .16s; }
.area-chip:hover, .day-item:hover .dnum { transform: none !important; }
.meta-chip, .card-pill, .count-pill { animation: none !important; }
.data-chip .dc-main .dotlive { animation: none; }
