/* ==========================================================================
   Storia per Tutti — spt-voice
   Mobile first. Colori dal logo: inchiostro blu notte, gradiente blu → viola → rosa → arancio.
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13213c;          /* testo: 15.6:1 su bianco */
  --ink-2: #4a5468;        /* testo secondario: 7.6:1 */
  --bg: #ffffff;
  --surface: #f4f5fa;
  --line: #e4e7ef;
  --link: #1d55e0;         /* 5.6:1 */
  --brand-grad: linear-gradient(135deg, #1463ff 0%, #7b3fd8 55%, #d6336c 100%); /* testo bianco ≥ 4.5:1 su tutta la fascia */
  --brand-per: linear-gradient(90deg, #ff8a00, #f0457a);
  --orange: #ff7a1a;
  --alert-bg: #fdecef;
  --alert-ink: #8f1d3a;
  --ok-bg: #e8f5ee;
  --ok-ink: #1d5c3c;
  --focus: #1463ff;

  --radius: 14px;
  --radius-lg: 22px;
  --pad: 16px;
  --col: 680px;
  --tabbar-h: 76px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f8;
    --ink-2: #aab3c7;
    --bg: #0e1424;
    --surface: #161e33;
    --line: #263049;
    --link: #8fb0ff;
    --alert-bg: #3a1622;
    --alert-ink: #ffc2d0;
    --ok-bg: #12301f;
    --ok-ink: #b8ecc9;
    --focus: #8fb0ff;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* l'attributo hidden vince sui display dei componenti */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.spv-skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
}
.spv-skip:focus { top: 8px; }
.spv-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.spv-muted { color: var(--ink-2); }
.spv-lead { font-size: 18px; }
.spv-stack { display: flex; flex-direction: column; gap: 16px; }
.spv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Logo ---------- */
.spv-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.spv-logo__mark { width: 42px; height: auto; flex: none; }
.spv-logo__word { font-weight: 900; font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.spv-logo__per { background: var(--brand-per); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spv-logo__tld { color: var(--ink-2); font-weight: 800; }
.spv-logo--lg .spv-logo__mark { width: 96px; }
.spv-logo--lg .spv-logo__word { font-size: 36px; }

/* ---------- Header ---------- */
.spv-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad);
  padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.spv-header__brand { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.spv-header__nav { display: flex; align-items: center; gap: 8px; }
.spv-header .spv-header__cta { display: none; } /* più specifico di .spv-btn */
.spv-link-quiet {
  background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 15px;
  min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center;
}

/* ---------- Bottoni ---------- */
.spv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
}
.spv-btn--brand { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(123, 63, 216, .28); }
.spv-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.spv-btn--block { width: 100%; }
.spv-btn[disabled] { opacity: .6; cursor: progress; }
.spv-icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink);
}

/* ---------- Layout ---------- */
.spv-main { max-width: var(--col); margin: 0 auto; padding: 16px var(--pad) 32px; }
.spv-narrow { max-width: 460px; }
.spv-page-title { font-size: 28px; margin-bottom: 12px; }
.spv-feed { display: flex; flex-direction: column; gap: 28px; }
.spv-more { text-align: center; margin-top: 28px; }
.spv-welcome {
  background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 20px;
}
.spv-empty { text-align: center; padding: 64px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spv-empty h1, .spv-empty h2 { font-size: 26px; }
.spv-empty p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Card ---------- */
.spv-card__link { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.spv-card__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.spv-card__img { width: 100%; height: 100%; object-fit: cover; }
.spv-card__cover {
  width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 18px;
  background: var(--brand-grad); color: #fff; font-weight: 900; font-size: 22px; line-height: 1.2;
}
.spv-card__cover span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spv-card__body { display: flex; flex-direction: column; gap: 6px; }
.spv-card__title { font-size: 23px; line-height: 1.22; }
.spv-card__link:hover .spv-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.spv-card__meta { color: var(--ink-2); font-size: 14px; }
.spv-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.spv-eyebrow--accent a { color: #b4361a; text-decoration: none; }
@media (prefers-color-scheme: dark) { .spv-eyebrow--accent a { color: var(--orange); } }

/* ---------- Pagina storia ---------- */
.spv-story { display: flex; flex-direction: column; gap: 14px; }
.spv-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; align-self: flex-start;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; margin-left: -6px;
}
.spv-story__title { font-size: 31px; line-height: 1.15; }
.spv-story__meta { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; }
.spv-story__meta strong { color: var(--ink); }
.spv-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px;
}
.spv-story__figure { margin: 4px 0 0; }
.spv-story__img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spv-story__body { font-size: 19px; line-height: 1.65; max-width: 65ch; }
.spv-story__body > * + * { margin-top: 1em; }

/* ---------- Tab bar (mobile) ---------- */
.spv-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 12px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
  background: var(--bg); border-top: 1px solid var(--line);
}
.spv-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border: 0; background: none; cursor: pointer; text-decoration: none;
  color: var(--ink-2); font-size: 12px; font-weight: 700;
}
.spv-tabbar__item.is-current { color: var(--ink); }
.spv-tabbar__cta {
  justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: -30px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 800;
}
.spv-tabbar__cta-circle {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 8px 20px rgba(123, 63, 216, .35);
  border: 4px solid var(--bg);
}

/* ---------- Foglio (dialog) ---------- */
.spv-sheet {
  width: 100%; max-width: 520px; margin: auto auto 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--ink);
  max-height: 92vh;
}
.spv-sheet::backdrop { background: rgba(10, 16, 32, .55); }
.spv-sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.spv-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.spv-sheet__title { font-size: 24px; }

/* ---------- Accesso ---------- */
.spv-login__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: -8px 0 22px; }
.spv-login__intro .spv-logo { flex-direction: column; gap: 10px; }
.spv-login__intro .spv-logo__mark { width: 72px; }
.spv-login__intro .spv-logo__word { font-size: 24px; }
.spv-login__title { font-size: 26px; margin-top: 6px; }
.spv-google { min-height: 48px; display: flex; justify-content: center; align-items: center; }
.spv-google[aria-busy="true"] { opacity: .5; pointer-events: none; }
.spv-google__placeholder { color: var(--ink-2); font-size: 14px; }
.spv-login__legal { font-size: 13px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.spv-login__legal a { color: var(--ink-2); }
.spv-login__email { border-top: 1px solid var(--line); padding-top: 14px; }
.spv-login__email summary { cursor: pointer; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); min-height: 44px; display: flex; align-items: center; justify-content: center; list-style: none; }
.spv-login__email summary::-webkit-details-marker { display: none; }
.spv-login__email[open] summary { margin-bottom: 8px; }

/* ---------- Form ---------- */
.spv-field { display: flex; flex-direction: column; gap: 6px; }
.spv-field label { font-weight: 800; font-size: 15px; }
.spv-field input {
  min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #c9cfdc;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 17px;
}
.spv-field input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.spv-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.spv-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: #7b3fd8; }
.spv-alert { background: var(--alert-bg); color: var(--alert-ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.spv-badge-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
}
.spv-badge-icon--brand { width: 84px; height: 84px; background: var(--brand-grad); color: #fff; }

/* ---------- Utilità ---------- */
.spv-center { text-align: center; }
.spv-small { font-size: 14px; }
.spv-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spv-grow { flex: 1 1 auto; }
.spv-hint { font-size: 14px; color: var(--ink-2); text-align: center; }
.spv-section-title { font-size: 19px; margin-bottom: 10px; }
.spv-strong-link { color: var(--ink); font-weight: 800; }
.spv-link-btn { background: none; border: 0; padding: 6px 0; min-height: 36px; cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.spv-notice { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.spv-notice--warn { background: #fff4df; color: #5a4210; }
@media (prefers-color-scheme: dark) { .spv-notice--warn { background: #3a2f12; color: #ffe2a6; } }
.spv-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.spv-tag--voice { color: #6a2fc9; }
@media (prefers-color-scheme: dark) { .spv-tag--voice { color: #c9b0ff; } }
.spv-desktop-only { display: none; }
.spv-btn--danger { background: #b3261e; color: #fff; }
.spv-btn--light { background: #fff; color: #13213c; }
.spv-btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.spv-field select, .spv-field textarea, .spv-comment-form textarea, .spv-appeal textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #c9cfdc;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.5;
}
.spv-field select { min-height: 52px; }

/* ---------- Pillole (ordinamenti e categorie) ---------- */
.spv-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.spv-pills::-webkit-scrollbar { display: none; }
.spv-pill { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.spv-pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spv-pills--quiet .spv-pill { min-height: 36px; font-size: 14px; font-weight: 600; }
.spv-pills--quiet .spv-pill.is-active { background: var(--surface); color: var(--ink); border-color: var(--ink); }

/* ---------- Card: statistiche e badge ---------- */
.spv-card__media { position: relative; }
.spv-card__badge { position: absolute; left: 10px; bottom: 10px; background: rgba(19,33,60,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.spv-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.spv-card__stat { font-weight: 700; color: var(--ink); }

/* ---------- Studio di registrazione ---------- */
.spv-studio { min-height: calc(100vh - 140px); }
.spv-screen { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.spv-studio__prompt { font-size: 28px; line-height: 1.2; text-align: center; margin-top: 12px; outline: none; }
.spv-consent { background: var(--surface); padding: 14px; border-radius: 14px; }
.spv-rec-btn {
  align-self: center; width: 108px; height: 108px; border-radius: 50%; border: 6px solid color-mix(in srgb, #7b3fd8 20%, var(--bg));
  background: var(--brand-grad); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(123,63,216,.35); margin-top: 8px;
}
.spv-rec-btn:active { transform: scale(.96); }
.spv-screen--dark {
  position: fixed; inset: 0; z-index: 50; background: #13213c; color: #fff; justify-content: center; align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}
.spv-screen--dark .spv-studio__prompt { max-width: 22ch; }
.spv-screen--dark .spv-row { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; }
.spv-screen--dark .spv-btn { min-height: 60px; }
body.spv-recording .spv-tabbar, body.spv-recording .spv-header { display: none; }
.spv-meter { height: 72px; display: flex; align-items: center; gap: 4px; }
.spv-meter span { display: block; width: 5px; height: 64px; border-radius: 3px; background: #f08a73; transform: scaleY(.08); transition: transform .08s linear; }
.spv-timer { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.spv-rec-status { display: flex; align-items: center; gap: 8px; color: #c9cfe0; }
.spv-dot { width: 10px; height: 10px; border-radius: 50%; background: #8e8ba3; display: inline-block; }
.spv-dot.is-live { background: #ff4d3a; animation: spv-pulse 1.2s ease-in-out infinite; }
@keyframes spv-pulse { 50% { opacity: .35; } }
.spv-audio { width: 100%; }
.spv-segmented { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.spv-segmented legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.spv-segmented label { position: relative; }
.spv-segmented input { position: absolute; opacity: 0; inset: 0; }
.spv-segmented span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 4px 8px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; }
.spv-segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.spv-segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.spv-progress { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.spv-progress span { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .2s; }

.spv-steps { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; }
.spv-steps li { display: flex; gap: 14px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.spv-steps small { display: block; font-size: 13px; color: var(--ink-2); }
.spv-steps strong { color: var(--ink); }
.spv-steps__badge { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line); position: relative; }
.spv-steps li.is-current .spv-steps__badge { border-color: #7b3fd8; border-top-color: transparent; animation: spv-spin 1s linear infinite; }
.spv-steps li.is-done .spv-steps__badge { background: #1f7a4d; border-color: #1f7a4d; }
.spv-steps li.is-done .spv-steps__badge::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes spv-spin { to { transform: rotate(360deg); } }

.spv-review__figure { margin: 0; }
.spv-review__figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.spv-titles { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.spv-titles legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.spv-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; line-height: 1.3; }
.spv-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #7b3fd8; }
.spv-choice:has(input:checked) { border-color: var(--ink); background: var(--surface); }

/* ---------- Reazioni e commenti ---------- */
.spv-reactions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.spv-reactions__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.spv-reaction { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.spv-reaction[aria-pressed="true"] { border-color: #7b3fd8; background: color-mix(in srgb, #7b3fd8 12%, var(--bg)); }
.spv-reaction__count { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.spv-comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.spv-comment-form { display: flex; flex-direction: column; gap: 10px; }
.spv-replying { font-size: 14px; color: var(--ink-2); }
.spv-voice { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.spv-voice__row { display: flex; align-items: center; gap: 10px; }
.spv-comment-list { display: flex; flex-direction: column; gap: 18px; }
.spv-comment { display: flex; gap: 12px; }
.spv-comment--reply { margin-top: 14px; }
.spv-comment__body { flex: 1; min-width: 0; }
.spv-comment__meta { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spv-comment__text { margin-top: 2px; overflow-wrap: anywhere; }
.spv-comment__actions { display: flex; gap: 14px; }
.spv-radio-list { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.spv-radio-list label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.spv-radio-list input { width: 20px; height: 20px; accent-color: #7b3fd8; }

/* ---------- Elenchi, esplora, profilo, account ---------- */
.spv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.spv-list__item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spv-list__item.is-unread .spv-list__title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7b3fd8; margin-right: 8px; vertical-align: middle; }
.spv-list__title { font-size: 18px; font-weight: 800; margin: 2px 0; }
.spv-list__actions { display: flex; gap: 12px; align-items: center; }
.spv-status { color: var(--ink); }
.spv-status--published { color: #1f7a4d; }
.spv-status--rejected, .spv-status--transcription_failed { color: #b3261e; }
@media (prefers-color-scheme: dark) { .spv-status--published { color: #7fd6a5; } .spv-status--rejected, .spv-status--transcription_failed { color: #ff9a91; } }
.spv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spv-tile { min-height: 96px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.spv-tile small { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.spv-tile--brand { background: var(--brand-grad); color: #fff; }
.spv-profile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 24px; }
.spv-avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.spv-card-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
.spv-danger { border-color: #e9b4b0; }
.spv-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d6336c; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.spv-tabbar__item { position: relative; }
.spv-tabbar--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.spv-footer { max-width: var(--col); margin: 24px auto 0; padding: 20px var(--pad) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.spv-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.spv-footer a { color: var(--ink-2); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .spv-tabbar { display: none; }
  .spv-header { padding-left: max(24px, calc((100vw - 1040px) / 2)); padding-right: max(24px, calc((100vw - 1040px) / 2)); }
  .spv-header .spv-header__cta { display: inline-flex; min-height: 46px; padding: 0 18px; }
  .spv-main { padding-top: 32px; }
  .spv-story__title { font-size: 40px; }
  .spv-sheet { margin: auto; border-radius: 24px; }
  .spv-desktop-only { display: inline-flex; }
  .spv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spv-screen--dark { position: static; border-radius: var(--radius-lg); min-height: 560px; }
  body.spv-recording .spv-header { display: flex; }
}

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