  :root {
    --ink: #171816;
    --ink-soft: #555850;
    --muted: #74786f;
    --line: #d9dbd4;
    --line-strong: #b7bbb1;
    --paper: #f4f5f1;
    --surface: #ffffff;
    --solar: #f4bc36;
    --solar-soft: #fff2bd;
    --coral: #c84632;
    --cyan: #187986;
    --player-height: 104px;
    --header-height: 58px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
  }
  body.has-transport { padding-bottom: var(--player-height); }
  button, input, select, textarea { font: inherit; letter-spacing: 0; }
  button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(24, 121, 134, 0.28);
    outline-offset: 3px;
  }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  img { display: block; max-width: 100%; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-height);
    background: rgba(244, 245, 241, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .site-header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    background: var(--ink);
    color: var(--solar);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1;
  }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .nav-link {
    padding: 7px 10px;
    border-radius: 5px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
  }
  .nav-link:hover { background: var(--surface); color: var(--ink); }
  .site-footer { border-top: 1px solid var(--line); color: var(--muted); }
  .site-footer-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
  }
  .site-footer-name { color: var(--ink-soft); font-weight: 700; }
  .site-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
  .site-footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .account-button {
    padding: 7px 10px;
    background: transparent;
    color: var(--ink-soft);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
  }
  .account-button:hover { background: var(--surface); color: var(--ink); }
  .report-icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }
  .report-icon-button:hover { background: var(--surface); color: var(--coral); border-color: var(--line); }
  .add-book-button {
    min-height: 34px;
    padding: 0 10px;
    background: var(--ink);
    color: var(--surface);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .add-book-button:hover { background: var(--coral); }
  .request-book-button {
    min-height: 34px;
    padding: 0 10px;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .request-book-button:hover { color: var(--cyan); border-color: var(--cyan); }

  .view { display: none; }
  .view.active { display: block; }
  .page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

  .library-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 50px 0 24px;
    border-bottom: 1px solid var(--line-strong);
  }
  .library-head h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
  }
  .library-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
  .library-head-actions { display: flex; align-items: center; gap: 14px; }
  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px;
    padding: 30px 0 72px;
  }
  .resume-section { margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .resume-heading { margin: 0 0 15px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
  .resume-list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
  .resume-item { flex: 0 0 min(340px, 82vw); display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 12px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .resume-cover { position: relative; overflow: hidden; width: 48px; aspect-ratio: 2 / 3; background: var(--ink); border-radius: 3px; }
  .resume-title { display: block; overflow: hidden; font-family: Georgia, serif; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .resume-place { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
  .resume-play { display: grid; place-items: center; width: 34px; height: 34px; background: var(--solar); border-radius: 50%; }
  .book-card {
    display: block;
    min-width: 0;
    border-radius: 6px;
  }
  .book-card-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: var(--ink);
    border: 1px solid rgba(23, 24, 22, 0.18);
    border-radius: 6px;
    box-shadow: 0 16px 38px rgba(23, 24, 22, 0.13);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  .book-card:hover .book-card-cover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(23, 24, 22, 0.19);
  }
  .cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--solar);
    font-family: Georgia, serif;
    font-size: 64px;
  }
  .book-card-copy { padding: 14px 2px 0; }
  .book-card-title {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
  }
  .book-card-author { margin-top: 5px; color: var(--ink-soft); font-size: 14px; }
  .book-card-meta { display: grid; gap: 3px; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.35; text-transform: uppercase; }
  .reading-progress { display: grid; gap: 6px; margin-top: 12px; }
  .reading-progress-copy { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.25; }
  .reading-progress-copy span:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
  .reading-progress-track { overflow: hidden; height: 4px; background: var(--line); border-radius: 2px; }
  .reading-progress-fill { display: block; width: 0; height: 100%; background: var(--cyan); border-radius: inherit; }
  .book-progress { max-width: 440px; margin-top: 18px; }
  .book-provenance { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .book-provenance h2 { margin: 0 0 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
  .book-provenance dl { display: grid; gap: 8px; margin: 0; }
  .book-provenance dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .book-provenance dt { color: var(--muted); font-size: 12px; }
  .book-provenance dd { min-width: 0; margin: 0; color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
  .book-provenance a { text-decoration: underline; text-underline-offset: 3px; }
  .book-provenance code { font-size: 11px; }
  .empty-state, .loading-state, .error-state {
    padding: 56px 0;
    color: var(--muted);
    font-size: 15px;
  }
  .error-state { color: var(--coral); }
  .error-state strong, .error-state span { display: block; margin-bottom: 8px; }
  .error-state .feedback-action { margin-top: 6px; }

  .book-page { padding: 44px 0 80px; }
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
  }
  .back-link:hover { color: var(--ink); }
  .book-profile {
    display: grid;
    grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: start;
  }
  .book-profile-cover {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--ink);
    border-radius: 6px;
    box-shadow: 0 22px 50px rgba(23, 24, 22, 0.18);
  }
  .book-profile-copy { padding-top: 10px; min-width: 0; }
  .book-kicker { color: var(--cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; }
  .book-title {
    max-width: 760px;
    margin: 12px 0 8px;
    overflow-wrap: anywhere;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.02;
  }
  .book-author { color: var(--ink-soft); font-size: 18px; }
  .book-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: var(--muted); font-size: 13px; }
  .primary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 28px;
    padding: 0 18px;
    background: var(--ink);
    color: var(--surface);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
  }
  .primary-action:hover { background: var(--coral); }
  .book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
  .book-actions .primary-action { margin-top: 0; }
  .offline-action {
    min-height: 44px;
    padding: 0 15px;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .offline-action:hover:not(:disabled) { color: var(--cyan); border-color: var(--cyan); }
  .offline-action:disabled { cursor: wait; opacity: 0.62; }
  .context-report-action {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }
  .context-report-action:hover { color: var(--cyan); border-color: var(--cyan); }
  .reader-toolbar .context-report-action { min-height: 34px; margin-left: auto; }
  .reader-toolbar .speed-control + .context-report-action { margin-left: 0; }
  .offline-note { flex-basis: 100%; min-height: 18px; color: var(--muted); font-size: 12px; }
  .offline-badge { color: var(--cyan); font-weight: 800; }
  .chapter-section { margin-top: 48px; }
  .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
  }
  .section-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
  .section-heading span { color: var(--muted); font-size: 12px; }
  .chapter-list { margin: 0; padding: 0; list-style: none; }
  .chapter-row { border-bottom: 1px solid var(--line); }
  .chapter-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 70px;
    padding: 11px 4px;
  }
  .chapter-link:hover .chapter-row-title { color: var(--coral); }
  .chapter-index { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .chapter-row-copy { display: grid; min-width: 0; gap: 4px; }
  .chapter-row-title { overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 17px; line-height: 1.3; }
  .chapter-position { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  .chapter-status { color: var(--cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; }
  .chapter-link.current { padding-right: 10px; padding-left: 12px; background: var(--solar-soft); box-shadow: inset 3px 0 var(--solar); }
  .chapter-link.current .chapter-status { color: var(--ink); }
  .chapter-link.locked { color: var(--muted); cursor: pointer; }
  .chapter-link.locked .chapter-status { color: var(--muted); }
  .chapter-link.unavailable { color: var(--muted); cursor: default; }
  .chapter-tail { display: grid; grid-template-columns: auto auto; gap: 12px; align-items: center; }
  .chapter-duration { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  .chapter-link.unavailable .chapter-status { color: var(--muted); }

  .reader-header {
    position: sticky;
    top: var(--header-height);
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .reader-header-inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
  }
  .reader-context { min-width: 0; }
  .reader-book-link {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .reader-title {
    margin: 3px 0 0;
    overflow: hidden;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .chapter-stepper { display: flex; align-items: center; gap: 6px; }
  .icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
  }
  .icon-button:hover:not(:disabled) { background: var(--solar-soft); border-color: var(--solar); }
  .icon-button:disabled { cursor: default; opacity: 0.32; }
  .reader-layout {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    gap: clamp(34px, 6vw, 84px);
    justify-content: center;
    align-items: start;
    padding: 28px 20px 72px;
  }
  .chapter-rail {
    position: sticky;
    top: calc(var(--header-height) + 102px);
    max-height: calc(100dvh - var(--header-height) - 150px - var(--player-height));
    overflow: auto;
    padding-right: 8px;
  }
  .rail-label { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .rail-list { display: grid; gap: 2px; }
  .rail-chapter {
    width: 100%;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px 8px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    text-align: left;
    cursor: pointer;
  }
  .rail-chapter:hover { background: rgba(255, 255, 255, 0.7); }
  .rail-chapter.active { border-left-color: var(--coral); background: var(--surface); }
  .rail-number { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  .rail-title { overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 14px; line-height: 1.35; }
  .reader-main { min-width: 0; }
  .reader-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: 42px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .chapter-select { display: none; }
  .toggle-control { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
  .toggle-control input { position: absolute; opacity: 0; pointer-events: none; }
  .toggle-track {
    position: relative;
    width: 30px;
    height: 18px;
    flex: 0 0 30px;
    background: var(--line-strong);
    border-radius: 10px;
    transition: background 140ms ease;
  }
  .toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-radius: 50%;
    transition: transform 140ms ease;
  }
  .toggle-control input:checked + .toggle-track { background: var(--cyan); }
  .toggle-control input:checked + .toggle-track::after { transform: translateX(12px); }
  .speed-control { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
  .speed-control input { width: 86px; accent-color: var(--coral); }
  .speed-value { min-width: 34px; color: var(--ink); font-variant-numeric: tabular-nums; }
  .transcript {
    padding: 42px 0 calc(40px + var(--player-height));
    font-family: Georgia, "Times New Roman", serif;
  }
  .transcript.reading-mode { padding: 42px 22px 46px; }
  .transcript.reading-mode .passage-wrap { display: inline; }
  .passage-wrap { position: relative; }
  .passage {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 58px 13px 22px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    text-align: left;
    cursor: pointer;
    scroll-margin-top: 190px;
    transition: background 140ms ease, border-color 140ms ease;
  }
  .passage:hover { background: rgba(255, 255, 255, 0.72); }
  .passage.active { background: var(--solar-soft); border-left-color: var(--coral); }
  .transcript.reading-mode .passage { display: inline; padding: 0; cursor: text; }
  .transcript.reading-mode .passage:hover { background: transparent; }
  .transcript.reading-mode .passage::after { content: " "; }
  .transcript.reading-mode .passage-text { display: inline; }
  .audio-only-control[hidden] { display: none; }
  .passage-flag {
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    opacity: 0;
    transition: opacity 120ms ease, color 120ms ease, border-color 120ms ease;
  }
  .passage-wrap:hover .passage-flag,
  .passage-wrap:focus-within .passage-flag,
  .passage.active + .passage-flag,
  .passage-flag.reported { opacity: 1; }
  .passage-flag:hover, .passage-flag.reported { color: var(--coral); border-color: var(--coral); }
  .speaker {
    display: block;
    margin-bottom: 6px;
    color: var(--coral);
    font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .passage-text {
    display: block;
    overflow-wrap: anywhere;
    color: #252720;
    font-size: 19px;
    line-height: 1.7;
  }
  .diagnostic {
    display: none;
    margin-top: 7px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    line-height: 1.4;
  }
  body.details-on .diagnostic { display: block; }
  .scene-break {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    scroll-margin-top: 190px;
  }
  .scene-break::after { content: ""; width: 42px; height: 1px; background: var(--line-strong); }
  .transcript-loading { padding: 70px 18px; color: var(--muted); font-family: inherit; font-size: 15px; text-align: center; }

  .transport {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: var(--player-height);
    background: #171816;
    color: #f8f8f3;
    border-top: 1px solid #32342e;
    box-shadow: 0 -18px 45px rgba(23, 24, 22, 0.18);
  }
  .transport[hidden] { display: none; }
  .transport-progress {
    display: block;
    width: 100%;
    height: 5px;
    margin: 0;
    accent-color: var(--solar);
    cursor: pointer;
  }
  .transport-inner {
    width: min(1180px, calc(100% - 28px));
    min-height: 91px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 24px;
    align-items: center;
  }
  .transport-meta { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; }
  .transport-meta:hover .transport-text { color: var(--solar); }
  .transport-cover { position: relative; overflow: hidden; width: 42px; aspect-ratio: 2 / 3; background: #2c2e29; border-radius: 3px; }
  .transport-copy { min-width: 0; }
  .transport-chapter { overflow: hidden; color: #b6baaf; font-size: 11px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
  .transport-text { margin-top: 3px; overflow: hidden; font-family: Georgia, serif; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .transport-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .transport-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    color: #f8f8f3;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
  }
  .transport-button:hover { background: #30322d; }
  .transport-button.primary { width: 48px; height: 48px; background: var(--solar); color: var(--ink); font-size: 19px; }
  .transport-button.primary:hover { background: #ffd25e; }
  .transport-tail { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
  .transport-time { color: #b6baaf; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .transport-follow { color: #b6baaf; white-space: nowrap; }
  .transport-follow .toggle-track { background: #444740; }
  .transport-follow .toggle-track::after { background: #f8f8f3; }
  .transport-follow input:checked + .toggle-track { background: var(--cyan); }
  .transport-speed { width: 74px; height: 32px; padding: 0 8px; background: #292b27; color: #f8f8f3; border: 1px solid #444740; border-radius: 4px; font-size: 12px; }
  .transport-flag {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: #b6baaf;
    border: 1px solid #444740;
    border-radius: 4px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
  }
  .transport-flag:hover:not(:disabled) { color: var(--solar); border-color: var(--solar); }
  .transport-flag.reported { color: var(--solar); border-color: var(--solar); }
  .transport-flag:disabled { cursor: default; opacity: 0.4; }

  .auth-dialog { width: min(420px, calc(100% - 28px)); padding: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 24px 80px rgba(23, 24, 22, 0.3); }
  .auth-dialog::backdrop { background: rgba(23, 24, 22, 0.45); }
  .auth-inner { padding: 28px; }
  .auth-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
  .auth-title { margin: 0; font-family: Georgia, serif; font-size: 27px; }
  .auth-copy { margin: 9px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .auth-close { width: 30px; height: 30px; padding: 0; background: transparent; border: 0; cursor: pointer; font-size: 24px; }
  .auth-form { display: grid; gap: 12px; }
  .auth-label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
  .auth-label[hidden] { display: none; }
  .auth-input { width: 100%; height: 44px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 16px; }
  .auth-submit { height: 44px; padding: 0 18px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 800; }
  .auth-submit:disabled { opacity: 0.55; cursor: wait; }
  .auth-message { min-height: 20px; margin: 2px 0 0; color: var(--coral); font-size: 13px; }
  .auth-message.success { color: var(--cyan); }
  .auth-email { color: var(--ink); font-weight: 700; }
  .qa-dialog { width: min(520px, calc(100% - 28px)); }
  .qa-excerpt { margin: 0 0 20px; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--solar); font-family: Georgia, serif; font-size: 14px; line-height: 1.5; }
  .qa-note { min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
  .qa-reason-field { min-width: 0; margin: 0; padding: 0; border: 0; }
  .qa-reason-field legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
  .qa-reason-options { display: flex; flex-wrap: wrap; gap: 8px; }
  .qa-reason-chip { position: relative; cursor: pointer; }
  .qa-reason-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .qa-reason-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    background: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
  }
  .qa-reason-chip:hover span { color: var(--cyan); border-color: var(--cyan); }
  .qa-reason-chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .qa-reason-chip input:focus-visible + span { outline: 3px solid rgba(24, 121, 134, 0.28); outline-offset: 3px; }
  .qa-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  .qa-cancel { height: 40px; padding: 0 12px; background: transparent; border: 0; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
  .qa-dialog-actions .auth-submit { height: 40px; }
  .upload-dialog { width: min(560px, calc(100% - 28px)); }
  .upload-form { gap: 18px; }
  .upload-file-label { position: relative; display: block; cursor: pointer; }
  .upload-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .upload-file-surface {
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 20px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 5px;
    text-align: center;
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  }
  .upload-file-label:hover .upload-file-surface { color: var(--cyan); border-color: var(--cyan); }
  .upload-file-input:focus-visible + .upload-file-surface { outline: 3px solid rgba(24, 121, 134, 0.28); outline-offset: 3px; }
  .upload-file-icon { display: block; color: var(--coral); font-size: 25px; line-height: 1; }
  .upload-file-name { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
  .upload-file-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
  .upload-rights { min-width: 0; margin: 0; padding: 0; border: 0; }
  .upload-rights legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
  .upload-rights-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .upload-rights-choice { position: relative; cursor: pointer; }
  .upload-rights-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .upload-rights-copy { display: block; min-height: 88px; padding: 13px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; }
  .upload-rights-title { display: block; font-size: 13px; font-weight: 800; }
  .upload-rights-note { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .upload-rights-choice:hover .upload-rights-copy { border-color: var(--cyan); }
  .upload-rights-choice input:checked + .upload-rights-copy { background: var(--solar-soft); border-color: var(--solar); }
  .upload-rights-choice input:focus-visible + .upload-rights-copy { outline: 3px solid rgba(24, 121, 134, 0.28); outline-offset: 3px; }
  .upload-queue { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  .upload-queue-title { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .upload-imports { margin: 0; padding: 0; list-style: none; }
  .upload-import { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  .upload-import:first-child { border-top: 0; }
  .upload-import-name { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
  .upload-import-meta { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
  .upload-import-status { align-self: start; color: var(--cyan); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .upload-import-status.failed { color: var(--coral); }
  .request-list { display: grid; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
  .request-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .request-query { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
  .request-vote { min-width: 66px; height: 34px; padding: 0 10px; background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 800; }
  .request-vote:hover { color: var(--cyan); border-color: var(--cyan); }
  .request-vote.active { background: var(--solar-soft); border-color: var(--solar); }
  .curation-copy { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
  .curation-head-actions { display: flex; align-items: center; gap: 9px; }
  .curation-adopt-button { min-height: 38px; padding: 0 14px; background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
  .curation-adopt-button:hover { background: var(--cyan); border-color: var(--cyan); }
  .curation-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .curation-source-identity { padding: 11px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
  .curation-source-identity[hidden] { display: none; }
  .curation-source-identity-label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .curation-source-identity-value { margin-top: 4px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; }
  .curation-evidence { margin: 14px 0; padding: 11px 12px; background: var(--paper); border-left: 3px solid var(--solar); color: var(--ink-soft); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
  .curation-note { width: 100%; min-height: 72px; resize: vertical; }
  .curation-decision { height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
  .curation-decision.approve { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .curation-decision.approve:hover { background: var(--cyan); border-color: var(--cyan); }
  .curation-decision.reject { background: transparent; color: var(--coral); }
  .curation-decision.reject:hover { border-color: var(--coral); }
  .curation-page { padding: 28px 0 80px; }
  .curation-workspace { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 2.22fr); min-height: 640px; margin-top: 24px; border-top: 1px solid var(--line-strong); }
  .curation-rail { min-width: 0; padding: 18px 18px 0 0; border-right: 1px solid var(--line); }
  .curation-rail-section + .curation-rail-section { margin-top: 30px; }
  .curation-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
  .curation-section-head h2 { margin: 0; font-size: 11px; text-transform: uppercase; }
  .curation-section-count { color: var(--muted); font-size: 10px; }
  .curation-revision-list { display: grid; border-top: 1px solid var(--line); }
  .curation-revision { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; width: 100%; padding: 12px 8px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
  .curation-revision:hover, .curation-revision.active { background: var(--surface); }
  .curation-revision.active { box-shadow: inset 3px 0 var(--solar); }
  .curation-revision-title { display: block; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .curation-revision-meta { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .curation-status { align-self: start; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .curation-status.approved, .curation-status.active { border-color: var(--cyan); color: var(--cyan); }
  .curation-status.rejected { border-color: var(--coral); color: var(--coral); }
  .curation-status.pending, .curation-status.uploaded { border-color: var(--solar); color: var(--ink); }
  .curation-import-list { display: grid; gap: 10px; }
  .curation-import { padding: 11px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
  .curation-import-title { font-size: 11px; font-weight: 800; }
  .curation-import-meta { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
  .curation-detail { min-width: 0; padding: 18px 0 0 24px; }
  .curation-detail-empty { display: grid; min-height: 360px; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
  .curation-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .curation-detail-head h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.15; }
  .curation-detail-author { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
  .curation-evidence-grid { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .curation-cover-frame { aspect-ratio: 2 / 3; overflow: hidden; background: var(--ink); border-radius: 5px; }
  .curation-cover-frame img { width: 100%; height: 100%; object-fit: cover; }
  .curation-cover-state { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
  .curation-cover-state.verified { color: var(--cyan); }
  .curation-cover-state.failed { color: var(--coral); }
  .curation-identities { display: grid; align-content: start; margin: 0; }
  .curation-identity { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .curation-identity dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .curation-identity dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; }
  .curation-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .curation-review { min-width: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .curation-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .curation-review h3 { margin: 0; font-size: 12px; }
  .curation-review p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .curation-review .curation-note { min-height: 62px; margin-top: 12px; }
  .curation-review-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
  .curation-data { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .curation-data summary { cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .curation-data pre { max-height: 260px; margin: 12px 0 0; padding: 12px; overflow: auto; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
  .curation-cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
  .curation-cast-role { padding: 10px 11px; background: var(--surface); border-left: 3px solid var(--cyan); }
  .curation-cast-name { font-size: 11px; font-weight: 800; }
  .curation-cast-note { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
  .curation-references { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .curation-reference-note { max-width: 680px; margin: -2px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .curation-reference-layout { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.8fr); gap: 18px; }
  .curation-reference-list { align-self: start; border-top: 1px solid var(--line); }
  .curation-reference-item { width: 100%; padding: 0 7px; background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }
  .curation-reference-item.active { background: var(--surface); box-shadow: inset 3px 0 var(--solar); }
  .curation-reference-select { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; min-height: 52px; padding: 9px 0; background: transparent; color: inherit; border: 0; text-align: left; }
  button.curation-reference-select { cursor: pointer; }
  button.curation-reference-select:hover .curation-reference-speaker { color: var(--cyan); }
  .curation-reference-inline-audio { display: block; width: 100%; height: 32px; margin: 0 0 9px; }
  .curation-reference-speaker { display: block; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .curation-reference-role { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .curation-reference-detail { min-width: 0; min-height: 280px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .curation-reference-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .curation-reference-detail h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
  .curation-reference-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
  .curation-reference-audio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 14px; }
  .curation-reference-preview { min-height: 38px; padding: 0 12px; background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 800; }
  .curation-reference-preview:hover { background: var(--cyan); border-color: var(--cyan); }
  .curation-reference-audio audio { width: 100%; height: 38px; }
  .curation-reference-transcript { margin: 14px 0 0; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--solar); font-family: Georgia, serif; font-size: 13px; line-height: 1.55; }
  .curation-reference-identities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin-top: 13px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; overflow-wrap: anywhere; }
  .curation-reference-payload { margin-top: 12px; }
  .curation-reference-payload summary { cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .curation-reference-payload pre { max-height: 240px; margin: 9px 0 0; padding: 10px; overflow: auto; background: var(--paper); border: 1px solid var(--line); font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
  .curation-reference-review { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .curation-reference-review h4, .curation-reference-history h4 { margin: 0; font-size: 11px; text-transform: uppercase; }
  .curation-reference-review .curation-note { margin-top: 9px; }
  .curation-reference-message { min-height: 16px; margin-top: 7px; color: var(--coral); font-size: 10px; }
  .curation-reference-history { margin-top: 16px; }
  .curation-reference-decisions { margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
  .curation-reference-decision { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.45; }
  .curation-reference-decision-meta { color: var(--muted); }
  .curation-reference-decision-note { margin-top: 3px; white-space: pre-wrap; }
  .curation-chapters { padding-top: 20px; }
  .curation-chapter-layout { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.8fr); gap: 18px; margin-top: 10px; }
  .curation-chapter-list { align-self: start; border-top: 1px solid var(--line); }
  .curation-chapter { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 7px 5px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
  .curation-chapter:hover, .curation-chapter.active { background: var(--surface); }
  .curation-chapter-number { color: var(--muted); font-size: 10px; }
  .curation-chapter-title { overflow: hidden; font-family: Georgia, serif; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .curation-chapter-title small { display: block; margin-top: 4px; color: var(--coral); font-family: system-ui, sans-serif; font-size: 9px; line-height: 1.35; white-space: normal; }
  .curation-chapter-preview { min-width: 0; min-height: 260px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .curation-chapter-preview-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .curation-chapter-preview h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 18px; }
  .curation-verification { color: var(--muted); font-size: 10px; font-weight: 800; text-align: right; text-transform: uppercase; }
  .curation-verification.verified { color: var(--cyan); }
  .curation-verification.failed { color: var(--coral); }
  .curation-hashes { display: grid; gap: 4px; margin: 11px 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; overflow-wrap: anywhere; }
  .curation-chunk-list { max-height: 520px; margin: 12px 0 0; padding: 0; overflow: auto; list-style: none; }
  .curation-chunk { display: grid; grid-template-columns: 38px 105px minmax(0, 1fr) auto; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
  .curation-chunk-id, .curation-chunk-speaker { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .curation-chunk-direction { display: block; margin-bottom: 3px; color: var(--cyan); font-size: 9px; font-style: italic; }
  .curation-chunk-report { align-self: start; width: 28px; height: 28px; padding: 0; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 15px; line-height: 1; }
  .curation-chunk-report:hover, .curation-chunk-report:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
  .curation-activate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 20px; padding: 16px; background: var(--ink); color: var(--surface); border-radius: 5px; }
  .curation-activate h3 { margin: 0; font-size: 13px; }
  .curation-activate p { margin: 6px 0 0; color: #c9cbc5; font-size: 11px; line-height: 1.5; }
  .curation-activate-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 40px; padding: 0 15px; background: var(--solar); color: var(--ink); border: 0; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 900; text-decoration: none; }
  .curation-activate-button:disabled { cursor: not-allowed; opacity: .45; }

  .qa-page { padding: 44px 0 80px; }
  .qa-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
  .qa-head h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
  .qa-filter-wrap { position: relative; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
  .qa-filter-wrap::after { content: "\25BE"; position: absolute; right: 11px; color: var(--ink-soft); pointer-events: none; }
  .qa-filter { appearance: none; height: 38px; padding: 0 34px 0 11px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; }
  .qa-list { display: grid; gap: 14px; padding-top: 24px; }
  .qa-item { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
  .qa-item-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
  .qa-location { color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .qa-item h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 18px; line-height: 1.3; }
  .qa-item-summary { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
  .qa-count { color: var(--coral); font-size: 12px; font-weight: 800; }
  .qa-current-status { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .qa-item-text { margin: 14px 0; font-family: Georgia, serif; font-size: 15px; line-height: 1.55; }
  .qa-item audio { width: 100%; height: 38px; }
  .qa-audio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
  .qa-audio-panel { min-width: 0; padding-top: 9px; border-top: 2px solid var(--line-strong); }
  .qa-audio-panel.candidate { border-color: var(--cyan); }
  .qa-audio-panel.candidate.approved { border-color: var(--solar); }
  .qa-audio-panel.candidate.rejected { border-color: var(--line-strong); opacity: .72; }
  .qa-audio-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .qa-candidate-actions { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
  .qa-candidate-button { height: 32px; padding: 0 10px; background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 10px; font-weight: 800; }
  .qa-candidate-button:hover { border-color: var(--cyan); color: var(--cyan); }
  .qa-candidate-button.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .qa-candidate-button.approve.active { background: var(--solar); color: var(--ink); border-color: var(--solar); }
  .qa-candidate-state { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .qa-audio-changed { margin: 0; padding: 10px 12px; background: var(--solar-soft); color: var(--ink-soft); border-left: 3px solid var(--solar); font-size: 12px; line-height: 1.45; }
  .qa-reports { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
  .qa-report { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 12px; line-height: 1.45; }
  .qa-report-meta { color: var(--muted); }
  .qa-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
  .production-page { padding-top: 28px; padding-bottom: 80px; }
  .production-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line); background: var(--surface); }
  .production-metric { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--line); }
  .production-metric:last-child { border-right: 0; }
  .production-metric-value { display: block; font-family: Georgia, serif; font-size: 26px; line-height: 1; }
  .production-metric-label { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .production-section { margin-top: 28px; }
  .production-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
  .production-section h2 { margin: 0; font-size: 13px; text-transform: uppercase; }
  .production-section-note { color: var(--muted); font-size: 11px; }
  .production-workers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .production-worker { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
  .production-worker-state { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
  .production-worker-state.online { background: var(--cyan); }
  .production-worker-state.running { background: var(--solar); }
  .production-worker-name { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .production-worker-detail { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .production-worker-age { color: var(--muted); font-size: 10px; white-space: nowrap; }
  .production-table { border-top: 1px solid var(--line-strong); }
  .production-row { display: grid; grid-template-columns: minmax(230px, 2.2fr) minmax(115px, .9fr) 72px 78px 90px; align-items: center; gap: 12px; min-height: 47px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 11px; }
  .production-row.head { min-height: 34px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .production-job-title { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .production-job-meta { margin-top: 3px; color: var(--muted); font-size: 10px; }
  .production-status { justify-self: start; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .production-status.leased { border-color: var(--solar); color: var(--ink); }
  .production-status.failed { border-color: var(--coral); color: var(--coral); }
  .production-error { overflow: hidden; color: var(--coral); text-overflow: ellipsis; white-space: nowrap; }
  .production-refresh { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); cursor: pointer; font-size: 20px; }
  .production-refresh:hover { border-color: var(--cyan); color: var(--cyan); }
  .admin-note { max-width: 720px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .admin-table-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
  .admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .admin-table th { padding: 9px 8px; color: var(--muted); font-size: 9px; text-align: left; text-transform: uppercase; white-space: nowrap; }
  .admin-table td { padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
  .admin-table tbody tr:hover { background: var(--surface); }
  .admin-primary { font-size: 12px; font-weight: 750; }
  .admin-secondary { margin-top: 3px; color: var(--muted); font-size: 10px; }
  .admin-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .admin-roles { display: flex; flex-wrap: wrap; gap: 5px; min-width: 250px; }
  .admin-role { height: 27px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .admin-role:hover { border-color: var(--cyan); color: var(--cyan); }
  .admin-role.active { border-color: var(--ink); background: var(--ink); color: var(--surface); }
  .admin-role:disabled { cursor: not-allowed; opacity: .55; }
  .admin-links { display: flex; flex-wrap: wrap; gap: 7px; }
  .admin-link { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); font-size: 11px; font-weight: 750; text-decoration: none; }
  .admin-link:hover { border-color: var(--cyan); color: var(--cyan); }
  .qa-decision-label { width: 100%; margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .qa-status-button { height: 34px; padding: 0 11px; background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 800; }
  .qa-status-button:hover { border-color: var(--cyan); color: var(--cyan); }
  .qa-status-button.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .qa-status-button.active:hover { background: var(--cyan); color: var(--surface); border-color: var(--cyan); }
  .qa-open-link { margin-left: auto; color: var(--cyan); font-size: 12px; font-weight: 700; }

  .feedback-page { padding-top: 44px; padding-bottom: 90px; }
  .feedback-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
  .feedback-head h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
  .feedback-new { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--surface); cursor: pointer; font-size: 12px; font-weight: 800; }
  .feedback-new:hover { background: var(--cyan); border-color: var(--cyan); }
  .feedback-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); min-height: 520px; }
  .feedback-case-list { border-right: 1px solid var(--line); }
  .feedback-case-row { display: block; width: 100%; padding: 16px 18px 16px 4px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
  .feedback-case-row:hover, .feedback-case-row.active { background: var(--surface); }
  .feedback-case-row.active { box-shadow: inset 3px 0 var(--coral); }
  .feedback-case-kicker, .feedback-case-meta { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .feedback-case-title { margin-top: 5px; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 16px; line-height: 1.35; }
  .feedback-case-meta { margin-top: 7px; font-weight: 600; text-transform: none; }
  .feedback-detail { min-width: 0; padding: 28px 0 0 32px; }
  .feedback-detail-empty { padding: 50px 0; color: var(--muted); font-family: Georgia, serif; font-size: 18px; }
  .feedback-detail-back { display: none; margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: 12px; font-weight: 700; }
  .feedback-detail h2 { margin: 6px 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.18; }
  .feedback-detail-context { color: var(--muted); font-size: 12px; line-height: 1.5; }
  .feedback-status { display: inline-flex; align-items: center; min-height: 24px; margin-top: 14px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .feedback-thread { display: grid; gap: 10px; margin-top: 28px; }
  .feedback-message { padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
  .feedback-message.agent { border-left: 3px solid var(--cyan); }
  .feedback-message.system { border-left: 3px solid var(--solar); }
  .feedback-message-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
  .feedback-message-author { color: var(--ink-soft); font-weight: 800; }
  .feedback-message-body { margin: 8px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; line-height: 1.55; }
  .feedback-message-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 220px)); gap: 9px; margin-top: 12px; }
  .feedback-message-image { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 9px; text-decoration: none; }
  .feedback-message-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ink); }
  .feedback-message-image span { display: block; overflow: hidden; padding: 6px 7px; text-overflow: ellipsis; white-space: nowrap; }
  .feedback-proposal { margin-top: 12px; padding: 11px 12px; border-left: 3px solid var(--coral); background: var(--paper); font-size: 12px; line-height: 1.5; }
  .feedback-jobs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
  .feedback-job-state { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .feedback-action { min-height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; }
  .feedback-action:hover { border-color: var(--cyan); color: var(--cyan); }
  .feedback-action.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .feedback-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 18px; }
  .feedback-reply textarea { min-height: 66px; }
  .feedback-reply button { align-self: end; min-height: 40px; }
  .feedback-attachment-composer { grid-column: 1 / -1; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 4px; background: var(--surface); }
  .feedback-attachment-prompt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
  .feedback-attachment-pick { min-height: 32px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 800; }
  .feedback-attachment-pick:hover { border-color: var(--cyan); color: var(--cyan); }
  .feedback-attachment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 7px; margin-top: 8px; }
  .feedback-attachment-preview { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; align-items: center; gap: 7px; min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
  .feedback-attachment-preview img { width: 48px; height: 42px; object-fit: cover; background: var(--ink); }
  .feedback-attachment-preview span { overflow: hidden; color: var(--ink-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .feedback-attachment-remove { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
  .feedback-attachment-remove:hover { color: var(--coral); }
  .feedback-attachment-message { min-height: 14px; margin: 6px 0 0; color: var(--coral); font-size: 9px; }
  .feedback-category-options { display: flex; flex-wrap: wrap; gap: 7px; }
  .feedback-category { position: relative; cursor: pointer; }
  .feedback-category input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .feedback-category span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
  .feedback-category input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .feedback-category input:focus-visible + span { outline: 3px solid rgba(24, 121, 134, 0.28); outline-offset: 2px; }
  .feedback-scope-options { display: flex; flex-wrap: wrap; gap: 7px; }
  .feedback-scope-context { margin: 0; color: var(--cyan); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .feedback-excerpt { margin: 0; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--solar); font-family: Georgia, serif; font-size: 14px; line-height: 1.5; }

  @media (max-width: 760px) {
    :root { --player-height: 142px; --header-height: 54px; }
    .auth-dialog, .upload-dialog { width: calc(100% - 20px); max-width: calc(100% - 20px); }
    .auth-inner { padding: 22px 20px; }
    .qa-dialog-actions { flex-wrap: wrap; }
    .site-header-inner { width: calc(100% - 24px); gap: 8px; }
    .brand { gap: 7px; font-size: 13px; }
    .brand-mark { width: 25px; height: 25px; flex-basis: 25px; font-size: 17px; }
    .site-nav { gap: 0; }
    .nav-link, .account-button { padding-right: 7px; padding-left: 7px; font-size: 12px; white-space: nowrap; }
    .add-book-button, .request-book-button { padding: 0 8px; font-size: 12px; white-space: nowrap; }
    .page-shell { width: calc(100% - 28px); }
    .library-head { padding-top: 32px; }
    .library-head h1 { font-size: 29px; }
    .library-head-actions { gap: 9px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .book-card-copy { padding-top: 10px; }
    .book-card-title { font-size: 16px; }
    .book-card-author { font-size: 12px; }
    .book-card-meta { font-size: 10px; }
    .book-page { padding-top: 28px; }
    .book-profile { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
    .book-profile-cover { position: relative; top: auto; }
    .book-profile-copy { padding-top: 0; }
    .book-title { margin-top: 8px; font-size: 30px; }
    .book-author { font-size: 15px; }
    .book-facts { margin-top: 13px; }
    .book-actions { margin-top: 18px; }
    .chapter-section { grid-column: 1 / -1; margin-top: 36px; }
    .chapter-link { grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 4px 10px; padding-top: 14px; padding-bottom: 14px; }
    .chapter-index { grid-row: 1 / span 2; padding-top: 3px; }
    .chapter-tail { grid-column: 2; display: flex; justify-content: space-between; min-width: 0; }
    .chapter-status { font-size: 10px; }
    .chapter-duration { font-size: 10px; }
    .reader-header-inner { width: calc(100% - 24px); min-height: 68px; }
    .reader-title { font-size: 17px; }
    .reader-layout { display: block; padding: 14px 0 50px; }
    .chapter-rail { display: none; }
    .reader-main { width: 100%; }
    .reader-toolbar { padding: 0 14px 14px; gap: 10px 14px; }
    .chapter-select { display: block; width: 100%; height: 40px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
    .speed-control { margin-left: 0; }
    .transcript { padding-top: 24px; }
    .passage { padding: 12px 54px 12px 18px; scroll-margin-top: 178px; }
    .passage-flag { top: 12px; right: 10px; }
    .passage-text { font-size: 18px; line-height: 1.65; }
    .scene-break { scroll-margin-top: 178px; }
    .transport-inner {
      width: calc(100% - 20px);
      min-height: 130px;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-rows: auto auto;
      gap: 8px 12px;
      padding: 10px 0 12px;
    }
    .transport-meta { grid-column: 1; grid-row: 1; }
    .transport-cover { width: 34px; }
    .transport-controls { grid-column: 2; grid-row: 1; gap: 4px; }
    .transport-button { width: 34px; height: 34px; }
    .transport-button.primary { width: 42px; height: 42px; }
    .transport-tail { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; }
    .transport-follow { gap: 6px; }
    .transport-text { font-size: 12px; }
    .qa-page { padding-top: 28px; }
    .qa-head { align-items: start; flex-direction: column; gap: 14px; }
    .qa-head h1 { font-size: 29px; }
    .qa-filter { width: 100%; }
    .qa-report { grid-template-columns: 1fr; gap: 2px; }
    .qa-open-link { width: 100%; margin: 4px 0 0; }
    .feedback-page { padding-top: 28px; }
    .feedback-head { align-items: start; }
    .feedback-head h1 { font-size: 29px; }
    .feedback-layout { display: block; min-height: 0; }
    .feedback-case-list { border-right: 0; }
    .feedback-detail { padding: 24px 0 0; }
    .feedback-layout.has-detail .feedback-case-list { display: none; }
    .feedback-layout:not(.has-detail) .feedback-detail { display: none; }
    .feedback-detail-back { display: block; }
    .feedback-reply { grid-template-columns: 1fr; }
    .curation-workspace { display: block; }
    .curation-head-actions { width: 100%; }
    .curation-adopt-button { flex: 1; }
    .curation-source-grid { grid-template-columns: 1fr; }
    .curation-rail { padding-right: 0; border-right: 0; }
    .curation-detail { padding: 28px 0 0; }
    .curation-evidence-grid, .curation-review-grid, .curation-reference-layout, .curation-chapter-layout { grid-template-columns: 1fr; }
    .curation-cover-frame { width: min(240px, 72vw); }
    .curation-reference-list { max-height: 280px; overflow-y: auto; }
    .curation-reference-audio, .curation-reference-identities { grid-template-columns: 1fr; }
    .curation-reference-preview { width: 100%; }
    .curation-chunk { grid-template-columns: 32px 78px minmax(0, 1fr) auto; }
    .curation-activate { grid-template-columns: 1fr; }
    .curation-activate-button { width: 100%; }
    .production-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .production-metric { border-bottom: 1px solid var(--line); }
    .production-workers { grid-template-columns: 1fr; }
    .production-row { grid-template-columns: minmax(0, 1fr) 70px 70px; }
    .production-row > :nth-child(2), .production-row > :nth-child(5) { display: none; }
    .admin-roles { min-width: 220px; }
    .upload-rights-options { grid-template-columns: 1fr; }
    .upload-rights-copy { min-height: 0; }
  }

  @media (min-width: 821px) {
    .curation-chapter-preview { display: flex; flex-direction: column; contain: size; min-height: 620px; }
    .curation-chunk-list { flex: 1; min-height: 0; max-height: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }

  @media (max-width: 700px) {
    .site-footer-inner { padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
    .site-footer-nav { justify-content: flex-start; gap: 14px 18px; }
  }
