:root{--bg:#f7f4ee;--surface:#fff;--surface-muted:#f1ece3;--text:#1f1c18;--muted:#6f675d;--border:#e4ddd1;--border-strong:#cfc5b5;--accent:#a8322d;--accent-strong:#8a2622;--accent-soft:#f7e3df;--narration:#4f6a8f;--highlight:#fff6dc;--highlight-border:#e0a21b;--highlight-text:#6b4a00;--danger:#b42318;--danger-soft:#fdecea;--success:#2f7d4f;--placeholder:#a69d90;--toast:#2d2925;--backdrop:#1f1c1866;--header-bg:#f7f4eeeb;--bar-bg:#fffffff5;--character-lift:0%;--radius:14px;--radius-small:10px;--shadow:0 1px 2px #1f1c180f, 0 4px 16px #1f1c180f;--shadow-raised:0 8px 32px #1f1c1829;--header-height:56px;--bar-height:72px;--rehearsal-width:1100px;--safe-bottom:env(safe-area-inset-bottom,0px);--font-body:"Segoe UI", system-ui, -apple-system, Roboto, sans-serif;--font-script:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;scrollbar-gutter:stable;font-family:var(--font-body);color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}:root[data-theme=dark]{--bg:#1a1816;--surface:#24211e;--surface-muted:#2d2925;--text:#ece6dc;--muted:#a39a8e;--border:#37322c;--border-strong:#4a443c;--accent:#c2453d;--accent-strong:#d2564e;--accent-soft:#3d2220;--narration:#8fa9cf;--highlight:#3a3120;--highlight-text:#f0c968;--danger:#e5564b;--danger-soft:#3d1f1c;--success:#5fb583;--placeholder:#7a7268;--toast:#3d3833;--backdrop:#0000008c;--header-bg:#1a1816eb;--bar-bg:#24211ef5;--character-lift:40%;--shadow:0 1px 2px #0000004d, 0 4px 16px #0000004d;--shadow-raised:0 8px 32px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100dvh;margin:0;font-size:16px;line-height:1.5}body.has-sheet{overflow:hidden}h1,h2,h3,p{margin:0}a{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}.muted{color:var(--muted)}.eyebrow{color:var(--accent);letter-spacing:.18em;text-transform:uppercase;font-size:12px;font-weight:700}.brand{color:var(--text);font-family:var(--font-script);letter-spacing:-.01em;font-size:22px;font-weight:700;text-decoration:none}.brand span{color:var(--accent);font-style:italic}.brand--large{font-size:44px;line-height:1}.icon{flex-shrink:0;width:20px;height:20px}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;margin:48px auto;animation:.8s linear infinite spin}.loading{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;display:flex}.loading .spinner{margin:0}.empty-state{border:1.5px dashed var(--border-strong);border-radius:var(--radius);text-align:center;padding:40px 20px}.empty-state-title{font-family:var(--font-script);margin-bottom:4px;font-size:20px;font-weight:700}.empty-hint{color:var(--muted);font-size:14px}.notice{border-radius:var(--radius-small);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.notice--error{color:var(--danger);background:var(--danger-soft)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35}}@keyframes rise{0%{opacity:0;transform:translateY(24px)}}@keyframes located{0%,70%{border-left-color:var(--highlight-border);background:var(--highlight)}}@keyframes fade{0%{opacity:0}}.button{border:1px solid var(--border-strong);background:var(--surface);white-space:nowrap;cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-weight:600;transition:background .15s,border-color .15s,transform .1s;display:inline-flex}.button:hover:not(:disabled){border-color:var(--muted)}.button:active:not(:disabled){transform:scale(.97)}.button:disabled{opacity:.45;cursor:default}.button--primary{border-color:var(--accent);color:#fff;background:var(--accent)}.button--primary:hover:not(:disabled){border-color:var(--accent-strong);background:var(--accent-strong)}.button--danger{border-color:var(--danger);color:#fff;background:var(--danger)}.button--ghost{color:var(--muted);background:0 0;border-style:dashed}.button--small{min-height:36px;padding:0 14px;font-size:14px}.button--small .icon{width:16px;height:16px}.button--block{width:100%}.icon-button{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-button:hover{color:var(--text);background:var(--surface-muted)}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;font-weight:600}.form{flex-direction:column;gap:16px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--muted);font-size:13px;font-weight:600}.color-picker{flex-wrap:wrap;gap:8px;display:flex}.color-option{border:2px solid var(--surface);color:#fff;background:var(--character-color);width:36px;height:36px;box-shadow:0 0 0 1px var(--border-strong);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.color-option[aria-checked=true]{box-shadow:0 0 0 2px var(--text)}.color-option--auto{border-radius:999px;width:auto;padding:0 14px;font-size:13px;font-weight:700}.color-option--custom{background:conic-gradient(#e53935,#fdd835,#43a047,#00acc1,#1e88e5,#8e24aa,#e53935)}.color-option--custom.is-custom{background:var(--character-color)}.color-option--custom input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.input{border:1px solid var(--border-strong);border-radius:var(--radius-small);background:var(--surface);outline:none;width:100%;min-height:46px;padding:10px 14px;font-size:16px;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.input::placeholder{color:var(--placeholder)}.textarea{resize:vertical;field-sizing:content;min-height:96px;line-height:1.5}.select{width:auto;min-height:36px;padding:4px 10px;font-size:15px}.form-actions{justify-content:flex-end;gap:8px;display:flex}.badge{color:#fff;background:var(--character-color,var(--accent));font-family:var(--font-body);letter-spacing:.04em;vertical-align:2px;border-radius:999px;margin-left:8px;padding:1px 8px;font-size:11px;font-weight:700;display:inline-block}.count{color:var(--muted);margin-left:4px;font-size:14px;font-weight:500}.menu{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.menu-item{border-radius:var(--radius-small);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 8px;font-size:16px;display:flex}.menu-item .icon{color:var(--muted)}.menu-item input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}.menu-item:hover:not(:disabled){background:var(--surface-muted)}.menu-item:disabled{opacity:.4;cursor:default}.menu-item.is-danger,.menu-item.is-danger .icon{color:var(--danger)}.confirm{flex-direction:column;gap:20px;display:flex}.toasts{top:calc(var(--header-height) + 8px);z-index:60;pointer-events:none;flex-direction:column;gap:8px;width:min(440px,100% - 32px);display:flex;position:fixed;left:50%;transform:translate(-50%)}.toast{border-radius:var(--radius-small);color:#fff;background:var(--toast);box-shadow:var(--shadow-raised);text-align:left;pointer-events:auto;cursor:pointer;border:none;padding:12px 16px;font-size:15px;animation:.2s ease-out fade}.toast--error{background:var(--danger)}.import-step{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.import-step-heading{justify-content:space-between;align-self:stretch;align-items:center;gap:8px;display:flex}.import-step-title{font-size:16px}.import-step .textarea,.import-copy{align-self:stretch}.import-copy{flex-direction:column;gap:8px;display:flex}.import-copy .button{align-self:flex-end}.import-text{height:120px;min-height:120px;color:var(--muted);resize:vertical;field-sizing:fixed;font-family:ui-monospace,monospace;font-size:13px}.button.is-disabled{opacity:.6;pointer-events:none}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sheet-backdrop{z-index:50;background:var(--backdrop);justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-height:92dvh;box-shadow:var(--shadow-raised);border-radius:20px 20px 0 0;flex-direction:column;animation:.2s ease-out rise;display:flex}.sheet-header{justify-content:space-between;align-items:center;gap:12px;padding:14px 12px 6px 20px;display:flex}.sheet-header h2{font-family:var(--font-script);text-overflow:ellipsis;white-space:nowrap;font-size:20px;overflow:hidden}.sheet-body{padding:8px 20px calc(20px + var(--safe-bottom));overflow-y:auto}.sheet-pages{margin:-4px;overflow:hidden}.sheet-pages-track{align-items:flex-start;transition:transform .25s;display:flex}.sheet-pages--second .sheet-pages-track{transform:translate(-100%)}.sheet-page{flex:0 0 100%;min-width:0;padding:4px}.sheet-page.is-collapsed{height:0;overflow:hidden}@media (width>=640px){.sheet-backdrop{align-items:center;padding:24px}.sheet{border-radius:20px;width:min(480px,100%)}.sheet--wide{width:min(760px,100%)}}.page{min-height:100dvh}.app-header{z-index:30;height:var(--header-height);border-bottom:1px solid var(--border);background:var(--header-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);justify-content:space-between;align-items:center;gap:12px;padding:0 12px 0 16px;display:flex;position:sticky;top:0}.app-header-start{align-items:center;gap:8px;min-width:0;display:flex}.app-header-start .icon-button{color:var(--text);margin-left:-8px}.app-header-title{font-family:var(--font-script);text-overflow:ellipsis;white-space:nowrap;font-size:19px;overflow:hidden}.app-header-end{flex-shrink:0;align-items:center;gap:10px;display:flex}.user-chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;align-items:center;gap:8px;max-width:180px;height:36px;padding:0 12px 0 4px;display:flex}.user-avatar{color:#fff;background:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:700;display:inline-flex}.user-name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.connection-banner{top:var(--header-height);z-index:25;color:var(--highlight-text);background:var(--highlight);text-align:center;padding:8px 16px;font-size:14px;position:sticky}.bottom-bar{z-index:30;min-height:calc(var(--bar-height) + var(--safe-bottom));padding:12px 16px calc(12px + var(--safe-bottom));border-top:1px solid var(--border);background:var(--bar-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);align-items:center;gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0}@media (width<=479px){.user-chip{padding-right:4px}.user-name{display:none}}.welcome{background:radial-gradient(ellipse 80% 40% at 50% 0%, var(--accent-soft), transparent 70%), linear-gradient(90deg, #a8322d14, transparent 18%, transparent 82%, #a8322d14);justify-content:center;align-items:center;min-height:100dvh;padding:24px 16px;display:flex}.welcome-card{border:1px solid var(--border);background:var(--surface);width:min(400px,100%);box-shadow:var(--shadow-raised);text-align:center;border-radius:24px;flex-direction:column;gap:12px;padding:32px 24px;display:flex}.welcome-card h1{font-family:var(--font-script);margin-top:12px;font-size:28px}.welcome-card .form{text-align:left;margin-top:12px}.welcome-divider{color:var(--muted);align-items:center;gap:12px;margin-top:12px;font-size:13px;display:flex}.welcome-divider:before,.welcome-divider:after{content:"";border-top:1px solid var(--border);flex:1}.play-list{flex-direction:column;gap:20px;width:min(760px,100%);margin:0 auto;padding:28px 16px 48px;display:flex}.play-list-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.play-list-actions{gap:8px;display:flex}.play-list-heading h1{font-family:var(--font-script);font-size:36px;line-height:1.1}.play-cards{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.play-card{border:1px solid var(--border);border-radius:var(--radius);color:var(--text);background:var(--surface);box-shadow:var(--shadow);align-items:center;gap:16px;padding:16px;text-decoration:none;transition:border-color .15s,transform .1s;display:flex}.play-card:hover{border-color:var(--border-strong)}.play-card:active{transform:scale(.99)}.play-card>.icon{color:var(--muted)}.play-card-initial{width:48px;height:48px;color:var(--accent);background:var(--accent-soft);font-family:var(--font-script);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:24px;font-weight:700;display:flex}.play-card-body{flex-direction:column;flex:1;min-width:0;display:flex}.play-card-title{font-family:var(--font-script);font-size:19px;font-weight:700}.play-card-author{color:var(--muted);font-size:14px}.play-card-annotation{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:4px;font-size:14px;display:-webkit-box;overflow:hidden}.play-layout{padding:16px 16px calc(var(--bar-height) + var(--safe-bottom) + 32px)}.play-sidebar,.play-main{display:none}.play-sidebar.is-active{flex-direction:column;gap:16px;display:flex}.play-main.is-active{display:block}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:16px}.panel-header{justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:12px;display:flex}.panel-title{font-family:var(--font-script);font-size:20px}.play-info .panel-header{margin-bottom:0}.play-info-title{font-family:var(--font-script);font-size:24px;line-height:1.2}.play-info-author{color:var(--muted)}.play-info-annotation{color:var(--muted);white-space:pre-wrap;margin-top:12px;font-size:15px}.character-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.character{border-top:1px solid var(--border);align-items:center;gap:10px;padding:10px 0;display:flex}.character--role{grid-template-columns:12px minmax(0,1fr) auto auto;row-gap:0;display:grid}.character--role .character-body{grid-column:2}.character:first-child{border-top:none}.character-dot{background:var(--character-color);border-radius:50%;flex-shrink:0;width:12px;height:12px}.character-body{flex-direction:column;flex:1;min-width:0;display:flex}.character-name{font-weight:700}.character-description{color:var(--muted);font-size:14px}.character-meta{color:var(--muted);font-size:12px}.character-heading{grid-column:2/-1;justify-content:space-between;align-items:baseline;gap:8px;min-width:0;display:flex}.character-actor{max-width:50%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;overflow:hidden}.actor-roles{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}.actor-roles .badge{margin-left:0}.actors-back{align-self:flex-start}.character-lines .menu-item{border-left:3px solid var(--character-color);border-radius:4px var(--radius-small) var(--radius-small) 4px;margin-bottom:8px;padding:10px 12px}.character-lines-scene{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;padding:16px 8px 6px;font-size:12px;font-weight:700}.character-lines-scene:first-child{padding-top:0}.character-lines-text{font-family:var(--font-script);overflow-wrap:anywhere;font-size:17px;line-height:1.5}.scene-nav{display:none}.scene-link{gap:10px;min-height:44px;padding:8px;font-size:15px;line-height:1.3}.scene-link.is-active{background:var(--accent-soft);font-weight:600}.scene-link .scene-number,.scene-bar .scene-number{min-width:26px;height:26px;font-size:13px}.scene-link-name{overflow-wrap:anywhere;flex:1;min-width:0}.scene-bar{top:var(--header-height);z-index:20;border:none;border-bottom:1px solid var(--border);width:calc(100% + 32px);color:var(--text);background:var(--header-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font:inherit;text-align:left;cursor:pointer;align-items:center;gap:10px;margin:-16px -16px 16px;padding:8px 16px;display:flex;position:sticky}.scene-bar .icon{color:var(--muted)}.scene-bar-name{min-width:0;font-family:var(--font-script);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:17px;overflow:hidden}.star-button.is-active{color:var(--highlight-border)}.tabs{background:var(--surface-muted);border-radius:999px;flex:1;gap:4px;padding:4px;display:flex}.tab{min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:999px;flex:1;justify-content:center;align-items:center;gap:6px;font-weight:600;display:flex}.tab .icon{width:18px;height:18px}.tab.is-active{color:var(--text);background:var(--surface);box-shadow:var(--shadow)}.edit-bar-start{flex-shrink:0}.rehearsal-strip{top:var(--header-height);z-index:20;padding:8px max(16px, calc((100% - var(--rehearsal-width)) / 2));border-bottom:1px solid var(--border);background:var(--bar-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);align-items:center;gap:12px;display:flex;position:sticky}.live-pill{color:#fff;background:var(--accent);letter-spacing:.06em;text-transform:uppercase;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-flex}.live-dot{background:#fff;border-radius:50%;width:7px;height:7px;animation:1.4s ease-in-out infinite pulse}.rehearsal-scene{min-width:0;font-family:var(--font-script);text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:700;overflow:hidden}.role-picker{color:var(--muted);flex-shrink:0;align-items:center;gap:6px;font-size:13px;display:flex}.role-picker .select{max-width:140px}.rehearsal-bar{padding-right:max(16px, calc((100% - var(--rehearsal-width)) / 2));padding-left:max(16px, calc((100% - var(--rehearsal-width)) / 2));transition:background .2s}.rehearsal-bar.is-my-cue{background:var(--accent-soft)}.rehearsal-back{flex-shrink:0}.rehearsal-follow[aria-pressed=true],.rehearsal-stop{color:var(--accent)}.rehearsal-follow{margin-left:auto}.rehearsal-follow[aria-pressed=true]{background:var(--accent-soft)}.rehearsal-progress{flex-direction:column;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.rehearsal-count{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14px;font-weight:700}.is-my-cue .rehearsal-count{color:var(--accent)}.progress-track{background:var(--surface-muted);border-radius:999px;width:100%;height:4px;overflow:hidden}.progress-fill{background:var(--accent);height:100%;transition:width .3s ease-out;display:block}.rehearsal-next{flex-shrink:0;min-height:52px;padding:0 26px;font-size:18px}.is-rehearsal .play-layout{max-width:var(--rehearsal-width);margin:0 auto}@media (width<=479px){.role-picker>span{display:none}.rehearsal-bar,.rehearsal-strip{gap:8px}.rehearsal-back{width:44px;padding:0}.rehearsal-back .button-label{display:none}.rehearsal-next{padding:0 18px}}@media (width>=900px){.play-layout{grid-template-columns:340px minmax(0,1fr);gap:32px;max-width:1440px;margin:0 auto;padding:24px 24px 120px;display:grid}.play-sidebar,.play-sidebar.is-active{top:calc(var(--header-height) + 24px);max-height:calc(100dvh - var(--header-height) - 48px);flex-direction:column;align-self:start;gap:16px;display:flex;position:sticky;overflow-y:auto}.play-main{display:block}.is-rehearsal .play-layout{grid-template-columns:minmax(0,1fr)}.edit-bar{border:1px solid var(--border);min-height:0;box-shadow:var(--shadow-raised);border-radius:999px;padding:8px;bottom:24px;left:auto;right:24px}.edit-bar .tabs{display:none}.scene-bar{width:100%;margin:-24px 0 16px;padding:8px 4px}}@media (width>=1200px){.play-layout{grid-template-columns:300px minmax(0,1fr) 240px}.scene-bar{display:none}.scene-nav{top:calc(var(--header-height) + 24px);max-height:calc(100dvh - var(--header-height) - 136px);align-self:start;display:block;position:sticky;overflow-y:auto}}.edit-preview{flex-direction:column;align-self:stretch;gap:20px;display:flex}.edit-preview-summary{flex-wrap:wrap;gap:6px;display:flex}.edit-preview-section{flex-direction:column;gap:8px;display:flex}.edit-preview-title{border-bottom:1px solid var(--border-strong);font-family:var(--font-script);padding-bottom:6px;font-size:19px}.edit-preview-name{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.edit-preview-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.edit-preview-item{border-left:3px solid var(--character-color);border-radius:4px var(--radius-small) var(--radius-small) 4px;flex-direction:column;gap:4px;padding:8px 10px 8px 14px;display:flex}.edit-preview-character{color:color-mix(in srgb, var(--character-color), var(--text) var(--character-lift));letter-spacing:.08em;text-transform:uppercase;font-size:13px;font-weight:800}.edit-preview-field{flex-wrap:wrap;gap:6px;font-size:15px;display:flex}.edit-preview .entry-speaker{flex-wrap:wrap;gap:6px}.edit-preview .entry--narration .entry-speaker{color:var(--narration)}.edit-preview .entry-text{font-size:16px}.edit-preview .is-added{background:color-mix(in srgb, var(--success) 8%, transparent)}.edit-preview .is-changed{background:var(--highlight)}.edit-preview .is-moved{background:color-mix(in srgb, var(--narration) 8%, transparent)}.edit-preview .is-deleted{background:color-mix(in srgb, var(--danger) 7%, transparent)}.edit-preview .is-deleted .entry-text{color:var(--muted);text-decoration:line-through}.edit-preview .is-context{opacity:.55}.edit-preview-gap{color:var(--muted);padding:2px 14px;font-size:13px}.diff-tag{font-family:var(--font-body);letter-spacing:0;text-transform:none;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:700}.diff-tag--added{color:var(--success);background:color-mix(in srgb, var(--success) 14%, transparent)}.diff-tag--changed{color:var(--highlight-text);background:color-mix(in srgb, var(--highlight-border) 22%, transparent)}.diff-tag--moved{color:var(--narration);background:color-mix(in srgb, var(--narration) 14%, transparent)}.diff-tag--deleted{color:var(--danger);background:color-mix(in srgb, var(--danger) 12%, transparent)}.diff-added{background:color-mix(in srgb, var(--success) 22%, transparent);border-radius:3px;text-decoration:none}.diff-deleted{color:var(--danger);background:color-mix(in srgb, var(--danger) 12%, transparent);border-radius:3px}.script{flex-direction:column;gap:36px;display:flex}.scene-header{border-bottom:1px solid var(--border-strong);align-items:center;gap:12px;margin-bottom:12px;padding-bottom:10px;display:flex}.scene-number{min-width:30px;height:30px;color:var(--accent);background:var(--accent-soft);font-variant-numeric:tabular-nums;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0 6px;font-weight:700;display:inline-flex}.scene-title{min-width:0;font-family:var(--font-script);flex:1;font-size:22px;line-height:1.25}.entries{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.entry{border-radius:4px var(--radius-small) var(--radius-small) 4px;border-left:3px solid #0000;align-items:flex-start;gap:4px;padding:10px 10px 10px 14px;transition:opacity .3s,background .3s,border-color .3s,box-shadow .3s;display:flex}.entry--dialog{border-left-color:var(--character-color)}.entry--narration{padding-left:28px}.entry.is-mine{background:color-mix(in srgb, var(--character-color) 7%, transparent)}.entry.is-located{animation:4.5s ease-in located}.entry-content{flex:1;min-width:0}.entry-speaker{color:color-mix(in srgb, var(--character-color), var(--text) var(--character-lift));letter-spacing:.08em;text-transform:uppercase;align-items:center;font-size:12px;font-weight:800;display:flex}.entry-text{font-family:var(--font-script);white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:1.55}.narration{color:var(--narration);font-style:italic}.entry-actions{opacity:.55;margin:-12px -6px -12px auto}.entry--narration .entry-actions{float:right;margin:-8px -6px -12px 4px}.entry:hover .entry-actions{opacity:1}.entry-slot{padding:6px 0}.entry-editor{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;gap:12px;padding:14px;display:flex}.entry-editor-kind{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:700}.entry-editor-text{font-family:var(--font-script);font-size:17px}.entry-editor--narration .entry-editor-text{color:var(--narration);font-style:italic}.speaker-picker{flex-wrap:wrap;gap:6px;display:flex}.speaker-option{border:1.5px solid var(--character-color);min-height:36px;color:color-mix(in srgb, var(--character-color), var(--text) var(--character-lift));cursor:pointer;background:0 0;border-radius:999px;padding:0 14px;font-size:14px;font-weight:700}.speaker-option.is-selected{color:#fff;background:var(--character-color)}.scene .empty-hint{padding:8px 14px}.scene-add{gap:8px;margin-top:12px;display:flex}.scene-add .button{flex:1}.add-scene{border:1.5px dashed var(--border-strong);border-radius:var(--radius);min-height:56px;color:var(--muted);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex}.add-scene:hover{border-color:var(--accent);color:var(--accent)}.script.is-rehearsal{gap:28px;padding:25vh 0 40vh}.is-rehearsal .scene-header{opacity:.55}.is-rehearsal .entry{opacity:.4}.is-rehearsal .entry.is-past{opacity:.22}.is-rehearsal .entry.is-next{opacity:.65}.is-rehearsal .entry.is-current{border-left:5px solid var(--highlight-border);background:var(--highlight);box-shadow:var(--shadow-raised);opacity:1;margin:10px 0;padding:16px 16px 18px 18px}.is-rehearsal .entry--narration.is-current{border-left-color:#0000}.is-rehearsal .entry.is-current.is-mine{border-left-color:var(--accent);background:var(--accent-soft)}@media (width>=900px){.entry-text{font-size:19px}}.audit-log{flex-direction:column;gap:12px;display:flex}.audit-day{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-top:8px;font-size:12px;font-weight:700}.audit-day:first-child{margin-top:0}.audit-action{border-bottom:1px solid var(--border);gap:12px;padding-bottom:12px;display:flex}.audit-body{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.audit-meta{align-items:baseline;gap:8px;font-size:14px;display:flex}.audit-meta time{color:var(--muted);font-size:13px}.audit-tag{color:var(--muted);background:var(--border);border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600}.audit-revert{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.audit-revert .icon{width:16px;height:16px}.audit-confirm{flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.audit-confirm span{flex:1}.audit-lines{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.audit-lines li{flex-direction:column;gap:2px;display:flex}.audit-text{font-weight:600}.audit-change{font-family:var(--font-script);overflow-wrap:anywhere;flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.audit-change del{color:var(--muted)}.audit-change ins{text-decoration:none}.audit-quote{color:var(--muted);font-family:var(--font-script);-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.admin-stats li{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;padding:12px 14px;display:flex}.admin-stats strong{font-family:var(--font-script);font-size:28px;line-height:1.1}.admin-stats span{color:var(--muted);font-size:13px}.admin-users{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.admin-user{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);align-items:center;gap:12px;padding:12px 8px 12px 14px;display:flex}.admin-user-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.admin-user-name{overflow-wrap:anywhere;align-items:center;gap:8px;font-weight:600;display:flex}.admin-user-meta{min-width:0;color:var(--muted);align-items:center;gap:8px;font-size:13px;display:flex}.admin-user-login{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.role-badge{color:var(--muted);background:var(--surface-muted);border-radius:999px;flex-shrink:0;padding:2px 10px;font-size:12px;font-weight:700}.role-badge--director{color:var(--highlight-text);background:var(--highlight)}.role-badge--admin{color:var(--accent);background:var(--accent-soft)}@media (width>=900px){.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
