/* ── Tolkun "Stream side" design system ───────────────────────────────────
   Named for the river bank: silt grey-green ground, deep-water ink and the
   logo's cobalt as the one action color. Red only ever means "recording",
   green only ever means "signal". One typeface, Archivo, whose width axis
   does the expressive work: headlines and numbers are set expanded (125%),
   everything else at normal width. Fonts are self-hosted (OFL). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo/latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo/latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Kept for the page stylesheets that still name these roles. */
  --font-display: var(--font);
  --font-ui: var(--font);
  --font-label: var(--font);
  --wide: 125%;

  --bg: #e5e9e3;          /* silt */
  --surface: #f7f8f5;     /* reed paper */
  --surface-2: #eef1ec;
  --text: #0e2730;        /* deep water */
  --muted: #536769;
  --border: #cbd3ce;
  --line-strong: #98a6a2;
  --accent: #2c45d8;      /* cobalt, from the logo */
  --accent-text: #ffffff;
  --rec: #dc3328;
  --danger: #be2e26;
  --ok: #1d8752;
  --warn: #9c6408;

  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --chip-bg: color-mix(in srgb, var(--text) 7%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  --shadow: 0 18px 48px -24px rgb(8 30 38 / 0.45);
  --amber: var(--warn);

  --r-control: 6px;
  --r-box: 10px;
  --radius: var(--r-box);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1a1f;
    --surface: #10242a;
    --surface-2: #153038;
    --text: #e2ece8;
    --muted: #8ea6a5;
    --border: #1f3b43;
    --line-strong: #3b5c64;
    --accent: #8398ff;
    --accent-text: #08122e;
    --rec: #ff5345;
    --danger: #ff6b5e;
    --ok: #4ccb8a;
    --warn: #e9ae45;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
/* `hidden` must win over display rules like .row { display: flex }. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

h1, h2, h3 {
  font-family: var(--font);
  font-stretch: var(--wide);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}
h1 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; font-weight: 750; }
p { max-width: 68ch; }

a { color: var(--accent); text-underline-offset: 0.18em; }
summary { cursor: pointer; }
details[open] summary { margin-bottom: 12px; }
h2.inline { display: inline; margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.error { color: var(--danger); font-weight: 600; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }
.danger-text { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A quiet sentence-case line above a heading (the date on home, for example). */
.eyebrow, .section-name, .tool-label { margin: 0 0 6px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 64px; }
.narrow { max-width: 460px; }

/* ── Front page (signed out) ─────────────────────────────────────────────── */
.welcome { max-width: 1040px; margin: 0 auto; padding: 40px 0 24px; }
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; min-height: 52vh; }
.welcome h1 { font-family: var(--font-display); font-stretch: var(--wide); font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
.welcome-lede { font-size: 1.15rem; line-height: 1.55; max-width: 34em; margin: 0 0 28px; color: var(--muted); }
.welcome-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.welcome-cta .button { padding: 12px 22px; font-size: 1rem; }

.cassette { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.cassette .c-body { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.cassette .c-label { fill: var(--accent); }
.cassette .c-text { fill: var(--accent-text); font: 700 20px var(--font); font-stretch: var(--wide); }
.cassette .c-small { fill: var(--accent-text); font: 500 11px var(--font); opacity: 0.85; }
.cassette .c-window { fill: var(--bg); stroke: color-mix(in srgb, var(--accent-text) 50%, transparent); stroke-width: 1.5; }
.cassette .reel circle { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.cassette .reel path { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.cassette .reel { transform-box: fill-box; transform-origin: center; animation: reel-spin 6s linear infinite; }
.cassette .reel-b { animation-duration: 7.5s; }
.cassette .c-track { fill: var(--muted); font: 600 13px var(--font); }
.cassette .c-base { fill: none; stroke: var(--line-strong); stroke-width: 2; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cassette .reel { animation: none; } }

.welcome-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.welcome-points h2 { font-size: 1.05rem; margin: 0 0 6px; }
.welcome-points p { margin: 0; color: var(--muted); line-height: 1.55; }

.welcome-steps { padding: 40px 0 8px; }
.welcome-steps h2 { font-family: var(--font-display); font-stretch: var(--wide); font-size: 1.6rem; margin: 0 0 18px; }
.welcome-steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.welcome-steps li { counter-increment: step; color: var(--muted); line-height: 1.5; }
.welcome-steps li::before { content: counter(step); display: block; font: 700 2.4rem/1 var(--font-display); font-stretch: var(--wide); color: var(--accent); margin-bottom: 10px; }
.welcome-steps li strong { color: var(--text); }
.welcome-foot { margin: 36px 0 0; text-align: center; }

@media (max-width: 820px) {
  .welcome { padding-top: 16px; }
  .welcome-hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .cassette { max-width: 300px; order: -1; }
  .welcome-points { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .welcome-steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .welcome-steps ol { grid-template-columns: 1fr; } }
/* Privacy and terms links on the app's own pages. */
.legal-links { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 20px 0 4px; }
.legal-links a { color: inherit; }
.turnstile { min-height: 65px; }
.consent { font-size: 0.85rem; color: var(--muted); margin: 0; }
.consent a { color: inherit; }
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 16px; border-left: 4px solid var(--warn); margin-bottom: 12px; }
.nudge strong { font-size: 0.92rem; }
.nudge p { margin: 4px 0 0; }
.nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.email-ok { color: var(--ok); }
.email-todo { color: var(--warn); }
.email-form { display: flex; gap: 8px; flex-wrap: wrap; }
.email-form input { flex: 1 1 220px; min-width: 0; }
.studio-head > div:has(> .rename-input) { flex: 1; min-width: 0; }
.studio-head .rename-input { width: 100%; font-size: 1.1rem; font-weight: 700; padding: 4px 8px; }
.narrow-page { max-width: 640px; margin: 0 auto; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
button, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 650 0.9rem/1.3 var(--font);
  font-stretch: 108%;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
}
button:hover:not(:disabled), a.button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
a.button svg, button svg { width: 18px; height: 18px; flex: none; }

button.secondary, a.button.secondary, button.ghost, a.button.ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
button.secondary:hover:not(:disabled), a.button.secondary:hover,
button.ghost:hover:not(:disabled), a.button.ghost:hover { filter: none; background: var(--chip-bg); }
button[aria-pressed="true"].secondary { background: var(--text); color: var(--bg); border-color: var(--text); }
button.danger { background: var(--danger); color: #fff; }
button.link {
  background: none; border: 0; padding: 0; border-radius: 0;
  color: var(--muted); font-weight: 600; font-stretch: 100%;
}
button.link:hover { color: var(--text); filter: none; }
.small-btn { padding: 6px 12px !important; font-size: 0.84rem; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring);
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--r-control); border: 1px solid var(--border);
  background: transparent; color: var(--muted); text-decoration: none;
}
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); filter: none; }
.icon-btn.danger-text { color: var(--muted); }
.icon-btn.danger-text:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Fields ───────────────────────────────────────────────────────────── */
label { display: grid; gap: 5px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  font: 400 0.94rem/1.4 var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 9px 11px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { max-width: 100%; min-width: 0; flex: 1 1 200px; }
input[type="range"] { accent-color: var(--accent); padding: 0; border: 0; background: none; }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--accent); }
input[type="file"] { padding: 8px; width: 100%; }
input[type="file"]::file-selector-button {
  font: 650 0.84rem var(--font);
  margin-right: 12px; padding: 7px 12px; border-radius: var(--r-control); cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
}
input[type="file"]::file-selector-button:hover { background: var(--chip-bg); }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-box);
  padding: 22px;
  margin-bottom: 14px;
}
.card h1, .card h2 { margin-top: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 14px; }
.grid > .card { margin-bottom: 0; }
.stack { display: grid; gap: 12px; max-width: 420px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row.tight { gap: 6px; margin: 0; }
.spread { justify-content: space-between; }
.invite input { flex: 1 1 220px; min-width: 0; }
.field-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-row label { color: var(--text); font-weight: 600; }
.field-row select { flex: 0 1 220px; }

.block { margin-top: 40px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head h2 { margin: 0; font-size: 1.4rem; }
.block-head .row { flex-wrap: nowrap; margin: 0; }
.compact-select { flex: 0 1 220px !important; padding: 7px 10px; font-size: 0.9rem; }
#records-filter, #records-filter.compact-select { flex: 0 1 220px; width: auto; }

/* ── Small labels ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 650;
  padding: 3px 9px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--muted);
}
.badge.warn { color: var(--warn); border-color: var(--warn); }
.badge.call-on { color: var(--ok); border-color: var(--ok); }
/* Recording: the only thing on the page that moves on its own. */
.badge.live { color: #fff; background: var(--rec); border-color: var(--rec); }
.badge.live::before, .chip.rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: rec-blink 1.4s steps(1, end) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }

.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; font-weight: 650; background: var(--chip-bg); color: var(--muted); }
.pill.owner { background: var(--accent-soft); color: var(--accent); }
.count {
  font-size: 0.95rem; font-weight: 500; font-stretch: 100%; color: var(--muted);
  margin-left: 4px; font-variant-numeric: tabular-nums;
}
.count:empty { display: none; }
.role { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 650;
  padding: 2px 8px; border-radius: 4px;
  background: var(--chip-bg); color: var(--muted); white-space: nowrap;
}
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.danger { color: var(--danger); }
.chip.rec { color: #fff; background: var(--rec); }

.av {
  --h: 210;
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 0.85rem; font-weight: 800; color: hsl(var(--h) 55% 22%);
  background: hsl(var(--h) 55% 82%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .av { color: hsl(var(--h) 70% 88%); background: hsl(var(--h) 35% 28%); }
}
.av.xs { width: 20px; height: 20px; font-size: 0.65rem; }

/* ── Lists ────────────────────────────────────────────────────────────── */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list a.title { color: var(--text); font-weight: 600; text-decoration: none; }
.list a.title:hover { color: var(--accent); }
.list li .actions .danger-text { padding: 4px 10px; font-size: 0.8rem; }
.studio-link { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ── Meters ───────────────────────────────────────────────────────────── */
.meter { height: 6px; border-radius: 2px; background: var(--chip-bg); overflow: hidden; margin: 8px 0; }
.meter.big { height: 10px; }
.meter > span {
  display: block; height: 100%;
  width: calc(var(--level, 0) * 100%);
  background: var(--ok); border-radius: inherit;
  transition: width 60ms linear;
}
.meter.muted > span { background: var(--muted); }
.mic-check { display: grid; gap: 4px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-stretch: var(--wide); min-width: 3.5em; text-align: right; }

/* ── Toasts and dialogs ───────────────────────────────────────────────── */
.toasts {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: grid; gap: 8px; width: min(420px, calc(100vw - 32px));
  z-index: 30; pointer-events: none;
}
.toast {
  background: var(--text); color: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-control);
  padding: 10px 14px; font-weight: 500;
  box-shadow: var(--shadow);
}
.toast.warn { border-left-color: var(--warn); }
.toast.danger { border-left-color: var(--rec); }
.toast.ok { border-left-color: var(--ok); }

dialog {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
  padding: 22px; width: min(440px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(6 20 26 / 0.55); }
dialog.sheet { padding: 0 0 18px; width: min(520px, calc(100vw - 32px)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.sheet-head h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.sheet > p, .sheet > form, .sheet > ul { margin-inline: 18px; }

/* ── Sign in, sign up, join ───────────────────────────────────────────── */
#view-auth.card, #view-invite.card, #view-forgot.card, #view-verify.card {
  margin: 9vh auto 0; max-width: 430px;
  padding: 34px 30px 26px;
  border-top: 4px solid var(--accent);
}
#auth-title, #join-title { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 8px; }
#auth-form, #view-join .stack { max-width: none; margin-top: 22px; }
#auth-form input { width: 100%; }
#auth-form button, #view-join button[type="submit"] { width: 100%; padding: 12px; font-size: 0.98rem; }

/* ── Home ─────────────────────────────────────────────────────────────── */
.home-hero { padding: 32px 0 28px; }
.home-hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.6rem);
  font-weight: 850; letter-spacing: -0.025em; line-height: 1.02;
  max-width: 18ch; overflow-wrap: anywhere; margin: 0 0 12px;
}
.home-hero h1 + p { margin: 0; font-size: 1.05rem; max-width: 48ch; color: var(--muted); }

.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
@media (max-width: 760px) { .home-top { grid-template-columns: 1fr; } }
.studios-panel { display: grid; gap: 14px; }

.create-card { margin: 0; padding: 26px; border-top: 4px solid var(--accent); }
.create-card h2 { font-size: 1.5rem; margin: 14px 0 6px; }
.create-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent); }
.create-icon svg { width: 24px; height: 24px; }
.create-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.create-row input { flex: 1 1 220px; min-width: 0; }

.studio-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.studio-cards:empty { display: none; }
.studio-card.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.home-studio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.home-studio-actions .button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 22px;
}
.studio-head { display: flex; align-items: center; gap: 14px; }
.studio-head h2 { margin: 0; font-size: 1.45rem; overflow-wrap: anywhere; }
.studio-head p { margin: 3px 0 0; }
.studio-mark {
  --h: 210;
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: var(--r-control);
  font-size: 1.5rem; font-weight: 850; font-stretch: var(--wide); color: #fff;
  background: hsl(var(--h) 52% 40%);
}
/* Numbers read like a console's readout: wide, tabular, no boxes around them. */
.studio-stats { display: flex; gap: 0; margin: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.studio-stats div { flex: 1; padding: 12px 0; }
.studio-stats div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.studio-stats dt { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.studio-stats dd { margin: 2px 0 0; font-size: 2rem; line-height: 1.1; font-weight: 800; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.studio-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.studio-actions .icon-btn { margin-left: auto; }

/* Tools: one panel with ruled rows, not a pile of cards. */
.tools { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box); overflow: hidden; }
.tool {
  display: flex; gap: 12px; align-items: center;
  padding: 16px; text-decoration: none; color: var(--text);
  transition: background .15s;
}
.tool + .tool { border-top: 1px solid var(--border); }
.tool:hover { background: var(--surface-2); }
.tool strong { display: block; font-stretch: var(--wide); font-weight: 750; font-size: 0.98rem; }
.tool .small { display: block; line-height: 1.4; margin-top: 2px; }
.tool-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-control); }
.tool-icon svg { width: 22px; height: 22px; }
.tool-icon.shorts { background: var(--accent-soft); color: var(--accent); }
.tool-icon.audio { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tool-icon.import { background: var(--chip-bg); color: var(--text); }

/* Storage (free plan quota) */
.storage { margin: 14px 0 6px; display: grid; gap: 6px; }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.storage-head strong { font-weight: 650; }
.storage p { margin: 0; }
.storage-bar { display: block; height: 6px; border-radius: 2px; background: var(--chip-bg); overflow: hidden; }
.storage-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); transition: width 0.4s; }
.storage-bar > span.high { background: var(--warn); }
.storage-bar > span.full { background: var(--danger); }
.storage-mini { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); text-decoration: none; }
.storage-mini .storage-bar { width: 120px; }
.storage-mini:hover { color: var(--text); }
.storage-mini.full { color: var(--danger); font-weight: 600; }
.plan-usage { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; }
.plan-card h3 { display: inline; margin: 0 .5rem .5rem 0; }
.plan-card p { margin: 0; font-size: .9rem; }
.plan-card button { margin-top: auto; }
.plan-actions { align-items: center; min-height: 2.5rem; }
@media (max-width: 720px) { .plan-cards { grid-template-columns: 1fr; } }

/* ── Recordings: a ruled log, one row per take ────────────────────────── */
.takes {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
}
.takes:empty { display: none; }
.take { padding: 14px 16px; border-top: 1px solid var(--border); }
.take:first-child { border-top: 0; }
.take.open { background: var(--surface-2); }
.take-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.take-head h3 { margin: 0; font-size: 1.05rem; }
.take-play {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--accent); border: 1.5px solid currentColor;
}
.take-play:hover:not(:disabled), .take.open .take-play { background: var(--accent); color: var(--accent-text); border-color: var(--accent); filter: none; }
.take-play svg { width: 18px; height: 18px; }
.take-main { min-width: 0; display: grid; gap: 3px; }
.take-title { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.take-title h3 { margin: 0; font-size: 1.02rem; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.take-title .studio-link { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.take-title .studio-link:hover { color: var(--accent); }
.take-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.take-len { color: var(--text); font-weight: 650; }
.voices { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.voices li.voice {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px 2px 3px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600;
}
.voice.warn { color: var(--warn); }
.voice-warn, .voice-note { font-weight: 500; font-size: 0.72rem; }
.voice-note { color: var(--muted); }
.take-actions { display: flex; align-items: center; gap: 8px; }
.takes .empty { padding: 32px 16px; text-align: center; }
@media (max-width: 640px) {
  .take-head { grid-template-columns: auto minmax(0, 1fr); }
  .take-actions { grid-column: 1 / -1; }
  .take-actions .button { flex: 1; }
}
.signup-plans { border:1px solid var(--border); border-radius:var(--radius); padding:14px; margin:4px 0 10px; background:var(--surface); }
.signup-plans>div:first-child { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; }
.signup-plans>p { margin:8px 0 0; }
.signup-plan-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:12px; }
.signup-plan-options button { padding:10px 8px; display:grid; gap:4px; text-align:left; background:var(--bg); }
.signup-plan-options button[aria-pressed="true"] { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.signup-plan-options button strong { font-size:13px; }
.signup-plan-options button span { color:var(--muted); font-size:11px; }
.invite-plan-box { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.invite-plan-box h2 { font-size:1.1rem; margin:0 0 6px; }
.invite-plan-box>p { margin:0 0 12px; }
.invite-plan-actions { display:flex; gap:8px; flex-wrap:wrap; }
.invite-plan-actions button { flex:1 1 130px; }
@media(max-width:520px){.signup-plan-options{grid-template-columns:1fr}.signup-plan-options button{grid-template-columns:70px 1fr;align-items:center}}

/* Multitrack player under an open take */
.player { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.transport { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.transport button { min-width: 104px; }
.transport input[type="range"] { flex: 1 1 160px; min-width: 0; }
.transport .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; }
.lanes { position: relative; display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 10px; align-items: center; }
.lane-info { display: grid; gap: 4px; min-width: 0; }
.lane-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-info input[type="range"] { width: 100%; }
.lane-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.lane-buttons button { padding: 2px 8px; font-size: 0.75rem; }
.lane-buttons button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.wave { position: relative; height: 56px; border-radius: var(--r-control); background: var(--chip-bg); overflow: hidden; cursor: pointer; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave .playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); left: calc(var(--at, 0) * 100%); pointer-events: none; }
.lane.silent .wave canvas { opacity: 0.35; }
.lane-actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.lane-actions .button, .lane-actions button { padding: 4px 10px; font-size: 0.8rem; }
@media (max-width: 560px) {
  .lane { grid-template-columns: 1fr; }
  .lane-actions { grid-column: 1; }
}

/* Device backup and recovery */
.recovery { border-color: var(--warn); border-left-width: 4px; }
.recovery .list li { align-items: center; }
.recovery .state { font-size: 0.85rem; }

/* ── Account ──────────────────────────────────────────────────────────── */
#view-account h2 { font-size: 1.3rem; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-head h2 { margin: 0; }
#view-account > p:first-child a { color: var(--muted); font-weight: 600; text-decoration: none; }
#view-account > p:first-child a:hover { color: var(--text); }

/* ── Studio room: full screen, focused on the people ──────────────────── */
body.in-room .top { display: none; }
body.in-room main { max-width: none; padding: 0; }
body.in-room #error { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--surface); padding: 8px 14px; border-radius: var(--r-control); border: 1px solid var(--border); }
body.in-room .toasts { bottom: 104px; }

.room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.room-bar {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.room-bar .brand { font-size: 1.05rem; }
.room-bar .brand img { width: 24px; height: 24px; }
.room-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 200px; }
.room-title > span { white-space: nowrap; }
.room-title h1 { font-size: 1.15rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-status { display: flex; align-items: center; gap: 8px; }
.room-status .timer { font-size: 1.4rem; }
.badge.live + .timer { color: var(--rec); }
.room-actions { display: flex; gap: 8px; }

.room-body { flex: 1; display: flex; min-height: 0; }
.stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 14px; display: grid; gap: 8px; justify-items: center; text-align: center;
  transition: border-color 150ms, box-shadow 150ms, opacity 150ms;
}
.tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.tile.offline { opacity: 0.5; }
.tile.is-muted { border-color: var(--warn); }
.tile .meter { width: 100%; margin: 0; }
.stage-tiles { width: 100%; max-width: 1200px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; justify-content: center; }
.stage-tiles .tile { padding: 24px 16px 18px; gap: 10px; background: var(--surface); max-width: 420px; width: 100%; justify-self: center; }
.stage-tiles .avatar { width: 112px; height: 112px; font-size: 2.2rem; }
.stage-tiles .who { font-size: 1.15rem; }

.avatar {
  --level: 0;
  position: relative;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 850; font-stretch: var(--wide); font-size: 1.3rem;
  color: var(--accent-text); background: var(--accent);
  /* The ring grows with the talk level. */
  box-shadow: 0 0 0 calc(2px + var(--level) * 10px) color-mix(in srgb, var(--ok) calc(25% + var(--level) * 55%), transparent);
  transition: box-shadow 60ms linear;
}
.tile.speaking .avatar { outline: 2px solid var(--ok); outline-offset: 2px; }
.tile.offline .avatar { background: var(--muted); box-shadow: none; }
.tile.is-muted .avatar::after {
  content: "🔇";
  position: absolute; right: -6px; bottom: -6px;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 0.9rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
}
.who { font-weight: 700; font-stretch: var(--wide); overflow-wrap: anywhere; }
.who .role { margin-left: 6px; font-stretch: 100%; }
.tile.hearing .who::after { content: " 🔊"; font-size: 0.9em; }

/* Upload progress under each person while recording */
.upload { width: 100%; display: grid; gap: 4px; }
.upload .bar { height: 6px; border-radius: 2px; background: var(--chip-bg); overflow: hidden; }
.upload .bar > span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: inherit; transition: width 300ms; }
.upload.behind .bar > span { background: var(--warn); }
.upload.done .bar > span { background: var(--ok); }
.upload .upload-text { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Side panel: activity and quieter details */
.room-side {
  width: 320px; flex: none; border-left: 1px solid var(--border); background: var(--surface);
  overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px;
}
.side-head { display: flex; justify-content: space-between; align-items: center; }
.side-head h2 { margin: 0; }
.side-section { border-top: 1px solid var(--border); padding-top: 12px; }
.side-section h3 { margin: 0 0 6px; font-size: 0.9rem; }
.side-section input { width: 100%; }
.side-section p { margin: 6px 0 0; }

.activity { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; font-size: 0.9rem; }
.room-side .activity { max-height: none; flex: 1 1 auto; min-height: 120px; }
.activity li { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.activity li:first-child { border-top: 0; }
.activity time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.activity .warn { color: var(--warn); }
.activity .danger { color: var(--danger); }
.activity .ok { color: var(--ok); }

/* Bottom controls */
.control-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 16px;
  padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface);
}
.cb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cb-left .meter.self { flex: 0 1 160px; margin: 0; }
.cb-left select { flex: 0 1 240px; }
.cb-center { display: flex; gap: 10px; justify-content: center; }
.cb-right { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-align: right; }
.cb-right p { margin: 0; }
/* Leave: the call's hang-up, outlined so it never reads as the record button. */
.leave-btn { flex: none; background: transparent; color: var(--danger); border-color: var(--danger); }
.leave-btn:hover:not(:disabled) { background: var(--danger); color: #fff; filter: none; }
/* Transport buttons: the record button is the one round, red control. */
.big-btn { padding: 12px 22px; font-size: 1rem; }
.rec-btn { background: var(--rec) !important; color: #fff !important; border-radius: 999px; padding-inline: 26px; }
#stop-btn { border-radius: 999px; padding-inline: 26px; background: var(--text); color: var(--bg); }
#mute-btn[aria-pressed="true"] { background: var(--warn); color: #1a1204; border-color: var(--warn); }

@media (max-width: 900px) {
  .room-side {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 15;
    box-shadow: var(--shadow);
  }
  .control-bar { grid-template-columns: 1fr; text-align: center; }
  .cb-left { justify-content: center; }
  .cb-right { justify-content: center; flex-wrap: wrap; text-align: center; }
  .stage { align-items: flex-start; }
  .stage-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .stage-tiles .tile { padding: 14px 10px; }
  .stage-tiles .avatar { width: 76px; height: 76px; font-size: 1.5rem; }
  .room-actions { width: 100%; }
  .room-actions button { flex: 1; }
}

/* ── Phone ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .home-hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.3rem); font-stretch: 112%; }
  .card { padding: 18px; }
  .home-hero { padding: 20px 0 22px; }
  .studio-stats dd { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .badge.live::before, .chip.rec::before { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ── Dashboard: the studio chosen in the top bar ─────────────────────────
   Its name is the one big thing on the page; everything else stays quiet. */
.studio-home { padding: 22px 0 14px; }
.studio-home #home-greeting { margin: 0 0 4px; }
.studio-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.studio-home .studio-home-title { min-width: 0; }
.home-hero.studio-home h1 { margin: 0; max-width: 22ch; font-size: clamp(1.9rem, 5vw, 3.1rem); }
.studio-home-title p { margin: 6px 0 0; }
.studio-home .storage-mini { margin-top: 0; }
.studio-home .home-studio-actions { margin-top: 18px; }
.studio-home + .create-card { margin-bottom: 18px; }

/* Continue editing: one row of recent edits; it scrolls sideways when long. */
.recent-block { margin-top: 6px; }
.recent-block h2 { margin: 0 0 8px; font-size: 1rem; }
.recent-block > p { margin: 0; }
.recent-block .recent-projects { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.recent-block .recent-projects::-webkit-scrollbar { display: none; }
.takes.one-studio .studio-link { display: none; }
.recent-block .recent-projects li { flex: none; display: flex; align-items: baseline; gap: 8px; max-width: 300px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; }
.recent-block .recent-projects a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--text); text-decoration: none; }
.recent-block .recent-projects a:hover { text-decoration: underline; }
.recent-block .recent-projects span { white-space: nowrap; }

/* All studios: one row per studio instead of large cards. */
.studios-page { padding-top: 18px; }
.studios-page .block-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.studios-page > p { margin: 6px 0 0; }
.studio-rows { grid-template-columns: 1fr; gap: 0; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-box); overflow: hidden; }
.studio-rows .studio-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 22px; padding: 12px 16px; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.studio-rows .studio-card:first-child { border-top: 0; }
.studio-rows .studio-card.current { border-color: var(--border); box-shadow: inset 3px 0 var(--accent); }
.studio-rows .studio-head { gap: 12px; min-width: 0; }
.studio-rows .studio-head > div { min-width: 0; }
.studio-rows .studio-head h2 { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.studio-rows .studio-stats { white-space: nowrap; }
.studio-rows .studio-mark { width: 36px; height: 36px; font-size: 1rem; }
.studio-rows .studio-stats { gap: 18px; margin: 0; border: 0; }
.studio-rows .studio-stats div, .studio-rows .studio-stats div + div { display: flex; align-items: baseline; gap: 5px; padding: 0; border: 0; }
.studio-rows .studio-stats dd { order: -1; margin: 0; font-size: 1rem; }
.studio-rows .studio-stats dt { font-size: 0.8rem; }
.studio-rows .studio-actions .icon-btn { margin-left: 0; }
/* In a row, the recording count is enough; the voice-track count stays on the studio's library page. */
.studio-rows .studio-stats div + div { display: none; }
.studio-rows .studio-actions { flex-wrap: nowrap; }
@media (max-width: 860px) {
  .studio-rows .studio-card { grid-template-columns: 1fr; }
}

/* Account: grouped sections, the legal links last. */
.account-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.account-title h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
#account-usage { margin: 4px 0 0; }
.group-title { margin: 26px 0 8px; font-size: 0.95rem; color: var(--muted); }
#view-account .card + .card, #view-account .card + details.card, #view-account details.card + .card { margin-top: 10px; }
#view-account .legal-links { margin-top: 26px; }
@media (max-width: 640px) {
  .studio-home .home-studio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .studio-home .home-studio-actions .button { text-align: center; }
  .studio-home #home-record { grid-column: 1 / -1; }
}
/* Green room and recording stage */
#view-join.green-room { width: 100%; max-width: 960px; margin: 5vh auto 0; padding: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-top: 4px solid var(--accent); }
.green-room-intro { padding: 36px; background: var(--surface-2); border-right: 1px solid var(--border); }
.green-room-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; font-stretch: var(--wide); margin: 14px 0; }
.green-room-form { padding: 36px; min-width: 0; }
#join-title { font-size: 1.5rem; overflow-wrap: anywhere; }
.join-tips { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.join-tips li { display: grid; gap: 5px; }
.join-tips span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.mic-check { border-radius: var(--r-box); background: var(--surface-2); padding: 16px; border: 1px solid var(--border); }
.mic-check .row { align-items: flex-start; }
.mic-check-hint, .join-note { margin-bottom: 0; line-height: 1.5; }
.room-bar { padding: 16px 24px; }
.room-title { flex-wrap: wrap; gap: 4px 10px; }
.room-status { flex-wrap: wrap; min-width: 0; }
#rec-badge { max-width: min(36vw, 400px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { flex-direction: column; gap: 32px; background: radial-gradient(ellipse at top, var(--accent-soft), transparent 65%); }
.stage-heading { text-align: center; max-width: 640px; flex: none; }
.stage-heading h2 { margin: 8px 0; font-size: clamp(1.4rem, 3vw, 2rem); font-stretch: var(--wide); }
.stage-heading > p:last-child { margin: 0; line-height: 1.5; }
.stage-tiles { flex: none; }
.stage-tiles .tile { min-width: 0; border-radius: 18px; padding-block: 32px 24px; }
.is-recording .stage-heading .eyebrow { color: var(--rec); }
.input-label { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.cb-left { flex-wrap: wrap; }
.cb-left select { max-width: 100%; min-width: 0; }
.control-bar { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.cb-center { flex-wrap: wrap; }
#rec-status { overflow-wrap: anywhere; }
@media (max-width: 1100px) and (min-width: 901px) {
  .control-bar { grid-template-columns: 1fr 1fr; }
  .cb-left { grid-column: 1 / -1; justify-content: center; }
  .cb-center { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .stage { align-items: center; justify-content: flex-start; padding: 24px 14px; gap: 24px; }
  .room-bar { padding: 12px 16px; }
  .room-brand span { display: none; }
  .room-title { flex-basis: 160px; }
  #rec-badge { max-width: 65vw; }
  .control-bar { gap: 12px; padding-top: 12px; }
  .cb-left .meter.self { flex-basis: 100px; }
  .stage-tiles .tile { padding: 22px 10px; }
}
@media (max-width: 640px) {
  #view-join.green-room { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .green-room-intro { padding: 24px; border-right: 0; border-bottom: 1px solid var(--border); }
  .green-room-form { padding: 24px; }
  .join-tips { margin-top: 20px; gap: 16px; }
  .room-title { flex-basis: 140px; }
  .room-status { width: 100%; }
  .big-btn { padding: 12px 16px; }
  .stage-tiles { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
}

.room-readiness { max-width:640px; margin:0; padding:12px 18px; text-align:center; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:10px; font-size:.95rem; line-height:1.5; }
#retry-connection { min-height:40px; font-size:.875rem; }
#start-readiness { padding:12px; background:var(--surface-2); border-radius:6px; line-height:1.5; }

.founding-badge { display:inline-block; font-size:.8rem; font-weight:600; color:var(--accent); border:1px solid var(--accent); border-radius:5px; padding:4px 8px; margin:6px; font-stretch:100%; vertical-align:middle; }

.brand-move-notice { position:relative; display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:center; align-items:center; padding:12px 20px; background:var(--surface,#142b32); color:var(--muted,#abc1c5); border-top:1px solid var(--border,#2b434a); font:400 12px/1.5 system-ui,sans-serif; text-align:center; z-index:5; }
.brand-move-notice a { color:var(--accent,#a4a0ff); font-weight:650; white-space:nowrap; }
