/* STLYRA v10 one-box dashboard. Scoped to the listen page.
   Clean focus rings only — no site 9-slice button art inside the box. */

.listen-dash [hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.listen-dash {
  min-height: 100vh;
  color: #eef3ff;
  background: #071018 !important;
}
.listen-dash::before,
.listen-dash::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
.listen-dash .dash-stage,
.listen-dash section.dash-stage,
.listen-dash section.dash-lore {
  background: transparent;
  border-top: none;
  padding-top: 1.1rem;
}
.listen-dash header {
  position: relative;
  z-index: 5;
  background: rgba(6, 12, 22, 0.88);
  border-bottom: 1px solid rgba(255, 210, 150, 0.15);
}
.listen-dash main {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Kill the site's wobbly 9-slice button/badge art on this page's dash + lore CTA. */
.listen-dash .dash-box .btn,
.listen-dash .dash-box .badge,
.listen-dash .dash-lore .cta a,
.listen-dash .dash-btn,
.listen-dash .icon-btn,
.listen-dash .timer-chip,
.listen-dash .unit-btn,
.listen-dash .text-btn,
.listen-dash .lib-row,
.listen-dash .restore-tab,
.listen-dash .min-btn {
  background-image: none !important;
  border-image: none !important;
  filter: none !important;
  isolation: auto;
  transform: none !important;
  box-shadow: none;
}
.listen-dash .dash-lore .cta a::before,
.listen-dash .dash-box .btn::before,
.listen-dash .dash-box .badge::before,
.listen-dash .dash-btn::before,
.listen-dash .icon-btn::before,
.listen-dash .timer-chip::before,
.listen-dash .unit-btn::before,
.listen-dash .cta a::before {
  content: none !important;
  display: none !important;
  border-image: none !important;
  background: none !important;
}

.dash-stage {
  position: relative;
  padding: 1rem 1.1rem 2.2rem;
  max-width: 1480px;
  margin: 0 auto;
}
.dash-circle {
  display: inline-block;
  margin: 0 0 0.3rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(120, 200, 255, 0.16);
  color: #cfe8ff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.dash-page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0.04em;
}

/* ---- the one box ---- */
.dash-box {
  position: relative;
  width: min(100%, 1600px, calc((100vh - 9.5rem) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #f4f7ff;
  isolation: isolate;
}
.dash-box:fullscreen,
.dash-box:-webkit-full-screen,
.dash-box.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
html.is-dash-fs,
html.is-dash-fs body {
  overflow: hidden;
}
html.is-dash-fs header,
html.is-dash-fs footer,
html.is-dash-fs .dash-page-title,
html.is-dash-fs .dash-circle,
html.is-dash-fs .radio-off-note,
html.is-dash-fs .dash-lore {
  display: none !important;
}
html.is-dash-fs main,
html.is-dash-fs .dash-stage {
  z-index: auto;
  position: static;
  padding: 0;
  margin: 0;
  max-width: none;
  background: transparent;
}

.dash-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.dash-sky .dash-plate {
  display: block !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
html[data-sky="night"]:not([data-sky-fading]) .dash-plate-night,
html[data-sky="dawn"]:not([data-sky-fading]) .dash-plate-dawn,
html[data-sky="day"]:not([data-sky-fading]) .dash-plate-day,
html[data-sky="sunset"]:not([data-sky-fading]) .dash-plate-sunset { opacity: 1; }
.dash-sky .dash-plate-vid {
  display: block !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  background: transparent;
}
html[data-sky="night"]:not([data-sky-fading]) .dash-plate-vid-night.is-on,
html[data-sky="dawn"]:not([data-sky-fading]) .dash-plate-vid-dawn.is-on,
html[data-sky="day"]:not([data-sky-fading]) .dash-plate-vid-day.is-on,
html[data-sky="sunset"]:not([data-sky-fading]) .dash-plate-vid-sunset.is-on { opacity: 1; }
/* Mid-fade opacities are set in JS so a mid-open lands part-way through the 60s crossfade. */
@media (prefers-reduced-motion: reduce) {
  .dash-sky .dash-plate-vid { transition: none; display: none !important; }
}
.sky-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.42) 0%, rgba(4, 8, 16, 0.18) 28%, rgba(4, 8, 16, 0.22) 58%, rgba(4, 8, 16, 0.55) 100%);
}
html[data-sky="day"] .sky-veil {
  background:
    linear-gradient(180deg, rgba(6, 14, 26, 0.28) 0%, rgba(6, 14, 26, 0.08) 30%, rgba(6, 14, 26, 0.16) 60%, rgba(6, 12, 22, 0.5) 100%);
}
html[data-sky="dawn"] .sky-veil {
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.34) 0%, rgba(18, 22, 36, 0.12) 30%, rgba(10, 16, 28, 0.2) 60%, rgba(8, 14, 24, 0.52) 100%);
}
html[data-sky="sunset"] .sky-veil {
  background:
    linear-gradient(180deg, rgba(28, 14, 22, 0.34) 0%, rgba(24, 12, 18, 0.1) 30%, rgba(16, 10, 20, 0.2) 60%, rgba(8, 10, 20, 0.54) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .dash-sky .dash-plate { transition: none; }
}

.dash-ui {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(0.55rem, 1.4vw, 1.1rem) clamp(0.7rem, 1.6vw, 1.3rem) clamp(0.45rem, 1vw, 0.8rem);
  gap: clamp(0.2rem, 0.6vh, 0.45rem);
}

/* top bar: menu, 279.3, huge clock, timer, fullscreen */
.dash-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.6rem 0.8rem;
  position: relative;
  z-index: 4;
}
.dash-hero-slot {
  min-width: 0;
  min-height: clamp(3.2rem, 11vw, 8.2rem);
  transition: min-height 0.45s ease;
}
.dash-ui:not([data-layout="both"]) .dash-hero-slot,
.dash-ui[data-layout="both"] .dash-hero-slot {
  min-height: 0;
}
.dash-freq-block { min-width: 0; }
.radio-kicker {
  margin: 0;
  font-size: clamp(0.58rem, 1.1vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe0b0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.onair-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #ff7a2e;
  box-shadow: 0 0 8px #ff7a2e;
}
.radio-freq {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--clock, #ff9a32);
  text-shadow: 0 0 18px var(--clock-glow, rgba(255, 140, 40, 0.55)), 0 2px 10px rgba(0, 0, 0, 0.7);
}
.dash-hero {
  justify-self: center;
  text-align: center;
  min-width: 0;
  position: relative;
}
.dash-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(28rem, 92%);
  height: 78%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(4, 8, 16, 0.62) 0%, rgba(4, 8, 16, 0.32) 52%, rgba(4, 8, 16, 0) 76%);
  pointer-events: none;
}
.hero-clock,
.analog-clock,
.radio-clock {
  position: relative;
  z-index: 1;
}
.hero-clock {
  margin: 0;
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-family: var(--body);
  color: var(--clock, #ff9a32);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 0 28px var(--clock-glow, rgba(255, 140, 40, 0.45)),
    0 6px 22px rgba(0, 0, 0, 0.8);
}
.dash-box:fullscreen:not(.is-staged) .hero-clock,
.dash-box:-webkit-full-screen:not(.is-staged) .hero-clock,
.dash-box.is-fullscreen:not(.is-staged) .hero-clock {
  font-size: clamp(5rem, 13vw, 12rem);
}
.dash-ui[data-layout="both"] .hero-clock {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}
.dash-ui[data-layout="both-min"] .hero-clock {
  font-size: clamp(4.4rem, 14vw, 10rem);
}
.dash-box:fullscreen:not(.is-staged) .dash-ui[data-layout="both"] .hero-clock,
.dash-box:-webkit-full-screen:not(.is-staged) .dash-ui[data-layout="both"] .hero-clock,
.dash-box.is-fullscreen:not(.is-staged) .dash-ui[data-layout="both"] .hero-clock {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}
.dash-box:fullscreen:not(.is-staged) .dash-ui[data-layout="both-min"] .hero-clock,
.dash-box:-webkit-full-screen:not(.is-staged) .dash-ui[data-layout="both-min"] .hero-clock,
.dash-box.is-fullscreen:not(.is-staged) .dash-ui[data-layout="both-min"] .hero-clock {
  font-size: clamp(6.5rem, 18vw, 14rem);
}
.radio-clock {
  margin: 0.15rem 0 0;
  font-size: clamp(0.7rem, 1.3vw, 0.95rem);
  color: #e8eefc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.8);
}
html[data-clock-font="poster"] .hero-clock {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
}
html[data-clock-font="technical"] .hero-clock {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  letter-spacing: 0;
}
html[data-clock-font="classic"] .hero-clock {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-top-right {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.dash-tool-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.timer-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(80, 230, 210, 0.4);
  border-radius: 10px;
  background: rgba(8, 24, 28, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #5ef0d8;
  font: inherit;
  cursor: pointer;
}
.timer-chip-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ff5e8;
}
.timer-face {
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0;
}
.icon-btn,
.text-btn,
.unit-btn,
.dash-btn {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 26, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f0f4ff;
}
.text-btn {
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: transparent;
}
.dash-btn {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f7ff;
}
.dash-btn-listen,
.dash-btn-go {
  background: #f0c05a;
  border-color: #e8b24a;
  color: #1a1204;
}
.dash-btn-listen:hover,
.dash-btn-go:hover,
.dash-btn-listen:focus-visible,
.dash-btn-go:focus-visible {
  background: #ffd37a;
  color: #1a1204;
}
.icon-btn:hover, .timer-chip:hover, .dash-btn:hover, .unit-btn:hover, .lib-row:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.dash-btn-listen:hover, .dash-btn-go:hover { background: #ffd37a; }

.icon-btn:focus-visible,
.timer-chip:focus-visible,
.dash-btn:focus-visible,
.unit-btn:focus-visible,
.text-btn:focus-visible,
.lib-row:focus-visible,
.todo-list input:focus-visible,
.todo-form input:focus-visible,
.timer-form input:focus-visible,
.vol input:focus-visible,
.listen-dash .dash-lore .cta a:focus-visible {
  outline: 3px solid #7ce0ff;
  outline-offset: 3px;
}

.menu-tray, .timer-tray {
  position: absolute;
  z-index: 8;
  padding: 0.55rem 0.7rem 0.7rem;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.menu-tray { left: clamp(0.5rem, 1.4vw, 1.1rem); top: 3.5rem; max-width: min(36rem, 92%); }
.timer-tray { right: clamp(0.5rem, 1.4vw, 1.1rem); top: 3.5rem; }
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.tray-head h3 { margin: 0; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.timer-form, .timer-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.timer-form input {
  width: 4.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
}

.world-times {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* t2200: slightly tighter gap so 13 clocks wrap cleanly under the hero clock. */
  gap: 0.12rem 0.55rem;
  font-size: clamp(0.6rem, 1.1vw, 0.8rem);
  color: #dce6fa;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}
.world-times .wt {
  white-space: nowrap;
  display: inline-block;
  margin: 0;
  padding: 0.05rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
.world-times .wt:hover, .world-times .wt:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}
.world-times .wt.is-hero {
  color: var(--clock, #ff9a32);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.world-times-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  text-align: left;
}
.city-tile {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 7rem;
}
.city-tile strong { display: block; font-size: 0.8rem; }
.city-tile .when, .city-tile .temp, .city-tile .wx { margin: 0; font-size: 0.78rem; color: #c9d4ea; }


/* mid stage: panels + a moving clock */
.dash-body {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: clamp(0.2rem, 0.6vh, 0.4rem);
  transition: padding-top 0.45s ease;
}
.clock-block {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  transform: translate(-50%, -62%);
  width: max-content;
  max-width: min(70%, 46rem);
  text-align: center;
  pointer-events: none;
  transition: top 0.45s ease, left 0.45s ease, transform 0.45s ease, width 0.45s ease;
}
.clock-block .world-times,
.clock-block .wx-strip {
  pointer-events: auto;
}
.dash-ui[data-layout="todo-min"] .clock-block {
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  max-width: min(46%, 28rem);
}
.dash-ui[data-layout="lib-min"] .clock-block {
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  max-width: min(46%, 28rem);
}
.dash-ui[data-layout="both-min"] .clock-block {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92%, 70rem);
}
/* When both panels are open, keep the clock fully in the mid stage
   (no overlap into the header) so the analog face is never clipped. */
.dash-ui[data-layout="both"] .clock-block {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  margin: 0 auto 0.15rem;
}
.dash-col.is-min {
  visibility: hidden;
  pointer-events: none;
}
.min-btn {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  color: #e8eefc;
}
.min-btn:hover, .min-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
.col-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.restore-tab {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 0.7rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4f7ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.restore-todo { left: 0.35rem; color: #6ee7a8; }
.restore-lib { right: 0.35rem; color: #ff8ec8; }
.restore-tab:hover, .restore-tab:focus-visible {
  background: rgba(8, 14, 26, 0.8);
}
.restore-tab:focus-visible,
.min-btn:focus-visible {
  outline: 3px solid #7ce0ff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .clock-block, .dash-body, .dash-hero-slot { transition: none; }
}

/* mid columns */
.dash-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding-top: clamp(4.8rem, 14vh, 8.2rem);
  transition: padding-top 0.45s ease;
}
.dash-ui:not([data-layout="both"]) .dash-mid,
.dash-ui[data-layout="both"] .dash-mid {
  padding-top: 0.2rem;
}
.dash-col {
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.6rem 0.5rem;
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.col-h {
  margin: 0;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.todo-h { color: #6ee7a8; }
.lib-h { color: #ff8ec8; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.col-note {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.7rem;
  color: #c5d0e6;
}
.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1 1 0;
  min-height: 0;
}
.todo-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
}
.todo-list li label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.todo-list li.done span { text-decoration: line-through; opacity: 0.65; }
.todo-list input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: #6ee7a8; order: 2; }
.todo-list [data-del] {
  font: inherit;
  font-size: 0.7rem;
  color: #c5d0e6;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}
.todo-form {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex: 0 0 auto;
}
.todo-form input {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
}

.lib-list {
  overflow: auto;
  flex: 1 1 0;
  min-height: 0;
}
.lib-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 0.22rem 0.2rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(0.75rem, 1.15vw, 0.88rem);
  cursor: pointer;
  border-radius: 0;
}
.lib-row.is-current { background: rgba(255, 142, 200, 0.16); border-radius: 6px; }
.lib-slot { color: #ffc37a; font-variant-numeric: tabular-nums; font-size: 0.78em; }
.lib-take { color: #ff8ec8; font-size: 0.78em; }

/* v12.21 (Dad t2283): now-playing card in the library widget. Transport
   buttons are shown only while a library track is on, so they are not
   mistaken for live-radio controls. Art shows only when a track has art. */
.lib-now {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 142, 200, 0.38);
  background: linear-gradient(180deg, rgba(48, 20, 40, 0.78), rgba(16, 10, 24, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 220, 240, 0.16), 0 6px 16px rgba(0, 0, 0, 0.22);
}
.lib-now[hidden] { display: none !important; }
.lib-now.is-live {
  border-color: rgba(255, 195, 122, 0.38);
  background: linear-gradient(180deg, rgba(32, 24, 14, 0.74), rgba(16, 12, 8, 0.52));
}
.lib-now-art {
  flex: 0 0 3.1rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lib-now-art[hidden] { display: none !important; }
.lib-now-text { flex: 1 1 auto; min-width: 0; }
.lib-now-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8ec8;
}
.lib-now.is-live .lib-now-kicker { color: #ffc37a; }
.lib-now-title {
  margin: 0.08rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  color: #fff8fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-now-artist {
  margin: 0.06rem 0 0;
  font-size: 0.72rem;
  color: #c5d0e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-now-transport {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex: 0 0 auto;
}
.lib-now-transport[hidden] { display: none !important; }
.lib-now-btn {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #ffe6f4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lib-now-btn:hover, .lib-now-btn:focus-visible {
  background: rgba(255, 142, 200, 0.28);
  border-color: rgba(255, 200, 230, 0.55);
}
.lib-now-btn-play {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 142, 200, 0.3);
  border-color: rgba(255, 142, 200, 0.6);
  color: #fff4fa;
}
.lib-now-btn-play .ico-play { display: none; }
.lib-now-btn-play.is-paused .ico-play { display: block; }
.lib-now-btn-play.is-paused .ico-pause { display: none; }

html.is-phone .lib-now {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.65rem;
}
html.is-phone .lib-now-title { font-size: 1rem; }
html.is-phone .lib-now-btn { width: 2.7rem; height: 2.7rem; }
html.is-phone .lib-now-btn-play { width: 3.05rem; height: 3.05rem; }
html.is-phone .lib-now-art { width: 3.4rem; height: 3.4rem; flex-basis: 3.4rem; }

/* weather strip */
.weather-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
}
.weather-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  /* t2200: wrap instead of a clipped horizontal scroll, and shrink inside
     the 1fr column so chips cannot overlap the °F/°C toggle. */
  overflow: visible;
  padding: 0.15rem 0;
  min-width: 0;
  align-items: center;
}
.wx-cell {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.16rem 0.34rem;
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  font-size: clamp(0.58rem, 0.88vw, 0.72rem);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.wx-cell svg { flex: none; width: 15px; height: 15px; }
.wx-cell .temp { font-weight: 700; }
.wx-cell.is-on {
  border-color: var(--clock, #ff9a32);
  box-shadow: 0 0 0 1px var(--clock, #ff9a32);
  background: rgba(8, 14, 26, 0.55);
}
.wx-cell.is-aria .wx-home {
  display: inline-block;
  margin-right: 0.12em;
  color: var(--clock, #ff9a32);
  font-size: 0.85em;
  line-height: 1;
}
.wx-attrib {
  grid-column: 1 / -1;
  margin: 0.05rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
  color: inherit;
}
.wx-attrib a { color: inherit; text-underline-offset: 2px; }
#timer-auto.is-on {
  background: #5ef0d8;
  border-color: #5ef0d8;
  color: #042018;
}
.timer-chip.is-auto {
  border-color: #5ef0d8;
  box-shadow: 0 0 0 1px rgba(94, 240, 216, 0.45);
}
.extras { display: flex; align-items: center; gap: 0.35rem; }
.unit-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(8, 14, 26, 0.32);
}
.unit-btn {
  border: 0;
  border-radius: 0;
  padding: 0.22rem 0.5rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}
.unit-btn.is-on {
  background: #f0c05a;
  color: #1a1204;
}

/* t2200: keep chips compact at mid widths. They wrap to a second row
   rather than clipping against the unit toggle. */
@media (max-width: 1600px) {
  .weather-strip { gap: 0.22rem; }
  .wx-cell { padding: 0.14rem 0.3rem; gap: 0.16rem; }
  .wx-cell svg { width: 14px; height: 14px; }
}
@media (max-width: 1360px) {
  .weather-strip { gap: 0.16rem; }
  .wx-cell { padding: 0.12rem 0.26rem; gap: 0.14rem; font-size: clamp(0.56rem, 0.85vw, 0.68rem); }
}
@media (max-width: 1100px) {
  .weather-strip { gap: 0.14rem; }
  .wx-cell { padding: 0.1rem 0.22rem; gap: 0.12rem; font-size: 0.58rem; }
  .wx-cell svg { width: 13px; height: 13px; }
}

.radio-status,
.radio-day-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  border: 0;
  padding: 0;
}
.radio-now, .radio-next { display: none; } /* shown in the transport bar instead */
.radio-day {
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
/* caption is visually hidden; the slim day strip remains */

.transport {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(7rem, 0.6fr);
  gap: 0.5rem 0.8rem;
  align-items: center;
  padding: 0.35rem 0.2rem 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
.transport-now { min-width: 0; }
.transport-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc37a;
}
.transport-title {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.transport-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.vol {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #d5deef;
}
.vol input[type="range"] { width: 6.5rem; accent-color: #ff9a32; }
.eq {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  height: 28px;
}
.eq i {
  display: block;
  width: 3px;
  height: 20%;
  border-radius: 2px;
  background: #ff9a32;
  box-shadow: 0 0 6px rgba(255, 150, 50, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .eq i { height: 40% !important; }
}

.radio-off-note {
  margin: 1rem auto 0;
  max-width: 46rem;
  color: #d5deef;
}
.dash-lore {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-lore .kicker { letter-spacing: 0.12em; text-transform: uppercase; color: #ffc37a; margin: 0 0 0.3rem; }
.dash-lore h2 { margin: 0 0 0.7rem; }
.dash-lore .prose p { margin: 0 0 0.7rem; }

/* Readable gold CTA — no 9-slice, dark text on gold. */
.listen-dash .dash-lore .cta a {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #f0c05a !important;
  color: #1a1204 !important;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #e0a63c;
}
.listen-dash .dash-lore .cta a:hover,
.listen-dash .dash-lore .cta a:focus-visible {
  background: #ffd37a !important;
  color: #1a1204 !important;
}

.listen-dash footer {
  position: relative;
  z-index: 2;
  background: rgba(6, 10, 18, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 800px) {
  .dash-box {
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }
  .dash-ui {
    height: auto;
    grid-template-rows: auto;
  }
  .dash-top {
    grid-template-columns: 1fr auto;
    grid-template-areas: "freq tools";
  }
  .dash-freq-block { grid-area: freq; }
  .dash-logo {
    height: clamp(3.1rem, 16vw, 4.6rem);
    max-width: min(12.5rem, 58vw);
  }
  .dash-top-right { grid-area: tools; }
  .settings-btn-label { display: none; }
  .timer-chip-label { font-size: 0.55rem; }
  .analog-clock { width: min(46vw, 13rem); height: min(46vw, 13rem); }
  .settings-tray { left: 0.5rem; right: 0.5rem; width: auto; max-width: none; }
  .wx-strip { margin-top: 0.2rem; }
  .wx-strip-city { display: none; }
  .dash-ui[data-layout="both"] .analog-clock,
  .dash-ui[data-layout="todo-min"] .analog-clock,
  .dash-ui[data-layout="lib-min"] .analog-clock,
  .analog-clock { width: min(42vw, 11rem); height: min(42vw, 11rem); }
  .dash-hero-slot { display: none; }
  .hero-clock { font-size: clamp(3.2rem, 18vw, 5.5rem); }
  .dash-body { flex: 0 0 auto; overflow: visible; padding-top: 0; }
  .clock-block,
  .dash-ui[data-layout="todo-min"] .clock-block,
  .dash-ui[data-layout="lib-min"] .clock-block,
  .dash-ui[data-layout="both-min"] .clock-block,
  .dash-ui[data-layout="both-min"] .hero-clock {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    font-size: inherit;
    margin: 0 0 0.4rem;
  }
  .dash-ui[data-layout="both-min"] .hero-clock { font-size: clamp(3.2rem, 18vw, 5.5rem); }
  .dash-mid,
  .dash-ui:not([data-layout="both"]) .dash-mid {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    overflow: visible;
    padding-top: 0;
  }
  .dash-col { max-height: none; overflow: visible; }
  .dash-col.is-min {
    display: none;
    visibility: visible;
    pointer-events: auto;
  }
  .restore-tab {
    position: static;
    transform: none;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    width: 100%;
    padding: 0.45rem 0.7rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
  }
  .lib-list, .todo-list { max-height: 14rem; flex: 0 1 auto; min-height: 4rem; }
  .weather-band { grid-template-columns: 1fr; }
  .extras { justify-self: end; }
  .transport {
    grid-template-columns: 1fr;
  }
  .vol { width: 100%; }
  .vol input[type="range"] { flex: 1; width: auto; }
  .eq { justify-content: flex-start; height: 22px; }
  .radio-status { display: none; }
  .timer-tray, .settings-tray {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
 top: 6.6rem; }
}



/* ---- v11 additions. WHY: Dad t1985 settings, themes, analog, forecast, branding. ---- */
html {
  --clock: #ff9a32;
  --clock-glow: rgba(255, 140, 40, 0.45);
}
html[data-clock-color="white"] { --clock: #f4f7ff; --clock-glow: rgba(220, 230, 255, 0.45); }
html[data-clock-color="teal"] { --clock: #7af0d8; --clock-glow: rgba(80, 230, 210, 0.5); }
/* t2173: Zero Point green matches .zp-prompt color:#2ee86a; glow follows the #33ff77 cursor/shadow. WHY: Dad asked for more clock colours, including that green. */
html[data-clock-color="zeropoint"] { --clock: #2ee86a; --clock-glow: rgba(51, 255, 119, 0.5); }
html[data-clock-color="cyan"] { --clock: #5ce8ff; --clock-glow: rgba(80, 220, 255, 0.5); }
html[data-clock-color="lilac"] { --clock: #d4a8ff; --clock-glow: rgba(200, 150, 255, 0.5); }
html[data-clock-color="rose"] { --clock: #ff8ec8; --clock-glow: rgba(255, 142, 200, 0.5); }
html[data-clock-color="gold"] { --clock: #ffe08a; --clock-glow: rgba(255, 220, 120, 0.5); }

/* t2173: top-left 279.3 logo, in place of the typographic wordmark. */
.dash-logo {
  display: block;
  width: auto;
  height: clamp(3.6rem, 8.5vw, 6.4rem);
  max-width: min(16.5rem, 42vw);
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.dash-network {
  margin: 0.15rem 0 0;
  font-size: clamp(0.58rem, 1.05vw, 0.75rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0e6d0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  opacity: 0.92;
}
.settings-btn {
  /* Icon-only gear, same size and style as the full-screen button. WHY: Dad t2064. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex-shrink: 0;
  gap: 0;
}
.settings-btn-label { display: none; }
.timer-chip-label { letter-spacing: 0.08em; }

.theme-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
html[data-theme="wallpaper"] .theme-plate-wallpaper,
html[data-theme="space"] .theme-plate-space,
html[data-theme="cafe"] .theme-plate-cafe,
html[data-theme="zeropoint"] .theme-plate-zeropoint,
html[data-theme="beach"] .theme-plate-beach,
html[data-theme="greenscreen"] .theme-plate-greenscreen { opacity: 1; }
.theme-plate-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
html[data-theme="wallpaper"] .theme-plate-vid-wallpaper.is-on,
html[data-theme="cafe"] .theme-plate-vid-cafe.is-on { opacity: 1; }
html[data-theme]:not([data-theme="247"]) .dash-plate,
html[data-theme]:not([data-theme="247"]) .dash-plate-vid {
  opacity: 0 !important;
}
html[data-theme="wallpaper"] .sky-veil,
html[data-theme="space"] .sky-veil,
html[data-theme="cafe"] .sky-veil,
html[data-theme="beach"] .sky-veil {
  background: linear-gradient(to top, rgba(4, 6, 14, 0.62) 0%, rgba(4, 6, 14, 0.28) 38%, rgba(4, 6, 14, 0.12) 100%);
}
html[data-theme="zeropoint"] .sky-veil {
  background:
    linear-gradient(to top, rgba(0, 8, 4, 0.72) 0%, rgba(0, 8, 4, 0.32) 42%, rgba(0, 8, 4, 0.16) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}

html[data-clock-style="analog"] .hero-clock { display: none; }
html[data-clock-style="digital"] .analog-clock { display: none !important; }
.analog-clock {
  width: min(28vw, 16rem);
  height: min(28vw, 16rem);
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.dash-box:fullscreen:not(.is-staged) .analog-clock,
.dash-box:-webkit-full-screen:not(.is-staged) .analog-clock,
.dash-box.is-fullscreen:not(.is-staged) .analog-clock {
  width: min(32vw, 20rem);
  height: min(32vw, 20rem);
}
.dash-ui[data-layout="both"] .analog-clock {
  width: min(16vw, 8.5rem, 22vh);
  height: min(16vw, 8.5rem, 22vh);
}
.dash-ui[data-layout="todo-min"] .analog-clock,
.dash-ui[data-layout="lib-min"] .analog-clock {
  width: min(22vw, 12rem, 32vh);
  height: min(22vw, 12rem, 32vh);
}
.dash-ui[data-layout="both-min"] .analog-clock {
  width: min(34vw, 18rem);
  height: min(34vw, 18rem);
}
.dash-box:fullscreen:not(.is-staged) .dash-ui[data-layout="both"] .analog-clock,
.dash-box:-webkit-full-screen:not(.is-staged) .dash-ui[data-layout="both"] .analog-clock,
.dash-box.is-fullscreen:not(.is-staged) .dash-ui[data-layout="both"] .analog-clock {
  width: min(14vw, 10rem, 22vh);
  height: min(14vw, 10rem, 22vh);
}
.analog-clock svg { width: 100%; height: 100%; display: block; }
.analog-face { fill: rgba(6, 10, 20, 0.42); }
.analog-ring { stroke: var(--clock, #ff9a32); stroke-width: 3; }
.analog-tick { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.analog-tick.is-hour { stroke: var(--clock, #ff9a32); stroke-width: 2.6; }
.analog-hand { stroke: var(--clock, #ff9a32); stroke-linecap: round; }
.analog-hour { stroke-width: 6; }
.analog-minute { stroke-width: 4; }
.analog-second { stroke: #ff7a2e; stroke-width: 2; }
.analog-cap { fill: var(--clock, #ff9a32); }
.analog-num {
  fill: var(--clock, #ff9a32);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(4, 8, 16, 0.72);
  stroke-width: 3px;
}
html[data-clock-numerals="off"] #analog-numerals { display: none; }
html[data-clock-seconds="off"] .analog-second { display: none; }
html[data-clock-font="poster"] .analog-num { font-family: var(--display); font-weight: 400; font-size: 16px; }
html[data-clock-font="technical"] .analog-num { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
html[data-clock-font="classic"] .analog-num { font-family: "Iowan Old Style", Palatino, serif; font-weight: 700; }

/* v12.17: the world-times row is gone; this setting now hides the times on the city cards. */
html[data-world-clock="off"] .wx-cell .wx-time { display: none; }

.settings-tray {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
  position: absolute;
  right: clamp(0.5rem, 1.4vw, 1.1rem);
  top: 6.2rem;
  z-index: 8;
  width: min(30rem, 94%);
  max-height: calc(100% - 4.2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}
.settings-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
}
.set-tab {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e8eefc;
  border-radius: 999px;
  padding: 0.32rem 0.2rem;
  font: 700 0.68rem/1.1 var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-tab.is-on {
  background: rgba(255, 154, 50, 0.22);
  border-color: var(--clock, #ff9a32);
  color: #fff;
}
.settings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.set-panel { margin: 0; }
.set-panel[hidden] { display: none !important; }
.set-sec { margin: 0 0 0.55rem; }
.set-sec:last-child { margin-bottom: 0; }
.set-sec h4 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc37a;
}
.set-label {
  margin: 0.38rem 0 0.18rem;
  font-size: 0.72rem;
  color: #d5deef;
}
.set-panel .set-label:first-of-type { margin-top: 0; }
.set-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.set-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 0.4rem;
}
.set-city-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.set-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.set-opt, .set-theme {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f5ff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.set-opt.is-on, .set-theme.is-on {
  background: rgba(255, 154, 50, 0.22);
  border-color: var(--clock, #ff9a32);
  color: #fff;
}
.set-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--sw, #ff9a32);
  cursor: pointer;
  padding: 0;
}
.set-swatch.is-on { box-shadow: 0 0 0 2px #0b1018, 0 0 0 4px var(--sw, #ff9a32); }
.set-themes { display: grid; gap: 0.22rem; }
.set-theme {
  border-radius: 10px;
  text-align: left;
  display: grid;
  gap: 0.02rem;
  padding: 0.28rem 0.55rem;
}
.set-theme strong { font-size: 0.88rem; }
.set-theme span { font-size: 0.72rem; color: #c9d3e8; }
.set-chimes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.45rem; }
#chime-preview { margin-top: 0.15rem; }

/* v12.7: the 5-day panel spans the big clock digits (Dad t2051, t2055).
   Width follows the clock, including a live seconds on/off toggle. Days keep a
   capped type size and spread left-to-right with space between them when wide. */
.wx-strip {
  display: grid;
  grid-template-columns: repeat(var(--wx-strip-cols, 5), max-content);
  /* v12.17 (Dad t2255): the side air equals the air between days. space-evenly makes the
     two outer gaps the same size as the five-column gaps; the equal 0.3em floor on both
     (column-gap + side padding) keeps it that way when the panel is tight. */
  justify-content: space-evenly;
  justify-items: center;
  align-items: start;
  column-gap: 0.3em;
  row-gap: 0.35em;
  margin: 0.35rem auto 0;
  padding: 0.45em 0.3em 0.5em;
  width: var(--wx-clock-width, max-content);
  max-width: 100%;
  box-sizing: border-box;
  /* v12.24 (Dad t2313 a + i): no container here any more. Nothing queries "wxstrip" and nothing uses cq units, but
     inline-size containment makes max-content = 0, so wherever the strip is sized max-content (toolbox header, phone,
     narrow) the glass box collapsed to a ~20px pill while the days spilled out: that was the black box and "mars is
     coming out the box". */
  container-type: normal;
  container-name: wxstrip; /* kept as a harmless label (no type = not a container); tests key on it */
  /* Cap type so a seconds-on clock widens the gutters, not the icons. */
  font-size: clamp(0.72rem, calc(min(var(--wx-clock-width, 20rem), 20rem) * 0.068), 1.15rem);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8eefc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.wx-strip.is-sized {
  transition: width 0.4s ease;
}
.wx-strip[hidden],
html[data-forecast-strip="off"] #wx-strip { display: none; }
.wx-strip-city {
  grid-column: 1 / -1;
  margin: 0 0 0.15em;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d3e8;
}
.wx-strip-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  min-width: 0;
  width: max-content;
}
.wx-strip-day svg {
  width: 1.65em;
  height: 1.65em;
  flex: 0 0 auto;
}
.wx-strip-name {
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.06em;
  line-height: 1.2;
}
.wx-strip-temps {
  font-size: 0.78em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
  line-height: 1.15;
}
.wx-strip-temps .hi { font-weight: 700; }
.wx-strip-temps .lo { color: #c9d3e8; margin-left: 0; }
.wx-strip-city.is-mars,
.wx-strip-note {
  grid-column: 1 / -1;
  margin: 0 0 0.15em;
  font-size: 0.7em;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #c9d3e8;
}
.wx-strip-note {
  font-size: 0.66em;
}
.wx-strip-earth {
  font-size: 0.58em;
  color: #c9d3e8;
  line-height: 1.15;
  white-space: nowrap;
}
.wx-offline-msg { margin-right: 0.45rem; }

.dash-ui[data-layout="both"] .wx-strip {
  margin-top: 0.18rem;
}

@media (prefers-reduced-motion: reduce) {
  .theme-plate, .dash-plate, .dash-plate-vid, .theme-plate-vid { transition: none; }
  .wx-strip.is-sized { transition: none; }
}

@media (max-width: 800px) {
  .settings-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-tab { font-size: 0.7rem; padding: 0.36rem 0.3rem; }
}

/* Short windows: keep both-open clock + strip compact so the panels still have a little room. */
@media (max-height: 780px) {
  .dash-ui[data-layout="both"] .analog-clock {
    width: min(13vw, 7rem, 18vh);
    height: min(13vw, 7rem, 18vh);
  }
  .dash-ui[data-layout="both"] .hero-clock {
    font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  }
  .dash-ui[data-layout="both"] .wx-strip-city { display: none; }
  .dash-ui[data-layout="both"] .world-times { font-size: 0.62rem; gap: 0.08rem 0.55rem; }
  .dash-ui[data-layout="both"] .radio-clock { margin-top: 0.05rem; font-size: 0.7rem; }
}

/* t2200: a wrapping weather row is a little taller. On short windows, lift
   the centered clock so the 5-day strip does not sit on the chips. */
@media (max-height: 800px) {
  .dash-ui[data-layout="both-min"] .clock-block {
    transform: translate(-50%, -64%);
  }
  .dash-ui[data-layout="todo-min"] .clock-block {
    transform: translate(-50%, -64%);
  }
  .dash-ui[data-layout="lib-min"] .clock-block {
    transform: translate(-50%, -64%);
  }
}


/* ---- v12.9 theme motion. WHY: Dad t2093/t2094 Space animation; t2092 Zero Point job stream. Local staging only. ---- */
.theme-space-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
html[data-theme="space"][data-space-anim="on"] .theme-space-sky { opacity: 1; }
/* v12.16: Green Screen theme. WHY: Dad t2249 asked for a pure
   chroma-key green radio scene, like a green screen, for keying in OBS.
   Dad t2251 said hold off on the new 90s and upload only this green screen
   to St. Lyra. Flat #00FF00 only — no gradient, pattern, drift, veil,
   vignette, or scrim tint over the green. UI panels on top stay as they are. */
html[data-theme="greenscreen"] .dash-box,
html[data-theme="greenscreen"] .dash-sky {
  background: #00FF00;
}
.theme-plate-greenscreen {
  background: #00FF00;
  transition: none;
}
html[data-theme="greenscreen"] .theme-plate-greenscreen {
  opacity: 1;
}
html[data-theme="greenscreen"] .sky-veil {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}
html[data-theme="greenscreen"] .dash-hero::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* The Zero Point prompt layer replaces the still plate while that theme is on. WHY: Dad t2111. */
html[data-theme="zeropoint"] .theme-plate-zeropoint { opacity: 0; }
html[data-theme="zeropoint"] .zp-phos-host { z-index: 0; }
@media (prefers-reduced-motion: reduce) {
  .theme-space-sky { display: none !important; }
}

/* Beach theme — two stacked videos, instant swaps at matched cuts. No fade during motion.
   WHY: Dad t2141. Day only. */
.theme-beach-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.theme-beach-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: none;
  background: transparent;
}
html[data-theme="beach"] .theme-beach-host { z-index: 0; }
html[data-theme="beach"] .theme-beach-vid.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .theme-beach-vid { display: none !important; }
}


/* ======================================================================
   v12.17 (Dad t2255) — UI pass. Each block says why.
   ====================================================================== */

/* 1+2. Top-right cluster. WHY: Dad wanted the MARU-TIMER box as tall as the
   fullscreen + settings buttons beside it, and the Labyrinth coin count in its
   own box underneath instead of over the 279.3 logo. */
.dash-top-right {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.dash-top-cluster {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}
.dash-top-cluster .timer-chip {
  justify-content: center;
  align-items: center;
  min-width: 5.4rem;
  padding: 0.3rem 0.7rem;
}
.dash-top-cluster .timer-face {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
}
.lab-coin-box {
  align-self: stretch;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 200, 90, 0.5);
  border-radius: 10px;
  background: rgba(20, 12, 6, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffcf7a;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
html[data-lab-chrome="maze"] .lab-coin-box:not([hidden]) { display: flex; }
.lab-coin-ico { font-size: 1.05em; line-height: 1; }
.lab-coin-count { flex: 1 1 auto; text-align: center; }
.lab-coin-mute {
  font: inherit;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cdb98a;
  cursor: pointer;
}
.lab-coin-mute:hover, .lab-coin-mute:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lab-coin-box.is-pop .lab-coin-count { animation: lab-coin-pop 0.5s; }
@keyframes lab-coin-pop { 30% { transform: scale(1.35); color: #fff; } }
@media (prefers-reduced-motion: reduce) { .lab-coin-box.is-pop .lab-coin-count { animation: none; } }

/* 3. City area cards. WHY: Dad could not read the white world times under the big
   clock; each city now carries its own time under its weather (icon + city + temp on
   top, local time beneath), so the old row is gone. */
.weather-strip { gap: 0.3rem; }
.wx-cell {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02rem;
  padding: 0.2rem 0.5rem 0.24rem;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  line-height: 1.15;
  font-size: clamp(0.64rem, 0.95vw, 0.76rem);
}
.wx-cell .wx-top { display: inline-flex; align-items: center; gap: 0.2rem; }
.wx-cell svg { width: 14px; height: 14px; }
.wx-cell .wx-time {
  font-size: 0.94em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.wx-cell.is-on { background: rgba(8, 14, 26, 0.72); }
@media (max-width: 1100px) {
  .wx-cell { padding: 0.16rem 0.4rem 0.2rem; font-size: 0.64rem; }
}
/* Phone: thirteen two-line cards would stack five rows deep, so they scroll sideways
   instead (snap to a card, fade on the right edge as the "more" hint). */
@media (max-width: 800px) {
  .weather-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 1.6rem 0.2rem 0.05rem;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.8rem), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.8rem), transparent 100%);
  }
  .weather-strip::-webkit-scrollbar { display: none; }
  .wx-cell { flex: 0 0 auto; scroll-snap-align: start; font-size: 0.7rem; padding: 0.22rem 0.5rem 0.26rem; }
  .wx-cell svg { width: 14px; height: 14px; }
}

.set-hint {
  margin: 0.1rem 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #c9d3e8;
}

/* 6. Dock clock (setting, off by default). WHY: Dad t2255 — with it on, the big clock +
   5-day leave the middle: time bottom-right, weather bottom-left, just above the city
   cards, so the scene stays open. Not applied while the Labyrinth is up (it parks its
   own compact clock), so the labyrinth chrome rules keep winning there. */
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui[data-layout] .clock-block {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 0.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: right;
  flex: none;
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .clock-block .dash-hero {
  order: 2;
  margin-left: auto;
  justify-self: auto;
  text-align: right;
  flex: 0 1 auto;
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .clock-block .wx-strip {
  order: 1;
  margin: 0;
  flex: 0 0 auto;
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-hero::before {
  left: auto;
  right: -1rem;
  transform: translate(0, -50%);
  width: 130%;
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui[data-layout] .hero-clock {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui[data-layout] .analog-clock {
  width: min(11vw, 8rem);
  height: min(11vw, 8rem);
  margin-left: auto;
}
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .radio-clock {
  margin-top: 0.1rem;
  font-size: 0.72rem;
}
/* the open panels keep clear of the dock (JS sets --dock-h from the real height) */
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui .dash-mid {
  padding-bottom: var(--dock-h, 7rem);
}
@media (max-width: 800px) {
  /* Phone: no free corner beside the buttons, so the dock becomes one row (weather left,
     time right) under the panel buttons and just above the city cards. The scene keeps
     its height so it still reads as open. */
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui[data-layout] .clock-block {
    position: relative;
    order: 9;
    margin: 0.4rem 0 0.2rem;
    gap: 0.5rem;
  }
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-body { display: flex; flex-direction: column; }
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui .dash-mid { padding-bottom: 0; }
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-ui[data-layout] .hero-clock {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .wx-strip-city { display: none; }
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .dash-box { min-height: 31rem; }
}

/* The weather cards are two lines tall now, so the middle stage is a little shorter. Keep the
   vertical SHOW LIBRARY / SHOW TO-DO tabs on one line instead of wrapping to two columns. */
.restore-tab { white-space: nowrap; }

/* Dock tweaks: the docked 5-day uses a smaller type size than the centred one so the corner stays light,
   and on desktop the SHOW TO-DO / SHOW LIBRARY tabs move up to the top of the stage so they never sit on the docked
   weather or time. */
html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .clock-block .wx-strip {
  font-size: 0.86rem;
}
@media (max-width: 800px) {
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .clock-block .wx-strip { font-size: 0.72rem; }
}
@media (min-width: 801px) {
  html[data-dock-clock="on"]:not([data-lab-chrome="maze"]):not([data-lab-chrome="gate"]) .restore-tab {
    top: 0.2rem;
    transform: none;
  }
}


/* The Mars strip has date lines wider than a weekday; on a phone it takes the block width (see syncForecastToClock) and a smaller type size so the fifth Sol stays inside the panel. */
@media (max-width: 800px) {
  .wx-strip.is-mars-strip { font-size: 0.74rem; }
}


/* =====================================================================
   v12.18 (Dad t2259): phone mode.
   WHY: on his phone the radio chrome piled on top of the Labyrinth and of itself: stacked SHOW TO-DO / SHOW LIBRARY
   bars, two rows of city cards, the volume slider and the visualizer over the game; in landscape the clock ran off the
   top and the 5-day panel covered the cards. index.html's head script sets html.is-phone (touch + short side <= 500px)
   with is-phone-portrait / is-phone-landscape. EVERYTHING below is scoped to html.is-phone, so desktop (and tablets)
   stay exactly as v12.17. ===================================================================== */
.vol-toggle { display: none; }

html.is-phone {
  --ph-pad: 0.45rem;
  --ph-logo-h: 2.5rem;
  --ph-btn: 2.1rem;
}
html.is-phone-portrait { --ph-box-h: clamp(30rem, calc(100vh - 11.8rem), 52rem); }
html.is-phone-landscape { --ph-box-h: max(15.5rem, calc(100vh - 8.4rem)); }
@supports (height: 100dvh) {
  html.is-phone-portrait { --ph-box-h: clamp(30rem, calc(100dvh - 11.8rem), 52rem); }
  html.is-phone-landscape { --ph-box-h: max(15.5rem, calc(100dvh - 8.4rem)); }
}

/* ---- the page around the box: small ---- */
html.is-phone .dash-stage { padding: 0.35rem 0.45rem 1rem; }
html.is-phone .dash-circle { display: none; }
html.is-phone .dash-page-title { font-size: 1.1rem; margin: 0 0 0.3rem; letter-spacing: 0.06em; }
html.is-phone .dash-box {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  height: var(--ph-box-h);
  min-height: 0;
  border-radius: 16px;
}
html.is-phone .dash-ui {
  height: 100%;
  padding: var(--ph-pad) var(--ph-pad) 0.35rem;
  gap: 0.2rem;
  grid-template-rows: none;
}

/* ---- top strip: small logo left; timer + tools right ---- */
html.is-phone .dash-top {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex: 0 0 auto;
}
html.is-phone .dash-freq-block { flex: 0 1 auto; min-width: 0; }
html.is-phone .dash-logo { height: var(--ph-logo-h); max-width: 36vw; }
html.is-phone .dash-network, html.is-phone .dash-hero-slot, html.is-phone .settings-btn-label { display: none; }
html.is-phone .dash-top-right { flex-direction: row; align-items: center; gap: 0.3rem; flex: 0 0 auto; }
html.is-phone .dash-top-cluster { align-items: center; gap: 0.3rem; }
html.is-phone .dash-top-cluster .timer-chip { min-width: 0; padding: 0.12rem 0.45rem; border-radius: 9px; }
html.is-phone .dash-top-cluster .timer-face { font-size: 1rem; line-height: 1.15; }
html.is-phone .timer-chip-label { font-size: 0.42rem; line-height: 1; letter-spacing: 0.06em; }
html.is-phone .dash-tool-stack { flex-direction: row; gap: 0.25rem; }
html.is-phone .icon-btn { width: var(--ph-btn); height: var(--ph-btn); border-radius: 9px; }
html.is-phone .icon-btn svg { width: 14px; height: 14px; }
html.is-phone .settings-tray,
html.is-phone .timer-tray { top: calc(var(--ph-logo-h) + 1rem); left: 0.4rem; right: 0.4rem; width: auto; max-width: none; max-height: calc(100% - var(--ph-logo-h) - 1.5rem); overflow: auto; }

/* ---- clock: in the flow, sized by the screen so it can never run off the top ---- */
html.is-phone .dash-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: visible; padding-top: 0; display: flex; flex-direction: column; }
html.is-phone .dash-ui[data-layout] .clock-block {
  position: relative;
  left: auto; top: auto; right: auto; bottom: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: block;
  flex: 0 0 auto;
  text-align: center;
}
html.is-phone .dash-ui[data-layout] .hero-clock { font-size: clamp(2.2rem, min(15vw, 13vh), 4.4rem); line-height: 1; margin: 0; }
html.is-phone .dash-ui[data-layout] .analog-clock { width: min(30vw, 24vh, 9rem); height: min(30vw, 24vh, 9rem); margin: 0 auto; }
html.is-phone .radio-clock { margin: 0.1rem 0 0; font-size: 0.62rem; letter-spacing: 0.04em; }
html.is-phone .dash-hero { text-align: center; justify-self: center; margin: 0; }
html.is-phone .wx-strip { margin: 0.25rem auto 0; max-width: 100%; width: max-content !important; font-size: 0.74rem; }
html.is-phone .wx-strip.is-mars-strip { font-size: 0.6rem; --wx-strip-cols: 5; }
html.is-phone .wx-strip-city { display: none; }

/* ---- to-do / library: small round icon buttons that open as overlay sheets ---- */
html.is-phone .restore-tab {
  position: absolute;
  top: 0.1rem;
  transform: none;
  writing-mode: horizontal-tb;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  font-size: 0;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.is-phone .restore-tab[hidden] { display: none; }
html.is-phone .restore-tab::before { font-size: 1.15rem; line-height: 1; }
html.is-phone .restore-todo { left: 0.1rem; right: auto; }
html.is-phone .restore-todo::before { content: "\2611"; color: #8af0c4; }
html.is-phone .restore-lib { right: 0.1rem; left: auto; }
html.is-phone .restore-lib::before { content: "\266B"; color: #ff9fd0; }
html.is-phone .dash-mid, html.is-phone .dash-ui:not([data-layout="both"]) .dash-mid { display: block; position: static; padding: 0; overflow: visible; flex: 0 0 0; height: 0; }
html.is-phone .dash-col.is-min { display: none !important; }
html.is-phone .dash-col:not(.is-min) {
  position: fixed;
  inset: 0.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: hidden;
  padding: 0.6rem 0.7rem 0.7rem;
  background: rgba(7, 12, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
}
html.is-phone .dash-col:not(.is-min) .lib-list,
html.is-phone .dash-col:not(.is-min) .todo-list { flex: 1 1 auto; max-height: none; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
html.is-phone .col-head { flex: 0 0 auto; }
html.is-phone .col-h { font-size: 1rem; }
html.is-phone .col-note { font-size: 0.74rem; margin: 0.15rem 0 0.35rem; }
html.is-phone .min-btn { width: 2.6rem; height: 2.6rem; border-radius: 50%; }
html.is-phone .min-btn svg { display: none; }
html.is-phone .min-btn::after { content: "\2715"; font-size: 1.1rem; line-height: 1; }

/* ---- city cards: one compact horizontal scroller, tiny F/C beside it ---- */
html.is-phone .weather-band { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; flex: 0 0 auto; }
html.is-phone .wx-attrib { flex: 1 0 100%; order: 5; font-size: 0.5rem; margin: 0; opacity: 0.7; }
html.is-phone .weather-strip {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.12rem 1.4rem 0.15rem 0.05rem;
  gap: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
}
html.is-phone .weather-strip::-webkit-scrollbar { display: none; }
html.is-phone .weather-strip > * { flex: 0 0 auto; scroll-snap-align: start; font-size: 0.64rem; padding: 0.14rem 0.4rem; }
html.is-phone .extras { flex: 0 0 auto; }
html.is-phone .unit-btn { padding: 0.12rem 0.38rem; font-size: 0.62rem; min-width: 0; }

/* ---- one slim bottom bar: play, volume icon, title, tiny visualizer ---- */
html.is-phone .radio-status, html.is-phone .radio-now, html.is-phone .radio-next,
html.is-phone .radio-day, html.is-phone .radio-day-caption { display: none !important; }
html.is-phone .transport {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.1rem 0;
  flex: 0 0 auto;
  margin-top: auto;
}
html.is-phone .transport-actions { order: -1; flex: 0 0 auto; flex-wrap: nowrap; gap: 0.3rem; position: static; }
html.is-phone .transport-now { flex: 1 1 auto; min-width: 0; }
html.is-phone .transport-kicker { display: none; }
html.is-phone .transport-title { margin: 0; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-phone .transport .dash-btn { padding: 0.28rem 0.7rem; font-size: 0.74rem; white-space: nowrap; }
html.is-phone .vol-toggle { display: inline-flex; font-size: 1rem; }
html.is-phone .vol { display: none; }
html.is-phone .vol.is-open {
  display: flex;
  position: absolute;
  right: 0.45rem;
  bottom: 3rem;
  width: min(15rem, 72vw);
  padding: 0.5rem 0.75rem;
  background: rgba(8, 14, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  z-index: 30;
}
html.is-phone .vol.is-open input[type="range"] { flex: 1; width: auto; }
html.is-phone .eq { flex: 0 0 auto; width: 2.4rem; height: 16px; overflow: hidden; gap: 2px; justify-content: flex-end; }

/* ---- Labyrinth on a phone: the game gets the whole screen; the radio shrinks to a tiny top strip ---- */
html.is-phone[data-lab-chrome],
html.is-phone[data-lab-chrome] body { overflow: hidden; }
html.is-phone[data-lab-chrome] header,
html.is-phone[data-lab-chrome] footer,
html.is-phone[data-lab-chrome] .skip,
html.is-phone[data-lab-chrome] .dash-page-title,
html.is-phone[data-lab-chrome] .dash-lore { display: none !important; }
html.is-phone[data-lab-chrome] main,
html.is-phone[data-lab-chrome] .dash-stage { position: static; padding: 0; margin: 0; max-width: none; }
html.is-phone[data-lab-chrome] .dash-box {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@supports (height: 100dvh) { html.is-phone[data-lab-chrome] .dash-box { height: 100dvh; } }
html.is-phone[data-lab-chrome] .dash-ui {
  --ph-logo-h: 1.75rem;
  --ph-btn: 1.95rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  height: auto;
  padding: 0.3rem 0.4rem 0;
  padding-left: max(0.4rem, env(safe-area-inset-left));
  padding-right: max(0.4rem, env(safe-area-inset-right));
  padding-top: max(0.3rem, env(safe-area-inset-top));
  gap: 0.3rem;
}
html.is-phone[data-lab-chrome] .dash-top { flex: 1 1 0; min-width: 0; }
html.is-phone[data-lab-chrome] .dash-body { position: static; flex: 0 0 0; width: 0; height: 0; min-width: 0; overflow: visible; padding: 0; }
html.is-phone[data-lab-chrome] .dash-ui[data-layout] .clock-block {
  position: absolute !important;
  top: calc(max(0.3rem, env(safe-area-inset-top)) + 0.28rem) !important;
  left: calc(max(0.4rem, env(safe-area-inset-left)) + var(--ph-logo-h) * 1.83 + 0.5rem) !important;
  right: auto !important;
  transform: none !important;
  width: max-content !important;
  max-width: 24vw !important;
  text-align: left;
  z-index: 4;
}
html.is-phone[data-lab-chrome] .dash-ui[data-layout] .hero-clock { font-size: clamp(1.05rem, 5.2vw, 1.35rem) !important; line-height: 1 !important; text-align: left; }
html.is-phone[data-lab-chrome] .radio-clock { display: none; }
html.is-phone[data-lab-chrome] .dash-logo { height: var(--ph-logo-h); max-width: 30vw; }
html.is-phone[data-lab-chrome] .dash-top-right { gap: 0.25rem; }
html.is-phone[data-lab-chrome] .timer-chip-label { display: none; }
html.is-phone[data-lab-chrome] .dash-top-cluster .timer-chip { padding: 0.1rem 0.38rem; height: var(--ph-btn); }
html.is-phone[data-lab-chrome] .dash-top-cluster .timer-face { font-size: 0.85rem; }
html.is-phone[data-lab-chrome] #dash-fs { display: none; }
html.is-phone[data-lab-chrome] .lab-coin-box { align-self: center; padding: 0.1rem 0.4rem; height: var(--ph-btn); font-size: 0.78rem; gap: 0.25rem; border-radius: 9px; }
html.is-phone[data-lab-chrome] .lab-coin-mute { display: none; }
html.is-phone[data-lab-chrome] .lab-coin-count { font-size: 0.82rem; }
html.is-phone[data-lab-chrome] .weather-band,
html.is-phone[data-lab-chrome] .restore-tab,
html.is-phone[data-lab-chrome] .dash-mid,
html.is-phone[data-lab-chrome] .wx-strip,
html.is-phone[data-lab-chrome] .analog-clock,
html.is-phone[data-lab-chrome] .eq,
html.is-phone[data-lab-chrome] .transport-now { display: none !important; }
/* minimal play / volume control */
html.is-phone[data-lab-chrome] .transport { flex: 0 0 auto; display: flex; padding: 0; margin: 0; border: 0; background: none; align-items: center; }
html.is-phone[data-lab-chrome] .transport-actions { gap: 0.25rem; }
html.is-phone[data-lab-chrome] .transport .dash-btn {
  width: var(--ph-btn);
  height: var(--ph-btn);
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.is-phone[data-lab-chrome] .transport .dash-btn::after { font-size: 0.95rem; line-height: 1; }
html.is-phone[data-lab-chrome] #radio-play::after { content: "\25B6"; }
html.is-phone[data-lab-chrome] #radio-stop::after { content: "\25A0"; }
html.is-phone[data-lab-chrome] #radio-back-live::after { content: "\21A9"; }
html.is-phone[data-lab-chrome] .vol.is-open { top: calc(var(--ph-btn) + 0.9rem); bottom: auto; right: 0.4rem; }
html.is-phone[data-lab-chrome] .settings-tray,
html.is-phone[data-lab-chrome] .timer-tray { top: calc(var(--ph-btn) + 0.9rem); }

/* an open to-do / library sheet rides above the site header (which is sticky, z-index 10) */
html.is-phone.is-sheet-open .dash-box { z-index: 100; }
html.is-phone.is-sheet-open header { z-index: 1; }

/* landscape phone: the clock and the 5-day panel sit side by side so the stage is short enough and nothing covers the city cards */
html.is-phone-landscape .dash-ui[data-layout] .clock-block { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1.1rem; }
html.is-phone-landscape .dash-ui[data-layout] .clock-block .dash-hero { flex: 0 1 auto; min-width: 0; }
html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip { margin: 0; flex: 0 0 auto; }
/* in the Labyrinth the radio trays are fixed to the screen (the strip itself is only a few rem tall) */
html.is-phone[data-lab-chrome] .settings-tray,
html.is-phone[data-lab-chrome] .timer-tray {
  position: fixed;
  top: calc(max(0.3rem, env(safe-area-inset-top)) + var(--ph-btn) + 0.5rem);
  left: 0.4rem;
  right: 0.4rem;
  width: auto;
  max-height: calc(100vh - var(--ph-btn) - 1.6rem);
  overflow: auto;
  z-index: 40;
  pointer-events: auto;
}
@supports (height: 100dvh) {
  html.is-phone[data-lab-chrome] .settings-tray,
  html.is-phone[data-lab-chrome] .timer-tray { max-height: calc(100dvh - var(--ph-btn) - 1.6rem); }
}

/* the phone has its own compact layout, so the desktop-only Dock clock choice is not offered there */
html.is-phone .set-dock { display: none !important; }

/* the to-do sheet is as tall as its content (the library sheet is the full screen) */
html.is-phone #todo-col:not(.is-min) { bottom: auto; max-height: calc(100vh - 1rem); }
@supports (height: 100dvh) { html.is-phone #todo-col:not(.is-min) { max-height: calc(100dvh - 1rem); } }
html.is-phone #todo-col:not(.is-min) .todo-list { flex: 0 1 auto; min-height: 4.5rem; }

/* v12.18 (Dad t2262): enlarge and brighten the landscape-phone 5-day forecast so day
   names, icons and temperatures are readable on a sideways phone. Scoped only to
   html.is-phone-landscape, so portrait-phone and desktop stay as they were. The
   clock and the panel stay side by side, and the panel still cannot cover the city cards. */
html.is-phone-landscape .dash-ui[data-layout] .clock-block {
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
html.is-phone-landscape .dash-ui[data-layout] .clock-block .dash-hero {
  flex: 0 1 auto;
  min-width: 0;
}
html.is-phone-landscape .dash-ui[data-layout] .hero-clock {
  font-size: clamp(2rem, min(11vw, 14vh), 3.6rem);
}
html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip {
  margin: 0;
  flex: 0 0 auto;
  max-width: min(100%, 28rem);
  width: max-content !important;
  font-size: clamp(0.92rem, 2.8vh + 0.35vw, 1.22rem);
  padding: 0.55em 0.65em 0.6em;
  column-gap: 0.45em;
  background: rgba(4, 8, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  color: #f6f8ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip.is-mars-strip {
  font-size: clamp(0.8rem, 2.35vh + 0.25vw, 1.06rem);
  max-width: min(100%, 32rem);
}
html.is-phone-landscape .wx-strip-day svg {
  width: 2.05em;
  height: 2.05em;
}
html.is-phone-landscape .wx-strip-name {
  font-size: 0.98em;
  font-weight: 800;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}
html.is-phone-landscape .wx-strip-temps {
  font-size: 0.92em;
  color: #f6f8ff;
}
html.is-phone-landscape .wx-strip-temps .hi {
  color: #ffffff;
  font-weight: 800;
}
html.is-phone-landscape .wx-strip-temps .lo {
  color: #e8eefc;
}
html.is-phone-landscape .wx-strip-earth,
html.is-phone-landscape .wx-strip-note,
html.is-phone-landscape .wx-strip-city.is-mars {
  color: #e8eefc;
}

/* Short sideways phones (e.g. 844x390): the Mars 5-day panel is taller (Sol labels + earth dates + the NASA note).
   Keep it readable and high-contrast, but leave a clear gap above the city cards. */
html.is-phone-landscape .dash-ui[data-layout] .clock-block { margin-bottom: 0.3rem; }
@media (max-height: 430px) {
  html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip {
    font-size: clamp(0.82rem, 2.4vh, 0.98rem);
    padding: 0.38em 0.5em 0.4em;
    row-gap: 0.12em;
  }
  html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip.is-mars-strip {
    font-size: clamp(0.72rem, 2.05vh, 0.86rem);
    padding: 0.32em 0.42em 0.34em;
  }
  html.is-phone-landscape .wx-strip-day svg { width: 1.85em; height: 1.85em; }
  html.is-phone-landscape .wx-strip-earth { font-size: 0.54em; }
}

/* The base .wx-strip is a container query (container-type: inline-size). Inside a
   flex row with width:max-content that becomes a cyclic shrink and the official
   box collapses to ~30px while the days visually overflow. Turn the container
   off on landscape phones so overlap tests and the box match what you see. */
html.is-phone-landscape .dash-ui[data-layout] .clock-block .wx-strip {
  container-type: normal;
  width: max-content !important;
  min-width: min-content;
}

/* v12.25 (Dad t2321): the Open-Meteo credit is now a small line in the page footer, not under the city cards (the old .wx-attrib rules only
   applied inside the weather band). Kept small and quiet, still a real link: CC BY 4.0 needs the credit visible somewhere on the page. */
footer .wx-credit { margin: 0.4rem 0 0; font-size: 0.78rem; opacity: 0.75; grid-column: auto; letter-spacing: normal; }
footer .wx-credit a { color: inherit; text-underline-offset: 2px; }

/* ---- v12.26 (Dad t2325 "let's add more fonts for the timer"): more clock / MARU-TIMER faces ----
   WHY: Dad wants more choices. All eight are SIL OFL 1.1 and bundled in /fonts (licence files beside them), so nothing
   is fetched from another site, and a face is only downloaded once somebody picks it (font-display: swap).
   Wide faces get a zoom so "12:59" stays about as wide as the default face and never pushes the panels. */
@font-face { font-family: "Orbitron"; src: url("/fonts/orbitron-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("/fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("/fonts/share-tech-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Righteous"; src: url("/fonts/righteous-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bungee"; src: url("/fonts/bungee-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html {
  --cf-scifi: "Orbitron", "Bebas Kai", sans-serif;
  --cf-arcade: "Press Start 2P", ui-monospace, monospace;
  --cf-terminal: "VT323", ui-monospace, monospace;
  --cf-lcd: "Share Tech Mono", ui-monospace, monospace;
  --cf-bubbly: "Fredoka", "Nunito", sans-serif;
  --cf-retro: "Righteous", "Nunito", sans-serif;
  --cf-sign: "Bungee", Impact, sans-serif;
  --cf-tall: "Anton", Impact, sans-serif;
}
/* the settings buttons show their own face */
.set-opt[data-clock-font="scifi"] { font-family: var(--cf-scifi); font-weight: 700; font-size: 0.72rem; }
.set-opt[data-clock-font="arcade"] { font-family: var(--cf-arcade); font-size: 0.56rem; }
.set-opt[data-clock-font="terminal"] { font-family: var(--cf-terminal); font-size: 1rem; line-height: 1; }
.set-opt[data-clock-font="lcd"] { font-family: var(--cf-lcd); }
.set-opt[data-clock-font="bubbly"] { font-family: var(--cf-bubbly); font-weight: 600; }
.set-opt[data-clock-font="retro"] { font-family: var(--cf-retro); }
.set-opt[data-clock-font="sign"] { font-family: var(--cf-sign); font-size: 0.7rem; }
.set-opt[data-clock-font="tall"] { font-family: var(--cf-tall); letter-spacing: 0.03em; }
.set-opt[data-clock-font="poster"] { font-family: var(--display); letter-spacing: 0.05em; }
.set-opt[data-clock-font="technical"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.set-opt[data-clock-font="classic"] { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif; }
/* big digital clock */
html[data-clock-font="scifi"] .hero-clock { font-family: var(--cf-scifi); font-weight: 700; letter-spacing: 0; zoom: 0.78; }
html[data-clock-font="arcade"] .hero-clock { font-family: var(--cf-arcade); font-weight: 400; letter-spacing: -0.04em; zoom: 0.6; line-height: 1.05; }
html[data-clock-font="terminal"] .hero-clock { font-family: var(--cf-terminal); font-weight: 400; letter-spacing: 0; zoom: 1.12; }
html[data-clock-font="lcd"] .hero-clock { font-family: var(--cf-lcd); font-weight: 400; letter-spacing: -0.02em; }
html[data-clock-font="bubbly"] .hero-clock { font-family: var(--cf-bubbly); font-weight: 600; letter-spacing: -0.01em; }
html[data-clock-font="retro"] .hero-clock { font-family: var(--cf-retro); font-weight: 400; letter-spacing: 0; }
html[data-clock-font="sign"] .hero-clock { font-family: var(--cf-sign); font-weight: 400; letter-spacing: 0; zoom: 0.74; }
html[data-clock-font="tall"] .hero-clock { font-family: var(--cf-tall); font-weight: 400; letter-spacing: 0.02em; }
/* analog numerals */
html[data-clock-font="scifi"] .analog-num { font-family: var(--cf-scifi); font-weight: 700; font-size: 12px; }
html[data-clock-font="arcade"] .analog-num { font-family: var(--cf-arcade); font-weight: 400; font-size: 9px; }
html[data-clock-font="terminal"] .analog-num { font-family: var(--cf-terminal); font-weight: 400; font-size: 19px; }
html[data-clock-font="lcd"] .analog-num { font-family: var(--cf-lcd); font-weight: 400; }
html[data-clock-font="bubbly"] .analog-num { font-family: var(--cf-bubbly); font-weight: 600; }
html[data-clock-font="retro"] .analog-num { font-family: var(--cf-retro); font-weight: 400; }
html[data-clock-font="sign"] .analog-num { font-family: var(--cf-sign); font-weight: 400; font-size: 12px; }
html[data-clock-font="tall"] .analog-num { font-family: var(--cf-tall); font-weight: 400; }
/* MARU-TIMER face follows the same choice (the four older faces too) */
html[data-clock-font="poster"] .timer-face { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; }
html[data-clock-font="technical"] .timer-face { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 600; }
html[data-clock-font="classic"] .timer-face { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif; font-weight: 700; }
html[data-clock-font="scifi"] .timer-face { font-family: var(--cf-scifi); font-weight: 700; zoom: 0.8; }
html[data-clock-font="arcade"] .timer-face { font-family: var(--cf-arcade); font-weight: 400; zoom: 0.6; line-height: 1.4; }
html[data-clock-font="terminal"] .timer-face { font-family: var(--cf-terminal); font-weight: 400; zoom: 1.15; }
html[data-clock-font="lcd"] .timer-face { font-family: var(--cf-lcd); font-weight: 400; }
html[data-clock-font="bubbly"] .timer-face { font-family: var(--cf-bubbly); font-weight: 600; }
html[data-clock-font="retro"] .timer-face { font-family: var(--cf-retro); font-weight: 400; }
html[data-clock-font="sign"] .timer-face { font-family: var(--cf-sign); font-weight: 400; zoom: 0.78; }
html[data-clock-font="tall"] .timer-face { font-family: var(--cf-tall); font-weight: 400; letter-spacing: 0.02em; }

/* ---- v12.26 (Dad t2325 "can we have the beach scene like fade in and fade out - it like spikes on right now") ----
   The beach video layer fades as one piece (0.9s, a touch longer than the 0.8s plate crossfade), so it rises out of the
   still plate instead of popping on. The two clips inside still swap instantly at matched cuts (no fade during motion). */
.theme-beach-host { opacity: 0; transition: opacity 0.9s ease; }
.theme-beach-host.is-shown { opacity: 1; }

/* ---- v12.26 (Dad t2325 "can we make the lcoation cards at the bottom bigger to fit the full bottom up to the F/c switcher?") ----
   WHY: the city cards were small pills bunched on the left. On desktop they are now an even grid that fills the whole
   band up to the °F/°C switcher: 8 per row on a wide panel (two rows for the 15 cards), 5 per row (three rows) below a 1150px band so no name is cut,
   taller, with bigger type. Phones keep their sideways-scrolling row (their own rules below 800px / html.is-phone). */
@media (min-width: 801px) {
  html:not(.is-phone) .weather-band { container: wxband / inline-size; gap: 0.6rem; }
  html:not(.is-phone) .weather-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.32rem; width: 100%; }
  html:not(.is-phone) .wx-cell {
    min-width: 0; width: 100%; box-sizing: border-box; min-height: 2.65rem; padding: 0.3rem 0.45rem 0.32rem;
    font-size: clamp(0.68rem, 0.92vw, 0.84rem); gap: 0.08rem; border-radius: 12px;
  }
  html:not(.is-phone) .wx-cell .wx-top { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  html:not(.is-phone) .wx-cell svg { width: 16px; height: 16px; }
  html:not(.is-phone) .extras { align-self: center; }
  html:not(.is-phone) .unit-btn { min-height: 2rem; }
}
@container wxband (min-width: 1150px) {
  .weather-strip { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}

/* ---- v12.26 (Dad t2325 "let's move the music song to the right") ----
   WHY: the now-playing label ("GAME-MUSIC BREAK / RyuuMaru Arcade - Stage 1xx") moves from the bottom left to the bottom
   right, next to the visualizer bars. Listen live / Turn it off / volume stay in the middle where they were. */
@media (min-width: 801px) {
  html:not(.is-phone) .transport { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  html:not(.is-phone) .transport-actions { grid-column: 2; grid-row: 1; justify-content: center; }
  html:not(.is-phone) .transport-now { grid-column: 1; grid-row: 1; text-align: left; } /* v12.26 (Dad t2326 "move the music name to the left"): back to the left, play + volume stay centred, the bars stay right */
  html:not(.is-phone) .eq { grid-column: 4; grid-row: 1; min-width: 3.5rem; }
}
/* v12.26 (Dad t2326): with the song back on the left, the visualizer shares the right-hand 1fr column so Listen live + volume sit truly centred
   (a fourth auto column pushed them ~60px left of centre). */
@media (min-width: 801px) {
  html:not(.is-phone) .transport { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  html:not(.is-phone) .eq { grid-column: 3; justify-self: end; }
}
/* 900-1150px bands (1280x720 and similar): still two rows of 8 (three rows pushed into the clock's space), with a little
   tighter type and padding so every name and temperature still fits in full (the test checks nothing is cut). */
@container wxband (min-width: 900px) and (max-width: 1149.98px) {
  .weather-strip { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: 0.26rem !important; }
  .wx-cell { font-size: 0.64rem !important; padding: 0.26rem 0.16rem 0.28rem !important; }
  .wx-cell svg { width: 13px !important; height: 13px !important; }
  .wx-cell .wx-top { gap: 0.14rem !important; }
}

/* v12.26 (Dad t2325): while the clock glides to a new spot (FLIP in dashboard.js) its old CSS position transitions are
   paused, so the glide is the only motion. */
.clock-block.is-flipping { transition: none !important; }


/* ---- v12.26 (Dad t2326 "for the weather cards i was hoping for one row") ----
   WHY: t2325 made the city cards two rows of eight; Dad wanted ONE row, all the way from Aria to Mars, filling the bottom up to
   the F/C switch. So the strip is now one grid row (one column per card) and each card stacks as three short lines
   (icon + temperature / city / time) so every name still fits in full, with the type sized from the band's own width
   (a wider band = bigger type). Below a ~760px band (small windows) it falls back to two rows. Phones keep their own scroller. */
@media (min-width: 801px) {
  html:not(.is-phone) .weather-strip { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(0.14rem, 0.4cqw, 0.34rem) !important; }
  html:not(.is-phone) .wx-cell {
    font-size: clamp(0.5rem, 0.95cqw, 0.8rem) !important; min-height: 0; padding: 0.3rem 0.12rem 0.32rem !important; gap: 0.1em !important; border-radius: 10px;
    justify-content: center;
  }
  html:not(.is-phone) .wx-cell .wx-top { display: grid !important; grid-template-columns: auto auto; grid-template-areas: "ico temp" "name name"; justify-content: center; align-items: center; column-gap: 0.25em; row-gap: 0.08em; max-width: 100%; overflow: visible; }
  html:not(.is-phone) .wx-cell .wx-top > svg { grid-area: ico; width: 1.5em !important; height: 1.5em !important; }
  html:not(.is-phone) .wx-cell .wx-top > .temp { grid-area: temp; }
  html:not(.is-phone) .wx-cell .wx-top > .wx-name { grid-area: name; justify-self: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; font-weight: 600; }
  html:not(.is-phone) .wx-cell .wx-time { font-size: 0.92em; white-space: nowrap; }
}
@container wxband (max-width: 759.98px) {
  .weather-strip { grid-auto-flow: row !important; grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}

/* ---- v12.26 (Dad t2326 "have STLYRA understand when it's in full screen or not ... so it looks the same kinda form either"): the stage ----
   WHY: dashboard.js (applyStage) lays the UI out at the size the windowed box would be on this screen (--stage-w x --stage-h) and
   scales that whole picture to fill the fullscreen box (--stage). The old fullscreen-only size rules (bigger clock etc.) are switched
   off while staged (:not(.is-staged) above), because the scale does that job now and keeps the proportions identical. */
.dash-box.is-staged > .dash-ui {
  width: var(--stage-w); height: var(--stage-h); transform: scale(var(--stage)); transform-origin: 0 0;
  position: absolute; left: 0; top: 0; box-sizing: border-box;
}
