.ai-reader-edit-notice,.script-edit-hint{margin:0 0 20px;color:var(--ui-muted);font:13px/1.7 var(--ui-font)}.ai-reader-edit-notice{color:var(--ui-accent-hover)}.ai-reader-passage{min-width:0}.ai-screenplay-reader.is-document-editing>.ai-reader-toolbar{position:sticky;top:0;z-index:15;padding-top:8px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border-strong)}.script-edit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}.script-edit-actions>span{color:var(--ui-accent-hover);font:13px/1.6 var(--ui-font)}.ai-reader-toolbar :is(.script-edit-start,.script-selection-ai),.script-conflict-action,.script-conflict-review button,.script-edit-actions button{min-height:44px;padding:8px 14px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:8px;font:13px/1.6 var(--ui-font);cursor:pointer}.ai-reader-toolbar .script-edit-start{margin-left:auto}.script-edit-actions button.simple-primary{color:#fff;border-color:var(--ui-accent);background:var(--ui-accent)}.script-edit-actions button.simple-primary:hover:not(:disabled){background:var(--ui-accent-hover)}.script-edit-actions button:disabled{cursor:not-allowed;opacity:.5}.script-direct-text{border:0;border-radius:2px;padding:0;color:inherit;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;caret-color:var(--ui-accent)}.script-direct-text:empty{display:inline-block;min-width:2ch;min-height:1.5em;vertical-align:bottom}.script-direct-text:focus{outline:2px solid var(--ui-accent);outline-offset:3px;background:var(--ui-accent-soft)}.script-direct-text{scroll-margin-block:120px 24px}.simple-studio-main:has(.is-document-editing){scroll-padding-block-start:120px}.script-direct-text[aria-readonly=true]{cursor:wait}.script-edit-error{color:var(--ui-danger);font:14px/1.7 var(--ui-font)}.script-conflict-review{margin:16px 0 24px;padding:16px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-bg);font:14px/1.7 var(--ui-font)}.script-conflict-review summary{cursor:pointer}.script-conflict-review p{white-space:pre-wrap;overflow-wrap:anywhere}.ai-reader-toolbar :is(.script-edit-start,.script-selection-ai):focus-visible,.script-conflict-action:focus-visible,.script-conflict-review button:focus-visible,.script-edit-actions button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.ai-command-selection{min-width:0;margin-bottom:12px;padding:12px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-surface)}.ai-command-selection p{max-height:7em;overflow:auto;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 var(--ui-font)}.ai-command-selection button{min-height:44px;padding:8px;color:var(--ui-accent-hover);background:transparent;border:0;text-decoration:underline;font:13px/1.6 var(--ui-font);cursor:pointer}.plan-progress-intro,.plan-progress-source{color:var(--ui-muted);font:13px/1.7 var(--ui-font);overflow-wrap:anywhere}.plan-progress{scroll-margin-block-start:100px}.plan-progress .story-reference-status{font-size:13px}.plan-progress .story-reference-status.is-stale{color:var(--ui-warning);background:var(--ui-surface);border-color:currentColor}.plan-progress-group{margin-top:20px}.plan-progress-group h4{margin:0 0 8px;font:600 15px/1.6 var(--ui-font)}.plan-progress-item{padding:12px 0;border-bottom:1px solid var(--ui-border);overflow-wrap:anywhere}.plan-progress-item>p{margin:0 0 8px}.plan-progress-item>small{display:block;color:var(--ui-muted);font:13px/1.7 var(--ui-font)}.plan-progress-locate{min-height:44px;padding:8px 12px;border:1px solid var(--ui-border-strong);border-radius:6px;color:var(--ui-accent);background:var(--ui-surface);font:14px/1.6 var(--ui-font);cursor:pointer}.plan-progress-locate:disabled{opacity:.5;cursor:not-allowed}.simple-studio-shell .ai-command-heading>.ai-command-scope{white-space:normal;overflow-wrap:anywhere}.creative-entry-shell .flow-canvas{width:min(920px,calc(100% - 48px));padding-top:40px}.creative-entry-shell .start-heading{margin-bottom:28px}.creative-entry-shell .start-heading h1,.utility-page-heading h1{font:700 clamp(28px,3vw,40px)/1.35 var(--story-font);letter-spacing:-.035em}.creative-entry-shell .start-heading>small{display:none}.creative-entry-shell .start-heading p{font-size:14px;line-height:1.8}.flow-canvas>.story-composer{width:100%;padding:24px}.flow-canvas .story-composer .writing-idea-input textarea{min-height:140px}.flow-steps{color:var(--ui-muted);margin-bottom:30px}.flow-steps span:before{background:var(--ui-bg);color:var(--ui-muted)}.rewrite-form{padding:24px;border-radius:18px;border:1px solid var(--ui-border);background:var(--ui-surface);gap:22px}.creative-entry-shell .rewrite-modes button{min-height:90px;border-radius:10px}.creative-entry-shell .rewrite-modes button.selected{color:var(--ui-accent);border-color:var(--ui-accent);background:var(--ui-accent-soft);box-shadow:inset 0 0 0 1px var(--ui-accent)}.rewrite-form .source-input{padding:0!important;min-height:0!important;border:0}.rewrite-form .source-input textarea{min-height:200px;padding:16px;border:1px solid var(--ui-border-strong);border-radius:10px}.source-input>label:not(.file-pick){font-size:13px;font-weight:700}.source-input .source-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.source-footer small{color:var(--ui-muted);font-size:12px}.rewrite-progress{padding:18px;background:var(--ui-accent-soft);border:1px solid var(--ui-border);border-radius:12px}.rewrite-progress p{margin:6px 0;color:var(--ui-muted);font-size:13px}.rewrite-scope-note{font-size:12px;line-height:1.8;color:var(--ui-muted)}.reconstruction-result .result-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.reconstruction-result .result-options article{display:flex;flex-direction:column;min-width:0;padding:22px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px}.reconstruction-result .result-options article.selected{border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}.reconstruction-result .result-options p{flex:1;font-size:14px;line-height:1.8}.reconstruction-result .result-options button{min-height:44px;margin-top:12px}.reconstruction-result .result-options button[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-accent-soft);border-color:var(--ui-accent)}.reconstruction-risks{padding:20px;margin-block:20px;border:1px solid var(--ui-border);border-radius:12px;font-size:14px;line-height:1.8}.reconstruction-risks ul{margin-bottom:0;padding-left:20px;color:var(--ui-muted)}.reconstruction-next{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;padding-top:20px}.reconstruction-next p{flex:1 1 300px;margin:0;color:var(--ui-muted);font-size:14px;line-height:1.8}.reconstruction-next .flow-primary{width:auto;flex:0 1 auto;min-height:48px}.legacy-reconstruction{margin-top:24px;padding:16px;border:1px solid var(--ui-border);border-radius:12px}.legacy-reconstruction summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.legacy-reconstruction pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 var(--ui-font)}.utility-shell{min-height:calc(100dvh - 64px)}.utility-page-heading{margin-bottom:28px}.utility-main{padding-top:42px}.account-profile{padding:26px;margin-bottom:34px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px}.account-avatar{background:var(--ui-accent-soft);border:0}.account-avatar,.account-credit-total strong{color:var(--ui-accent)}.account-ledger-table,.admin-users-table{border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.account-ledger-columns,.admin-users-columns{background:var(--ui-bg)}.account-ledger-row,.admin-user-row{min-height:68px}.account-ledger-row strong{font-weight:550}.admin-studio-create{padding:24px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface)}.account-ledger-heading h2,.admin-create-heading h2,.admin-users-heading h2{font-family:var(--story-font)}.manuscript-toolbar{position:relative;margin-bottom:14px;padding:8px 0;border-bottom:1px solid var(--ui-border)}.manuscript-tools{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}.manuscript-tools>button{min-height:44px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font:13px/1.7 var(--ui-font);cursor:pointer}.manuscript-tools>details{position:static}.manuscript-tools summary{min-height:44px;padding:10px 12px;color:var(--ui-muted);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;font:13px/1.7 var(--ui-font);cursor:pointer}.manuscript-tools details[open]>summary{color:var(--ui-accent-hover);background:var(--ui-accent-soft);border-color:var(--ui-accent)}.manuscript-menu-content{position:absolute;inset:calc(100% + 4px) 0 auto;z-index:15;min-width:0;max-height:min(360px,50dvh);overflow-y:auto;padding:16px;border:1px solid var(--ui-border-strong);border-radius:10px;box-shadow:var(--ui-shadow)}.manuscript-brief-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.manuscript-brief-content h3{margin:0 0 6px;color:var(--ui-muted);font:600 12px/1.6 var(--ui-font)}.manuscript-brief-content p{margin:0;color:var(--ui-text);font:14px/1.8 var(--ui-font);white-space:pre-wrap;overflow-wrap:anywhere}.manuscript-menu-content fieldset{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin:0;padding:0;border:0}.manuscript-menu-content button{min-height:44px;padding:0 12px;color:var(--ui-text);border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);cursor:pointer}.manuscript-menu-content button:hover{border-color:var(--ui-accent)}.manuscript-menu-content button:focus-visible,.manuscript-tools summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.simple-studio-shell .simple-screenplay-header{padding-bottom:12px;margin-bottom:12px}.simple-studio-shell .studio-screenplay-title{min-width:0}.manuscript-tools>details:not([open])>.manuscript-menu-content{display:none}.story-reference{padding:8px 24px 32px;color:var(--ui-text);font:14px/1.8 var(--ui-font);overflow-wrap:anywhere}.story-reference-footnote,.story-reference-intro{color:var(--ui-muted);margin:12px 0 16px}.story-reference-status{padding:10px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);font-size:12px}.candidate-stale-note,.story-reference-status.is-stale{color:var(--ui-accent-hover);background:var(--ui-accent-soft)}.story-reference-section{border-bottom:1px solid var(--ui-border);padding-block:8px}.story-reference summary{min-height:44px;padding-block:10px;cursor:pointer;font-weight:600}.story-reference summary>span{margin-left:12px;color:var(--ui-muted);font-size:12px;font-weight:400}.story-reference dl{margin:8px 0 16px}.story-reference dl>div+div{margin-top:12px}.story-reference dt,.story-reference small{font-size:12px;color:var(--ui-muted)}.story-reference dd{margin:2px 0 0}.story-reference dd,.story-reference p{white-space:pre-wrap}.story-reference ul{padding-left:20px}.story-character{padding-left:12px;border-left:2px solid var(--ui-border);margin-block:8px}.story-reference-item{padding:8px 0 12px}.story-reference-item+.story-reference-item{border-top:1px dashed var(--ui-border)}.story-reference-item h4{font-size:14px;margin:8px 0}.story-reference-item p{margin:8px 0}.story-evidence summary{font-size:12px;font-weight:400;color:var(--ui-muted)}.story-evidence blockquote{margin:0 0 12px;padding:12px;border-left:2px solid var(--ui-border-strong);background:var(--ui-surface);white-space:pre-wrap}.story-episode-heading{font-size:16px;margin:28px 0 12px}.story-reference-footnote,.story-stale-reasons{font-size:12px}.story-reference-empty{padding-block:12px}.story-reference-empty h3{font-size:16px}.continuity-history form{display:grid;gap:12px;margin:12px 0}.continuity-history label{display:grid;gap:6px;min-width:0;color:var(--ui-muted);font-size:12px}.continuity-history form>div{display:flex;align-items:end;gap:12px}.continuity-history form>div label{flex:1}.continuity-history input,.continuity-history select{min-width:0;width:100%;padding:10px;font:16px/1.5 var(--ui-font)}.continuity-history button,.continuity-history input,.continuity-history select{min-height:44px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-text);background:var(--ui-surface)}.continuity-history button{padding:10px 12px;font:13px/1.7 var(--ui-font);cursor:pointer}.continuity-history button:disabled{opacity:.5;cursor:not-allowed}.screenplay-checks button,.story-checks-entry{min-height:44px;padding:10px 12px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-text);background:var(--ui-surface);font:14px/1.7 var(--ui-font);cursor:pointer}.screenplay-checks button:disabled{opacity:.5;cursor:not-allowed}.screenplay-checks section{padding-block:16px}.screenplay-checks section+section{border-top:1px solid var(--ui-border)}.screenplay-checks h3{font-size:16px}.check-quote{margin:12px 0;padding:8px 12px;border-left:2px solid var(--ui-border-strong);color:var(--ui-muted);white-space:pre-wrap;overflow-wrap:anywhere}.continuity-source-links{display:flex;flex-wrap:wrap;gap:8px}.continuity-disclaimer{color:var(--ui-muted);font-size:12px}.continuity-history :is(input,select,button):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.ai-reader-passage:focus{outline:2px solid var(--ui-accent);outline-offset:6px;background:var(--ui-accent-soft)}.ai-reader-scene{scroll-margin-block:100px 32px}.ai-reader-scene:focus>header{outline:2px solid var(--ui-accent);outline-offset:4px;background:var(--ui-accent-soft)}.ai-reader-passage{scroll-margin-block:100px 32px}.story-reference-empty button{min-height:44px;padding:10px 16px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-text);background:var(--ui-surface);cursor:pointer}.simple-studio-shell .assistant-change-preview .candidate-item-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px;padding:0;background:transparent;border:0}.candidate-item-actions button{min-height:44px;padding:10px 12px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-text);background:var(--ui-surface);font:12px/1.6 var(--ui-font);cursor:pointer}.simple-studio-shell .assistant-change-preview .candidate-stale-note{padding:10px 12px;border-radius:8px;font-size:12px}.candidate-item-actions button:hover:not(:disabled),.manuscript-tools>button:hover:not(:disabled),.story-reference button:hover:not(:disabled){background:var(--ui-accent-soft);border-color:var(--ui-accent)}.candidate-item-actions button:focus-visible,.manuscript-tools>button:focus-visible,.story-reference button:focus-visible,.story-reference summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.candidate-item-actions button:disabled,.manuscript-tools>button:disabled{opacity:.5;cursor:not-allowed}.ai-reader-preview-disclosure:not([open])>:not(summary){display:none}.ai-command-heading>.ai-command-scope{padding:3px 8px;color:var(--ui-accent-hover);background:var(--ui-accent-soft);border-radius:6px;font:600 12px/1.6 var(--ui-font);white-space:nowrap}.model-settings-main{max-width:1240px;min-width:0}.model-settings-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.model-settings-heading h1{margin-bottom:10px}.model-settings-heading p{margin:0}.model-primary,.model-secondary{min-height:44px;padding:10px 16px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:600}.model-secondary{border:1px solid var(--ui-border-strong);color:var(--ui-text);background:var(--ui-surface)}.model-primary{border:1px solid var(--ui-accent);background:var(--ui-accent);color:#fff}.model-primary:hover:not(:disabled){background:var(--ui-accent-hover)}.model-secondary:hover:not(:disabled){border-color:var(--ui-accent);color:var(--ui-accent)}.model-settings-main button:disabled{opacity:.48;cursor:not-allowed}.model-settings-main :is(button,input,a,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}.model-runtime-note{display:flex;align-items:flex-start;gap:14px;padding:20px 22px;margin:24px 0;background:var(--ui-accent-soft);border:1px solid var(--ui-border);border-radius:13px}.model-runtime-note svg{width:22px;height:22px;color:var(--ui-accent);flex-shrink:0}.model-runtime-note strong{font-size:14px}.model-runtime-note p{margin:6px 0 0;font-size:12px;color:var(--ui-muted);line-height:1.8}.model-provider-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:22px}.model-provider-card{display:grid;gap:11px;justify-items:start;min-height:156px;padding:18px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-surface);color:var(--ui-text);text-align:left;cursor:pointer}.model-provider-card.selected{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent);background:var(--ui-accent-soft)}.model-provider-card:hover:not(:disabled){border-color:var(--ui-accent)}.model-monogram{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--ui-bg);font-size:15px;font-weight:700;color:var(--ui-muted)}.model-provider-card.selected .model-monogram{background:var(--ui-accent-soft);color:var(--ui-accent)}.model-provider-card strong{font-size:14px}.model-provider-card small{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--ui-muted)}.model-provider-card i{width:6px;height:6px;border-radius:50%;background:var(--ui-muted)}.model-provider-card .available{color:#386846}.model-provider-card .available i{background:#52875d}.model-config-panel{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;overflow:hidden}.model-config-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 28px 20px}.model-config-panel h2{font:700 24px/1.3 var(--ui-font);margin:6px 0 0}.model-config-panel header>a{color:var(--ui-accent);font-size:12px;text-decoration:none;padding-block:12px}.model-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--ui-muted)}.model-config-panel form{padding:0 28px}.model-config-panel fieldset{padding:0;margin:0;border:0;min-width:0}.model-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.model-form-grid label{min-width:0;display:grid;align-content:start;gap:9px;font-size:13px}.model-form-grid label>span{font-weight:600}.model-form-grid em{display:inline;margin-left:6px;color:var(--ui-muted);font-size:11px;font-style:normal;font-weight:400}.model-form-grid input{width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid var(--ui-border-strong);border-radius:8px;background:#fff;color:var(--ui-text);font-size:13px}.model-form-grid small,.model-save-row small{font-size:11px;color:var(--ui-muted);line-height:1.7}.model-clear-key{display:flex;gap:8px;align-items:center;width:-moz-fit-content;width:fit-content;min-height:44px;margin-top:6px;color:var(--ui-danger);font-size:12px;cursor:pointer}.model-clear-key input{width:16px;height:16px;accent-color:var(--ui-accent)}.model-advanced{border-top:1px solid var(--ui-border);margin-top:20px;padding-top:6px}.model-advanced>summary{min-height:44px;padding-block:13px;font-size:12px;color:var(--ui-muted);cursor:pointer}.model-advanced .model-form-grid{margin:12px 0 18px}.model-save-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0 24px}.model-save-row>button{flex-shrink:0}.model-activation{border-top:1px solid var(--ui-border);background:var(--ui-bg);padding:23px 28px}.model-activation h3{font-size:14px;margin:0 0 8px}.model-activation p{font-size:12px;line-height:1.8;margin:0;color:var(--ui-muted);overflow-wrap:anywhere}.model-action-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.model-action-buttons .model-primary{margin-left:auto}.model-feedback{margin:18px 0;padding:14px 18px;border-radius:10px;background:#edf4eb;color:#355c36;font-size:13px;line-height:1.7}.model-feedback.error{background:var(--ui-accent-soft);color:var(--ui-danger)}.model-loading{padding:44px 0;font-size:14px;color:var(--ui-muted)}.model-security-note{padding:20px 3px;color:var(--ui-muted)}.model-security-note strong{font-size:12px;color:var(--ui-text)}.model-security-note p{margin:8px 0 0;font-size:11px;line-height:1.9}.model-audit{border-top:1px solid var(--ui-border);padding-top:20px}.model-audit h2{margin:0 0 12px;font-size:14px}.model-audit ul{margin:0;padding:0;list-style:none}.model-audit li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;color:var(--ui-muted);font-size:12px}.model-audit time{font-size:11px;white-space:nowrap}@media (max-width:1100px){.model-provider-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.model-provider-card{min-height:135px}}@media (max-width:767px){.model-settings-heading{align-items:flex-start}.model-settings-heading>button{flex-shrink:0;padding-inline:10px}.model-settings-heading h1{font-size:24px}.model-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.model-provider-card{padding:15px;min-height:130px}.model-activation,.model-config-panel>header{padding:20px}.model-config-panel form{padding:0 20px}.model-form-grid{grid-template-columns:1fr;gap:20px}.model-form-grid input{font-size:16px}.model-save-row{align-items:flex-start;flex-direction:column}.model-save-row>button{width:100%}.model-action-buttons{display:grid;grid-template-columns:1fr}.model-action-buttons .model-primary{margin:0}.model-audit li{align-items:flex-start;flex-direction:column;gap:5px}}a,button,summary{touch-action:manipulation}::-moz-selection{color:var(--ui-text);background:var(--ui-accent-soft)}::selection{color:var(--ui-text);background:var(--ui-accent-soft)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}svg{stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.product-header.writing-home-header{height:64px;padding-inline:max(24px,calc((100vw - 1330px)/2));background:var(--ui-bg);border:0}.product-header .writing-home-logo{font:750 29px/1 var(--story-font);letter-spacing:.04em}.product-header nav{gap:24px}.product-header nav>a{min-height:44px;display:inline-flex;align-items:center}.account-badge{border:0!important;background:transparent!important;border-radius:8px!important}.account-badge span{color:var(--ui-accent);font-size:14px}.account-badge b{background:var(--ui-accent-soft);color:var(--ui-accent)}.narrative-home .writing-home-main{width:min(1330px,calc(100% - 64px));padding:42px 0 72px;margin-inline:auto}.narrative-home .writing-home-start{text-align:left}.narrative-home .writing-home-start h1{max-width:100%;margin:0;font:700 clamp(34px,3.6vw,54px)/1.3 var(--story-font);letter-spacing:-.025em}.narrative-home .writing-home-intro{margin:14px 0 28px;font:18px/1.8 var(--ui-font);color:var(--ui-muted)}.story-composer,.writing-home-start .story-composer{width:100%;padding:24px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 24px;text-align:left}.composer-tabs{grid-column:1/-1;display:flex;gap:24px;margin:0;padding:0;border-bottom:1px solid var(--ui-border);background:none;border-radius:0}.composer-tabs>*{min-height:48px;padding:0 12px 14px;display:inline-flex;gap:8px;align-items:center;font:15px/1.5 var(--ui-font);text-decoration:none;color:var(--ui-muted)}.composer-tabs>span{color:var(--ui-accent);border-bottom:2px solid var(--ui-accent);font-weight:650}.composer-tabs svg{width:19px;height:19px}.story-composer .writing-idea-input.idea-input{grid-column:1/-1;position:relative;display:grid;gap:10px;padding:0;margin:0;min-height:0;border:0;background:transparent}.writing-idea-input>span{font-size:14px;font-weight:600}.story-composer .writing-idea-input textarea{width:100%;min-height:138px;padding:14px 16px 30px;border:1px solid var(--ui-border-strong);border-radius:6px;background:var(--ui-surface);color:var(--ui-text);font:16px/1.8 var(--ui-font);resize:vertical}.story-composer .writing-idea-input small{position:absolute;bottom:10px;right:12px;color:var(--ui-muted);font:12px/1.4 var(--ui-font)}.composer-core-config{margin:0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:12px;align-items:center;border:0}.composer-core-config label{min-width:0;display:flex;gap:10px;align-items:center;font-size:14px}.composer-core-config input,.composer-core-config select{width:auto;max-width:180px;min-height:44px;padding:9px 12px;border:1px solid var(--ui-border-strong);border-radius:6px;background:var(--ui-surface);color:var(--ui-text);font-size:15px}.composer-core-config input{width:76px}.composer-duration{color:var(--ui-muted);font-size:14px;white-space:nowrap}.composer-examples{grid-column:1/-1;order:5;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;border-top:1px solid var(--ui-border);padding-top:12px;color:var(--ui-muted);font-size:13px}.composer-examples button{min-height:44px;border:0;background:transparent;color:var(--ui-muted);font-size:13px;text-decoration:underline;text-underline-offset:4px}.composer-settings{min-width:0;margin:0}.composer-settings>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-muted);font-size:14px}.composer-settings summary>span{display:none}.composer-settings summary svg{width:18px;height:18px}.composer-settings[open]{grid-column:1/-1}.composer-settings fieldset{margin:12px 0 0;padding:0;border:0}.composer-settings .quick-config{margin:0}.composer-settings select{min-height:44px;font-size:15px}.composer-settings p{font-size:13px;color:var(--ui-muted);line-height:1.8}.composer-professional summary{min-height:44px;font-size:14px;color:var(--ui-muted);padding-block:12px}.composer-submit{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:0}.composer-submit>span{font-size:13px;color:var(--ui-muted)}.composer-submit .writing-create-button{min-width:200px;min-height:48px;padding:12px 20px;border-radius:6px;background:var(--ui-accent);border:1px solid var(--ui-accent);color:#fff;font:600 15px/1.5 var(--ui-font)}.story-composer .flow-error{grid-column:1/-1}.composer-recovery{grid-column:1/-1;padding:16px;color:var(--ui-text);background:var(--ui-accent-soft);border:1px solid var(--ui-border);border-radius:6px;font:14px/1.8 var(--ui-font)}.composer-recovery p{margin:8px 0}.composer-recovery a,.composer-recovery button{display:inline-flex;align-items:center;min-height:44px;margin-right:16px;padding:4px 0;color:var(--ui-accent);background:transparent;border:0;font:inherit;text-decoration:underline;text-underline-offset:4px}.story-composer .flow-error a{color:inherit;display:block;min-height:44px;padding-top:8px}.narrative-home .writing-home-recent{margin-top:36px;padding:0;border:0}.narrative-home .writing-home-recent-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.narrative-home .writing-home-recent-heading h2{margin:0;font:700 26px/1.4 var(--story-font)}.writing-home-recent-heading>button{min-height:44px;display:flex;gap:8px;align-items:center;padding:0;background:none;border:0;color:var(--ui-accent);font-size:14px}.writing-home-recent-heading svg{width:18px;height:18px}.narrative-home .writing-home-projects{display:block;border-top:1px solid var(--ui-border)}.narrative-home .writing-project-row{min-height:80px;display:grid;grid-template-columns:minmax(0,1fr) 160px 160px;align-items:center;gap:24px;padding:18px 24px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);text-decoration:none}.narrative-home .writing-project-row:hover{padding-left:24px;background:var(--ui-accent-soft)}.project-description{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px 28px;min-width:0}.project-description strong{font:650 20px/1.5 var(--story-font);color:var(--ui-text);overflow-wrap:anywhere}.project-description small,.writing-project-row time{color:var(--ui-muted);font:13px/1.5 var(--ui-font)}.project-row-action{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--ui-accent);font-size:14px}.home-empty svg,.project-row-action svg{width:18px;height:18px}.home-empty{padding:32px;text-align:left;background:var(--ui-surface)}.home-empty h3{font-size:20px}.home-empty a,.home-empty p{font-size:14px;color:var(--ui-muted)}.home-empty a{min-height:44px;display:inline-flex;align-items:center;gap:8px;color:var(--ui-accent)}.simple-studio-shell.narrative-studio-shell{--workspace-nav-width:224px;--workspace-gutter:clamp(24px,3vw,48px);--manuscript-width:100%;display:grid;grid-template-columns:var(--workspace-nav-width) minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);width:100%;height:var(--workspace-height,100dvh);min-height:0;overflow:hidden;background:var(--ui-surface)}.simple-studio-shell.narrative-studio-shell.has-ai-command{grid-template-rows:64px minmax(0,1fr) auto}.narrative-studio-shell .core-mode-nav.studio-index{grid-column:1;grid-row:1/-1;position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:24px 12px 16px;color:var(--ui-text);background:var(--ui-bg);border-right:1px solid var(--ui-border)}.studio-index-brand{display:block;padding:0 12px;font:700 28px/1.4 var(--story-font);color:var(--ui-text);text-decoration:none}.studio-index-back{min-height:44px;margin:20px 0 24px;padding:8px 12px;display:flex;align-items:center;gap:10px;color:var(--ui-muted);text-decoration:none;font-size:14px}.studio-index-back svg{transform:rotate(180deg)}.studio-index svg{width:19px;height:19px;flex-shrink:0}.studio-content-index{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:24px;scrollbar-color:var(--ui-border-strong) transparent;scrollbar-width:thin}.studio-content-index h2{margin:0 12px 14px;font-size:13px;font-weight:500;color:var(--ui-muted)}.studio-content-index>div>button{width:100%;min-height:48px;margin-block:4px;display:flex;align-items:center;gap:12px;padding:10px 14px;border:0;border-radius:6px;background:transparent;color:var(--ui-text);text-align:left;font:500 15px/1.5 var(--ui-font)}.studio-content-index button.active{color:var(--ui-accent);background:var(--ui-accent-soft)}.studio-content-index button:hover{background:var(--ui-accent-soft)}.studio-index-episodes{margin:8px 0 16px 25px;padding-left:8px;border-left:1px solid var(--ui-border)}.studio-index-episodes button{width:100%;min-height:64px;margin-bottom:4px;padding:9px;display:grid;gap:3px;border:0;border-radius:5px;color:var(--ui-muted);background:transparent;text-align:left;font:13px/1.4 var(--ui-font)}.studio-index-episodes button strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.studio-index-episodes button small{font-size:12px;color:var(--ui-muted)}.studio-index-account{flex-shrink:0;display:grid;gap:8px;padding:14px 4px 0;border-top:1px solid var(--ui-border)}.studio-index-account .account-badge{justify-content:space-between;padding-inline:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:64px}.studio-index-account .account-badge .account-name{grid-column:1/-1;color:var(--ui-text)}.studio-index-account .account-badge b{display:none}.studio-index-account .admin-header-link{min-height:44px;display:flex;align-items:center;padding-inline:10px}.narrative-studio-shell .studio-index-close,.studio-index-toggle,.studio-mobile-account{display:none}.narrative-studio-shell .simple-studio-header{grid-column:2;grid-row:1;height:64px;min-width:0;padding-inline:28px;gap:20px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border)}.simple-brand-group{min-width:0}.simple-brand-group>strong{max-width:min(32vw,520px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 22px/1.4 var(--story-font)}.simple-studio-header .save-state{min-height:44px;padding-inline:8px;color:var(--ui-muted);font-size:13px;background:transparent;border:0}.simple-studio-header .save-state:disabled{opacity:1}.simple-studio-shell .save-state.conflict,.simple-studio-shell .save-state.error{display:inline-flex;align-items:center;color:var(--ui-danger);flex-shrink:0}.simple-header-actions{display:flex;gap:8px;min-width:0}.simple-header-actions>button{min-height:44px;padding:8px 10px;display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--ui-muted);font-size:14px}.simple-header-actions svg{width:18px;height:18px}.narrative-studio-shell .simple-studio-main{position:relative;grid-column:2;grid-row:2;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;background:var(--ui-surface);scrollbar-color:var(--ui-border-strong) transparent}.narrative-studio-shell .simple-content{width:min(1200px,calc(100% - 2 * var(--workspace-gutter)));max-width:none;margin-inline:auto;padding:36px 0 48px}.simple-studio-shell.screenplay-workspace .simple-content{width:calc(100% - 2 * var(--workspace-gutter));max-width:none}.narrative-studio-shell .simple-screenplay-stage{width:100%;max-width:none;margin:0}.simple-stage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.simple-stage-heading h1{margin:0 0 10px;font:700 30px/1.35 var(--story-font)}.simple-stage-heading p{color:var(--ui-muted);font:15px/1.8 var(--ui-font)}.outline-main-actions button,.simple-stage-heading button{min-height:44px}.simple-stage-heading>button:not(.simple-primary){padding:10px 14px;color:var(--ui-muted);background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:6px;font:14px/1.6 var(--ui-font)}.quiet-action,.simple-primary,.studio-revision-surface>header button{min-height:44px;border-radius:6px;padding:10px 16px;font:500 14px/1.6 var(--ui-font)}.simple-primary{color:#fff;background:var(--ui-accent);border:1px solid var(--ui-accent)}.simple-primary:hover:not(:disabled){background:var(--ui-accent-hover)}.simple-idea-box{margin-block:20px;padding:0;background:transparent;border:0}.simple-advanced>summary,.simple-idea-box>summary,.studio-direction-history>summary{min-height:44px;padding-block:12px;color:var(--ui-muted);font-size:14px;cursor:pointer}.simple-idea-box textarea{min-height:110px;font:16px/1.8 var(--ui-font);background:var(--ui-surface)}.simple-idea-box:not([open])>:not(summary),.studio-direction-history:not([open])>:not(summary){display:none}.simple-direction-grid{margin-block:20px}.simple-studio-shell .simple-direction-grid article{border-radius:8px;min-height:0;padding:24px;background:var(--ui-surface)}.simple-studio-shell .simple-direction-grid article.selected{background:var(--ui-accent-soft);border-color:var(--ui-accent)}.simple-direction-grid article p{font-size:15px;line-height:1.8}.simple-advanced{border-top:1px solid var(--ui-border);margin-top:28px}.studio-story-premise{font:20px/1.9 var(--story-font);margin:8px 0 12px;max-width:64rem}.studio-material-status{font:13px/1.8 var(--ui-font);color:var(--ui-muted)}.story-development-editor{min-width:0}.story-development-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--ui-border);margin-top:28px;padding-top:20px}.story-development-entry p{margin:0;color:var(--ui-muted);line-height:1.8}.story-development-editor button{min-height:44px;padding:10px 16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;font:inherit;line-height:1.5;white-space:normal}.story-development-editor button.simple-primary{background:var(--ui-accent);color:white;border-color:var(--ui-accent)}.story-development-editor button:disabled{cursor:not-allowed;opacity:.5}.story-development-editor :is(button,textarea,input,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.story-development-panel{max-width:74rem;margin-inline:auto}.story-development-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--ui-border)}.story-development-panel h2{margin:4px 0 10px;font:600 24px/1.4 var(--ui-font)}.story-development-panel p{line-height:1.85;overflow-wrap:anywhere}.story-development-panel>header p{margin-block:4px;color:var(--ui-muted)}.story-development-fields>details{border-bottom:1px solid var(--ui-border);padding-block:8px 16px}.story-development-editor summary{cursor:pointer;min-height:44px;padding:12px 4px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}.simple-story-stage:has(.story-development-panel)>:is(.simple-stage-heading,details){display:none}.story-development-field{display:grid;gap:9px;margin:16px 0 20px;min-width:0}.story-development-field label{font-size:14px;font-weight:600}.story-development-group-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.simple-content:has(.story-development-panel)>.post-writing-notice{display:none}.story-development-error:focus{outline:2px solid var(--ui-danger);outline-offset:3px}.narrative-studio-shell :is(.workspace-action-error,.workspace-action-notice) button{flex:0 0 auto;min-width:44px;min-height:44px;white-space:nowrap}.story-development-fields textarea{box-sizing:border-box;width:100%;min-width:0;min-height:92px;resize:vertical;padding:14px 16px;border:1px solid var(--ui-border);border-radius:10px;color:var(--ui-text);background:var(--ui-surface);font:16px/1.85 var(--story-font)}.story-development-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-top:24px;padding-block:16px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--ui-border)}.story-development-actions>span{margin-right:auto;font-size:13px;color:var(--ui-muted)}.story-development-differences>h3{margin-top:24px;font-size:17px}.story-development-differences section{border-bottom:1px solid var(--ui-border);padding-bottom:20px}.story-development-differences h4{font-size:15px;margin:24px 0 14px}.story-development-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px}.story-development-pair>div{min-width:0;border-left:2px solid var(--ui-border);padding-left:16px}.story-development-pair>div:last-child{border-left-color:var(--ui-accent)}.story-development-pair span{color:var(--ui-muted);font-size:12px}.story-development-pair p{white-space:pre-wrap;margin:8px 0 0}.story-development-impact{margin-top:24px;padding:16px 20px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.story-development-impact h3{margin:0 0 12px;font-size:16px}.story-development-impact p{margin-block:8px;font-size:14px}.story-development-ack{display:flex;align-items:flex-start;gap:12px;margin-top:24px;padding:12px 0;font-size:14px;line-height:1.8;cursor:pointer}.story-development-ack input{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;flex:0 0 22px;width:22px;height:22px;margin-top:2px;accent-color:var(--ui-accent)}.story-development-error{color:var(--ui-danger);border-left:3px solid var(--ui-danger);padding:12px 16px;background:var(--ui-surface);margin-block:20px}@media (max-width:700px){.story-development-group-fields{grid-template-columns:1fr}.story-development-entry,.story-development-panel>header{flex-direction:column;gap:12px}.story-development-entry button{width:100%}.story-development-panel h2{font-size:21px}.story-development-pair{grid-template-columns:1fr;gap:20px}.story-development-actions>button{flex:1 1 140px}.story-development-actions>span{flex-basis:100%}.story-development-fields textarea{padding:12px}}.studio-story-columns{display:grid;grid-template-columns:1.6fr 1fr;gap:36px;margin-top:32px;padding-block:26px;border-block:1px solid var(--ui-border)}.studio-story-columns h2{margin:0 0 18px;font:650 22px/1.5 var(--story-font)}.studio-story-columns dl{margin:0}.studio-story-columns dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);border-bottom:1px solid var(--ui-border);font:15px/1.8 var(--ui-font)}.studio-story-columns dt{padding:14px;background:var(--ui-bg);color:var(--ui-muted)}.studio-story-columns dd{margin:0;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}.studio-character{padding-block:10px;border-bottom:1px solid var(--ui-border)}.studio-character summary{min-height:44px;font:600 17px/1.7 var(--ui-font);padding-block:8px;cursor:pointer}.studio-character p,.studio-story-next p{color:var(--ui-muted);font-size:14px;line-height:1.8}.studio-story-next{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px}.studio-outline-detail{background:var(--ui-bg)}.simple-episode-list{border-top:1px solid var(--ui-border)}.simple-studio-shell .simple-episode-list>article{border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);margin:0}.simple-studio-shell .simple-episode-list>article.expanded{background:var(--ui-accent-soft)}.episode-outline-row{padding:8px 0}.episode-outline-toggle{min-width:0;padding-block:18px}.episode-outline-toggle strong{font:600 21px/1.6 var(--story-font)}.episode-outline-toggle .episode-summary{min-width:0}.episode-outline-toggle .episode-summary>span{font-size:14px;line-height:1.8}.episode-status{font:12px/1.6 var(--ui-font);white-space:normal}.studio-outline-detail{border:0;background:transparent!important;margin:0;padding:16px 24px}.outline-adjustments{padding:0 24px 16px}.episode-outline-editor{background:var(--ui-surface)!important}.narrative-studio-shell .simple-screenplay-header{width:min(100%,48rem);margin:0 auto 16px;padding-bottom:24px;border-bottom:1px solid var(--ui-border);display:block}.studio-current-episode{display:block;margin-bottom:8px;color:var(--ui-muted);font:13px/1.5 var(--ui-font)}.studio-screenplay-title h1{margin:0 0 12px;font:700 28px/1.5 var(--story-font);white-space:normal}.studio-screenplay-title>span{font-size:13px;line-height:1.7;color:var(--ui-muted)}.simple-screenplay-actions{margin-top:12px}.narrative-studio-shell .ai-screenplay-reader{width:100%;margin:0;padding:0 0 24px;border:0;background:var(--ui-surface);border-radius:0}.narrative-studio-shell .ai-reader-toolbar{margin-bottom:32px;padding-bottom:12px;gap:8px}.narrative-studio-shell .ai-reader-scene{margin-bottom:32px;padding-bottom:24px}.narrative-studio-shell .ai-reader-scene>header h2{font:700 max(1.125rem,var(--reader-font-size))/1.5 var(--reader-font-family)}.ai-reader-block{line-height:var(--reader-line-height)}.ai-reader-settings-toggle span{font-size:14px}.manuscript-tools{gap:6px}.manuscript-tools summary,.manuscript-tools>button{padding-inline:10px;border-color:transparent}.manuscript-menu-content{background:var(--ui-surface)}.ai-reader-settings-panel{background:var(--ui-bg)}.narrative-studio-shell .ai-command-bar{grid-column:2;grid-row:3;position:relative;z-index:20;min-width:0;margin:0;padding:10px var(--workspace-gutter) max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 -5px 20px rgba(24,44,35,.025)}.ai-command-frame{width:min(1100px,100%);margin-inline:auto;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;align-items:center}.ai-command-heading{display:flex;margin-bottom:0;flex-wrap:wrap;align-items:center;gap:8px}.ai-command-heading>small,.ai-command-heading>span:first-child{display:none}.ai-command-heading>.ai-command-scope{padding:4px 0;white-space:normal;overflow-wrap:anywhere;background:transparent;color:var(--ui-muted);font:500 13px/1.6 var(--ui-font)}.ai-command-heading>button{min-height:44px;border:0;color:var(--ui-accent);background:transparent;font-size:13px}.ai-command-bar form{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.ai-command-bar textarea{width:100%;min-width:0;min-height:48px;max-height:104px;padding:12px 14px;resize:vertical;border:1px solid var(--ui-border-strong);border-radius:6px;background:var(--ui-surface);color:var(--ui-text);font:15px/1.5 var(--ui-font)}.ai-command-bar form>button{min-width:170px;min-height:48px;font-size:14px}.ai-command-options{grid-column:2;display:flex;flex-wrap:wrap;gap:4px 12px}.ai-command-options button{min-height:44px;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:0;border-radius:5px;background:transparent;color:var(--ui-muted);font:13px/1.6 var(--ui-font)}.ai-command-options button.selected{color:var(--ui-accent);background:var(--ui-accent-soft)}.ai-command-options svg{width:16px;height:16px}.ai-command-selection{grid-column:1/-1;margin-bottom:6px;background:var(--ui-bg)}.studio-revision-content{max-width:none}.studio-revision-surface:focus{outline:0}.studio-revision-surface .assistant-panel{padding:0}.studio-revision-surface .assistant-change-preview article{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 28px;padding-block:24px}.studio-revision-surface .candidate-stale-note,.studio-revision-surface .rewrite-block-context{grid-column:1/-1}.studio-revision-surface .assistant-change-preview article>div:not(.candidate-item-actions){padding:16px;background:var(--ui-bg);border:0;border-radius:6px}.studio-revision-surface .assistant-change-preview article>div.after{background:var(--ui-accent-soft)}.studio-revision-surface .assistant-change-preview article p{font:16px/1.9 var(--ui-font)}.studio-revision-surface .candidate-item-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.studio-revision-surface .assistant-change-preview footer{position:sticky;bottom:-24px;z-index:2;padding:16px 0;background:var(--ui-surface);border-top:1px solid var(--ui-border)}.studio-revision-surface .assistant-change-preview footer button{min-height:44px}.studio-review-surface .screenplay-checks{padding-inline:0}.narrative-studio-shell .simple-utility-drawer{position:fixed;inset:24px 24px 24px auto;width:min(520px,calc(100vw - 48px));min-height:0;z-index:70;display:none;overflow-y:auto;background:var(--ui-surface)!important;border:1px solid var(--ui-border);border-radius:10px;box-shadow:var(--ui-shadow);transform:none;visibility:hidden}.narrative-studio-shell .simple-utility-drawer.open{display:block;visibility:visible}.narrative-studio-shell .utility-header{position:sticky;top:0;z-index:3;padding:16px 22px;background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-border)}.narrative-studio-shell .utility-header button{display:grid;width:44px;height:44px}.narrative-studio-shell .simple-drawer-scrim,.studio-index-scrim{position:fixed;inset:0;z-index:60;display:block;border:0;background:rgba(20,39,32,.18)!important}.narrative-studio-shell.is-focused{grid-template-columns:minmax(0,1fr)}.narrative-studio-shell.is-focused .studio-index{display:none}.narrative-studio-shell.is-focused .ai-command-bar,.narrative-studio-shell.is-focused .simple-studio-header,.narrative-studio-shell.is-focused .simple-studio-main{grid-column:1}.narrative-studio-shell .workspace-action-error,.narrative-studio-shell .workspace-action-notice{font-size:14px;padding:12px 16px}.auth-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);gap:64px;align-items:center;padding:64px max(32px,6vw);background:var(--ui-bg)}.auth-welcome{max-width:680px;padding:0}.auth-welcome h2{margin:0;font:700 clamp(32px,4vw,58px)/1.4 var(--story-font);color:var(--ui-text)}.auth-welcome p{font:16px/1.8 var(--ui-font);color:var(--ui-muted)}.auth-card{padding:32px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;box-shadow:none}.auth-card input{min-height:48px;font-size:16px}.account-profile,.admin-studio-create,.model-config-panel{border-radius:8px}.account-ledger-row,.admin-user-row{font-size:14px}.utility-sidebar{background:var(--ui-bg)}.utility-sidebar a.active{color:var(--ui-accent);background:var(--ui-accent-soft)}@media (max-width:1199px){.narrative-studio-shell .simple-stage-heading{flex-wrap:wrap}.studio-story-columns{gap:24px;grid-template-columns:1.3fr 1fr}.simple-studio-header .save-state.saved{display:none}}@media (max-width:1023px){.simple-studio-shell.narrative-studio-shell{grid-template-columns:minmax(0,1fr)}.narrative-studio-shell .ai-command-bar,.narrative-studio-shell .simple-studio-header,.narrative-studio-shell .simple-studio-main{grid-column:1}.narrative-studio-shell .core-mode-nav.studio-index{display:none}.narrative-studio-shell .core-mode-nav.studio-index.is-open{display:flex;position:fixed;inset:0 auto 0 0;width:min(300px,85vw);z-index:65;height:100dvh}.studio-index-toggle{display:inline-flex;min-height:44px;min-width:44px;align-items:center;gap:6px;padding:8px;border:0;background:transparent;color:var(--ui-text);font-size:13px;flex-shrink:0}.studio-index-toggle span{display:none}.studio-mobile-account{display:block}.studio-mobile-account .account-badge b{display:none}.studio-mobile-account .account-badge{min-height:44px;padding:6px}.narrative-studio-shell .studio-index-close{display:grid;position:absolute;top:20px;right:10px;min-height:44px;min-width:44px;border:0;color:var(--ui-text);background:var(--ui-bg)}.simple-brand-group>strong{max-width:35vw;font-size:19px}.narrative-studio-shell .simple-studio-header{padding-inline:16px}.studio-story-columns{grid-template-columns:1fr}}@media (max-width:767px){.product-header.writing-home-header{height:60px;padding-inline:18px}.product-header nav{gap:10px}.narrative-home .writing-home-main{width:calc(100% - 32px);padding:28px 0 48px}.narrative-home .writing-home-start h1{font-size:32px}.narrative-home .writing-home-intro{font-size:15px;margin-bottom:22px}.story-composer,.writing-home-start .story-composer{padding:16px;gap:16px;grid-template-columns:1fr}.composer-tabs{gap:8px}.composer-tabs>*{padding-inline:8px;font-size:14px}.composer-settings{grid-column:1/-1}.composer-core-config{gap:10px}.composer-core-config label{font-size:13px;gap:6px}.composer-core-config select{max-width:130px}.composer-core-config input{width:64px}.composer-submit{align-items:stretch;flex-direction:column;gap:12px}.composer-submit .writing-create-button{width:100%}.composer-examples{gap:4px 12px}.narrative-home .writing-project-row{grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:10px}.narrative-home .writing-project-row:hover{padding-left:16px}.project-description{display:grid;gap:4px}.project-description strong{font-size:18px}.writing-project-row time{grid-column:1;grid-row:2;font-size:12px}.project-row-action{grid-column:2;grid-row:1/3;font-size:13px}.simple-studio-shell.narrative-studio-shell{--workspace-gutter:16px;grid-template-rows:60px minmax(0,1fr)}.simple-studio-shell.narrative-studio-shell.has-ai-command{grid-template-rows:60px minmax(0,1fr) auto}.narrative-studio-shell .simple-studio-header{height:60px;gap:4px;padding-inline:8px}.simple-brand-group{gap:4px}.simple-brand-group>strong{display:block;font-size:17px;max-width:31vw;margin:0}.studio-index-toggle span{display:none}.simple-header-actions{gap:0}.simple-header-actions>button{padding:8px;min-width:40px}.simple-header-actions>button>span{display:none}.studio-mobile-account{display:block}.studio-mobile-account .account-badge b,.studio-mobile-account .admin-header-link{display:none}.studio-mobile-account .account-badge{min-height:44px;padding:6px}.studio-mobile-account .account-badge span{font-size:12px}.simple-header-actions .studio-mobile-account .account-badge span{display:inline}.simple-studio-header .save-state.saved{display:none}.simple-studio-header .save-state.conflict,.simple-studio-header .save-state.error{position:absolute;top:60px;right:12px;z-index:25;padding:6px 10px;background:var(--ui-surface);border:1px solid var(--ui-danger);border-radius:6px}.narrative-studio-shell .simple-content{width:calc(100% - 32px);padding-top:24px;padding-bottom:32px}.simple-stage-heading{gap:16px;margin-bottom:20px}.simple-stage-heading h1{font-size:25px}.simple-stage-heading p{font-size:14px}.simple-screenplay-actions button{font-size:12px}.studio-screenplay-title h1{font-size:25px}.studio-story-premise{font-size:18px}.studio-story-columns{gap:24px;padding-block:20px}.studio-story-columns dl>div{grid-template-columns:95px minmax(0,1fr)}.studio-story-columns dd,.studio-story-columns dt{padding:10px}.studio-story-next{align-items:stretch;flex-direction:column;gap:12px}.narrative-studio-shell .ai-reader-toolbar{margin-bottom:24px;gap:6px}.narrative-studio-shell .manuscript-tools{width:auto;display:contents}.narrative-studio-shell .script-edit-start{order:-2}.narrative-studio-shell .ai-reader-settings-toggle{order:-1;margin:0}.narrative-studio-shell .ai-reader-scene-navigation{flex:0 1 auto}.narrative-studio-shell .simple-screenplay-header{padding-bottom:16px;margin-bottom:24px}.manuscript-brief-content{grid-template-columns:1fr;gap:12px}.script-edit-actions{width:100%;margin-left:0}.narrative-studio-shell .ai-command-bar{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.ai-command-frame{display:block}.ai-command-heading{display:flex;margin-bottom:6px}.ai-command-heading>.ai-command-scope{font-size:12px}.ai-command-bar form{grid-template-columns:minmax(0,1fr) 120px;gap:8px}.ai-command-bar textarea{min-height:44px;font-size:16px;padding:10px}.ai-command-bar form>button{min-width:0;min-height:44px;font-size:12px;white-space:normal;padding:8px}.ai-command-options{gap:2px 6px;overflow-x:auto;flex-wrap:nowrap}.ai-command-options button{min-height:44px;font-size:12px;padding-inline:5px;white-space:nowrap;flex-shrink:0}.ai-command-options svg{display:none}.narrative-studio-shell .simple-utility-drawer{inset:12px;width:auto;border-radius:8px}.studio-revision-surface .assistant-change-preview article{grid-template-columns:1fr;gap:12px}.studio-revision-surface .assistant-change-preview footer{flex-wrap:wrap}.studio-revision-surface .assistant-change-preview footer button{flex:1 1 140px}.studio-review-surface .screenplay-checks{padding:0}.auth-page{grid-template-columns:1fr;gap:28px;padding:32px 20px}.auth-welcome h2{font-size:32px}.auth-card{width:100%;max-width:440px;justify-self:center;padding:24px}.utility-main{padding-top:28px}.utility-shell{grid-template-rows:auto minmax(0,1fr);align-content:start}.account-profile{padding:18px;grid-template-columns:1fr auto}.account-ledger-columns{display:none}.account-ledger-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px}}@media (max-height:600px){.ai-command-options{display:none}.narrative-studio-shell .ai-command-bar{padding-block:6px}.ai-command-heading{margin-bottom:4px}.narrative-studio-shell .simple-content{padding-top:16px}.narrative-studio-shell .ai-reader-toolbar{margin-bottom:16px}.narrative-studio-shell .simple-screenplay-header{padding-bottom:12px;margin-bottom:16px}.narrative-studio-shell .studio-screenplay-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.narrative-studio-shell .studio-screenplay-title h1{font-size:23px;margin:0}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.simple-studio-shell.narrative-studio-shell.is-compact-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--studio-header-height,64px) auto minmax(0,1fr)}.simple-studio-shell.narrative-studio-shell.is-compact-shell.has-ai-command{grid-template-rows:var(--studio-header-height,64px) auto minmax(0,1fr) auto}.is-compact-shell .simple-studio-header{grid-column:1;grid-row:1}.is-compact-shell .simple-studio-main{grid-column:1;grid-row:3}.is-compact-shell .ai-command-bar{grid-column:1;grid-row:4}.studio-fallback-navigation{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:16px;padding:8px 24px;border-bottom:1px solid var(--ui-border);background:var(--ui-bg)}.studio-fallback-navigation label{display:flex;align-items:center;gap:10px;color:var(--ui-muted);font-size:14px}.studio-fallback-navigation select{min-height:44px;padding:8px 12px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:6px}.studio-fallback-back{min-height:44px;display:inline-flex;align-items:center;color:var(--ui-accent);text-decoration:none;font:700 22px/1.5 var(--story-font)}.studio-mobile-account.studio-fallback-account{display:block}@media (max-width:767px){.is-compact-shell{--studio-header-height:60px}.is-compact-shell .simple-brand-group>strong{max-width:25vw}.studio-fallback-navigation{padding-inline:16px}}.post-writing-notice{margin:0 0 24px;padding:16px 20px;border:1px solid var(--ui-border);border-left:3px solid var(--ui-warning);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);overflow-wrap:anywhere}.post-writing-notice p{margin:0 0 8px;font-size:14px;line-height:1.65}.post-writing-notice p:last-child{margin-bottom:0}.post-writing-notice strong{color:var(--ui-text)}.post-writing-recovery summary{display:list-item;min-height:44px;padding:12px 0;cursor:pointer;color:var(--ui-accent);font-size:14px}.post-writing-recovery button{min-height:44px;max-width:100%;white-space:normal}.plan-decision-control{margin-top:12px}.plan-decision-form>summary{min-height:44px;padding:12px 0;color:var(--ui-accent);cursor:pointer}.plan-decision-form form{display:grid;gap:12px}.plan-decision-form label{display:grid;gap:8px;color:var(--ui-text);font-size:14px}.plan-decision-form textarea{width:100%;box-sizing:border-box;min-height:80px;resize:vertical;padding:12px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font:16px/1.6 var(--ui-font)}.plan-decision-form button,.plan-decision-history button{min-height:44px;max-width:100%;white-space:normal;justify-self:start}.plan-author-label{color:var(--ui-warning);font-size:13px}.plan-author-label span{display:block;margin-top:4px;color:var(--ui-text);overflow-wrap:anywhere}.screenplay-checks .story-reference-status.is-stale{background:var(--ui-surface);color:var(--ui-text);border-left:3px solid var(--ui-warning)}.review-scope-switch{display:inline-flex;gap:4px;padding:4px;margin:0 0 24px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}.review-scope-switch button{min-width:76px;min-height:44px;padding:8px 18px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);cursor:pointer;font:inherit}.review-scope-switch button[aria-pressed=true]{background:var(--ui-accent-soft);color:var(--ui-accent);font-weight:600}.project-review-control{max-width:960px;margin-block:28px 40px;line-height:1.75;overflow-wrap:anywhere}.project-review-control p{margin:10px 0}.project-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}.project-review-heading h2{margin:0;font-size:22px}.project-review-empty,.project-review-finding-meta,.project-review-heading>div>p,.project-review-report time{color:var(--ui-muted);font-size:14px}.project-review-control button:not(.simple-primary){min-height:44px;padding:10px 14px;border:1px solid var(--ui-border-strong);border-radius:6px;color:var(--ui-text);background:var(--ui-surface);font:inherit;cursor:pointer}.project-review-control button:disabled{opacity:.5;cursor:default}.project-review-control :is(button,input,summary):focus-visible,.project-review-inventory summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}.project-review-control summary,.project-review-inventory>summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--ui-accent)}.project-review-records{margin-top:24px}.project-review-report{padding:24px 0;border-top:1px solid var(--ui-border)}.project-review-finding-meta,.project-review-report>header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.project-review-status{font-size:14px;font-weight:600}.project-review-summary{font-size:17px;line-height:1.85;white-space:pre-wrap}.project-review-findings{padding-left:24px}.project-review-findings>li{padding:20px 0 24px 8px;border-bottom:1px solid var(--ui-border)}.project-review-findings h3{margin:8px 0;font-size:18px;line-height:1.6}.project-review-finding-meta{font-size:13px}.project-check-excerpt blockquote,.project-review-control blockquote{margin:14px 0;padding:8px 0 8px 16px;border-left:2px solid var(--ui-border-strong)}.project-review-control .check-quote p{white-space:pre-wrap}.project-review-start{margin-top:24px;padding-top:20px;border-top:1px solid var(--ui-border)}.project-review-ack{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:12px 0;cursor:pointer}.project-review-ack input{width:20px;height:20px;flex:0 0 20px;margin-top:4px;accent-color:var(--ui-accent)}.project-review-inventory,.project-review-older{border-top:1px solid var(--ui-border)}.project-review-inventory{margin-top:24px;max-width:1120px}.project-review-inventory>summary{font-weight:600}.project-check-excerpt{margin:18px 0}.project-check-excerpt h4{margin:10px 0;font-size:15px}.project-check-excerpt>div{padding-bottom:16px}.export-review-notice{border-left:3px solid var(--ui-warning);padding-left:16px;margin-bottom:24px;line-height:1.75}.export-review-notice h3{font-size:16px;margin:0 0 12px}@media (max-width:600px){.project-review-control{margin-top:20px}.project-review-heading{gap:12px}.project-review-heading>button,.project-review-start>button{width:100%}.project-review-findings{padding-left:20px}.project-review-findings>li{padding-left:0}}.project-check-controller{max-width:1120px}.project-check-controller button{min-height:44px;padding:10px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font:inherit;cursor:pointer}.project-check-controller button:disabled,.review-scope-switch button:disabled{opacity:.5;cursor:default}.project-check-actions,.project-check-pagination,.project-check-read-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.project-check-read-actions{margin-bottom:24px}.project-check-disclaimer,.project-check-intro,.project-check-read-actions span{color:var(--ui-muted);font-size:14px;line-height:1.75}.project-check-overview h2{margin:0 0 12px;font-size:24px}.project-check-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0;padding:20px 0;border-block:1px solid var(--ui-border);gap:20px}.project-check-metrics dt{color:var(--ui-muted);font-size:14px;margin-bottom:10px}.project-check-metrics dd{margin:0;color:var(--ui-text);font-size:28px;font-weight:600;line-height:1.2}.project-check-metrics dd span{font-size:14px;font-weight:400;color:var(--ui-muted)}.project-check-coverage p,.project-check-observations p{line-height:1.75;margin:8px 0;overflow-wrap:anywhere}.project-check-warning{color:var(--ui-warning)}.project-check-error{padding:16px;border-left:3px solid var(--ui-warning);background:var(--ui-surface);color:var(--ui-text);line-height:1.75}.project-check-episodes{list-style:none;padding:0;margin:28px 0 0}.project-check-episodes>li{border-top:1px solid var(--ui-border);padding:24px 0;overflow-wrap:anywhere}.project-check-episode-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.project-check-episode-heading h3{margin:4px 0 12px;font-size:17px;font-weight:600;line-height:1.6}.project-check-episode-heading h3 span{display:block;margin-top:4px;font-size:16px;font-weight:400}.project-check-actions{flex-shrink:0;gap:8px}.project-check-episode-meta{line-height:1.75;font-size:14px;color:var(--ui-muted)}.project-check-observations>summary{padding:12px 0;min-height:44px;color:var(--ui-accent);cursor:pointer}.project-check-pagination{justify-content:space-between;border-top:1px solid var(--ui-border);padding:20px 0;color:var(--ui-muted);font-size:14px}@media (max-width:680px){.project-check-episode-heading{display:block}.project-check-actions{margin:12px 0}.project-check-metrics{gap:10px}.project-check-metrics dd{font-size:24px}.project-check-metrics dd span{display:block;margin-top:6px}}.plan-decision-history-item{padding:12px 0;border-bottom:1px solid var(--ui-border);overflow-wrap:anywhere}.episode-completion-control{margin-top:8px}.completion-quote p,.episode-completion-control>p{font-size:14px;line-height:1.65}.episode-completion-control label{display:grid;gap:8px;margin-bottom:12px}.completion-quote{margin:12px 0;padding:12px 16px;background:var(--ui-bg);border-radius:8px}.completion-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.completion-comparison>section{min-width:0;padding:16px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}.completion-comparison>section:last-child{border-color:var(--ui-accent)}.completion-comparison h2{margin:0 0 16px;font-size:18px}.completion-context,.completion-decision,.completion-review{margin:16px 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.completion-review summary{min-height:44px;padding:12px 0;cursor:pointer}.completion-decision{padding:20px;border:1px solid var(--ui-border);border-left:3px solid var(--ui-warning);border-radius:8px;background:var(--ui-surface)}.completion-decision label{display:flex;align-items:flex-start;gap:12px;padding-block:12px;min-height:44px;cursor:pointer}.completion-decision input{flex:0 0 20px;width:20px;height:20px;margin-top:2px;accent-color:var(--ui-accent)}.completion-decision>div,.completion-inbox{display:flex;flex-wrap:wrap;gap:12px}.completion-inbox p{flex-basis:100%}.completion-decision button,.completion-inbox button{min-height:44px;max-width:100%;white-space:normal}.completion-decision button:not(.simple-primary),.completion-inbox button{padding:10px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font:14px/1.5 var(--ui-font);cursor:pointer}@media (max-width:1100px){.completion-comparison{grid-template-columns:minmax(0,1fr)}}.plan-adjustment-diffs{display:grid;gap:24px;overflow-wrap:anywhere}.plan-adjustment-diffs>section{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);overflow:hidden}.plan-adjustment-diffs h2{padding:16px;margin:0;font-size:18px;border-bottom:1px solid var(--ui-border)}.plan-adjustment-diffs>section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.plan-adjustment-diffs>section>div>div{padding:16px;min-width:0}.plan-adjustment-diffs>section>div>div:last-child{background:var(--ui-accent-soft)}.plan-adjustment-diffs h3{margin:0 0 12px;color:var(--ui-muted);font-size:14px}.plan-adjustment-diffs p{white-space:pre-wrap;margin:0;font-size:16px;line-height:1.8}.issue-revision-preview .completion-context h2,.issue-revision-preview .completion-decision h2,.plan-adjustment-preview .completion-context h2,.plan-adjustment-preview .completion-decision h2{font-size:18px}.issue-recheck-control{margin-block:24px;padding-block:20px;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);font-size:14px;line-height:1.7;overflow-wrap:anywhere}.issue-recheck-control h2{margin:0 0 12px;font-size:20px}.issue-recheck-control h3{font-size:16px}.issue-recheck-control summary{min-height:44px;padding-block:12px;cursor:pointer}.issue-recheck-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}.issue-recheck-control button{min-height:44px;max-width:100%;padding:10px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;font:14px/1.5 var(--ui-font);white-space:normal;cursor:pointer}.issue-recheck-control button:not(.simple-primary){color:var(--ui-text);background:var(--ui-surface)}.issue-recheck-history{margin-block:16px}.issue-recheck-history .story-reference-item{padding-block:16px}.issue-revision-scopes{display:grid;gap:8px;min-width:0;padding:12px;margin:16px 0;border:1px solid var(--ui-border-strong);border-radius:8px}.issue-revision-scopes legend{padding-inline:4px;color:var(--ui-text);font-size:14px}.issue-revision-scopes label{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-height:44px;padding:10px 4px;cursor:pointer}.issue-revision-scopes input[type=radio]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;accent-color:var(--ui-accent)}.completion-inbox details{width:100%}.completion-inbox details>button{display:block;margin-top:8px}.plan-adjustment-preview summary{min-height:44px;padding-block:12px;cursor:pointer}@media (max-width:680px){.plan-adjustment-diffs>section>div{grid-template-columns:minmax(0,1fr)}}.reconstruction-analysis{display:grid;gap:16px;min-width:0}.reconstruction-note{margin:10px 0;color:var(--ui-muted);font-size:14px;line-height:1.8;overflow-wrap:anywhere}.reconstruction-evidence,.reconstruction-plan{min-width:0;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:6px 18px 12px}.reconstruction-plan{margin-block:16px}.reconstruction-evidence>summary,.reconstruction-plan>summary{min-height:44px;padding-block:12px;color:var(--ui-text);font-size:15px;font-weight:600;cursor:pointer;line-height:1.5}.reconstruction-evidence:not([open]),.reconstruction-plan:not([open]){padding-bottom:6px}.reconstruction-finding,.reconstruction-plan>section{padding-block:18px;border-top:1px solid var(--ui-border);min-width:0}.reconstruction-finding h4,.reconstruction-original h4,.reconstruction-plan h4{margin:0;font-size:16px;line-height:1.7;color:var(--ui-text)}.reconstruction-plan dl{margin:12px 0 0;display:grid;gap:12px}.reconstruction-plan dt{color:var(--ui-muted);font-size:13px;line-height:1.7}.reconstruction-plan dd{margin:4px 0 0;color:var(--ui-text);font-size:15px;line-height:1.8;overflow-wrap:anywhere}.reconstruction-result .result-options .reconstruction-plan p{flex:none;font-size:14px}.reconstruction-result .result-options .reconstruction-plan{padding-inline:12px}.reconstruction-finding>header,.reconstruction-original>header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px}.reconstruction-finding>header>span{color:var(--ui-muted);background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:6px;padding:2px 8px;font-size:12px;line-height:1.6;white-space:nowrap}.reconstruction-finding>p{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.reconstruction-risk-list{padding-left:20px;color:var(--ui-muted);font-size:14px;line-height:1.8}.reconstruction-quote{margin-top:12px;padding:14px;background:var(--ui-bg);border-radius:8px}.reconstruction-quote blockquote{margin:0 0 10px;border-left:2px solid var(--ui-accent);padding-left:12px;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.reconstruction-original{margin-top:20px;border-top:1px solid var(--ui-border);padding-top:18px;color:var(--ui-text);background:var(--ui-surface);color-scheme:light;min-width:0}.reconstruction-original h4 small{margin-left:10px;color:var(--ui-muted);font-size:12px;font-weight:400;white-space:nowrap}.reconstruction-original pre{max-height:min(55vh,600px);overflow:auto;margin:14px 0 0;padding:18px;border:1px solid var(--ui-border);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.9 var(--ui-font);color:var(--ui-text);background:var(--ui-surface);color-scheme:light;scrollbar-color:var(--ui-border-strong) var(--ui-surface)}.reconstruction-original mark{color:var(--ui-text);background:var(--ui-accent-soft);box-shadow:inset 0 -1px var(--ui-accent)}.reconstruction-saved-review{margin-block:16px;min-width:0}.reconstruction-saved-review>.reconstruction-analysis{margin-top:16px}:is(.reconstruction-analysis,.reconstruction-plan,.reconstruction-saved-review) :is(button,summary,pre):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.reconstruction-analysis .quiet-action,.reconstruction-saved-review .quiet-action{min-height:44px;padding:10px 14px}@media (max-width:600px){.reconstruction-evidence,.reconstruction-plan{padding-inline:14px}.reconstruction-original pre{padding:12px;max-height:50vh}.reconstruction-analysis .analysis-card{padding:18px}}.rewrite-recovery{margin-bottom:24px;padding:20px;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-text)}.rewrite-recovery h2{margin:0 0 10px;font-size:18px;line-height:1.5}.rewrite-recovery p{color:var(--ui-muted);font-size:14px;line-height:1.8;overflow-wrap:anywhere}.rewrite-recovery-actions{display:flex;flex-wrap:wrap;gap:10px;margin-block:12px}.rewrite-recovery .quiet-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;text-decoration:none}.rewrite-recovery summary{cursor:pointer;padding-block:14px;min-height:44px;font-size:14px;line-height:1.6}.rewrite-recovery :is(button,summary,a,input):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.reconstruction-result>header>button{min-height:44px}.reconstruction-plan-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;color:var(--ui-text);background:var(--ui-surface);color-scheme:light;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);box-shadow:var(--ui-shadow)}.reconstruction-plan-dialog::backdrop{background:rgba(24,44,35,.24)}.reconstruction-plan-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-bottom:1px solid var(--ui-border)}.reconstruction-result .result-options .reconstruction-plan-dialog h3{margin:0;font-size:18px;line-height:1.6}.reconstruction-plan-dialog>header .quiet-action{min-height:44px;margin:0;flex-shrink:0}.reconstruction-plan-dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-height:62dvh;overflow:auto;padding:22px;scrollbar-color:var(--ui-border-strong) var(--ui-surface)}.reconstruction-plan-dialog-body>.reconstruction-note{grid-column:1/-1;margin:0}.reconstruction-plan-dialog-body>section{min-width:0;padding-top:16px;border-top:1px solid var(--ui-border)}.reconstruction-plan-dialog-body h4{margin:0 0 10px;font-size:16px}.reconstruction-plan-dialog-body dl{margin:0;display:grid;gap:12px}.reconstruction-plan-dialog-body dt{color:var(--ui-muted);font-size:13px;line-height:1.7}.reconstruction-plan-dialog-body dd{margin:4px 0 0;color:var(--ui-text);font-size:15px;line-height:1.8;overflow-wrap:anywhere}.reconstruction-plan-dialog :is(button,div):focus-visible{outline:2px solid var(--ui-accent);outline-offset:-3px}@media (max-width:600px){.reconstruction-plan-dialog>header{padding:14px 16px}.reconstruction-plan-dialog-body{grid-template-columns:1fr;padding:16px;gap:16px}.rewrite-flow .flow-steps{gap:5px;font-size:12px}}@media (max-width:600px){.rewrite-flow .flow-steps :is(b,span){gap:0}.rewrite-flow .flow-steps :is(b,span):before{display:none}.rewrite-flow .flow-steps i{width:8px;flex-shrink:0}}.screenplay-source-search .source-search-form{display:flex;align-items:stretch;gap:8px;margin:8px 0 12px}.screenplay-source-search input{min-width:0;width:100%;padding:10px 12px;font:16px/1.6 var(--ui-font);color:var(--ui-text)}.screenplay-source-search button,.screenplay-source-search input{min-height:44px;border:1px solid var(--ui-border-strong);border-radius:8px;background:var(--ui-surface)}.screenplay-source-search button{flex:0 0 auto;padding:9px 14px;color:var(--ui-accent-hover);font:14px/1.6 var(--ui-font);white-space:normal;cursor:pointer}.screenplay-source-search button:hover:not(:disabled){background:var(--ui-accent-soft)}.screenplay-source-search button:disabled{opacity:.5;cursor:not-allowed}.screenplay-source-search :is(input,button):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.screenplay-source-search .source-search-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8}.screenplay-source-search .source-search-original{background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:12px;padding:16px;margin:16px 0;min-width:0}.screenplay-source-search .source-search-original>div{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px}.screenplay-source-search .source-search-original h4{margin:0}.screenplay-source-search .source-search-original pre{color-scheme:light;max-height:min(38dvh,360px);overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px;line-height:1.8;background:var(--ui-bg);color:var(--ui-text);padding:12px;scrollbar-color:#a6b1ac #f3f5f3}.screenplay-source-search .source-search-original:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.screenplay-source-search .source-search-error{border-left:3px solid var(--ui-warning);padding:8px 12px}.author-facts{min-width:0}.author-fact-recovery button,.author-facts :is(button,textarea){box-sizing:border-box;font-family:var(--ui-font)}.author-fact-recovery button,.author-facts button{min-height:44px;padding:9px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-accent-hover);background:var(--ui-surface);font-size:14px;line-height:1.6;cursor:pointer;white-space:normal}.author-fact-recovery button:hover:not(:disabled),.author-facts button:hover:not(:disabled){background:var(--ui-accent-soft)}.author-fact-recovery button:disabled,.author-facts button:disabled{opacity:.5;cursor:not-allowed}.author-facts .author-fact-primary{background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}.author-facts .author-fact-primary:hover:not(:disabled){background:var(--ui-accent-hover)}.author-facts :is(p,blockquote,textarea){font-size:16px;line-height:1.8;overflow-wrap:anywhere}.author-facts :is(p,blockquote){white-space:pre-wrap}.author-facts :is(small,.continuity-disclaimer){color:var(--ui-muted);font-size:13px;line-height:1.8}.author-facts label{display:block;font-size:15px;line-height:1.7}.author-facts textarea{display:block;width:100%;min-height:84px;margin:6px 0;padding:10px 12px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:8px;resize:vertical}.author-facts fieldset{display:grid;gap:12px;border:0;padding:0;margin:0;min-width:0}.author-fact-card,.author-fact-editor,.author-fact-history,.author-fact-review{min-width:0;margin:16px 0;padding:16px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px}.author-fact-editor .author-fact-review{border:0;padding:0;margin:0}.author-fact-recovery h4,.author-facts h4{margin:0 0 10px;color:var(--ui-text);font-size:16px;line-height:1.6}.author-fact-actions,.author-fact-list-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.author-fact-list-header{justify-content:space-between;margin-top:18px}.author-fact-list-header h4{margin:0}.author-fact-actions{margin-top:12px}.author-facts .author-fact-ack{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0}.author-fact-ack input{width:20px;height:20px;flex:0 0 20px;margin-top:4px;accent-color:var(--ui-accent)}.author-fact-recovery summary,.author-facts summary{min-height:44px;padding:9px 0;cursor:pointer;box-sizing:border-box}.author-facts blockquote{margin:8px 0;padding:12px;border-left:2px solid var(--ui-border-strong);background:var(--ui-bg);color:var(--ui-text)}.author-fact-cancel{margin-top:12px}.author-fact-error,.author-fact-recovery,.author-fact-waiting,.author-fact-warning{background:var(--ui-surface);border-left:3px solid var(--ui-warning);padding:12px 16px;margin:16px 0;color:var(--ui-text);overflow-wrap:anywhere}.author-fact-notice{border-left:3px solid var(--ui-accent);padding:10px 14px;background:var(--ui-surface)}.author-fact-comparison>div{margin:12px 0}.author-materials :is(button,textarea,input,summary,[tabindex="-1"]):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.source-search-original>button{margin:4px 8px 4px 0}@media (max-width:560px){.author-fact-card,.author-fact-editor,.author-fact-history{padding:12px}.author-fact-actions{align-items:stretch}}.author-fact-recovery a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:9px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;color:var(--ui-accent-hover)}.author-version-diff{margin-top:12px;border-top:1px solid var(--ui-border)}.author-version-diff>section{margin:16px 0}.author-version-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.author-version-columns>div{min-width:0;padding:12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}.author-version-columns p{margin-bottom:0}.writing-materials-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;color:var(--ui-text);background:var(--ui-surface);color-scheme:light;border:1px solid var(--ui-border);border-radius:14px;box-shadow:var(--ui-shadow)}.writing-materials-dialog::backdrop{background:rgba(24,44,35,.24)}.writing-materials-dialog footer,.writing-materials-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.writing-materials-dialog h2{margin:0;font-size:19px}.writing-materials-body{padding:0 20px 16px;max-height:60dvh;overflow:auto;scrollbar-color:var(--ui-border-strong) var(--ui-surface)}.writing-materials-dialog :is(p,blockquote,label,select){font-size:16px;line-height:1.8;overflow-wrap:anywhere}.writing-materials-dialog button,.writing-materials-dialog select,.writing-materials-dialog summary{min-height:44px}.writing-materials-dialog summary{padding:10px 0;cursor:pointer}.writing-materials-dialog :is(button,select){color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:8px;padding:9px 12px}.writing-materials-dialog select{width:100%;margin-top:6px}.writing-materials-dialog footer{border-top:1px solid var(--ui-border);flex-wrap:wrap}.writing-materials-dialog footer button:last-child{background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}.writing-materials-dialog button:disabled{opacity:.5;cursor:not-allowed}.writing-materials-dialog article{margin-top:14px;padding:12px;border:1px solid var(--ui-border);border-radius:8px}.writing-materials-dialog .writing-material-check{display:flex;gap:10px;align-items:flex-start;min-height:44px}.writing-material-check input{width:20px;height:20px;margin-top:5px;flex:0 0 20px;accent-color:var(--ui-accent)}.writing-materials-dialog small{color:var(--ui-muted);font-size:13px}.writing-materials-dialog blockquote{margin:8px 0;padding:12px;background:var(--ui-bg);white-space:pre-wrap}.writing-materials-dialog :focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}@media (max-width:700px){.author-version-columns{grid-template-columns:minmax(0,1fr)}}