@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..600;1,6..72,400..600&family=Jost:wght@400;500;600&display=swap');

/* Same tokens as the marketing site (docs/demo.css). */
:root {
  --ink: #172622;
  --ink-soft: #2a3b36;
  --cream: #f4f0e7;
  --paper: #fffdf9;
  --orange: #e86240;
  --orange-dark: #c84a2d;
  --orange-soft: #f9e2d9;
  --sage: #a8bcae;
  --sage-soft: #e4ece5;
  --gold: #d3ad62;
  --muted: #69756f;
  --line: #ded8cc;
  --danger: #b4362c;
  --danger-soft: #f7e0dd;
  --ok: #2f7d4f;
  --ok-soft: #e2f0e6;
  --shadow: 0 28px 80px rgba(17,31,26,.12);
  --shadow-sm: 0 1px 2px rgba(17,31,26,.05), 0 8px 24px rgba(17,31,26,.06);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i .fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #962a21; border-color: #962a21; }
.btn.small { min-height: 36px; padding: 0 15px; font-size: 14px; }
.link-btn.danger { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 6px 0 0; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: #172923 url("/assets/books-and-headphones-background.webp") center 54% / cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px 48px; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,18,15,.78), rgba(9,18,15,.05) 58%), linear-gradient(90deg, rgba(12,24,20,.25), transparent 60%); }
.auth-art > * { position: relative; }
.auth-art .brand { color: #f4efe6; }
.auth-art blockquote { margin: 0; max-width: 520px; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.01em; }
.auth-art blockquote em { color: #ffd4c4; }
.auth-art p { max-width: 460px; color: rgba(255,255,255,.82); margin: 16px 0 0; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--cream); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0 0 8px; letter-spacing: -.01em; }
.auth-card .lede { color: var(--muted); margin: 0 0 28px; }
.auth-card .btn.primary { width: 100%; margin-top: 6px; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-switch a { color: var(--orange-dark); font-weight: 600; }
.auth-foot { margin-top: 28px; display: flex; gap: 18px; justify-content: center; color: var(--muted); font-size: 13px; }
.auth-foot span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 44px); background: rgba(244,240,231,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 20px/1 var(--serif); color: var(--ink); }
.brand svg { width: 22px; height: 22px; }
.topbar .who { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px) 90px; }

.banner { position: relative; overflow: hidden; margin: 28px 0 30px; border-radius: 26px; min-height: 230px; background: #172923 url("/assets/books-and-headphones-background.webp") center 56% / cover no-repeat; color: #fff; display: flex; align-items: flex-end; padding: 34px 38px; box-shadow: var(--shadow); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,18,15,.82), rgba(9,18,15,.35) 55%, rgba(9,18,15,.05)); }
.banner > div { position: relative; max-width: 560px; }
.overline { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.overline span { width: 22px; height: 1px; background: currentColor; }
.banner .overline { color: #ffc2ad; }
.banner h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1; letter-spacing: -.01em; }
.banner p { margin: 12px 0 0; color: rgba(255,255,255,.84); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 22px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); font-size: 14px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 16px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.01em; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- upload ---------- */
.upload { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; min-height: 290px; margin: 18px; padding: 28px; border: 1.5px dashed #cfc6b4; border-radius: 16px; background: repeating-linear-gradient(135deg, #fbf8f1 0 14px, #f8f4ea 14px 28px); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--orange); background: #fdf3ee; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon { width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 6px; }
.drop .icon svg { width: 26px; height: 26px; }
.drop strong { font-size: 18px; }
.drop .file-chosen { color: var(--ink); font-weight: 600; }
.upload-side { padding: 26px 26px 24px 8px; display: flex; flex-direction: column; }
.upload-side h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.upload-side > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.voices { display: grid; gap: 10px; margin-bottom: 18px; }
.voice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.voice.selected { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.voice input { accent-color: var(--orange); }
.voice div { flex: 1; min-width: 0; }
.voice strong { display: block; font-size: 14px; }
.voice small { color: var(--muted); font-size: 12.5px; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); display: grid; place-items: center; cursor: pointer; flex: none; }
.play svg { width: 14px; height: 14px; }
.upload-side .btn.primary { margin-top: auto; }
.price-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 0 0 12px; }

.pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--sage-soft); color: var(--ink-soft); }
.pill.work { background: #e7edf9; color: #3257a8; }
.pill.work::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.pill.ready { background: var(--ok-soft); color: var(--ok); }
.pill.action { background: var(--orange-soft); color: var(--orange-dark); }
.pill.fail { background: var(--danger-soft); color: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 12px; font-size: 12.5px; font-weight: 600; color: #9aa39e; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: #e9e3d6; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ink); }
.steps li.now { color: var(--orange-dark); }
.steps li.now::before { background: linear-gradient(90deg, var(--orange) var(--p, 35%), #e9e3d6 var(--p, 35%)); }

.progress { display: grid; gap: 8px; }
.bar { height: 10px; border-radius: 999px; background: #ece6d9; overflow: hidden; }
.bar span { display: block; height: 100%; min-width: 4%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #f08a64); transition: width .6s ease; }
.progress .hint { display: flex; justify-content: space-between; gap: 10px; }

.player { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.player .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 700; white-space: nowrap; }
.player audio { flex: 1; min-width: 0; height: 38px; }

.worker-note { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.off { background: var(--gold); }

/* ---------- test checkout ---------- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.checkout { width: 100%; max-width: 440px; padding: 34px; text-align: center; }
.checkout h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 12px 0 6px; line-height: 1; }
.checkout .amount { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 22px 0 4px; }
.checkout .btn { width: 100%; margin-top: 22px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; padding: 26px 24px 30px; }
  .upload { grid-template-columns: 1fr; }
  .upload-side { padding: 0 22px 22px; }
  .banner { min-height: 190px; padding: 26px; }
}
@media (max-width: 560px) {
  .topbar .who .email { display: none; }
  .topbar .who { gap: 8px; }
  .topbar .btn.small { padding: 0 12px; }
  .worker-note { font-size: 0; gap: 0; }            /* just the status dot */
  .steps li { font-size: 11px; }
  .player { flex-direction: column; align-items: stretch; }
}

/* ---------- account ---------- */
.account { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.account::backdrop { background: rgba(17, 31, 26, .38); backdrop-filter: blur(3px); }
.account h2 { margin: 0 0 4px; font: 400 32px/1.05 var(--serif); letter-spacing: -.01em; }
.account h3 { margin: 22px 0 12px; font: 500 15px/1.3 var(--sans); }
.account code { font-size: 12px; background: var(--cream); padding: 1px 5px; border-radius: 5px; }
.account-close { position: absolute; top: 18px; right: 22px; margin: 0; }
.account-foot { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee8dc; }
.account .notice { margin: 12px 0 0; }


/* ---------- library ---------- */
.empty { padding: 42px 24px; text-align: center; color: var(--muted); }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 22px; }
.library-head h1 { margin: 0; font: 400 clamp(34px, 4vw, 46px)/1 var(--serif); letter-spacing: -.01em; }
.summary { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.upload { margin-bottom: 26px; }
.upload-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.tabs button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e9e3d6; color: var(--ink-soft); font-size: 12px; text-align: center; }
.tabs button:hover:not(:disabled) { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs button[aria-selected="true"] span { background: var(--ink); color: #fff; }
.tabs button:disabled { opacity: .45; cursor: default; }
.tools { display: flex; align-items: center; gap: 10px; }
.search { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.search svg { width: 16px; height: 16px; }
.search input { width: 170px; border: 0; outline: none; background: transparent; font-size: 14px; }

.books { display: grid; gap: 10px; }
.book { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.book:hover { border-color: #cfc6b4; }
.book.picked { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.book-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) 92px 164px 22px; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; cursor: pointer; border-radius: 16px; outline: none; }
.book-row:focus-visible { box-shadow: 0 0 0 3px var(--orange-soft); }
.book-row:has(.pick) { grid-template-columns: 22px minmax(0, 1.6fr) minmax(0, 1.1fr) 92px 164px; }
.pick { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.book-main { min-width: 0; }
.book-main h3 { margin: 0; font: 400 23px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-main .meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 13px; }
.book-status { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.book-status .line { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mini { width: 100%; max-width: 180px; height: 5px; border-radius: 999px; background: #ece6d9; overflow: hidden; }
.mini span { display: block; height: 100%; border-radius: inherit; background: var(--orange); transition: width .6s ease; }
.book-price { font: 400 22px/1 var(--serif); text-align: right; }
.book-price small { display: block; margin-top: 4px; font: 400 12px/1 var(--sans); color: var(--muted); }
.book-cta { display: flex; justify-content: flex-end; min-width: 0; }
.chevron { color: var(--muted); transition: transform .2s ease; }
.book-row[aria-expanded="true"] [data-open] { visibility: hidden; }
.book-row[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.book-detail { display: grid; gap: 18px; padding: 20px 22px; border-top: 1px solid #eee8dc; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.book select { min-height: 36px; border-radius: 999px; border: 1px solid var(--line); padding: 0 12px; background: #fff; font-size: 14px; }
.detail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 14px; border-top: 1px solid #eee8dc; }
.detail-foot .manage { display: flex; align-items: center; gap: 18px; }
.detail-foot .link-btn { font-size: 14px; }
.rename { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rename input { min-height: 36px; width: min(320px, 70vw); padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rename input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

.bulkbar { position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(560px, calc(100vw - 32px)); padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.bulkbar .check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.bulkbar .check input { width: 18px; height: 18px; accent-color: var(--orange); }
.bulkbar .buttons { display: flex; gap: 8px; }
.bulkbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.bulkbar .btn:disabled { opacity: .45; }
body.with-bulkbar .wrap { padding-bottom: 130px; }

.confirm-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.confirm p { margin: 14px 0 0; }
.confirm .warn { padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }

@media (max-width: 860px) {
  .book-row { grid-template-columns: minmax(0, 1fr) auto 22px; grid-template-areas: "main price chev" "status cta cta"; row-gap: 12px; }
  .book-row:has(.pick) { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "pick main price" "pick status status"; }
  .book-row .pick { grid-area: pick; align-self: start; margin-top: 4px; }
  .book-main { grid-area: main; }
  .book-status { grid-area: status; }
  .book-price { grid-area: price; }
  .book-cta { grid-area: cta; }
  .chevron { grid-area: chev; }
}
@media (max-width: 560px) {
  .library-head { align-items: stretch; flex-direction: column; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .tools { width: 100%; justify-content: flex-end; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .book-row { padding: 14px 14px 14px 16px; gap: 10px 12px; }
  .book-main h3 { font-size: 20px; white-space: normal; }
  .book-detail { padding: 16px; }
  .bulkbar { border-radius: 18px; }
}

/* passages the author listens to before we finish (and lines to listen for in a sample) */
.review { display: grid; gap: 14px; }
.review-intro h4 { margin: 0 0 4px; font: 400 24px/1.2 var(--serif); }
.review-intro p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.passages { display: grid; gap: 12px; }
.passage { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.passage.chosen-accept { border-color: #b9d6c2; }
.passage.chosen-retry { border-color: #efc0b0; }
.passage .said { margin: 0; font: 400 19px/1.45 var(--serif); color: var(--ink); }
.passage .heard { margin: 0; display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.passage .heard b { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.passage mark { background: var(--orange-soft); color: var(--orange-dark); border-radius: 4px; padding: 0 3px; }
.passage .heard mark { background: #ece6d9; color: var(--ink); }
.passage audio { width: 100%; height: 38px; }
.passage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.choice { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: #f3eee4; }
.choice button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 600 14px/1 var(--sans); cursor: pointer; }
.choice button:hover:not(:disabled) { color: var(--ink); }
.choice button:disabled { opacity: .45; cursor: default; }
.choice button[data-choice="accept"][aria-pressed="true"] { background: var(--ok); color: #fff; }
.choice button[data-choice="retry"][aria-pressed="true"] { background: var(--orange); color: #fff; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.review-actions .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.flagged { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #f3eee4; font-size: 14px; }
.flagged p { margin: 0; color: var(--ink-soft); }
.flagged ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.flagged li { font: 400 16px/1.45 var(--serif); }
.flagged mark { background: var(--orange-soft); color: var(--orange-dark); border-radius: 4px; padding: 0 3px; }
@media (max-width: 560px) {
  .passage { padding: 14px; }
  .passage .said { font-size: 17px; }
  .choice { width: 100%; }
  .choice button { flex: 1; }
}
