/* Curio — design system tokens + screen styles */

:root {
  /* Pastel palette — warm off-white base */
  --paper:        #FBF7F1;
  --paper-2:      #F4EFE6;
  --ink:          #2A2A2E;
  --ink-2:        #5B5B62;
  --ink-3:        #8A8A92;
  --line:         #E7E0D2;
  --line-2:       #D7CFBE;

  --mint:         #C8E8D7;
  --mint-deep:    #6FB592;
  --butter:       #F6E4A1;
  --butter-deep:  #C9A742;
  --blush:        #F5C8C8;
  --blush-deep:   #C97A7A;
  --periwinkle:   #C9D2F2;
  --periwinkle-deep: #6E7BBE;
  --lavender:     #DCC9F0;
  --lavender-deep:#9472B9;

  --primary:      #2A2A2E;
  --primary-soft: #DDD7C8;

  --radius:       16px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --shadow-sm:    0 1px 0 rgba(40,30,20,0.04), 0 2px 6px rgba(40,30,20,0.04);
  --shadow:       0 2px 0 rgba(40,30,20,0.04), 0 12px 28px rgba(40,30,20,0.08);
  --shadow-lg:    0 4px 0 rgba(40,30,20,0.04), 0 24px 60px rgba(40,30,20,0.12);

  --font-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-body:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

[data-pair="2"] {
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-pair="3"] {
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body:    "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-pair="4"] {
  --font-display: "Inter Tight", -apple-system, sans-serif;
  --font-body:    "Inter Tight", -apple-system, sans-serif;
}

/* Palette themes */
[data-palette="warm"]    { --paper:#FBF7F1; --paper-2:#F4EFE6; }
[data-palette="cool"]    { --paper:#F2F4F8; --paper-2:#E7EAF1; --line:#DCE0EA; --line-2:#C7CDDB; }
[data-palette="sage"]    { --paper:#F2F5EE; --paper-2:#E7EBE0; --line:#D9DECE; --line-2:#C0C8B0; }
[data-palette="rose"]    { --paper:#FBF1F2; --paper-2:#F4E5E6; --line:#EDD9DB; --line-2:#D9BCC0; }

/* Persona / audience: "child" softens corners + bumps scale, "adult" is more restrained */
[data-persona="child"] {
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}
[data-persona="adult"] {
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
}

button { font-family: inherit; }

/* ─── Tablet stage ─────────────────────────── */
.stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tablet {
  position: relative;
  width: 100vw; height: 100dvh;
  background: var(--paper);
  overflow: hidden;
}

.app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--paper);
  overflow: hidden;
}

/* ─── Type ─────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
[data-persona="adult"] .display { font-size: 38px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.eyebrow-dim { color: var(--ink-3); }

/* ─── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: #1a1a1d; }
.btn-ghost {
  border-color: var(--line-2);
  background: transparent;
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-voice {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-voice:hover { background: #1a1a1d; }
.btn-voice svg { flex-shrink: 0; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ─── Wordmark ───────────────────── */
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-dot {
  width: 0.7em; height: 0.7em; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--blush) 60%, var(--periwinkle));
  display: inline-block;
}

/* ─── Station bar ─────────────────────────── */
.station-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.station-bar.density-cozy { padding: 18px 28px; }
.station-bar.density-roomy { padding: 22px 32px; }

.station-bar-left { display: flex; align-items: center; gap: 14px; }
.station-swatch {
  width: 44px; height: 44px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.station-bar-meta .station-bar-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3); font-weight: 600;
}
.station-bar-meta { min-width: 0; flex: 1; }
.station-bar-meta .station-bar-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-bar-left { min-width: 0; flex: 1; max-width: 60%; }
.station-bar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; white-space: nowrap; }
.station-bar-right .btn { white-space: nowrap; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(111,181,146,0.18);
}
.status-dot[data-on="false"] { background: var(--ink-3); box-shadow: 0 0 0 4px rgba(0,0,0,0.06); }
.status-label { font-size: 13px; color: var(--ink-2); }

/* ─── Home ─────────────────────────── */
.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screen-home { background: var(--paper); }

.home-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 24px 80px 28px;
  text-align: center;
  gap: 18px;
}
.home-greet { max-width: 720px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.home-greet .display { white-space: nowrap; max-width: 100%; }
.home-greet .display em {
  font-style: italic;
  color: var(--mint-deep);
}
.home-sub {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  margin: 0;
}
.home-sub em {
  font-style: italic; color: var(--ink);
  background: var(--mint); padding: 2px 8px; border-radius: 6px;
}

.mic {
  position: relative;
  flex-shrink: 0;
  border: none; cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mic.mic-idle::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed var(--line-2);
  pointer-events: none;
}
.mic.mic-idle:hover { transform: scale(1.02); }
.mic.mic-idle:hover::after { border-color: var(--ink-3); }
.mic.mic-recording {
  background: #B83A3A;
  transform: scale(1.04);
  box-shadow: 0 0 0 12px rgba(184,58,58,0.12), 0 0 0 24px rgba(184,58,58,0.06), var(--shadow-lg);
}
.mic.mic-searching {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: progress;
}
.mic.mic-searching::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--mint-deep);
  border-right-color: transparent;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Recording rings */
.mic-pulse, .mic-pulse-2 {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(184,58,58,0.55);
  opacity: 0; pointer-events: none;
}
.mic-recording .mic-pulse { animation: pulse 1.4s ease-out infinite; }
.mic-recording .mic-pulse-2 { animation: pulse 1.4s ease-out infinite .7s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Recording waveform — vertical bars at the bottom of the mic */
.mic-wave {
  position: absolute;
  bottom: 18%;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: end; gap: 3px;
  height: 22px; pointer-events: none;
}
.mic-wave span {
  width: 3px; height: 30%;
  background: var(--paper);
  border-radius: 2px;
  animation: wave 0.9s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { height: 25%; }
  50%     { height: 100%; }
}

/* Searching: loading moving shapes */
.mic-shapes {
  position: relative;
  width: 60%; height: 60%;
  display: block;
}
.mic-shapes .ms {
  position: absolute;
  border-radius: 50%;
  animation: shapeFloat 2.4s ease-in-out infinite;
}
.mic-shapes .ms1 { width: 28%; height: 28%; left: 10%;  top: 18%; background: var(--mint);       animation-delay: 0s; }
.mic-shapes .ms2 { width: 22%; height: 22%; left: 55%;  top: 12%; background: var(--butter);     animation-delay: .3s; border-radius: 8px; }
.mic-shapes .ms3 { width: 26%; height: 26%; left: 18%;  top: 52%; background: var(--blush);      animation-delay: .6s; border-radius: 30%; }
.mic-shapes .ms4 { width: 20%; height: 20%; left: 60%;  top: 56%; background: var(--periwinkle); animation-delay: .9s; }
@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.9; }
  25%      { transform: translate(8px, -10px) scale(1.1) rotate(45deg); opacity: 1; }
  50%      { transform: translate(-6px, 6px) scale(0.85) rotate(-30deg); opacity: 0.8; }
  75%      { transform: translate(10px, 4px) scale(1.05) rotate(20deg); opacity: 1; }
}

/* Hint area */
.mic-hint {
  font-size: 14px; color: var(--ink-2); min-height: 26px;
  font-family: var(--font-display); font-style: italic;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mic-hint kbd {
  font-family: var(--font-body); font-style: normal;
  font-size: 12px; padding: 2px 8px; border-radius: 6px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-bottom-width: 2px; color: var(--ink);
}
.mic-hint-or { color: var(--ink-3); }
.mic-hint-rec { display: inline-flex; align-items: center; gap: 10px; color: #B83A3A; font-style: normal; font-family: var(--font-body); font-weight: 500; }
.rec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #B83A3A;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.mic-transcript {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink); font-weight: 400; margin-left: 6px;
}
.mic-hint-search { color: var(--ink); font-style: normal; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 8px; }
.mic-hint-search em { font-family: var(--font-display); color: var(--ink); }
.dots { display: inline-flex; gap: 3px; }
.dots i {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3); animation: dotBounce 1s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

.search-row { display: flex; gap: 10px; width: 100%; max-width: 580px; }
.search-field {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search-field:focus-within { border-color: var(--ink); background: var(--paper); }
.search-field input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 16px; color: var(--ink); font-family: inherit;
}
.search-ico { color: var(--ink-3); font-size: 18px; }

.suggested-queries {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  align-items: center; max-width: 600px;
}
.suggested-label {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 14px;
  margin-right: 4px;
}
.qpill {
  border: 1px dashed var(--line-2);
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.qpill:hover { background: var(--paper-2); border-style: solid; color: var(--ink); }

/* ─── Home picks (cached videos) ───────────────────── */
.picks {
  width: 100%;
  max-width: 1080px;
  margin: 8px auto 0;
  text-align: left;
}
.picks-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  margin: 0 4px 14px;
}
.picks-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.picks-sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.picks-count {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #2C6B49;
  background: rgba(200,232,215,0.55);
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pick-card, .pick-row {
  border: none; background: transparent;
  font-family: inherit; color: inherit;
  text-align: left; cursor: pointer;
  padding: 0;
}
.pick-thumb-wrap { position: relative; }
.pick-thumb-wrap .thumb { aspect-ratio: 16 / 9; border-radius: 12px; }
.pick-thumb-sm .thumb { aspect-ratio: 16 / 10; border-radius: 10px; }
.pick-duration {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; font-weight: 600;
  background: rgba(28,24,20,0.78); color: white;
  padding: 2px 7px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pick-progress {
  position: absolute; left: 6px; right: 6px; bottom: 4px;
  height: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.45);
  overflow: hidden;
}
.pick-progress span {
  display: block; height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

.pick-why {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
  width: fit-content;
}
.pick-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px; line-height: 1.35; font-weight: 500;
  color: var(--ink);
}
.pick-channel {
  font-size: 12px; color: var(--ink-3);
}

/* Variant: rail (horizontal scroll) */
.picks-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  padding: 0 4px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.picks-rail .pick-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.picks-rail .pick-thumb-wrap { margin-bottom: 4px; transition: transform .2s ease; }
.picks-rail .pick-card:hover .pick-thumb-wrap { transform: translateY(-2px); }

/* Variant: grid (2-col) */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}
.picks-grid .pick-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 8px;
  border-radius: 14px;
  transition: background .15s ease;
}
.picks-grid .pick-card:hover { background: var(--paper-2); }
.picks-grid .pick-meta { display: flex; flex-direction: column; gap: 6px; }

/* Variant: stack (vertical reading list) */
.picks-stack {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.picks-stack li { border-bottom: 1px solid var(--line); }
.pick-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px; align-items: center;
  width: 100%;
  padding: 12px 8px;
  transition: background .15s ease;
}
.pick-row:hover { background: var(--paper-2); }
.pick-row-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.picks-stack .pick-title { font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.picks-stack .pick-why { font-size: 10px; padding: 2px 7px; }
.pick-row-arrow {
  font-size: 18px; color: var(--ink-3);
  transition: transform .15s ease, color .15s ease;
}
.pick-row:hover .pick-row-arrow { color: var(--ink); transform: translateX(3px); }

/* Variant: cards (3 hero cards) */
.picks-cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
.picks-cards .pick-card { display: flex; flex-direction: column; gap: 8px; }
.picks-cards .pick-card.is-featured { grid-row: span 1; }
.picks-cards .pick-meta { display: flex; flex-direction: column; gap: 6px; }
.picks-cards .is-featured .pick-title { font-family: var(--font-display); font-size: 20px; line-height: 1.2; }

/* density */
.density-cozy .picks-mode-rail .picks-rail { gap: 10px; grid-auto-columns: 200px; }
.density-roomy .picks-mode-rail .picks-rail { gap: 22px; grid-auto-columns: 240px; }
.density-cozy .picks-mode-grid .picks-grid { gap: 10px 14px; }
.density-roomy .picks-mode-grid .picks-grid { gap: 18px 22px; }

.home-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ─── Results ─────────────────────────── */
.screen-results { background: var(--paper); }
.results-head {
  display: flex; align-items: end; justify-content: space-between;
  padding: 24px 32px 16px;
  gap: 24px;
  flex-wrap: wrap;
}
.results-head > div:first-child { min-width: 0; flex: 1; }
.results-q {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em;
  margin: 0; line-height: 1.2;
  text-wrap: balance;
}
.results-sub {
  font-size: 14px; color: var(--ink-2); margin: 8px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
  padding: 8px 32px 24px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-cozy { gap: 14px; }
.grid-roomy { gap: 24px; padding: 16px 32px 32px; }

.card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--ink-2); margin-top: 6px;
}
.card-meta .dot { color: var(--ink-3); }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  border-radius: 0;
  overflow: hidden;
}
.thumb-svg { display: block; width: 100%; height: 100%; }
.thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--ink); opacity: 0.85;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* ─── Chips ─────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-sm { font-size: 11px; padding: 3px 8px; }
.chip-button { cursor: pointer; }
.chip-approve { background: rgba(200,232,215,0.5); color: #2C6B49; border-color: rgba(111,181,146,0.4); }
.chip-reject  { background: rgba(245,200,200,0.45); color: #8E3A3A; border-color: rgba(201,122,122,0.4); }
.chip-neutral { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.chip-x {
  margin-left: 4px; font-size: 14px; line-height: 1; opacity: 0.6;
}

.pill {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--paper-2); color: var(--ink-2);
}

/* ─── Rejected tray ─────────────────────────── */
.rejected {
  margin: 16px 32px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: transparent;
}
.rejected summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-2);
}
.rejected summary::-webkit-details-marker { display: none; }
.rejected-summary { display: flex; align-items: center; gap: 10px; }
.rejected-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blush); color: #8E3A3A; font-size: 12px;
}
.rejected-toggle { color: var(--ink); text-decoration: underline; }
.rejected-list {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 18px 18px;
}
.reject-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 14px; align-items: center;
  padding: 10px;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.reject-row .thumb { border-radius: 10px; }
.reject-title { font-size: 14px; color: var(--ink); font-weight: 500; }
.reject-meta { font-size: 12px; color: var(--ink-3); margin: 2px 0 6px; }

/* ─── Watch ─────────────────────────── */
.screen-watch { background: var(--paper); }
.watch-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 24px 32px;
  min-height: 0;
}
.watch-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.player .thumb { aspect-ratio: 16 / 9; }
.player-bar {
  position: absolute; bottom: 56px; left: 16px; right: 16px;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.player-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--mint);
}
.player-controls {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 14px;
  color: var(--paper);
  font-size: 13px;
}
.pc-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.15); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.pc-spacer { flex: 1; }

.watch-meta { display: flex; flex-direction: column; gap: 12px; }
.watch-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em;
  margin: 0; line-height: 1.15;
}
.watch-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.watch-channel { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ch-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--butter), var(--blush));
}
.watch-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.watch-reasons {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.watch-reasons-label {
  font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--ink-3); margin-right: 6px;
}

.watch-sidebar {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 0;
  overflow: hidden;
}
.sidebar-head { padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.sidebar-sub { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.sugg-list { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; flex: 1; overflow-y: auto; }
.sugg {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 10px; align-items: start;
  padding: 6px;
  border-radius: var(--radius);
  border: none; background: transparent; cursor: pointer; text-align: left;
  font-family: inherit;
}
.sugg:hover { background: var(--paper); }
.sugg .thumb { border-radius: 10px; }
.sugg-title { font-size: 13px; color: var(--ink); line-height: 1.3; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sugg-meta { font-size: 11px; color: var(--ink-3); margin: 4px 0 6px; }
.sugg-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.sidebar-foot {
  display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line);
}

/* ─── Onboarding ─────────────────────────── */
.screen-onboarding {
  background:
    radial-gradient(800px 500px at 80% 20%, var(--mint) 0%, transparent 60%),
    radial-gradient(600px 400px at 10% 80%, var(--blush) 0%, transparent 60%),
    var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.onb-card {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 32px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: min(900px, 90%);
  box-shadow: var(--shadow-lg);
}
.onb-art { display: flex; align-items: center; justify-content: center; }
.onb-title { font-family: var(--font-display); font-size: 38px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 14px; }
.onb-body-text { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 28px; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; }
.onb-dots { display: flex; gap: 6px; }
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.onb-dot.is-on { background: var(--ink); width: 22px; border-radius: 4px; }
.onb-actions { display: flex; gap: 8px; }

/* ─── Switcher ─────────────────────────── */
.screen-switcher {
  background: var(--paper);
}
.switcher-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
}
.switcher-body { padding: 32px 32px; flex: 1; overflow-y: auto; }
.switcher-title { font-family: var(--font-display); font-size: 40px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 24px; line-height: 1.05; }
.switcher-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.station-card {
  display: grid; grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit;
}
.station-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.station-card.is-active { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(40,40,46,0.08); }
.station-card-swatch {
  width: 92px; height: 92px; border-radius: var(--radius);
  position: relative;
}
.station-card-swatch-new {
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--ink-3); border: 1px dashed var(--line-2);
}
.station-lock {
  position: absolute; bottom: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); color: var(--ink-2); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.station-card-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.station-card-tag { font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.station-card-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ─── PIN ─────────────────────────── */
.screen-pin {
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.pin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pin-card.is-shake { animation: shake .4s ease; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}
.pin-swatch {
  width: 56px; height: 56px; border-radius: 16px;
  margin: 0 auto 16px;
}
.pin-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 4px 0 6px; letter-spacing: -0.01em; }
.pin-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 24px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; }
.pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2);
  background: transparent;
}
.pin-dot.is-filled { background: var(--ink); border-color: var(--ink); }
.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pin-key {
  height: 56px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 22px; font-family: var(--font-display); font-weight: 500;
  color: var(--ink); cursor: pointer;
  transition: background .12s ease;
}
.pin-key:hover { background: var(--paper-2); }
.pin-key:active { transform: scale(0.97); }
.pin-key-ghost { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pin-hint { margin-top: 16px; font-size: 12px; color: var(--ink-3); font-family: var(--font-display); font-style: italic; }

/* ─── Settings ─────────────────────────── */
.screen-settings { background: var(--paper); overflow-y: auto; }
.settings-head {
  display: flex; align-items: end; justify-content: space-between;
  padding: 24px 32px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.settings-head > div:last-child { display: flex; gap: 8px; }
.settings-title { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 4px 0 0; letter-spacing: -0.01em; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 32px 32px;
}
.settings-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.settings-block-wide { grid-column: 1 / -1; }
.settings-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  margin-bottom: 10px;
}
.settings-label-spaced { margin-top: 14px; }
.settings-label-hint { color: var(--ink-3); font-weight: 400; font-style: italic; font-family: var(--font-display); margin-left: 4px; }
.ok-dot, .no-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.ok-dot { background: var(--mint-deep); }
.no-dot { background: var(--blush-deep); }
.settings-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none;
}
.settings-input:focus { border-color: var(--ink); background: var(--paper); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; }
.chip-add { display: flex; gap: 8px; margin-top: 10px; }
.chip-add input {
  flex: 1; padding: 8px 12px;
  border-radius: 999px; border: 1px dashed var(--line-2);
  background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink); outline: none;
}
.chip-add input:focus { border-style: solid; border-color: var(--ink); }

/* ─── Voice tag modal ─────────────────────────── */
.voice-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 24, 20, 0.42);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: vmFade .2s ease;
}
@keyframes vmFade { from { opacity: 0; } }
.voice-modal {
  width: 100%; max-width: 520px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px 18px;
  animation: vmRise .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes vmRise { from { transform: translateY(12px); opacity: 0; } }
.voice-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.voice-modal-tag {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.voice-modal-close {
  border: none; background: transparent;
  font-size: 22px; line-height: 1; color: var(--ink-3);
  cursor: pointer; padding: 4px 10px; border-radius: 8px;
}
.voice-modal-close:hover { background: var(--paper-2); color: var(--ink); }
.voice-modal-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em;
  margin: 0 0 6px; color: var(--ink);
  text-wrap: balance;
}
.voice-modal-sub {
  font-size: 13px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5;
}
.voice-modal-body {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 8px 0 16px;
}
.voice-modal-status {
  font-size: 13px; min-height: 22px;
}
.voice-modal-chips { justify-content: center; max-width: 100%; }
.voice-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.voice-modal .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 18px;
  border-top: 1px solid var(--line);
}
.setting-row:first-of-type { border-top: none; }
.setting-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.setting-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.switch {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--line-2); border: none; cursor: pointer;
  position: relative; padding: 0;
}
.switch span {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); transition: left .15s ease;
}
.switch.is-on { background: var(--mint-deep); }
.switch.is-on span { left: 20px; }
.settings-help { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.settings-help a { color: var(--ink); }

/* ─── History (in Settings) ─────────────────────────── */
.history-block { padding: 16px 18px 12px; }
.history-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.history-head .settings-help { font-size: 12px; }

.history-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.history-col {
  display: flex; flex-direction: column;
  background: var(--paper);
  min-width: 0;
}
.history-col + .history-col { border-left: 1px solid var(--line); }
.history-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.history-col-head.tag-watch { background: rgba(200,232,215,0.5); color: #2C6B49; }
.history-col-head.tag-block { background: rgba(245,200,200,0.45); color: #8E3A3A; }
.history-col-count {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.6); color: inherit;
}
.history-col-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child { border-bottom: none; }
.history-row .thumb { border-radius: 6px; }
.history-body { min-width: 0; }

.history-meta-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--ink-3);
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.history-q {
  font-style: italic; font-family: var(--font-display); color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.history-title { font-size: 12.5px; color: var(--ink); font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.history-reason { font-size: 11px; color: var(--ink-2); margin-top: 1px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.history-note {
  font-family: var(--font-display); font-style: italic;
  font-size: 11px; color: var(--ink-2);
  margin-top: 3px;
  padding-left: 8px;
  border-left: 2px solid var(--line-2);
}

.history-rate { display: flex; gap: 4px; }
.rate-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  padding: 0;
}
.rate-btn svg { width: 13px; height: 13px; }
.rate-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.rate-btn.is-up { background: var(--mint); color: #2C6B49; border-color: var(--mint-deep); }
.rate-btn.is-down { background: var(--blush); color: #8E3A3A; border-color: var(--blush-deep); }

.history-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  font-size: 11px;
}
.history-clear { font-size: 11px; color: var(--ink); }

/* ─── Nav (bottom of tablet, debug-style for prototype) ─────────────────────────── */
.protonav {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 12px;
  color: var(--ink-3);
}
.protonav button {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-size: 12px; color: var(--ink-2);
}
.protonav button:hover { background: var(--paper); color: var(--ink); }
.protonav button.is-active { background: var(--ink); color: var(--paper); }
.protonav-spacer { flex: 1; }
.protonav-label { font-family: var(--font-display); font-style: italic; padding-right: 6px; }

/* ─── Stream 2 scroll fix ───────────────────── */
.screen-results { overflow-y: auto; overflow-x: hidden; }
.screen-results .grid { padding-bottom: 24px; }

/* ─── Auth screens (Supabase) ───────────────── */
.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--paper);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 36px 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card .eyebrow { margin: 0; }
.auth-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.auth-field input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--lavender);
}
.auth-err {
  font-size: 13px;
  color: var(--blush-deep);
  background: var(--blush);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.auth-info {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--mint);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.auth-link {
  background: none;
  border: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}
.auth-link:hover { color: var(--ink); }
