/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:host,:root{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.hidden{display:none}.inline{display:inline}.table{display:table}.grow{flex-grow:1}.resize{resize:both}.rounded{border-radius:.25rem}.lowercase{text-transform:lowercase}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root,[data-light=day]{color-scheme:light;--bg:#efefe6;--surface:#f9f9f4;--surface-2:#e4e7dc;--ink:#1b2620;--muted:#535f58;--line:#d4d9cc;--primary:#2e5a45;--on-primary:#f9f9f4;--accent:#2e5a45;--glow:#e8b14f;--focus:#2e5a45;--error-bg:#f6e1d6;--error-ink:#7e2f14;--shadow:0 1px 2px #3c280a0f,0 10px 30px #3c280a14;--cover-shadow:0 1px 1px #2819051f,0 12px 28px #28190529;--dock:#f9f9f4bd}[data-light=night]{color-scheme:dark;--bg:#111a16;--surface:#18231e;--surface-2:#213029;--ink:#efe6d3;--muted:#a9b09f;--line:#2c3b33;--primary:#e8b06a;--on-primary:#1b1a12;--accent:#e8b06a;--glow:#e8b06a;--focus:#e8b06a;--error-bg:#3a261c;--error-ink:#f1c3a6;--shadow:0 1px 2px #0000004d,0 10px 30px #00000040;--cover-shadow:0 1px 1px #0006,0 12px 28px #00000073;--dock:#18231eb8}html{scroll-behavior:smooth;scroll-padding-top:24px}body,html{background:var(--bg)}body{color:var(--ink);font-family:var(--font-ui),system-ui,sans-serif;-webkit-font-smoothing:antialiased;margin:0;font-size:16px;line-height:1.55;transition:background-color .6s,color .6s}.book-card-title,.type-cover-title,.wordmark,h1,h2,h3{font-family:var(--font-display),Georgia,serif;font-variation-settings:"SOFT" 60;font-optical-sizing:auto;letter-spacing:-.01em;font-weight:500}h1{margin:0 0 12px;font-size:clamp(34px,5vw,56px);line-height:1.06}h2{font-size:clamp(24px,3vw,30px);line-height:1.15}h2,h3{margin:0 0 8px}h3{font-size:20px}p{margin:0 0 12px}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:6px}svg{flex-shrink:0}.muted{color:var(--muted)}.center{text-align:center}.label{color:var(--accent);margin:0 0 6px;font-size:14px;font-weight:600}.meta{margin:0 0 20px}.help,.meta{color:var(--muted)}.help{margin:8px 0 0;font-size:14px;line-height:1.5}.help.center{display:block}.lede{max-width:34em;margin-bottom:26px;font-size:18px}.lede,.notice{color:var(--muted)}.notice{margin-top:12px}.spin{animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.button{white-space:nowrap;border:1px solid var(--line);background:var(--surface);min-height:48px;color:var(--ink);border-radius:999px;justify-content:center;align-items:center;gap:10px;padding:12px 20px;font-size:15px;font-weight:600;text-decoration:none;transition:background-color .2s,border-color .2s,transform .1s;display:inline-flex}.button:hover:not(:disabled){border-color:var(--muted)}.button:active:not(:disabled){transform:scale(.98)}.button.primary{border-color:var(--primary);color:var(--on-primary)}.button.primary,.button.primary:hover:not(:disabled){background:var(--primary)}@supports (color:color-mix(in lab,red,red)){.button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 88%,var(--ink))}}.button.quiet{color:var(--muted);background:0 0;border-color:#0000}.button.wide{width:100%}.actions{flex-wrap:wrap;align-items:center;gap:10px;margin:4px 0 14px;display:flex}.actions.center{justify-content:center}.text-link{min-height:44px;color:var(--accent);background:0 0;border:0;align-items:center;gap:6px;padding:0;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.text-link:hover{text-underline-offset:4px;text-decoration:underline}.icon-button{border:1px solid var(--line);width:44px;height:44px;color:var(--ink);background:0 0;border-radius:50%;place-items:center;display:grid}.fields{border:0;min-width:0;margin:20px 0 0;padding:0}.field{flex-direction:column;gap:6px;min-width:0;margin-bottom:18px;display:flex}.field.grow{flex:1}.field-row{gap:12px;display:flex}.field-row>.field:not(.grow){width:42%}.check,.field label{font-size:15px;font-weight:600}input,select,textarea{border:1px solid var(--line);background:var(--bg);width:100%;min-height:50px;color:var(--ink);border-radius:12px;padding:0 14px;font-size:16px;transition:border-color .2s}input::placeholder{color:var(--muted)}@supports (color:color-mix(in lab,red,red)){input::placeholder{color:color-mix(in srgb,var(--muted) 80%,transparent)}}input:focus,select:focus{border-color:var(--focus);box-shadow:0 0 0 3px var(--focus);outline:none}@supports (color:color-mix(in lab,red,red)){input:focus,select:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 18%,transparent)}}.chips{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.chip{border:1px solid var(--line);background:0 0;border-radius:999px;align-items:center;gap:6px;min-height:40px;padding:0 14px;font-size:14px;display:inline-flex}.chip[aria-pressed=true]{background:var(--surface-2);border-color:var(--muted);font-weight:600}.check{cursor:pointer;align-items:center;gap:10px;min-height:44px;display:flex}.check input{width:20px;height:20px;min-height:20px;accent-color:var(--primary);margin:0;padding:0}.settings{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:6px 0 22px}.settings summary{cursor:pointer;min-height:60px;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:15px;list-style:none;display:flex}.settings summary::-webkit-details-marker{display:none}.settings-body{padding:4px 0 18px}.settings-body .field:first-child{margin-top:4px}.error-message{background:var(--error-bg);color:var(--error-ink);border-radius:12px;margin:12px 0;padding:12px 14px;font-size:15px}.app-shell{max-width:1120px;padding:0 max(20px,env(safe-area-inset-left)) 0 max(20px,env(safe-area-inset-right));flex-direction:column;min-height:100svh;margin:0 auto;display:flex}.site-header{justify-content:space-between;align-items:center;gap:16px;min-height:76px;display:flex}.wordmark{letter-spacing:-.02em;font-variation-settings:"SOFT" 100;font-size:30px;font-weight:600;text-decoration:none}.site-nav{align-items:center;gap:22px;display:flex}.site-nav a{color:var(--muted);font-size:15px;font-weight:600;text-decoration:none}.site-nav a:hover{color:var(--ink)}.site-footer{padding:40px 0 max(32px,env(safe-area-inset-bottom));color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px 24px;margin-top:auto;font-size:14px;display:flex}.site-footer p{max-width:34em;margin:0}.home,.library-main{flex:1;padding:12px 0 24px}.panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;padding:clamp(22px,4vw,34px)}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:18px;display:flex}.section-head h2{margin:0}.page-head{margin:12px 0 28px}.empty{text-align:center;max-width:460px;margin:40px auto}.cover-image,.type-cover{aspect-ratio:4/3;width:100%;box-shadow:var(--cover-shadow);object-fit:cover;border-radius:10px;display:block}.type-cover{background:var(--cover-bg);color:var(--cover-ink);background-image:radial-gradient(circle at 80% 18%,var(--cover-accent),transparent 55%);position:relative;overflow:hidden;container-type:inline-size}@supports (color:color-mix(in lab,red,red)){.type-cover{background-image:radial-gradient(circle at 80% 18%,color-mix(in srgb,var(--cover-accent) 26%,transparent),transparent 55%)}}.type-cover:after{content:"";pointer-events:none;background:repeating-linear-gradient(90deg,#ffffff06 0 1px,#0000 1px 3px);position:absolute;inset:0}.type-cover-frame{border:max(1px,.5cqi) solid var(--cover-ink);position:absolute;inset:5cqi}@supports (color:color-mix(in lab,red,red)){.type-cover-frame{border:max(1px,.5cqi) solid color-mix(in srgb,var(--cover-ink) 45%,transparent)}}.type-cover-frame{border-radius:2cqi;flex-direction:column;justify-content:flex-end;gap:2cqi;padding:6cqi;display:flex}.type-cover-motif{width:16cqi;height:16cqi;color:var(--cover-accent);position:absolute;top:6cqi;right:6cqi}.type-cover-title{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;max-width:85%;font-size:clamp(11px,8.4cqi,44px);font-weight:600;line-height:1.02;display:-webkit-box;overflow:hidden}.type-cover.art .type-cover-frame{justify-content:flex-end;align-items:flex-start}.type-cover.art .type-cover-motif{stroke-width:1.4px;width:34cqi;height:34cqi;filter:drop-shadow(0 0 5cqi var(--cover-accent));top:50%;right:50%;transform:translate(50%,-58%)}@supports (color:color-mix(in lab,red,red)){.type-cover.art .type-cover-motif{filter:drop-shadow(0 0 5cqi color-mix(in srgb,var(--cover-accent) 55%,transparent))}}.type-cover-mark{font-family:var(--font-display),Georgia,serif;opacity:.7;font-size:clamp(8px,3.4cqi,16px)}@container (max-width:120px){.type-cover-mark,.type-cover-title{display:none}.type-cover-motif{width:40cqi;height:40cqi;top:50%;right:50%;transform:translate(50%,-50%)}}.cover-status{color:var(--muted);text-align:center;margin:10px 0 0;font-size:14px}.cover-status a{color:var(--accent);margin-top:4px;font-weight:600;display:block}.tonight{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,56px);padding:clamp(12px,3vw,36px) 0 clamp(36px,6vw,64px);display:grid}.tonight-cover{transition:transform .3s;display:block;transform:rotate(-1.2deg)}.tonight-cover:hover{transform:rotate(0)}.tonight-body h1{overflow-wrap:anywhere}.welcome{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,64px);padding:clamp(16px,4vw,48px) 0 clamp(40px,6vw,72px);display:grid}.welcome h1{max-width:11em;font-size:clamp(38px,6vw,64px)}.welcome-books{aspect-ratio:1.15;position:relative}.welcome-books .type-cover{width:72%;position:absolute}.welcome-books .type-cover:first-child{top:4%;left:0;transform:rotate(-6deg)}.welcome-books .type-cover:nth-child(2){top:18%;right:0;transform:rotate(4deg)}.welcome-books .type-cover:nth-child(3){bottom:0;left:12%;transform:rotate(-1deg)}.shelf{border-top:1px solid var(--line);padding:32px 0 clamp(36px,6vw,56px)}.book-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:28px 22px;display:grid}.book-card{color:var(--ink);flex-direction:column;gap:4px;text-decoration:none;display:flex}.book-card-cover{margin-bottom:10px;transition:transform .25s}.book-card:hover .book-card-cover{transform:translateY(-3px)}.book-card-title{overflow-wrap:anywhere;font-size:19px;line-height:1.2}.book-card-meta{color:var(--muted);font-size:14px}.create{padding:8px 0 24px;scroll-margin-top:16px}.create .panel{max-width:620px}.ready{text-align:center}.ready-cover{max-width:300px;margin:0 auto 22px}.ready h2{overflow-wrap:anywhere;font-size:clamp(28px,4vw,36px)}.ready .transcript{text-align:left}.narrator-preview{max-width:360px;margin-top:8px}.narrator-preview button{text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:48px;padding:6px 0;font-size:15px;font-weight:600;display:flex}.narrator-preview button>svg{color:var(--accent)}.narrator-preview small{color:var(--muted);font-size:14px;font-weight:400;display:block}.narrator-preview.compact button{color:var(--accent);min-height:44px}.sound-bars{height:28px;color:var(--accent);align-items:center;gap:3px;margin-left:auto;display:flex}.sound-bars i{background:currentColor;border-radius:2px;width:2px;height:12px;display:block}.sound-bars i:nth-child(2n){height:22px;animation-delay:-.4s!important}.sound-bars i:nth-child(3){height:17px;animation-delay:-.7s!important}.sound-bars.playing i{animation:sound-wave 1.1s ease-in-out infinite alternate}@keyframes sound-wave{to{transform:scaleY(.35)}}.generation-progress{color:var(--muted);margin-top:8px;font-size:15px}.generation-progress ol{gap:10px;margin:0;padding:0;list-style:none;display:grid}.generation-progress li,.generation-progress>p,.progress-line{align-items:center;gap:10px;margin:0;display:flex}.generation-progress li.current{color:var(--ink);font-weight:600}.generation-progress li.done svg{color:var(--primary)}.generation-progress .step-dot{border:1.5px solid var(--line);border-radius:50%;width:15px;height:15px}.generation-progress>button{min-height:44px;color:var(--accent);background:0 0;border:0;margin-top:10px;padding:0;font-weight:600}.script-preview{border-top:1px solid var(--line);margin-top:14px;padding-top:8px}.script-preview summary{min-height:44px;color:var(--accent);cursor:pointer;align-items:center;font-weight:600;display:flex}.script-preview p{font-family:var(--font-display),Georgia,serif;color:var(--ink);font-size:17px;line-height:1.7}.book-head{grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:end;gap:clamp(22px,4vw,44px);padding:clamp(8px,2vw,24px) 0 clamp(28px,5vw,44px);display:grid}.book-cover{transform:rotate(-1deg)}.book-head-body h1{overflow-wrap:anywhere}.book-head-body .meta{margin-bottom:4px}.book-body{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:28px;display:grid}.book-main{gap:22px;min-width:0;display:grid}.chapter-nav{position:sticky;top:16px}.chapter-nav ol{gap:4px;margin:0 0 8px;padding:0;list-style:none;display:grid}.chapter-nav button{text-align:left;background:0 0;border:1px solid #0000;border-radius:14px;align-items:flex-start;gap:12px;width:100%;padding:12px;display:flex}.chapter-nav button:hover{background:var(--surface)}.chapter-nav button[aria-current=true]{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.chapter-mark{border:1.5px solid var(--line);width:30px;height:30px;color:var(--muted);border-radius:50%;place-items:center;font-size:14px;font-weight:700;display:grid}button[aria-current=true] .chapter-mark{border-color:var(--primary);color:var(--primary)}.chapter-name{flex-direction:column;min-width:0;display:flex}.chapter-name strong{overflow-wrap:anywhere;font-weight:600}.chapter-name small{color:var(--muted);font-size:13px}.chapter h2{overflow-wrap:anywhere;font-size:clamp(26px,3.4vw,34px)}.chapter h2:focus{outline:none}.continue .field{margin-top:18px}.saved-reference{margin-top:16px;font-size:14px}.saved-reference summary{cursor:pointer;color:var(--accent);align-items:center;min-height:44px;font-weight:600;display:flex}.player-progress{margin:18px 0 8px}.player-progress>div:last-child{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;font-size:14px;display:flex}.playback-seek{width:100%;height:28px;min-height:28px;box-shadow:none;accent-color:var(--primary);cursor:pointer;background:0 0;border:0;margin:0;padding:0}.player-options{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 18px;display:flex}.rain-toggle{min-height:44px;color:var(--ink);background:0 0;border:0;align-items:center;gap:8px;padding:0;font-size:15px;display:inline-flex}.switch{background:var(--line);border-radius:999px;width:36px;height:22px;padding:3px;transition:background-color .2s;display:block}.switch:after{content:"";background:var(--surface);border-radius:50%;width:16px;height:16px;transition:transform .2s;display:block;box-shadow:0 1px 2px #0003}.switch.on{background:var(--primary)}.switch.on:after{transform:translate(14px)}.timer-picker{color:var(--muted);align-items:center;gap:4px;display:inline-flex}.timer-picker button{min-height:40px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:999px;padding:0 10px;font-size:15px}.timer-picker button.active{border-color:var(--line);background:var(--surface-2);color:var(--ink);font-weight:600}.chapter-actions{flex-wrap:wrap;justify-content:center;gap:4px 20px;margin-top:4px;display:flex}.chapter-actions .text-link{font-size:14px}.transcript{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.transcript h3{font-family:var(--font-ui),sans-serif;color:var(--muted);letter-spacing:0;font-size:14px;font-weight:600}.transcript>div p{font-family:var(--font-display),Georgia,serif;font-variation-settings:"SOFT" 30;white-space:pre-wrap;overflow-wrap:anywhere;max-width:36em;font-size:19px;line-height:1.75}.narration-directions{border-top:1px solid var(--line);margin-top:12px;padding-top:8px;font-size:15px}.narration-directions summary{cursor:pointer;color:var(--muted);align-items:center;min-height:44px;display:flex}.narration-directions ul{padding-left:20px}.illustration-actions{flex-wrap:wrap;gap:10px;margin-top:8px;display:flex}.chapter-illustration{margin:18px 0 0}.chapter-illustration img{border-radius:14px;width:100%;height:auto;display:block}.chapter-illustration figcaption{color:var(--muted);margin-top:8px;font-size:14px}.character-gallery{margin-top:18px}.character-gallery summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}.character-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:16px;margin-top:10px;display:grid}.character-grid figure{margin:0}.character-grid img,.character-placeholder{aspect-ratio:1;object-fit:cover;background:var(--surface-2);border-radius:14px;width:100%;height:auto}.character-placeholder{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;display:flex}.character-grid figcaption{padding-top:10px}.character-grid figcaption p{color:var(--muted);overflow-wrap:anywhere;margin:4px 0 0;font-size:14px}.player-dock-anchor{left:50%;bottom:max(12px,env(safe-area-inset-bottom));visibility:hidden;pointer-events:none;width:min(600px,100% - 24px);height:88px;position:fixed;transform:translate(-50%)}.expandable-player{--expansion:0;z-index:35;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow);contain:layout paint;position:fixed;overflow:hidden}.expandable-player:not(.is-expanded){background:var(--dock);-webkit-backdrop-filter:blur(22px)saturate(1.5);backdrop-filter:blur(22px)saturate(1.5);animation:dock-in .25s both}@media (prefers-reduced-transparency:reduce){.expandable-player:not(.is-expanded){background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}@keyframes dock-in{0%{opacity:0}to{opacity:1}}.player-backdrop{z-index:34;pointer-events:none;background:#0000004d;position:fixed;inset:0}.player-grab{z-index:5;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;place-items:center;width:100%;height:24px;display:grid;position:absolute;top:0;left:0}.player-grab span{background:var(--line);border-radius:4px;width:36px;height:4px}.compact-player-content{opacity:clamp(0,calc(1 - var(--expansion) * 5),1);align-items:center;gap:6px;display:flex;position:absolute;inset:22px 10px 8px}.compact-player-open{text-align:left;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;flex:1;align-items:center;gap:6px;min-width:0;min-height:48px;padding:0 0 0 55px;display:flex}.compact-player-open>span{white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:15px;font-weight:600;overflow:hidden}.compact-player-open small{color:var(--muted);font-variant-numeric:tabular-nums;margin-top:2px;font-size:13px;font-weight:400;display:block}.compact-player-open>svg{color:var(--muted)}.dock-action{border:1px solid var(--line);min-width:44px;min-height:44px;color:var(--ink);background:0 0;border-radius:50%;place-items:center;display:grid}.morph-player-cover{z-index:3;touch-action:none;-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;overflow:hidden}.is-expanded .morph-player-cover{pointer-events:auto}.morph-player-cover .cover-image,.morph-player-cover .type-cover{aspect-ratio:auto;border-radius:inherit;width:100%;height:100%;box-shadow:none}.full-player-content{overscroll-behavior:contain;padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));position:absolute;inset:0;overflow:hidden}.is-expanded .full-player-content{overflow-y:auto}.full-player-heading{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;gap:12px;height:44px;display:flex}.full-player-heading>span{color:var(--muted);font-size:14px;font-weight:600}.full-player-heading>button{min-width:44px;color:var(--ink);justify-content:center}.heading-spacer{width:44px}.full-player-heading,.full-player-main>:not(.full-player-art-space){opacity:clamp(0,calc((var(--expansion) - .55) / .45),1)}.full-player-main{max-width:480px;margin:20px auto 0}.full-player-art-space{height:var(--cover-height,235px)}.full-player-title{text-align:center;margin-top:25px}.full-player-title h2{margin:0 0 4px}.full-player-chapter{color:var(--muted);margin:0}.full-player-title a{min-height:44px;color:var(--accent);align-items:center;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.full-player-main .player-progress{margin:14px 0}.full-player-transport{gap:clamp(26px,8vw,64px);margin-top:16px}.full-player-transport,.round-control{justify-content:center;align-items:center;display:flex}.round-control{background:0 0;border:0;flex-direction:column;gap:4px;min-width:48px;min-height:52px}.round-control small{color:var(--muted);font-size:13px}.full-player-play{background:var(--primary);width:76px;height:76px;color:var(--on-primary);border:0;border-radius:50%;place-items:center;display:grid}.full-player-bottom{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;margin-top:28px;padding-top:14px;display:flex}body:has(.expandable-player) .site-footer{padding-bottom:125px}body:has(.night-mode) .expandable-player,body:has(.night-mode) .player-backdrop{visibility:hidden}.night-mode{--glow:1;z-index:50;min-height:100svh;padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom));color:#7d7d76;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:22px;animation:fade-night 1.2s both;display:flex;position:fixed;inset:0}@keyframes fade-night{0%{opacity:0}to{opacity:1}}.night-lamp{color:#5f5d56;width:112px;position:relative}.night-lamp svg{width:100%;display:block;position:relative}.night-glow{width:260px;height:260px;opacity:calc(var(--glow) * .6);transform:scale(calc(.35 + var(--glow) * .65));background:radial-gradient(circle,#e8b06a8c,#e8b06a1f 45%,#0000 70%);border-radius:50%;margin:-130px 0 0 -130px;transition:opacity 2s linear,transform 2s linear;animation:lights-out 2.2s ease-out both;position:absolute;top:32%;left:50%}@keyframes lights-out{0%{opacity:1;transform:scale(1.35)}}.night-title{text-align:center;max-width:22em;min-height:3em;font-family:var(--font-display),Georgia,serif;color:#6e6d67;margin:0;font-size:19px;line-height:1.4}.night-title small{font-family:var(--font-ui),sans-serif;margin-top:2px;font-size:14px;display:block}.night-controls{opacity:0;text-align:center;flex-direction:column;align-items:center;gap:18px;width:100%;max-width:360px;transition:opacity 2.5s;display:flex}.night-controls.awake,.night-controls:has(:focus-visible){opacity:.8}.night-controls button{color:#8e8d86;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;min-width:48px;min-height:48px;display:flex}.night-controls button:focus-visible{outline-color:#70706c}.night-playback{align-items:center;gap:36px;display:flex}.night-playback>button{flex-direction:column;gap:4px}.night-playback>button>span{font-size:13px}.night-playback .night-play{border:1px solid #3f3f3c;border-radius:50%;width:68px;height:68px}.night-timer{font-variant-numeric:tabular-nums;align-items:center;gap:7px;font-size:14px;display:flex}.night-exit{margin-top:6px;font-size:15px}.night-hint{bottom:max(28px,env(safe-area-inset-bottom));text-align:center;color:#4a4a47;max-width:90%;font-size:13px;animation:hint-out 8s forwards;position:absolute}@keyframes hint-out{0%,75%{opacity:1}to{opacity:0}}.auth-shell{width:min(100% - 40px,440px);margin:48px auto}.auth-shell .wordmark{margin-bottom:36px;display:inline-block}.auth-form{gap:12px;margin:26px 0;display:grid}.auth-form label{font-size:15px;font-weight:600}.draft-panel{border:1px solid var(--line);background:var(--surface);border-radius:18px;margin:20px 0;padding:20px}.draft-panel .draft-panel{background:var(--bg);margin:14px 0 0}.draft-actions{flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:10px;display:flex}.draft-panel details{margin-top:12px}.draft-panel pre{white-space:pre-wrap;font:inherit;line-height:1.6}@media (max-width:820px){.book-head,.tonight,.welcome{grid-template-columns:minmax(0,1fr)}.tonight{gap:22px}.tonight-cover{max-width:460px}.welcome-books{aspect-ratio:1.5;order:-1;width:100%;max-width:420px;margin:0 auto}.welcome-books .type-cover{width:62%}.book-head{align-items:start}.book-cover{max-width:320px}.book-body{grid-template-columns:minmax(0,1fr);gap:18px}.chapter-nav{position:static}.chapter-nav ol{scroll-snap-type:x proximity;gap:8px;padding:2px 2px 8px;display:flex;overflow-x:auto}.chapter-nav li{scroll-snap-align:start;flex:0 0 min(230px,72%)}.chapter-nav button{border-color:var(--line);height:100%}}@media (max-width:560px){.site-nav{gap:14px}.site-nav a{font-size:14px}.wordmark{font-size:27px}.tonight .actions .button{flex:auto}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.book-card-title{font-size:17px}.field-row{flex-direction:column;gap:0}.field-row>.field:not(.grow){width:auto}.panel{border-radius:20px}.compact-player-open>svg{display:none}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,:after,:before{transition-duration:.01ms!important;animation-duration:.01ms!important}.night-glow{animation:none}}.drafts{max-width:1120px;margin:0 auto;padding:0 20px}[data-light=night] .cover-image,[data-light=night] .type-cover{filter:brightness(.86)saturate(.92)}.progress-title{font-family:var(--font-display),Georgia,serif;color:var(--ink);margin:0 0 10px;font-size:22px}.generation-progress li span{min-width:0}.progress-time{margin:12px 0 0;font-size:14px}.progress-time span{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600}.install-offer{z-index:36;top:calc(env(safe-area-inset-top,0px) + 12px);border:1px solid var(--line);background:var(--surface);width:min(560px,100% - 24px);box-shadow:var(--shadow);border-radius:18px;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;animation:dock-in .3s both;display:flex;position:fixed;left:50%;transform:translate(-50%)}.install-offer strong{font-size:16px;display:block}.install-offer p{color:var(--muted);margin:2px 0 0;font-size:14px}.install-offer-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}body:has(.night-mode) .install-offer{display:none}@media (max-width:560px){.install-offer{flex-direction:column;align-items:stretch}.install-offer-actions .button{flex:1}}.generation-progress>.progress-time,.generation-progress>.progress-title{display:block}.progress-title{line-height:1.2}.create-page{flex:1;max-width:680px;padding:12px 0 32px}.create-page>h1{margin:8px 0 22px}.create-page .fields{margin:0}.step{border-bottom:1px solid var(--line);margin-bottom:22px;padding:4px 0 22px}.step h2{margin:0 0 12px;font-size:22px}.step .field{margin-bottom:0}.step .field-row{margin-top:12px}.step .help{margin:-4px 0 14px}.chips.profiles{margin:0 0 4px}.chip small{color:var(--muted);font-size:13px;font-weight:400}.voice-picker{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:10px;margin-bottom:14px;display:grid}.voice{border:1px solid var(--line);background:var(--bg);border-radius:16px;align-items:center;gap:4px;padding:4px 6px 4px 4px;transition:border-color .2s,background-color .2s;display:flex}.voice.selected{border-color:var(--primary);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--primary)}.voice label{cursor:pointer;flex:1;grid-template-columns:auto 1fr;align-items:center;min-width:0;padding:8px;display:grid}.voice input{width:18px;height:18px;min-height:18px;accent-color:var(--primary);grid-row:span 2;margin:0;padding:0}.voice-name{font-weight:600}.voice-desc{color:var(--muted);font-size:14px}.narrator-preview.icon{max-width:none;margin:0}.narrator-preview.icon button{border-radius:50%;justify-content:center;width:44px;height:44px;min-height:44px;padding:0}.narrator-preview.icon button:hover{background:var(--surface)}.narrator-preview.icon .help{display:none}.start-new{padding:0 0 clamp(32px,5vw,48px)}.start-new h2{margin-bottom:12px}.shelf-filter{margin:-8px 0 22px}.site-nav a,.wordmark{align-items:center;min-height:44px;display:inline-flex}.chip,.playback-seek,.timer-picker button{min-height:44px}.playback-seek{height:44px}.player-progress>div:last-child{margin-top:-6px}.night-title{color:#56554f}.voice-picker{grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr))}.voice label{column-gap:8px;padding:8px 4px 8px 8px}.step:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:8px}@media (max-width:560px){.step .field-row{gap:14px}}.voice-picker{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:8px}.voice{border-radius:14px}.voice label{grid-template-columns:auto auto 1fr;column-gap:10px;padding:6px 4px 6px 10px}.voice input{grid-row:auto}.voice-desc:before{content:"· "}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@font-face{font-family:Fraunces;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/e8c7e585bb5e69ba-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Fraunces;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/d02d66744511ad29-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Fraunces;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/26dc4a78f0c7af7f-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Fraunces Fallback;src:local("Times New Roman");ascent-override:84.71%;descent-override:22.09%;line-gap-override:0.00%;size-adjust:115.45%}.__className_a2d674{font-family:Fraunces,Fraunces Fallback;font-style:normal}.__variable_a2d674{--font-display:"Fraunces","Fraunces Fallback"}@font-face{font-family:Figtree;font-style:normal;font-weight:300 900;font-display:swap;src:url(/_next/static/media/d9fef5bf2f64cf9a-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Figtree;font-style:normal;font-weight:300 900;font-display:swap;src:url(/_next/static/media/de42cfb9a3b980ae-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Figtree Fallback;src:local("Arial");ascent-override:94.32%;descent-override:24.82%;line-gap-override:0.00%;size-adjust:100.72%}.__className_8cbda3{font-family:Figtree,Figtree Fallback;font-style:normal}.__variable_8cbda3{--font-ui:"Figtree","Figtree Fallback"}