:root{
 color-scheme:light;
 --paper:#e5e9f3;--ink:#17233c;--muted:#606c83;--line:#e0e6f0;
 --green:#5451d6;--accent:#5451d6;--surface:#ffffff;
 --ui-font:"Inter","Aptos","Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;
 --reading-font:"Charter","Iowan Old Style","Palatino Linotype",Georgia,serif;
}
#audiobookExportStatus.export-blocked{color:#c62828}
.formatting-cost{margin:0 0 10px;padding:7px 10px;background:#eef2fa;border-radius:6px;color:var(--muted);font-size:12px}
.formatting-progress{margin:0 0 10px;color:#c62828;font-weight:600}
#status.formatting-status,#status.voice-generation-status{color:var(--muted)}
body:has(#bookDetails:not([hidden])) #wordCount{display:none}
#insufficientCreditsDialog{text-align:center}
#insufficientCreditsDialog button{display:block;margin:20px auto 0}
.editor-history-icon{display:inline-flex;align-items:center;justify-content:center;padding:10px;min-width:40px}
.editor-history-icon svg{display:block;flex:none}
.header-tools .tags-toggle{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:14px;white-space:nowrap;cursor:pointer;position:relative}
.tags-toggle input{position:absolute;opacity:0;width:30px;height:18px;margin:0}
.tags-toggle-track{display:block;width:30px;height:18px;border-radius:9px;background:#bbc1ce;position:relative;flex:none}
.tags-toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .15s}
.tags-toggle input:checked+.tags-toggle-track{background:var(--accent)}
.tags-toggle input:checked+.tags-toggle-track::after{transform:translateX(12px)}
.tags-toggle input:focus-visible+.tags-toggle-track{outline:2px solid var(--accent);outline-offset:3px}
#generateVoices.needs-generation{color:#c62828}
.chapter-highlights .speaker-name.narrator-name{color:#800080}
.chapter-highlights .browser-interim{color:#c62828}
.formatting-log-link{color:var(--muted);font-size:12px;white-space:nowrap;text-underline-offset:3px}
.cost-logs-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--accent);font-weight:600;text-decoration:none;white-space:nowrap}
.cost-logs-button:hover{background:#eef2fa}
.cost-logs-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.cost-log-page main{width:96%;max-width:none;padding:24px 0 6px}
.cost-log-page h1{font-size:26px;letter-spacing:0;margin:0 0 8px}
.cost-log-nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.cost-log-nav form{margin:0;display:flex}
.cost-log-nav a{display:inline-block;padding:9px 16px;border:1px solid #c9cfee;border-radius:7px;background:white;color:var(--accent);font-weight:600;text-decoration:none}
.cost-log-nav a[aria-current="page"]{background:var(--accent);color:white}
.cost-log-nav a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.cost-log-section{margin-bottom:0}
.cost-log-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.cost-log-heading h1,.cost-log-heading h2{margin:0}
.cost-log-heading .cost-log-nav{margin:0}
.cost-log-nav #closeCostLogPage{margin-left:20px}
.cost-log-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px;flex-wrap:wrap}
.cost-log-pagination button,.cost-log-pagination a{padding:7px 12px;font-size:12px}
.cost-log-pagination span{font-size:13px;color:var(--muted)}
.cost-log-clear{margin:12px 0}
.cost-log-section h2{font-size:22px;margin:0 0 8px}
.cost-log-scroll{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:8px}
.cost-log-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.cost-log-table th,.cost-log-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}
.cost-log-table th{background:#eef2fa;font-weight:700}
.cost-log-table th:nth-child(n+4),.cost-log-table td:nth-child(n+4){text-align:right;font-variant-numeric:tabular-nums}
.formatting-log .cost-log-table tr > :nth-child(7),.formatting-log .cost-log-table tr > :nth-child(8),.formatting-log .cost-log-table tr > :nth-child(9){text-align:center}
.formatting-log .cost-log-table tr > :nth-child(4),.formatting-log .cost-log-table tr > :nth-child(5){text-align:left}
.voice-log .cost-log-table tr > :nth-child(4),.voice-log .cost-log-table tr > :nth-child(5){text-align:left}
.cost-log-table tbody tr:nth-child(even){background:#f7f9fd}
.cost-log-table tfoot th,.cost-log-table tfoot td{background:#e8edf9;font-weight:700;border-top:2px solid #b9c6e1;border-bottom:0}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 15% 0%,#dcdaf2 0%,transparent 42%),radial-gradient(ellipse at 100% 18%,#d7e4f3 0%,transparent 38%),var(--paper);color:var(--ink);font:15px/1.5 var(--ui-font);-webkit-font-smoothing:antialiased}
header{padding:3px 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce2ef;background:#ffffffd9;gap:20px;backdrop-filter:blur(14px)}
.brand{display:block;font:750 25px/1.25 var(--ui-font);letter-spacing:-.8px;color:var(--ink);text-decoration:none;padding-left:45px;position:relative}
.brand::before{content:"✦";position:absolute;left:0;top:3px;width:34px;height:38px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#675bea,#3d66cf);color:#fff;font-size:23px;box-shadow:0 4px 12px #5551d52a}
.brand span{display:block;font:650 9px/1.4 var(--ui-font);letter-spacing:1.7px;color:var(--muted);margin-top:0}
.header-tools{display:flex;align-items:center;gap:18px}
#connection{max-width:330px;font-size:12px;color:var(--muted);padding:7px 12px;background:#f0f3f9;border:1px solid var(--line);border-radius:8px}
main{max-width:1520px;width:92%;margin:auto}
.intro{padding:50px 0 34px;max-width:760px}
.eyebrow{font-size:10px;font-weight:750;letter-spacing:2.2px;color:var(--accent);margin:0 0 12px}
h1{font:750 clamp(34px,4.3vw,62px)/1.08 var(--ui-font);letter-spacing:-2.3px;margin:14px 0 20px;text-wrap:balance}
h2{font:700 23px/1.3 var(--ui-font);letter-spacing:-.6px;margin:0}
h3{font:650 19px/1.4 var(--ui-font);letter-spacing:-.25px}
.intro>p:last-child{color:var(--muted);font-size:17px;line-height:1.75;max-width:600px;margin-bottom:0}
.workspace{display:grid;grid-template-columns:365px minmax(0,1fr);gap:28px;align-items:start}
.workspace>*,.book-area{min-width:0}
.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:26px;margin-bottom:22px;box-shadow:0 5px 25px #213c6c06,0 1px 3px #213c6c03}
.section-title{display:flex;gap:12px;align-items:center;margin-bottom:24px}
.section-title h2{font-size:20px}
.step{border:1px solid #dddaf8;color:var(--accent);background:#f0eefc;border-radius:8px;font-size:12px;font-weight:750;width:33px;height:33px;display:grid;place-items:center;flex:none}
label{font-size:12px;font-weight:650;color:#37455f;display:flex;flex-direction:column;gap:8px;margin:17px 0}
input,select,textarea{font:14px/1.5 var(--ui-font);color:var(--ink);background:#f8f9fd;border:1px solid #dce2ed;border-radius:8px;padding:11px 12px;width:100%;transition:border-color .15s,box-shadow .15s,background .15s}
input::placeholder,textarea::placeholder{color:#7c879b;font-weight:400}
textarea{resize:vertical;line-height:1.7;min-height:90px}
input:hover,textarea:hover,select:hover{border-color:#bcc8dd}
input:focus,textarea:focus,select:focus{outline:0;border-color:#7e78e6;background:#fff;box-shadow:0 0 0 3px #635ce51a}
.two{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
button,.file-button{font:650 13px/1.3 var(--ui-font);border:1px solid transparent;border-radius:8px;padding:12px 18px;background:linear-gradient(135deg,#6359df,#4856c8);color:white;cursor:pointer;min-height:44px;box-shadow:0 3px 8px #5451d628;transition:transform .15s,box-shadow .15s,background .15s}
button:hover:not(:disabled),.file-button:hover{transform:translateY(-1px);box-shadow:0 5px 14px #5451d639;background:linear-gradient(135deg,#574dce,#3b49b7)}
button:active:not(:disabled),.file-button:active{transform:translateY(0)}
button:focus-visible,.file-button:focus-within,a:focus-visible,summary:focus-visible{outline:3px solid #a6a0ee;outline-offset:3px}
button:disabled{opacity:.45;cursor:default;box-shadow:none}
.secondary,.file-button{color:#4e4bc1;background:#f0effc;border-color:#dedaf7;box-shadow:none}
.secondary:hover:not(:disabled),.file-button:hover{color:#3d39a5;background:#e6e3fb;box-shadow:0 3px 10px #5451d615}
.quiet{background:#fff;color:var(--muted);border-color:var(--line);box-shadow:none}
.quiet:hover:not(:disabled){background:#f3f5fa;color:var(--ink);box-shadow:none}
.hint{font-size:11px;color:var(--muted);line-height:1.75;margin-top:16px}
.actions{background:linear-gradient(125deg,#16213c,#293654);border-color:#26334f;color:#f6f8ff;box-shadow:0 9px 28px #17233c12;padding:28px}
.actions .eyebrow{color:#b6b2ff}.actions h2{margin-bottom:22px;font-size:26px}
.actions .secondary{background:#ffffff0e;color:#e7e5ff;border-color:#8993c35e}
.actions .secondary:hover:not(:disabled){background:#ffffff18;color:#fff}
.actions .quiet{background:transparent;color:#d9dfed;border-color:#64728d}
.actions .quiet:hover:not(:disabled){background:#ffffff12;color:#fff}
.actions .hint{color:#bcc8df}
progress{display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;margin-top:25px;accent-color:#a39aff;background:#ffffff18}
progress::-webkit-progress-bar{background:#ffffff18;border-radius:8px}progress::-webkit-progress-value{background:linear-gradient(90deg,#8c83fa,#83b5f3);border-radius:8px}progress::-moz-progress-bar{background:#9a91fb;border-radius:8px}
#status{font-size:14px;line-height:1.6;margin:16px 0 0}.error{color:#ffd0cd!important}
.manuscript-heading{display:flex;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
#bookDescription{line-height:1.7;color:var(--muted);font-size:14px;margin-bottom:0}
#wordCount{white-space:nowrap;align-self:flex-start;color:#5e62a2;background:#f0f1fc;border:1px solid #e2e4f6;border-radius:8px;padding:6px 12px;font-size:11px;font-weight:650}
.chapter{padding:22px 0;border-bottom:1px solid var(--line)}.chapter:last-child{border-bottom:0}
.chapter summary{font-size:14px;font-weight:700;cursor:pointer;padding:9px 0;color:#35425f;overflow-wrap:anywhere}
.chapter summary::marker{color:var(--accent)}
.chapter textarea.prose{font:18px/1.85 var(--reading-font);min-height:300px;background:#fff;border:1px solid #e3e7ef;border-radius:8px;padding:20px;color:#26324a}
.chapter input{font:600 20px/1.4 var(--ui-font);letter-spacing:-.4px}
.chapter .summary{font-size:13px}
.empty{text-align:center;padding:65px 20px;color:var(--muted)}
.empty span{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 22px;border:1px solid #e5e0fb;border-radius:8px;background:linear-gradient(140deg,#f0ecff,#edf4fc);font-size:32px;color:#7b71d7}
.empty h3{color:#38465f;margin-bottom:10px}.empty p{font-size:14px;margin:0}
.export{background:linear-gradient(110deg,#faf9ff,#fff)}.export h2{margin-bottom:10px;font-size:23px}.export p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:20px}
#epub{background:linear-gradient(130deg,#15856e,#1b7163);box-shadow:0 3px 9px #187e6b26}#epub:hover:not(:disabled){background:linear-gradient(130deg,#11715d,#155e52);box-shadow:0 5px 14px #187e6b35}
.file-button{margin:0;display:inline-flex;justify-content:center;align-items:center}.file-button input{display:none}
footer{text-align:center;color:var(--muted);padding:30px 20px 40px;font-size:12px}
#helpDialog,#revisionDialog{width:min(760px,94vw);max-height:85vh;overflow:auto;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:30px;line-height:1.75;box-shadow:0 25px 90px #12203d35}
#revisionDialog{width:min(1100px,95vw);max-height:88vh}
#helpDialog::backdrop,#revisionDialog::backdrop{background:rgba(17,29,51,.58);backdrop-filter:blur(4px)}
.help-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}
.help-steps{padding-left:24px}.help-steps li{margin:18px 0;color:var(--muted)}.help-steps strong{color:var(--ink)}#helpDialog h3{margin-bottom:8px}
.revision-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px}.revision-comparison textarea{font:16px/1.8 var(--reading-font)}#revisionBrief{white-space:pre-wrap;line-height:1.7}
[hidden]{display:none!important}
@media(min-width:1600px){.intro{padding-top:60px}}
@media(max-width:1050px){.workspace{grid-template-columns:315px minmax(0,1fr);gap:20px}.card{padding:22px}.actions{padding:25px}button,.file-button{padding:11px 14px}}
@media(max-width:740px){header{align-items:center;padding:3px 4%}.header-tools{flex-direction:row;align-items:center;gap:6px}.brand{font-size:21px}.brand span{font-size:8px;letter-spacing:1px}#connection{max-width:180px;font-size:10px;text-align:right}.workspace{grid-template-columns:1fr}.intro{padding:32px 0 26px}h1{letter-spacing:-1.3px}.manuscript-heading{flex-wrap:wrap}.export .buttons{align-items:stretch}.revision-comparison{grid-template-columns:1fr}#helpDialog,#revisionDialog{padding:20px}.card{border-radius:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}button:hover:not(:disabled),.file-button:hover{transform:none}}

.intro .eyebrow{font-size:14px;color:#65a9df}

.brand{display:flex;align-items:center;gap:14px;padding-left:0}.brand::before{content:none}.brand-logo{display:block;width:60px;height:71px;object-fit:contain;flex:none}.brand-name{min-width:0;color:#e87924;font-weight:500}@media(max-width:740px){.brand{gap:10px}.brand-logo{width:45px;height:54px}}

.account-balance{display:flex;flex-direction:column;gap:3px;text-decoration:none;color:var(--muted);font-size:11px;line-height:1.4;white-space:nowrap;padding:7px 0}.account-balance span{color:#157b67;font-size:13px;font-weight:650}.account-balance:hover span{text-decoration:underline}.header-tools{flex-wrap:wrap;justify-content:flex-end}@media(max-width:740px){.account-balance{text-align:right}}

#libraryDialog{width:min(720px,94vw);max-height:85vh;overflow:auto;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:28px;box-shadow:0 25px 90px #12203d35}#libraryDialog::backdrop{background:rgba(17,29,51,.58);backdrop-filter:blur(4px)}.library-book{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;margin:12px 0;background:#f8f9fd;color:var(--ink);border:1px solid var(--line);padding:18px;text-align:left;box-shadow:none}.library-book:hover:not(:disabled){background:#f0effc;border-color:#beb8ef;box-shadow:0 4px 12px #5451d615}.library-book span{font-size:12px;color:var(--muted);font-weight:400}.library-book:disabled{opacity:1;border-color:#beb8ef;background:#f0effc;cursor:default}

.story-bible textarea{font-size:13px}.story-bible .hint{margin:0 0 18px}#polish{border-color:#a5cdbf;color:#116b54;background:#eff9f4}.actions #polish{border-color:#77bea5;color:#c8ffeb;background:#21604a50}.actions #polish:hover:not(:disabled){background:#21604a80}#planStory{width:100%}

.guided-main{max-width:none;width:90%}.guided-intro{padding:36px 0 25px}.guided-intro h1{font-size:clamp(30px,3.5vw,44px);letter-spacing:-1.4px;margin:10px 0}.guided-intro>p:last-child{color:var(--muted);max-width:680px}.guided-intro .eyebrow{color:#65a9df;font-size:13px}.wizard-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:5px 0 20px}.wizard-nav button{background:#fff;color:var(--muted);border:1px solid var(--line);box-shadow:none;padding:12px 10px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:9px}.wizard-nav button span{display:grid;place-items:center;background:#eef0f8;border-radius:8px;width:25px;height:25px;flex:none}.wizard-nav button[aria-current="step"]{background:#eeecfe;border-color:#b6b0ef;color:#4e45bf}.wizard-nav button[aria-current="step"] span{background:#6359df;color:white}.wizard-nav button:hover:not(:disabled){background:#f1effb}.guided-status{margin-bottom:20px;padding:15px 20px;border:1px solid var(--line);border-radius:8px;background:#ffffffa8}.guided-status #status{margin:0;color:var(--ink)}.guided-status #status.error{color:#ac302b!important}.guided-status #connection{display:inline-block;margin:9px 0 0;padding:0;border:0;background:none;font-size:11px}.guided-status progress{margin-top:10px;background:#e3e5f3}.guided-status progress::-webkit-progress-bar{background:#e3e5f3}.wizard-step{padding:30px}.wizard-step h2{font-size:28px}.step-instructions{color:var(--muted);line-height:1.7;max-width:760px;margin-bottom:25px}.step-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:22px;margin-top:15px;border-top:1px solid var(--line)}.optional>summary{cursor:pointer;font-weight:650;color:#465377;padding:6px 0}.optional{margin-top:22px}.optional details{margin-top:18px}.plan-chapter{background:#f8f9fd;border:1px solid var(--line);border-radius:8px;padding:18px;margin:16px 0}.plan-chapter p{font-size:12px;color:var(--accent);font-weight:700;margin:0}.coach-suggestions{white-space:pre-wrap;background:#f3f2ff;border:1px solid #e2dff7;border-radius:8px;padding:24px;line-height:1.8;margin:18px 0;font-size:15px}#wizardStep4{padding:0}#wizardStep4 .manuscript{padding:30px}#wizardStep4 .chapter textarea.prose{min-height:420px}.chapter-planning{margin:18px 0}.chapter-planning>summary{color:var(--muted);font-size:12px;font-weight:500}.chapter-prose-label{margin-top:20px}@media(max-width:740px){.wizard-nav{grid-template-columns:repeat(2,1fr)}.wizard-step,#wizardStep4 .manuscript{padding:20px}.guided-intro{padding-top:26px}.wizard-step h2{font-size:24px}.step-footer{align-items:stretch}.step-footer button{flex-grow:1}.coach-suggestions{padding:18px}}

.dictation-workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:22px;align-items:start}.chapter-sidebar h2{font-size:19px;margin-bottom:18px}.chapter-sidebar{padding:20px}.chapter-sidebar #addChapter{width:100%;margin-top:12px}.chapter-choice{width:100%;text-align:left;background:#f6f7fc;color:var(--ink);border:1px solid var(--line);box-shadow:none;margin:7px 0;overflow-wrap:anywhere}.chapter-choice[aria-current="true"]{background:#eeecfe;color:#4e45bf;border-color:#b6b0ef}.chapter-choice:hover:not(:disabled){background:#eae7ff}.dictation-editor{min-width:0}.dictation-editor .manuscript-heading{align-items:center;padding-bottom:0;border-bottom:0}.dictation-editor .manuscript-heading h2{font-size:23px}.dictation-editor .manuscript-heading #chapterTitle{flex:1;min-width:0;font-size:20px;font-weight:500;letter-spacing:-.6px}.dictation-editor .manuscript-heading #wordCount{align-self:center}.dictation-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 15px}.dictation-toolbar button{font-size:12px;min-height:34px;padding:8px 12px}.dictation-toolbar #micStatus{display:inline-flex;align-items:center;gap:6px;margin-left:auto;white-space:nowrap;font-size:12px;color:var(--muted)}#micStatus::before{content:"";display:block;width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2M12%2019v3M8%2022h8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2M12%2019v3M8%2022h8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}#micStatus.listening{color:#b0304a;font-weight:650}#chapterText{font:16px/24px Verdana,sans-serif;min-height:100px;background:white;padding:22px}.manuscript-label{font-size:12px}#supportStatus{display:block;font-size:12px;color:var(--muted);margin-top:8px}#bookDetails{margin-top:30px}#bookDetails>summary{font-size:18px}.guided-status #status.error{color:#ac302b!important}@media(max-width:740px){.dictation-workspace{grid-template-columns:1fr}.chapter-sidebar #chapterButtons{display:flex;flex-wrap:wrap;gap:8px}.chapter-choice{width:auto;margin:0}#chapterText{min-height:100px;padding:16px}.dictation-editor{padding:20px}.dictation-toolbar button{flex-grow:1}}

.dictation-scroll-mirror{position:fixed;top:0;left:-100000px;visibility:hidden;pointer-events:none;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;border:0;margin:0}

#deleteChapter{flex:none;white-space:nowrap;font-size:12px;min-height:34px;padding:8px 12px;color:#ac302b;border-color:#e6c3c0}#deleteChapter:hover:not(:disabled){background:#fff0ef;color:#922721}

.mic-indicator{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.dictation-toolbar .mic-indicator #micStatus{margin-left:0}#micLevel{display:block;width:130px;height:8px;border:0;border-radius:8px;background:#e0e6f0}#micLevel::-webkit-meter-bar{border:0;border-radius:8px;background:#e0e6f0}#micLevel::-webkit-meter-optimum-value{border-radius:8px;background:linear-gradient(90deg,#299d75,#dbab35,#bd3040)}#micLevel::-moz-meter-bar{border-radius:8px;background:linear-gradient(90deg,#299d75,#dbab35,#bd3040)}

.studio-sidebar{min-width:0}.voices-sidebar{padding:20px}.voices-sidebar h2{font-size:19px;margin-bottom:18px}.voices-sidebar #addVoice{width:100%;margin-top:12px}.voice-choice{width:100%;text-align:left;background:#f6f7fc;color:var(--ink);border:1px solid var(--line);box-shadow:none;margin:7px 0;overflow-wrap:anywhere}.voice-choice[aria-pressed="true"]{background:#eeecfe;color:#4e45bf;border-color:#b6b0ef}.voice-choice:hover:not(:disabled){background:#eae7ff}#voiceDialog{width:min(520px,94vw);border:1px solid var(--line);border-radius:8px;padding:24px;color:var(--ink)}#voiceDialog::backdrop{background:rgba(17,29,51,.58)}

.fish-voice-panel{min-width:0;min-height:470px}.voice-search{display:flex;gap:10px;margin:20px 0}.voice-search input{flex:1;min-width:0}.fish-voice-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.fish-voice-row>div{min-width:0;overflow-wrap:anywhere}.fish-voice-row button{flex:none}.fish-voice-row .hint{margin:6px 0 0}.voice-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}

.fish-voice-actions{display:flex;align-items:center;gap:8px;flex:none}.fish-voice-row .voice-play{width:32px;min-height:32px;padding:6px;font-size:12px}.voice-play[aria-pressed="true"]{color:#bd3040;background:#fff0ef}

.saved-voice-row{display:flex;align-items:center;gap:6px}.saved-voice-row .voice-choice{flex:1;min-width:0}.saved-voice-row .delete-voice{display:grid;place-items:center;flex:none;width:28px;min-height:28px;padding:5px;color:var(--muted)}.saved-voice-row .delete-voice:hover:not(:disabled){color:#ac302b;background:#fff0ef}

#chapterSpeechAudio{width:100%;height:36px;margin:8px 0}#stopChapterSpeech{font-size:12px;min-height:32px;padding:6px 10px;width:100%}

#aiVoiceSelect{width:auto;max-width:260px;min-width:150px;font-size:12px;padding:7px 10px;height:34px}@media(max-width:740px){#aiVoiceSelect{max-width:100%;flex:1}}

.voice-playback-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.voice-playback-toolbar #chapterSpeechControls:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:8px}.voice-playback-toolbar #chapterSpeechAudio{width:240px;max-width:100%;height:34px;margin:0}.voice-playback-toolbar #stopChapterSpeech{width:auto;flex:none}.voice-playback-toolbar #chapterSpeechStatus{margin:0;font-size:11px;max-width:240px}@media(max-width:740px){.voice-playback-toolbar{width:100%}.voice-playback-toolbar #chapterSpeechAudio{width:220px}}

#chapterText{resize:none}

#chapterSpeechControls:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}#chapterSpeechControls #chapterSpeechAudio{width:260px;max-width:100%;height:34px;margin:0}#chapterSpeechControls #stopChapterSpeech{width:auto;flex:none}#chapterSpeechControls #chapterSpeechStatus{margin:0;font-size:16px;color:#2563eb}

#chapterSpeechStatus{margin:0 0 12px;font-size:16px;color:#2563eb}

.dictation-workspace{grid-template-columns:225px minmax(0,1fr) 225px}.studio-sidebar{grid-column:1;grid-row:1}.dictation-editor,.fish-voice-panel{grid-column:2;grid-row:1}.voices-sidebar{grid-column:3;grid-row:1}@media(max-width:1000px){.dictation-workspace{grid-template-columns:180px minmax(0,1fr) 180px}}@media(max-width:740px){.dictation-workspace{grid-template-columns:1fr}.studio-sidebar,.dictation-editor,.fish-voice-panel,.voices-sidebar{grid-column:1;grid-row:auto}}

.saved-voice-row{cursor:grab}.saved-voice-row:active{cursor:grabbing}.saved-voice-row.voice-dragging{opacity:.45}.saved-voice-row.voice-drop-before{box-shadow:0 -2px 0 #2563eb}.saved-voice-row.voice-drop-after{box-shadow:0 2px 0 #2563eb}

.dictation-workspace #bookDetails{grid-column:2;grid-row:1;margin-top:0;margin-bottom:0}.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel{grid-column:2;grid-row:2}.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar{grid-row:1 / span 2}.dictation-workspace{margin-top:30px;row-gap:22px}@media(max-width:740px){.dictation-workspace #bookDetails,.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel,.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar{grid-column:1;grid-row:auto}}

.editor-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:-6px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line)}.editor-tabs .editor-tab{background:#f6f7fc;color:var(--muted);border:1px solid var(--line);box-shadow:none;padding:8px 10px;min-height:34px;font-size:12px}.editor-tabs .editor-tab[aria-current="page"]{background:#eeecfe;color:#4e45bf;border-color:#b6b0ef}.editor-tabs .editor-tab:hover:not(:disabled){background:#eae7ff;box-shadow:none}@media(max-width:740px){.editor-tabs .editor-tab{padding:8px 4px;font-size:11px}}

.dictation-workspace #bookDetails.editor-book-details{margin:0;padding:0;border:0;background:none;box-shadow:none}.editor-book-details>label:first-child{margin-top:0}

.display-book-title{font-size:24px;margin:0 0 16px;overflow-wrap:anywhere}

.dictation-workspace>.display-book-title{grid-column:2;grid-row:1;margin:0;align-self:end}.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel{grid-row:2}.dictation-workspace:has(>.display-book-title[hidden]) .dictation-editor,.dictation-workspace:has(>.display-book-title[hidden]) .fish-voice-panel{grid-row:1}@media(max-width:740px){.dictation-workspace>.display-book-title,.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel,.dictation-workspace:has(>.display-book-title[hidden]) .dictation-editor,.dictation-workspace:has(>.display-book-title[hidden]) .fish-voice-panel{grid-column:1;grid-row:auto}}

.display-book-title .book-title-text{font-family:Tahoma,sans-serif;font-size:34px;font-weight:500;color:#00008b}.display-book-title .book-author-credit{font-family:Verdana,sans-serif;font-size:16px;color:#444;font-weight:400;letter-spacing:normal;margin-left:20px}

.dictation-workspace>.editor-tabs{grid-column:2;grid-row:2;margin:0;padding-bottom:0;border-bottom:0}.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel,.dictation-workspace:has(>.display-book-title[hidden]) .dictation-editor,.dictation-workspace:has(>.display-book-title[hidden]) .fish-voice-panel{grid-row:3}.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar{grid-row:1 / span 3}.dictation-workspace:has(>.display-book-title[hidden])>.editor-tabs{grid-row:1}.dictation-workspace:has(>.display-book-title[hidden]) .dictation-editor,.dictation-workspace:has(>.display-book-title[hidden]) .fish-voice-panel{grid-row:2}@media(max-width:740px){.dictation-workspace>.editor-tabs,.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar,.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel,.dictation-workspace:has(>.display-book-title[hidden])>.editor-tabs,.dictation-workspace:has(>.display-book-title[hidden]) .dictation-editor,.dictation-workspace:has(>.display-book-title[hidden]) .fish-voice-panel{grid-column:1;grid-row:auto}}

.library-book-row{display:flex;align-items:center;gap:10px}.library-book-row .library-book{flex:1;min-width:0}.delete-book{flex:none;color:#ac302b;font-size:12px;min-height:34px;padding:8px 10px}.delete-book:hover:not(:disabled){background:#fff0ef;color:#922721}@media(max-width:480px){.library-book-row{flex-wrap:wrap;gap:0}.library-book-row .library-book{flex-basis:100%}.delete-book{margin-bottom:10px}}

#exportTabPanel{padding:0;margin:0;min-height:220px}#exportTabPanel h2{margin-bottom:12px}

.mic-indicator[hidden]{display:none}

.inline-playback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.inline-playback #chapterSpeechControls:not([hidden]){margin:0}.inline-playback #chapterSpeechStatus{margin:0}.inline-playback #chapterSpeechAudio{width:230px}.dictation-toolbar .inline-playback button{flex-grow:0}

.chapter-button-row{display:flex;align-items:center;gap:6px}.chapter-button-row .chapter-choice{flex:1;min-width:0}.chapter-button-row .chapter-trash{display:grid;place-items:center;flex:none;width:28px;min-height:28px;padding:5px;color:var(--muted)}.chapter-button-row .chapter-trash:hover:not(:disabled){color:#ac302b;background:#fff0ef}@media(max-width:740px){.chapter-button-row{max-width:100%}}

.inline-playback[hidden]{display:none}

.voices-sidebar[hidden]{display:none}.dictation-workspace:has(>.voices-sidebar[hidden]){grid-template-columns:225px minmax(0,1fr)}@media(max-width:1000px){.dictation-workspace:has(>.voices-sidebar[hidden]){grid-template-columns:180px minmax(0,1fr)}}@media(max-width:740px){.dictation-workspace:has(>.voices-sidebar[hidden]){grid-template-columns:1fr}}

.dictation-workspace{row-gap:0}.dictation-workspace>.display-book-title{margin-bottom:22px}.dictation-workspace>.editor-tabs{gap:4px;align-self:end}.editor-tabs .editor-tab{border-radius:8px 8px 0 0;border-bottom:0;margin:0;position:relative;z-index:1}.editor-tabs .editor-tab:hover:not(:disabled){transform:none}.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel{border-top-left-radius:0;border-top-right-radius:0}@media(max-width:740px){.dictation-workspace .studio-sidebar{margin-bottom:22px}.dictation-workspace>.display-book-title{margin-bottom:16px}.dictation-workspace .voices-sidebar{margin-top:22px}}

.numbered-chapter-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.numbered-chapter-title #chapterNumber{white-space:nowrap;font-size:23px;font-weight:700;letter-spacing:-.6px}.numbered-chapter-title #chapterTitle{min-width:0}@media(max-width:740px){.numbered-chapter-title{width:100%;flex-basis:100%}.numbered-chapter-title #chapterNumber{font-size:19px}}

.dictation-editor .manuscript-heading .numbered-chapter-title{flex:1 1 100%;max-width:100%}.dictation-editor .manuscript-heading .numbered-chapter-title #chapterTitle{flex:0 1 auto;max-width:100%;min-width:0}.dictation-editor .manuscript-heading #wordCount{margin-left:auto}

.numbered-chapter-title #chapterNumber{font-size:18px;font-weight:500;letter-spacing:normal}

.dictation-workspace>.editor-tabs{display:flex;flex-wrap:wrap;gap:7px}.editor-tabs .editor-tab{flex:0 0 auto;white-space:nowrap}

.chapter-button-row{gap:0;margin:7px 0;border:1px solid var(--line);border-radius:8px;background:#f6f7fc;overflow:hidden}.chapter-button-row:has(.chapter-choice[aria-current="true"]){background:#eeecfe;border-color:#b6b0ef}.chapter-button-row .chapter-choice{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}.chapter-button-row .chapter-choice:hover:not(:disabled){background:#eae7ff;transform:none;box-shadow:none}.chapter-button-row .chapter-trash{margin:0 6px 0 auto;border:0;background:transparent}.chapter-button-row .chapter-trash:hover:not(:disabled){transform:none;box-shadow:none}@media(max-width:740px){.chapter-button-row{margin:0}}

.tagged-editor{position:relative;background:#fff;border-radius:8px;overflow:hidden}.chapter-highlights{position:absolute;top:1px;left:1px;bottom:1px;box-sizing:border-box;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;pointer-events:none;color:#17233c;font:16px/24px Verdana,sans-serif}.chapter-highlights .speech-tag{color:#c62828}#chapterText{position:relative;display:block;background:transparent;color:transparent;caret-color:#17233c;-webkit-text-fill-color:transparent}#chapterText:focus{background:transparent}#chapterText::placeholder{color:#7c879b;-webkit-text-fill-color:#7c879b}#chapterText::selection{background:#b8d7fa99}

.hide-speech-tags .chapter-highlights .speech-tag{visibility:hidden}

.dictation-editor .manuscript-heading #chapterTitle{padding-top:2px;padding-bottom:2px}.dictation-editor .manuscript-heading{margin-bottom:5px}

.chapter-sidebar #sidebarBookTitle{color:#00008b;margin-bottom:8px;overflow-wrap:anywhere}.sidebar-book-author{margin:0 0 18px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}

.dictation-workspace>.editor-tabs{grid-row:1}.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel{grid-row:2}.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar{grid-row:1 / span 2}@media(max-width:740px){.dictation-workspace>.editor-tabs,.dictation-workspace .dictation-editor,.dictation-workspace .fish-voice-panel,.dictation-workspace .studio-sidebar,.dictation-workspace .voices-sidebar{grid-row:auto}}

.dictation-workspace{grid-template-rows:max-content auto}.dictation-workspace>.editor-tabs{align-self:start}@media(max-width:740px){.dictation-workspace{grid-template-rows:none;grid-auto-rows:max-content}}

.dictation-workspace{grid-template-columns:300px minmax(0,1fr) 300px}.dictation-workspace:has(>.voices-sidebar[hidden]){grid-template-columns:300px minmax(0,1fr)}@media(max-width:740px){.dictation-workspace,.dictation-workspace:has(>.voices-sidebar[hidden]){grid-template-columns:1fr}}

#audiobookProgress{display:flex;align-items:center;gap:12px;margin:12px 0}#audiobookProgress[hidden]{display:none}#audiobookProgressBar{flex:1;min-width:0;height:18px;accent-color:#00008b}#audiobookProgressPercent{min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}@media(max-width:740px){.numbered-chapter-title{flex-wrap:wrap}}





.tts-model{font-size:12px;color:#00008b;background:#eef2fa;border:1px solid #dce2ef;border-radius:8px;padding:7px 10px;white-space:nowrap}
.api-usage{font-family:Verdana,sans-serif;font-size:16px;font-weight:500;color:#00008b;white-space:nowrap;margin-left:auto;text-align:right}
.api-usage-used{color:#c62828}.api-usage-remaining{color:#15803d}
main.guided-main{width:98%;max-width:none}header{height:60px;box-sizing:border-box;padding-left:1%;padding-right:1%}
#status:empty{display:none}
.chapter-button-row .chapter-name-edit{flex:1;min-width:0;width:0;margin:0;border:0;border-radius:0;padding:10px 12px;font:inherit;background:#fff;color:var(--ink)}
.chapter-button-row .chapter-edit{display:grid;place-items:center;flex:none;width:28px;min-height:28px;padding:5px;margin-left:auto;border:0;background:transparent;color:var(--muted)}.chapter-button-row .chapter-edit:hover:not(:disabled){background:#eae7ff;color:#4e45bf;transform:none;box-shadow:none}.chapter-button-row .chapter-edit+.chapter-trash{margin-left:0}
.numbered-chapter-title #generateVoices{flex:none;white-space:nowrap;font-size:12px;min-height:34px;padding:8px 12px}
.chapter-highlights .speaker-name{color:#2563eb}
.chapter-highlights .spoken-word{background:#ffe08a;color:#17233c;border-radius:3px}
.dictation-workspace .chapter-sidebar #addChapter{margin-top:24px}
.header-tools button{min-height:32px;padding:6px 14px}
#ttsModel,#sttModel{display:inline-block;font-size:11px;color:var(--muted);white-space:nowrap}
.stt-model-control{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;color:var(--muted);white-space:nowrap}
.stt-model-control #sttModel,.stt-model-control #formatModel{width:auto;max-width:240px;min-height:32px;margin:0;padding:6px 24px 6px 8px;background:#eef2fa;border:1px solid #dce2ef;border-radius:8px;font-size:11px;color:var(--muted)}
.brand-logo{position:relative;top:15px;width:63px;height:auto}
@media(max-width:740px){.brand-logo{width:48px;height:auto}}
.characters-label{font-size:16px;color:var(--muted);margin:16px 0 8px}
.saved-voice-row{gap:0;margin:7px 0;border:1px solid var(--line);border-radius:8px;background:#f6f7fc;overflow:hidden}
.saved-voice-row:has(.voice-choice[aria-pressed="true"]){background:#eeecfe;border-color:#b6b0ef}
.saved-voice-row .voice-choice{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;padding-left:4px}
.saved-voice-row .voice-choice:hover:not(:disabled){background:#eae7ff;transform:none;box-shadow:none}
.saved-voice-row .delete-voice{margin:0 6px 0 auto;border:0;background:transparent}
.saved-voice-row .delete-voice:hover:not(:disabled){transform:none;box-shadow:none}
.saved-voice-row .voice-name-pencil{display:grid;place-items:center;flex:none;width:28px;min-height:28px;padding:5px;margin-left:auto;border:0;background:transparent;color:var(--muted)}
.saved-voice-row .voice-name-pencil:hover:not(:disabled){background:#eae7ff;color:#4e45bf;transform:none;box-shadow:none}
.saved-voice-row .voice-name-input{flex:1;min-width:0;width:0}
.saved-voice-row .voice-name-pencil+.delete-voice{margin-left:0}
#stopChapterSpeech.playback-stop>span{display:block;width:12px;height:12px;background:currentColor;font-size:0;line-height:0}
#chapterSpeechControls #chapterSpeechAudio{display:none}#chapterEditor .inline-playback #toggleChapterSpeech{display:grid;place-items:center;width:34px;min-height:34px;padding:0;border-radius:50%;font-size:16px;color:#00008b;background:#f1f3f4}.inline-playback #chapterSpeechSeek{width:110px;min-width:60px;padding:0;margin:0;accent-color:#00008b}.playback-time{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
#chapterEditor .inline-playback #stopChapterSpeech.playback-stop{display:grid;place-items:center;width:34px;min-height:34px;padding:0;border-radius:50%;font-size:16px;color:#00008b;background:#f1f3f4}
#chapterEditor>.inline-playback{margin:0;padding:8px 16px;min-width:0}#chapterEditor .inline-playback #stopChapterSpeech{font-size:12px;min-height:34px;padding:8px 12px}
#chapterEditor .inline-playback #chapterSpeechControls:not([hidden]){flex:1;min-width:0;flex-wrap:nowrap;width:100%}
#chapterEditor .inline-playback #chapterSpeechSeek{flex:1 1 0;width:auto;min-width:60px;cursor:pointer}
#chapterEditor .inline-playback #chapterSpeechSeek{appearance:none;-webkit-appearance:none;height:24px;min-height:24px;background:transparent;border:0;border-radius:0;box-shadow:none;outline-offset:3px}
#chapterSpeechSeek::-webkit-slider-runnable-track{height:12px;background:#d8dce5;border:0;border-radius:6px}
#chapterSpeechSeek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-3px;border:0;border-radius:50%;background:#00008b;cursor:pointer}
#chapterSpeechSeek::-moz-range-track{height:12px;background:#d8dce5;border:0;border-radius:6px}
#chapterSpeechSeek::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:#00008b;cursor:pointer}
#toggleChapterSpeech.is-playing::before{content:"";display:block;width:12px;height:14px;background:linear-gradient(to right,currentColor 0 4px,transparent 4px 8px,currentColor 8px 12px)}
.voices-pane{grid-column:3;grid-row:1 / span 2;min-width:0}
.voices-pane[hidden]{display:none}
.tags-sidebar{min-height:300px;padding:20px}
.tags-buttons{display:flex;flex-wrap:wrap;gap:8px}
.tags-sidebar .remove-all-tags{padding:5px 10px;min-height:28px;font-size:12px;margin-bottom:16px;box-shadow:none}
.tags-buttons button{padding:5px 10px;min-height:28px;font-size:12px;box-shadow:none}
.tags-sidebar[hidden]{display:none}
.dictation-workspace .voices-pane>.voices-sidebar{margin-top:0;border-top-left-radius:0}
.voices-pane>.tags-sidebar{border-top-left-radius:0}
.voices-pane-tabs{display:flex;gap:6px;margin:0}
@media(min-width:741px){.dictation-workspace:has(>.voices-pane[hidden]):not(:has(>#bookCoverPanel:not([hidden]))){grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:740px){.voices-pane{grid-column:1;grid-row:auto;margin-top:22px}}
.voices-pane-tabs button{padding:4px 14px;min-height:0;font-size:12px;border-radius:8px 8px 0 0;box-shadow:none}
.voices-pane-tabs button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.voices-sidebar #voicesHeading{margin-bottom:6px}.narrator-label{font-size:16px;color:var(--muted);margin:0 0 8px}
.editor-tabs #wordCount{margin-left:auto;align-self:center;text-align:right;font-size:12px;color:var(--muted);padding-left:12px}
.voice-page-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.voice-search{flex-wrap:wrap}#fishVoiceLanguage,#fishVoiceGender,#fishVoiceAge,#fishVoiceStyle,#fishVoiceAccent{width:auto;flex:0 0 auto}
.dictation-workspace{grid-template-rows:min-content minmax(0,1fr);align-content:start;row-gap:0}
.dictation-workspace>.editor-tabs{gap:4px}
#chapterEditor .inline-playback #chapterSpeechControls button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;font:16px/1 Verdana,sans-serif;color:#00008b;background:#f1f3f4;box-shadow:none}
#chapterEditor .inline-playback #chapterSpeechControls button:hover{background:#e2e5e9;transform:none}
#chapterEditor .inline-playback #chapterSpeechControls #stopChapterSpeech,#chapterEditor .inline-playback #chapterSpeechControls #toggleChapterSpeech{box-sizing:border-box;display:grid;place-items:center;flex:0 0 34px;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px;max-height:34px;padding:0;border:0;border-radius:50%;font:16px/1 Verdana,sans-serif;color:#00008b;background:#f1f3f4;box-shadow:none}
#fishVoiceList{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
#fishVoiceList .fish-voice-row{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:20px 12px;gap:12px;border:1px solid var(--line);border-radius:8px;min-width:0;background:#f2f2f2}
#fishVoiceList .voice-play{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:#00008b;color:#fff;font-size:16px;display:grid;place-items:center}
#fishVoiceList .fish-voice-row .hint{font-size:13px}
#fishVoiceList .voice-play:hover:not(:disabled){background:#1515b0;color:#fff}
#fishVoiceList .voice-play[aria-pressed="true"]{background:#1515b0;color:#fff}
#fishVoiceList .fish-voice-actions{margin-top:auto}
#fishVoiceList .fish-voice-actions:has(.edit-voice-name){flex-direction:column;gap:4px}.edit-voice-name{font-size:12px;padding:6px 10px}
#fishVoiceList .fish-voice-actions.saved-voice-icons{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}
#fishVoiceList .round-voice-action{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:#eef0fa;color:var(--accent);box-shadow:none}
#fishVoiceList .round-voice-action[aria-pressed="true"]{background:var(--accent);color:white}
#fishVoiceList .round-voice-action:hover{background:#e1e4f5}
#fishVoiceList .round-voice-action.delete-voice{color:#c62828}
.voice-action-caption{display:flex;flex-direction:column;align-items:center;gap:4px}
.voice-action-caption>span{font-size:10px;line-height:1.2;color:var(--muted);font-weight:500}
html:has(.guided-main),.guided-main #chapterText{scrollbar-width:none}
html:has(.guided-main)::-webkit-scrollbar,.guided-main #chapterText::-webkit-scrollbar{display:none}
.dictation-workspace #chapterEditor{margin-bottom:20px}
.dictation-workspace:has(>#bookCoverPanel:not([hidden])){grid-template-columns:300px minmax(0,1fr) 300px}
.book-cover-sidebar{grid-column:3;grid-row:1 / span 2;padding:20px;min-width:0}
.book-cover-sidebar h2{font-size:19px;margin-bottom:18px}
.book-cover-synopsis{margin:16px 0 0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.book-cover-details{margin:30px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:13px;line-height:1.4}
.book-cover-details>div{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.book-cover-details dt{color:var(--muted);flex:none}
.book-cover-details dd{margin:0;text-align:right;overflow-wrap:anywhere}
.read-mode #bookCoverHeading{display:none}
.book-cover-preview{display:grid;place-items:center;background:#f6f7fc;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.book-cover-preview img{display:block;width:100%;height:auto;margin:0;padding:0}
.book-cover-preview img[hidden]{display:none}
.book-cover-preview p{padding:20px;text-align:center;color:var(--muted);font-size:13px}
.book-cover-upload{display:block;width:100%;margin-top:14px;text-align:center}
.book-cover-generate{display:block;width:100%;margin-top:10px}
.cover-generator-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:28px;align-items:start}
.cover-generator-page h2{font-size:24px;margin:0}
.cover-generator-page form>label{margin-bottom:16px}
.image-generation-menus>label{margin-bottom:16px}
.image-generation-menus.same-row{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.image-generation-menus.same-row>label{min-width:0}
@media(max-width:600px){.image-generation-menus.same-row{grid-template-columns:1fr}}
.generated-cover-preview{min-width:0;text-align:center;background:#f6f7fc;border:1px solid var(--line);border-radius:8px;padding:16px}
.generated-cover-preview img{display:block;width:auto;max-width:100%;height:auto;max-height:400px;object-fit:contain;object-position:left top;margin-left:0;margin-right:auto}
.generated-cover-preview img[hidden]{display:none}
.generated-cover-preview .buttons{justify-content:center;margin-top:16px}
.cover-results{display:flex;flex-direction:column;min-width:0}
.cover-generator-page>.help-heading{border-bottom:0;padding-bottom:0}
@media(min-width:1001px){
 .cover-generator-page:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);grid-template-rows:min-content 1fr;column-gap:28px;align-items:start;align-content:start}
 .cover-generator-page>.help-heading{grid-column:1;grid-row:1}
 .cover-generator-page>.cover-generator-layout{display:contents}
 #coverGeneratorForm{grid-column:1;grid-row:2}
 .cover-generator-page .cover-results{grid-column:2;grid-row:1 / span 2;align-self:stretch}
}
.cover-history{margin-top:auto;padding-top:20px}
.cover-history-grid{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;align-items:flex-start}
.cover-history-card{flex:0 0 140px;min-width:0;padding:0;border:0;border-radius:0;background:transparent}
.cover-history-select{display:block;width:100%;padding:0;border:0;background:transparent;box-shadow:none}
.cover-history-select:hover:not(:disabled),.cover-history-select:focus{background:transparent;box-shadow:none;transform:none;outline:none;border-radius:0}
.cover-history-select:focus-visible{outline:1px dotted #666;outline-offset:1px}
.cover-history-select img{display:block;width:100%;height:auto;max-height:180px;object-fit:contain}
.cover-history-card p{font-size:12px;margin:10px 0;color:var(--muted)}
.cover-history-card .cover-current-label{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;font-size:16px;margin:2px 0 0;padding:0}
.cover-history-card .buttons{gap:6px;flex-wrap:wrap}
.cover-history-card .buttons>*{font-size:11px;padding:6px 8px}
#coverGeneratorStatus{font-size:14px;line-height:1.5;margin:14px 0 0;color:var(--muted)}
#coverGeneratorStatus.error{color:#ac302b!important}
@media(max-width:1000px){.cover-generator-layout{grid-template-columns:1fr}}
.read-mode .book-cover-generate{display:none}
.read-mode #generateVoices,.read-mode #addChapter,.read-mode #bookDetailsTab,.read-mode .book-cover-upload,.read-mode #undoText,.read-mode #redoText,.read-mode .editor-word-count{display:none!important}
@media(max-width:740px){.dictation-workspace:has(>#bookCoverPanel:not([hidden])){grid-template-columns:1fr}.book-cover-sidebar{grid-column:1;grid-row:auto;max-width:340px;width:100%}}
.editor-chapter-heading{text-align:center;padding:30px 22px 40px;overflow-wrap:anywhere}
.read-mode .editor-chapter-heading{margin-top:-30px}
.editor-chapter-heading p{margin:0;font-size:16px;line-height:1.1;color:var(--muted)}
.editor-chapter-heading #editorChapterTitle{margin:0;font-size:36px;line-height:1.2;text-align:center}
.text-editor-box{border:1px solid #dce2ed;border-radius:8px;background:#fff;overflow:visible}
.text-editor-box:focus-within{border-color:var(--accent)}
.read-mode .text-editor-box{border-color:transparent;border-radius:0}
.read-mode .tagged-editor{border-radius:0}
.read-mode #chapterText{max-height:none;overflow-y:hidden}
.editor-audio-header{display:flex;align-items:center;gap:100px;padding:8px 16px;margin-top:20px;margin-bottom:0}
.editor-audio-header>.inline-playback{flex:1;min-width:0}
.inline-playback .player-volume{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0 0 0 50px;flex:none;color:#00008b}
.player-volume svg{flex:none}
.inline-playback #chapterSpeechVolume{width:150px;min-width:150px;margin:0;padding:0;height:24px;accent-color:#00008b;cursor:pointer}
#muteChapterSpeech{position:relative}
#muteChapterSpeech.is-muted::after{content:"";position:absolute;width:20px;height:2px;background:currentColor;transform:rotate(-45deg)}
.editor-toolbar-summary{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex:1;min-width:0;margin-left:auto}
.editor-toolbar-summary #status{margin:0;font-size:12px;overflow-wrap:anywhere}
.editor-toolbar-summary #status.error{color:#ac302b!important}
.editor-toolbar-summary #status.formatting-status,.editor-toolbar-summary #status.voice-generation-status{font-size:18px}
.read-mode #status.voice-generation-status{display:block}
.numbered-chapter-title .editor-word-count{display:flex;justify-content:flex-end;flex:none;font-size:12px;color:var(--muted);white-space:nowrap}
@media(max-width:480px){.editor-audio-header{flex-wrap:wrap;gap:12px}.editor-audio-header>.inline-playback{flex-basis:100%}}
.text-editor-box .manuscript-label{margin:0}
.text-editor-box #chapterText{border:0;border-radius:0;box-shadow:none;outline:none;padding-left:72px;padding-right:72px;line-height:20px}
.text-editor-box .chapter-highlights{top:0;left:0;bottom:0}
.sidebar-book-heading{display:flex;align-items:center;gap:10px;margin-bottom:2px}
.chapter-sidebar .sidebar-book-heading #sidebarBookTitle{flex:1;min-width:0;margin:0;font-size:24px}
.book-summary-sidebar{padding:20px}
.book-details-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.book-details-actions .cost-logs-button,.book-details-actions #exportTab,.book-details-actions #openCostLogs,.book-details-actions #openStorage{padding:7px 9px;min-height:32px;font-size:12px;box-shadow:none}
#costLogsDialog,#storageDialog{width:94vw;max-width:1500px;height:85vh;max-height:90vh;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
#costLogsDialog[open],#storageDialog[open]{display:flex;flex-direction:column;gap:12px}
#costLogsDialog::backdrop,#storageDialog::backdrop{background:rgba(17,29,51,.58)}
#costLogsDialog .help-heading,#storageDialog .help-heading{flex:none}
#costLogsDialog .help-heading{justify-content:flex-end;border-bottom:0;padding-bottom:0;margin-bottom:0}
#costLogsDialog h2,#storageDialog h2{margin:0}
#costLogsFrame,#storageFrame{width:100%;flex:1;min-height:0;border:0;border-radius:8px}
.read-mode .book-summary-sidebar{display:none}
.read-mode .chapter-sidebar .chapter-edit,.read-mode .chapter-sidebar .chapter-trash{display:none}
.read-mode #status{display:none}
.book-summary-sidebar h2{font-size:19px;margin:0 0 18px}
.book-summary-sidebar dl{margin:0;font-size:13px;line-height:1.2}
.book-summary-sidebar dl>div{display:flex;justify-content:space-between;gap:12px;margin-top:6px}
.book-summary-sidebar dt{color:var(--muted)}
.book-summary-sidebar dd{margin:0;font-weight:600;text-align:right}
.sidebar-book-author-row{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.sidebar-book-author-row .sidebar-book-author{min-width:0;margin:0;font-size:16px}
.book-summary-sidebar #bookDetailsTab{display:block;width:100%;margin-top:20px;padding:7px 9px;min-height:32px;font-size:12px;box-shadow:none}
.book-summary-sidebar #bookDetailsTab[aria-current="page"]{background:#eeecfe;color:#4e45bf;border-color:#b6b0ef}
@media(max-width:1000px){#fishVoiceList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#fishVoiceList{grid-template-columns:1fr}}
.dictation-workspace #fishVoicePanel,.dictation-workspace #chapterEditor{align-self:start;margin-top:0;border-radius:8px}
header:has(.bookdictator-brand){height:81px;padding-top:0;padding-bottom:0}
.brand.bookdictator-brand{display:block;position:relative;width:360px;height:68px;flex:0 0 360px;overflow:hidden;margin:6px 0;padding:0 4px;border:0;border-radius:5px}
.bookdictator-brand .brand-logo{position:static;display:block;top:auto;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}
@media(max-width:740px){header:has(.bookdictator-brand){height:65px}.brand.bookdictator-brand{width:270px;height:52px;flex-basis:270px}.bookdictator-brand .brand-logo{width:100%;height:100%;top:auto}}
@media(max-width:740px){.dictation-workspace{grid-template-rows:none;grid-auto-rows:max-content}}
.cost-log-cover{display:block;width:60px;height:90px;object-fit:contain;border-radius:3px;}
#coverHistoryStatus:empty{display:none}
.cover-preview-layout{display:grid;grid-template-columns:minmax(0,267px) minmax(0,1fr);gap:20px;align-items:start}
.cover-description{text-align:left;overflow-wrap:anywhere}
.cover-description h3{font-size:18px;font-weight:400;margin:0 0 20px;line-height:1.5}
#generatedCoverDescription{white-space:pre-wrap}
@media(max-width:650px){.cover-preview-layout{grid-template-columns:1fr}}
.generated-cover-preview .cover-description .buttons{justify-content:flex-start}
#generatedBookCover,#bookCoverImage{cursor:zoom-in;border-radius:8px}
.cover-zoom-dialog{border:0;border-radius:10px;padding:16px;max-width:95vw;max-height:95vh;background:#fff;box-shadow:0 12px 50px #0006}
.cover-zoom-dialog::backdrop{background:rgba(0,0,0,.7)}
.cover-zoom-dialog>button{display:block;margin:0 0 12px auto}
.cover-zoom-dialog>img{display:block;width:auto;height:auto;max-width:calc(95vw - 32px);max-height:calc(95vh - 100px);object-fit:contain;margin:auto}
.cover-generating-dialog{border:0;border-radius:12px;padding:28px 36px;max-width:calc(100vw - 40px);text-align:center;background:#fff;box-shadow:0 12px 50px #0006;color:var(--ink)}
.cover-generating-dialog::backdrop{background:rgba(0,0,0,.5)}
.cover-generating-dialog p:first-child{font-size:22px;font-weight:600;margin:0 0 12px}
.cover-generating-dialog p:last-child{margin:0;color:var(--muted)}
#generatedCoverMetadata{white-space:pre-line;line-height:1.6}
.cover-text-options{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:16px}
.cover-text-options label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;font-size:16px;white-space:nowrap;cursor:pointer}
.cover-text-options input{width:22px;height:22px;flex:0 0 22px;margin:0;padding:0;cursor:pointer}
.cover-text-options input[type="checkbox"]{appearance:none;background:#fff;border:1px solid #aab4c8;border-radius:3px;display:grid;place-content:center}
.cover-text-options input[type="checkbox"]:checked::after{content:"";width:6px;height:12px;border:solid #245bea;border-width:0 3px 3px 0;transform:translateY(-2px) rotate(45deg)}
.cover-text-options input[type="checkbox"]:focus-visible{outline:2px solid #245bea;outline-offset:3px}
#coverGeneratorPrompt{font-size:16px;line-height:1.6}
.cover-placeholder-book{display:block;width:100%;height:100%;margin:0}
#generatedCoverPlaceholder{position:relative;width:100%;max-width:300px;aspect-ratio:2 / 3;margin:0 auto 0 0;color:#626975;text-align:center}
#generatedCoverPlaceholder>p{position:absolute;inset:42% 15% 36%;display:flex;align-items:center;justify-content:center;margin:0;font-size:16px;line-height:1.5}
.saved-voice-row.voice-recording .voice-choice,.saved-voice-row.voice-recording .voice-choice:hover:not(:disabled){background:#d32f3f;color:#fff;box-shadow:none}
.saved-voice-row .voice-mic-toggle{display:grid;place-items:center;flex:0 0 30px;width:30px;height:32px;min-height:32px;margin:0 2px;padding:5px;border:0;box-shadow:none;background:transparent;color:#218446;cursor:pointer}
.saved-voice-row .voice-mic-toggle:hover:not(:disabled){background:#e4ece7;transform:none;box-shadow:none}
.saved-voice-row.voice-recording .voice-mic-toggle{color:#d32f3f}
#voiceButtons.is-recording .voice-name-pencil,#voiceButtons.is-recording .delete-voice{display:none}
#chapterEditor .numbered-chapter-title{gap:4px}
.numbered-chapter-title .editor-history-icon{padding:7px;min-width:32px}
#chapterEditor:has(#chapterTabPanel:not([hidden])){padding-top:12px}
#chapterEditor .manuscript-heading{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}
#chapterEditor .dictation-toolbar{margin:3px 0 6px}
#chapterIllustration{display:block;width:auto;height:auto;max-width:calc(100% - 40px);max-height:260px;margin:20px auto 0;border-radius:8px;object-fit:contain}
#chapterIllustration[hidden],.read-mode #addChapterImage{display:none}
#chapterEditor #addChapterImage{flex:none;white-space:nowrap;font-size:12px;min-height:34px;padding:8px 12px}
.chapter-cover-picker{width:min(700px,90vw);max-height:85vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.chapter-cover-picker::backdrop{background:#0008}
.chapter-cover-picker>h2{margin-top:0}
.chapter-cover-picker>button{margin-bottom:16px}
.chapter-cover-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px}
.chapter-cover-choice,.chapter-cover-choice:hover:not(:disabled){padding:4px;border:1px solid var(--line);background:transparent;box-shadow:none;transform:none}
.chapter-cover-choice img{display:block;width:100%;height:180px;object-fit:contain}
.chapter-image-frame{position:relative;width:174px;max-width:100%;margin:20px auto 0}
#chapterImageFrame[hidden]{display:none}
#chapterImageFrame #chapterIllustration{width:100%;height:auto;max-width:100%;max-height:none;margin:0}
.chapter-image-handle{position:absolute;width:12px;height:12px;min-height:12px;padding:0;border:2px solid #fff;border-radius:2px;background:#5750d5;box-shadow:0 0 0 1px #5750d5;touch-action:none}
.chapter-image-handle.top-left{top:-6px;left:-6px;cursor:nwse-resize}
.chapter-image-handle.top-right{top:-6px;right:-6px;cursor:nesw-resize}
.chapter-image-handle.bottom-left{bottom:-6px;left:-6px;cursor:nesw-resize}
.chapter-image-handle.bottom-right{bottom:-6px;right:-6px;cursor:nwse-resize}
.read-mode .chapter-image-handle{display:none}
.chapter-cover-picker{position:fixed}
.chapter-cover-picker>h2{padding-right:100px;margin-bottom:24px}
.chapter-cover-picker>button{position:absolute;top:16px;right:16px;margin:0}
.chapter-cover-picker>.chapter-image-upload-button{position:static;margin:0 0 16px}
#chapterImageFrame .chapter-image-remove{position:absolute;top:8px;right:8px;padding:5px 9px;min-height:28px;font-size:12px;background:#fff;color:#a32938;border:1px solid #ddd;box-shadow:0 1px 5px #0002;z-index:1}
.read-mode #removeChapterImage{display:none}
.chapter-image-size{position:absolute;bottom:8px;left:8px;padding:3px 6px;border-radius:4px;background:#000b;color:#fff;font-size:12px;line-height:1.4;pointer-events:none;z-index:2}
.chapter-image-size[hidden],.read-mode .chapter-image-size{display:none}
.dictation-workspace>.editor-tabs .editor-tab{padding:4px 14px;min-height:0;font-size:12px;border-radius:8px 8px 0 0;box-shadow:none}
.editor-tabs .editor-tab[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:#fff}
.dictation-workspace:has(>.editor-tabs .editor-tab:not([hidden])) #chapterEditor{border-top-left-radius:0}
.changed-chapter-dialog{width:min(520px,92vw);padding:26px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.changed-chapter-dialog::backdrop{background:#0008}
.song-background-volume{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;align-self:flex-start;gap:12px;margin:12px 0 18px;font-size:14px;text-align:left}
.song-background-volume>span{white-space:nowrap}
.song-background-volume[hidden]{display:none}
.song-background-volume input{width:150px;min-width:0;margin:0}
.song-background-volume output{min-width:42px}
.sidebar-playback-buttons{display:flex;gap:8px;margin-top:40px}
.saved-voice-row .voice-insert{flex:none;width:24px;min-height:28px;padding:2px;font-size:20px;line-height:24px;background:transparent;box-shadow:none;color:var(--accent)}
.read-mode .voice-insert{display:none}
.saved-voice-row .chapter-voice-change{display:grid;place-items:center;flex:none;width:24px;min-height:28px;padding:3px;background:transparent;box-shadow:none;color:var(--muted)}
.saved-voice-row .chapter-voice-change.has-chapter-voice{color:var(--accent)}
.saved-voice-row .chapter-voice-change[hidden]{display:none}
.read-mode .chapter-voice-change{display:none}
.read-mode #findCharacters{display:none}
.character-reference-highlight{border-radius:2px}
.synopsis-more{font-size:16px;white-space:nowrap;color:var(--accent);text-decoration:underline;cursor:pointer}
.sidebar-background-music{display:flex;flex-direction:row;align-items:center;gap:8px;margin:14px 0 0;font-size:14px}
.sidebar-background-music input{width:18px;height:18px;margin:0}
.sidebar-background-music[hidden]{display:none}
.song-cover-reference{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:16px}
.song-cover-reference input{width:20px;height:20px;margin:0}
.image-reference-options{display:flex;align-items:center;flex-wrap:wrap;gap:0 24px}
.image-reference-options[hidden]{display:none}
@media(min-width:1001px){
 body.images-page-open footer{display:none}
 body.images-page-open #chapterEditor{height:var(--images-pane-height,calc(100dvh - 140px));box-sizing:border-box;min-height:0;margin-bottom:0;display:flex;flex-direction:column}
 body.images-page-open #coverGeneratorPage{flex:1;min-height:0;grid-template-rows:min-content minmax(0,1fr);overflow:hidden}
 body.images-page-open #coverGeneratorForm{min-height:0;height:100%;display:flex;flex-direction:column;overflow:auto}
 body.images-page-open #coverGeneratorForm>label:has(#coverGeneratorPrompt){flex:1;min-height:100px;margin-top:12px;margin-bottom:10px}
 body.images-page-open #coverGeneratorPrompt{flex:1;min-height:70px;height:0;resize:none}
 body.images-page-open .image-generation-menus>label{margin-top:8px;margin-bottom:8px}
 body.images-page-open .image-reference-options label{margin:8px 0}
 body.images-page-open .cover-results{height:100%;min-height:0;overflow:hidden}
 body.images-page-open .generated-cover-preview{min-height:0;overflow:auto}
 body.images-page-open .generated-cover-preview img{max-height:min(400px,calc(var(--images-pane-height) - 240px))}
 body.images-page-open #generatedCoverPlaceholder{max-height:calc(var(--images-pane-height) - 240px);width:auto;max-width:100%}
 body.images-page-open .cover-history{flex-shrink:0;padding-top:12px}
 body.images-page-open .cover-history-select img{max-height:120px}
 body.images-page-open .editor-audio-header{flex-shrink:0}
 body.images-page-open .chapter-sidebar{max-height:calc(100dvh - 100px);overflow:auto}
}
.sidebar-playback-buttons>button[aria-pressed="true"]{color:red}
.sidebar-playback-buttons>button{flex:1;min-width:0;padding-left:8px;padding-right:8px}
.sidebar-song-button[hidden]{display:none}
#generatedSongAudio.instrumental-preview::-webkit-media-controls-volume-slider,
#generatedSongAudio.instrumental-preview::-webkit-media-controls-mute-button{display:none}
.changed-chapter-dialog h2{margin-top:0;font-size:22px}
.changed-chapter-dialog .buttons{display:flex;gap:10px;flex-wrap:wrap}
.changed-chapter-status{color:var(--muted)}
#bookDetails>p:has(#bookVoiceCost),#bookDetails>p:has(#bookCoverCost),#bookDetails>.book-total-cost{margin:4px 0;line-height:1.4}
#bookDetails>h2{margin-bottom:30px}
#synopsis{font-size:16px;line-height:1.6;min-height:370px;resize:vertical}
.synopsis-heading{display:flex;align-items:center;justify-content:space-between;width:100%}
.synopsis-mic{display:grid;place-items:center;padding:3px;min-height:26px;width:28px;box-shadow:none}
.synopsis-mic[aria-pressed="true"]{color:#d32f3f;background:#fff0f0}
.chapter-image-frame.format-image-hidden{display:none}
#chapterButtons>.chapter-button-row[hidden]{display:none}
.chapter-formatting-layout{display:grid;grid-template-columns:1fr;gap:24px;margin-top:16px}
.chapter-formatting-options{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:16px;overflow-x:auto;padding-bottom:8px}
.chapter-formatting-options>label{flex:0 0 auto;margin:0;white-space:nowrap}
.chapter-formatting-options>label:not(.format-checkbox){min-width:120px}
.chapter-formatting-options>.format-checkbox{align-self:center}
.chapter-formatting-options>button{flex:none;white-space:nowrap}
.formatting-emphasis{grid-column:1 / -1;display:flex;gap:8px;align-items:center}
.formatting-emphasis button{width:34px;min-height:32px;padding:4px;font-size:17px}
.formatting-emphasis [data-emphasis="bold"]{font-weight:700}
.formatting-emphasis [data-emphasis="italic"]{font-style:italic}
.formatting-emphasis [data-emphasis="underline"]{text-decoration:underline}
.formatting-emphasis [aria-pressed="true"]{background:var(--accent);color:#fff}
.formatting-alignment{display:flex;gap:8px;margin-left:12px;padding-left:12px;border-left:1px solid var(--line)}
.formatting-alignment button{display:grid;place-items:center}
.formatting-emphasis .formatting-colour{position:relative;display:grid;place-items:center;width:34px;height:32px;margin:0 0 0 8px;border:1px solid var(--line);border-radius:8px;background:#f6f7fc;cursor:pointer;font-size:18px;font-weight:650;flex:none}
.formatting-colour span{line-height:22px;border-bottom:3px solid var(--font-colour,#17233c)}
.formatting-colour input{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}
.custom-font-colour .speaker-name,.custom-font-colour .speech-tag{color:inherit!important}
.chapter-formatting-checkboxes{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.chapter-formatting-checkboxes .format-checkbox{display:flex;flex-direction:row;align-items:center;font-size:14px;gap:10px;margin:0}
.format-checkbox input{width:20px;height:20px;margin:0}
.chapter-formatting-checkboxes .format-checkbox[hidden]{display:none}
#formatPreviewImage{display:block;max-width:100%;max-height:240px;object-fit:contain;margin:16px auto}
#formatPreviewImage[hidden]{display:none}
.chapter-formatting-preview{border:1px solid var(--line);border-radius:8px;padding:28px 72px;background:#fff;overflow-wrap:anywhere}
#formatPreviewNumber,#formatPreviewTitle{text-align:center}
.format-font-target{border:1px dotted #8b93a3;cursor:pointer;padding:5px 12px;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}
.format-font-target:hover,.format-font-target:focus-visible{border-color:var(--accent);outline:1px dotted var(--accent);outline-offset:2px}
.format-font-target[aria-pressed="true"]{border-color:var(--accent);background:#f1efff}
.format-body-target{width:100%;box-sizing:border-box;padding:12px;min-height:80px}
#formatPreviewText{white-space:pre-wrap;overflow-wrap:break-word;color:#17233c;font-weight:400}
#formatPreviewText .speaker-name{color:#2563eb}
#formatPreviewText .speaker-name.narrator-name{color:#800080}
#formatPreviewText .speech-tag{color:#c62828}
@media(max-width:740px){.chapter-formatting-layout{grid-template-columns:1fr}}
body.formatting-page-open footer{display:none}
body.formatting-page-open #chapterEditor{height:var(--images-pane-height,calc(100dvh - 140px));box-sizing:border-box;min-height:0;margin-bottom:0;display:flex;flex-direction:column}
#chapterFormattingPage:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
#chapterFormattingHeading{flex:none;margin-bottom:0}
body.formatting-page-open .chapter-formatting-layout{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
body.formatting-page-open .chapter-formatting-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;overflow:visible;padding:0}
.google-font-dialog{width:min(600px,92vw);padding:28px;border:1px solid var(--line);border-radius:8px}
.google-font-dialog::backdrop{background:#0007}
#googleFontPreview{font-size:28px;line-height:1.5;min-height:100px;overflow-wrap:anywhere;margin:24px 0}
body.formatting-page-open .chapter-formatting-options>label{min-width:0;white-space:normal;font-size:12px}
body.formatting-page-open .chapter-formatting-options select{padding:8px 6px;font-size:12px;min-width:0}
body.formatting-page-open .chapter-formatting-options>button{white-space:normal;padding:8px;font-size:12px}
body.formatting-page-open .chapter-formatting-preview{min-height:0;overflow:hidden;margin:0}
body.formatting-page-open .editor-audio-header{flex:none}
@media(max-width:1000px){body.formatting-page-open .chapter-formatting-options{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){body.formatting-page-open .chapter-formatting-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
#bookDetails .book-details-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}
#bookDetails .book-details-costs{border-left:1px solid var(--line);padding-left:24px}
#bookDetails .book-details-summary p{margin:4px 0;line-height:1.4}
@media(max-width:650px){#bookDetails .book-details-summary{grid-template-columns:1fr;gap:12px}#bookDetails .book-details-costs{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}}
#bookDetails .book-details-counts> .two{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1.2fr);align-items:end;gap:12px}
#bookDetails .book-title-by{align-self:end;display:flex;align-items:center;justify-content:center;height:45px;margin-bottom:17px;font-size:16px}
#bookDetails .book-details-counts> .two>label{min-width:0;margin-top:0}
#bookDetails .book-details-counts> .two>label:first-child{margin-top:0}
#bookDetails .book-details-costs>p:has(#bookTotalWords),#bookDetails .book-details-costs>.book-total-cost{margin-bottom:24px}
#bookDetails .book-details-costs>.book-total-cost{margin-top:24px;font-size:20px;line-height:1.5}
#bookDetails .book-voice-characters{margin-top:24px;overflow-wrap:anywhere}
#bookDetails .book-voice-characters h3{margin:0 0 8px;font-size:16px}
.read-mode .editor-tabs,.read-mode .voices-pane-tabs{display:none!important}
.read-mode .studio-sidebar>.inline-playback{display:flex;margin-top:16px;width:100%;min-width:0}
body:not(.story-player-visible) .inline-playback{display:none!important}
.inline-playback #chapterSpeechControls button,.inline-playback #chapterSpeechControls button:hover,.inline-playback #chapterSpeechControls button:focus,.inline-playback #chapterSpeechControls button:active{background:transparent!important;box-shadow:none}
.read-mode .studio-sidebar #chapterSpeechControls:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;margin:0}
.read-mode .studio-sidebar #chapterSpeechControls button{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:50%;color:#00008b;background:#f1f3f4;box-shadow:none}
.read-mode .studio-sidebar #chapterSpeechSeek{flex:1;min-width:40px;width:40px}
.read-mode .studio-sidebar .playback-time{flex:0 0 auto;text-align:right}
.read-mode .studio-sidebar .player-volume{flex-basis:100%;margin:4px 0 0;min-width:0}
.read-mode .studio-sidebar #chapterSpeechVolume{flex:1;width:100%;min-width:0}
.cover-text-options[hidden]{display:none}
.chapter-image-picker-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:20px}
.chapter-cover-picker>.chapter-image-picker-actions{position:absolute;top:16px;right:16px;margin:0}
.chapter-cover-picker:has(.chapter-image-picker-actions)>h2{padding-right:230px;min-height:44px}
@media(max-width:550px){.chapter-cover-picker>.chapter-image-picker-actions{position:static;margin-bottom:16px}.chapter-cover-picker:has(.chapter-image-picker-actions)>h2{padding-right:0}}
#chapterImageFrame #removeChapterImage{display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;height:28px;line-height:1;padding:0 12px;top:50%;left:50%;right:auto;transform:translate(-50%,-50%)}
#chapterImageFrame button#removeChapterImage{color:#fff;border:2px solid #000;background:#333}
.read-mode #chapterImageFrame button#removeChapterImage{display:none!important}
#deleteGeneratedImage{color:#c62828}
.chapter-cover-choices>.chapter-image-generate{grid-column:1 / -1;justify-self:center;margin:20px 0}
.chapter-images-empty{grid-column:1 / -1;text-align:center;margin:20px 0}
.chapter-images-empty>p{margin:0 0 15px}
.song-generation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
.dictation-workspace:has(>.voices-pane[hidden]):has(>#songIngredientsPane:not([hidden])){grid-template-columns:225px minmax(0,1fr) 240px}
.song-ingredients-pane{min-width:0;padding:20px}
.song-right-panel{min-width:0;display:flex;flex-direction:column;gap:16px}
.song-right-panel>.song-results[hidden]{display:none}
.song-ingredients-pane[hidden]{display:none}
.song-ingredients-pane h2{font-size:19px;margin:0 0 18px}
.song-ingredients-pane details{border-top:1px solid var(--line)}
.song-ingredients-pane summary{padding:14px 0;cursor:pointer;font-weight:600}
.song-ingredient-options{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:16px}
.song-ingredient-options button{font-size:12px;padding:6px 10px;box-shadow:none}
.song-ingredient-options button[aria-pressed="true"]{background:#eeecfe;border-color:#8075e8;color:#4e45bf}
@media(min-width:741px) and (max-width:1000px){.dictation-workspace:has(>.voices-pane[hidden]):has(>#songIngredientsPane:not([hidden])){grid-template-columns:180px minmax(0,1fr) 200px}}
@media(max-width:740px){.dictation-workspace:has(>.voices-pane[hidden]):has(>#songIngredientsPane:not([hidden])){grid-template-columns:1fr}.song-ingredients-pane{grid-column:1;grid-row:auto}}
#songPrompt,#songLyrics{font-size:16px;line-height:1.6}
.song-instrumental{flex-direction:row;align-items:center;font-size:16px}
.song-instrumental input{width:20px;height:20px}
.song-results{display:flex;flex-direction:column;align-self:stretch;min-width:0;border:1px solid var(--line);border-radius:8px;padding:20px;background:#f6f7fc}
.song-results #songModel{margin-top:auto;padding-top:24px;margin-bottom:0;font-size:18px}
.song-results #downloadSong{align-self:flex-start}
.song-results audio{width:100%;margin:12px 0}
.song-results [hidden]{display:none}
.song-lyrics{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto}
.song-history{display:flex;flex-direction:row;gap:14px;margin-top:16px;overflow-x:auto;padding:6px 6px 10px;align-items:flex-start}
.song-history .song-thumbnail{flex:0 0 120px;width:120px;min-width:120px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);text-align:center;overflow:visible}
.song-thumbnail svg{display:block;width:120px;height:120px}
.song-thumbnail span{display:block;margin-top:8px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.song-history .song-thumbnail:hover:not(:disabled){background:transparent;box-shadow:none;transform:none}
.song-thumbnail[aria-pressed="true"] svg{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
@media(max-width:1000px){.song-generation-layout{grid-template-columns:1fr}}
.song-placeholder{position:relative;max-width:360px;margin:0 auto 20px;text-align:center;color:#626975}
.song-placeholder svg{display:block;width:100%;height:auto}
.song-placeholder p{margin:16px 0 0;font-size:16px;line-height:1.5}
.story-song-switch{display:flex;gap:0;flex:none;margin-left:16px;align-self:center}
.story-song-switch[hidden]{display:none}
.story-song-switch button{font-size:12px;padding:7px 12px;min-height:32px;border-radius:0;box-shadow:none}
.story-song-switch button:first-child{border-radius:6px 0 0 6px}
.story-song-switch button:last-child{border-radius:0 6px 6px 0}
.story-song-switch button[aria-pressed="true"]{background:var(--accent);color:#fff}
.song-results #useGeneratedSong{align-self:flex-start;margin:0 0 10px}
.song-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
.song-results .song-actions #useGeneratedSong{margin:0}
#deleteSongTrack{color:#c62828}
