:root {
  color-scheme: light;
  --canvas: #f6f7fb;
  --surface: #fff;
  --surface-soft: #f7f8fc;
  --line: #e3e6f0;
  --ink: #1a2034;
  --muted: #525d73;
  --accent: #4238c5;
  --accent-hover: #342ca4;
  --accent-soft: #ebebfd;
  --focus: #554bdd;
  --radius: 20px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-padding-top:20px}
body {margin:0;background:var(--canvas);color:var(--ink);font-size:16px;line-height:1.55}
[hidden] {display:none!important}
button,input,select {font:inherit}
button {cursor:pointer}
button:disabled {cursor:default}
:focus-visible {outline:2px solid var(--focus);outline-offset:3px}
a {color:var(--accent);text-underline-offset:.22em}
p,h1,h2,h3 {margin:0}
h1,h2,h3 {line-height:1.2;text-wrap:balance}
.shell {width:min(1080px,calc(100% - 64px));margin-inline:auto}
.glyph {width:18px;height:18px;flex:none}
.skip {position:fixed;z-index:4;inset:10px auto auto 10px;padding:10px;background:white;transform:translateY(-150%)}
.skip:focus {transform:none}
.masthead {background:var(--surface);border-bottom:1px solid var(--line)}
.nav-row {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.wordmark {display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-size:1.16rem;font-weight:700;letter-spacing:-.035em;text-decoration:none;white-space:nowrap}
.mark {display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--accent);color:white}
.mark .glyph {width:19px;height:19px}
.nav-row nav {display:flex;align-items:center;gap:5px}
.nav-row nav a {padding:8px 11px;border-radius:8px;color:var(--muted);font-size:.88rem;font-weight:610;text-decoration:none;white-space:nowrap}
.nav-row nav a:hover {background:var(--surface-soft);color:var(--ink)}
.nav-row nav a[aria-current=page] {background:var(--accent-soft);color:var(--accent-hover)}
.button {appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:42px;padding:7px 13px;border:1px solid transparent;border-radius:10px;color:var(--ink);background:none;text-decoration:none;line-height:1.2;font-size:.9rem;font-weight:650;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.button:disabled {opacity:.45}
.button.primary {background:var(--accent);color:white}
.button.primary:hover:not(:disabled),.upload-button:hover {background:var(--accent-hover)}
.button.secondary {border-color:var(--line);background:var(--surface)}
.button.secondary:hover:not(:disabled),.button.icon-button:hover:not(:disabled),.button.quiet-button:hover:not(:disabled) {background:var(--accent-soft);color:var(--accent-hover)}
.button.icon-button {width:42px;padding:0}
.button.quiet-button {background:var(--surface-soft)}
.reader {padding-top:28px;scroll-margin-top:4px}
.studio {min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:0 6px 30px color-mix(in srgb,var(--ink) 4%,transparent)}
.studio-empty {display:grid;justify-items:center;align-content:center;gap:21px;min-height:clamp(370px,calc(66svh - 48px),550px);padding:45px 22px 59px;text-align:center}
.studio[data-ready=false] {position:relative;background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--accent) 6%, white) 0%,color-mix(in srgb,var(--accent) 2%, white) 47%,#fff 82%)}
.studio[data-ready=false]::before {position:absolute;inset:15px;content:"";border:1px dashed color-mix(in srgb,var(--accent) 23%,white);border-radius:13px;pointer-events:none}
.studio[data-ready=false][data-drop=true] {background:var(--accent-soft)}
.studio[data-ready=false][data-drop=true]::before {border-color:var(--focus)}
.upload-symbol {display:grid;place-items:center;width:61px;height:61px;border-radius:18px;background:var(--accent-soft);color:var(--accent)}
.upload-symbol .glyph {width:28px;height:28px;stroke-width:1.65}
.upload-button {position:relative;display:grid;place-items:center;width:min(265px,75vw);min-height:62px;border-radius:13px;background:var(--accent);color:white;font-size:1.21rem;font-weight:700;cursor:pointer;transition:background-color .15s ease;box-shadow:0 6px 16px color-mix(in srgb,var(--accent) 17%,transparent)}
.upload-button input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.upload-button:focus-within {outline:2px solid var(--focus);outline-offset:4px}
.upload-instructions {font-size:.92rem;color:var(--muted)}
.upload-instructions p + p {margin-top:9px}
.upload-instructions p:last-child {display:flex;align-items:center;justify-content:center;gap:8px;font-size:.8rem}
.upload-instructions .glyph {width:15px;height:15px}
.studio[data-ready=false] .studio-message {position:absolute;inset:auto 23px 22px;justify-content:center;min-height:0;padding:0;background:none;text-align:center}
.studio[data-ready=false] :is(.studio-top,.studio-workspace),.studio[data-ready=true] .studio-empty {display:none}
.studio-top {display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:14px 20px;border-bottom:1px solid var(--line)}
.studio-identity {display:flex;align-items:center;gap:10px;min-width:0}
.studio-symbol,.feature-icon,.voice-icon {display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:var(--accent-soft);color:var(--accent)}
.document-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem;font-weight:700}
.studio-actions,.playback-options {display:flex;align-items:center;flex:none;gap:5px}
.studio-actions .button {min-height:39px}
.studio-workspace {display:grid;grid-template-columns:minmax(0,1fr);min-width:0;background:var(--surface-soft)}
.reader-console {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:12px 18px;background:var(--surface);border-bottom:1px solid var(--line)}
.main-play {min-width:105px;min-height:46px;padding-inline:13px}
.main-play .play-mark,.main-play .pause-mark {width:17px;height:17px}
.main-play .play-mark {fill:currentColor}
.main-play .pause-mark,[data-action=pause] .play-mark {display:none}
[data-action=pause] .pause-mark {display:initial}
.page-controls {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.86rem;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.page-controls span {min-width:85px;text-align:center}
.page-controls .button,.playback-options .button.icon-button {background:var(--surface-soft)}
.page-controls .button:hover:not(:disabled),.playback-options .button.icon-button:hover:not(:disabled) {background:var(--accent-soft)}
.studio-message {display:flex;flex-wrap:wrap;gap:0 12px;padding:0 20px;color:var(--muted);font-size:.79rem}
.studio-message:has(p:not(:empty)) {border-top:1px solid var(--line)}
.studio[data-ready=false] .studio-message {border:0}
.studio-message p:not(:empty) {padding-block:8px}
#pdf-file-feedback:not(:empty) {font-weight:650}
#play-device-now {min-height:35px;margin:4px 0;font-size:.79rem}
.reader-preparation {padding:10px 20px 13px;border-bottom:1px solid var(--line);background:var(--surface)}
.reader-preparation > div,.reader-preparation-actions {display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;font-size:.81rem}
.reader-preparation #play-device-now {margin:0}
.reader-preparation span {color:var(--muted);font-variant-numeric:tabular-nums}
.reader-preparation progress {display:block;width:100%;height:7px;margin-top:7px;accent-color:var(--accent)}
.studio[data-ready=false] .reader-preparation {position:absolute;inset:auto max(28px,calc((100% - 450px) / 2)) 61px;border:0;padding:0;background:none}
.paper {width:min(100%,810px);min-height:min(390px,48svh);max-height:min(590px,67svh);overflow:auto;margin-inline:auto;padding:clamp(23px,5vw,52px);color:var(--ink);font-size:clamp(1.02rem,1.6vw,1.22rem);line-height:1.9;overflow-wrap:anywhere;overscroll-behavior:contain}
.paper button {display:inline;padding:2px 3px;margin:0 2px 0 0;border:0;border-radius:4px;background:transparent;color:inherit;text-align:start;font:inherit;white-space:normal}
.paper button:hover {background:var(--line)}
.paper button[aria-current] {background:var(--accent-soft);color:var(--ink);box-decoration-break:clone}
.studio[data-ready=true][data-drop=true] .paper {background:var(--accent-soft)}
.scan-help {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:23px 25px;font-size:.95rem}
.scan-help p {color:var(--muted);font-size:.87rem}
.guided-tools {display:flex;align-items:center;gap:7px 14px;flex-wrap:wrap;padding:9px 18px;border-bottom:1px solid var(--line);background:var(--surface)}
.guided-tools .button {min-height:38px;font-size:.82rem}
.guided-tools .glyph {width:15px;height:15px}
.guided-tools label {display:flex;align-items:center;gap:7px;min-height:38px;color:var(--muted);font-size:.82rem;font-weight:650;cursor:pointer}
.guided-tools input {width:16px;height:16px;margin:0;accent-color:var(--accent)}
.guided-tools .quiet {padding:3px 7px;border-radius:6px;background:var(--surface-soft)}
[data-guided-reader] .scan-help #scan-page[aria-disabled=true] {cursor:wait;opacity:.65}
.settings-dialog,.focus-dialog {max-height:calc(100dvh - 36px);padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.settings-dialog {width:min(490px,calc(100% - 24px))}
.settings-dialog::backdrop,.focus-dialog::backdrop {background:color-mix(in srgb,var(--ink) 48%,transparent)}
.settings-heading,.focus-bar {display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:16px}
.settings-heading h2 {font-size:1.18rem}
.settings-dialog .reader-settings {display:grid;grid-template-columns:minmax(0,1fr) minmax(74px,.4fr);gap:11px}
.reader-settings label,.range-line label {display:grid;align-content:start;gap:4px;min-width:0;color:var(--muted);font-size:.84rem;font-weight:650}
select,.range-line input {width:100%;min-height:43px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-size:.92rem}
.checkbox-row {display:flex;flex-wrap:wrap;gap:7px 16px}
.checkbox-row label {display:inline-flex;align-items:center;gap:7px;min-height:31px;color:var(--muted);font-size:.83rem;cursor:pointer}
.checkbox-row input {width:16px;height:16px;margin:0;accent-color:var(--accent)}
.reader-flow {margin-top:12px}
.settings-end {display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.settings-end .button {font-size:.82rem}
.paper-options {padding:12px;margin-bottom:15px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft)}
.options-top {display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px;margin-bottom:10px}
.options-top h3 {font-size:.94rem}
.quiet,#paper-options-status {color:var(--muted);font-size:.79rem}
.range-line {display:flex;align-items:end;flex-wrap:wrap;gap:7px;margin-bottom:7px}
.range-line input {width:77px}
#paper-options-status:not(:empty) {margin-top:6px}
.focus-dialog {width:min(1010px,calc(100% - 28px));padding:15px;background:var(--canvas)}
.focus-dialog .studio-top {display:none}
.focus-dialog .paper {min-height:min(420px,57dvh);max-height:calc(100dvh - 192px)}
.focus-bar {margin-bottom:11px}
.focus-bar span {display:flex;align-items:center;gap:7px;font-size:.89rem;font-weight:650}
.support-intro {display:flex;align-items:center;justify-content:space-between;gap:19px;padding:28px 0 4px}
.support-intro h1,.prose h1 {font-size:clamp(1.85rem,3.4vw,2.56rem);font-weight:700;letter-spacing:-.042em}
.support-intro p,.section-caption p {margin-top:8px;color:var(--muted);font-size:.95rem}
.support-intro .button {flex:none}
.voice-section {margin-top:34px;scroll-margin-top:20px}
.section-caption h2,.information h2 {font-size:clamp(1.37rem,2.7vw,1.76rem);letter-spacing:-.03em}
.voice-grid,.example-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.voice-card,.example-card {min-width:0;padding:13px;border:1px solid var(--line);border-radius:14px;background:white}
.voice-info {display:flex;align-items:center;gap:9px;margin-bottom:11px}
.voice-info h3 {font-size:.97rem}
.voice-info p,.sample-transcript {color:var(--muted);font-size:.82rem}
.voice-controller {width:100%;--media-background-color:transparent;--media-control-background:var(--surface-soft);--media-control-hover-background:var(--accent-soft);--media-primary-color:var(--accent-hover);--media-font-family:inherit}
.voice-controller audio {width:100%;height:37px}
.voice-controller:defined audio,.voice-controller:not(:defined) media-control-bar {display:none}
.voice-controller media-control-bar {width:100%;border-radius:9px;overflow:hidden}
.voice-controller media-time-range {flex:1;min-width:40px}
.sample-transcript {margin-top:9px}
.sample-transcript p {margin-top:7px}
.voice-trigger span {min-width:0;max-width:10ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voice-section-caption {display:flex;align-items:center;justify-content:space-between;gap:14px}
.voice-section-caption .button {flex:none}
.free-label {flex:none;padding:3px 8px;border-radius:6px;background:#e8f4ee;color:#216845;font-size:.73rem;font-weight:680}
.voice-info .free-label {margin-left:auto}
.voice-dialog {width:min(525px,calc(100% - 24px))}
.voice-picker-tools {display:grid;gap:7px;margin-bottom:12px}
.voice-picker-tools > span {color:var(--muted);font-size:.84rem;font-weight:650}
.language-controls,.featured-languages {display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.language-controls select {width:auto;max-width:100%;min-height:36px;font-size:.8rem}
.language-chip.button {min-height:36px;padding:6px 8px;font-size:.82rem}
.language-chip[aria-pressed=true] {background:var(--accent-soft);color:var(--accent-hover)}
.voice-choices {display:grid;gap:7px}
.voice-choice {display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px;padding:8px 9px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.voice-choice.selected {border-color:color-mix(in srgb,var(--accent) 25%,white);background:color-mix(in srgb,var(--accent) 5%, white)}
.voice-choice-info {min-width:0}
.voice-choice h3 {font-size:.91rem;overflow-wrap:anywhere}
.voice-choice p {margin-top:3px;color:var(--muted);font-size:.77rem;line-height:1.3}
.voice-choice .button {min-height:38px}
.voice-choice .audition-button {width:38px;color:var(--accent);background:var(--accent-soft)}
.voice-choice .audition-button .glyph {width:15px;height:15px}
.audition-button[data-playing=true] .play-mark,.audition-button:not([data-playing=true]) .pause-mark {display:none}
.voice-choice .use-voice {min-width:58px;padding-inline:8px;font-size:.82rem}
.voice-choice .use-voice:disabled {opacity:1;border-color:transparent;color:var(--accent);background:var(--accent-soft)}
.device-voices {margin-top:11px;color:var(--muted);font-size:.85rem}
.device-voices .voice-choices {margin-top:8px}
#voice-preview-status:not(:empty),#voice-model-note {margin-top:9px}
.voice-picker-end {justify-content:space-between}
.example-section {margin-top:36px;scroll-margin-top:18px}
.example-card {overflow:hidden;padding:0}
.example-demo {position:relative;display:grid;place-items:center;min-height:156px;padding:15px}
.example-scan {background:var(--surface-soft)}
.example-scan img {width:min(90%,266px);height:auto;border:1px solid var(--line);border-radius:6px;box-shadow:0 5px 18px color-mix(in srgb,var(--ink) 8%,transparent)}
.example-action {position:absolute;inset:auto 50% 14px auto;translate:50% 0;display:flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--accent-hover);font-size:.76rem;font-weight:650;white-space:nowrap}
.example-action .glyph {width:14px;height:14px}
.example-paper {background:var(--accent-soft)}
.sample-page-preview {width:min(100%,292px);padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white;box-shadow:0 5px 18px color-mix(in srgb,var(--accent) 6%,transparent);color:var(--muted);font-size:.74rem;line-height:1.55}
.sample-page-preview span {display:inline-block;padding:2px 7px;border-radius:5px;background:var(--accent-soft);color:var(--accent-hover);font-weight:690}
.sample-page-preview p {margin:6px 0}
.sample-page-preview mark {background:var(--accent-soft);color:var(--ink);padding:2px 3px;border-radius:3px;box-decoration-break:clone}
.example-content {padding:14px}
.example-content h3 {font-size:1rem}
.example-content p {margin:6px 0 9px;color:var(--muted);font-size:.87rem}
.example-link {display:inline-flex;align-items:center;gap:5px;padding-block:4px;color:var(--accent);font-size:.86rem;font-weight:680;text-decoration:none}
.example-link:hover {text-decoration:underline}
.example-link .glyph {width:14px;height:14px}
.guide-links {display:flex;flex-wrap:wrap;gap:7px 16px;margin:12px 0 0}
.guide-links a {color:var(--accent);font-size:.84rem;font-weight:620;text-decoration:none}
.guide-links a:hover {text-decoration:underline}
.information {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:24px;margin-top:46px;padding-top:23px;border-top:1px solid var(--line)}
.information p,.information li {color:var(--muted);font-size:.92rem}
.information p {margin-top:7px}
.information ol {margin:0;padding-inline-start:23px}
.information li + li {margin-top:7px}
.faq details {padding:11px 0;border-top:1px solid var(--line)}
.faq details:first-child {border-top:0;padding-top:0}
summary {cursor:pointer;font-weight:650}
footer {margin-top:52px;border-top:1px solid var(--line);background:var(--surface)}
footer .nav-row {min-height:62px}
footer .wordmark {font-size:.98rem}
.prose {max-width:72ch;margin:35px auto;overflow-wrap:anywhere}
.prose :is(p,h2,h3,ol,ul) {margin-top:1em}
.prose img {display:block;max-width:100%;height:auto;border-radius:8px}
.prose table {border-collapse:collapse;width:100%;table-layout:fixed}
.prose :is(th,td) {padding:6px;border:1px solid var(--line);font-size:.85rem}
@media (max-width:640px) {
  .shell {width:calc(100% - 26px)}
  .nav-row {min-height:58px;gap:6px}
  .nav-row nav {gap:1px}
  .nav-row nav a {padding:7px 6px;font-size:.76rem}
  .nav-help {display:none}
  .wordmark {gap:6px;font-size:1.02rem}
  .mark {width:27px;height:27px;border-radius:8px}
  .mark .glyph {width:16px;height:16px}
  .reader {padding-top:14px}
  .studio-empty {min-height:clamp(345px,calc(68svh - 47px),530px);padding:32px 15px 44px}
  .studio[data-ready=false]::before {inset:10px}
  .upload-button {width:min(240px,74vw)}
  .studio-top {padding:9px}
  .studio-symbol {width:32px;height:32px}
  .studio-actions {gap:2px}
  .studio-actions .button {padding-inline:6px;font-size:.79rem}
  .studio-actions .button.icon-button {width:35px}
  .reader-console {gap:4px;padding:8px}
  .main-play {min-width:66px;min-height:42px;padding-inline:8px;font-size:.84rem}
  .page-controls {gap:2px;font-size:.76rem}
  .page-controls span {min-width:63px}
  .page-controls .button,.playback-options .button.icon-button {width:35px}
  .playback-options {gap:3px}
  .playback-options .quiet-button {padding-inline:6px;font-size:.75rem}
  .paper {max-height:58svh;min-height:43svh}
  .studio-message {padding-inline:10px}
  .support-intro {align-items:flex-start;flex-direction:column;gap:12px;padding-top:23px}
  .voice-grid,.example-grid {grid-template-columns:1fr}
  .voice-section-caption {gap:8px}
  .voice-section-caption .button {font-size:.79rem;gap:4px;padding-inline:8px}
  .voice-section-caption .button .glyph {width:14px;height:14px}
  .voice-trigger .glyph {display:none}
  [data-guided-reader] .voice-trigger .glyph {display:block;width:15px;height:15px}
  .guided-tools {gap:4px 10px;padding:7px 8px}
  .voice-trigger span {max-width:6ch}
  .voice-picker-end .button {padding-inline:8px}
  .example-demo {min-height:134px}
  .information {display:block}
  .information ol,.information.faq > div {margin-top:12px}
  .settings-dialog {padding:14px}
  .focus-dialog {padding:9px}
}
@media (max-width:360px) {
  .reader-console {gap:3px;padding-inline:6px}
  .page-controls,.playback-options {gap:1px}
  .page-controls span {min-width:55px}
  .page-controls .button,.playback-options .button.icon-button {width:31px}
  #range-control {max-width:41px;white-space:normal}
  .voice-trigger {max-width:43px}
  .voice-choice {gap:5px;padding-inline:6px}
  .voice-choice .free-label {padding-inline:5px}
}
@media (hover:none) {
  .drop-instructions {display:none}
  .upload-instructions p + p {margin-top:0}
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:0s!important;transition-duration:0s!important;scroll-behavior:auto!important}
}

body:has(.pdf-library) {
  --canvas: #f8f8fc;
  --reading-line: var(--line);
  --reading-muted: var(--muted);
}
body:has(.pdf-library) .shell { width: min(1140px, calc(100% - 72px)); }
body:has(.pdf-library) .masthead { background: var(--canvas); border-color: transparent; }
body:has(.pdf-library) .nav-row nav a[aria-current=page] { background: transparent; color: var(--ink); }
body:has(.pdf-library) #reader { padding-top: 8px; }
body:has(.pdf-library) .studio[data-ready=false] {
  background: color-mix(in srgb,var(--accent-soft) 70%,var(--surface));
  border-color: var(--line);
  border-radius: 28px;
  box-shadow: none;
}
body:has(.pdf-library) .studio[data-ready=false]::before {
  inset: 22px;
  border: 1px dashed color-mix(in srgb,var(--accent) 45%,var(--line));
  border-radius: 17px;
}
body:has(.pdf-library) .studio[data-drop=true][data-ready=false] { background: var(--accent-soft); }
body:has(.pdf-library) .studio-empty {
  min-height: clamp(400px, calc(79svh - 42px), 810px);
  gap: 17px;
  padding-bottom: 49px;
}
body:has(.pdf-library) .upload-symbol {
  width: 65px;
  height: 65px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
}
body:has(.pdf-library) .upload-button { width: min(243px, 73vw); min-height: 62px; }
body:has(.pdf-library) .upload-instructions p + p { margin-top: 12px; }
body:has(.pdf-library) .upload-instructions p:last-child { color: var(--reading-muted); }
.intro-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 21px; padding-top: 13px; }
.intro-jump .text-action { gap: 6px; color: var(--reading-muted); font-size: .84rem; }
.intro-jump .glyph { width: 15px; height: 15px; }
[data-gf-tool]:has(.studio[data-ready=true]) + .intro-jump { display: none; }
.follow-section {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(24px, 4vw, 65px);
  padding-block: clamp(48px, 7vw, 98px) clamp(57px, 8vw, 112px);
  border-bottom: 1px solid var(--reading-line);
}
.follow-copy h1, .reading-heading h2, .story-copy h3 {
  font-weight: 690;
  letter-spacing: -.04em;
  line-height: 1.01;
  text-wrap: pretty;
}
.follow-copy h1 { font-size: clamp(2.55rem, 5.1vw, 4.7rem); }
.follow-copy p, .reading-heading p, .story-copy p {
  margin-top: 15px;
  max-width: 35ch;
  color: var(--reading-muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.55;
}
.text-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 40px;
  color: var(--accent);
  font-size: .94rem;
  font-weight: 670;
  text-decoration: none;
}
.text-action .glyph { width: 16px; height: 16px; }
.text-action:hover { text-decoration: underline; }
.follow-copy .text-action { margin-top: 14px; }
.follow-demo {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1fr);
  gap: 1px;
  align-items: stretch;
  margin: 0;
  min-width: 0;
  min-height: 304px;
  overflow: hidden;
  background: var(--reading-line);
  border: 1px solid var(--reading-line);
  border-radius: 22px;
}
.follow-paper {
  display: grid;
  place-items: center;
  padding: 23px;
  background: var(--accent-soft);
}
.follow-paper img { width: min(100%, 172px); height: auto; border-radius: 3px; box-shadow: 0 9px 21px color-mix(in srgb,var(--ink) 12%,transparent); }
.follow-player {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px);
  background: white;
}
.follow-player figcaption { display: grid; gap: 7px; }
.follow-player figcaption span, .story-result span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--reading-muted);
  font-size: .8rem;
  font-weight: 640;
}
.follow-player figcaption strong { font-size: 1.12rem; letter-spacing: -.025em; }
.follow-player figcaption .glyph, .story-result .glyph { width: 15px; height: 15px; }
.follow-transcript p {
  margin-inline: -6px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .84rem;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.follow-transcript p[aria-current] { background: var(--accent-soft); color: var(--accent-hover); }
.follow-player audio { width: 100%; height: 40px; }
.reading-tasks, .pdf-library { margin-top: clamp(58px, 8vw, 108px); }
.reading-heading { margin-bottom: clamp(27px, 4vw, 53px); }
.reading-heading h2 { font-size: clamp(2.35rem, 4.7vw, 4.35rem); }
.reading-heading p { max-width: 53ch; }
.reading-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(26px, 8vw, 124px);
  min-height: 340px;
  margin-bottom: clamp(30px, 5.2vw, 76px);
}
.story-columns { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.story-columns .story-art { order: 2; }
.story-columns .story-copy { padding-left: clamp(0px, 5vw, 73px); }
.story-copy h3 { max-width: 17ch; font-size: clamp(1.85rem, 3.4vw, 3.05rem); }
.story-copy .button { margin-top: 20px; min-height: 46px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; }
.story-copy .story-actions .button { margin-top: 0; }
.story-actions .text-action { align-self: center; }
.story-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 340px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.scan-art { background: #eae7f7; }
.columns-art { align-content: center; gap: 15px; background: #e8eef6; }
.resume-art { background: #eeeaf1; }
.story-art img {
  display: block;
  max-width: 88%;
  max-height: 238px;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 12px 27px color-mix(in srgb,var(--ink) 14%,transparent);
}
.scan-art img { transform: translate(-4%, -8%); }
.resume-art img { transform: translate(-12%, -8%); }
.columns-art img {
  width: min(100%, 485px);
  max-width: 100%;
  height: clamp(100px, 15vw, 168px);
  object-fit: cover;
  object-position: center top;
}
.story-result, .column-steps span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: 0 4px 15px color-mix(in srgb,var(--ink) 7%,transparent);
}
.story-result { position: absolute; right: 7%; bottom: 10%; max-width: 75%; }
.story-result p { margin-top: 6px; color: var(--accent-hover); font-size: .87rem; }
.column-steps {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: min(100%, 485px);
  font-size: .8rem;
  font-weight: 665;
  color: var(--accent-hover);
}
.story-stage, .story-scene { min-width: 0; }
.story-exhibit {
  position: sticky;
  top: max(52px, calc((100svh - 460px) / 2));
  min-width: 0;
}
.story-stage {
  position: relative;
  height: clamp(305px, 48svh, 425px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface-soft);
}
.story-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(.2,.72,.25,1);
}
.story-scene .story-art { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.story-stage[data-active=scan] [data-scene=scan],
.story-stage[data-active=columns] [data-scene=columns],
.story-stage[data-active=resume] [data-scene=resume] { opacity: 1; z-index: 1; }
.story-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.story-nav a {
  display: grid;
  place-items: center;
  min-height: 43px;
  padding: 5px 7px;
  border: 1px solid var(--reading-line);
  border-radius: 10px;
  color: var(--reading-muted);
  font-size: .82rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.story-nav a:hover { background: var(--surface); color: var(--ink); }
.story-nav a[aria-current=location] { background: var(--accent-soft); color: var(--accent-hover); border-color: color-mix(in srgb,var(--accent) 20%,var(--line)); }
@media (min-width: 950px) and (prefers-reduced-motion: no-preference) {
  .story-sequence:has(.story-exhibit:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
    gap: clamp(45px, 8vw, 106px);
  }
  .story-sequence:has(.story-exhibit:not([hidden])) .reading-story {
    display: flex;
    align-items: center;
    min-height: clamp(340px, 60svh, 500px);
    margin: 0;
    scroll-margin-top: 12svh;
  }
  .story-sequence:has(.story-exhibit:not([hidden])) .reading-story > .story-art { display: none; }
  .story-sequence:has(.story-exhibit:not([hidden])) .story-copy { padding-left: 0; }
  .story-sequence:has(.story-exhibit:not([hidden])) .reading-story + .reading-story { border-top: 1px solid var(--reading-line); }
}
.pdf-library { border-top: 1px solid var(--reading-line); padding-top: clamp(43px, 7vw, 90px); }
.pdf-library .reading-heading { margin-bottom: 21px; }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.library-filter.button { border-radius: 999px; min-height: 40px; }
.library-filter[aria-pressed=true] { color: var(--accent-hover); background: var(--accent-soft); border-color: color-mix(in srgb,var(--accent) 23%,var(--line)); }
.pdf-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.library-item {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--reading-line);
  border-radius: 16px;
  background: white;
}
.library-art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--accent-soft);
}
.library-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(.2,.75,.25,1);
}
.library-item .text-action::after { content: ""; position: absolute; inset: 0; }
.library-item:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .library-item:hover .library-art img { transform: scale(1.04); }
}
.tone-sky { background: #e8eef6; }
.tone-ice { background: var(--surface-soft); }
.tone-peach { background: #eeeaf1; }
.tone-sage { background: var(--surface-soft); }
.library-item-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px; }
.library-kind { margin-bottom: 7px; color: var(--reading-muted); font-size: .76rem; font-weight: 630; }
.library-item h3 { font-size: 1.15rem; letter-spacing: -.032em; text-wrap: pretty; }
.library-detail { margin: 7px 0 3px; color: var(--reading-muted); font-size: .88rem; }
.library-item .text-action { margin-top: auto; min-height: 42px; }
.reading-voices { margin-top: clamp(55px, 7vw, 88px); }
body:has(.pdf-library) .information.faq { margin-top: clamp(48px, 7vw, 82px); padding-top: 30px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes reading-arrival {
    from { opacity: .52; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reading-enter:not(:focus-within) { animation: reading-arrival 460ms cubic-bezier(.2,.72,.25,1); }
}
@media (prefers-reduced-motion: reduce) {
  .follow-transcript p { transition: none; }
}
@media (max-width: 850px) {
  body:has(.pdf-library) .shell { width: calc(100% - 44px); }
  .follow-section { grid-template-columns: 1fr; gap: 24px; }
  .follow-demo { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); }
  .pdf-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  body:has(.pdf-library) .shell { width: calc(100% - 32px); }
  body:has(.pdf-library) .studio-empty { min-height: clamp(390px,calc(77svh - 56px),680px); }
  body:has(.pdf-library) .studio[data-ready=false] { border-radius: 22px; }
  body:has(.pdf-library) .studio[data-ready=false]::before { inset: 13px; border-radius: 14px; }
  .follow-section { padding-block: 47px; }
  .follow-demo { grid-template-columns: 1fr; min-height: 0; border-radius: 17px; }
  .follow-paper { padding: 18px; }
  .follow-paper img { width: 118px; }
  .follow-player { gap: 8px; }
  .reading-story, .story-columns { grid-template-columns: minmax(0,1fr); gap: 19px; margin-bottom: 47px; }
  .story-columns .story-art { order: 0; }
  .story-columns .story-copy { padding-left: 0; }
  .story-art { min-height: 242px; padding: 18px; border-radius: 18px; }
  .story-art img { max-height: 167px; }
  .pdf-library-grid { gap: 9px; }
  .library-art { aspect-ratio: 3 / 2; }
  .library-item-content { padding: 11px; }
  .library-item h3 { font-size: .99rem; }
  .library-detail { font-size: .82rem; }
  .library-filter.button { padding-inline: 11px; }
  .column-steps span { padding: 7px 9px; }
}
@media (max-width: 400px) {
  body:has(.pdf-library) .masthead nav a[aria-current=page] { display: none; }
}

.article,.legal {max-width:72ch;margin:36px auto}
.article :is(p,h2,h3,ol,ul),.legal :is(p,h2,h3,ol,ul) {margin-top:1em}
.article img {display:block;max-width:100%;height:auto;border-radius:8px}
.article table {border-collapse:collapse;width:100%;table-layout:fixed}
.article :is(th,td) {padding:8px;border:1px solid var(--line);font-size:.9rem}
.article th {background:var(--accent-soft)}
.reader-help {margin:36px 0;color:var(--muted);border-block:1px solid var(--line);padding:13px 0}
.reader-help-content {max-width:74ch;margin-top:16px}
.reader-help-content :is(h2,h3,p) {margin-top:12px}
.reader-help-content :is(p,li) {font-size:.92rem}

.intro-jump p { flex-basis: 100%; text-align: center; color: var(--reading-muted); font-size: .8rem; }

.masthead .nav-row > nav {position:relative}
.scene-nav summary {
  display:flex;align-items:center;gap:.5em;min-height:44px;padding:7px 11px;
  border:1px solid var(--line);border-radius:9px;background:var(--surface);
  color:var(--ink);font-size:.88rem;font-weight:650;line-height:1.2;
  cursor:pointer;white-space:nowrap;list-style:none;
}
.scene-nav summary::-webkit-details-marker {display:none}
.scene-nav summary::after {
  content:"";width:.46em;height:.46em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-.12em) rotate(45deg);
}
.scene-nav[open] summary::after {transform:translateY(.1em) rotate(225deg)}
.scene-nav summary:hover,.scene-nav[open] summary {border-color:var(--accent);color:var(--accent-hover)}
.scene-nav-panel {
  position:absolute;z-index:10;inset-inline-end:0;top:calc(100% + 6px);
  width:min(21rem,calc(100vw - 24px));max-height:calc(100dvh - 76px);overflow:auto;
  border:1px solid var(--line);border-radius:13px;padding:9px;background:var(--surface);
  box-shadow:0 12px 36px color-mix(in srgb,var(--ink) 15%,transparent);
}
.scene-nav-label {padding:5px 9px 2px;color:var(--muted);font-size:.76rem;font-weight:700}
.scene-nav-panel ul {list-style:none;margin:0;padding:0}
.scene-nav-panel ul + p {margin-top:5px;border-top:1px solid var(--line);padding-top:9px}
.masthead .scene-nav-panel a {
  display:flex;align-items:center;min-height:44px;padding:8px 9px;
  color:var(--ink);font-size:.9rem;white-space:normal;
}
.masthead .scene-nav-panel a:focus-visible {outline-offset:-2px}
@media(max-width:620px) {
  .scene-nav summary {padding-inline:9px;font-size:.82rem}
}
@media(max-width:420px) {
  .scene-nav summary {padding-inline:6px}
  .masthead .nav-row > nav > a {padding-inline:4px}
}
@media(max-width:380px) {
  .masthead .nav-row > nav > a[href="/#pdf-examples"] {display:none}
}
