/* 地球實時觀測 — dark space UI */
:root {
  --bg: #05070c;
  --bg-0: #070b14;
  --panel: rgba(8, 12, 22, 0.78);
  --panel-solid: #0b101c;
  --panel-edge: rgba(140, 200, 255, 0.16);
  --panel-edge-strong: rgba(170, 220, 255, 0.32);
  --haze: rgba(70, 150, 220, 0.08);
  --text: #e8eef8;
  --text-dim: #9aa6b8;
  --text-faint: #6d7a8d;
  --accent: #5ce1ff;
  --accent-2: #7dffb3;
  --accent-warm: #ffc14a;
  --danger: #ff5d6c;
  --quake-lo: #7ed9c0;
  --quake-mid: #f5d76e;
  --quake-hi: #ff8a3d;
  --quake-x: #ff3b4e;
  --fire: #ff8a2b;
  --volcano: #e85d8c;
  --iss: #7dffb3;
  --css: #ffd36a;
  --hst: #9ecbff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --bar-h: 58px;
  --bottom-h: 72px;
  --panel-w: 328px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --font: "PingFang TC", "PingFang SC", "Hiragino Sans CNS", "Hiragino Sans GB",
    "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei",
    "Source Han Sans TC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", "Noto Sans Mono",
    ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

#cesiumContainer, #app {
  position: fixed; inset: 0;
}
#cesiumContainer { background: #000; z-index: 0; }
#app { pointer-events: none; z-index: 20; }
#app > * , #app .dock, #app .icon-btn, #app .panel, #app .topbar, #app .bottom-bar,
#app .float-card, #app .fab, #app .backdrop {
  pointer-events: auto;
}

/* Hide Cesium's default chrome that fights the overlay */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-fullscreenContainer,
.cesium-viewer-bottom,
.cesium-viewer-infoBoxContainer,
.cesium-viewer-selectionIndicatorContainer {
  display: none !important;
}

/* ========== Splash ========== */
#splash {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40, 90, 150, 0.28), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 40, 80, 0.4), transparent 50%),
    #04060c;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; padding: 24px; }
.splash-mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 225, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(92, 225, 255, 0.07), 0 0 40px rgba(92, 225, 255, 0.18);
  position: relative;
  background:
    radial-gradient(circle at 35% 35%, #9be7ff 0 2px, transparent 3px),
    radial-gradient(circle at 62% 48%, #163050 0 38%, #0a1a2c 70%, #071018 100%);
}
.splash-mark::after {
  content: "";
  position: absolute; inset: 18% -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 193, 74, 0.55);
  transform: rotate(-18deg);
}
.splash-inner h1 {
  font-weight: 700; letter-spacing: 0.18em;
  font-size: 1.35rem; margin: 0 0 8px;
}
.splash-inner p {
  margin: 0 0 22px; color: var(--text-dim);
  font-size: 0.82rem; letter-spacing: 0.08em;
}
.splash-bar {
  width: 180px; height: 2px; margin: 0 auto;
  background: rgba(255,255,255,0.08); overflow: hidden; border-radius: 2px;
}
.splash-bar > span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: slide 1.2s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* ========== Top bar ========== */
.topbar {
  position: absolute;
  z-index: 4;
  top: calc(12px + var(--safe-t));
  left: calc(12px + var(--safe-l));
  right: calc(12px + var(--safe-r));
  height: var(--bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px 0 16px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.brand-mark {
  width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 225, 255, 0.7);
  background:
    radial-gradient(circle at 34% 34%, #cfffff, #4ad0e8 28%, #16324a 68%, #071018 100%);
  box-shadow: 0 0 16px rgba(92, 225, 255, 0.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 22% -5px;
  border: 1.2px solid rgba(255, 193, 74, 0.7);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.brand h1 {
  margin: 0; font-size: 1.02rem; font-weight: 700;
  letter-spacing: 0.14em; white-space: nowrap;
}
.brand .tag {
  display: block; margin-top: 1px;
  font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--text-dim); font-weight: 500;
}
.clocks {
  display: flex; gap: 14px; align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--text-dim);
}
.clocks strong {
  display: block; color: var(--text); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.clk-sim[hidden] { display: none !important; }
.clk-sim .label { color: var(--accent-warm); }
.clk-sim strong { color: var(--accent-warm); }
.clocks span.label {
  font-family: var(--font); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(125, 255, 179, 0.7);
  animation: pulse 1.8s ease-out infinite;
  margin-right: 2px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 179, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(125, 255, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 255, 179, 0); }
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: flex; padding: 3px; gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--text-dim);
}
.lang-switch button.is-active {
  background: rgba(92, 225, 255, 0.16);
  color: var(--accent);
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--panel-edge);
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover, .icon-btn:focus-visible {
  background: rgba(92, 225, 255, 0.12);
  border-color: var(--panel-edge-strong);
  outline: none;
}
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ========== Panels ========== */
.panel {
  position: absolute;
  z-index: 2;
  top: calc(var(--bar-h) + 24px + var(--safe-t));
  bottom: calc(var(--bottom-h) + 24px + var(--safe-b));
  width: var(--panel-w);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.panel-left { left: calc(12px + var(--safe-l)); }
.panel-right { right: calc(12px + var(--safe-r)); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--panel-edge);
  flex: 0 0 auto;
}
.panel-head h2 {
  margin: 0; font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.16em;
}
.panel-body {
  flex: 1; overflow: auto;
  padding: 8px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92,225,255,0.3) transparent;
}
.panel-body::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(92,225,255,0.22); border-radius: 8px;
}

.section {
  margin-top: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(140, 200, 255, 0.08);
}
.section > summary {
  list-style: none; cursor: pointer;
  padding: 9px 12px;
  font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.section > summary::-webkit-details-marker { display: none; }
.section > summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.section[open] > summary::after { transform: rotate(-135deg); }
.section .section-body { padding: 0 8px 10px; }

.layer-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
}
.layer-row:hover { background: rgba(255,255,255,0.03); }
.layer-row .meta {
  flex: 1; min-width: 0;
}
.layer-row .meta label {
  display: block; font-size: 0.82rem; font-weight: 550;
  cursor: pointer;
}
.layer-row .meta small {
  display: block; color: var(--text-faint);
  font-size: 0.68rem; margin-top: 1px; line-height: 1.35;
}

.day-cycle {
  margin: 4px 4px 2px;
  padding: 8px 8px 6px;
  border-radius: 10px;
  background: rgba(92, 225, 255, 0.04);
  border: 1px solid rgba(140, 200, 255, 0.12);
}
.day-cycle-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 0 2px 6px;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 600;
}
.day-cycle-time {
  font-family: var(--font-mono); font-weight: 550; letter-spacing: 0.04em;
  color: var(--accent); font-size: 0.7rem;
}
body.day-cycle-sim .day-cycle-time { color: var(--accent-warm); }
.day-cycle-row {
  display: flex; align-items: center; gap: 8px;
}
.day-cycle-row + .day-cycle-row { margin-top: 6px; }
.day-cycle-row input[type="range"] { flex: 1; min-width: 0; }
.day-cycle-tools {
  flex-wrap: wrap;
  font-size: 0.7rem; color: var(--text-dim);
}
.day-cycle-tools label { letter-spacing: 0.08em; flex: 0 0 auto; }
.day-cycle-tools select {
  flex: 1 1 96px; min-width: 0;
  padding: 4px 6px;
  font-size: 0.72rem;
}
.day-cycle-tools .chip { margin-left: auto; }
.day-cycle .hint {
  margin: 6px 2px 0;
  font-size: 0.66rem; color: var(--text-faint); line-height: 1.4;
}


/* Toggles / radios */
.switch, .radio {
  position: relative; flex: 0 0 auto; margin-top: 2px;
}
.switch input, .radio input { position: absolute; opacity: 0; inset: 0; }
.switch i {
  display: block; width: 34px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; transition: 0.15s ease;
}
.switch i::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #c9d4e4;
  transition: 0.15s ease;
}
.switch input:checked + i {
  background: rgba(92, 225, 255, 0.28);
  border-color: rgba(92, 225, 255, 0.55);
}
.switch input:checked + i::after {
  transform: translateX(14px);
  background: var(--accent);
}
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(92,225,255,0.25); }
.radio i {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  position: relative;
}
.radio input:checked + i {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3.5px var(--accent);
}

.select-row { padding: 4px 8px 8px; }
.select-row select, .feed-select {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.78rem;
  outline: none;
}
.select-row select:focus, .feed-select:focus {
  border-color: var(--accent);
}

.hint {
  margin: 4px 8px 0;
  font-size: 0.68rem; color: var(--text-faint); line-height: 1.45;
}

/* ========== Right panel lists ========== */
.tabs {
  display: flex; gap: 4px; padding: 8px 10px 0;
  flex: 0 0 auto;
}
.tabs button {
  flex: 1; border: 0; background: transparent;
  color: var(--text-dim);
  padding: 7px 4px 8px;
  font-size: 0.75rem; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}
.tabs button is-active,
.tabs button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(92, 225, 255, 0.06);
}
.tabs button .count {
  display: inline-block; min-width: 1.1em;
  margin-left: 2px; font-family: var(--font-mono);
  font-size: 0.68rem; opacity: 0.85;
}
.list-status {
  padding: 6px 14px 4px;
  font-size: 0.68rem; color: var(--text-faint);
  display: flex; justify-content: space-between; gap: 8px;
}
.event-list { list-style: none; margin: 0; padding: 0 6px 12px; }
.event-list li { margin: 0; }
.event-item {
  width: 100%; text-align: left;
  border: 0; background: transparent;
  padding: 8px 8px 8px 10px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: start;
  position: relative;
}
.event-item:hover, .event-item.is-active {
  background: rgba(92, 225, 255, 0.08);
}
.event-item .badge {
  grid-row: 1 / span 2;
  min-width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700;
  color: #0b0d12;
}
.event-item .title {
  font-size: 0.8rem; font-weight: 600;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-item .sub {
  font-size: 0.68rem; color: var(--text-faint);
}
.mag-0 .badge, .mag-1 .badge, .mag-2 .badge { background: var(--quake-lo); }
.mag-3 .badge, .mag-4 .badge { background: var(--quake-mid); }
.mag-5 .badge { background: var(--quake-hi); color: #1a0d00; }
.mag-6 .badge, .mag-7 .badge, .mag-8 .badge, .mag-9 .badge { background: var(--quake-x); color: #fff; }
.kind-fire .badge { background: var(--fire); color: #1a0d00; font-size: 0.72rem; }
.kind-volcano .badge { background: var(--volcano); color: #fff; font-size: 0.72rem; }
.kind-iss .badge { background: var(--iss); }
.kind-css .badge { background: var(--css); }
.kind-hst .badge { background: var(--hst); }

.empty, .error-msg {
  padding: 20px 14px; text-align: center;
  color: var(--text-faint); font-size: 0.8rem;
}
.error-msg { color: #ff9aa3; }

/* ========== Bottom bar ========== */
.bottom-bar {
  position: absolute;
  z-index: 4;
  left: calc(12px + var(--safe-l));
  right: calc(12px + var(--safe-r));
  bottom: calc(12px + var(--safe-b));
  min-height: var(--bottom-h);
  padding: 8px 16px 8px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
}
.timelines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 10px; align-items: center;
}
.tl-row.hidden { display: none; }
.tl-row label {
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--text-dim);
}
.tl-row .tl-value {
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--text);
  min-width: 11.5rem; text-align: right;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(92,225,255,0.15), rgba(92,225,255,0.55));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #e8fbff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(92,225,255,0.6);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #e8fbff;
  border: 2px solid var(--accent);
  cursor: pointer;
}
.play-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--panel-edge);
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  color: var(--accent);
}
.play-btn[aria-pressed="true"] { background: rgba(92,225,255,0.16); }
.credits {
  font-size: 0.62rem; color: var(--text-faint);
  line-height: 1.45; max-width: 42ch;
  justify-self: end;
}
.credits strong { color: var(--text-dim); font-weight: 600; }

/* ========== Floating cards ========== */
.float-card {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bottom-h) + 28px + var(--safe-b));
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 48px));
  background: rgba(9, 13, 24, 0.92);
  border: 1px solid var(--panel-edge-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 12px 14px 14px;
  z-index: 30;
}
.float-card[hidden] { display: none !important; }
.float-card header {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
}
.float-card header h3 {
  margin: 0; font-size: 0.92rem; font-weight: 650; flex: 1;
}
.float-card .coords, .kv small, .src-line {
  color: var(--text-faint); font-size: 0.7rem;
}
.weather-grid, .kv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kv {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 8px;
}
.kv b { display: block; font-size: 0.95rem; font-weight: 650; }
.kv small { display: block; margin-top: 2px; letter-spacing: 0.06em; }
.src-line { margin: 10px 0 0; }

/* ========== Mobile docks / fabs ========== */
.fab-wrap {
  display: none;
  position: absolute;
  z-index: 6;
  top: calc(var(--bar-h) + 22px + var(--safe-t));
  left: calc(12px + var(--safe-l));
  right: calc(12px + var(--safe-r));
  pointer-events: none;
  justify-content: space-between;
}
.fab-wrap .icon-btn { pointer-events: auto; width: 42px; height: 42px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(16px); }
.backdrop {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 24;
}

/* Legend chip */
.legend {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  padding: 6px 8px 2px;
  font-size: 0.65rem; color: var(--text-faint);
}
.legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 4px;
}

.follow-row { padding: 6px 8px 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--panel-edge);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.chip.is-active { border-color: var(--accent); color: var(--accent); background: rgba(92,225,255,0.1); }

/* ========== Responsive ========== */
.panel-close { display: none; }
@media (max-width: 820px) {
  .panel-close { display: grid; }
}
@media (max-width: 980px) {
  .brand .tag { display: none; }
  .clocks .clk-local, .clocks .clk-sim { display: none; }
  .credits { display: none; }
  .bottom-bar { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 64px 1fr auto auto; }
}
@media (max-width: 820px) {
  .fab-wrap { display: flex; }
  .panel {
    z-index: 25;
    top: auto;
    bottom: calc(var(--bottom-h) + 16px + var(--safe-b));
    height: min(70vh, 560px);
    max-height: calc(100vh - var(--bar-h) - var(--bottom-h) - 40px - var(--safe-t) - var(--safe-b));
    transform: translateY(120%);
    transition: transform 0.28s ease;
  }
  .panel-left, .panel-right {
    left: calc(12px + var(--safe-l));
    right: calc(12px + var(--safe-r));
    width: auto;
  }
  body.left-open .panel-left,
  body.right-open .panel-right { transform: translateY(0); }
  body.left-open .backdrop,
  body.right-open .backdrop { display: block; }
  .topbar { padding-right: 8px; }
  .lang-switch button { padding: 5px 8px; }
  .float-card { width: calc(100vw - 24px); }
  .weather-grid, .kv-grid { grid-template-columns: repeat(2, 1fr); }
  .brand h1 { letter-spacing: 0.08em; font-size: 0.92rem; }
}
@media (max-width: 560px) {
  .clocks { display: none; }
  .tl-row .tl-value { min-width: 0; font-size: 0.66rem; }
  .bottom-bar { padding: 8px 10px; }
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
