/* ---------- Tokens ---------- */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --text: #1b1a17;
  --muted: #6b655c;
  --line: #e8e2d8;
  --ink: #1b1a17;          /* primary button */
  --ink-text: #faf8f5;
  --accent: #7a3e9d;
  --accent-soft: #f2e9f7;
  --good: #1e6b45;
  --good-soft: #e3f3ea;
  --warn: #9a4d00;
  --warn-soft: #fbeedd;
  --focus: #0b5fff;
  --shadow: 0 1px 2px rgb(27 26 23 / 0.06), 0 8px 24px rgb(27 26 23 / 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121113; --surface: #1c1a1e; --surface-2: #252229; --text: #f4f1ec; --muted: #b3aba0;
    --line: #34303a; --ink: #f4f1ec; --ink-text: #121113; --accent: #cfa6e6; --accent-soft: #2e2536;
    --good: #84d9a9; --good-soft: #1b3326; --warn: #f2b56b; --warn-soft: #3a2a17; --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121113; --surface: #1c1a1e; --surface-2: #252229; --text: #f4f1ec; --muted: #b3aba0;
  --line: #34303a; --ink: #f4f1ec; --ink-text: #121113; --accent: #cfa6e6; --accent-soft: #2e2536;
  --good: #84d9a9; --good-soft: #1b3326; --warn: #f2b56b; --warn-soft: #3a2a17; --focus: #8ab4ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, .display { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.error { color: var(--warn); font-weight: 600; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 650; text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.mode { font-size: 0.72rem; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--muted); margin-right: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--ink-text); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.cats { border-top: 1px solid var(--line); }
.cats-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats-inner::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 0.92rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--muted); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.chip.spark { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.chip.spark[aria-current="page"] { background: var(--accent); color: var(--ink-text); border-color: var(--accent); }

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 96px; outline: none; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.01em; }
.section-head a { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--accent); }
.page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 4px 0 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; min-height: 44px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 99px; border: 1.5px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--ink-text); }
.btn.accent { background: var(--accent); color: var(--ink-text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.ghost[aria-pressed="true"] { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: 26px; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.hero p { color: var(--muted); max-width: 44ch; margin: 10px 0 18px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.hero-art figure { margin: 0; position: relative; }
.hero-art figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--surface); color: var(--text); font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; padding: 40px; } }

.profile-strip { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.profile-strip .tag { font-size: 0.85rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }
.profile-strip button { margin-left: auto; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface-2); aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 10px; bottom: 10px; right: 10px; background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px 12px; font-weight: 600; display: flex; justify-content: space-between; }
.tile small { color: var(--muted); font-weight: 500; }

.style-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: var(--ink-text); text-decoration: none; }
.style-banner h2 { font-family: var(--serif); font-size: 1.5rem; }
.style-banner p { margin: 6px 0 0; opacity: 0.8; }
.style-banner .btn { background: var(--ink-text); color: var(--ink); }

/* ---------- Product grid ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; }
.card a { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-img .pill-wrap { position: absolute; left: 8px; top: 8px; }
.card-body { padding: 10px 2px 0; display: grid; gap: 2px; }
.card-type { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card h3 { font-size: 0.98rem; font-weight: 600; }
.price { font-weight: 700; }
.card .why { font-size: 0.85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: var(--surface); color: var(--text); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.mid { background: var(--accent-soft); color: var(--accent); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); vertical-align: -2px; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .pdp-media { position: sticky; top: 130px; } }
.pdp-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; background: var(--surface-2); }
.pdp-info { display: grid; gap: 18px; }
.pdp-info h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.pdp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.35rem; font-weight: 700; }
.pdp-actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .pdp-actions { grid-template-columns: 1fr 1fr; } .pdp-actions .full { grid-column: 1 / -1; } }
.label-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 8px; }
.label-row span { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; }
.sizes input:checked + span { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sizes .yours { position: absolute; top: -8px; right: -6px; font-size: 0.6rem; background: var(--accent); color: var(--ink-text); border-radius: 99px; padding: 1px 6px; font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks li.warn::before { background: var(--warn-soft); content: "!"; color: var(--warn); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }

/* ---------- Complete the look ---------- */
.rail { list-style: none; padding: 0 0 6px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
@media (min-width: 720px) { .rail { grid-auto-columns: minmax(180px, 23%); } }
.rail > li { scroll-snap-align: start; }
.rail .card-img { aspect-ratio: 4 / 5; }
.rail .add { margin-top: 8px; width: 100%; }
.rail-group + .rail-group { margin-top: 22px; }
.rail-group h3 { font-size: 1rem; margin-bottom: 10px; }

/* ---------- Style me ---------- */
.style-form { display: grid; gap: 22px; max-width: 760px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-row legend { font-weight: 700; margin-bottom: 10px; }
.choice-row label { position: relative; }
.choice-row input { position: absolute; opacity: 0; inset: 0; }
.choice-row span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.choice-row input:checked + span { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.choice-row input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.look-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.look-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 620px) { .look-row { grid-template-columns: 120px 1fr auto; align-items: center; } }
.look-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.look-row h3 { font-size: 1.02rem; }
.look-row a.name { text-decoration: none; }
.look-row ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.look-row .row-actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
@media (min-width: 620px) { .look-row .row-actions { grid-column: auto; flex-direction: column; } }
.total-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); margin-top: 14px; }
.total-bar strong { font-size: 1.3rem; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { color: var(--text); font-family: var(--serif); margin-bottom: 8px; }

/* ---------- Sheets (dialogs) ---------- */
dialog.sheet { width: min(560px, 100vw); max-height: min(92dvh, 900px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.wide-sheet { width: min(760px, 100vw); }
dialog.sheet::backdrop { background: rgb(10 8 12 / 0.55); backdrop-filter: blur(2px); }
@media (max-width: 600px) {
  dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; max-height: 94dvh; }
}
dialog.sheet[open] { animation: rise 0.22s ease; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet > form, dialog.wide-sheet { padding: 0; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px 20px; background: var(--surface); }
.sheet-head h2 { font-family: var(--serif); font-size: 1.35rem; }
.sheet .muted, .sheet .group, .sheet .compare, .sheet .status, .sheet .steps, .sheet .line-items { margin-left: 20px; margin-right: 20px; }
.sheet-foot { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.sheet-foot.row { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-foot.row:not(:has(:not([hidden]))) { display: none; }
.group { border: 0; padding: 0; margin-top: 18px; margin-bottom: 0; }
.group legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.group.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.field select { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px; font: 500 1rem var(--sans); }
.need-grid { display: grid; gap: 8px; }
@media (min-width: 520px) { .need-grid { grid-template-columns: 1fr 1fr; } }
.need { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 0.95rem; }
.need:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.need input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 44px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#profile-photo { width: 76px; height: 96px; object-fit: cover; border-radius: 12px; }

/* Try-on */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.compare figure { margin: 0; }
.compare img, .after { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
.compare img.flat { object-fit: contain; padding: 12px; box-sizing: border-box; }
.after { display: grid; place-items: center; overflow: hidden; }
.after img { animation: fade 0.5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.status { min-height: 1.5em; font-weight: 600; margin-top: 12px; }
.steps { padding-left: 1.3em; display: grid; gap: 4px; color: var(--muted); }
.steps li[data-state="done"] { color: var(--good); }
.steps li[data-state="running"] { color: var(--text); font-weight: 600; }
.steps li[data-state="error"] { color: var(--warn); }
.line-items { list-style: none; padding: 0; margin-top: 8px; margin-bottom: 16px; }
.line-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.line-items .why { display: block; color: var(--muted); font-size: 0.85rem; }
.line-items .total { font-weight: 700; font-size: 1.1rem; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--ink-text); padding: 12px 18px; border-radius: 99px; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: inherit; font-weight: 700; }

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

[hidden] { display: none !important; }
.sheet .group .muted { margin-left: 0; margin-right: 0; }

/* AI stylist */
.ask { display: grid; gap: 12px; max-width: 760px; padding: 20px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ask-label { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.3rem; font-weight: 650; color: var(--text); }
.ask-label svg { color: var(--accent); }
.ask .muted { margin: -6px 0 0; }
.ask-row { display: flex; gap: 10px; align-items: flex-start; }
.ask textarea { flex: 1; min-height: 96px; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 1rem/1.5 var(--sans); }
.ask textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.mic { width: 56px; height: 56px; flex: none; border: 1.5px solid var(--line); background: var(--surface); }
.mic svg { width: 26px; height: 26px; }
.mic.on { background: var(--accent); color: var(--ink-text); border-color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.voice-status:empty { display: none; }
.voice-settings { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 4px 0 10px; }
.voice-settings .check { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; }
.voice-settings input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.voice-settings select { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.voice-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.examples { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.examples::-webkit-scrollbar { display: none; }
.chip.example { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.85rem; color: var(--muted); }
.sub-head { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 14px; }
.heard { margin-bottom: 22px; display: grid; gap: 8px; }
.heard p { margin: 0; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.82rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }
.intro { font-size: 1.05rem; margin: -4px 0 16px; max-width: 65ch; }
.section-head .pill svg { width: 14px; height: 14px; }
