/* 内存厂 16 季经营沙盘 — 覆盖层样式（系统字体，无外部资源） */
:root {
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #0d1b2e;
  --ink-2: #44546c;
  --ink-3: #7b889c;
  --line: rgba(13, 27, 46, 0.08);
  --glass-top: rgba(255, 255, 255, 0.84);
  --glass-bot: rgba(255, 255, 255, 0.66);
  --stroke: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px -28px rgba(24, 52, 104, 0.42), 0 3px 10px rgba(24, 52, 104, 0.06);
  --accent-a: #06b6d4;
  --accent-b: #6366f1;
  --accent-c: #a855f7;
  --r: 20px;
  --gap: 24px;
  --left-w: 384px;
  --right-w: 344px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #a9d1fa 0%, #e3f0fc 46%, #fff5e9 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 58%, rgba(40, 70, 120, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.0) 70%, rgba(255, 246, 232, 0.35) 100%);
}

/* ---------- 浮动区域标签 ---------- */
.labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.zlabel {
  pointer-events: auto;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.zl-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 10px 24px -10px rgba(20, 40, 80, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 10px var(--c);
}
.zl-name { font-weight: 700; letter-spacing: 0.01em; }
.zl-short { display: none; }
.zl-val { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.zl-val::before { content: "·"; margin: 0 6px 0 1px; color: var(--ink-3); }
.zl-k:not(:empty) { margin-right: 4px; }
.zl-n { font-weight: 700; color: var(--ink); }
.zl-u:not(:empty) { margin-left: 4px; color: var(--ink-3); font-size: 0.92em; }
.zl-stem {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 0%, transparent));
}
.zlabel:hover .zl-pill, .zlabel:focus-visible .zl-pill {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(20, 40, 80, 0.5), inset 0 0 0 1.5px var(--c);
}
.zlabel:focus-visible { outline: none; }
.zlabel.is-dim { opacity: 0.5; }
.zlabel.is-focus .zl-pill { box-shadow: 0 14px 30px -10px rgba(20, 40, 80, 0.5), inset 0 0 0 2px var(--c); }
.zlabel--minor .zl-pill { font-size: 12px; padding: 4px 11px 4px 9px; background: rgba(255, 249, 238, 0.92); }
.zlabel--minor .zl-stem { height: 14px; }
.zlabel.is-locked .zl-n { color: #7c3aed; }

/* ---------- 面板通用 ---------- */
.panel {
  position: fixed;
  z-index: 5;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 标题 */
.brand {
  top: var(--gap);
  left: var(--gap);
  width: var(--left-w);
  padding: 16px 22px 15px;
  overflow: hidden;
}
.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b) 55%, var(--accent-c));
}
.brand h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.25; }
.brand .subtitle { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }

/* 季度卡片 */
.quarter {
  top: calc(var(--gap) + 92px);
  left: var(--gap);
  width: var(--left-w);
  padding: 16px 22px 16px;
  max-height: calc(100vh - var(--gap) - 92px - 140px);
  display: flex;
  flex-direction: column;
}
.q-big { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.q-cur {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #0891b2 0%, #4f46e5 55%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.q-of { font-size: 24px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.q-text h2 { margin: 10px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.q-event { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.quarter.bump .q-cur, .quarter.bump .q-text { animation: bump 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes bump { from { opacity: 0.25; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.note-toggle {
  align-self: flex-start;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: rgba(99, 102, 241, 0.08);
  color: #3730a3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.note-toggle:hover { background: rgba(99, 102, 241, 0.14); }
.note-toggle svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.note-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  max-height: 46vh;
}
.note p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #2d3b52; text-align: justify; }

/* 视角切换 */
.zones {
  top: var(--gap);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  max-width: calc(100vw - var(--left-w) - var(--right-w) - 4 * var(--gap));
  overflow-x: auto;
  scrollbar-width: none;
}
.zones::-webkit-scrollbar { display: none; }
.zbtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.zbtn:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.zbtn.is-active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 4px 12px -4px rgba(20, 40, 80, 0.25); }
.zdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* KPI 面板 */
.kpis {
  top: var(--gap);
  right: var(--gap);
  width: var(--right-w);
  max-height: calc(100vh - var(--gap) - 132px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px 6px;
  border: 0;
  background: none;
  text-align: left;
  cursor: default;
}
.kh-title { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.kh-q {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0891b2, #4f46e5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kh-mini, .kh-chev { display: none; }
.kpi-body { overflow: auto; padding: 0 20px 16px; scrollbar-width: thin; }
.kpi-group h3 { margin: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink-3); }
.kpi {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: baseline;
  column-gap: 9px;
  padding: 6px 0 5px;
  border-bottom: 1px solid var(--line);
}
.kpi:last-child { border-bottom: 0; }
.k-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); align-self: center; }
.k-label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.k-val { justify-self: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-val b { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.k-val small { margin-left: 3px; font-size: 11px; color: var(--ink-3); }
.k-sep { margin: 0 7px; color: var(--ink-3); }
.kpi.is-neg .k-val b { color: #b4232a; }

.chart-card { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; }
.chart-title small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.chart-wrap { position: relative; }
#chart { display: block; width: 100%; height: 128px; margin-top: 6px; cursor: crosshair; touch-action: pan-y; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.sw { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--c); }
.sw-dash { border-top-style: dashed; }
.chart-tip {
  position: absolute;
  top: -6px;
  transform: translateY(-100%);
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px -10px rgba(20, 40, 80, 0.4), 0 0 0 1px var(--line);
  font-size: 12px;
  pointer-events: none;
  z-index: 3;
}
.tip-head { font-weight: 700; margin-bottom: 4px; }
.tip-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; color: var(--ink-2); }
.tip-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-unit { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }

/* 时间轴 */
.timeline {
  left: var(--gap);
  right: var(--gap);
  bottom: 34px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px 0 14px;
  border-radius: 24px;
}
.tl-play {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #4f46e5 60%, #7c3aed);
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.tl-play:hover { transform: scale(1.05); }
.tl-play:active { transform: scale(0.97); }
.tl-play svg { width: 22px; height: 22px; grid-area: 1 / 1; display: none; }
.tl-play[data-mode="paused"] .i-play,
.tl-play[data-mode="playing"] .i-pause,
.tl-play[data-mode="ended"] .i-replay { display: block; }
.tl-speed {
  flex: 0 0 auto;
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 46, 0.1);
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 800;
  color: #3730a3;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.tl-speed:hover { background: #fff; }
.tl-track { position: relative; flex: 1 1 auto; min-width: 0; height: 48px; --thumb: 20px; }
#slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --pp: 0;
}
#slider:focus-visible { outline: none; }
#slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #22d3ee, #6366f1 70%, #a855f7) 0 0 / calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--pp)) 100% no-repeat,
    rgba(13, 27, 46, 0.1);
}
#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #4f46e5;
  box-shadow: 0 3px 10px rgba(40, 50, 140, 0.4);
  transition: transform 0.15s ease;
}
#slider:hover::-webkit-slider-thumb, #slider:focus-visible::-webkit-slider-thumb { transform: scale(1.12); }
#slider::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(13, 27, 46, 0.1); }
#slider::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #6366f1 70%, #a855f7); }
#slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid #4f46e5; box-shadow: 0 3px 10px rgba(40, 50, 140, 0.4); }
.tl-ticks { position: absolute; left: 0; right: 0; top: 27px; height: 20px; }
.tick {
  position: absolute;
  top: 0;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--i));
  transform: translateX(-50%);
  padding: 2px 3px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--ink-3);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tick:hover { color: var(--ink); background: rgba(255, 255, 255, 0.8); }
.tick.is-past { color: var(--ink-2); }
.tick.is-cur { color: #fff; background: #4f46e5; font-weight: 700; }
.ms-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}
.ms-violet { background: #8b5cf6; }
.ms-green { background: #16a34a; }
.ms-cyan { background: #06b6d4; }
.ms-coral { background: #ef5a4c; }
.tl-status {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
  max-width: 300px;
  text-align: right;
}
#playStatus { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tl-keys { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

.footnote {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100vw - 32px);
  font-size: 11.5px;
  color: rgba(40, 55, 80, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 提示与兜底 */
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13, 27, 46, 0.86);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
.no-webgl #scene, .no-webgl .vignette { display: none; }
.fallback {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}
.fb-card {
  pointer-events: auto;
  max-width: 460px;
  padding: 22px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}
.fb-card h2 { margin: 0 0 8px; font-size: 20px; }
.fb-card p { margin: 6px 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.fb-detail { font-size: 12.5px !important; color: var(--ink-3) !important; }
.fb-detail:empty, .fb-note:empty { display: none; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #b7d9fb 0%, #e9f3fd 50%, #fff6ea 100%);
  transition: opacity 0.9s ease 0.15s, visibility 0s linear 1.1s;
}
.veil-inner { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; }
.veil-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-a), var(--accent-c)); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(0.7); opacity: 0.5; } to { transform: scale(1.2); opacity: 1; } }
body.is-ready .veil { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- 中等宽度：视角切换移到时间轴上方 ---------- */
@media (max-width: 1500px) {
  :root { --gap: 18px; --left-w: 340px; --right-w: 312px; }
  .brand h1 { font-size: 22px; }
  .quarter { top: calc(var(--gap) + 86px); max-height: calc(100vh - var(--gap) - 86px - 190px); }
  .q-cur { font-size: 50px; }
  .q-text h2 { font-size: 21px; }
  .zones { top: auto; bottom: 116px; max-width: calc(100vw - 2 * var(--gap)); }
  .kpis { max-height: calc(100vh - var(--gap) - 186px); }
  .k-val b { font-size: 16px; }
}
@media (max-width: 1500px) and (min-width: 761px) {
  .zl-pill { font-size: 12px; padding: 5px 11px 5px 9px; gap: 6px; }
  .zl-k, .zl-u, .zl-full { display: none; }
  .zl-short { display: inline; }
  .zl-stem { height: 14px; }
}
@media (max-width: 1180px) {
  :root { --left-w: 300px; --right-w: 286px; }
  .tl-keys { display: none; }
  .q-event { font-size: 13px; }
}
@media (max-height: 820px) and (min-width: 761px) {
  #chart { height: 104px; }
  .kpi { padding: 4px 0 3px; }
  .q-cur { font-size: 46px; }
}

/* ---------- 移动端：面板收起为抽屉 ---------- */
@media (max-width: 760px) {
  :root { --gap: 8px; --r: 16px; }
  .brand { top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; padding: 9px 14px 9px 16px; }
  .brand::before { top: 9px; bottom: 9px; }
  .brand h1 { font-size: 16.5px; }
  .brand .subtitle { font-size: 11px; margin-top: 2px; }
  .quarter {
    top: calc(68px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    width: auto;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
    max-height: calc(100vh - 290px);
  }
  .q-big { grid-row: 1; grid-column: 1; flex-direction: column; align-items: flex-start; gap: 0; }
  .q-cur { font-size: 34px; }
  .q-of { font-size: 13px; }
  .q-text { grid-row: 1; grid-column: 2; min-width: 0; }
  .q-text h2 { margin: 0 0 2px; font-size: 16.5px; }
  .q-event { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .note-toggle { grid-column: 1 / -1; margin-top: 8px; padding: 5px 10px 5px 12px; font-size: 12px; }
  .note { grid-column: 1 / -1; max-height: 34vh; margin-top: 8px; }
  .note p { font-size: 12.5px; line-height: 1.7; }
  .zones {
    top: auto;
    bottom: calc(166px + env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
    border-radius: 14px;
    padding: 4px;
    justify-content: flex-start;
  }
  .zbtn { padding: 7px 11px; font-size: 12.5px; }
  .kpis {
    top: auto;
    left: 8px;
    right: 8px;
    width: auto;
    bottom: calc(104px + env(safe-area-inset-bottom));
    max-height: 54px;
    transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 7;
  }
  body.drawer-open .kpis { max-height: min(64vh, 620px); }
  .kpi-head { padding: 11px 14px; cursor: pointer; gap: 8px; min-height: 52px; }
  .kh-title { font-size: 13.5px; white-space: nowrap; }
  body.drawer-open .kh-mini { visibility: hidden; }
  .kh-q { margin-left: 0; }
  .kh-mini { display: block; margin-left: auto; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-variant-numeric: tabular-nums; }
  .kh-chev { display: block; width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); transition: transform 0.3s ease; }
  body.drawer-open .kh-chev { transform: rotate(180deg); }
  .kpi-body { padding: 0 14px 14px; }
  .timeline { left: 8px; right: 8px; bottom: calc(30px + env(safe-area-inset-bottom)); height: 66px; gap: 10px; padding: 0 12px 0 10px; border-radius: 20px; }
  .tl-play { width: 42px; height: 42px; }
  .tl-speed { min-width: 40px; height: 32px; font-size: 13px; padding: 0 6px; }
  .tl-status { display: none; }
  .tl-track { --thumb: 22px; }
  .tick { font-size: 10.5px; padding: 2px 2px; }
  .tick.minor { font-size: 0; width: 4px; height: 4px; padding: 0; top: 7px; border-radius: 50%; background: rgba(13, 27, 46, 0.18); }
  .tick.minor.is-cur { width: auto; height: auto; padding: 2px 4px; top: 0; font-size: 10.5px; border-radius: 6px; background: #4f46e5; }
  .tick.minor .ms-dot { top: -9px; }
  .footnote { bottom: calc(6px + env(safe-area-inset-bottom)); font-size: 9.5px; white-space: normal; text-align: center; line-height: 1.35; width: calc(100vw - 24px); }
  .zl-pill { font-size: 10.5px; padding: 3px 8px 3px 7px; gap: 4px; }
  .zl-dot { width: 7px; height: 7px; }
  .zl-k, .zl-u, .zl-full { display: none; }
  .zl-short { display: inline; }
  .zl-val::before { margin: 0 4px 0 0; }
  .zl-stem { height: 10px; }
  .zlabel--minor { display: none !important; }
  .toast { top: auto; bottom: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
