/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:host,:root{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.block{display:block}.hidden{display:none}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}}:root{--bg:#f3f5f8;--surface:#fff;--surface-soft:#f8f9fb;--text:#1b2430;--muted:#6b7585;--muted-2:#929ba8;--line:#dfe4ea;--line-soft:#ebeff3;--primary:#2f6fed;--primary-dark:#245ccc;--sidebar:#17202c;--sidebar-muted:#95a2b4;--danger:#d9485f;--amber:#d58b23;--success:#258a61;--purple:#7657d8;--radius:7px}*{box-sizing:border-box}body,html{min-height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Yu Gothic UI,sans-serif;font-size:13px;line-height:1.45}button,input,select,textarea{font:inherit}a,button{-webkit-tap-highlight-color:transparent}a,button{color:inherit}a{text-decoration:none}.app-frame{min-height:100vh;display:flex}.sidebar-wrap{flex:0 0 224px;width:224px}.sidebar{z-index:30;background:var(--sidebar);color:#eef3fa;flex-direction:column;width:224px;padding:14px 10px;display:flex;position:fixed;inset:0 auto 0 0;overflow-y:auto}.brand{align-items:center;gap:9px;min-height:38px;padding:0 6px;display:flex}.brand-mark{background:var(--purple);color:#fff;letter-spacing:.04em;border-radius:7px;place-items:center;width:28px;height:28px;font-size:10px;font-weight:800;display:grid}.brand strong{font-size:12.5px;line-height:1.2;display:block}.brand span{color:var(--sidebar-muted);margin-top:2px;font-size:9.5px;display:block}.ip-nav,.main-nav{flex-direction:column;gap:2px;display:flex}.main-nav{margin-top:14px}.nav-item{color:#b4bfce;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;width:100%;min-height:32px;padding:0 8px;font-size:11.5px;transition:all .15s;display:flex}.nav-item:hover{color:#fff;background:#ffffff0e}.nav-item.active{color:#fff;background:#7657d840}.ip-item{padding-left:9px}.project-dot{background:#8d75e6;border-radius:2px;flex:none;width:8px;height:8px}.truncate{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.nav-count{color:#8290a4;font-variant-numeric:tabular-nums;margin-left:auto;font-size:9.5px}.nav-chevron{opacity:.45}.nav-section-heading{color:#748196;letter-spacing:.11em;text-transform:uppercase;justify-content:space-between;align-items:center;margin:15px 4px 6px 9px;font-size:9px;font-weight:700;display:flex}.nav-section-heading .icon-button{color:#8e9bad}.sidebar-empty{color:#718096;align-items:center;gap:7px;padding:8px 9px;font-size:10.5px;display:flex}.main-column{flex:1;min-width:0}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;align-items:center;height:45px;padding:0 20px;display:flex;position:sticky;top:0}.topbar-label{color:var(--muted-2);letter-spacing:.13em;font-size:9px;font-weight:700}.topbar-status{color:var(--muted);align-items:center;gap:5px;margin-left:auto;font-size:10px;display:flex}.topbar-status i{background:#35a276;border-radius:50%;width:6px;height:6px;box-shadow:0 0 0 3px #35a2761f}.content{width:100%;max-width:1720px;margin:0 auto;padding:18px 20px 28px}.page-stack{flex-direction:column;gap:14px;display:flex}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;min-height:49px;display:flex}.eyebrow{letter-spacing:.13em;font-weight:800;color:var(--purple)!important;margin:0 0 2px!important;font-size:8.5px!important}.page-heading h1{letter-spacing:-.025em;margin:0;font-size:20px;line-height:1.25}.page-heading p{color:var(--muted);margin:3px 0 0;font-size:10.5px}.heading-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 1px 2px #17202c05}.panel-heading{border-bottom:1px solid var(--line-soft);align-items:center;min-height:38px;padding:0 12px;display:flex}.panel-heading h2{align-items:center;gap:7px;margin:0;font-size:11.5px;font-weight:700;display:flex}.panel-heading h2 b{color:#6f7988;text-align:center;background:#eef1f5;border-radius:10px;min-width:18px;padding:1px 5px;font-size:8.5px}.unsaved-indicator{color:#a56505;background:#fff2d9;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800}.panel-heading-action{margin-left:auto}.panel-heading-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.button{cursor:pointer;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;gap:6px;min-height:31px;padding:0 11px;font-size:11px;font-weight:650;transition:all .15s;display:inline-flex}.button-primary{background:var(--primary);color:#fff;box-shadow:0 1px 2px #204fa633}.button-primary:hover{background:var(--primary-dark)}.button-secondary{border-color:var(--line);color:#485466;background:#fff}.button-secondary:hover{background:#f8f9fb;border-color:#c7ced8}.button-small{min-height:27px;padding:0 9px;font-size:10px}.button:disabled{cursor:not-allowed;opacity:.5}.icon-button{cursor:pointer;background:0 0;border:0;border-radius:5px;place-items:center;width:27px;height:27px;padding:0;display:inline-grid}.icon-button:hover{background:#7f8da01f}.danger-hover:hover{color:#c33e50;background:#fff0f2}.empty-project,.error-panel,.loading-panel{color:var(--muted);text-align:center;padding:28px}.error-panel{color:#b53d4c;background:#fff8f8;border-color:#efc9ce}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.field{flex-direction:column;gap:4px;margin-bottom:11px;display:flex}.field>span{color:#5f6a7a;font-size:9.5px;font-weight:650}.field>span b{color:var(--danger)}.character-row select,.field input,.field select,.field textarea{color:#273241;background:#fff;border:1px solid #d5dbe4;border-radius:5px;outline:none;width:100%;min-height:32px;padding:6px 9px;font-size:11px;transition:all .14s}.field textarea{resize:vertical;min-height:92px;line-height:1.65}.character-row select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#73a0f4;box-shadow:0 0 0 3px #2f6fed1a}.field input:disabled,.field select:disabled{color:#7a8492;background:#f3f5f7}.issue-badge,.status-badge{border-radius:12px;align-items:center;gap:4px;min-height:25px;padding:0 8px;font-size:9px;font-weight:700;display:inline-flex}.status-draft{color:#687486;background:#eef1f5}.status-submitted{color:#376ac6;background:#edf3ff}.status-needs_revision{color:#a96c16;background:#fff4e0}.issue-badge,.status-approved{color:#247857;background:#e9f7f1}.issue-badge.has-issues{color:#a96c16;background:#fff4e0}.story-workspace{grid-template-columns:142px 158px 180px minmax(0,1fr);align-items:stretch;gap:10px;min-height:calc(100vh - 145px);display:grid}.chapter-rail,.episode-rail,.panel-rail{min-height:620px;overflow:hidden}.rail-heading{border-bottom:1px solid var(--line-soft);min-height:38px;color:var(--muted-2);letter-spacing:.12em;justify-content:space-between;align-items:center;padding:0 8px 0 11px;font-size:8.5px;font-weight:800;display:flex}.chapter-item,.episode-item{border:0;border-bottom:1px solid var(--line-soft);cursor:pointer;text-align:left;background:#fff;width:100%;padding:10px 10px 9px;transition:all .14s}.chapter-item:hover,.episode-item:hover{background:#fafbfd}.chapter-item.active,.episode-item.active{box-shadow:inset 3px 0 var(--purple);background:#f0edfb}.chapter-item>span,.episode-item>span{align-items:baseline;gap:5px;min-width:0;display:flex}.chapter-item b,.episode-item b{color:var(--purple);flex:none;font-size:8.5px}.chapter-item strong,.episode-item strong{color:#303a49;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:10.5px;overflow:hidden}.chapter-item small,.episode-item small{color:var(--muted-2);margin-top:4px;font-size:8.3px;display:block}.episode-item>i{background:#e3e7ec;border-radius:2px;height:3px;margin-top:7px;display:block;overflow:hidden}.episode-item>i em{background:var(--success);height:100%;display:block}.panel-item{border:0;border-bottom:1px solid var(--line-soft);cursor:pointer;text-align:left;background:#fff;align-items:center;gap:7px;width:100%;min-height:51px;padding:6px 8px;display:flex}.panel-item:hover{background:#fafbfd}.panel-item.active{box-shadow:inset 3px 0 var(--primary);background:#eef4ff}.panel-number{color:#687486;background:#eef1f5;border-radius:5px;flex:none;place-items:center;width:28px;height:27px;font-size:8.5px;font-weight:800;display:grid}.panel-copy{flex:1;min-width:0}.panel-copy small,.panel-copy strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.panel-copy strong{color:#303b4b;font-size:10px}.panel-copy small{color:var(--muted-2);margin-top:2px;font-size:8.3px}.panel-item>i{border-radius:50%;flex:none;width:6px;height:6px}.panel-item>i.complete{background:var(--success)}.panel-item>i.incomplete{background:var(--amber)}.panel-rail-actions{border-top:1px solid var(--line-soft);align-items:center;min-height:38px;padding:4px 7px;display:flex}.panel-rail-actions span{flex:1}.rail-empty{color:var(--muted-2);text-align:center;padding:28px 10px;font-size:9.5px}.story-editor{flex-direction:column;gap:10px;min-width:0;display:flex}.chapter-settings,.episode-settings{overflow:hidden}.chapter-fields,.episode-fields{padding:10px 12px 0}.episode-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.panel-editor-grid{grid-template-columns:minmax(370px,1.06fr) minmax(330px,.94fr);align-items:start;gap:10px;display:grid}.editor-form-panel{overflow:hidden}.editor-form{padding:12px}.dialogue-field{position:relative}.dialogue-field textarea{padding-bottom:24px}.char-count{color:var(--success);font-size:8.5px;position:absolute;bottom:7px;right:8px}.char-count.error{color:var(--danger)}.character-block{border:1px solid var(--line);border-radius:6px;margin:2px 0 11px;overflow:hidden}.character-heading{border-bottom:1px solid var(--line-soft);align-items:center;gap:7px;min-height:38px;padding:5px 7px 5px 10px;display:flex}.character-heading>span{color:#4f5a69;align-items:center;gap:5px;font-size:10px;font-weight:700;display:flex}.character-heading>small{color:var(--muted-2);font-size:8.5px}.character-heading .button{margin-left:auto}.character-columns,.character-row{grid-template-columns:minmax(145px,1fr) 58px 68px 28px;align-items:center;gap:6px;display:grid}.character-columns{min-height:25px;color:var(--muted-2);background:#f8f9fb;padding:0 8px;font-size:7.8px;font-weight:700}.character-row{border-top:1px solid var(--line-soft);min-height:43px;padding:5px 8px}.character-row:first-of-type{border-top:0}.character-row select{min-height:30px;padding:4px 6px;font-size:9.5px}.character-empty{width:100%;min-height:55px;color:var(--muted-2);cursor:pointer;background:#fbfcfe;border:0;justify-content:center;align-items:center;gap:6px;font-size:9.5px;display:flex}.motion-fields{grid-template-columns:1fr 1fr 1fr}.validation-list{flex-direction:column;gap:4px;display:flex}.validation-list span{border-radius:5px;align-items:center;gap:5px;padding:6px 7px;font-size:9px;display:flex}.validation-error{color:#ba4052;background:#fff0f2}.validation-warning{color:#9e681a;background:#fff6e7}.editor-empty{min-height:260px;color:var(--muted-2);justify-content:center;align-items:center;gap:7px;font-size:10px;display:flex}.preview-panel{overflow:hidden}.preview-toolbar{border-bottom:1px solid var(--line-soft);min-height:38px;color:var(--muted-2);letter-spacing:.08em;justify-content:space-between;align-items:center;padding:0 11px;font-size:8px;font-weight:800;display:flex}.game-preview{aspect-ratio:16/9;background-color:#25283e;background-position:50%;background-size:cover;border-radius:7px;margin:10px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff24}.game-preview:after{content:"";z-index:20;pointer-events:none;background:linear-gradient(#0000 45%,#080a146b);position:absolute;inset:0}.preview-background-empty{color:#ffffff73;background:radial-gradient(circle at 50% 35%,#4d526e,#25283e 66%);place-items:center;font-size:9px;display:grid;position:absolute;inset:0}.preview-safe-area{z-index:2;pointer-events:none;border:1px dashed #ffffff1f;position:absolute;inset:10% 12.5%}.preview-ratio{align-items:center;gap:6px;display:flex}.preview-ratio select{border:1px solid var(--line);color:inherit;font:inherit;background:#fff;border-radius:4px;padding:3px 5px}.preview-character-anchor{width:max-content;position:absolute;transform:translate(-50%,-50%)}.preview-character-motion{transform-origin:50%;height:100%}.preview-character{filter:drop-shadow(0 6px 8px #00000047);width:auto;max-width:none;height:100%;display:block}.slot-L2{left:12.5%}.slot-L1{left:37.5%}.slot-R1{left:62.5%}.slot-R2{left:87.5%}.motion-forward{animation:motion-forward .55s}.motion-back{animation:motion-back .55s}.motion-bounce{animation:motion-bounce .55s}.motion-shake{animation:motion-shake .42s}.dialogue-window{z-index:30;color:#fff;background:#0f1220e0;border:1px solid #ffffff47;border-radius:6px;min-height:26%;padding:9px 12px;position:absolute;bottom:5%;left:4%;right:4%;box-shadow:0 8px 22px #0000004d}.dialogue-window strong{color:#d7d0ff;font-size:8.5px}.dialogue-window p{white-space:pre-wrap;margin:4px 0 0;font-size:10px;line-height:1.65}.preview-audio{grid-template-columns:1fr 1fr;gap:7px;padding:0 10px 10px;display:grid}.preview-audio span{border:1px solid var(--line-soft);min-width:0;min-height:34px;color:var(--muted-2);border-radius:5px;align-items:center;gap:5px;padding:6px 8px;font-size:8px;display:flex}.preview-audio b{color:#455163;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:8.8px;overflow:hidden}.asset-layout{grid-template-columns:330px minmax(0,1fr);align-items:start;gap:10px;display:grid}.asset-list-panel,.upload-panel{overflow:hidden}.upload-form{padding:12px}.file-dropzone{color:#657286;cursor:pointer;background:#f9fbfe;border:1px dashed #bdc8d8;border-radius:6px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:72px;padding:10px 12px;transition:all .14s;display:flex}.file-dropzone.active,.file-dropzone:hover{color:var(--primary);background:#f0f5ff;border-color:#6998ed}.file-dropzone>span{text-align:left;flex-direction:column;min-width:0;display:flex}.file-dropzone strong{text-overflow:ellipsis;white-space:nowrap;max-width:230px;font-size:10px;font-weight:650;overflow:hidden}.file-dropzone small{color:var(--muted-2);font-size:8.5px}.upload-submit{width:100%;margin-top:10px}.asset-groups{padding:2px 12px 12px}.asset-group{margin-top:12px}.asset-group>header{align-items:center;gap:6px;min-height:27px;display:flex}.asset-group>header strong{color:#465264;font-size:10px}.asset-group>header span{color:var(--muted-2);background:#eef1f5;border-radius:8px;padding:1px 5px;font-size:8px}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.asset-card{border:1px solid var(--line);background:#fff;border-radius:6px;grid-template-columns:68px minmax(0,1fr) 28px;align-items:center;gap:8px;min-width:0;min-height:82px;padding:7px;display:grid}.asset-preview{background-color:#eef1f5;background-image:linear-gradient(45deg,#e2e6eb 25%,#0000 0),linear-gradient(-45deg,#e2e6eb 25%,#0000 0),linear-gradient(45deg,#0000 75%,#e2e6eb 0),linear-gradient(-45deg,#0000 75%,#e2e6eb 0);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border-radius:5px;place-items:center;width:68px;height:68px;display:grid;overflow:hidden}.asset-preview img{object-fit:contain;width:100%;min-width:0;height:100%;min-height:0;display:block}.audio-preview{color:#4e77bf;background:#edf3ff;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;height:100%;display:flex}.asset-audio{grid-column:1/-1;width:100%;height:32px}.asset-meta{min-width:0}.asset-meta small,.asset-meta span,.asset-meta strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.asset-meta strong{color:#303b4a;font-size:10px}.asset-meta span{color:#617087;margin-top:3px;font-size:8.5px}.asset-meta small{color:var(--muted-2);margin-top:2px;font-size:7.8px}.asset-actions{flex-direction:column}.asset-actions,.asset-empty{align-items:center;display:flex}.asset-empty{border:1px dashed var(--line);min-height:82px;color:var(--muted-2);border-radius:6px;justify-content:center;gap:6px;font-size:9px}@keyframes motion-forward{0%,to{transform:translate(0)scale(1)}50%{transform:translate(5%)scale(1.04)}}@keyframes motion-back{0%,to{transform:translate(0)scale(1)}50%{transform:translate(-5%)scale(.96)}}@keyframes motion-bounce{0%,to{transform:translateY(0)}45%{transform:translateY(-7%)}}@keyframes motion-shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-3%)}40%,80%{transform:translate(3%)}}.mobile-only{display:none}.authoring-layout{grid-template-columns:245px minmax(0,1fr);align-items:start;gap:22px;display:grid}.authoring-page .page-heading p{font-size:12px}.authoring-page .button{white-space:normal;min-height:34px;font-size:12px}.authoring-page input,.authoring-page select,.authoring-page textarea{font-size:13px}.authoring-page .field>span{font-size:12px}.outline-fieldset,.script-fieldset{border:0;min-width:0;margin:0;padding:0}.story-outline{max-height:calc(100vh - 130px);padding:14px;position:sticky;top:18px;overflow:auto}.outline-heading{justify-content:space-between;align-items:center;gap:6px;margin-bottom:18px;font-size:13px;display:flex}.outline-part{margin:12px 0}.outline-part summary{cursor:pointer;overflow-wrap:anywhere;font-size:13px;font-weight:650;line-height:1.8}.outline-part summary span{font-weight:500}.outline-chapter{border-left:1px solid var(--line);margin:14px 0 10px 10px;padding-left:10px}.outline-actions{gap:12px;margin:7px 0;display:flex}.outline-actions button{color:#627088;cursor:pointer;background:0 0;border:0;align-items:center;gap:3px;padding:3px 0;font-size:11px;display:inline-flex}.outline-episode{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;width:100%;margin:6px 0;padding:10px;display:block}.outline-episode strong{font-size:12px;line-height:1.6;display:block}.outline-episode small{color:#6d798c;margin-top:4px;font-size:11px;display:block}.outline-episode.active{color:#2356a9;background:#edf4ff;border-color:#aecbfc}.outline-episode:hover{background:#f2f6fc}.authoring-main{min-width:0}.authoring-location{color:#56657a;flex-wrap:wrap;gap:6px;margin:0 0 14px;font-size:12px;line-height:1.8;display:flex}.authoring-tabs{border-bottom:1px solid var(--line);gap:6px;margin-bottom:18px;display:flex}.authoring-tabs button{cursor:pointer;color:#607087;background:0 0;border:0;border-bottom:3px solid #0000;padding:11px 18px;font-size:13px;font-weight:600}.authoring-tabs button.active{color:#2356a9;border-bottom-color:#3672d3}.structure-settings{max-width:760px}.structure-settings>.field,.structure-settings>.field-help{margin:16px}.authoring-page .structure-settings .panel-heading{padding:16px}.authoring-page .structure-settings h2{font-size:16px}.authoring-page .chapter-fields,.authoring-page .episode-fields{padding:16px}.script-toolbar{z-index:12;background:var(--bg);flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0 16px;display:flex;position:sticky;top:0}.script-toolbar h2{margin:0 0 5px;font-size:20px}.script-toolbar p{color:#6d798c;margin:0;font-size:12px}.script-toolbar>span{color:#67758b;margin-left:auto;font-size:12px}.script-batch{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px;padding:12px 0;font-size:12px;display:flex}.script-batch label,.script-row-heading>label:first-child{align-items:center;gap:8px;display:flex}.script-batch input[type=checkbox],.script-row input[type=checkbox]{accent-color:#3672d3;flex:0 0 16px;width:16px;height:16px}.script-batch select{min-width:160px;max-width:230px}.script-batch small{color:#65758a;flex-basis:100%;font-size:11px}.script-body{grid-template-columns:minmax(0,1fr);align-items:start;gap:18px;display:grid}.script-body.with-scene{grid-template-columns:minmax(310px,1fr) minmax(340px,.85fr)}.script-rows{min-width:0}.script-row{background:#fff;border:1px solid #dce3ed;border-radius:9px;margin-bottom:12px;padding:16px}.script-row.active{border-color:#72a2ed;box-shadow:0 0 0 2px #eaf2ff}.script-row-heading{align-items:center;gap:12px;margin-bottom:12px;display:flex}.script-row-heading b{color:#74829a;font-size:13px}.script-speaker{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.script-speaker span{color:#67768b;white-space:nowrap;font-size:11px}.script-speaker input{background:#fdfefe;border:1px solid #dbe2ed;border-radius:5px;width:100%;min-width:0;padding:6px 8px}.script-row>textarea{resize:vertical;background:#fdfefe;border:1px solid #dbe2ed;border-radius:6px;width:100%;min-height:84px;padding:12px;font-size:14px;line-height:1.9}.script-summary{color:#66778c;overflow-wrap:anywhere;flex-wrap:wrap;gap:5px 14px;margin:9px 0;font-size:11px;line-height:1.7;display:flex}.script-summary>span:last-child{margin-left:auto}.script-row-actions{flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;display:flex}.script-row-actions small{color:#617795;margin-right:auto;font-size:11px}.script-row-actions .icon-button{min-width:32px;min-height:32px}.background-change{color:#35619a;background:#eef4fc;border-radius:4px;margin:-4px 0 13px;padding:6px 9px;font-size:11px}.scene-inspector{background:#f8faff;border:1px solid #d9e3f1;border-radius:9px;max-height:calc(100vh - 110px);padding:16px;scroll-margin-top:100px;position:sticky;top:90px;overflow-y:auto}.scene-inspector-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.scene-inspector-heading h3{margin:0;font-size:15px}.scene-inspector .preview-panel{margin-bottom:18px}.scene-fields>.field{margin-bottom:8px}.scene-character{background:#fff;border:1px solid #dee6f1;border-radius:6px;margin:12px 0;padding:12px}.scene-cast-heading{justify-content:space-between;align-items:center;margin:10px 0;font-size:12px;display:flex}.scene-cast-heading span{color:#6a7c95}.scene-character .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scene-events{border-top:1px solid #dbe3ee;margin-top:20px;padding-top:16px}.field-help{color:#67778d;margin:10px 0 16px;font-size:12px;line-height:1.8}.script-error{color:#a22c36;white-space:pre-line;background:#fff0f1;border-radius:5px;margin:10px 0;padding:10px;font-size:12px}.authoring-empty{padding:30px;font-size:14px}.authoring-page :is(button,input,textarea,select):focus-visible{outline-offset:2px;outline:2px solid #347bdd}.authoring-page fieldset:disabled{opacity:.7}@media (max-width:1200px){.authoring-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.script-body.with-scene{grid-template-columns:minmax(0,1fr)}.scene-inspector{grid-row:1;max-height:65vh;position:static}}@media (max-width:760px){.authoring-layout{grid-template-columns:minmax(0,1fr)}.story-outline{max-height:270px;position:static}.script-row{padding:12px}.script-row-heading{gap:7px}.script-speaker{flex-wrap:wrap;gap:3px}.script-toolbar>span{margin-left:0}}@media (max-width:1280px){.panel-editor-grid{grid-template-columns:1fr}.preview-panel{max-width:720px}}@media (max-width:1000px){.story-workspace{grid-template-columns:125px 140px 160px minmax(0,1fr)}.asset-grid{grid-template-columns:1fr}.episode-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:800px){.sidebar-wrap{z-index:50;width:224px;transition:transform .18s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.sidebar-wrap.show{transform:translate(0)}.mobile-overlay{z-index:40;visibility:hidden;opacity:0;background:#0a101875;transition:all .18s;position:fixed;inset:0}.mobile-overlay.show{visibility:visible;opacity:1}.mobile-only{display:inline-grid}.brand .mobile-only{color:#96a3b5;margin-left:auto}.topbar{gap:8px;padding:0 12px}.content{padding:14px 12px 24px}.story-workspace{grid-template-columns:120px 135px 155px minmax(360px,1fr);overflow-x:auto}.story-heading{align-items:flex-start}.asset-layout{grid-template-columns:1fr}}@media (max-width:560px){.page-heading{flex-direction:column;align-items:flex-start}.heading-actions{justify-content:flex-start}.story-workspace{flex-direction:column;display:flex;overflow:visible}.chapter-rail,.episode-rail,.panel-rail{min-height:0}.chapter-rail,.episode-rail{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.chapter-rail .rail-heading,.episode-rail .rail-heading{grid-column:1/-1}.panel-rail{max-height:250px;overflow-y:auto}.asset-grid,.episode-fields,.field-grid,.motion-fields{grid-template-columns:1fr}.character-columns{display:none}.character-row{grid-template-columns:minmax(120px,1fr) 54px 58px 28px}.preview-audio{grid-template-columns:1fr}.game-preview{margin:7px}.dialogue-window p{font-size:8.5px}}.auth-page{background:#f5f6f8;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;gap:20px;width:min(100%,420px);padding:36px;display:grid}.auth-card h1{font-size:26px;font-weight:700}.auth-card p{color:#64748b;line-height:1.8}.auth-card label,.user-form>label{gap:8px;font-weight:600;display:grid}.auth-card input,.user-form input:not([type=checkbox]),.user-form select{background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:100%;padding:10px 12px}.auth-actions{flex-wrap:wrap;gap:10px;display:flex}.auth-card .form-error{color:#b91c1c}.users-page{gap:20px;padding:28px;display:grid}.users-page h1{font-size:24px;font-weight:700}.user-form{gap:16px;max-width:640px;padding:24px;display:grid}.check-label{align-items:center;gap:8px;display:flex!important}.check-label input{width:auto}.user-form fieldset{border:1px solid #e2e8f0;gap:8px;padding:12px;display:grid}.users-list{overflow-x:auto}.users-list table{border-collapse:collapse;width:100%}.users-list td,.users-list th{text-align:left;border-bottom:1px solid #e2e8f0;padding:14px}.preview-background{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.asset-name-row{align-items:center;gap:4px;display:flex}.asset-name-row strong{flex:1;min-width:0}.asset-name-row .icon-button{flex-shrink:0}.asset-name-editor,.asset-name-editor .field{margin-bottom:6px}.asset-name-buttons{flex-wrap:wrap;gap:4px;display:flex}.character-master-list{flex-wrap:wrap;gap:12px;display:flex}.character-master-item{border:1px solid var(--line);border-radius:6px;min-width:180px;padding:10px}.character-group-name{margin:16px 0 10px;font-size:14px}.character-group-name small{margin-left:8px;font-weight:400}.character-asset-select{grid-template-columns:1fr 1fr;gap:6px;min-width:0;display:grid}.character-asset-select select{min-width:0}@keyframes screen-effect-shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-1%,.5%)}40%,80%{transform:translate(1%,-.5%)}}.screen-effect-shake{animation:screen-effect-shake .4s}.bulk-upload-body{gap:12px;padding:16px;display:grid}.bulk-toolbar{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.bulk-toolbar .field{min-width:180px}.bulk-dropzone{border:2px dashed var(--line);text-align:center;background:#f7f9fc;border-radius:8px;flex-direction:column;align-items:center;gap:8px;padding:24px 16px;display:flex}.bulk-dropzone.active{background:#eff6ff;border-color:#2563eb}.bulk-dropzone span,.bulk-hint,.bulk-summary span{color:#58677b;font-size:12px}.bulk-hint{margin:0}.bulk-character-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px;display:grid}.bulk-character-group{border:1px solid var(--line);background:#f8fafc;border-radius:6px;gap:8px;padding:12px;display:grid}.bulk-character-group strong{overflow-wrap:anywhere;display:block}.bulk-character-group small{color:#58677b;margin-top:4px;display:block}.bulk-summary{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.bulk-table-scroll{border:1px solid var(--line);border-radius:6px;max-height:620px;overflow:auto}.bulk-table{border-collapse:collapse;width:100%;min-width:760px;font-size:12px}.bulk-table th{z-index:1;text-align:left;background:#eaf0f7;position:sticky;top:0}.bulk-table td,.bulk-table th{border-bottom:1px solid var(--line);vertical-align:top;padding:10px}.bulk-table td:nth-child(3){min-width:240px}.bulk-table td:last-child{min-width:200px;max-width:320px}.bulk-table small{color:#58677b;margin:4px 0 8px;display:block}.bulk-path{overflow-wrap:anywhere;display:block}.bulk-thumbnail{object-fit:contain;background:#eaf0f7;border-radius:4px;width:72px;height:84px}.bulk-audio{width:210px;height:32px}.bulk-row-excluded{color:#677386;background:#f3f4f6}.bulk-status{font-weight:600}.bulk-status-success{color:#15803d}.bulk-status-failed,.bulk-warning{color:#a16207}.bulk-status-uploading{color:#2563eb}.bulk-register-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.bulk-register-bar p{margin:0;font-size:12px}.asset-library-filters{padding:12px}summary.panel-heading{cursor:pointer}.panel>summary.panel-heading:before{content:"▸"}.panel[open]>summary.panel-heading:before{content:"▾"}.bulk-table .sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@media (max-width:600px){.bulk-upload-body{padding:10px}.bulk-register-bar .button,.bulk-toolbar .field{width:100%}}.preview-audio-controls{flex-wrap:wrap;align-items:center;gap:7px;padding:0 10px 10px;display:flex}.preview-audio-controls small{color:var(--muted-2);font-size:10px}.preview-audio-controls p{color:#b42318;width:100%;font-size:12px}.scene-crossfade{isolation:isolate;position:relative}.scene-crossfade-current{z-index:2;position:relative}.scene-crossfade-outgoing{z-index:1;pointer-events:none;position:absolute;inset:0}.scene-crossfade-outgoing *{animation:none!important}.scene-crossfade-current.is-loading{opacity:0}.scene-crossfade-current.is-fading{animation:scene-crossfade-in .6s ease-in-out both}@keyframes scene-crossfade-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.scene-crossfade-current.is-fading{animation-duration:1ms}}.dialogue-playback{text-align:left;width:auto;font:inherit;cursor:pointer;padding-bottom:19px;display:block}.dialogue-playback[aria-disabled=true]{cursor:default}.dialogue-playback:focus-visible{outline-offset:2px;outline:2px solid #d7d0ff}.dialogue-copy{white-space:pre-wrap;margin-top:4px;font-size:10px;line-height:1.65;display:block;position:relative}.dialogue-layout{visibility:hidden}.dialogue-visible{position:absolute;inset:0}.dialogue-next{font-size:9px;line-height:1;animation:dialogue-next-blink .9s ease-in-out infinite;position:absolute;bottom:4px;right:10px}.dialogue-empty{width:34px;min-height:26px;padding:0;left:auto}.scene-crossfade-current.is-loading{pointer-events:none}@keyframes dialogue-next-blink{0%,to{opacity:1}50%{opacity:.2}}@media (max-width:900px){.dialogue-copy{font-size:8.5px}}@media (prefers-reduced-motion:reduce){.dialogue-next{animation:none}}.dialogue-copy .sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}.writer-app{--writer-header-height:48px;--writer-ink:#263047;--writer-muted:#727c90;--writer-line:#e3e7ef;--writer-accent:#2866aa;--writer-soft:#e8f0fb;color:var(--writer-ink);font-size:13px;line-height:1.65;background:#f7f8fb;min-height:100vh}.writer-app h1{font-size:17px;line-height:1.5;overflow-wrap:anywhere}.writer-app h2,.writer-modal h2{font-size:15px}.writer-app .button,.writer-modal .button{min-height:30px;padding:5px 8px;gap:8px;border-radius:8px;border:1px solid #dce1eb;background:white;white-space:normal}.writer-app .button-primary,.writer-modal .button-primary{background:#2866aa;border-color:#2866aa;color:white}.writer-app .field,.writer-modal .field{font-size:12px;gap:8px;margin-bottom:10px}.writer-app input:not([type=checkbox]),.writer-app select,.writer-app textarea,.writer-modal input,.writer-modal select{font-size:13px;min-height:32px;padding:6px 8px;border:1px solid #dbe0eb;border-radius:8px}.writer-app .field>span,.writer-modal .field>span{font-size:12px}.writer-app .panel-heading{display:flex;justify-content:space-between;gap:12px;padding:14px;margin:0 0 24px;border-bottom:1px solid var(--writer-line)}.writer-app .panel-heading h2{margin:0}.writer-app .panel{border:1px solid var(--writer-line);border-radius:12px;background:#fff}.writer-app .structure-settings{max-width:800px}.writer-app .structure-settings .field,.writer-app .structure-settings .field-help{margin-left:24px;margin-right:24px}.writer-app .structure-settings .chapter-fields,.writer-app .structure-settings .episode-fields{padding:0 0 24px;display:block}.writer-app .structure-settings .chapter-fields .field,.writer-app .structure-settings .episode-fields .field{width:auto}.writer-app .structure-settings{padding:0 0 24px}.writer-app .structure-settings .panel{padding:0}.writer-app .structure-settings.panel{padding-bottom:24px}.writer-app fieldset,.writer-modal fieldset{margin:0;padding:0;border:0;min-width:0}.writer-app button:focus-visible,.writer-modal button:focus-visible{outline:3px solid #a8c7e9;outline-offset:2px}.writer-app small{font-size:12px}.writer-help{font-size:13px;color:#727c90;margin:12px 0;line-height:1.7}.writer-error{padding:16px;border-radius:8px;background:#fff0f2;color:#a03045;white-space:pre-wrap;margin:16px 0;overflow-wrap:anywhere}.writer-delete{color:#a63f50!important}.writer-header{height:var(--writer-header-height);min-height:var(--writer-header-height);padding:0 16px;background:#fff;border-bottom:1px solid #e3e7ef;position:sticky;top:0;z-index:30}.writer-brand,.writer-header{display:flex;align-items:center;gap:12px}.writer-brand{white-space:nowrap}.writer-brand>span{display:grid;place-items:center;background:#2866aa;color:white;width:24px;height:26px;border-radius:10px 10px 10px 2px}.writer-brand strong{font-size:15px}.writer-ip{max-width:200px}.writer-ip select{max-width:100%;background:#f7f8fb}.writer-nav{display:flex;align-self:stretch;gap:12px}.writer-nav a{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:#727c90;border-bottom:3px solid transparent}.writer-nav a.active{border-color:#2866aa;color:#2866aa;font-weight:700}.writer-user{margin-left:auto;font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writer-content{padding:0;max-width:none}.writer-content>.page-stack{padding:16px;max-width:1440px;margin:auto}.writer-workspace-grid{display:grid;grid-template-columns:200px minmax(0,1fr);height:calc(100dvh - var(--writer-header-height));min-height:0}.writer-outline-fieldset{min-height:0;overflow:auto;background:white;border-right:1px solid var(--writer-line)!important}.writer-outline-fieldset[hidden]{display:none}.writer-outline{padding:12px 8px}.writer-workspace-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;flex-shrink:0}.writer-workspace-tools .button{font-size:11px;min-height:26px}.writer-outline-title{margin:0 8px 12px}.writer-outline-title small{color:#727c90}.writer-tree-row{display:flex;border:1px solid transparent;border-radius:8px;margin:4px 0;align-items:flex-start}.writer-tree-episode.active,.writer-tree-row.active{background:#e8f0fb!important;color:#225890}.writer-disclosure{border:0;background:none;min-height:30px;width:24px;margin-top:8px;display:grid;place-items:center;flex-shrink:0}.writer-tree-select{flex:1;min-width:0;text-align:left;border:0;background:none;padding:8px;min-height:34px}.writer-tree-episode small,.writer-tree-select small{display:block;color:#727c90;font-size:12px}.writer-tree-episode span,.writer-tree-select span{font-size:12px;overflow-wrap:anywhere;display:block}.writer-tree-children{margin-left:12px;padding-left:8px;border-left:1px solid #e9ebf2}.writer-tree-episode{width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:8px;padding:5px 8px;margin:4px 0}.writer-outline-footer{margin:12px 4px 0;padding-top:12px;border-top:1px solid #e3e7ef}.writer-outline-footer button{width:100%}.writer-main{min-width:0;padding:10px 14px;min-height:0;overflow:auto}.writer-main .authoring-location{font-size:12px;gap:8px;margin:0 0 4px;display:flex;flex-wrap:wrap;overflow-wrap:anywhere}.writer-main .authoring-tabs{margin-bottom:12px;gap:20px}.writer-main .authoring-tabs button{font-size:12px;min-height:34px}.writer-children{max-width:800px;margin-top:24px}.writer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.writer-children>.button{display:flex;margin-left:auto;margin-top:16px}.writer-child{display:flex;align-items:center;gap:16px;padding:14px;width:100%;background:white;text-align:left;border:0;border-bottom:1px solid #e3e7ef}.writer-child>small{background:#e8f0fb;color:#2866aa;padding:8px;white-space:nowrap;border-radius:8px}.writer-child>span{flex:1;overflow-wrap:anywhere}.writer-child>span small{display:block;color:#727c90}.writer-child:last-child{border:0}.writer-script-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.writer-script-toolbar>.button{flex-shrink:0}.writer-script-toolbar p{font-size:13px;color:#727c90;margin-top:8px}.writer-edit-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,2fr);gap:12px;align-items:stretch;min-height:0;flex:1}.writer-script-list{min-width:0;min-height:0;overflow:auto;padding:2px 8px 24px 0;scrollbar-gutter:stable}.writer-list-intro{display:flex;justify-content:space-between;gap:16px;font-size:12px}.writer-list-intro span{font-size:12px;color:#727c90}.writer-scene{padding:0 0 4px 12px;margin:12px 0 20px;position:relative}.writer-scene-heading{padding:10px;border:1px solid color-mix(in srgb,var(--scene-accent) 30%,white);background:color-mix(in srgb,var(--scene-accent) 9%,white);border-radius:8px;margin-bottom:8px;position:relative}.writer-scene-heading:before{content:"";position:absolute;left:-17px;top:24px;width:7px;height:7px;border-radius:50%;background:var(--scene-accent);box-shadow:0 0 0 3px #f7f8fb}.writer-scene-top{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.writer-scene-top>div{min-width:0}.writer-scene-top h2{overflow-wrap:anywhere}.writer-scene-heading>small,.writer-scene-top small{color:var(--scene-accent)}.writer-scene-top button{flex-shrink:0}.writer-scene-assets{display:flex;flex-wrap:wrap;gap:8px 16px;margin:6px 0;font-size:11px;color:#626c7b}.writer-scene-assets>span{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}.writer-scene-heading>.writer-link{display:block;margin-top:8px;font-size:12px}.writer-row{border:1px solid #e3e7ef;border-radius:10px;background:#fff;margin:8px 0 8px 12px;min-width:0}.writer-row.active{box-shadow:0 0 0 1px #dce9f7}.writer-row-head{padding:6px 10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eef0f5}.writer-row-head>label{display:flex;gap:8px;align-items:center;white-space:nowrap}.writer-row-head input{width:16px;height:16px}.writer-row-actions{display:flex;gap:4px}.writer-row-actions .button{padding:8px;font-size:12px}.writer-dialogue-fields{padding:10px}.writer-dialogue-fields .field:last-child{margin-bottom:0}.writer-dialogue-fields .field>span{display:flex;justify-content:space-between}.writer-dialogue-fields textarea{width:100%;min-height:56px;line-height:1.6;resize:vertical}.writer-speaker-button{text-align:left;padding:5px 8px;border:1px solid #dbe0eb;border-radius:8px;background:#fff;font-size:12px;width:100%;max-width:260px}.writer-row-footer,.writer-speaker-button{display:flex;align-items:center;justify-content:space-between;gap:8px}.writer-row-footer{padding:0 10px 8px}.writer-row-footer>span{font-size:12px;color:#727c90}.writer-row-insert{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #eef0f5;padding:4px 8px}.writer-link{border:0;background:none;color:#2866aa;display:inline-flex;align-items:center;gap:4px;min-height:30px;font-size:13px;padding:8px}.writer-main.is-script,.writer-script{display:flex;flex-direction:column;min-height:0;overflow:hidden}.writer-script{flex:1}.writer-main>.authoring-location,.writer-main>.authoring-tabs{flex-shrink:0}.writer-preview-rail{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-left:12px;container-type:size;border-left:1px solid var(--writer-line)}.writer-preview-rail>:not(.writer-inspector){flex-shrink:0}.writer-preview-context{font-size:11px;color:var(--writer-muted);margin:6px 0;overflow-wrap:anywhere}.writer-preview-nav{justify-content:space-between;gap:16px;margin-bottom:12px}.writer-preview-nav,.writer-preview-nav>div{display:flex;align-items:center;font-size:12px}.writer-preview-nav>div{gap:8px}.writer-preview-rail .preview-panel{position:static;padding:0;overflow:hidden}.writer-preview-rail .preview-toolbar{min-height:30px;padding:3px 6px}.writer-preview-rail .preview-ratio select{min-height:26px;padding:2px 4px;font-size:11px}.writer-preview-rail .preview-audio{padding:6px 8px;display:flex;flex-wrap:wrap;gap:4px 12px}.writer-preview-rail .game-preview{container-type:inline-size;margin:4px auto;width:min(calc(100% - 12px),calc(28dvh * var(--preview-aspect)),calc(max(70px, 100cqh - 250px) * var(--preview-aspect)))}.writer-preview-rail .dialogue-window p{font-size:2.35cqw;margin-top:.8cqw;line-height:1.45;overflow-wrap:anywhere}.writer-preview-rail .dialogue-window strong{font-size:2.15cqw;display:block}.writer-preview-rail .dialogue-window{min-height:0;padding:1.3cqw 2cqw;border-radius:1cqw}.writer-inspector-toggle{width:100%;margin:4px 0}.writer-inspector{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px;border:1px solid #e3e7ef;border-radius:12px;background:#fff}.writer-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.writer-slot{border:1px dashed #dbe0eb;border-radius:8px;padding:8px;min-width:0;background:#fafbfe}.writer-slot.filled{border-style:solid;background:white}.writer-slot-head{display:flex;align-items:center;justify-content:space-between;min-height:32px;gap:4px}.writer-slot-head strong{font-size:13px}.writer-slot-head small{font-size:10px;color:#727c90}.writer-slot-head .writer-link{font-size:12px;padding:0;min-height:32px}.writer-slot-image{width:100%;min-height:76px;border:0;background:#f1f5f9;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;font-size:12px}.writer-slot-image img{height:60px;width:100%;object-fit:contain}.writer-slot-image small{display:block;font-size:11px;color:#727c90}.writer-slot-fields{margin-top:8px}.writer-slot-fields .field{margin-bottom:8px;gap:4px}.writer-slot-fields .field>span{font-size:11px}.writer-slot-fields select{font-size:12px;min-height:30px;padding:8px 4px;width:100%}.writer-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;background:#e8f0fb;border-radius:8px;margin-top:16px;font-size:12px}.writer-modal{position:fixed;inset:0;margin:auto;border:1px solid #e3e7ef;border-radius:16px;background:#fff;color:#263047;width:min(840px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;box-shadow:0 24px 80px #26304730;font:13px/1.5 -apple-system,BlinkMacSystemFont,Hiragino Sans,Yu Gothic,sans-serif;overflow:auto}.writer-modal::backdrop{background:#20283980;backdrop-filter:blur(2px)}.writer-modal.compact{width:min(560px,calc(100vw - 32px))}.writer-modal>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border-bottom:1px solid #e3e7ef}.writer-modal-body{padding:14px}.writer-modal>footer{padding:10px 14px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e3e7ef}.writer-modal input,.writer-modal select{width:100%}.writer-filter{display:flex;gap:16px}.writer-filter .field{flex:1;min-width:0}.writer-asset-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.writer-asset-grid.character{grid-template-columns:repeat(3,minmax(0,1fr))}.writer-new-asset{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:116px;border:2px dashed #b8cce2;border-radius:10px;background:#f0f5fa;color:#2866aa;padding:16px 8px}.writer-new-asset strong{font-size:12px}.writer-new-asset small{font-size:11px}.writer-asset-tile{border:1px solid #e3e7ef;border-radius:8px;background:white;overflow:hidden;padding:0;min-height:116px;font-size:12px}.writer-asset-tile img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.writer-asset-grid.character img{aspect-ratio:1;object-fit:contain;background:repeating-conic-gradient(#f2f2f6 0 25%,white 0 50%) 0 0/16px 16px}.writer-asset-tile>span{display:block;padding:8px;overflow-wrap:anywhere}.writer-asset-tile.selected,.writer-audio-row.selected{border:2px solid #70a0d4}.writer-audio-list{display:grid;gap:12px}.writer-audio-list .writer-new-asset{flex-direction:row;min-height:64px}.writer-audio-row{display:flex;align-items:center;gap:12px;border:1px solid #e3e7ef;border-radius:8px;padding:12px}.writer-audio-name{min-width:0;flex:1;background:none;border:0;text-align:left;overflow-wrap:anywhere;font-size:12px}.writer-audio-name small{display:block;font-size:11px;color:#727c90}.writer-drop{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:200px;padding:24px 16px;gap:8px;border:2px dashed #b8cce2;border-radius:12px;color:#2866aa;background:#f5f8fb;cursor:pointer;text-align:center;margin-bottom:12px}.writer-drop input{position:absolute;width:1px;height:1px;min-height:0;padding:0;opacity:0;overflow:hidden}.writer-drop:focus-within{outline:3px solid #a8c7e9}.writer-drop.drag{background:#e3edf9;border-style:solid}.writer-drop span{font-size:12px;text-decoration:underline}.writer-drop small{font-size:12px;color:#727c90}.writer-upload-preview{margin-bottom:12px}.writer-upload-preview img{height:180px;width:100%;object-fit:contain;background:#f4f4f7}.writer-upload-preview audio{width:100%}.writer-upload-preview small{display:block;overflow-wrap:anywhere;font-size:12px}.writer-scene-pick{display:flex;align-items:center;gap:16px;border:1px solid #dbe0eb;border-radius:8px;background:white;padding:12px;text-align:left;font-size:12px}.writer-scene-pick img{width:96px;aspect-ratio:16/9;object-fit:cover}.writer-scene-pick span{flex:1;overflow-wrap:anywhere}.writer-speaker-option{display:block;width:100%;text-align:left;border:1px solid #e3e7ef;background:white;padding:6px 10px;margin:8px 0;border-radius:8px;min-height:32px;font-size:12px}.writer-speaker-option:hover{background:#e8f0fb}.writer-outline-title p{font-size:10px;color:var(--writer-muted);margin-top:4px}.writer-script-toolbar{margin-bottom:10px}.writer-script-toolbar p{margin-top:3px}.writer-row-head{background:#fafbfe;border-radius:9px 9px 0 0}.writer-row.active .writer-row-head{background:var(--writer-soft)}.writer-row-actions .button{border-color:transparent;background:transparent;padding:4px;width:28px;min-height:28px;color:#727c90}.writer-row-actions .writer-delete{color:#727c90!important}.writer-app button:not(:disabled):hover{cursor:pointer}.writer-app .button:not(:disabled):hover,.writer-speaker-button:hover{border-color:#b8cce2;background:#f0f5fa}.writer-app .button-primary:not(:disabled):hover{background:#225890;color:white}.writer-row-actions .writer-delete:not(:disabled):hover{color:#a63f50!important;background:#fff0f2}.writer-app .writer-inspector-action{color:#225890}.writer-app .writer-inspector-action.selected{background:var(--writer-soft);border-color:#70a0d4}.writer-link:not(:disabled):hover{background:var(--writer-soft);border-radius:4px}.writer-app .writer-row-actions .button:focus-visible{outline:2px solid #2866aa}.writer-row-insert .writer-link{min-height:26px;padding:4px;font-size:11px}.writer-app .writer-slot-fields select{min-height:30px;padding:4px}.writer-inspector .writer-section-heading{position:sticky;top:-10px;background:white;z-index:1;padding:6px 0;margin-bottom:4px}.writer-inspector .writer-help{margin:4px 0;font-size:11px}.writer-inspector h2{font-size:13px}.writer-app .authoring-tabs{margin-bottom:8px}.writer-app .authoring-tabs button{min-height:30px;padding:5px 12px}.writer-preview-rail .preview-audio span{min-height:22px;padding:2px 4px;border:0}@media (max-width:1200px){.writer-user{display:none}.writer-workspace-grid{grid-template-columns:176px minmax(0,1fr)}.writer-edit-grid{grid-template-columns:minmax(0,3fr) minmax(300px,2fr);gap:10px}.writer-nav{gap:12px}.writer-main{padding:8px 10px}}@media (max-width:900px){.writer-app{--writer-header-height:80px}.writer-header{flex-wrap:wrap;gap:6px 12px;padding:6px 12px 0}.writer-nav{order:3;width:100%;height:30px;overflow:auto;gap:16px}.writer-header>.button{margin-left:auto}.writer-workspace-grid{grid-template-columns:minmax(0,1fr);position:relative}.writer-outline-fieldset{position:absolute;inset:0 auto 0 0;width:200px;z-index:20;box-shadow:4px 0 16px #26304720}.writer-workspace-tools{position:relative;z-index:21;background:#f7f8fb}.writer-outline{padding-top:48px}.writer-edit-grid{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}}@media (max-width:600px){.writer-app{--writer-header-height:80px}.writer-brand strong{font-size:13px}.writer-ip{max-width:150px}.writer-edit-grid{display:flex;flex-direction:column;gap:8px}.writer-preview-rail{order:-1;container-type:normal;height:42dvh;max-height:42dvh;flex-shrink:0;border-left:0;padding-left:0}.writer-script-list{flex:1}.writer-preview-rail .game-preview{width:min(calc(100% - 12px),calc(15dvh * var(--preview-aspect)))}.writer-preview-context,.writer-preview-rail .preview-audio{display:none}.writer-preview-nav{margin-bottom:4px}.writer-preview-rail .preview-toolbar{padding:2px 6px}.writer-preview-rail .preview-ratio select{min-height:24px}.writer-inspector{flex:1;min-height:70px}.writer-script-toolbar h1{font-size:14px}.writer-main .authoring-location{display:none}.writer-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.writer-asset-grid.character{grid-template-columns:repeat(3,minmax(0,1fr))}.writer-filter{display:block}.writer-list-intro{flex-direction:column;gap:2px}.writer-app .panel-heading{flex-wrap:wrap}}.writer-select-all{display:flex;align-items:center;gap:8px;font-size:12px;margin:12px 0}.writer-select-all input{width:16px;height:16px}.writer-modal .writer-inspector{border:0;border-radius:0;padding:14px}.writer-modal .writer-inspector>.writer-section-heading{display:none}.writer-script-column{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.writer-script-column>.writer-script-list{flex:1}.writer-script-column>.writer-script-toolbar,.writer-script-column>.writer-workspace-controls{flex-shrink:0}.writer-script-column .writer-workspace-controls{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-bottom:6px}.writer-script-column .writer-workspace-tools{display:contents}.writer-script-column .writer-workspace-tools>a{order:3;margin-left:auto}.writer-script-column .authoring-tabs{order:2;margin:0;border:0;gap:4px}.writer-script-column .authoring-tabs button{padding:4px 6px;min-height:28px;font-size:11px}.writer-script-column .authoring-location{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.writer-script-column .writer-script-toolbar{gap:8px;margin-bottom:4px}.writer-script-toolbar>div{min-width:0}.writer-script-toolbar h1{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writer-script-toolbar p{font-size:10px}.writer-script-column>.writer-error{flex-shrink:0;max-height:60px;overflow:auto;padding:6px 8px;margin:4px 0}.writer-list-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.writer-list-tools .writer-select-all{order:-1;margin:4px 0}.writer-list-tools .writer-help{margin:0}.writer-scene{margin-top:6px}.writer-scene-top>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.writer-scene-assets{margin:4px 0 0}.writer-scene-heading{padding:8px 10px}.writer-preview-nav{margin-bottom:6px}@media (max-width:900px){.writer-script-column .writer-workspace-controls{position:relative;z-index:21;background:#f7f8fb}}@media (max-width:600px){.writer-script-column{flex:1}.writer-script-column .writer-workspace-controls{gap:2px 4px}.writer-script-column .writer-workspace-controls .button{font-size:10px;padding:4px}}.writer-preview-nav .writer-preview-size{margin-left:auto;min-height:26px;padding:3px 6px;font-size:11px}.writer-preview-rail.is-preview-minimized .game-preview{width:min(calc(100% - 12px),calc(80px * var(--preview-aspect)))}.writer-preview-rail.is-preview-minimized .preview-audio{display:none}@media (max-width:600px){.writer-preview-rail.is-preview-minimized{height:30dvh}.writer-preview-rail.is-preview-minimized .game-preview{width:min(calc(100% - 12px),calc(48px * var(--preview-aspect)))}}.writer-cast-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}.writer-auto-cast{grid-template-columns:minmax(0,1fr)}.writer-auto-cast .writer-slot{scroll-margin:8px}.writer-auto-cast .writer-slot.is-selected,.writer-auto-cast .writer-slot:focus-visible{outline:2px solid #839bb5;outline-offset:1px}.writer-auto-cast .writer-slot-image{flex-direction:row;justify-content:flex-start;text-align:left}.writer-auto-cast .writer-slot-image img{width:56px;height:64px;flex-shrink:0}.writer-auto-cast .writer-slot-image>span{flex:1;overflow-wrap:anywhere}.writer-auto-cast .writer-slot-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.writer-cast-moves{display:flex;gap:8px}.writer-cast-moves .button{flex:1;min-height:36px}.writer-cast-layers{font-size:12px}.writer-cast-layers summary{cursor:pointer;padding:6px 0;color:#606b80}.writer-cast-layers .field{margin-top:8px}.writer-cast-add{width:100%;margin-bottom:14px;min-height:40px}.writer-cast-empty{padding:16px;border:1px dashed #dbe0eb;border-radius:8px;font-size:12px;line-height:1.7;color:#606b80}.preview-character-select{position:absolute;inset:0;width:100%;height:100%;z-index:1;border:0;background:transparent;cursor:pointer}.preview-character-select:focus-visible{outline:3px solid #a8c7e9;outline-offset:-3px}.preview-character-anchor.is-selected .preview-character{filter:drop-shadow(0 0 4px #c5def8) drop-shadow(0 0 8px #839bb5)}@media (prefers-reduced-motion:reduce){.preview-character-motion{animation:none}}.writer-app,.writer-modal{--writer-ink:#263548;--writer-muted:#64748b;--writer-line:#d8e0e9;--writer-accent:#2866aa;--writer-soft:#e8f0fb;--primary:#2866aa;--primary-dark:#225890;--purple:#2866aa;color:var(--writer-ink)}.writer-app{--writer-header-height:56px;background:#edf1f5;line-height:1.5}.writer-header{gap:20px;padding:0 20px;border-color:#cad5e1}.writer-brand{gap:9px}.writer-brand>span{width:30px;height:32px;border-radius:6px;background:#30465e;font-size:16px}.writer-brand strong{font-size:13px}.writer-ip{padding-left:20px;border-left:1px solid var(--writer-line)}.writer-ip select{background:#f3f5f8}.writer-nav{gap:22px}.writer-nav a{gap:6px}.writer-user{font-size:11px;color:var(--writer-muted)}.writer-app .button,.writer-modal .button{min-height:32px;padding:6px 10px;border-radius:5px;border-color:#c9d5e3;gap:6px;font-size:12px}.writer-app .button-primary,.writer-modal .button-primary{background:var(--writer-accent);border-color:var(--writer-accent)}.writer-app .button-primary:not(:disabled):hover,.writer-modal .button-primary:not(:disabled):hover{background:#225890}.writer-app input:not([type=checkbox]),.writer-app select,.writer-app textarea,.writer-modal input:not([type=checkbox]),.writer-modal select,.writer-modal textarea{border-color:#c9d5e3;border-radius:5px;min-height:32px;font-size:12px;padding:7px 8px}.writer-app input[type=checkbox]{accent-color:var(--writer-accent)}.writer-app :is(input,select,textarea):focus-visible,.writer-modal :is(input,select,textarea):focus-visible{outline:2px solid #a8c7e9;outline-offset:0;border-color:#5a8dc4}.writer-app .field>span,.writer-modal .field>span{font-size:11px;color:#5b6e84;font-weight:500}.writer-app .field,.writer-modal .field{gap:6px}.writer-app .panel{border-radius:7px}.writer-help{color:var(--writer-muted)}.writer-workspace-grid{grid-template-columns:190px minmax(0,1fr)}.writer-outline-fieldset{background:#f8fafc;border-color:#ccd6e2!important}.writer-outline{padding:16px 12px}.writer-outline-title{padding-bottom:14px;margin:0 4px 12px;border-bottom:1px solid var(--writer-line)}.writer-outline-title small{font-size:12px;font-weight:600;color:#34465b}.writer-tree-episode,.writer-tree-row{border-radius:5px}.writer-tree-episode.active,.writer-tree-row.active{background:#e3edf9!important;border-color:#bed2ea;color:#235d9b}.writer-tree-episode small,.writer-tree-select small{font-size:10px;color:#718096}.writer-tree-select span{font-size:12px;font-weight:600}.writer-tree-episode{padding:9px}.writer-tree-episode span{font-size:11px}.writer-tree-children{border-color:#dce3eb}.writer-main.is-script{padding:0}.writer-edit-grid{grid-template-columns:minmax(0,1fr) 380px;gap:0}.writer-script-column{background:white}.writer-script-column .writer-script-toolbar{order:-2;padding:18px 22px 14px;margin:0;align-items:center;gap:14px}.writer-episode-label{display:block;font-size:11px;color:#62748a;margin-bottom:3px}.writer-script-toolbar h1{font-size:22px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.writer-script-toolbar p{font-size:11px;color:var(--writer-muted)}.writer-save-state{margin-left:8px}.writer-save-state.unsaved{color:#996321}.writer-script-toolbar>.button{padding:9px 15px}.writer-script-column .writer-workspace-controls{order:-1;padding:0 22px;margin:0;min-height:43px;border-bottom:1px solid #cbd6e2;background:white;gap:8px 14px}.writer-script-column .authoring-tabs{gap:20px;align-self:stretch}.writer-script-column .authoring-tabs button{border-radius:0;padding:10px 0;font-size:12px;min-height:41px}.writer-script-column .authoring-tabs button.active{color:#245f9e;border-color:#2866aa}.writer-script-column .writer-workspace-tools>.button{font-size:10px;min-height:27px;padding:4px 6px}.writer-script-column .writer-workspace-tools>a{font-size:11px;background:transparent;border-color:transparent}.writer-script-list{background:#edf1f5;padding:12px 20px 24px}.writer-list-tools{margin-bottom:10px;color:#63758b}.writer-list-tools .writer-select-all{font-size:11px}.writer-list-tools .writer-help{font-size:10px}.writer-scene{--scene-accent:#839bb5;border-left:3px solid var(--scene-accent);padding-left:12px;margin:0 0 20px}.writer-scene-heading{background:#f5f8fb;border:1px solid #c8d4e1;border-radius:7px;padding:0;margin-bottom:12px;overflow:hidden}.writer-scene-heading:before{display:none}.writer-scene-top{background:#dfe7ef;padding:10px 12px}.writer-scene-top,.writer-scene-top>div{align-items:center;gap:10px}.writer-scene-top small{color:white;background:#5b728d;border-radius:4px;padding:3px 6px;font-size:10px}.writer-scene-top h2{font-size:13px;font-weight:600}.writer-scene-top .button{font-size:11px;min-height:28px;padding:5px 8px}.writer-scene-assets{padding:8px 12px 4px;margin:0;color:#5f7288;font-size:10px}.writer-scene-assets>span{gap:6px}.writer-scene-heading>small{display:block;color:#637b94;padding:0 12px 8px;font-size:10px}.writer-scene-heading>.writer-link{margin:0 8px 4px;min-height:26px;font-size:11px}.writer-row{margin:12px 0 12px 12px;border:1px solid #cbd6e2;border-radius:7px;box-shadow:0 1px 2px #293c5010}.writer-row.active{border-color:#70a0d4;box-shadow:0 0 0 1px #70a0d420}.writer-row-head{border-radius:6px 6px 0 0;background:#f1f4f8;border-color:#dae2ec;min-height:37px;padding:4px 12px;justify-content:flex-start}.writer-row.active .writer-row-head{background:#e8f0fb;border-color:#c9dcef}.writer-row-head>label{color:#536980;font-size:12px;font-weight:600}.writer-row.active .writer-row-head>label{color:#245f9d}.writer-editing-badge{font-size:9px;border:1px solid #ccdff2;background:white;color:#3877b8;padding:1px 5px;border-radius:3px}.writer-row-actions{margin-left:auto}.writer-row-actions .button{width:27px;min-height:26px;padding:3px}.writer-dialogue-fields{padding:12px 14px 9px}.writer-dialogue-fields .writer-speaker-field{flex-direction:row;align-items:center;gap:13px}.writer-speaker-button{width:190px;max-width:70%;min-height:32px;border-radius:5px;border-color:#c9d5e3;padding:6px 9px}.writer-dialogue-fields textarea{min-height:78px;line-height:1.7;font-size:14px;padding:9px 11px}.writer-dialogue-fields .field small{font-size:10px;color:#6b7f95}.writer-row-footer{padding:0 14px 9px}.writer-row-footer>span{font-size:10px;color:#6b7f95}.writer-app .writer-inspector-action{font-size:10px;min-height:27px;padding:4px 7px;background:#f0f5fa;border-color:#d9e4f0;color:#3f6e9f}.writer-row-insert{background:#fafcfe;border-color:#e2e8ef;border-radius:0 0 7px 7px;padding:3px 10px}.writer-row-insert .writer-link{font-size:10px;color:#4d7299}.writer-preview-rail{padding:0;border-color:#cbd6e2;background:#f8fafc}.writer-preview-nav{padding:9px 14px;min-height:48px;gap:10px;margin:0;background:#e8edf3;border-bottom:1px solid var(--writer-line)}.writer-preview-nav>div{font-size:11px}.writer-preview-nav .button{min-height:27px;padding:3px 6px}.writer-preview-rail .preview-panel{border:0;border-radius:0;background:white}.writer-preview-rail .preview-toolbar{padding:8px 14px 4px}.writer-preview-rail .game-preview{width:min(calc(100% - 28px),calc(28dvh * var(--preview-aspect)),calc(max(70px, 100cqh - 250px) * var(--preview-aspect)));border-radius:5px;margin:6px auto}.writer-preview-rail .preview-audio{padding:6px 14px 10px;font-size:10px}.writer-preview-context{padding:7px 14px;margin:0;background:white;border-bottom:1px solid #cbd6e2;font-size:10px}.writer-preview-rail .writer-inspector{border:0;border-radius:0;background:#f8fafc;padding:0 14px 16px}.writer-inspector .writer-section-heading{top:0;padding:10px 12px;margin:0 -14px 14px;background:#e8edf3;border-bottom:1px solid #cbd6e2}.writer-inspector .writer-section-heading h2{font-size:12px;font-weight:600}.writer-inspector .writer-section-heading .button{min-height:26px;padding:3px 5px}.writer-cast-heading{font-size:11px;color:#566b83;margin:8px 0}.writer-inspector .writer-help{color:#738399;font-size:10px;margin:8px 0 12px}.writer-auto-cast{gap:10px}.writer-auto-cast .writer-slot{padding:0;border:1px solid #d1dce8;border-radius:6px;background:white}.writer-auto-cast .writer-slot.is-selected{outline:none;border-color:#70a0d4}.writer-cast-details>summary{display:flex;align-items:center;gap:10px;padding:10px;background:#f1f5f9;border-radius:5px;cursor:pointer;list-style:none}.writer-cast-details>summary::-webkit-details-marker{display:none}.writer-cast-details[open]>summary{border-bottom:1px solid #dce4ee;border-radius:5px 5px 0 0}.writer-cast-details>summary img{width:34px;height:38px;object-fit:contain;border-radius:4px;background:#e1e9f3}.writer-cast-details>summary>span{flex:1;min-width:0;overflow-wrap:anywhere}.writer-cast-details>summary strong{font-size:12px}.writer-cast-details>summary small{display:block;font-size:10px;color:#718399;margin-top:3px}.writer-cast-details[open]>summary>svg{transform:rotate(90deg)}.writer-cast-details>summary:focus-visible{outline:2px solid #5a8dc4;outline-offset:2px}.writer-cast-detail-body{padding:10px 12px}.writer-slot-head{min-height:26px}.writer-slot-head .writer-link,.writer-slot-head strong{font-size:10px}.writer-slot-head .writer-link{min-height:24px}.writer-auto-cast .writer-slot-image{min-height:30px;padding:5px 8px;border:1px solid #d8e0e9;background:white;border-radius:5px;font-size:11px}.writer-slot-fields .field>span{font-size:10px}.writer-cast-moves .button{min-height:28px;font-size:10px}.writer-cast-layers{margin-top:10px;border-top:1px solid #e2e8ef;padding-top:4px;font-size:10px}.writer-cast-add{border-style:dashed!important;min-height:34px;font-size:11px!important}.writer-modal{border-radius:9px}.writer-modal>header{background:#e8edf3}@media (min-width:1450px){.writer-workspace-grid{grid-template-columns:210px minmax(0,1fr)}.writer-edit-grid{grid-template-columns:minmax(0,1fr) 420px}.writer-script-list{padding:14px 28px 24px}.writer-script-column .writer-script-toolbar,.writer-script-column .writer-workspace-controls{padding-left:28px;padding-right:28px}}@media (max-width:1200px){.writer-workspace-grid{grid-template-columns:165px minmax(0,1fr)}.writer-edit-grid{grid-template-columns:minmax(0,1fr) 320px;gap:0}.writer-header{gap:12px}.writer-main.is-script{padding:0}.writer-script-list{padding:12px 14px 24px}.writer-script-column .writer-script-toolbar{padding:14px 16px}.writer-script-column .writer-workspace-controls{padding:0 16px;gap:8px}.writer-script-toolbar h1{font-size:19px}}@media (max-width:900px){.writer-app{--writer-header-height:80px}.writer-header{padding:6px 12px 0;gap:6px 12px}.writer-workspace-grid{grid-template-columns:minmax(0,1fr)}.writer-outline{padding-top:48px}.writer-script-column .writer-workspace-controls{position:relative}}@media (max-width:600px){.writer-ip{padding-left:10px}.writer-script-column .writer-script-toolbar{padding:10px 12px}.writer-script-toolbar h1{font-size:16px}.writer-script-toolbar>.button{font-size:11px;padding:7px 9px}.writer-script-column .writer-workspace-controls{padding:0 12px}.writer-script-column .authoring-tabs{gap:12px}.writer-script-column .authoring-tabs button{font-size:11px}.writer-edit-grid{gap:0}.writer-preview-nav{min-height:38px;padding:5px 12px}.writer-preview-rail .game-preview{width:min(calc(100% - 28px),calc(15dvh * var(--preview-aspect)))}.writer-scene{padding-left:8px}.writer-row{margin-left:8px}.writer-row-head{gap:5px;padding:4px 8px}.writer-row-actions{gap:0}.writer-dialogue-fields{padding:10px}.writer-preview-rail .writer-inspector{padding-left:12px;padding-right:12px}.writer-row-footer{flex-wrap:wrap;padding:0 10px 8px}}.writer-workspace-grid.outline-collapsed{grid-template-columns:minmax(0,1fr)}.writer-preview-rail.is-preview-minimized .game-preview{width:min(calc(100% - 28px),calc(80px * var(--preview-aspect)))}@media (max-width:600px){.writer-preview-rail.is-preview-minimized .game-preview{width:min(calc(100% - 28px),calc(48px * var(--preview-aspect)))}}.writer-script-toolbar h1{font-weight:650}.writer-preview-rail .dialogue-window{background:#202b39eb;border:0;box-shadow:none}.writer-preview-rail .dialogue-window strong{color:#c5def8}.game-preview{background:#000;border-radius:0;isolation:isolate}.game-preview:after{display:none}.preview-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;container-type:inline-size;isolation:isolate}.preview-stage .preview-background{object-fit:cover}.preview-stage .preview-character{transition:filter .18s ease}.preview-stage .preview-character-anchor.is-listening .preview-character{filter:brightness(.65) drop-shadow(0 6px 8px rgba(0,0,0,.28))}.preview-effect{width:100%;height:100%;object-fit:cover;z-index:20}.preview-effect,.preview-item-dimmer{position:absolute;inset:0;pointer-events:none}.preview-item-dimmer{z-index:21;background:rgba(0,0,0,.65);animation:preview-item-dim .22s ease both}.preview-item{z-index:22;left:50%;top:38%;transform:translate(-50%,-50%);width:55%;height:65%;object-fit:contain;animation:preview-item-in .22s ease both}.preview-item,.preview-story-heading{position:absolute;pointer-events:none}.preview-story-heading{z-index:30;top:1.5%;left:2.5%;max-width:76%;height:6.5%;display:flex;align-items:center;gap:1.4cqw;padding:0 1cqw;border-left:1px solid #9f252c;background:rgba(12,14,16,.78);color:#fff}.preview-story-path{display:flex;flex:0 0 auto;align-items:center;font-size:1.05cqw;line-height:1.2;color:#d4d4d4}.preview-story-path span+span{margin-left:.7cqw;padding-left:.7cqw;border-left:1px solid rgba(255,255,255,.16)}.preview-story-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.5cqw;line-height:1.2}.preview-playback-controls{position:absolute;z-index:31;top:1.5%;right:2.5%;height:6.5%;display:flex;align-items:stretch;border:1px solid rgba(255,255,255,.28);border-radius:.15cqw;background:rgba(12,14,16,.78)}.preview-playback-controls button{display:flex;align-items:center;justify-content:center;gap:.4cqw;min-width:7.5cqw;padding:0 .8cqw;border:0;border-radius:0;background:none;color:#e5e5e5;font:inherit;font-size:1.05cqw;cursor:pointer}.preview-playback-controls button+button{border-left:1px solid rgba(255,255,255,.16)}.preview-playback-controls button[aria-pressed=true]{color:#fff;background:rgba(159,37,44,.65)}.preview-playback-controls button:disabled{opacity:.4;cursor:default}.preview-playback-controls button:focus-visible{outline:1px solid #fff;outline-offset:-2px}.preview-stage .dialogue-window{left:4.4%;right:4.4%;bottom:4.2%;min-height:26%;padding:1.2cqw 2cqw 2.4cqw;border:1px solid rgba(255,255,255,.2);border-radius:.25cqw;background:rgba(10,10,10,.88);box-shadow:none}.preview-stage .dialogue-window strong{display:block;width:max-content;min-width:22%;max-width:100%;overflow-wrap:anywhere;padding-bottom:.6cqw;margin-bottom:1cqw;border-bottom:1px solid #9f252c;font-size:1.3cqw;line-height:1.3;color:#fff}.preview-stage .dialogue-copy{margin-top:0;font-size:1.5cqw;line-height:1.6;overflow-wrap:anywhere}.preview-stage .dialogue-next{right:2cqw;bottom:1cqw;font-size:1.6cqw}.preview-stage .dialogue-empty{left:auto;min-height:0;width:5cqw;height:4cqw;padding:0}@keyframes preview-item-dim{0%{opacity:0}to{opacity:1}}@keyframes preview-item-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.preview-stage .preview-character{transition:none}.preview-item,.preview-item-dimmer{animation:none}}