/* Blue Zone. Old radio, a glowing tube, a hopeful light. */

:root {
  color-scheme: dark;
  --bg: #060911;
  --panel: rgba(20, 28, 46, 0.52);
  --raise: rgba(255, 255, 255, 0.06);
  --sunk: rgba(255, 255, 255, 0.04);
  --line: rgba(170, 205, 255, 0.07);
  --line-2: rgba(170, 205, 255, 0.14);
  --ink: #EAF0F8;
  --ink-2: #A3AFC2;
  --ink-3: #66728A;

  --blue: #3B82FF;
  --blue-hi: #6EB0FF;
  --ice: #BFE3FF;
  --cyan: #6FDDF7;
  --cobalt: #2B4BFF;
  --indigo: #8C9BFF;

  --t1: var(--blue-hi); --t2: var(--cyan); --t3: var(--indigo); --t4: var(--blue); --t5: var(--ice);
  --bar-rgb: 6, 9, 17;
  --panel-solid: rgba(16, 22, 34, .94);
  --display: "Barlow Semi Condensed", "Arial Narrow", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --glow: 0 0 1px rgba(255, 255, 255, .7), 0 0 16px rgba(255, 255, 255, .3), 0 0 36px rgba(255, 255, 255, .1);
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --breath: 7s;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
/* Only up and down: nothing can push the page sideways, and sideways swipes don't move it. */
html, body { overflow-x: hidden; overflow-x: clip; overscroll-behavior: none; }
body { touch-action: pan-y pinch-zoom; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
::selection { background: rgba(59, 130, 255, .4); }

/* ------------------------------------------------------------ atmosphere */

/* Slow drifting light, like dawn through a window. */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.aura i:nth-child(1) {
  width: 120vmax; height: 90vmax; left: -10vmax; top: -50vmax;
  background: radial-gradient(closest-side, rgba(52, 104, 255, .30), transparent);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.aura i:nth-child(2) {
  width: 90vmax; height: 80vmax; right: -50vmax; top: 30vh;
  background: radial-gradient(closest-side, rgba(110, 176, 255, .12), transparent);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.aura i:nth-child(3) {
  width: 110vmax; height: 70vmax; left: -40vmax; bottom: -45vmax;
  background: radial-gradient(closest-side, rgba(90, 120, 255, .14), transparent);
  animation: drift-a 52s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-10vmax, -8vmax) scale(.94); } }

/* Film grain over everything. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0; /* part of the background; panels and cards carry their own grain */
  pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 30px)
    max(18px, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + 40px)
    max(18px, env(safe-area-inset-left));
}

/* ------------------------------------------------------------ the wave field */

.wavefield {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 130vh;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%);
}
.wavefield .ridge { stroke-linejoin: round; }
.wavefield .ridge.hot { filter: drop-shadow(0 0 6px rgba(110, 200, 255, .55)); }

/* Light washes over the field like a soft light leak. */
.aura { mix-blend-mode: screen; }

/* A fine halftone screen, like a print. */
.halftone {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(190, 220, 255, .16) .7px, transparent 1.3px);
  background-size: 4px 4px;
  -webkit-mask-image: radial-gradient(90% 60% at 50% 30%, #000 0%, transparent 85%);
  mask-image: radial-gradient(90% 60% at 50% 30%, #000 0%, transparent 85%);
  opacity: .55;
}

.hero {
  position: relative;
  min-height: calc(54vh - 50px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 4px 30px;
}
/* A soft dark ground under the mountains; the tagline sits on this horizon. */
.hero::before {
  content: "";
  position: absolute;
  left: -20px; right: -20px; bottom: -70px;
  height: 230px;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0) 0%, rgba(6, 9, 17, .84) 38%, rgba(6, 9, 17, .84) 62%, rgba(6, 9, 17, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
.topline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero .tagline {
  margin: 0;
  max-width: 24ch;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-shadow: 0 1px 12px rgba(5, 8, 15, .9);
}
.hero .tagline::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin-bottom: 12px;
  background: var(--blue-hi);
  box-shadow: 0 0 8px rgba(110, 176, 255, .8);
}

/* While a voice note plays, the waves swell (handled in shared.js) and the light lifts a little. */
body.on-air .aura { opacity: 1.25; }

.onair {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-hi);
  box-shadow: 0 0 10px 2px rgba(110, 176, 255, .7);
  animation: led var(--breath) ease-in-out infinite;
}
@keyframes led { 50% { opacity: .5; box-shadow: 0 0 4px 1px rgba(110, 176, 255, .4); } }

h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(54px, 16vw, 78px);
  line-height: .95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.tagline { margin: 0 auto; max-width: 28ch; color: var(--ink-2); font-size: 16px; }

/* The small wordmark. */
h1.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 255, 255, .28);
  color: var(--ink);
  text-wrap: nowrap;
}

/* The logo: fine contour rings, like a topographic map, around one glowing blue point. */
.logo-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo-mark .lm-rings { transform-box: view-box; transform-origin: 16px 16px; animation: lm-turn 90s linear infinite; }
.logo-mark .lm-halo { transform-box: view-box; transform-origin: 16px 16px; animation: lm-pulse 5s ease-in-out infinite; }
@keyframes lm-turn { to { transform: rotate(360deg); } }
@keyframes lm-pulse { 50% { transform: scale(1.35); opacity: .6; } }

/* ------------------------------------------------------------ panels */

.panel {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -34px rgba(0, 0, 0, .9);
  animation: rise .8s var(--ease) both;
}
.panel-title, .feed-title {
  margin: 0 2px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Frosted paper: a faint grain inside every panel and card. */
.panel::after, .item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  background-size: 160px 160px;
}
.note-text { margin: 0; white-space: pre-line; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.sig { margin: 14px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); }

/* ------------------------------------------------------------ composer */

.composer { animation-delay: .08s; }

.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}
.seg button {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  transition: color .3s;
}
.seg button svg { width: 17px; height: 17px; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button[aria-selected="true"] svg { color: var(--blue-hi); filter: drop-shadow(0 0 6px rgba(110, 176, 255, .7)); }
.seg-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 4px 14px -4px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease);
}
.seg[data-active="voice"] .seg-thumb { transform: translateX(100%); }
.seg[data-active="photo"] .seg-thumb { transform: translateX(200%); }

/* All three tabs share one space, so the card never changes size when switching. */
.panes { display: grid; }
.panes > .pane { grid-area: 1 / 1; }
.panes > .pane:not(.active) { visibility: hidden; pointer-events: none; }
.panes > .pane:not(.active) * { transition: none !important; animation: none !important; }
/* The old tab is gone at once; the new one fades in quickly, so they never overlap. */
.panes > .pane.active { animation: pane-in .22s var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(3px); } }
.pane { padding: 22px 0 0; }
#song-preview { min-height: 96px; }
#pane-voice { display: flex; flex-direction: column; justify-content: center; }
.fields { padding: 20px 0 0; display: grid; }

.label { display: block; margin: 0 4px 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.fields .label:not(:first-child) { margin-top: 18px; }
.optional { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

.input {
  display: block;
  width: 100%;
  font: 17px/1.35 var(--sans);
  color: var(--ink);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
  transition: border-color .25s, box-shadow .3s, background-color .25s;
}
.input::placeholder { color: var(--ink-3); }
.input:focus {
  border-color: rgba(110, 176, 255, .5);
  background: rgba(59, 130, 255, .06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 4px rgba(59, 130, 255, .12), 0 0 30px -8px rgba(59, 130, 255, .55);
}
textarea.input { resize: none; min-height: 80px; }

.link-field { position: relative; }
.link-field .input { padding-right: 90px; }
.field-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--raise);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset;
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: grid; place-items: center;
}
.field-btn.icon-only { width: 36px; padding: 0; background: transparent; box-shadow: none; color: var(--ink-3); }
.hint { margin: 9px 4px 0; font-size: 13.5px; color: var(--ink-3); }

/* song preview */
.preview {
  margin-top: 14px;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(59, 130, 255, .14), rgba(59, 130, 255, .03));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
  animation: rise .5s var(--ease) both;
}
.preview .art, .preview .art-ph { width: 62px; height: 62px; border-radius: 14px; flex: none; object-fit: cover; background: var(--sunk); }
.preview .meta { min-width: 0; flex: 1; }
.preview .t { font-weight: 600; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview .a { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .src { margin-top: 4px; display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--blue-hi); }
.preview .src svg { width: 14px; height: 14px; }
.preview.loading { background: var(--sunk); }
.preview.loading .art-ph, .preview.loading .bar { animation: shimmer 1.4s ease-in-out infinite; }
.preview.loading .bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); margin: 7px 0; }
.preview.error { display: block; background: var(--sunk); padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
@keyframes shimmer { 50% { opacity: .4; } }

/* recorder */
.recorder { text-align: center; }
.live-rec { display: flex; flex-direction: column; align-items: center; }
.wave { height: 54px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 3px; }
.wave i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--ink-3); opacity: .45; transition: height .09s linear; }
.recording .wave i { background: var(--ice); opacity: .9; box-shadow: 0 0 8px rgba(110, 176, 255, .7); }
.timer { margin: 8px 0 20px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timer .max { color: var(--ink-3); }
.rec-btn {
  position: relative;
  width: 92px; height: 92px; border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 50% 30%, #222B3D, #0E131D 75%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 30px -10px rgba(0, 0, 0, .9);
  display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.rec-btn:active { transform: scale(.95); }
.rec-core {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, #F2FAFF, #8EC5FF 28%, #3B82FF 62%, #2448D8);
  box-shadow: 0 0 28px rgba(59, 130, 255, .6);
  /* Only size and shape animate, so the dot hides at once with its tab. */
  transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease), background-color .45s var(--ease);
}
.rec-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(160, 205, 255, .6); opacity: 0; filter: blur(.5px); }
.recording .rec-core { width: 28px; height: 28px; border-radius: 9px; }
.recording .rec-ring { animation: ring 2.6s cubic-bezier(.2, .55, .3, 1) infinite; }
.recording .rec-ring.r2 { animation-delay: -1.3s; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.rec-hint { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.recorded { display: grid; gap: 12px; justify-items: center; }
.recorded > div { width: 100%; }
.recorded .voice { --tint: var(--blue-hi); padding: 12px; border-radius: 22px; background: rgba(59, 130, 255, .08); }

.text-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent;
  padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
}
.text-btn svg { width: 16px; height: 16px; }

/* photo */
.photo-pick { position: relative; display: block; border-radius: 24px; overflow: hidden; cursor: pointer; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 200px;
  padding: 24px;
  border-radius: 24px;
  border: 1.5px dashed rgba(160, 205, 255, .22);
  background: radial-gradient(70% 80% at 50% 0%, rgba(59, 130, 255, .12), transparent 70%), rgba(0, 0, 0, .15);
  text-align: center;
  pointer-events: none;
}
.photo-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(110, 176, 255, .3), rgba(59, 130, 255, .08));
  color: var(--ice);
  box-shadow: 0 0 30px -6px rgba(59, 130, 255, .6);
}
.photo-icon svg { width: 24px; height: 24px; }
.photo-title { font-weight: 600; font-size: 16px; }
.photo-sub { font-size: 14px; color: var(--ink-3); }
/* The photo frame fills the tab, so the picker and the chosen photo use the same space. */
#pane-photo { display: flex; flex-direction: column; }
.photo-frame { position: relative; flex: 1; display: flex; }
.photo-frame .photo-pick { flex: 1; display: flex; }
.photo-frame .photo-empty { flex: 1; }
#photo-preview { display: block; flex: 1; width: 100%; min-height: 200px; object-fit: cover; border-radius: 24px; animation: fade .5s var(--ease) both; }
#photo-again {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex;
  background: rgba(6, 9, 17, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

/* send */
.send {
  margin-top: 22px;
  height: 52px;
  border: 0; border-radius: 999px;
  background: radial-gradient(120% 140% at 50% 0%, #6FA8FF 0%, #3B7BFF 45%, #2B57E8 100%);
  color: #fff;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -2px 6px rgba(0, 0, 0, .2) inset, 0 16px 40px -14px rgba(59, 130, 255, .9);
  transition: transform .15s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.send svg { width: 18px; height: 18px; }
.send:not(:disabled):active { transform: scale(.985); }
.send:disabled { background: rgba(255, 255, 255, .05); color: var(--ink-3); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; cursor: default; }
.send.busy svg { animation: nudge .9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* thanks */
.thanks { text-align: center; padding: 24px 10px 6px; animation: rise .6s var(--ease) both; }
.badge {
  position: relative;
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(169, 214, 255, .45), rgba(59, 130, 255, .12) 70%);
  color: #fff;
  box-shadow: 0 0 50px -6px rgba(59, 130, 255, .8);
}
.badge svg { width: 30px; height: 30px; }
.badge-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(160, 205, 255, .55); filter: blur(.5px); animation: ring 3.4s cubic-bezier(.2, .55, .3, 1) infinite; }
.badge-ring.r2 { animation-delay: -1.7s; }
.thanks h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; color: #fff; text-shadow: var(--glow); }
.thanks p { margin: 0 auto 22px; color: var(--ink-2); max-width: 30ch; }
.ghost-btn { border: 0; background: var(--raise); box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset; padding: 14px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* ------------------------------------------------------------ feed */

.feed { margin-top: 40px; }
.feed-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-size: 23px; }
.feed-title span { font-family: var(--sans); font-size: 13.5px; letter-spacing: 0; color: var(--ink-3); }
.feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .045) inset;
}
.item.new { animation: rise .7s var(--ease) both; }

.song-row { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; }
.song-row .art { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; background: var(--sunk); display: block; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
.song-row .t { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-row .a { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.from { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.from .who { color: var(--ink-2); font-weight: 600; }

.words {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--tint) 11%, transparent);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.voice { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.play {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tint) 55%, #fff 10%), color-mix(in srgb, var(--tint) 25%, transparent));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 0 24px -6px var(--tint);
  transition: transform .15s var(--ease);
}
.play:active { transform: scale(.94); }
.play svg { width: 18px; height: 18px; }
.bars { height: 32px; display: flex; align-items: center; gap: 2px; }
.bars i { display: block; flex: 1; max-width: 3px; min-height: 3px; border-radius: 2px; background: rgba(170, 195, 230, .22); transition: background-color .15s, box-shadow .15s; }
.bars i.on { background: var(--ice); box-shadow: 0 0 6px var(--tint); }
.dur { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.voice-item .from { margin: 12px 4px 0; }

.photo-item { padding: 10px; }
.photo-item .shot { display: block; width: 100%; border: 0; padding: 0; background: var(--sunk); border-radius: 18px; overflow: hidden; }
.photo-item .shot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.photo-item .from { margin: 12px 6px 2px; }
.photo-item .words { margin: 10px 0 0; }

.empty { text-align: center; color: var(--ink-3); padding: 22px; font-size: 15px; }

/* ------------------------------------------------------------ overlays */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(24, 33, 52, .92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 20px 40px -14px rgba(0, 0, 0, .8);
  color: var(--ink);
  font-size: 15px; text-align: center;
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 20px);
  background: rgba(4, 6, 12, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fade .3s ease both;
}
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 18px; object-fit: contain; }
.lightbox p { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; text-align: center; max-width: 34ch; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

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

/* ------------------------------------------------------------ studio */

.bar { display: flex; align-items: center; justify-content: space-between; height: 44px; font-size: 14px; color: var(--ink-2); }
.bar a { color: inherit; text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; }
.mark-glyph { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 10px 2px rgba(110, 176, 255, .7); }
.purpose { margin: 0 0 10px; font-size: 14px; color: var(--ice); }
.studio .muted { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.share-url {
  font: 14px/1.45 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 13px 16px; border-radius: 16px;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
  color: var(--ice);
  overflow-wrap: anywhere; margin-bottom: 12px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--raise);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset;
  font-size: 15px; font-weight: 500;
}
.pill-btn.primary { background: radial-gradient(120% 140% at 50% 0%, #6FA8FF 0%, #3B7BFF 45%, #2B57E8 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 10px 26px -10px rgba(59, 130, 255, .8); }
.pill-btn:disabled { opacity: .4; }
.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status-line .dot.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.status-line .dot.warn { background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
.err { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 120, 100, .08); font-size: 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.toggle span { font-size: 15px; }
.toggle small { display: block; color: var(--ink-3); font-size: 13px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #E3ECF8; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.steps li { margin: 4px 0; }
.studio-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.studio-item .thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); display: grid; place-items: center; }
.studio-item .thumb svg { width: 22px; height: 22px; }
.studio-item .t { font-weight: 600; line-height: 1.3; }
.studio-item .a { font-size: 14px; color: var(--ink-2); }
.studio-item.hidden-item { opacity: .45; }
.studio-item .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.studio-item .actions .pill-btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.studio-item .words { font-size: 15px; margin-top: 10px; }
.studio-item .voice { margin-top: 12px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--ink-2); }
.chip.waiting { background: rgba(140, 155, 255, .14); color: var(--indigo); }
.chip.added { background: rgba(111, 221, 247, .12); color: var(--cyan); }
.chip.duplicate { background: rgba(110, 176, 255, .12); color: var(--blue-hi); }
.chip.failed { background: rgba(255, 140, 120, .12); color: #FF9C88; }
.key-form { display: grid; gap: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-tile {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 0; border-radius: 16px;
  padding: 8px 10px;
  display: flex; align-items: flex-end;
  font-size: 13px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  overflow: hidden;
}
.theme-tile[aria-checked="true"] { box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--blue-hi); }
.theme-dawn { background: radial-gradient(circle at 70% 44%, #FFB06E 0 8%, rgba(255, 150, 85, .35) 9%, transparent 24%), linear-gradient(180deg, #070D18, #1A2D4C 56%, #0C1828 57%, #03070E); }
.theme-dusk { background: radial-gradient(circle at 68% 48%, #FFC266 0 11%, rgba(255, 180, 100, .45) 12%, transparent 30%), linear-gradient(180deg, #251B4A, #7A3C72 32%, #F28B5B 56%, #5C3A70 57%, #150E2A); }
.theme-night { background: radial-gradient(circle at 70% 32%, transparent 0 6%, #BFDDFF 6.5% 8%, rgba(110, 165, 255, .3) 9%, transparent 20%), radial-gradient(1px 1px at 20% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 12%, #fff, transparent), radial-gradient(1px 1px at 85% 15%, #fff, transparent), linear-gradient(180deg, #02040A, #0F1E3C 56%, #091629 57%, #02050C); }
.theme-waves { background: radial-gradient(circle at 62% 38%, #DCE9FF 0 2.5%, rgba(91, 155, 255, .55) 3%, transparent 14%), repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, .28) 9px 10px), linear-gradient(180deg, #1A1D22, #0E1013); }
.station-form { display: grid; }
.station-form .label:not(:first-child) { margin-top: 14px; }
.station-form textarea.input { min-height: 140px; line-height: 1.5; }
.station-form .pill-btn { margin-top: 16px; justify-self: start; }

/* ------------------------------------------------------------ the pinned top bar */

/* The wordmark stays at the top; content scrolling underneath fades into a soft, blurred dark band. */
.topbar + .wrap { padding-top: 6px; }
.topbar .onair { font-size: 13px; }

/* ------------------------------------------------------------ the receiver */

.studio .wavefield { opacity: .5; }
.studio .halftone { opacity: .35; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 540px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
}
.topbar::before {
  content: "";
  /* Reaches well above the bar, so an overscroll bounce never shows the background behind it. */
  position: absolute; top: -200px; bottom: -30px; left: 50%; width: 100vw; margin-left: -50vw;
  background: linear-gradient(180deg, rgba(6, 9, 17, .92) 0%, rgba(6, 9, 17, .7) 55%, rgba(6, 9, 17, 0) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
  pointer-events: none;
  z-index: -1;
}
.gear {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent;
  color: var(--ink-2);
  display: grid; place-items: center;
  transition: color .2s, background-color .2s;
}
.gear:active { background: var(--raise); }
.gear svg { width: 19px; height: 19px; }
.gear.attention::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi);
}

.studio-wrap { padding-top: 8px; }
.studio-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.studio-feed .item { animation: rise .6s var(--ease) both; }
.studio-feed .song-row > div { padding-right: 30px; }
.studio-feed .hidden-item { opacity: .4; }

.more {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0;
  background: rgba(6, 9, 17, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  display: grid; place-items: center;
}
.more svg { width: 16px; height: 16px; }
.photo-item .more { top: 18px; right: 18px; }
.item-actions { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.item.open .item-actions { display: flex; animation: fade .3s var(--ease) both; }
.item-actions .pill-btn { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.sync-note { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }

/* Settings sheet, iOS style. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 42;
  background: rgba(2, 4, 8, .55);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 43;
  left: 50%; bottom: 0;
  width: min(100%, 540px);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 24px);
  border-radius: 28px 28px 0 0;
  background: rgba(16, 22, 36, .94);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 -20px 60px -20px rgba(0, 0, 0, .8);
  transform: translate(-50%, 100%);
  transition: transform .42s var(--ease);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; margin: 2px auto 10px; background: rgba(255, 255, 255, .18); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head .panel-title { margin: 0; }
.sheet-head .text-btn { color: var(--blue-hi); font-weight: 600; }
.sheet-sec { padding: 18px 0; border-top: 1px solid var(--line); }
.sheet-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sheet-foot { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); text-align: center; }
a.pill-btn { color: inherit; text-decoration: none; }
body.sheet-open { overflow: hidden; }
.studio-feed .voice-item > .voice { padding-right: 36px; }

/* ============================================================ Waves: monochrome, with blue as the only accent */
/* Charcoal and fine white linework; blue is kept for small live details only. */

:root[data-theme="waves"] {
  --bg: #111316;
  --panel: rgba(25, 28, 33, .74);
  --raise: rgba(255, 255, 255, .06);
  --sunk: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --ink: #ECEEF1;
  --ink-2: #9CA2AB;
  --ink-3: #626872;

  --blue: #4C8DFF;
  --blue-hi: #5B9BFF;
  --ice: #E9ECEF;
  --cyan: #5B9BFF;
  --cobalt: #3A72E0;
  --indigo: #9CA2AB;

  --t1: #D9DDE2; --t2: #A9AFB8; --t3: #7E858F; --t4: #5B9BFF; --t5: #C4C9D0;
  --bar-rgb: 17, 19, 22;
  --panel-solid: rgba(22, 25, 29, .94);
}
[data-theme="waves"] .aura i:nth-child(1) { background: radial-gradient(closest-side, rgba(255, 255, 255, .045), transparent); }
[data-theme="waves"] .aura i:nth-child(2) { background: radial-gradient(closest-side, rgba(91, 155, 255, .05), transparent); }
[data-theme="waves"] .aura i:nth-child(3) { background: radial-gradient(closest-side, rgba(255, 255, 255, .03), transparent); }
[data-theme="waves"] .halftone { background-image: radial-gradient(rgba(255, 255, 255, .1) .7px, transparent 1.3px); opacity: .45; }
[data-theme="waves"] .hero::before { background: radial-gradient(closest-side, rgba(17, 19, 22, .8), transparent); }


/* ============================================================ Type: glowing condensed caps, tiny mono details */

/* The headline: bold condensed caps with a soft white glow. */
.hero .tagline {
  max-width: 13ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 10.4vw, 52px);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: var(--glow);
}
.hero .tagline::before { display: none; }
.kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
.kicker-sep { color: var(--ink-3); }

/* Tiny mono details: the subtitle, counts and times. */
.topbar .onair, .feed-title span, .timer, .dur {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar .onair { font-size: 10.5px; }
.feed-title span { font-size: 10.5px; }
.timer { font-size: 13px; letter-spacing: .08em; }
.dur { font-size: 11.5px; letter-spacing: .06em; }
.feed-title { font-size: 22px; letter-spacing: .05em; }

/* Buttons and tabs in condensed caps. */
.send, .ghost-btn, .pill-btn, .field-btn, .text-btn, .seg button, .theme-tile {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.send { font-size: 16px; font-weight: 700; }
.seg button { font-size: 14px; }
.pill-btn, .ghost-btn, .text-btn { font-size: 14px; }
.field-btn { font-size: 13px; }
.theme-tile { font-size: 13px; letter-spacing: .06em; }

/* No dot next to the subtitle in the top bar. */
.topbar .led { display: none; }

/* ============================================================ Controls for every theme, after the reference */
/* Thin outlined rectangles with glowing caps, like boxed HUD labels; round controls as fine rings. */

.panel, .item {
  background: var(--panel-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 14px;
}
.input { border-radius: 6px; }
.preview, .words, .photo-empty,
#photo-preview, .photo-item .shot { border-radius: 8px; }

.send {
  height: 54px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  text-shadow: var(--glow);
  box-shadow: 0 0 24px -10px rgba(255, 255, 255, .35), inset 0 0 18px -12px rgba(255, 255, 255, .6);
}
.send:not(:disabled):active { background: #fff; color: #111316; text-shadow: none; }
.send:disabled { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--ink-3); text-shadow: none; box-shadow: none; }

.pill-btn, .ghost-btn, .field-btn {
  border-radius: 3px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
  color: var(--ink);
}
.pill-btn.primary { border-color: rgba(255, 255, 255, .6); color: #fff; text-shadow: var(--glow); }
.field-btn { height: 32px; }
.field-btn.icon-only { border: 0; }

.seg { border-radius: 4px; background: transparent; border: 1px solid var(--line-2); box-shadow: none; padding: 3px; }
.seg button { border-radius: 2px; }
.seg button[aria-selected="true"] { color: #fff; text-shadow: var(--glow); }
.seg button[aria-selected="true"] svg { filter: none; }
.seg-thumb { top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 2px; background: rgba(255, 255, 255, .07); box-shadow: none; }
.seg-thumb::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 1px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8);
}

.play { background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.play svg { width: 16px; height: 16px; }

.rec-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; }
.rec-btn::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.rec-core { width: 18px; height: 18px; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .7); }
.recording .rec-core { width: 16px; height: 16px; border-radius: 2px; background: var(--blue-hi); box-shadow: 0 0 16px var(--blue-hi); }

.photo-icon { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.badge { background: transparent; border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 0 30px -10px rgba(255, 255, 255, .4); }
.more { border-radius: 3px; background: rgba(17, 19, 22, .6); border: 1px solid rgba(255, 255, 255, .16); }
.chip { border-radius: 3px; }
.theme-tile { border-radius: 6px; }
.toast { border-radius: 6px; border: 1px solid var(--line-2); }

/* Icons stay white; the accent colour is kept for the live details only. */
.seg button[aria-selected="true"] svg { color: #fff; }
.preview .src { color: var(--ink-2); }

.input:focus {
  border-color: color-mix(in srgb, var(--blue-hi) 55%, transparent);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 4px color-mix(in srgb, var(--blue-hi) 12%, transparent);
}
.preview { background: rgba(255, 255, 255, .05); }
.preview.loading { background: var(--sunk); }
.words { background: rgba(255, 255, 255, .04); }
.photo-empty { background: rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .16); }
.photo-icon { color: #fff; box-shadow: none; }
.bars i { background: rgba(255, 255, 255, .16); }
.bars i.on { background: #fff; box-shadow: none; }
.recording .wave i { background: #fff; box-shadow: none; }
.rec-ring { border-color: color-mix(in srgb, var(--blue-hi) 60%, transparent); }
.badge { color: #fff; }
.badge-ring { border-color: color-mix(in srgb, var(--blue-hi) 55%, transparent); }
.topbar::before { background: linear-gradient(180deg, rgba(var(--bar-rgb), .96) 0%, rgba(var(--bar-rgb), .94) 70%, rgba(var(--bar-rgb), .7) 86%, rgba(var(--bar-rgb), 0) 100%); }
.toast { background: rgba(var(--bar-rgb), .95); }
.kicker-dot { background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }

/* ============================================================ Studio and settings, in the same HUD style */

.sheet {
  border-radius: 14px 14px 0 0;
  background: rgba(var(--bar-rgb), .98);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .8);
}
.sheet-grip { width: 32px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.sheet-head { padding: 4px 0 6px; }
.sheet-head .text-btn {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  padding: 8px 12px;
  color: #fff;
}
/* Section labels read like the small HUD captions in the reference. */
.sheet-title {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sheet-sec { padding: 20px 0; border-top: 1px solid var(--line); }
.sheet-foot { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.studio .muted { font-size: 14.5px; }
.share-url { border-radius: 6px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); box-shadow: none; color: #fff; }
.status-line { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.status-line .dot { border-radius: 1px; }
.status-line .dot.on, .status-line .dot.warn { background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); padding-top: 2px; }
.err { border-radius: 6px; border: 1px solid rgba(255, 140, 120, .3); }

/* A squared switch with a glowing knob when on. */
.switch { width: 46px; height: 26px; }
.switch i { border-radius: 3px; background: transparent; border: 1px solid rgba(255, 255, 255, .28); }
.switch i::after { top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, .5); box-shadow: none; }
.switch input:checked + i { background: transparent; border-color: color-mix(in srgb, var(--blue-hi) 70%, transparent); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--blue-hi); box-shadow: 0 0 10px var(--blue-hi); }

.station-form textarea.input, .station-form .input { border-radius: 6px; }
.sync-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.studio-item .thumb, .chip { border-radius: 3px; color: var(--ink-2); }
.gear { border-radius: 3px; border: 1px solid transparent; color: #fff; }
.gear:active { border-color: rgba(255, 255, 255, .22); background: transparent; }
.gear.attention::after { border-radius: 1px; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue-hi); }
.studio .empty { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
