/* FIELDSCOPE — design system
   Type: Space Grotesk (display/figures) + IBM Plex Mono (data readouts) */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-500.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #05070d;
  --panel: rgba(10, 16, 28, 0.72);
  --panel-solid: #0b1120;
  --line: rgba(120, 150, 200, 0.16);
  --line-strong: rgba(120, 150, 200, 0.28);
  --text: #e8eefc;
  --dim: #8ea3c8;
  --faint: #5a6d94;
  --azure: #4cc3ff;
  --mint: #37e6b0;
  --violet: #9d8bff;
  --amber: #ffb454;
  --pink: #ff7ad9;
  --gold: #ffe066;
  --coral: #ff8a5c;
  --good: #37e6b0;
  --bad: #ff7a8a;
  --r: 14px;
  --font-d: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-m: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-d);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.mono { font-family: var(--font-m); }
.dim { color: var(--dim); }

#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  touch-action: none;
}

/* cinematic vignette above the canvas, below labels/HUD */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(125% 95% at 50% 42%, transparent 52%, rgba(2, 4, 9, 0.5) 100%);
}

/* ---------- 3D-anchored labels ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.lbl {
  position: absolute; left: 0; top: 0;
  transform: translate3d(-100px, -100px, 0);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}
.lbl .axis {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-shadow: 0 1px 6px rgba(5, 7, 13, 0.9), 0 0 2px rgba(5, 7, 13, 1);
}
.lbl .axis.cap { color: var(--faint); letter-spacing: 0.14em; font-size: 9.5px; }
.lbl .peak {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: #bfe2ff;
  background: rgba(13, 25, 44, 0.82);
  border: 1px solid rgba(76, 195, 255, 0.35);
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(76, 195, 255, 0.25);
}
.lbl .ch-lbl, .lbl .dv-lbl, .lbl .geo-lbl, .lbl .br-lbl, .lbl .kpi-lbl {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(5, 7, 13, 0.95), 0 0 3px rgba(5, 7, 13, 1);
}
.lbl .ch-lbl i, .lbl .dv-lbl i, .lbl .kpi-lbl i {
  display: inline-block; width: 7px; height: 7px; border-radius: 2px;
  margin-right: 6px; vertical-align: 0;
  box-shadow: 0 0 8px currentColor;
}
.lbl .ch-lbl.sm { font-size: 10px; opacity: 0.9; }
.lbl .ch-val {
  font-family: var(--font-m); font-size: 12px; font-weight: 600; color: #dcebff;
  text-shadow: 0 0 10px rgba(76, 195, 255, 0.5), 0 1px 6px rgba(5,7,13,1);
}
.lbl .pg-rank {
  font-family: var(--font-d); font-weight: 700; font-size: 22px; color: rgba(220, 235, 255, 0.9);
  text-shadow: 0 2px 10px rgba(5, 7, 13, 0.9);
}
.lbl .pg-path {
  font-family: var(--font-m); font-size: 10px; color: var(--dim); display: block; text-align: center;
  text-shadow: 0 1px 6px rgba(5,7,13,1);
}
.lbl .pg-val {
  font-family: var(--font-m); font-size: 9.5px; color: var(--faint); display: block; text-align: center;
}
.lbl .geo-lbl b { font-family: var(--font-m); font-weight: 600; color: #bfe2ff; margin-left: 4px; }
.lbl .br-lbl { font-size: 10px; color: var(--dim); }
.lbl .br-lbl b { color: var(--text); font-family: var(--font-m); font-weight: 500; }
.lbl .dv-lbl b { font-family: var(--font-m); margin-left: 2px; }
.lbl .view-cap {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em; color: var(--faint);
  text-shadow: 0 1px 6px rgba(5,7,13,1);
}
.lbl .view-cap.live-dot::before {
  content: '●'; color: #ff6b7a; margin-right: 7px;
  animation: blink 1.6s ease infinite;
}
.lbl .ped-tot {
  display: block; text-align: center;
  font-family: var(--font-d); font-weight: 700; font-size: 26px; color: #eaf2ff;
  text-shadow: 0 0 22px rgba(76, 195, 255, 0.45), 0 2px 10px rgba(5,7,13,1);
}
.lbl .ped-sub {
  display: block; text-align: center; margin-top: 2px;
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim);
}
.lbl .holo-tot {
  display: block; text-align: center;
  font-family: var(--font-d); font-weight: 700; font-size: 30px; color: #eaf2ff;
  text-shadow: 0 0 26px rgba(61, 125, 255, 0.55), 0 2px 12px rgba(5,7,13,1);
}
.lbl .holo-sub {
  display: block; text-align: center; margin-top: 3px;
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.14em; color: var(--dim);
}
.lbl .kpi-val {
  display: block; text-align: center; font-family: var(--font-m); font-weight: 600; font-size: 13px;
  color: #eaf2ff; text-shadow: 0 1px 8px rgba(5,7,13,1);
}
.lbl .kpi-lbl { display: block; text-align: center; font-size: 10px; color: var(--dim); }
.lbl .rt-big {
  display: block; text-align: center;
  font-family: var(--font-d); font-weight: 700; font-size: 54px; color: #eaf6ff;
  text-shadow: 0 0 34px rgba(127, 208, 255, 0.65), 0 2px 14px rgba(5,7,13,1);
}
.lbl .rt-sub {
  display: block; text-align: center; margin-top: 4px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em; color: var(--dim);
}
.lbl .rt-lbl {
  font-family: var(--font-m); font-size: 10px; color: var(--dim);
  text-shadow: 0 1px 6px rgba(5,7,13,1);
}
.lbl .rt-lbl b { color: #bfe9ff; font-size: 13px; margin-right: 4px; }
.lbl .rt-path { opacity: 0.85; }

/* ---------- tooltip ---------- */
#tooltip {
  position: fixed; left: 0; top: 0; z-index: 40;
  min-width: 190px; max-width: 300px;
  background: rgba(9, 14, 25, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-500px, -500px, 0);
  transition: opacity 0.12s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
#tooltip.on { opacity: 1; }
.tt-title { font-weight: 700; font-size: 13px; letter-spacing: 0.01em; }
.tt-sub { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.tt-rows { margin-top: 8px; display: grid; gap: 4px; }
.tt-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.tt-row.hot .tt-l, .tt-row.hot .tt-v { color: #fff; font-weight: 600; }
.tt-row .tt-l { color: var(--dim); flex: 1; }
.tt-row .tt-v { font-family: var(--font-m); font-weight: 500; font-size: 11.5px; }
.tt-foot { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--dim); }
.sw { display: inline-block; width: 7px; height: 7px; border-radius: 2px; flex: none; }
.sw.no { visibility: hidden; }
.delta { font-family: var(--font-m); font-size: 10px; font-weight: 500; padding: 1.5px 6px; border-radius: 20px; }
.delta.up { color: var(--good); background: rgba(55, 230, 176, 0.1); }
.delta.down { color: var(--bad); background: rgba(255, 122, 138, 0.1); }

/* ---------- HUD frame ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: 0; transition: opacity 0.8s ease 0.15s; }
#hud.on { opacity: 1; }
#hud > * { pointer-events: auto; }

#topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.92), rgba(6, 9, 16, 0.55) 78%, transparent);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--azure); }
.brand .word { font-weight: 700; letter-spacing: 0.16em; font-size: 13.5px; color: var(--text); }
.brand .domain {
  font-size: 10px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 2.5px 9px;
  background: rgba(12, 19, 33, 0.6);
}
#view-tabs { display: flex; gap: 2px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; }
#view-tabs::-webkit-scrollbar { display: none; }
#view-tabs button {
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--dim);
  font-family: var(--font-d); font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  padding: 6px 11px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
#view-tabs button b {
  font-family: var(--font-m); font-weight: 500; font-size: 9px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
  transition: inherit;
}
#view-tabs button:hover { color: var(--text); background: rgba(120, 150, 200, 0.08); }
#view-tabs button.on {
  color: #fff; background: rgba(76, 195, 255, 0.1); border-color: rgba(76, 195, 255, 0.3);
  box-shadow: 0 0 16px rgba(76, 195, 255, 0.12) inset;
}
#view-tabs button.on b { color: var(--azure); border-color: rgba(76, 195, 255, 0.4); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#rt-chip {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-m); font-size: 11.5px; font-weight: 600; color: #bfe9ff;
  background: rgba(12, 19, 33, 0.72); border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 12px;
}
#rt-chip.hot { border-color: rgba(255, 107, 122, 0.5); box-shadow: 0 0 18px rgba(255, 107, 122, 0.18); }
#rt-chip .rt-cap { font-weight: 400; color: var(--dim); font-size: 10px; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff6b7a; flex: none;
  box-shadow: 0 0 10px #ff6b7a;
  animation: blink 1.6s ease infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
#range-seg {
  display: flex; background: rgba(12, 19, 33, 0.72); border: 1px solid var(--line);
  border-radius: 10px; padding: 2px;
}
#range-seg button {
  appearance: none; border: 0; background: transparent; color: var(--dim);
  font-family: var(--font-m); font-size: 10.5px; font-weight: 500;
  padding: 4.5px 10px; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
#range-seg button:hover { color: var(--text); }
#range-seg button.on { background: rgba(76, 195, 255, 0.16); color: #fff; box-shadow: 0 0 12px rgba(76,195,255,0.15); }
#compare-toggle {
  appearance: none; cursor: pointer;
  font-family: var(--font-d); font-size: 11px; font-weight: 500;
  color: var(--faint); background: rgba(12, 19, 33, 0.72);
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px;
  transition: all 0.15s;
}
#compare-toggle.on { color: var(--text); border-color: rgba(157, 139, 255, 0.45); background: rgba(157, 139, 255, 0.1); }
#clock { font-size: 10.5px; color: var(--faint); min-width: 86px; text-align: right; }

#subbar {
  position: absolute; top: 52px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  pointer-events: none;
}
#range-caption { font-family: var(--font-m); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }
#view-caption { font-family: var(--font-m); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }

/* ---------- KPI strip ---------- */
#kpi-strip {
  position: absolute; top: 76px; left: 16px; right: 16px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
}
.kpi {
  --mc: var(--azure);
  appearance: none; text-align: left; cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px 8px;
  color: var(--text);
  font-family: var(--font-d);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: grid; gap: 3px;
}
.kpi::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 2.5px;
  background: var(--mc); opacity: 0.35; transition: opacity 0.18s;
}
.kpi:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.kpi.on {
  border-color: color-mix(in srgb, var(--mc) 55%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--mc) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--mc) 22%, transparent) inset;
}
.kpi.on::before { opacity: 1; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-label { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.kpi-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 8px var(--mc); }
.kpi-value {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi-bottom { display: flex; align-items: center; gap: 7px; }
.kpi-vs { font-size: 9px; color: var(--faint); }
.kpi-spark { width: 100%; height: 30px; margin-top: 2px; display: block; }

/* ---------- ticker ---------- */
#ticker {
  position: absolute; left: 16px; bottom: 46px;
  display: flex; flex-direction: column-reverse; gap: 5px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}
.tick {
  display: flex; align-items: center; gap: 8px;
  background: rgba(9, 14, 25, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--dim);
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(10px);
}
.tick.in { opacity: 1; transform: none; }
.tick.conv { border-color: rgba(255, 224, 102, 0.4); color: #e8ddad; background: rgba(30, 26, 12, 0.7); }
.tick-time { color: var(--faint); font-size: 9.5px; }
.tick-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tick-text b { color: var(--text); font-weight: 500; font-family: var(--font-m); font-size: 10px; }
.tick-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- footer ---------- */
#foot {
  position: absolute; left: 16px; right: 16px; bottom: 0;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 2px 10px;
  font-size: 10px; color: var(--faint);
  background: linear-gradient(0deg, rgba(6, 9, 16, 0.85), transparent);
  pointer-events: none;
}
.foot-hints { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.03em; }

/* ---------- detail panel ---------- */
#panel {
  position: fixed; top: 64px; right: 12px; bottom: 12px; z-index: 30;
  width: min(372px, calc(100vw - 24px));
  background: rgba(9, 14, 25, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: translateX(calc(100% + 20px));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.3, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#panel.on { transform: none; }
#panel-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; border-radius: 8px;
  appearance: none; border: 1px solid var(--line); background: rgba(12, 19, 33, 0.8);
  color: var(--dim); font-size: 12px; cursor: pointer; transition: all 0.15s;
}
#panel-close:hover { color: var(--text); border-color: var(--line-strong); }
#panel-body { overflow-y: auto; padding: 18px 18px 24px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.p-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; padding-right: 26px; }
.p-chip { width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; flex: none; box-shadow: 0 0 12px currentColor; }
.p-title { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.p-title.mono { font-size: 15px; }
.p-sub { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.panel-sec {
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.18em; color: var(--faint);
  margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; }
.stat-l { color: var(--dim); display: flex; align-items: center; gap: 8px; }
.stat-v { font-family: var(--font-m); font-weight: 500; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.p-note { font-size: 10.5px; color: var(--dim); margin-top: 9px; line-height: 1.55; }
.p-note b { color: var(--text); }
.p-chart { height: 64px; margin-top: 4px; }
.p-chart.tall { height: 92px; }
.p-chart canvas, .split canvas { width: 100%; height: 100%; display: block; }
.split { height: 10px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.story {
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid rgba(255, 224, 102, 0.25); border-radius: 12px;
  background: rgba(255, 224, 102, 0.05);
  font-size: 11px; line-height: 1.5;
}
.story b { display: inline; font-size: 11.5px; }
.story p { color: var(--dim); margin-top: 4px; }
.story-tag {
  display: inline-block; margin-right: 8px;
  font-family: var(--font-m); font-size: 8.5px; letter-spacing: 0.14em; color: var(--gold);
  border: 1px solid rgba(255, 224, 102, 0.4); border-radius: 4px; padding: 1px 5px;
  vertical-align: 1px;
}
.rt-panel-big { text-align: center; padding: 18px 0 8px; }
.rt-panel-big b { display: block; font-size: 46px; font-weight: 700; color: #bfe9ff; text-shadow: 0 0 26px rgba(127, 208, 255, 0.5); }
.rt-panel-big span { font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; }

.empty {
  margin-top: 14px; padding: 26px 18px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  text-align: center; color: var(--faint);
}
.empty svg { opacity: 0.6; margin-bottom: 10px; }
.empty-t { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.empty-s { font-size: 11px; margin-top: 6px; line-height: 1.55; color: var(--faint); }
.empty-s b { color: var(--dim); }

/* ---------- boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(900px 500px at 50% 42%, rgba(38, 68, 120, 0.25), transparent 70%),
    var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot-inner { display: grid; justify-items: center; gap: 10px; color: var(--azure); }
.boot-mark { animation: bootpulse 2.2s ease infinite; }
@keyframes bootpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: 0.75; } }
.boot-word { font-weight: 700; letter-spacing: 0.34em; font-size: 17px; color: var(--text); margin-top: 6px; text-indent: 0.34em; }
.boot-sub { font-size: 10px; color: var(--faint); letter-spacing: 0.12em; }
#boot-bar {
  width: 240px; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(120, 150, 200, 0.15); margin-top: 14px;
}
#boot-bar-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--azure), #bfe2ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(76, 195, 255, 0.7);
}
#boot-status { font-size: 10px; color: var(--dim); letter-spacing: 0.05em; min-height: 14px; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  #kpi-strip { grid-template-columns: repeat(3, 1fr); max-width: 640px; right: auto; }
  .kpi-value { font-size: 20px; }
}
@media (max-width: 900px) {
  #topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .brand .domain { display: none; }
  .top-right { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  #clock { margin-left: auto; }
  #subbar { display: none; }
  #kpi-strip {
    top: auto; bottom: 12px; left: 12px; right: 12px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 172px;
    overflow-x: auto; max-width: none;
    padding-bottom: 4px;
  }
  .kpi-spark { display: none; }
  #ticker { display: none; }
  .foot-hints { display: none; }
  #foot { justify-content: center; }
  #panel {
    top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 52vh;
    transform: translateY(calc(100% + 16px));
  }
  #panel.on { transform: none; }
}
@media (max-width: 560px) {
  #view-tabs button b { display: none; }
  #rt-chip .rt-cap { display: none; }
  .kpi-value { font-size: 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .boot-mark, .pulse-dot, .lbl .view-cap.live-dot::before { animation: none; }
  #panel, .kpi, .tick { transition-duration: 0.01s; }
  #hud { transition-duration: 0.2s; }
}
