:root{--nav:#142938;--nav-soft:#203b4d;--bg:#f5f7f8;--paper:#fff;--ink:#182e3d;--muted:#596c7b;--faint:#65737f;--line:#e0e6eb;--blue:#365dca;--blue-hover:#264aaf;--blue-soft:#edf2ff;--green:#39715c;--red:#b53d49;--radius:10px;--sans:'DM Sans',system-ui,sans-serif;--serif:'Literata',Georgia,serif;--script:'Courier Prime','Courier New',monospace;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:not-allowed}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{line-height:1.25}button{background:none;border:0}svg{flex-shrink:0;vertical-align:middle}textarea{resize:vertical}button:focus-visible,a:focus-visible{outline:3px solid #809dee;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #7e9ced;outline-offset:1px}::selection{background:#c9d7ff}button{transition:background .15s,color .15s,border-color .15s}@media(hover:hover){button:hover{background-color:var(--blue-soft)}}.icon{display:inline-block;flex-shrink:0}.muted,.tiny-muted{color:var(--muted)}.tiny-muted{font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 15px;border:1px solid var(--line);background:var(--paper);border-radius:7px;font-weight:550;font-size:13px;white-space:nowrap;line-height:1.5}.button.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 2px 2px #1e3d7310}.button.primary:hover{background:var(--blue-hover)}.button.quiet{background:transparent;border-color:transparent;color:var(--muted)}.button.quiet:hover{background:var(--line);color:var(--ink)}.button.text-button{background:none;border:0;padding:0;color:var(--blue);gap:10px;flex-direction:row-reverse;justify-content:flex-end}.button.text-button:hover{color:var(--blue-hover);text-decoration:underline}.button.small{font-size:12px;padding:6px 10px}.button.text-button.small{padding:0;font-size:12px}.button.large{padding:13px 21px;font-size:14px}.button.danger{color:var(--red)}.icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;flex-shrink:0;color:var(--muted)}.icon-button .icon{width:17px;height:17px}.icon-button:hover{background:var(--blue-soft);color:var(--blue)}.mobile-only{display:none}.boot{padding:80px;text-align:center}.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:var(--paper);padding:12px}.skip-link:focus{top:10px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;letter-spacing:-.6px;line-height:1.1}.brand-studio{display:block;font-size:10px;font-weight:400;letter-spacing:2px;margin-top:5px}.brand-mark{display:flex;align-items:center;justify-content:center;width:32px;height:37px}.brand-mark svg{height:30px;width:30px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;background:var(--nav);color:#c4d0d8;padding:30px 18px 16px;z-index:20}.sidebar>.brand{color:#fff;padding:0 12px;margin-bottom:40px}.side-main{flex:1;min-height:0;overflow-y:auto}.side-new{width:100%;margin-bottom:26px}.side-link{display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;border-radius:7px;margin:4px 0;text-align:left;font-size:13px;color:#adbdc8}.side-link:hover{background:#203b4d;color:#fff}.side-link.active{background:#294553;color:#fff}.side-link .icon{width:18px;height:18px;opacity:.85}.side-count{margin-left:auto;font-size:10px;background:#ffffff14;border-radius:4px;padding:0 6px}.side-link span:nth-child(2){flex:1}.side-note{padding:45px 18px 20px;color:#839dab;font-size:13px;line-height:1.9}.sidebar-bottom{border-top:1px solid #ffffff12;padding-top:12px}.sidebar-bottom>.side-link{font-size:12px}.account{width:100%;padding:14px 8px 4px;display:flex;align-items:center;gap:10px;text-align:left;color:#fff}.account:hover{background:#203b4d}.avatar{background:#ffffff13;display:flex;width:33px;height:33px;border-radius:50%;align-items:center;justify-content:center;flex-shrink:0}.avatar svg{width:16px}.account>span:nth-child(2){flex:1}.account strong{display:block;font-size:11px;font-weight:500}.account small{font-size:10px;color:#92a9b8;display:block;margin-top:2px}.account>.icon{width:14px}.shell{margin-left:232px;min-height:100vh}.topbar{height:73px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--paper);gap:20px}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);min-width:0}.breadcrumb strong{color:var(--ink);font-weight:500}.crumb-slash{color:#acb6be}.crumb-button{padding:0;color:var(--muted)}.project-crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}.top-actions{display:flex;gap:24px;align-items:center;flex-shrink:0}.device-note{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.device-note svg{width:16px}.top-actions .button{font-size:12px}.top-actions .button svg{width:16px}.library-main{padding:40px 42px 24px;max-width:1600px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:11px;color:var(--muted);margin-bottom:10px;font-weight:550}.page-heading h1{font:400 clamp(25px,2.5vw,35px)/1.3 var(--serif);letter-spacing:-.8px}.subheading{color:var(--muted);font-size:13px;margin-top:10px}.welcome-banner{background:#eaf0f6;border:1px solid #dce5ee;border-radius:12px;min-height:206px;display:flex;align-items:center;justify-content:space-between;padding:27px 34px;overflow:hidden;position:relative;margin-bottom:37px}.welcome-banner h2{font-size:20px;font-weight:500;margin:10px 0}.welcome-banner p{font-size:12px;color:#5c7182;line-height:1.8}.welcome-banner .text-button{font-size:12px;margin-top:15px}.banner-art{width:290px;height:174px;flex-shrink:0;position:relative;align-self:flex-end;bottom:-27px;margin-right:5px}.mini-page{width:182px;height:221px;background:#fff;border:1px solid #d6dfe8;border-radius:3px;position:absolute;top:3px;right:33px;box-shadow:0 8px 16px #3c506d0c}.back-page{transform:rotate(12deg);top:6px;right:13px;background:#f5f8fb}.front-page{transform:rotate(-8deg);padding:28px 20px;font-family:var(--script);font-size:6px;line-height:1.7;color:#6f7b88}.front-page span,.front-page strong,.front-page i,.front-page b{display:block;margin-bottom:10px;font-style:normal;font-weight:400}.front-page strong{font-size:6px;font-weight:700}.front-page b{text-align:center;margin:18px 0 2px}.front-page .mini-dialogue{text-align:center}.pencil{width:5px;height:158px;background:#698298;position:absolute;right:-17px;top:38px;transform:rotate(20deg);border:1px solid #4b637b;border-radius:2px}.pencil:after{content:'';position:absolute;bottom:-11px;border:2px solid transparent;border-top:10px solid #ab957a;left:-1px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.section-heading h2{font-size:17px;font-weight:600;display:flex;align-items:center;gap:10px}.count{font-size:10px;background:#e6ebef;color:var(--muted);padding:2px 6px;border-radius:5px}.library-tools{display:flex;align-items:center;gap:10px}.search-field{display:flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:6px 10px;background:var(--paper)}.search-field .icon{width:15px;height:15px;color:var(--faint)}.search-field input{width:146px;background:none;border:0;font-size:11px;color:var(--ink);padding:2px 0}.search-field input:focus{outline:0}.search-field:focus-within{outline:2px solid #809dee}.filter-row{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:12px}.filter{font-size:12px;padding:5px 12px;border-radius:5px;color:var(--muted)}.filter.selected{background:#e7edf5;color:#284b8f;font-weight:550}.sort-label{margin-left:auto;font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center}.sort-label svg{width:12px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}.project-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--paper);min-width:0;transition:box-shadow .15s}.project-card:hover{box-shadow:0 6px 24px #2639490c}.cover{width:100%;height:194px;display:block;position:relative;text-align:left;overflow:hidden;padding:20px 24px;color:white}.sample-cover{background:#234753}.sample-cover:hover{background:#234753}.cover-label{font-size:9px;display:inline-block;background:#ffffff14;border:1px solid #ffffff25;padding:2px 7px;border-radius:4px;position:relative;z-index:2}.cover-title{font:400 27px/1.12 var(--serif);display:block;max-width:90%;margin-top:17px;letter-spacing:-.5px;position:relative;z-index:2;overflow:hidden;max-height:93px}.cover-footer{position:absolute;bottom:16px;font-size:8px;z-index:2;color:#c2d5d8}.broadcast-art{position:absolute;inset:0;background:#203e4b}.radio-wave{position:absolute;display:block;border:1px solid #b6d5cf18;border-radius:50%;width:200px;height:200px;left:54%;top:8%}.radio-wave.w2{width:270px;height:270px;left:44%;top:-11%}.radio-wave.w3{width:330px;height:330px;left:34%;top:-28%}.lighthouse{position:absolute;width:18px;height:80px;right:46px;bottom:18px;background:#8badaf;clip-path:polygon(35% 0,65% 0,69% 12%,85% 12%,85% 24%,68% 24%,100% 100%,0 100%,32% 24%,15% 24%,15% 12%,31% 12%)}.horizon{position:absolute;height:40px;bottom:0;left:0;right:0;background:#152f3d;clip-path:polygon(0 70%,50% 67%,78% 0,100% 10%,100% 100%,0 100%)}.card-info{padding:17px 19px 14px}.card-title{font-size:14px;font-weight:600;padding:0;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.card-title:hover{background:none;color:var(--blue)}.card-info>p{font-size:10px;color:var(--muted);margin-top:5px}.card-info>p span{margin:0 5px;color:var(--faint)}.card-bottom{display:flex;gap:5px;align-items:center;margin-top:20px}.status-chip{font-size:9px;background:#eff4f2;color:#3a6856;border-radius:4px;padding:3px 6px;white-space:nowrap}.card-bottom .icon-button{margin-left:auto;width:25px;height:25px}.card-date{margin-left:auto;font-size:9px;color:var(--faint)}.new-project-card{border:1px dashed #cbd6df;border-radius:10px;min-height:308px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;background:#ffffff40}.new-project-card:hover{background:#edf2f8;border-color:#8fa7cf}.new-circle{width:40px;height:40px;border:1px solid #d9e2eb;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#6280a0;margin-bottom:17px}.new-project-card>strong{font-size:13px;font-weight:550}.new-project-card>span:not(.new-circle){font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.new-project-card .new-link{display:flex;align-items:center;gap:7px;color:var(--blue)!important;margin-top:19px!important;font-size:11px!important}.new-link .icon{width:14px}.project-cover.tone-blue{background:#3b567c}.project-cover.tone-slate{background:#4a666b}.project-cover.tone-plum{background:#605b7e}.cover-excerpt{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:12px;max-width:85%;color:#ffffffb5;position:relative;z-index:2}.cover-decoration{position:absolute;right:15px;bottom:-15px;transform:rotate(-15deg);opacity:.09}.cover-decoration .icon{width:125px;height:125px;stroke-width:1}.format-section{margin-top:35px}.format-section .section-heading h2{font-size:15px}.format-section .muted{font-size:10px}.format-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.format-shortcut{border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;gap:12px;padding:18px 15px;border-radius:8px;text-align:left}.format-shortcut>span:nth-child(2){flex:1}.format-icon{color:#5d7593;background:#f0f4f8;width:34px;height:34px;display:flex;justify-content:center;align-items:center;border-radius:7px}.format-icon .icon{width:18px}.format-shortcut strong{font-size:11px;font-weight:600;display:block}.format-shortcut small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.format-shortcut>.icon{width:14px;color:#8192a4}.workspace-footer{margin-top:34px;border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between;align-items:center;color:var(--faint);font-size:10px}.workspace-footer>span{display:flex;gap:7px;align-items:center}.workspace-footer .icon{width:13px}.workspace-footer .button{font-size:10px}.empty-state{padding:45px;text-align:center;grid-column:1/-1;min-height:200px}.empty-state h3{margin:10px;font-size:17px}.empty-state p{color:var(--muted);font-size:13px}.side-back{color:#a6bbc8;display:flex;gap:7px;align-items:center;font-size:12px;padding:5px 12px}.side-back:hover{background:#203b4d}.side-back svg{width:15px}.side-project{padding:23px 12px 28px;border-bottom:1px solid #ffffff10;margin-bottom:22px}.side-project .tiny-muted{color:#8fa9b9;font-size:10px}.side-project h2{font:400 22px/1.4 var(--serif);color:#f0f5f9;margin-top:8px;overflow-wrap:anywhere}.sample-pill{display:inline-block;margin-top:13px;font-size:9px;border:1px solid #ffffff25;border-radius:4px;padding:2px 6px;color:#a5bbc9}.stage-index{font-size:10px;opacity:.5;flex:0!important}.side-tip{margin:38px 12px 0;color:#8da5b5;font-size:11px}.tip-line{display:block;width:22px;height:2px;background:#587585;margin-bottom:17px}.side-tip p{color:#b1c4d0;margin-bottom:7px}.side-tip small{font-size:10px;line-height:1.8;display:block}.save-state{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.save-state svg{width:13px;color:var(--green)}.workspace-main{padding:29px 36px 36px;max-width:1800px;margin:0 auto}.workspace-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.workspace-title .eyebrow{font-size:10px;margin-bottom:7px}.light-dot{margin:0 7px;opacity:.5}.title-line{display:flex;align-items:center;gap:10px}.title-line h1{font:400 29px/1.35 var(--serif);letter-spacing:-.5px;overflow-wrap:anywhere}.workspace-title-actions{display:flex;gap:6px;align-items:center}.workspace-title-actions>.button{font-size:11px}.workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:26px;align-items:start}.workspace-layout.no-context{grid-template-columns:1fr}.work-panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}.panel-heading{padding:23px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.panel-heading h2{font-size:17px;font-weight:550}.panel-heading p{font-size:11px;color:var(--muted);margin-top:5px}.panel-heading>.button{margin-left:auto}.panel-heading .button{font-size:10px}.panel-heading .button .icon{width:14px;height:14px}.context-rail{padding-top:8px;min-width:0}.context-heading{display:flex;align-items:center;gap:9px;margin-bottom:24px}.context-heading h3{font-size:12px;font-weight:550}.context-heading svg{width:16px;color:#607688}.context-section{border-bottom:1px solid var(--line);padding:0 0 22px;margin-bottom:21px}.context-label{font-size:10px;color:var(--muted);font-weight:550}.context-section>p{font-size:12px;line-height:1.85;margin-top:10px}.context-section .text-button{margin-top:13px!important;font-size:10px!important}.context-facts{display:grid;grid-template-columns:50px 1fr;gap:11px 8px;font-size:11px;margin:12px 0 0}.context-facts dt{color:var(--faint)}.context-facts dd{margin:0}.context-character{display:flex;gap:10px;align-items:center;width:100%;text-align:left;margin-top:13px;border-radius:5px}.context-character>span{width:29px;height:29px;border-radius:50%;background:#e5eaf0;color:#5c7390;font-family:var(--serif);display:grid;place-items:center}.context-character strong{display:block;font-size:11px;font-weight:500}.context-character small{font-size:9px;color:var(--muted)}.progress-heading{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.progress-track{height:4px;background:var(--line);border-radius:4px;margin:13px 0}.progress-track>div{height:100%;background:#7e9bac;border-radius:4px}.story-checklist{padding:0;list-style:none;display:grid;gap:10px;margin:15px 0 0}.story-checklist li{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:9px}.story-checklist li>span{border:1px solid #c9d4dc;border-radius:50%;width:13px;height:13px;display:grid;place-items:center}.story-checklist li.done>span{background:#e4eee9;border-color:#d5e6dd;color:#41765d}.story-checklist svg{width:9px;height:9px}.context-caption{display:flex;gap:10px;color:var(--faint);font-size:10px;line-height:1.8}.sample-banner{padding:8px 36px;background:#eaf0fc;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#34557e}.sample-banner .button{font-size:10px}.chat-thread{padding:30px 25px;min-height:330px;max-height:calc(100vh - 400px);overflow-y:auto;scroll-behavior:smooth}.room-intro{max-width:400px;margin:15px auto 20px;text-align:center}.room-intro h3{font:400 24px/1.4 var(--serif);letter-spacing:-.3px}.room-intro p{font-size:12px;line-height:1.9;color:var(--muted);margin:10px auto 20px;max-width:300px}.starter-prompts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.starter{display:flex;align-items:center;gap:8px;border:1px solid var(--line);font-size:10px;padding:7px 10px;border-radius:6px;color:var(--muted)}.starter .icon{width:12px;height:12px;order:2}.message{display:flex;align-items:start;gap:12px;margin-bottom:29px}.message-avatar{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:var(--blue-soft);color:#6783b5;border-radius:8px;font-size:9px}.message-avatar svg{width:15px}.message.user .message-avatar{background:var(--bg);color:var(--muted)}.message strong{font-size:10px;font-weight:550;display:block;margin:3px 0 8px}.message-text{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.message>div{min-width:0;flex:1}.message.user>div{background:var(--bg);padding:9px 14px;border-radius:8px}.message.user strong{margin-top:0}.composer{margin:0 24px;border:1px solid #cfd9e2;box-shadow:0 2px 5px #23405f06;border-radius:9px;padding:12px 14px 8px}.composer:focus-within{border-color:#7d9ad3;box-shadow:0 0 0 2px #a9bff021}.composer textarea{border:0;background:none;width:100%;min-height:50px;max-height:180px;resize:vertical;font-size:12px;color:var(--ink);outline:0}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-bottom>span{font-size:9px;color:var(--faint)}.send-button{border-radius:7px;background:var(--blue);color:#fff;display:grid;place-items:center;width:30px;height:30px}.send-button:hover{background:var(--blue-hover)}.send-button svg{width:15px;height:15px}.panel-footnote{font-size:9px;color:var(--faint);text-align:center;padding:12px 10px 18px}.bible-content,.outline-content,.review-content{padding:25px}.section-label{display:flex;align-items:center;gap:10px;margin-bottom:20px}.section-label h3{font-size:13px;font-weight:550}.section-number{font-size:10px;color:var(--faint);border:1px solid var(--line);border-radius:5px;width:23px;height:23px;display:grid;place-items:center}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:20px}.field>span{font-size:11px;font-weight:550;color:var(--muted)}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:10px 12px;color:var(--ink);font-size:12px;line-height:1.8}.field input::placeholder,.field textarea::placeholder{color:#8494a3}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.character-heading{border-top:1px solid var(--line);padding-top:22px;margin-top:8px}.character-heading .button{margin-left:auto;font-size:10px}.character-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:26px}.character-card{border:1px solid var(--line);border-radius:8px;padding:15px;min-width:0}.character-top{display:flex;gap:9px;align-items:center}.character-top>div{flex:1}.character-top h4{font-size:12px}.character-top>div>span{font-size:9px;color:var(--muted)}.character-avatar{width:32px;height:32px;border-radius:50%;background:#e8edf5;display:grid;place-items:center;color:#5d7696;font-family:var(--serif)}.character-card>p{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.character-card dl{font-size:10px;margin:10px 0 0}.character-card dt{color:var(--faint);margin-top:8px}.character-card dd{margin:2px 0 0}.inline-empty{background:var(--bg);padding:20px;display:flex;align-items:center;gap:15px;border-radius:7px;color:var(--muted);font-size:12px;margin-bottom:25px}.act-group+.act-group{margin-top:25px}.act-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.act-number{font-size:11px;color:#6c8599;background:#eaf0f5;width:23px;height:23px;border-radius:6px;display:grid;place-items:center}.act-heading h3{font-size:12px;font-weight:550}.act-heading>span:last-child{margin-left:auto;color:var(--faint);font-size:10px}.scene-row{display:flex;gap:12px;align-items:start;padding:17px 0;border-top:1px solid var(--line)}.scene-number{font-size:10px;color:var(--faint);padding-top:2px}.scene-info{flex:1;min-width:0}.scene-info>button{font-size:11px;font-weight:600;text-align:left;padding:0;line-height:1.6}.scene-info>p{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.8}.scene-controls{display:grid;grid-template-columns:1fr 1fr;gap:0}.scene-controls .icon-button{width:25px;height:25px}.scene-controls svg{width:13px}.add-act-scene{border:1px dashed #ccd7df;border-radius:6px;width:100%;padding:16px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}.add-act-scene svg{width:14px}.editor-toolbar{display:flex;align-items:center;gap:15px;background:var(--bg);border-bottom:1px solid var(--line);padding:9px 16px}.segmented{display:flex;background:var(--line);padding:2px;border-radius:6px}.segmented button{font-size:11px;padding:4px 12px;border-radius:4px;color:var(--muted)}.segmented button.selected{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #18313d0a}.editor-toolbar>span{font-size:10px;color:var(--muted);margin-left:auto}.editor-toolbar>.button{font-size:10px}.screenplay-editor{width:100%;border:0;padding:38px 40px;min-height:560px;display:block;background:var(--paper);color:var(--ink);font:14px/1.75 var(--script);resize:vertical;tab-size:4}.screenplay-editor:focus{outline:0;box-shadow:inset 0 0 0 2px #d8e2f4}.editor-footer{border-top:1px solid var(--line);display:flex;gap:10px;justify-content:space-between;align-items:center;padding:10px 18px;font-size:9px;color:var(--faint)}.editor-footer .button{font-size:10px}.preview-layout{background:#e9edf0}.scene-index{padding:10px 16px;display:flex;gap:10px;overflow:auto;border-bottom:1px solid #d9e0e5}.scene-index a{white-space:nowrap;font-size:9px;display:flex;gap:5px;align-items:center;padding:3px 7px;color:#607180;background:#f6f8fa;border-radius:4px}.scene-index a span{font-weight:700}.paper-wrap{padding:24px;overflow:auto}.script-paper{background:white;color:#161616;max-width:816px;min-height:760px;padding:55px 40px 55px 60px;font:12px/1.4 var(--script);margin:auto;box-shadow:0 2px 6px #1d384510}.script-paper p{margin:0;white-space:pre-wrap}.script-blank{height:1em}.sp-scene-heading{font-weight:bold;margin-top:1.2em!important}.sp-character{margin-left:37%!important}.sp-dialogue{margin-left:20%!important;max-width:60%}.sp-parenthetical{margin-left:28%!important;max-width:45%}.sp-transition{text-align:right}.empty-script{color:#87939b;text-align:center;padding:70px 0;line-height:2}.review-intro{padding:40px 20px;text-align:center}.review-intro>svg{width:42px;height:42px;color:#8da2b5;margin-bottom:22px}.review-intro h3{font:400 23px/1.4 var(--serif)}.review-intro p{font-size:12px;color:var(--muted);max-width:360px;margin:12px auto 24px}.review-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.review-topics span{font-size:10px;border:1px solid var(--line);padding:6px 9px;border-radius:5px;color:var(--muted)}.review-note{font-size:10px;background:var(--bg);padding:14px;text-align:center;color:var(--muted);border-radius:6px}.review-result{white-space:pre-wrap;font-size:13px;line-height:1.9;margin-bottom:25px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;z-index:100;background:var(--nav);color:white;border:1px solid #ffffff20;box-shadow:0 5px 30px #15283d25;border-radius:8px;padding:13px 20px;max-width:600px;width:max-content;font-size:12px;transition:opacity .18s,transform .18s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:#713240}dialog{border:1px solid var(--line);border-radius:14px;padding:0;background:var(--paper);color:var(--ink);width:520px;max-width:calc(100vw - 32px);max-height:90vh;box-shadow:0 25px 90px #0f243b40}dialog::backdrop{background:#10243570;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 27px 18px;border-bottom:1px solid var(--line);gap:12px}.dialog-heading h2{font:400 23px/1.3 var(--serif)}.dialog-body{padding:24px 27px}.dialog-intro{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:22px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 27px}.dialog-actions .spacer{flex:1}.dialog-body .field{margin-bottom:16px}.dialog-body .field:last-child{margin-bottom:0}.format-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.format-option{border:1px solid var(--line);border-radius:7px;padding:11px 8px;text-align:left;font-size:10px;display:flex;gap:7px;align-items:center}.format-option.selected{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}.format-option .icon{width:15px}.dialog-error{color:var(--red);font-size:12px;white-space:pre-wrap;margin:12px 0}.dialog-notice{padding:12px;background:var(--blue-soft);font-size:11px;line-height:1.8;border-radius:6px;margin-bottom:20px}.auth-google{width:100%;margin-bottom:20px}.divider{display:flex;align-items:center;gap:10px;color:var(--faint);font-size:10px;margin:0 0 20px}.divider:before,.divider:after{content:'';flex:1;height:1px;background:var(--line)}.dialog-body .full-width{width:100%}.text-link{font-size:11px;color:var(--blue);padding:4px 0}.auth-links{display:flex;justify-content:space-between;margin-top:14px}.export-options{display:grid;gap:10px}.export-option{display:flex;gap:15px;text-align:left;border:1px solid var(--line);border-radius:7px;padding:14px}.export-option>.icon{color:var(--blue)}.export-option strong{display:block;font-size:12px}.export-option small{font-size:10px;color:var(--muted)}.proposal-text{width:100%;min-height:230px;font:12px/1.8 var(--script);border:1px solid var(--line);border-radius:6px;padding:15px;color:var(--ink);background:var(--bg)}.proposal-field{margin-bottom:18px}.proposal-field strong{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.proposal-field p{font-size:12px;white-space:pre-wrap}.guide-list{padding-left:20px;font-size:12px;color:var(--muted)}.guide-list li{margin-bottom:17px;padding-left:4px}.guide-list strong{color:var(--ink)}.revision-item{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;gap:10px}.revision-item strong{display:block;font-size:12px}.revision-item small{font-size:10px;color:var(--muted)}.dialog-body pre{white-space:pre-wrap;background:var(--bg);padding:16px;font:12px/1.8 var(--script);border-radius:6px}.account-details{display:grid;gap:12px;font-size:12px;margin-bottom:22px}.account-details small{color:var(--muted)}.focus-mode .sidebar,.focus-mode .context-rail,.focus-mode .workspace-title,.focus-mode .topbar{display:none}.focus-mode .shell{margin-left:0}.focus-mode .workspace-layout{grid-template-columns:1fr}.focus-mode .workspace-main{max-width:1000px;margin:auto}.focus-mode .screenplay-editor{min-height:80vh}.landing{background:var(--paper)}.landing-nav{max-width:1240px;margin:auto;padding:27px 40px;display:flex;align-items:center;justify-content:space-between}.landing-nav nav{display:flex;gap:35px;align-items:center;font-size:12px;color:var(--muted)}.landing-nav nav a:last-child{display:flex;gap:10px;align-items:center;color:var(--ink)}.landing-nav nav .icon{width:15px}.landing-hero{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:70px;max-width:1240px;margin:auto;padding:75px 40px 95px}.hero-kicker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;margin-bottom:24px}.hero-copy h1{font:400 clamp(38px,4.2vw,61px)/1.18 var(--serif);letter-spacing:-2px}.hero-copy>p{font-size:15px;line-height:1.95;color:var(--muted);margin:26px 0 30px;max-width:430px}.hero-actions{display:flex;gap:12px;align-items:center}.hero-actions .quiet{font-size:12px}.hero-note{font-size:10px;color:var(--faint);display:block;margin-top:18px}.hero-manuscript{position:relative;background:#e8eef3;border-radius:16px;padding:23px 26px 0;min-height:475px}.manuscript-label{display:flex;gap:8px;align-items:center;font-size:9px;color:#607486;margin-bottom:19px}.live-dot{width:5px;height:5px;border-radius:50%;background:#6f998b}.hero-paper{background:white;color:#29323a;padding:46px 34px 30px;box-shadow:0 3px 30px #1d384516;min-height:420px;transform:rotate(-2deg);position:relative}.hero-paper h2{text-align:center;font:400 19px var(--serif)}.paper-credit{text-align:center;font-size:8px;color:#899298;margin:10px 0 28px}.paper-page{position:absolute;right:24px;top:18px;font:10px var(--script);color:#7f8b94}.hero-script{font:10px/1.55 var(--script)}.hero-note-card{position:absolute;bottom:27px;right:-28px;width:272px;display:flex;gap:11px;padding:17px 20px;background:var(--nav);color:#fff;border-radius:9px;box-shadow:0 8px 30px #203c5120}.hero-note-card strong{font-size:11px;font-weight:500}.hero-note-card p{font-size:10px;line-height:1.7;color:#a8bdcb;margin-top:5px}.landing-flow{border-top:1px solid var(--line);background:var(--bg);display:grid;grid-template-columns:1fr 1fr;gap:90px;padding:65px max(40px,calc((100vw - 1160px)/2));}.landing-flow h2{font:400 34px/1.4 var(--serif);letter-spacing:-.7px}.flow-steps{display:grid;gap:26px}.flow-steps article{display:flex;gap:18px}.flow-steps article>span{display:grid;place-items:center;width:27px;height:27px;border:1px solid #ccd7e2;border-radius:50%;font-size:11px;color:#6b8299;flex-shrink:0}.flow-steps h3{font-size:14px;margin-top:3px;font-weight:550}.flow-steps p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.9;max-width:380px}.landing-close{text-align:center;padding:80px 20px}.landing-close h2{font:400 34px var(--serif);letter-spacing:-.7px}.landing-close p{font-size:13px;color:var(--muted);margin:15px 0 24px}.landing-footer{border-top:1px solid var(--line);padding:25px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1240px;margin:auto;font-size:11px;color:var(--muted)}.landing-footer .brand{font-size:16px}.landing-footer .brand-studio{font-size:8px}.landing-footer .brand-mark svg{width:24px}.landing-footer .brand-mark{width:25px}.landing-footer>a:last-child{color:var(--blue)}#print-root{display:none}
[data-theme="dark"]{--bg:#162633;--paper:#1e303e;--ink:#e0e9ee;--muted:#a3b6c4;--faint:#97adbd;--line:#344653;--blue:#5379de;--blue-hover:#6486e0;--blue-soft:#283e5d;--green:#a3c9b5;color-scheme:dark}[data-theme="dark"] .welcome-banner{background:#223b4c;border-color:#395062}[data-theme="dark"] .welcome-banner p{color:#b0c4d2}[data-theme="dark"] .filter.selected{background:#304969;color:#d9e5ff}[data-theme="dark"] .status-chip{background:#304b42;color:#b8dfca}[data-theme="dark"] .format-icon,[data-theme="dark"] .count{background:#2d4558;color:#b4c7d7}[data-theme="dark"] .new-circle{background:#284052;border-color:#4b6073}[data-theme="dark"] .sample-banner{background:#2b4160;color:#cbddf2}[data-theme="dark"] .preview-layout{background:#12222f}[data-theme="dark"] .scene-index{border-color:#344653}[data-theme="dark"] .scene-index a{background:#263b4c;color:#b1c5d4}[data-theme="dark"] .hero-manuscript{background:#293d4e}
@media(min-width:1600px){.project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cover{height:220px}.library-main{padding-top:48px}.welcome-banner{min-height:230px}.banner-art{margin-right:50px}}
@media(max-width:1180px){.sidebar{width:208px;padding-left:14px;padding-right:14px}.shell{margin-left:208px}.topbar{padding:0 28px}.library-main{padding:32px 28px}.workspace-main{padding:25px 24px}.workspace-layout{grid-template-columns:minmax(0,1fr) 205px;gap:20px}.workspace-title h1{font-size:26px}.project-grid{gap:16px}.welcome-banner{padding:24px}.banner-art{width:200px;margin-right:0;bottom:-24px}.welcome-banner h2{font-size:18px}.format-shortcut{padding:15px 11px;gap:8px}.format-shortcut small{font-size:8px}.cover{padding:19px}.top-actions{gap:12px}.device-note{display:none}.cover-title{font-size:24px}.card-info{padding:15px}.card-info>p{font-size:9px}.hero-note-card{right:-8px}.landing-hero{gap:40px}.hero-actions{flex-wrap:wrap}.editor-toolbar .quiet{font-size:0;gap:0}.editor-toolbar .quiet .icon{width:16px;height:16px}}
@media(max-width:980px){.workspace-layout{grid-template-columns:1fr}.context-rail{display:none}.workspace-layout:not(.no-context) .context-rail{display:block;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:20px}.context-section{display:inline-block;width:48%;vertical-align:top;margin-right:1%;padding-right:10px}.context-caption{display:none}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.format-shortcuts{grid-template-columns:1fr}.format-shortcut small{font-size:10px}.format-section .muted{display:none}.banner-art{width:160px}.mini-page{right:10px;width:146px}.back-page{right:-4px}.front-page{padding:25px 13px}.welcome-banner p{max-width:300px}.desktop-only{display:none}.welcome-banner h2{max-width:260px}.page-heading>.button{font-size:11px}.page-heading h1{font-size:27px}.landing-hero{padding-top:40px;gap:30px}.hero-copy h1{font-size:44px}.hero-copy>p{font-size:13px}.hero-manuscript{padding:20px 15px 0}.hero-paper{padding:43px 23px 25px}.hero-note-card{width:235px}.landing-flow{gap:35px}}
@media(max-width:720px){.sidebar{display:none;width:232px;box-shadow:15px 0 60px #0e223350}.sidebar.mobile-open{display:flex}.sidebar.mobile-open:after{content:'';position:fixed;left:232px;right:0;top:0;bottom:0;background:#12233455;z-index:-1}.shell{margin-left:0}.mobile-only{display:inline-flex}.topbar{height:62px;padding:0 18px;gap:10px}.breadcrumb{gap:9px;font-size:11px}.top-actions .quiet{display:none}.library-main{padding:28px 20px 22px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:24px}.page-heading h1{font-size:27px;max-width:310px}.page-heading>.button{width:35px;height:35px;padding:0;font-size:0;gap:0;margin-top:30px}.page-heading>.button svg{width:18px}.eyebrow{font-size:10px}.subheading{font-size:12px;max-width:290px}.welcome-banner{min-height:195px;padding:22px;margin-bottom:29px}.welcome-banner h2{font-size:18px;max-width:270px}.welcome-banner p{font-size:11px;max-width:260px}.banner-art{width:130px;right:-33px;opacity:.75}.welcome-banner>div:first-child{z-index:1;max-width:calc(100% - 45px)}.welcome-banner .text-button{font-size:11px}.section-heading h2{font-size:15px}.search-field input{width:110px;font-size:10px}.library-tools{gap:4px}.library-tools .button{font-size:10px;padding:5px}.library-tools .button svg{width:13px}.filter{padding:5px 9px;font-size:10px}.sort-label{font-size:9px}.project-grid{gap:14px}.cover{height:184px;padding:17px}.cover-title{font-size:25px}.new-project-card{min-height:296px;padding:20px 12px}.new-project-card>strong{font-size:12px}.new-project-card>span:not(.new-circle){font-size:10px}.card-title{font-size:12px}.card-info{padding:14px}.card-info>p{font-size:9px}.card-date{display:none}.card-bottom{margin-top:15px}.status-chip{font-size:8px}.cover-footer{font-size:7px}.workspace-main{padding:24px 18px}.workspace-title h1{font-size:25px}.workspace-title-actions>.button{font-size:0;gap:0;padding:7px}.workspace-title-actions>.button svg{width:17px}.workspace-title .eyebrow{font-size:9px}.project-crumb{max-width:150px}.save-state{font-size:9px}.save-state svg{display:none}.top-actions{gap:7px}.top-actions .button{padding:6px 9px;font-size:10px}.top-actions .button svg{width:14px}.sample-banner{padding:10px 18px;font-size:10px}.sample-banner .button{padding:4px 7px}.sample-banner .button svg{display:none}.panel-heading{padding:19px;gap:10px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px}.panel-heading .button{font-size:9px;padding:5px 7px}.panel-heading .button svg{width:12px}.chat-thread{padding:24px 19px;min-height:300px;max-height:55vh}.room-intro{margin:0 auto}.room-intro h3{font-size:22px}.composer{margin:0 17px}.composer-bottom>span{font-size:8px}.bible-content,.outline-content,.review-content{padding:19px}.character-grid{grid-template-columns:1fr}.screenplay-editor{padding:27px 23px;font-size:13px;min-height:500px}.paper-wrap{padding:12px}.script-paper{padding:30px 20px;min-height:600px;font-size:10px}.editor-footer>span{font-size:8px;max-width:180px}.editor-footer .button{font-size:9px}.section-label .button{padding:5px 7px;font-size:9px}.section-label h3{font-size:12px}.form-grid{gap:0 12px}.context-section{width:100%;padding-right:0;margin-right:0}.scene-controls{grid-template-columns:1fr}.scene-controls .icon-button{width:23px;height:23px}.scene-controls .icon-button:first-child,.scene-controls .icon-button:nth-child(2){display:inline-flex}.dialog-heading{padding:21px}.dialog-body{padding:21px}.dialog-actions{padding:15px 21px}.dialog-heading h2{font-size:21px}.toast{max-width:calc(100vw - 32px);font-size:11px;bottom:16px}.landing-nav{padding:22px}.landing-nav nav{gap:15px;font-size:11px}.landing-nav nav a:first-child{display:none}.landing-hero{grid-template-columns:1fr;padding:40px 24px 65px;gap:50px}.hero-copy h1{font-size:44px}.hero-copy>p{font-size:14px;margin:22px 0 25px}.hero-actions{gap:7px}.hero-actions .button{font-size:12px}.hero-note{font-size:9px}.hero-manuscript{max-width:440px;width:100%;margin:auto;min-height:440px}.hero-paper{min-height:390px;padding:40px}.hero-note-card{bottom:24px;right:-5px}.landing-flow{grid-template-columns:1fr;padding:43px 24px;gap:34px}.landing-flow h2{font-size:29px}.landing-close{padding:54px 22px}.landing-close h2{font-size:29px}.landing-footer{padding:22px;flex-wrap:wrap}.landing-footer>span{display:none}.hero-script{font-size:11px}}
@media(max-width:390px){.project-grid{grid-template-columns:1fr}.new-project-card{min-height:180px}.cover{height:210px}.banner-art{display:none}.welcome-banner>div:first-child{max-width:100%}.search-field input{width:80px}.form-grid{grid-template-columns:1fr}.format-options{grid-template-columns:repeat(2,1fr)}.save-state{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{@page{size:letter;margin:1in .75in 1in 1.5in}body{background:#fff!important;color:#000!important}#app,dialog,.toast,.skip-link{display:none!important}#print-root{display:block;font:12pt/1 'Courier Prime','Courier New',monospace;color:#000}#print-root .title-page{height:8in;display:flex;flex-direction:column;justify-content:center;align-items:center;break-after:page;text-align:center}#print-root .title-page h1{font:12pt var(--script);text-transform:uppercase;margin-bottom:24pt}#print-root .title-page p{font:12pt var(--script)}#print-root p{margin:0;white-space:pre-wrap;orphans:3;widows:3}#print-root .script-blank{height:12pt}#print-root .sp-scene-heading{break-after:avoid;margin-top:12pt!important}#print-root .sp-character{margin-left:2.2in!important;break-after:avoid}#print-root .sp-dialogue{margin-left:1in!important;max-width:3.5in}#print-root .sp-parenthetical{margin-left:1.6in!important;max-width:2.5in;break-after:avoid}#print-root .sp-transition{text-align:right}}

[data-theme="dark"] .new-project-card{background:#1c303e;border-color:#506577}[data-theme="dark"] .text-button,[data-theme="dark"] .new-link{color:#9bbcff}
/* Story workspace: quiet working sheets beside the manuscript. */
.memory-sheet{padding:24px 28px;border-bottom:1px solid var(--border,#dce3e8)}
.memory-sheet h3{font-size:16px;margin:0 0 6px}.memory-sheet .section-heading{gap:16px;align-items:flex-start;margin-bottom:18px}.memory-sheet .section-heading p,.memory-sheet>.muted{font-size:12px;line-height:1.6;margin:0;color:var(--muted,#64748b)}
.interview-next{border-left:3px solid #365dca;padding:12px 17px;margin-bottom:20px;background:#f3f6fc}.interview-next>span{font-size:11px;color:#64748b}.interview-next>p{font:18px/1.55 Literata,Georgia,serif;margin:6px 0 12px}.memory-sheet details{border-top:1px solid #dce3e8;padding:13px 0}.memory-sheet summary{cursor:pointer;font-weight:600;font-size:13px}.memory-sheet summary span{color:#64748b;margin-left:8px}.memory-item{padding:16px 0;border-bottom:1px solid #dce3e8}.memory-item:last-child{border:0}.memory-item p{white-space:pre-wrap;font-size:13px;line-height:1.6;margin:6px 0 10px}.memory-item small{color:#64748b;font-size:11px}.memory-item>div{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}.memory-item blockquote{border-left:2px solid #abbccd;margin:10px 0;padding:8px 16px;white-space:pre-wrap;font:13px/1.6 'Courier Prime',monospace}.memory-item.resolved{opacity:.65}.source-highlight{outline:2px solid #365dca;outline-offset:5px}.writing-tools{display:flex;gap:8px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #dce3e8;align-items:end}.writing-tools label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted,#64748b)}.writing-tools select{max-width:210px;min-height:34px;border:1px solid #c9d4df;border-radius:5px;padding:6px;background:var(--surface,#fff);color:inherit}.editor-hint{font-size:11px;color:#64748b;padding:0 20px}.breakdown-table{overflow:auto}.breakdown-table table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.breakdown-table th,.breakdown-table td{padding:12px 9px;border-bottom:1px solid #dce3e8;vertical-align:top}.constraint-warning{border-left:3px solid #b67428;background:#fff8e9;padding:12px;font-size:13px;color:#67430f}.scene-controls .icon-button[data-action="open-linked-scene"]{font-size:0;gap:0}.message .button{margin-top:8px}.work-panel .memory-sheet details>.muted{font-size:12px;padding-top:12px}
[data-theme="dark"] .interview-next{background:#21374b}[data-theme="dark"] .memory-sheet,[data-theme="dark"] .memory-sheet details,[data-theme="dark"] .memory-item,[data-theme="dark"] .writing-tools,[data-theme="dark"] .breakdown-table td,[data-theme="dark"] .breakdown-table th{border-color:#39505e}[data-theme="dark"] .writing-tools select{background:#1c303e;color:#dce6ee}[data-theme="dark"] .constraint-warning{background:#403521;color:#f7d9a7}[data-theme="dark"] .memory-sheet small,[data-theme="dark"] .interview-next>span,[data-theme="dark"] .memory-sheet p.muted{color:#a9bccb}
@media(max-width:720px){.memory-sheet{padding:20px}.interview-next>p{font-size:16px}.writing-tools{padding:12px;gap:9px}.writing-tools select{max-width:155px}.memory-sheet .section-heading{flex-wrap:wrap}.memory-item p{font-size:13px}.bible-content .breakdown-table{max-width:100%}}
@media print{.memory-sheet,.writing-tools,.editor-hint{display:none!important}}
#script-preview:has(.screenplay-page){background:none;padding:0;box-shadow:none;width:100%;min-height:0}
.screenplay-page{position:relative;background:#fff;color:#171717;box-shadow:0 2px 8px #172b3a12;width:8.5in;height:11in;padding:1in 1in 1in 1.5in;margin:0 auto 24px;box-sizing:border-box;font:12pt/16px 'Courier Prime','Courier New',monospace;overflow:hidden}.screenplay-page-number{position:absolute;top:.5in;right:1in}.page-line{white-space:pre;min-height:16px;height:16px;font:inherit;margin:0!important;padding:0!important}.page-line.sp-dialogue{margin-left:1in!important;width:auto}.page-line.sp-character{margin-left:2in!important;width:auto}.page-line.sp-parenthetical{margin-left:1.5in!important;width:auto}.page-line.sp-transition{text-align:right}.page-line.sp-scene-heading{font-weight:bold}
.paper-wrap:has(.screenplay-page){overflow:auto}.screenplay-page .sp-action{width:auto}
@media print{@page{margin-top:.6in}#print-root .screenplay-page{width:100%;height:9.4in;padding:.4in 0 0;margin:0;box-shadow:none;break-after:page;page-break-after:always;overflow:visible}#print-root .screenplay-page:last-child{break-after:auto;page-break-after:auto}#print-root .screenplay-page-number{top:0;right:0}.page-line{break-inside:avoid}}
@media print{#print-root .page-line.sp-scene-heading{margin-top:0!important}#print-root .page-line.sp-character{margin-left:2in!important}#print-root .page-line.sp-parenthetical{margin-left:1.5in!important}#print-root .page-line{font:12pt/16px 'Courier Prime','Courier New',monospace}}

/* Guided creation choices and conversation progress. */
.start-modes{border:0;padding:0;margin:18px 0 0;min-width:0}.start-modes legend{font-size:12px;font-weight:600;margin-bottom:9px}.start-mode{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:12px 14px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);cursor:pointer}.start-mode+.start-mode{margin-top:8px}.start-mode.selected{border-color:var(--blue);background:var(--blue-soft)}.start-mode strong{font-size:13px}.start-mode small{font-size:11px;line-height:1.5;color:var(--muted)}
.room-guide{margin:0 0 15px;padding:15px 18px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.room-guide-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.room-guide-head>div:first-child{display:flex;align-items:center;gap:10px}.room-guide-head strong{font-size:13px}.room-guide-head span{font-size:11px;color:var(--muted)}.room-progress-track{width:120px;height:5px;overflow:hidden;border-radius:9px;background:var(--line)}.room-progress-track span{display:block;height:100%;border-radius:inherit;background:var(--blue);transition:width .2s}.room-guide details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.room-guide summary{cursor:pointer;font-size:11px;color:var(--muted)}.room-guide details>p{font-size:11px;line-height:1.5;color:var(--muted);margin:11px 0}.guide-topics{display:grid;gap:7px}.guide-topic{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:6px}.guide-topic>span{color:var(--blue);display:flex}.guide-topic>div:nth-child(2){min-width:0}.guide-topic strong{font-size:11px;line-height:1.4;font-weight:550}.guide-topic-actions{display:flex;align-items:center;gap:6px}.guide-topic-actions .button{min-height:29px;padding:5px 8px;font-size:10px;white-space:nowrap}.guide-topic-actions .is-disabled{opacity:.6}.guide-topic.done{background:var(--blue-soft);border-color:transparent}.guide-topic.done small{font-size:10px;color:var(--muted)}.room-guide .next-topic{font-size:11px;line-height:1.6;color:var(--muted)}.stage-next>div{display:grid;gap:5px}.stage-next small{font-size:11px;color:var(--muted)}[data-theme="dark"] .start-mode{color:var(--ink)}[data-theme="dark"] .room-guide{background:#1c303e}
.choice-note-preview{margin:0 0 18px;padding:13px 15px;border:1px solid var(--line);border-radius:7px;background:var(--blue-soft)}.choice-note-preview>span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:650;color:var(--blue)}.choice-note-preview>p{margin:6px 0 0;font-size:13px;line-height:1.55}.choice-note-form .field small{color:var(--muted);font-weight:400}.choice-note-form textarea{min-height:110px;resize:vertical}
@media(max-width:720px){.room-guide{padding:13px}.room-guide-head{align-items:flex-start;flex-direction:column;gap:9px}.room-progress-track{width:100%}.guide-topic{grid-template-columns:18px minmax(0,1fr)}.guide-topic-actions{grid-column:2;flex-wrap:wrap}.guide-topic-actions .button{font-size:10px}}
.room-finish-checkin{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:13px 14px;border-radius:7px;background:var(--blue-soft)}.room-finish-checkin strong{font-size:12px}.room-finish-checkin p{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}.room-finish-checkin .button{flex-shrink:0}[data-theme="dark"] .room-finish-checkin{background:#263e55}@media(max-width:720px){.room-finish-checkin{align-items:flex-start;flex-direction:column;gap:10px}}

/* Voice dictation controls in the Story Room composer. */
.composer-settings{display:flex;flex-direction:column;gap:4px;min-width:0}.composer-settings #dictation-status{min-height:0;color:var(--blue);font-size:10px}.composer-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.dictation-button{min-height:34px}.dictation-button .icon{width:15px;height:15px}.dictation-button.is-listening{color:#a43f46;background:#fff0f0;border-color:#e9c5c8}.dictation-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}[data-theme="dark"] .dictation-button.is-listening{color:#ffb9bd;background:#412d35;border-color:#75434a}

/* Guided Story Room updates */
.side-link.is-locked{color:#718491;opacity:.58}.side-link.is-locked .stage-index{font-size:16px}.stage-next{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 10px;padding:18px 0;border-top:1px solid var(--line)}.stage-next>span{color:var(--muted);font-size:12px}.story-notes{border:1px solid var(--line);border-radius:8px;background:var(--paper);margin:0 0 16px}.story-notes>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:12px 15px;font-size:13px;font-weight:600}.story-notes>summary::-webkit-details-marker{display:none}.story-notes>summary:after{content:'+';font-size:18px;color:var(--muted)}.story-notes[open]>summary:after{content:'−'}.story-notes>summary span{margin-left:auto;margin-right:12px;color:var(--muted);font-weight:400;font-size:11px}.story-notes-body{border-top:1px solid var(--line);padding:4px 15px 14px}.story-notes-body .memory-item{padding:11px 0}.story-notes-body>.button{margin-top:10px}.choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.choice-option{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:12px 14px;min-width:0}.choice-option:hover:not(:disabled){border-color:var(--blue);background:var(--blue-soft)}.choice-option:disabled{opacity:1;cursor:default}.choice-option>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--blue);font-weight:650}.choice-option>strong{font-size:13px;line-height:1.5;font-weight:500}.choice-option>small{color:var(--blue);font-size:11px}.choice-option.selected{border-color:var(--blue);background:var(--blue-soft)}
@media(max-width:700px){.choice-options{grid-template-columns:1fr}.stage-next{align-items:flex-start;flex-direction:column}}

/* Runtime-aware outline and scene-by-scene screenplay flow */
.outline-plan{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.outline-plan>label{font-size:12px;font-weight:600}
.outline-plan>input{width:76px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink)}
.outline-plan>span{font-size:12px;color:var(--muted)}
.outline-plan>p{flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.55}
.outline-plan>p strong{color:var(--ink)}
.episode-group{margin-bottom:24px;padding:14px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--paper) 65%,transparent)}
.episode-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.episode-heading h3{font-size:16px}
.episode-heading span{font-size:12px;color:var(--muted)}
.screenplay-stepper{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.screenplay-stepper>div{display:grid;gap:3px}
.screenplay-stepper strong{font-size:13px}
.screenplay-stepper small{font-size:11px;color:var(--muted)}
#scene-step-action{display:flex;gap:8px}
.scene-confirmed .scene-number{color:var(--blue)}
@media(max-width:700px){.screenplay-stepper{align-items:flex-start;flex-direction:column}.outline-plan{gap:8px}.episode-group{padding:10px}}
/* Treatment, presets, scene tips and story analysis */
.treatment-content{padding:25px}
.treatment-intro,.analysis-intro{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:22px;max-width:640px}
.treatment-intro strong{color:var(--ink);font-weight:600}
.treatment-phase{border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:12px;background:var(--paper)}
.treatment-phase.is-set{border-left:3px solid var(--green)}
.phase-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}
.phase-head h4{font-size:13px;font-weight:600}
.phase-head p{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.5}
.phase-state{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--green);white-space:nowrap}
.phase-state svg{width:13px;height:13px}
.treatment-phase textarea,.treatment-prose{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px 12px;font:13px/1.6 var(--sans);color:var(--ink);background:var(--bg);resize:vertical}
.treatment-prose{font:14px/1.8 var(--serif);background:var(--paper);min-height:280px}
.treatment-phase textarea:focus,.treatment-prose:focus{outline:2px solid var(--blue);outline-offset:1px}
.phase-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.phase-direction{font-size:11px;line-height:1.6;background:var(--blue-soft);border-radius:6px;padding:8px 10px;margin-top:10px}
.phase-options{margin-top:12px}
.phase-option small{font-size:12px;line-height:1.6;color:var(--muted);white-space:normal}
.treatment-prose-label{margin-top:28px}
.treatment-prose-label .section-number svg{width:14px;height:14px}
.stream-note{font-size:12px;color:var(--muted);margin:12px 0}
.preset-row{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.preset-chip{font-size:11px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;padding:5px 11px;cursor:pointer}
.preset-chip:hover,.preset-chip.selected{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
.tip-item{padding:14px 0;border-bottom:1px solid var(--line)}
.tip-item:last-of-type{border-bottom:0}
.tip-item p{font-size:13px;line-height:1.6;margin:6px 0 10px}
.analysis-kinds{display:inline-flex;margin-bottom:12px}
.analysis-kinds button{display:inline-flex;align-items:center;gap:6px}
.count-pill{font-size:9px;background:var(--blue);color:#fff;border-radius:999px;padding:1px 6px;font-weight:600}
.analysis-summary{margin-bottom:14px}
.analysis-summary small{font-size:11px;color:var(--faint)}
.analysis-summary p{font:15px/1.6 var(--serif);margin-top:6px}
.analysis-note{border:1px solid var(--line);border-left:3px solid var(--faint);border-radius:8px;padding:14px 16px;margin-bottom:10px;background:var(--paper)}
.analysis-note.severity-high{border-left-color:var(--red)}
.analysis-note.severity-medium{border-left-color:var(--blue)}
.analysis-note.is-closed{opacity:.62}
.note-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;color:var(--muted);margin-bottom:6px}
.note-meta span{border:1px solid var(--line);border-radius:4px;padding:2px 6px}
.note-meta .note-severity{text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.severity-high .note-severity{color:var(--red);border-color:currentColor}
.note-status{background:var(--bg)}
.analysis-note p{font-size:13px;line-height:1.6}
.note-suggestion{margin-top:6px;color:var(--ink)}
.note-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.earlier-feedback{margin:18px 0;border-top:1px solid var(--line);padding-top:14px}
.earlier-feedback summary{font-size:12px;font-weight:600;cursor:pointer;margin-bottom:10px}
@media(max-width:720px){.treatment-content{padding:19px}.treatment-phase{padding:13px}.phase-head{flex-direction:column}.analysis-kinds{display:flex;width:100%}.analysis-kinds button{flex:1;justify-content:center;padding:6px 4px}}
[data-theme="dark"] .act-number{background:#2d4558;color:#b4c7d7}

/* Keep the project controls reachable on narrow screens. */
@media(max-width:560px){.projects-section>.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.library-tools{flex-wrap:wrap;max-width:100%}}

/* Studio polish: a single type floor, flat bands inside panels, one gutter, real touch targets. Scoped to the studio; the website keeps its own sizes. */
:root{--fs-meta:11px;--fs-small:12px;--fs-ui:13px;--fs-body:14px;--fs-read:15px;--gutter:25px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
[data-theme="dark"]{--red:#f2939b}[data-theme="dark"] ::selection{background:#4a6bb8;color:#fff}[data-theme="dark"] .screenplay-editor:focus{box-shadow:inset 0 0 0 2px #3a5278}

/* Type floor: 11px for chips only, 12px for secondary text, larger for anything read or typed. */
.count,.side-count,.stage-index,.count-pill,.cover-label,.sample-pill,.status-chip,.note-meta,.account small,.message-avatar{font-size:var(--fs-meta)}
.shell .eyebrow,.workspace-title .eyebrow,.side-project .tiny-muted,.side-back,.side-tip,.side-tip small,.device-note,.save-state,.sort-label,.account strong,.cover-excerpt,.cover-footer,.card-date,.card-info>p,.format-shortcut small,.format-section .muted,.workspace-footer,.panel-footnote,.editor-footer,.editor-toolbar>span,.editor-hint,.context-label,.context-facts,.progress-heading,.story-checklist li,.context-caption,.context-character small,.act-heading>span:last-child,.scene-number,.scene-info small,.character-top>div>span,.character-card dl,.section-number,.phase-state,.analysis-summary small,.review-note,.memory-item small,.memory-sheet summary span,.story-notes>summary span,.room-guide-head span,.room-guide summary,.room-guide details>p,.room-guide .next-topic,.guide-topic.done small,.message strong,.field>span,.stage-next small,.scene-index a,.export-option small,.revision-item small,.divider,.format-option,.account-details small,.text-link,.composer-settings>span:first-child,.composer-settings #dictation-status,.choice-option>span,.choice-option>small,.episode-heading span,.outline-plan>span,.outline-plan>p,.dialog-notice{font-size:var(--fs-small)}
.subheading,.panel-heading p,.sample-banner,.context-heading h3,.context-section>p,.context-character strong,.scene-info>button,.scene-info>p,.character-card>p,.treatment-intro,.analysis-intro,.phase-head p,.phase-direction,.guide-topic strong,.room-finish-checkin p,.room-finish-checkin strong,.starter,.filter,.segmented button,.search-field input,.new-project-card>span:not(.new-circle),.format-shortcut strong,.welcome-banner p,.dialog-intro,.export-option strong,.revision-item strong,.proposal-field strong,.proposal-field p,.proposal-text,.choice-option>strong,.outline-plan>label,.stage-next>div>span{font-size:var(--fs-ui)}
.section-label h3,.act-heading h3,.character-top h4,.new-project-card>strong,.room-intro p,.memory-item strong,.field input,.field textarea,.field select,.treatment-phase textarea{font-size:var(--fs-body)}
.field input,.field textarea,.field select{line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:var(--faint)}
.message-text,.composer textarea,.treatment-prose{font-size:var(--fs-read)}
.message-text{line-height:1.7}.composer textarea{line-height:1.6}
.context-section .text-button{font-size:var(--fs-small)!important}.new-project-card .new-link{font-size:var(--fs-ui)!important}.format-section .section-heading h2{font-size:17px}

/* Buttons: icons sized to their label, no per-context shrinking. */
.panel-heading .button,.sample-banner .button,.character-heading .button,.workspace-footer .button,.editor-footer .button,.section-label .button{font-size:var(--fs-small)}
.top-actions .button{font-size:var(--fs-ui)}
.shell .button .icon,.sidebar .button .icon,dialog .button .icon{width:16px;height:16px}.shell .button.small .icon,dialog .button.small .icon{width:14px;height:14px}
.shell .button.text-button{gap:6px}
@media(min-width:721px){.workspace-title-actions>.button{font-size:var(--fs-small)}.page-heading>.button{display:none}}
@media(min-width:1181px){.editor-toolbar>.button{font-size:var(--fs-small)}}
.shell .button:active,.shell .icon-button:active,.shell .send-button:active,.sidebar .button:active,dialog .button:active{transform:scale(.97)}
@media(hover:none){.button.quiet:hover{background:transparent;color:var(--muted)}.icon-button:hover{background:none;color:var(--muted)}.side-link:hover,.side-back:hover,.account:hover{background:none;color:#adbdc8}.side-link.active:hover{background:#294553;color:#fff}.account:hover{color:#fff}}

/* Sidebar: long titles and short screens no longer push navigation out of reach. */
.sidebar>.brand{margin-bottom:26px}.side-new{margin-bottom:18px}.account{gap:8px;padding-inline:4px}
.side-main{scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
.side-back{padding:6px 12px}
.side-project{padding:14px 12px 16px;margin-bottom:12px}
.side-project h2{font-size:17px;line-height:1.35;margin-top:4px;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.side-link{padding:9px 13px;margin:2px 0}.stage-index{opacity:.72;font-variant-numeric:tabular-nums}
.side-link.is-locked{color:#94a7b4;opacity:1;cursor:not-allowed}.side-link.is-locked .icon{opacity:.6}.side-link.is-locked:hover{background:none;color:#94a7b4}
.side-link.is-locked .stage-index{flex:0 0 12px!important;width:12px;height:12px;font-size:0;opacity:.85;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
.side-tip{margin-top:20px}.tip-line{margin-bottom:12px}.side-note{padding-top:24px}
@media(max-height:820px){.sidebar{padding-top:20px}.sidebar>.brand{margin-bottom:16px}.side-tip,.side-note{display:none}}

/* Library. */
.cover{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.cover-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:none;flex-shrink:0}.project-cover .cover-title{-webkit-line-clamp:2}
.cover-excerpt{line-height:1.5}.card-bottom{gap:8px}.card-bottom .card-date+.icon-button{margin-left:0}
.section-heading{flex-wrap:wrap}.filter-row{flex-wrap:wrap}

/* Workspace rhythm: flat bands share one gutter instead of cards butting against the panel edge. */
.work-panel{overflow:clip}
.workspace-main{padding-top:22px}.workspace-title{margin-bottom:18px}.title-line h1{line-height:1.25}
.panel-heading{padding:18px var(--gutter)}.panel-heading>.button{margin-left:0}.panel-heading>div:first-child{flex:1 1 220px;min-width:0}@media(max-width:1180px){.panel-heading:has(>.button+.button){justify-content:flex-start}.panel-heading:has(>.button+.button)>div:first-child{flex-basis:100%}}
.bible-content,.outline-content,.review-content,.treatment-content{padding:22px var(--gutter)}
.outline-plan,.screenplay-stepper,.room-guide{margin:0;padding:13px var(--gutter);border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
[data-theme="dark"] .room-guide{background:none}
.room-guide details{margin-top:9px;padding-top:9px}.room-guide summary{padding:1px 0}.guide-topic-actions .button{font-size:var(--fs-small)}
.memory-sheet{padding:22px var(--gutter);border-bottom-color:var(--line)}
.memory-sheet:has(>.story-notes){padding:0;border-bottom:0}
.memory-sheet details.story-notes{margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.story-notes>summary{padding:10px var(--gutter)}.story-notes-body{padding:4px var(--gutter) 14px}
.memory-sheet details,.memory-item,.breakdown-table th,.breakdown-table td{border-color:var(--line)}
.memory-item small,.memory-sheet summary span,.memory-sheet .section-heading p,.memory-sheet>.muted,.editor-hint{color:var(--muted)}
.memory-sheet>.section-heading:not(:first-child){margin-top:26px}.memory-sheet>.button{margin:10px 6px 0 0}.memory-sheet>p.muted{margin-top:10px}
.memory-item blockquote,.analysis-note blockquote{margin:9px 0;padding:8px 12px;border:0;border-radius:5px;background:var(--bg);font:13px/1.55 var(--script)}
.stage-next{margin:0;padding:15px var(--gutter);background:var(--paper)}

/* Story room: the composer stays reachable whatever sits above it. */
.chat-thread{padding:22px var(--gutter);min-height:220px;max-height:max(220px,calc(100vh - 520px))}
.room-intro{max-width:600px;margin:4px auto 8px}.room-intro p{line-height:1.7;max-width:340px;margin-bottom:16px}.starter{padding:7px 11px}.starter .icon{width:14px;height:14px}
.message{margin-bottom:22px}.message strong{margin:2px 0 5px}.message .button.quiet{margin-left:-10px}
.composer{margin:0 var(--gutter);position:sticky;bottom:12px;z-index:2;background:var(--paper)}
.composer textarea{min-height:48px}.send-button{width:34px;height:34px}.composer-settings>span:first-child{color:var(--faint)}
.panel-footnote{padding:10px var(--gutter) 14px}
@media(max-height:500px){.composer{position:static}}

/* Screenplay: writing starts higher and reads at the same 12pt size as the page. */
.screenplay-stepper{padding-block:11px}
.editor-toolbar,.editor-footer{padding-inline:var(--gutter)}.editor-toolbar{padding-block:7px;flex-wrap:wrap;gap:8px 12px}.scene-jump select{min-height:31px;max-width:170px;padding:4px 6px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:inherit;font-size:var(--fs-small)}
.writing-tools{align-items:center;gap:6px;padding:8px var(--gutter);border-color:var(--line)}
.writing-tools label{display:block}.writing-tools select{min-height:31px;max-width:150px;padding:4px 6px;font-size:var(--fs-small);background:var(--paper);border-color:var(--line)}
.writing-tools>[data-action="format-element"],.writing-tools>[data-action="insert-cue"],.writing-tools>[data-action="comment-add"]{margin-right:8px}
.editor-hint{padding:7px var(--gutter);border-bottom:1px solid var(--line)}
.screenplay-editor{padding:28px max(var(--gutter),calc((100% - 72ch)/2));font-size:16px;line-height:1.7}

/* Outline: one aligned row of controls. */
.scene-row{gap:14px;padding:14px 0}.scene-number{flex:0 0 20px;padding-top:2px;font-variant-numeric:tabular-nums}
.scene-info>button{line-height:1.5}.scene-info>button:hover{background:none;color:var(--blue)}.scene-info>p{line-height:1.6;margin-top:3px}.scene-info small{display:block;margin-top:4px;color:var(--muted)}
.scene-controls{display:flex;align-items:center;gap:2px;flex-shrink:0}.scene-controls .icon-button{width:28px;height:28px}.scene-controls svg{width:15px;height:15px}.scene-controls [data-action="scene-down"]{margin-right:8px}

/* Severity and state are carried by their labels, not by coloured side stripes on rounded cards. */
.treatment-phase.is-set,.analysis-note,.analysis-note.severity-high,.analysis-note.severity-medium{border-left:1px solid var(--line)}
.treatment-phase textarea{line-height:1.6}
.note-meta .note-severity{border-color:transparent;background:var(--bg);color:var(--muted)}
.severity-medium .note-severity{color:var(--ink)}
.severity-high .note-severity{border-color:transparent;background:color-mix(in srgb,var(--red) 12%,transparent);color:var(--red)}
.note-meta span:nth-child(2){text-transform:capitalize}
.constraint-warning{margin:10px 0;border-left:0;border-radius:6px}
.review-note{padding:14px 0 0;background:none;text-align:left}

/* Production. */
.bible-content>p{font-size:var(--fs-ui);margin-bottom:10px}.bible-content>.section-heading{margin:22px 0 10px}.bible-content>.section-heading h3{font-size:var(--fs-body)}
.breakdown-table{margin-top:14px}.breakdown-table table{font-size:var(--fs-ui)}.breakdown-table th{font-size:var(--fs-small);font-weight:600;color:var(--muted)}

/* Dialogs: the primary action stays visible on long forms. */
dialog{scroll-padding-bottom:88px}.dialog-actions{position:sticky;bottom:0;z-index:1;background:var(--paper)}
.start-modes{margin:18px 0}.start-modes legend{padding:0;font-size:var(--fs-small);font-weight:550;color:var(--muted)}
.format-option{padding:10px}

@media(max-width:980px){.context-section:last-of-type{margin-bottom:0;padding-bottom:0;border-bottom:0}}
@media(max-width:720px){
:root{--gutter:18px}
.shell input:not([type=hidden]),.shell textarea,.shell select,dialog input:not([type=hidden]),dialog .field textarea,dialog .field select,dialog textarea,dialog select,dialog .proposal-text{font-size:16px}
.topbar{padding:0 var(--gutter)}.top-actions .button{padding:8px 10px;font-size:var(--fs-ui)}.save-state{font-size:var(--fs-meta)}
.library-main{padding-inline:var(--gutter)}.workspace-main{padding:18px var(--gutter) 24px}
.page-heading{align-items:center}.page-heading>.button{flex-shrink:0;width:auto;height:auto;margin-top:0;padding:9px 13px;gap:7px;font-size:var(--fs-ui)}.page-heading>.button svg{width:16px}
.welcome-banner p{font-size:var(--fs-ui)}.welcome-banner .text-button{font-size:var(--fs-ui)}
.section-heading h2{font-size:17px}.library-tools{width:100%;flex-wrap:wrap;gap:6px}.search-field{flex:1 1 100%}.search-field input{width:100%}.library-tools .button{padding:8px 10px;font-size:var(--fs-ui)}.library-tools .button svg{width:15px}
.filter{padding:6px 10px;font-size:var(--fs-ui)}.sort-label{font-size:var(--fs-small)}
.card-info>p,.cover-footer{font-size:var(--fs-small)}.cover-label,.status-chip{font-size:var(--fs-meta)}.new-project-card>strong{font-size:var(--fs-body)}.new-project-card>span:not(.new-circle){font-size:var(--fs-ui)}.card-title{font-size:var(--fs-body)}
.workspace-title .eyebrow{font-size:var(--fs-small)}.sample-banner{padding:10px var(--gutter);font-size:var(--fs-small)}.sample-banner .button{padding:6px 10px;font-size:var(--fs-small)}
.panel-heading{padding:16px var(--gutter)}.panel-heading p{font-size:var(--fs-ui)}.panel-heading .button{padding:8px 12px;font-size:var(--fs-ui)}.panel-heading .button svg{width:14px}
.section-label h3{font-size:var(--fs-body)}.section-label .button{padding:6px 10px;font-size:var(--fs-small)}
.chat-thread{padding:18px var(--gutter);min-height:200px;max-height:46vh}.composer{bottom:8px}.chat-thread:has(.room-intro)+.composer{position:static}.composer-settings>span:first-child{display:none}
.scene-row{flex-wrap:wrap;gap:10px 12px}.scene-info{flex:1 1 calc(100% - 40px)}.scene-controls{flex:1 0 100%;padding-left:32px}
.writing-tools label{flex:1 1 140px}.writing-tools select{width:100%;max-width:none}.scene-jump{flex:1 1 130px}.scene-jump select{width:100%;max-width:none}.card-date{display:inline}
.screenplay-editor{padding:20px var(--gutter);font-size:16px;min-height:460px}
.editor-footer{flex-wrap:wrap}.editor-footer>span{max-width:none;font-size:var(--fs-small)}.editor-footer .button{font-size:var(--fs-small)}
.script-paper{font-size:12px}
.dialog-heading,.dialog-body{padding-inline:var(--gutter)}.dialog-actions{padding-inline:var(--gutter)}
}
@media(max-width:700px){.stage-next .button{width:100%}.screenplay-stepper #scene-step-action,.screenplay-stepper .button{width:100%}}
@media(max-width:480px){.project-grid{grid-template-columns:1fr}.new-project-card{min-height:180px}.sort-label{display:none}.cover{height:178px}}

/* Touch: 44px targets wherever the pointer is a finger. */
@media(pointer:coarse){
.icon-button,.scene-controls .icon-button,.card-bottom .icon-button,.send-button{width:44px;height:44px}
.button,.button.small,.guide-topic-actions .button,.button.text-button,.button.text-button.small,.starter,.filter,.segmented button,.crumb-button,.side-back{min-height:44px}.button{min-width:44px}.scene-info>button{display:block;width:100%;padding:7px 0}.scene-number{padding-top:8px}
.segmented button{min-width:44px}.crumb-button{padding-inline:4px}
.side-link{min-height:44px}.account{min-height:52px}
.search-field,.writing-tools select,.scene-jump select,.outline-plan>input{min-height:44px}
.story-notes>summary{min-height:44px}.room-guide summary{padding:12px 0}
.scene-index a{min-height:36px}
.card-title{min-height:32px}
}
