/* Dedicated editor components. Geometry comes from canonical sample coordinates. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hold.zero,.clip.zero{padding:0!important;border:0!important}
body{word-break:keep-all;overflow-wrap:break-word}b,strong{font-weight:600}
button.primary{background:#285ec4;color:#fff}
.timeline-view-menu{position:absolute;right:10px;bottom:calc(100% - 45px);width:240px;display:grid;padding:10px;gap:3px;border:1px solid var(--line);background:var(--surface);border-radius:10px;z-index:20;box-shadow:0 8px 24px #0005}
.timeline-view-menu button{justify-content:flex-start;min-height:44px;font-size:12px}
:root{--bg:#101215;--surface:#181b20;--raised:#23272e;--floor:#1b1f25;--text:#f0f2f5;--muted:#a3abb7;--line:#30353f;--grid:#30353e;--major:#58616d;--blue:#83acfa;--blue-tint:#253651;--green:#6bd4a1;--amber:#d5b17a;--amber-bg:#342e25;--amber-line:#6b5940;--radius:8px;--trim:#e4e7ed;--paper-ink:#20252c}
:root[data-theme=light]{--bg:#eef0f3;--surface:#fff;--raised:#e8ecf1;--floor:#f8f9fb;--text:#202631;--muted:#586476;--line:#d3d9e2;--grid:#dfe4eb;--major:#98a4b4;--blue:#285ec4;--blue-tint:#e4ecfc;--green:#17794e;--amber:#78551e;--amber-bg:#f4ead8;--amber-line:#bca176;--trim:#414c5c}
html,body{letter-spacing:-.2px}button{font-weight:600}button.primary,.play-button{color:#101c30;background:var(--blue)}:root[data-theme=light] button.primary,:root[data-theme=light] .play-button{color:#fff}h1,h2,h3{letter-spacing:-.5px}.editor{grid-template-columns:76px minmax(0,1fr) 308px;grid-template-rows:64px minmax(0,1fr) 280px}.topbar{padding:8px 24px;background:var(--surface);border-bottom:1px solid var(--line);gap:14px}.home-button{border:1px solid var(--line);background:var(--raised);color:var(--blue);border-radius:11px;width:40px;min-width:40px;min-height:40px;padding:9px}.project-name{gap:22px;display:flex;align-items:center;min-width:0}.brand-name{font-size:22px;font-weight:700;letter-spacing:-1.2px;display:block}.brand-name>span{color:var(--blue)}.project-name strong{font-size:14px;font-weight:600;border-left:1px solid var(--line);padding-left:22px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.save-state{font-size:11px;color:var(--muted);position:relative;padding-left:12px}.save-state:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--muted);position:absolute;top:6px;left:0}.header-actions{gap:5px}.header-actions .export-button{border:1px solid var(--line);background:var(--raised);padding:8px 15px}.desktop-share{order:4;color:var(--blue);border:1px solid var(--blue);min-height:40px}.header-actions .export-button{order:5}.work-nav{padding:20px 7px;gap:12px;background:var(--surface)}.work-nav button{font-size:11px;gap:6px;min-height:62px}.work-nav button[aria-pressed=true]{box-shadow:inset 2px 0 var(--blue)}.stage-work{background:var(--bg);min-height:0;display:flex;flex-direction:column}.stage-context{min-height:54px;padding:8px 24px;border:0}.stage-context>div{gap:12px}.stage-context strong{font-size:17px;letter-spacing:-.6px}.stage-context small{font-size:12px;color:var(--muted)}.formation-index{font-size:12px;font-variant-numeric:tabular-nums;border:1px solid var(--line);border-radius:5px;padding:3px 7px;color:var(--muted)}.stage-area{padding:18px 20px 22px;min-height:0;flex:1;display:flex;align-items:center;justify-content:center}.stageboard{background:var(--floor);border:1px solid var(--major);border-radius:2px;box-shadow:0 8px 32px #0000000a;flex:none}.stage-measure,.backstage{top:-20px;line-height:14px;font-size:10px;letter-spacing:1px}.stage-depth{left:-25px;font-size:10px}.audience{top:calc(100% + 6px);font-size:10px;line-height:12px;letter-spacing:1px;color:var(--muted)}.stage-lines{border-radius:0}.grid-line{stroke:var(--grid);stroke-width:.012}.grid-line.center{stroke:var(--major);stroke-dasharray:.08 .08;stroke-width:.022}.route{opacity:.12}.route.focused{opacity:.88;stroke:var(--blue);color:var(--blue)}.route.subdued{opacity:.08}.performer{border:0!important;background:transparent!important;padding:0;outline:0;min-height:0;min-width:0;overflow:visible;touch-action:none}.performer .token{color:#152033;font-weight:700;font-size:clamp(11px,calc(var(--diameter)*.48),20px);box-shadow:0 1px 2px #0002}.performer.chosen .token{outline:2px solid var(--blue);outline-offset:4px;box-shadow:none}.person-name{font-size:11px;line-height:18px;top:calc(100% + 3px);padding:0 3px;font-weight:500;color:var(--text);text-shadow:0 1px var(--floor)}.chosen .person-name{color:var(--blue);background:var(--bg);font-size:12px;font-weight:600;border:1px solid var(--blue);border-radius:4px;line-height:20px;padding:0 7px;z-index:3}.stage-footer{height:32px;min-height:32px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);border:0}.stage-footer button{min-height:28px;padding:2px 8px;font-size:11px}.selection-dock{flex:none;background:var(--surface);border-top:1px solid var(--line);padding:7px 18px 9px}.dock-heading{height:24px;display:flex;align-items:center;gap:10px;font-size:11px}.dock-heading strong{font-size:12px}.dock-heading>span{color:var(--muted)}.dock-heading>button{margin-left:auto;min-height:24px;padding:0 5px;font-size:11px;color:var(--blue)}.cast-strip{display:flex;gap:3px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior:contain;padding:4px 0}.cast-chip{flex:0 0 52px;min-width:52px;padding:4px 2px;min-height:56px;display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:500;border-radius:6px}.cast-chip .person-dot{width:25px;height:25px;min-width:25px;font-size:12px;color:#152033;border:0;background:var(--actor)}.cast-chip[aria-pressed=true]{background:var(--blue-tint);box-shadow:inset 0 0 0 1px var(--blue);color:var(--blue)}.quick-layout{display:none}.inspector{padding:10px 20px 20px;background:var(--surface);border-left:1px solid var(--line);scrollbar-width:thin}.panel-heading{min-height:42px;margin:0;border-bottom:1px solid var(--line);padding-bottom:8px}.panel-heading h2{font-size:12px;color:var(--muted);font-weight:500}.panel-heading>button{min-height:30px;min-width:30px;padding:5px}.panel-heading .icon{width:16px;height:16px}.formation-preview{padding:18px 0 0;display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:center}.formation-preview .thumbnail{width:96px;height:64px;grid-row:span 2}.formation-preview h3{font-size:14px}.formation-preview>p{font-size:12px;line-height:1.7;color:var(--muted);grid-column:1/-1;margin-top:6px}.panel-section{padding:20px 0;border-top:1px solid var(--line);margin-top:20px}.panel-section h3{font-size:13px;margin-bottom:12px}.coordinate-fields{gap:10px}.coordinate-fields label{color:var(--muted);font-size:11px}.coordinate-fields input{font-size:17px;font-weight:600;min-height:46px;background:var(--bg);border-color:var(--line);letter-spacing:.2px}.muted{font-size:12px;line-height:1.7}.panel-section>.muted{margin:10px 0}.panel-section .secondary{font-size:12px}.unit-summary{font-size:13px;line-height:1.8}.partner-note{font-size:12px;color:var(--amber)}.layout-tools{gap:8px}.layout-tools>div{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--bg)}.layout-command{width:100%;min-height:42px;font-size:12px;justify-content:flex-start;padding:8px 10px}.layout-tools small{font-size:10px;padding:0 10px 7px;display:block;color:var(--muted)}.selected-person{display:flex;gap:10px;align-items:center;margin:20px 0}.selected-person>.person-dot{background:var(--actor);color:#152033;width:36px;height:36px;flex:none}.selected-person>div{min-width:0;flex:1}.selected-person h2{font-size:17px}.selected-person p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.7}.selected-person>button{font-size:11px;padding:4px;color:var(--blue)}.nudge{gap:4px}.nudge button{background:var(--raised);font-size:11px}.person-row{min-height:58px}.roster-list{gap:2px}.person-row .person-dot{color:#152033;background:var(--actor)}.timeline{padding:0 20px 8px;grid-template-rows:54px 30px minmax(0,1fr) 43px;background:var(--surface);border-top:1px solid var(--line)}.transport{gap:7px;border-bottom:1px solid var(--line)}.transport button{min-width:40px;min-height:40px;padding:8px}.transport .play-button{border-radius:50%;width:40px;height:40px;min-height:40px;min-width:40px}.play-button .icon{width:20px;height:20px}.clock{font-size:16px;margin-left:12px;font-variant-numeric:tabular-nums;letter-spacing:.3px}.clock span{font-size:11px;color:var(--muted)}.speed{font-size:12px;min-width:48px!important}.transport-end{margin-left:auto;display:flex;gap:5px}.transport-end button[aria-pressed=true]{color:var(--blue)}.timeline-toolbar{height:30px;gap:12px}.track-title{font-size:11px;gap:6px}.track-title>span{font-size:10px;color:var(--muted)}.view-actions{margin-left:auto;gap:2px}.view-actions button{min-height:26px;min-width:34px;font-size:10px;padding:2px 7px}.timeline-scale{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;margin-left:8px}.legend-hold{width:8px;height:8px;background:var(--raised);border:1px solid var(--major)}.legend-move{width:14px;height:3px;background:var(--amber)}.track-inner{min-height:145px}.ruler{height:20px}.tick{font-size:10px;min-height:20px}.clips{height:123px}.clip{height:117px;top:3px}.hold{display:block;padding:2px 4px 23px;background:var(--raised);border-radius:5px}.hold>.thumbnail{width:100%;height:100%;min-height:0}.clip-caption{position:absolute;bottom:4px;left:7px;right:7px;height:18px;font-size:10px;gap:5px}.clip-caption span{color:var(--text)}.clip-caption b{color:var(--muted);font-size:10px}.clip-duration{display:none}.hold.compact{padding:3px 2px}.hold.compact .clip-caption{display:none}.hold.tiny>.thumbnail{display:none}.hold.tiny{padding:0}.thumb-floor{fill:var(--floor);stroke:var(--major);stroke-width:.04}.thumb-center{stroke:var(--major);stroke-width:.03;stroke-dasharray:.1 .1}.ribbon{height:24px;font-size:10px}.move.selected:after{top:43px;bottom:43px}.trim-handle{width:30px;right:-15px}.trim-handle:before{width:7px;right:11px;height:28px;top:calc(50% - 14px);background:var(--trim);border:1px solid var(--floor);border-radius:3px;box-shadow:0 0 0 1px var(--major)}.trim-handle:after{content:'';position:absolute;top:calc(50% - 5px);height:10px;width:1px;right:14px;background:var(--floor)}.waveform{height:17px;margin-top:3px;border-top:1px solid var(--line)}.waveform i{opacity:.6}.waveform>span{font-size:9px}.selection-detail{gap:10px;padding:3px 0}.selection-detail>.detail-thumb{width:45px;height:30px}.selection-detail strong,.selection-detail span{font-size:11px}.selection-detail button{font-size:11px;min-height:36px}.playhead{top:14px;background:var(--green);width:2px}.playhead>span{width:8px;height:8px;left:-3px;top:-6px;transform:rotate(45deg);border-radius:1px}.review-bar{height:24px;min-height:24px;background:var(--bg);padding:0 20px;gap:14px;font-size:9px}.review-bar button{min-height:24px;font-size:9px}.review-bar>span{font-size:9px}.review-bar a{font-size:9px}.review-settings{bottom:30px}.message{bottom:32px;box-shadow:0 6px 24px #0003;font-size:12px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.6px;display:block;margin-bottom:13px}.home-page .page-body{max-width:1140px;padding:60px 40px}.home-page .page-title{margin-bottom:50px;align-items:flex-end}.home-page h1{font-size:44px;line-height:1.22;letter-spacing:-2px;font-weight:600}.home-page .page-title p{font-size:14px;margin-top:20px}.home-page .page-title>.primary{min-height:44px;min-width:110px}.project-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.project-list-heading h2{font-size:15px}.project-list-heading h2>span{color:var(--muted);margin-left:6px;font-size:12px}.project-search{width:260px}.project-search input{font-size:12px}.project-list{margin-top:20px}.project-feature{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.project-art{position:relative;padding:32px 36px 50px;background:var(--floor)}.project-art>.thumbnail{width:100%;height:auto;aspect-ratio:1.5}.project-art-label{position:absolute;left:24px;right:24px;bottom:15px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.8px;color:var(--muted)}.project-content{padding:32px;display:flex;flex-direction:column;justify-content:center}.project-content h2{font-size:23px;font-weight:600;letter-spacing:-.8px}.project-content>p{font-size:12px;color:var(--muted);margin-top:9px}.project-content>p span{margin:0 5px}.formation-glimpse{display:flex;gap:12px;max-width:310px;margin:28px 0}.formation-glimpse>.thumbnail{width:calc((100% - 24px)/3);height:auto;aspect-ratio:1.5}.project-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}.project-bottom small{font-size:10px;color:var(--muted)}.project-bottom button{font-size:12px}.home-footnote{font-size:12px;color:var(--muted);margin-top:24px;text-align:center}.export-page .page-body{max-width:1120px;padding-top:44px}.export-page .page-title{margin-bottom:28px}.export-page .page-title h1{font-size:28px}.export-layout{grid-template-columns:280px minmax(0,1fr);gap:56px}.export-options h2,.preview-heading h2{font-size:13px}.format-option{background:var(--surface);min-height:68px}.format-option[aria-pressed=true]{border-color:var(--blue)}.format-option small{font-size:11px}.export-options .panel-section{margin-top:18px;padding-top:20px}.preview-column{background:var(--raised);padding:20px 24px 28px;border-radius:8px}.paper-preview{border:1px solid #d3d9e2;box-shadow:0 8px 28px #0000000d;border-radius:2px;padding:30px}.paper-preview>svg{margin:18px 0}.print-caption{font-size:11px;line-height:1.8}.output-status{font-size:11px}.rehearsing:not(.panel-open){grid-template-columns:76px minmax(0,1fr) 0}.rehearsal-bar{background:var(--surface);border-bottom:1px solid var(--line);padding:0 20px;min-height:40px}.rehearsal-bar button{font-size:11px;min-height:36px}.rehearsing .stage-footer{min-height:40px;height:auto;padding-top:8px;padding-bottom:8px}.rehearsing .selection-dock{padding-bottom:8px}.share-dialog{position:fixed;inset:0;z-index:50;background:#0007;display:grid;place-items:center;padding:20px}.share-dialog>section{width:420px;max-width:100%;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:14px;display:grid;gap:18px}.share-dialog h2{font-size:20px}.share-dialog p{color:var(--muted);font-size:13px}.share-dialog .share-link{padding:13px;background:var(--bg);border:1px solid var(--line);border-radius:6px;font-size:12px;word-break:break-all}.share-dialog .share-actions{display:flex;justify-content:flex-end;gap:8px}
@media(min-width:900px) and (max-width:1100px){.editor{grid-template-columns:68px minmax(0,1fr) 268px;grid-template-rows:60px minmax(0,1fr) 254px}.project-name{gap:12px}.brand-name{font-size:19px}.project-name strong{padding-left:12px;max-width:210px}.save-state{display:none}.inspector{padding:10px 16px}.stage-context{padding:6px 16px}.stage-context small{display:none}.stage-context strong{font-size:14px}.stage-context>div{flex-wrap:nowrap}.stage-area{padding:18px 12px 22px}.timeline{grid-template-rows:50px 28px minmax(0,1fr) 40px}.clip{height:97px}.clips{height:103px}.track-inner{min-height:125px}}
@media(max-width:899px) and (orientation:portrait){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open){grid-template-columns:minmax(0,1fr);grid-template-rows:58px minmax(0,1fr) 267px 60px}.topbar{padding:6px 10px;gap:10px}.home-button{width:36px;min-width:36px;min-height:36px;padding:7px}.project-name{display:block;flex:1}.brand-name{display:none}.project-name strong{border:0;padding:0;font-size:13px;max-width:170px;line-height:20px;display:block}.save-state{display:block;padding-left:10px;font-size:10px;line-height:16px}.save-state:before{top:5px;width:4px;height:4px}.header-actions{gap:0;flex:none}.header-actions>button{min-width:36px;min-height:40px;padding:7px}.header-actions .export-button{padding:6px 10px;min-height:34px;min-width:44px;margin-left:3px;font-size:11px}.desktop-share{display:none}.work-nav{grid-column:1;grid-row:4;padding:3px 7px 4px;gap:0;flex-direction:row;border-top:1px solid var(--line);border-right:0}.work-nav button{flex:1;min-height:50px;min-width:0;font-size:10px;gap:3px;padding:3px 0}.work-nav button[aria-pressed=true]{box-shadow:inset 0 -2px var(--blue)}.work-nav .icon{width:19px;height:19px}.stage-work{grid-column:1;grid-row:2;min-height:0;visibility:visible!important}.stage-context{padding:3px 14px;min-height:40px}.stage-context>div{gap:8px;flex-wrap:nowrap;min-width:0}.stage-context strong{font-size:14px;max-width:170px}.stage-context small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}.formation-index{font-size:10px;padding:2px 5px}.stage-context>button{min-width:32px;min-height:32px;padding:5px}.stage-context .icon{width:17px;height:17px}.stage-area{padding:16px 6px 20px}.stage-measure,.backstage{font-size:9px;top:-17px;letter-spacing:.8px}.stage-depth{display:none}.audience{font-size:9px;top:calc(100% + 3px);letter-spacing:.5px}.person-name{font-size:10px;line-height:15px;top:calc(100% + 2px)}.performer .token{font-size:clamp(10px,calc(var(--diameter)*.53),15px)}.chosen .person-name{font-size:11px;line-height:18px;padding:0 5px}.stage-footer{display:none}.selection-dock{padding:5px 10px 7px;height:132px}.dock-heading{height:22px;font-size:10px;gap:8px}.dock-heading strong{font-size:11px}.dock-heading>button{font-size:10px}.cast-strip{padding:4px 0 6px;gap:3px;scrollbar-width:none}.cast-chip{flex-basis:45px;min-width:45px;min-height:53px;font-size:10px;gap:3px;padding:3px}.cast-chip .person-dot{width:25px;height:25px;font-size:12px}.quick-layout{display:grid;grid-template-columns:1fr 1fr 1fr 1.18fr;gap:5px;border-top:1px solid var(--line);padding-top:5px}.quick-layout button{min-width:0;min-height:34px;padding:4px 2px;font-size:10px;border:1px solid var(--line);background:var(--raised);gap:3px}.quick-layout .icon{width:13px;height:13px}.inspector{position:fixed;z-index:15;top:auto;bottom:calc(24px + 60px + 267px);left:8px;right:8px;width:auto;max-height:46vh;height:auto;min-height:180px;padding:8px 16px 14px;border:1px solid var(--line);border-radius:12px;box-shadow:0 -6px 32px #0005;overflow:auto;display:none}.panel-open .inspector{display:block}.panel-heading{top:-8px;padding-top:4px;min-height:40px;position:sticky;background:var(--surface);z-index:2}.panel-heading:after{display:none}.panel-section{margin-top:10px;padding:12px 0}.panel-section h3{margin-bottom:8px}.roster-mode-entry{top:32px;padding:6px 0}.roster-mode-entry button{min-height:36px;font-size:11px}.roster-chooser{gap:6px}.roster-chooser .panel-row{margin-top:3px}.roster-chooser .panel-row h3{font-size:12px}.person-row{min-height:48px}.layout-tools{grid-template-columns:1fr 1fr;gap:6px}.layout-command{min-height:38px;font-size:11px}.layout-tools small{font-size:10px;padding-bottom:4px}.timeline{grid-column:1;grid-row:3;padding:0 12px 4px;grid-template-rows:49px 29px minmax(0,1fr) 43px}.transport{gap:3px}.transport button{min-height:38px;min-width:35px;padding:7px}.transport .play-button{width:38px;min-width:38px;height:38px;min-height:38px}.transport .icon{width:18px;height:18px}.clock{font-size:15px;margin-left:5px}.clock span{font-size:10px;letter-spacing:0}.transport-end{gap:0}.speed{font-size:11px;min-width:42px!important}.timeline-toolbar{height:29px}.timeline-scale{display:none}.view-actions button{min-height:26px;min-width:36px}.track-inner{min-height:140px}.ruler{height:20px}.clips{height:119px}.clip{height:113px}.hold{padding:2px 4px 22px;display:block}.hold.compact{padding:2px}.clip-caption{height:16px;bottom:3px;font-size:10px}.waveform{height:14px;margin-top:3px}.waveform>span{font-size:8px}.selection-detail .detail-thumb{width:43px;height:29px}.selection-detail strong,.selection-detail span{font-size:10px}.selection-detail button{min-height:34px;padding:6px;font-size:11px}.review-bar{padding:0 10px;gap:10px;min-height:24px;height:24px}.review-bar>span{font-size:8px}.review-bar a{font-size:9px}.review-bar button{font-size:9px}.page .topbar{height:58px}.home-page .page-body{padding:34px 20px}.home-page .page-title{margin-bottom:32px;align-items:flex-end;gap:8px}.home-page h1{font-size:32px;letter-spacing:-1.3px;line-height:1.23}.home-page .eyebrow{font-size:10px;margin-bottom:12px}.home-page .page-title p{font-size:11px;line-height:1.6;margin-top:14px;max-width:230px}.home-page .page-title>.primary{font-size:10px;min-width:68px;min-height:36px;padding:6px 9px}.project-list-heading{display:block}.project-list-heading h2{font-size:13px;margin-bottom:14px}.project-search{max-width:none;width:100%}.project-search input{min-height:40px}.project-list{margin-top:16px}.project-feature{display:block;border-radius:10px}.project-art{padding:23px 36px 35px}.project-art-label{left:18px;right:18px;bottom:10px;font-size:9px}.project-content{padding:20px}.project-content .eyebrow{font-size:9px;margin-bottom:8px}.project-content h2{font-size:20px}.project-content>p{font-size:11px}.formation-glimpse{max-width:none;gap:10px;margin:20px 0}.formation-glimpse>.thumbnail{height:48px;width:calc((100% - 20px)/3)}.project-bottom button{font-size:11px;min-height:38px}.project-bottom small{font-size:9px}.home-footnote{font-size:10px;line-height:1.7;margin-top:22px}.export-page .page-body{padding:28px 20px}.export-page .page-title h1{font-size:24px}.export-page .page-title p{font-size:12px;line-height:1.6}.export-layout{display:flex;flex-direction:column;gap:24px}.export-options{margin:0}.preview-column{padding:14px 16px 20px;order:-1}.paper-preview{padding:20px}.paper-preview>svg{margin:8px 0}.preview-heading{margin-bottom:8px;min-height:28px}.paper-preview h3{font-size:13px}.paper-preview>p{font-size:10px}.print-caption{font-size:10px;padding-top:10px}.export-options .panel-section{padding:14px 0;margin-top:14px}.export-options>.primary{margin-top:12px}.rehearsing .stage-context{display:flex}.rehearsal-bar{padding:0 10px;min-height:34px;background:var(--surface)}.rehearsal-bar>span{font-size:10px}.rehearsal-bar button{font-size:10px;min-height:32px;padding:4px 7px}.rehearsing .selection-dock{height:89px}.rehearsing .stage-footer{display:flex;height:auto;min-height:42px;padding:6px 14px;font-size:11px;line-height:1.5;color:var(--text)}.rehearsing .stage-footer span{white-space:normal}.rehearsing .inspector{display:none}.rehearsing.panel-open .inspector{display:block}.save-error{top:58px;font-size:11px}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open){grid-template-rows:54px minmax(0,1fr) 219px 55px}.topbar{min-height:54px}.stage-context{min-height:34px}.stage-context strong{font-size:12px}.stage-context small{display:none}.stage-area{padding:15px 6px 18px}.person-name{display:none}.chosen .person-name{display:block}.selection-dock{height:126px;padding-top:3px}.dock-heading{height:20px}.cast-chip{min-height:50px}.cast-strip{padding:3px 0 5px}.quick-layout button{min-height:32px}.timeline{grid-template-rows:45px 27px minmax(0,1fr) 38px}.transport button{min-width:33px;padding:5px}.clock{font-size:14px;margin-left:3px}.transport-end .speed{min-width:40px!important}.clips{height:83px}.clip{height:77px}.hold{padding-bottom:20px}.clip-caption{font-size:9px}.waveform{height:11px;margin-top:2px}.track-inner{min-height:112px}.ruler{height:18px}.selection-detail .detail-thumb{width:39px;height:26px}.selection-detail strong,.selection-detail span{font-size:9px}.work-nav button{min-height:46px}.inspector{bottom:calc(24px + 55px + 219px);max-height:43vh}.rehearsing .selection-dock{height:84px}.rehearsing .stage-context{display:none}.rehearsing .stage-footer{min-height:35px;font-size:10px}.rehearsing .rehearsal-bar{min-height:32px}.timeline .move.selected:after{top:25px;bottom:25px}}
@media(orientation:landscape) and (max-height:540px){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open),.editor.panel-open{grid-template-columns:56px minmax(0,1.15fr) minmax(320px,1fr);grid-template-rows:48px minmax(0,1fr)}.topbar{padding:4px 12px}.topbar button{min-height:36px}.brand-name{font-size:19px}.project-name{gap:16px}.project-name strong{font-size:12px;padding-left:16px}.save-state,.desktop-share{display:none}.work-nav{padding:5px 4px;gap:4px}.work-nav button{min-height:44px;padding:4px 0;font-size:9px;flex-direction:column;gap:2px}.work-nav .icon{width:17px;height:17px}.stage-work{visibility:visible!important}.stage-context{min-height:34px;padding:0 12px}.stage-context strong{font-size:12px}.stage-context small{display:none}.stage-context>button{min-height:30px;padding:4px}.stage-area{padding:16px 6px 18px}.stage-footer{display:none}.stage-measure,.backstage{top:-15px;font-size:9px}.audience{font-size:9px}.person-name{display:none}.chosen .person-name{display:block;font-size:10px}.selection-dock{height:65px;padding:3px 8px}.dock-heading{height:18px;font-size:9px}.dock-heading strong{font-size:10px}.cast-strip{gap:2px;padding:2px 0}.cast-chip{min-width:38px;flex-basis:38px;min-height:38px;padding:2px;font-size:8px;gap:1px}.cast-chip .person-dot{width:22px;height:22px;min-width:22px;font-size:10px}.quick-layout{display:none}.timeline{grid-column:3;grid-row:2;padding:0 10px;grid-template-rows:47px 30px minmax(0,1fr) 42px}.timeline-toolbar,.selection-detail{display:flex}.timeline .clips{height:130px}.timeline .clip{height:124px}.timeline .waveform{height:18px}.track-inner{min-height:160px}.timeline-scale{display:none}.transport{gap:1px}.transport button{min-width:34px;padding:5px}.clock{font-size:13px;margin-left:3px}.clock span{font-size:9px}.transport-end{gap:0}.timeline .selection-detail strong,.timeline .selection-detail span{font-size:9px}.timeline .selection-detail .detail-thumb{width:36px;height:24px}.selection-detail button{font-size:10px}.inspector{position:fixed;top:54px;left:64px;bottom:30px;width:calc(51% - 56px);grid-column:auto;grid-row:auto;max-height:none;z-index:15;border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 28px #0006;display:none;padding:8px 14px}.panel-open .inspector{display:block}.panel-heading{position:sticky;top:-8px;background:var(--surface);z-index:2}.panel-heading:after{display:none}.rehearsal-bar{min-height:30px;padding:0 8px}.rehearsal-bar>span{font-size:9px}.rehearsal-bar button{min-height:28px;font-size:9px}.rehearsing .stage-context{display:none}.rehearsing .stage-footer{display:flex;height:32px;min-height:32px;font-size:10px;padding:3px 12px}.rehearsing .selection-dock{height:65px}.page-body{padding:24px}.home-page .page-body{padding:28px 40px}.home-page h1{font-size:30px}.home-page .page-title{margin-bottom:24px}.project-content{padding:24px}.project-art{padding:24px}.export-layout{grid-template-columns:250px minmax(0,1fr);gap:24px}.preview-column{padding:16px}.review-bar{min-height:24px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
/* Keep the waveform visible and reserve the desktop height for the stage. */
@media(min-width:900px) and (min-height:541px){.editor{grid-template-rows:64px minmax(0,1fr) 300px}.selection-dock{display:none}}
@media(max-width:899px) and (orientation:portrait) and (min-height:721px){.timeline{grid-template-rows:45px 27px minmax(0,1fr) 38px}.clips{height:110px}.clip{height:104px}.track-inner{min-height:147px}.selection-dock{height:142px}.quick-layout button{min-height:44px}.performer .token{font-size:12px}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open){grid-template-rows:54px 380px 219px 55px;overflow-y:auto;overscroll-behavior:contain}.editor>.topbar{position:sticky;top:0;z-index:12}.editor>.work-nav{position:sticky;bottom:0;z-index:12}.selection-dock{height:138px}.quick-layout button{min-height:44px}.timeline .clips{height:78px}.timeline .clip{height:72px}.track-inner{min-height:105px}.performer .token{font-size:11px}}
@media(max-width:899px) and (orientation:portrait) and (min-height:721px){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open){grid-template-rows:54px minmax(0,1fr) 259px 56px}.topbar{min-height:54px}.stage-context{min-height:36px}.selection-dock{height:130px;padding-top:4px;padding-bottom:5px}.dock-heading{height:20px}.cast-strip{padding:3px 0}.cast-chip{min-height:44px;padding:2px;gap:1px}.quick-layout{padding-top:5px}.timeline{grid-template-rows:44px 24px minmax(0,1fr) 34px}.timeline-toolbar{height:24px}.selection-detail button{min-height:30px}.work-nav button{min-height:46px}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.editor,.editor.inspector-closed,.editor.rehearsing:not(.panel-open){grid-template-rows:54px 420px 219px 55px}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.timeline .clips{height:72px}.timeline .clip{height:66px}.track-inner{min-height:103px}}
@media(max-width:899px) and (orientation:portrait){.topbar{padding-top:5px;padding-bottom:5px}.home-button,.header-actions>button,.header-actions .export-button{min-width:44px;min-height:44px;height:44px}.header-actions .export-button{margin-left:0}.stage-context>button{min-width:44px;min-height:44px}.timeline-toolbar{display:none}.timeline{grid-template-rows:44px 0 minmax(0,1fr) 34px}.transport{gap:0}.transport>button,.transport-end>button,.transport .play-button{width:44px;height:44px;min-width:44px!important;min-height:44px;padding:8px}.transport-end{gap:0}.clock{font-size:14px;margin-left:2px;letter-spacing:0;flex:1;white-space:nowrap}.clock span{font-size:9px}.transport-end .speed{font-size:11px}.selection-detail>button{min-width:44px;min-height:34px}.timeline .clips{height:130px}.timeline .clip{height:124px}.track-inner{min-height:164px}.dock-heading>button{min-width:44px}.home-page .page-body{padding-top:28px}.project-content{padding:18px}.formation-glimpse{margin:18px 0}.inspector .panel-heading>button{min-height:44px;min-width:44px}.find-bar{bottom:calc(100% - 44px)}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.timeline{grid-template-rows:44px 0 minmax(0,1fr) 34px}.timeline .clips{height:104px}.timeline .clip{height:98px}.track-inner{min-height:139px}.timeline .ruler{height:18px}.timeline .waveform{height:11px}}
#app button.primary{background:#285ec4;color:#fff}
.trim-handle{width:44px;right:-22px}.trim-handle:before{right:18px}.trim-handle:after{right:21px}
@media(max-width:899px) and (orientation:portrait){.timeline{grid-template-rows:44px 0 minmax(0,1fr) 44px}.timeline .transport{grid-row:1}.timeline .timeline-scroll{grid-row:3}.timeline .selection-detail{grid-row:4}.selection-detail>button{min-height:44px}.timeline .clips{height:128px}.timeline .clip{height:122px}.track-inner{min-height:165px}.roster-mode-entry button,.layout-command{min-height:44px}}
@media(max-width:899px) and (max-height:720px) and (orientation:portrait){.timeline .clips{height:94px}.timeline .clip{height:88px}.track-inner{min-height:125px}}
