/* radionest — apple.com-inspired light theme. Light mode only. */
:root {
  color-scheme: light only;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --wordmark-radio: #848488; /* --muted mixed 15% toward white (owner t68u); 3.73:1 on white, AA for large text */
  --faint: #86868b;
  --surface: #f5f5f7;
  --surface-hover: #e8e8ed;
  --hairline: #d2d2d7;
  --link: #0066cc;
  --danger: #d70015;
  --radius: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
header, main, footer { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header { padding-top: 28px; padding-bottom: 4px; }
header h1 {
  margin: 0; font-size: clamp(40px, 11vw, 56px); /* keep in step with .tag --wm-size */ line-height: 1.07; font-weight: 700; letter-spacing: -0.035em;
}
.tag b { font-weight: 700; color: var(--fg); }
header h1.wordmark { color: var(--fg); }
.wm-radio { color: var(--wordmark-radio); }
/* Wordmark → tagline gap halved (owner t76u, mll-v40): the visible gap (wordmark baseline → tagline ascenders) was
   18.0 / 18.9 / 19.8 px at 375 / 390 / 430 and grows with the 11vw wordmark, so the pull-up scales with the same clamp
   (≈ half the gap). The bottom margin grows by exactly as much (top + bottom margins still sum to 20 px), so the
   language / voice / Saved / tips row stays at the same y. */
.tag { --wm-size: clamp(40px, 11vw, 56px); --tag-pull: calc(3.4px + 0.149 * var(--wm-size)); }
.tag { margin: calc(6px - var(--tag-pull)) 0 calc(14px + var(--tag-pull)); text-transform: lowercase; font-size: 21px; line-height: 1.38; color: var(--muted); letter-spacing: -0.02em; }
.prefs-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prefs-bar select { font-size: 10.5px; min-height: 28px; padding: 4px 26px 4px 11px; background-size: 9px 6px; background-position: right 10px center; }
.voice-wrap { position: relative; display: inline-flex; align-items: center; margin: 0; }
.voice-icon { position: absolute; left: 9px; width: 13px; height: 13px; fill: var(--fg); color: var(--fg); pointer-events: none; }
.voice-wrap select { padding-left: 26px; }
#voice-note { margin: 8px 0 0; }

/* ---------- form controls ---------- */
select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 17px; color: var(--fg); letter-spacing: inherit;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 0; border-radius: 980px; padding: 12px 40px 12px 18px; min-height: 48px; max-width: 100%;
  transition: background-color .2s var(--ease);
}
select:hover { background-color: var(--surface-hover); }
input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--fg); flex: none; }
input[type=range] { accent-color: var(--fg); flex: 1; min-width: 0; height: 32px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- player ---------- */
#player {
  background: var(--surface); border-radius: 20px; padding: 14px 16px 10px; margin: 18px 0 8px;
  position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 2;
  box-shadow: 0 0 0 8px var(--bg); /* solid white band so scrolled content never peeks around the card */
}
#now-source { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#now-title { margin-top: 3px; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 18px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.transport svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.transport button.icon { min-height: 40px; width: 40px; padding: 0; display: grid; place-items: center; color: var(--muted); }
.transport button.icon:not(:disabled):hover { color: var(--fg); }
.transport button.primary { width: 56px; min-height: 56px; padding: 0; margin: 0 8px; display: grid; place-items: center; border-radius: 50%; }
.transport button.primary svg { width: 26px; height: 26px; }
.transport .i-pause, .transport .is-playing .i-play { display: none; }
.transport .is-playing .i-pause { display: inline; }
.status-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
#eta { display: none; } /* minutes estimate hidden per owner 2026-10-22 */
#status { text-align: right; }
button {
  font: inherit; font-size: 15px; letter-spacing: -0.01em; color: var(--fg);
  min-height: 48px; padding: 0 14px; border: 0; border-radius: 980px; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease), transform .12s var(--ease);
}
button:hover:not(:disabled) { background: var(--surface-hover); }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .3; cursor: default; }
button.primary {
  min-height: 56px;
  background: #000; color: #fff; font-size: 17px; font-weight: 600;
}
button.primary:hover:not(:disabled) { background: #333336; }
button.primary:disabled { opacity: .25; }
#status { margin-top: 6px; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.tip { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hint { color: var(--fg); }

/* ---------- settings ---------- */
details { margin: 28px 0 0; border-top: 1px solid var(--hairline); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 64px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 10px; height: 10px; border-right: 1.6px solid var(--fg); border-bottom: 1.6px solid var(--fg);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin: 4px 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
details > label {
  display: flex; align-items: center; gap: 14px; min-height: 56px; margin: 0; padding: 8px 0;
  border-bottom: 1px solid var(--hairline); cursor: pointer;
}
details > label:has(select), details > label:has(input[type=range]) { justify-content: space-between; }
details > label > span { flex: 1; }
details > label:has(select) > span, details > label:has(input[type=range]) > span { flex: none; }
details > label select { flex: 0 1 auto; min-width: 0; }
#rate-out { width: 3em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- queue ---------- */
#queue-count { font-weight: 400; color: var(--faint); }
#queue { list-style: none; margin: 0; padding: 0; counter-reset: q; }
#queue li {
  counter-increment: q; position: relative; padding: 14px 0 14px 36px; min-height: 56px;
  border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 17px; line-height: 1.35;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
#queue li::before { content: counter(q); position: absolute; left: 0; top: 15px; width: 26px; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
#queue li:active { background: var(--surface); }
#queue li.current { font-weight: 600; }
#queue li.current::before { content: ""; top: 21px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
#queue li.played { color: var(--faint); }
#queue li.played .q-title { text-decoration: line-through; text-decoration-thickness: 1px; }
#queue li small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
#queue a, footer a { color: var(--link); text-decoration: none; }
#queue a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
footer { margin-top: 40px; padding-top: 16px; padding-bottom: 48px; border-top: 1px solid var(--hairline); font-size: 12px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- diagnostics (?debug=1) ---------- */
#debug { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 32px 0 0; font-size: 12px; }
#debug h2 { margin: 0 0 8px; font-size: 17px; }
#debug dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0 0 10px; }
#debug dt { color: var(--muted); } #debug dd { margin: 0; word-break: break-all; }
#debug .controls { grid-template-columns: repeat(3, auto); justify-content: start; }
#debug button { background: var(--bg); }
#debug-log { max-height: 40vh; overflow: auto; white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 12px;
  border: 1px solid var(--hairline); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
#debug-log .err { color: var(--danger); }

@media (min-width: 600px) {
  header { padding-top: 72px; }
  #player { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.hint-text { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
/* Feed picker: selection chips + search box + results */
#picker { margin: 10px 0 0; }
.sec-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.3; }
#topics { margin: 14px 0 0; }
#topic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { min-height: 28px; padding: 0 11px; border-radius: 980px; font-size: 12px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--hairline); }
.tchip:hover:not(:disabled) { background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.tchip[aria-pressed="true"] { background: var(--fg); color: #fff; box-shadow: none; }
.tchip[aria-pressed="true"]:hover:not(:disabled) { background: #333336; }
/* Quick start presets (mll-v40): same chip shape as topics; off = thin grey outline, on = black ring (like a chosen source) */
#presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
#presets[hidden] { display: none; }
#presets .chips { display: contents; }
.presets-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 2px; }
.pchip { min-height: 28px; padding: 0 11px; border-radius: 980px; font-size: 12px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--hairline); }
.pchip:hover:not(:disabled) { background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.pchip[aria-pressed="true"], .pchip[aria-pressed="true"]:hover:not(:disabled) { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fg); }
/* "Current selection:" (mll-v41): same small muted label as "Quick start:"; hidden with the chips when nothing is chosen */
.sel-label { margin: 0 0 6px; font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.sel-label[hidden] { display: none; }
#selection { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
#selection[hidden] { display: none; }
.sel { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 0 2px 0 11px; border-radius: 980px;
  background: var(--surface); font-size: 12px; font-weight: 500; letter-spacing: -0.005em; line-height: 1; }
.sel .x { min-height: 26px; width: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.sel .x svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.sel .x:hover:not(:disabled) { background: var(--surface-hover); color: var(--fg); }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 11px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
#feed-search { width: 100%; min-height: 34px; padding: 6px 12px 6px 30px; border: 0; border-radius: 980px; background: var(--surface);
  font: inherit; font-size: 13px; color: var(--fg); letter-spacing: -0.01em; -webkit-appearance: none; appearance: none; }
#feed-search::placeholder { color: var(--faint); }
#feed-search::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }
#feed-search:focus { outline: none; box-shadow: 0 0 0 2px var(--fg); background: var(--bg); }
#feed-results { margin-top: 6px; border: 1px solid var(--hairline); border-radius: 14px; padding: 4px 0; max-height: 52vh; overflow: auto; background: var(--bg); }
#feed-results ul { list-style: none; margin: 0; padding: 0; }
.res-head { margin: 8px 12px 2px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.res-note { margin: 8px 12px; font-size: 12px; color: var(--muted); }
.res { width: 100%; min-height: 40px; padding: 5px 12px; border-radius: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.res-text { display: flex; flex-direction: column; min-width: 0; }
.res-name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.res small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.res .tick { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.res[aria-pressed="true"] .tick { background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.res:hover:not(:disabled), .res:focus-visible { background: var(--surface); }
.res:focus-visible { outline-offset: -2px; }
#queue li.empty { cursor: default; padding-left: 0; color: var(--muted); font-size: 15px; }
#queue li.empty::before { content: none; }

.transport [hidden] { display: none !important; }
#queue li b.new { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--danger); }

/* Web search results (on-demand feeds) */
.res.web small.err { color: var(--danger); }
.res .more-icon { color: var(--muted); font-size: 18px; line-height: 1; }
.res-note.web-wait { display: flex; align-items: center; gap: 8px; }
.spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid var(--hairline); border-top-color: var(--fg); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
#now-source:empty { display: none; }
/* Compact player (owner 2026-10-22): no READY/minutes, so trim empty space */
#player { padding: 12px 16px 8px; }
#now-title { margin-top: 2px; min-height: 0; }
.transport { margin-top: 4px; }
.transport button.primary { width: 50px; min-height: 50px; }
.transport button.primary svg { width: 24px; height: 24px; }
#status { margin-top: 0; min-height: 0; font-size: 12px; }
#status:empty { display: none; }
.sec-hint { text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 500; margin-left: 4px; }
.sel { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fg); } .sel .x { color: var(--fg); }
/* X handles (t53u piece 2): greyed out until the paid plan / a connected X account; never the black selected ring */
.sel.xh { background: var(--bg); color: var(--faint); box-shadow: none; outline: 1.2px dashed var(--hairline); outline-offset: -1.2px; }
.sel.xh .x { color: var(--faint); }
.sel.xh .x:hover:not(:disabled) { color: var(--fg); }
.res.xh small { color: var(--faint); }
.x-note { flex-basis: 100%; margin: 2px 2px 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
/* ---------- saved stories (t54u) ---------- */
#queue li { transition: color .2s var(--ease), background-color .2s var(--ease), transform .22s var(--ease); padding-right: 40px; }
/* Phase II swipe-to-save (ENABLE_SWIPE_SAVE in app.js, off): only then do cards block text selection and own horizontal drags */
.swipe-save #queue li { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#queue li.swiping { transition: none; background: var(--bg); }
#queue li.armed { background: var(--surface); }
/* Save button (mll-v32): ~20px outline bookmark, filled black when saved, 44px tap target, top-right of the card */
.bm-btn { position: absolute; top: 4px; right: -8px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bm-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.bm-btn:hover { color: var(--fg); }
.bm-btn:active { background: var(--surface-hover); }
.bm-btn[aria-pressed="true"] { color: var(--fg); }
.bm-btn[aria-pressed="true"] svg { fill: currentColor; }
#queue li.played .bm-btn[aria-pressed="false"] { color: var(--faint); }
/* the player card: same button in the top-right corner, overlapping the padding so the card doesn't grow */
#now-wrap { position: relative; }
#now { padding-right: 30px; }
#now.intro { padding-right: 0; } /* intro line has no bookmark: use the full width so it fits one line (t69u) */
#now.intro #now-title { letter-spacing: -0.025em; } /* was -0.02em: buys ~3px so EN fits at 375px (t69u); font size unchanged */
@media (max-width: 380px) { /* iPhone SE/mini: SF Pro is ~3% wider than the fallback; keep the intro on one line (t69u) */
  #player { padding-left: 12px; padding-right: 12px; }
  #now.intro #now-title { letter-spacing: -0.03em; }
}
#now-save { top: -10px; right: -14px; }
#now-save[hidden] { display: none; }
.pill .bm { display: block; width: 100%; height: 100%; fill: var(--fg); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 11px; border-radius: 980px; border: 0;
  background: var(--surface); color: var(--fg); font: inherit; font-size: 10.5px; font-weight: 500; letter-spacing: 0; cursor: pointer; }
.pill:hover { background: var(--surface-hover); }
.pill .bm { width: 9px; height: 11px; }
#saved-count { color: var(--muted); margin-left: -3px; font-variant-numeric: tabular-nums; }
.pill.dark { background: var(--fg); color: #fff; font-size: 12px; padding: 6px 14px; }
.pill.dark:hover { background: #333336; }
#saved-panel, .sheet { width: min(680px, 100%); max-width: 100%; max-height: 80vh; margin: auto auto 0; padding: 14px 20px 24px; border: 0;
  border-radius: 18px 18px 0 0; background: var(--bg); color: var(--fg); box-shadow: 0 -8px 40px rgba(0,0,0,.12); }
#saved-panel::backdrop, .sheet::backdrop { background: rgba(0,0,0,.25); }
.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sp-head h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sp-head .x, #saved-list .x { flex: none; width: 30px; min-height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sp-head .x svg, #saved-list .x svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.sp-head .x:hover, #saved-list .x:hover { background: var(--surface); color: var(--fg); }
#saved-empty { font-size: 14px; margin: 10px 0; }
#saved-list { list-style: none; margin: 0; padding: 0; }
#saved-list li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--hairline); }
.sv-play { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sv-play .q-title { display: block; font-size: 15px; line-height: 1.35; }
.sv-play small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 8px);
  max-width: calc(100% - 40px); padding: 9px 16px; border-radius: 980px; background: rgba(29,29,31,.92); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast:empty { display: none; }
#toast.has-action { pointer-events: auto; padding-right: 6px; }
.toast-action { min-height: 28px; margin-left: 8px; padding: 0 10px; border: 0; border-radius: 980px; background: rgba(255,255,255,.16);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
/* Free X sample (t53u piece 3): always on, same black ring as a chosen source, no × */
.sel.xh.live { color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fg); outline: 0; padding-right: 11px; }

/* ---------- sections (owner t60u, mll-v35) ----------
   Topics, Sources, Playback settings, Up next: four collapsible <details> that all use the Playback settings header
   (21px / 600 / -0.02em, 64px row, chevron on the right, hairline on top). The h2 inside each summary inherits it. */
details.sec { margin: 0; }
#settings.sec { margin: 0; }
details.sec[open] { padding-bottom: 16px; }
details.sec > summary { gap: 12px; }
.sec-title { flex: 1; margin: 0; font: inherit; letter-spacing: inherit; color: var(--fg); }
details.sec > summary::after { flex: none; }
#picker, #topics { margin: 0; }
/* The lowercase black instruction now sits as a small line under the header (it can't share the 21px header style) */
p.sec-hint { margin: -6px 0 10px; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--fg); text-transform: none; letter-spacing: -0.005em; }
/* Saved pill rides in the Up next header row, left of the chevron, so it stays reachable when the queue is collapsed */
#queue-sec > summary #btn-saved-q { flex: none; font-size: 12px; min-height: 32px; padding: 4px 12px; }
#queue-sec[open] > summary { margin-bottom: 0; }

/* ---------- tips (owner t63u, mll-v35) ----------
   A black outline (i) in the header row opens a bottom sheet with the tips. The dot marks a tip that applies right now
   (iPhone on the device voice = Silent switch mutes it), replacing the old inline text. */
.tips-btn { position: relative; flex: none; width: 28px; min-height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--fg); cursor: pointer; }
.tips-btn:hover { background: var(--surface); }
.tips-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tips-btn svg .dotfill { fill: currentColor; stroke-width: 1.2; }
#tips-dot { position: absolute; top: 3px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #0071e3; box-shadow: 0 0 0 1.5px var(--bg); }
#tips-dot[hidden] { display: none; }
#tips-list { margin: 4px 0 0; padding: 0; list-style: none; }
#tips-list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; color: var(--fg); }
#tips-list li:last-child { border-bottom: 0; }

/* ---------- launch screen (owner t70u/t71u, mll-v39) ----------
   Owner's artwork shown whole (contain, centered) on white at full opacity; only a very slight 200 ms fade-in.
   Fade-out duration must match FADE in splash.js. */
#splash[hidden] { display: none; }
#splash { position: fixed; inset: 0; z-index: 1000; background: #fff; transition: opacity .55s ease; cursor: pointer; }
#splash picture, #splash img { display: block; width: 100%; height: 100%; }
#splash img { object-fit: contain; object-position: center; animation: splash-in .2s ease-out both; }
#splash.out { opacity: 0; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #splash { transition: none; } #splash img { animation: none; } }
