:root{font-family:"Microsoft YaHei",sans-serif;color:#292929;background:#f5f5f3;--accent:#ed741b;--line:#e4e4e0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;padding:10px 16px;border:1px solid var(--line);border-radius:7px;background:white;color:inherit}button:hover{border-color:var(--accent)}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--accent);color:white;border-color:var(--accent)}.danger{color:#b53927}input,textarea,select{width:100%;padding:11px;border:1px solid #d3d3ce;border-radius:6px;background:white;color:#252525}label{display:block;margin:16px 0;font-size:14px}label input,label select,label textarea{display:block;margin-top:7px}h1{font-size:30px;letter-spacing:-1px}h2{font-size:24px}h3{font-size:16px}.eyebrow{color:#955424;font-size:12px;letter-spacing:2px}.muted,p{color:#777;font-size:14px;line-height:1.7}.row,.heading,header,.editorbar{display:flex;align-items:center;gap:12px}.heading{justify-content:space-between;margin-bottom:24px}.heading input{width:280px}header{height:70px;padding:0 30px;border-bottom:1px solid var(--line);background:#fff}header b{font-size:22px}header span{font-size:13px;color:#777}nav{margin-left:auto;display:flex;gap:6px}nav button{border:0;background:transparent}main{padding:30px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px}.project{padding:24px;border:1px solid var(--line);background:#fff;border-radius:12px}.project h2{font-size:20px;margin:10px 0 20px}.project .row{flex-wrap:wrap}.work{border-top:1px solid var(--line);padding:16px 0;display:flex;gap:10px;align-items:center}.work span{flex:1}.entry{background:white;border:1px solid var(--line);padding:20px;margin:12px 0;border-radius:8px}.entry button{margin:8px 8px 0 0}#login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(120deg,#e7e3da,#f9f7f2)}#login form{width:440px;max-width:92vw;background:white;padding:42px;border-radius:16px;box-shadow:0 30px 80px #493a2114}#login .primary{width:100%;margin-top:20px}#loginError{color:#aa3020}#editor{padding:0}.editorbar{height:66px;background:white;padding:10px 24px;border-bottom:1px solid var(--line)}#workTitle{font-weight:bold;max-width:370px;border-color:transparent}#saveState{margin-right:auto;color:#777;font-size:13px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;height:calc(100vh - 330px);min-height:420px}#sphere{position:relative;background:#242623;overflow:hidden}#viewer,#hotspotOverlay{position:absolute;inset:0}#hotspotOverlay{pointer-events:none}.hotmark{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);color:white;background:#292929b8;border:1px solid #fff5;padding:5px 10px;border-radius:8px;white-space:nowrap}#emptySphere{position:absolute;inset:0;display:grid;place-items:center;color:#aaa}aside{padding:16px 20px;overflow:auto;background:#fff}aside>button{width:100%;margin:5px 0}aside label{margin:10px 0}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.hotrow{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.hotrow button{font-size:12px;padding:5px;margin:4px}.tray{background:#fff;padding:16px 24px;border-top:1px solid var(--line)}#groups{display:flex;gap:8px;flex:1;overflow:auto}.selected{border-color:var(--accent)!important;background:#fff0e4!important;color:#9c4609}#scenes{display:flex;gap:14px;overflow:auto;padding:14px 0}.scene{width:130px;flex:none;padding:6px;border:2px solid transparent;border-radius:8px;background:#f5f5f3}.scene img{width:114px;height:72px;object-fit:cover;border-radius:4px}.scene span{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px}.scene small{color:#777}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:620px;max-width:95vw;max-height:90vh;overflow:auto}dialog::backdrop{background:#0007}.close{float:right;font-size:22px;padding:0 8px;border:0}.dropzone{border:2px dashed #d8a67d;padding:25px;text-align:center;background:#fff7ee}.chips{display:flex;gap:6px;flex-wrap:wrap}.chips button{font-size:12px;padding:6px 10px}.file{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:center;margin:10px 0}.file img{width:52px;height:40px;object-fit:contain}.file small{display:block;color:#777}#placement{position:absolute;top:12px;left:12px;background:#fff;padding:8px 12px;z-index:10;border-radius:5px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#242424;color:white;padding:12px 22px;border-radius:9px;display:none;z-index:10000;max-width:90vw}#uploadStatus{white-space:pre-line}[hidden]{display:none!important}@media(max-width:760px){header{padding:12px;height:auto;flex-wrap:wrap}nav{overflow:auto;width:100%}nav button{white-space:nowrap}main{padding:16px}.heading{align-items:start;flex-direction:column}.editorbar{height:auto;flex-wrap:wrap;padding:10px}.workspace{display:flex;flex-direction:column;height:auto}#sphere{height:50vh;min-height:280px}aside{max-height:320px}.tray{padding:12px}#workTitle{max-width:100%;flex:1}.editorbar button{font-size:12px;padding:8px}.scene{width:110px}.scene img{width:94px}h1{font-size:24px}}
.upload-file{display:grid;grid-template-columns:64px 120px minmax(0,1fr) 60px;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #eee}.upload-thumb{width:120px;height:80px;object-fit:contain;background:#eee;border-radius:8px}.file-order input{width:60px;padding:8px}.file-order span{display:block;text-align:center;cursor:grab;color:#999}.upload-info{min-width:0}.upload-info input{width:100%;box-sizing:border-box}.upload-info small{display:block;overflow-wrap:anywhere}.progress-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-top:8px}.progress-label strong{white-space:nowrap}progress{width:100%;height:8px;accent-color:#ef7a16}.file-actions{display:grid;gap:6px}.file-actions button{padding:7px 4px;font-size:12px}@media(max-width:600px){.upload-file{grid-template-columns:44px 72px minmax(0,1fr);gap:8px}.upload-thumb{width:72px;height:54px}.file-order input{width:44px}.file-actions{grid-column:3;display:flex}.upload-info input{font-size:14px}}
/* V1.35：画面是主角；工具悬浮，两个编辑面板互斥。 */
body.editing{overflow:hidden}body.editing #app>header{display:none}#editor{height:100dvh;position:relative;background:#1e211e}#editor .workspace{display:block;position:absolute;inset:0;height:100%;min-height:0}#editor #sphere{width:100%;height:100%;min-height:0}#editor .editorbar{position:absolute;z-index:20;top:14px;left:16px;right:16px;height:auto;min-height:54px;border:1px solid #ffffff40;border-radius:12px;background:#fffffff0;backdrop-filter:blur(14px);padding:8px 12px;box-shadow:0 8px 30px #0002;flex-wrap:wrap;gap:6px}#editor #workTitle{max-width:260px;min-width:130px;width:20vw}#editor .editorbar button{padding:8px 10px;font-size:13px}#editor #sidePanel{display:none;position:absolute;z-index:15;right:16px;top:90px;bottom:30px;width:300px;border-radius:12px;background:#fffffff0;backdrop-filter:blur(18px);box-shadow:0 10px 40px #0003}#editor[data-panel="side"] #sidePanel{display:block}#editor .tray{display:none;position:absolute;z-index:15;bottom:0;left:0;right:0;padding:18px 28px;background:#ffffffe0;backdrop-filter:blur(16px);border:0;border-radius:16px 16px 0 0;box-shadow:0 -10px 40px #0002}#editor[data-panel="tray"] .tray{display:block}.panel-toggle{position:absolute;z-index:16;background:#292929ce;color:#fff;border:1px solid #ffffff40;backdrop-filter:blur(10px)}.side-toggle{right:0;top:45%;border-radius:10px 0 0 10px}.tray-toggle{bottom:0;left:50%;transform:translateX(-50%);border-radius:10px 10px 0 0}#editor[data-panel="side"] .side-toggle,#editor[data-panel="tray"] .tray-toggle{display:none}.tray-done{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#ffffffe0;border:0;border-radius:10px 10px 0 0}#scenes{gap:20px;min-height:160px}.scene{position:relative;width:160px;background:transparent;border:0;padding:0;border-radius:10px}.scene-picture{position:relative;height:110px;border:3px solid transparent;border-radius:10px;overflow:hidden;cursor:grab}.scene.selected{background:transparent!important;color:inherit}.scene.selected .scene-picture{border-color:var(--accent)}.scene img{width:100%;height:100%;object-fit:cover}.scene input{margin-top:8px;text-align:center;background:transparent;border:0;border-bottom:1px solid #aaa;border-radius:0;padding:6px}.scene-number,.opening-badge{position:absolute;top:0;padding:5px 8px;background:#ffffffdb;font-size:12px;z-index:1}.scene-number{right:0}.opening-badge{left:0;background:#292929bd;color:#fff}.scene-tools{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:flex-end;background:#ffffffc9;opacity:0;transition:opacity .15s}.scene:hover .scene-tools,.scene:focus-within .scene-tools{opacity:1}.scene-tools button{background:transparent;border:0;padding:5px 10px}.scene-tools button:hover{color:#d75c0b}.switch{display:flex;align-items:center;gap:8px}.switch input{width:auto;margin:0}#sceneMenu{width:300px}#sceneMenu>button{display:block;width:100%;margin:8px 0}#uploadDialog{width:min(1200px,95vw);padding:28px 32px}#fileList{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;padding:20px;background:#f6f6f5;border-radius:12px}.upload-file{display:flex;flex-direction:column;position:relative;gap:8px;padding:0;border:0;margin:0;align-items:stretch}.upload-thumb{width:100%;height:130px;object-fit:contain;background:#ddd}.file-order{position:absolute;top:5px;right:5px;z-index:1;display:flex;background:#fffc;border-radius:5px}.file-order input{width:48px;padding:4px;background:transparent;border:0}.file-order span{padding:4px}.file-actions{display:flex;justify-content:space-between}.upload-info input{padding:8px}.upload-info small{font-size:11px}.upload-file .file-actions button{padding:5px 8px}#startUpload{position:sticky;bottom:0;min-width:200px;padding:14px 26px}.dropzone{padding:14px;text-align:left}.dropzone input{max-width:420px}.progress-label{min-height:32px}.psv-navbar{bottom:10px!important}#editor[data-panel="tray"] .psv-navbar{bottom:240px!important}@media(hover:none){.scene-tools{opacity:1}}@media(max-width:760px){#editor .editorbar{top:6px;left:6px;right:6px;padding:6px}#editor #workTitle{width:140px}#editor #sidePanel{right:8px;top:130px;bottom:10px;width:min(300px,85vw);max-height:none}#editor .tray{padding:14px}#editor .tray>.row{flex-wrap:wrap}#editor #scenes{min-height:145px}.scene{width:130px}.scene-picture{height:90px}#uploadDialog{padding:18px}#fileList{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));padding:10px;gap:12px}.upload-thumb{height:105px}}

/* 作品管理：只列有场景的作品，双列展示。 */
#projectList{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.work-card{display:flex;padding:12px;gap:20px;background:#fff;border:1px solid var(--line);border-radius:16px;min-height:190px}.work-cover{width:156px;flex:none;border-radius:12px;overflow:hidden;background:#e9e6df;display:grid;place-items:center;color:#9b8c79}.work-cover img{width:100%;height:100%;object-fit:cover}.work-body{flex:1;min-width:0}.work-body h2{font-size:18px;flex:1;margin:8px 0;overflow-wrap:anywhere}.work-body p{font-size:13px}.work-footer{border-top:1px dashed #ddd;display:flex;justify-content:flex-end;gap:8px;align-items:center;padding-top:12px}.work-footer a{color:var(--accent)}.work-footer button{padding:8px 12px}.empty-works{padding:60px;grid-column:1/-1;text-align:center;color:#777}#createDialog{width:620px;max-width:95vw}#clientSelect{margin-top:8px}#clientSelect option{padding:9px}@media(max-width:1000px){#projectList{grid-template-columns:1fr}}@media(max-width:600px){.work-cover{width:90px}.heading{align-items:flex-start;flex-direction:column}.heading>.row{width:100%;flex-wrap:wrap}.work-card{gap:12px}}

.management-groups{margin:24px 0 30px}.management-groups>.row h3{margin-right:auto}#collectionList{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.collection-card{display:flex;text-align:left;gap:14px;align-items:center;padding:10px;border-radius:12px;min-height:100px}.collection-card img{width:80px;height:80px;object-fit:cover;border-radius:8px}.collection-card span{display:grid;gap:20px}.collection-card small{color:#999}.work-filters{display:flex;align-items:center;gap:14px;margin:22px 0}.work-filters strong{margin-right:auto}.work-filters select{width:150px}@media(max-width:1000px){#collectionList{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#collectionList{grid-template-columns:1fr}.work-filters{flex-wrap:wrap}.collection-card img{width:60px;height:60px}}
.scene-load-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#252525;color:white}.scene-load-error p{color:white}.psv-overlay-image{max-width:100px;max-height:100px}.psv-overlay-text{font-size:18px}

#batchDialog{width:min(850px,95vw)}#batchList{max-height:55vh;overflow:auto}.batch-scene{display:grid;grid-template-columns:24px 90px 140px 1fr;align-items:center;gap:12px}.batch-scene input{margin:0}.batch-scene img{width:90px;height:50px;object-fit:contain}.batch-scene input[type=checkbox]{width:20px;height:20px}@media(max-width:600px){.batch-scene{grid-template-columns:24px 65px 1fr}.batch-scene span{display:none}.batch-scene img{width:65px}}

#viewer{z-index:0;isolation:isolate}


#batchWorksDialog{width:min(850px,90vw)}#batchWorksList{max-height:55vh;overflow:auto}.batch-work{display:grid;grid-template-columns:24px minmax(120px,1fr) minmax(120px,1fr);gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid #ddd}.batch-work input{width:20px}.batch-work small{overflow-wrap:anywhere}

/* 用户参考：薄透底悬浮编辑面板，2026-11-08 */
#editor .editorbar{top:10px;left:12px;right:12px;min-height:44px;padding:5px 8px;background:rgba(245,245,243,.58);backdrop-filter:blur(3px);border-radius:8px;box-shadow:0 2px 12px #0001}
#editor .editorbar button{padding:7px 9px;font-size:12px}#editor #workTitle{padding:7px;background:#ffffff50}#editor #saveState{color:#383838;text-shadow:0 1px 2px #fff8}
#editor .tray{padding:9px 18px 7px;background:rgba(235,235,233,.46);backdrop-filter:blur(2px);border-radius:8px 8px 0 0;box-shadow:none;border-top:1px solid #ffffff45}
#editor .tray>.row{gap:8px}#editor .tray button{font-size:12px;padding:6px 10px;background:#ffffff65}#editor .tray button.primary{background:var(--accent)}
#editor #scenes{gap:14px;min-height:0;padding:8px 0 2px}#editor .scene{width:128px}#editor .scene-picture{height:78px;border-width:2px;border-radius:6px}#editor .scene input{font-size:12px;margin-top:4px;padding:4px;color:#202020;text-shadow:0 1px 2px #fff8;border-color:#5556}#editor .scene-number,#editor .opening-badge{padding:3px 5px;font-size:10px}
#editor .tray-done{background:#eeeeee70;padding:6px 14px;backdrop-filter:blur(2px)}
#editor #sidePanel{right:10px;top:68px;bottom:14px;width:260px;padding:12px 14px;background:rgba(238,238,236,.62);backdrop-filter:blur(3px);border:1px solid #ffffff40;border-radius:8px;box-shadow:0 4px 18px #0002;color:#222}
#editor #sidePanel h3{font-size:14px;margin:9px 0}#editor #sidePanel label{font-size:12px;margin:8px 0}#editor #sidePanel input,#editor #sidePanel select{padding:7px;background:#ffffff70}#editor #sidePanel button{padding:7px 9px;font-size:12px;background:#ffffff65}#editor #sidePanel p{font-size:12px;color:#3e3e3e}#editor #sidePanel hr{margin:13px 0;border-color:#5553}
#editor .editorbar button:not(.primary){background:#ffffff70}#editor #publishedLink{font-size:12px;color:#833c09}#editor .scene-tools button{background:transparent}
@media(max-width:760px){#editor .editorbar{left:6px;right:6px;top:6px;gap:4px}#editor #sidePanel{top:110px;width:min(260px,82vw)}#editor .tray{padding:8px 10px}#editor .scene{width:100px}#editor .scene-picture{height:65px}#editor .tray>.row{flex-wrap:wrap}#editor #groups{flex-basis:100%}}

#editor .side-toggle{writing-mode:vertical-rl;text-orientation:upright;width:34px;padding:12px 6px;letter-spacing:3px;font-size:13px;line-height:20px;border-radius:7px 0 0 7px}#editor .scene img{font-size:12px;color:#555;text-align:center}

#editRail{display:none;position:absolute;z-index:18;right:0;top:0;bottom:0;width:110px;margin:0;padding:80px 0 18px;background:#24221dd1;overflow:auto;flex-direction:column;gap:7px}#editRail button{border:0;border-radius:0;color:#eee;padding:13px 5px;background:transparent;font-size:15px}#editRail button.active{color:#ff963f;border-bottom:2px solid #ff963f}#editor[data-panel="side"] #editRail{display:flex}#editor[data-panel="side"] #sidePanel{right:120px;width:280px}dialog.editor-sheet{position:fixed;margin:0;left:auto;right:110px;top:74px;bottom:12px;height:auto;max-height:none;width:360px;max-width:calc(100vw - 120px);border-radius:10px 0 0 10px;background:#fffffff5;padding:24px}dialog.editor-sheet::backdrop{background:transparent}#viewDialog button{margin:6px 0}#viewDialog input{min-width:0}#viewDialog label{margin:6px 0}#viewDialog h3{margin-top:24px}

.choice-tabs{display:flex;gap:6px;flex-wrap:wrap}.choice-tabs button{padding:9px}.choice-tabs .active,.icon-grid .active{background:#f68028;color:white;border-color:#f68028}.icon-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:14px;background:#484848;border-radius:12px}.icon-grid button{font-size:30px;color:white;background:transparent;border:2px solid #bbb;border-radius:8px;padding:8px}.icon-grid .active{border:3px solid #f68028;background:#555}.info-layout{display:flex;gap:22px}.info-layout>div{flex:1;min-width:0}#settingsDialog{width:760px;max-width:90vw}#settingsDialog.editor-sheet{width:620px;max-width:calc(100vw - 150px)}.music-choice{display:block;width:100%;text-align:left;margin:8px 0}#planPreview{width:auto;height:auto;max-width:100%;max-height:300px;cursor:crosshair}

/* 隐藏无按钮的播放器横条，收起开关独立于滚动面板 */
#editor .psv-navbar{display:none!important;height:0!important}#editor .side-close{display:none;position:absolute;right:400px;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;width:34px;padding:12px 7px;border-radius:8px 0 0 8px}#editor[data-panel="side"] .side-close{display:block}@media(max-width:760px){#editor .side-close{right:min(400px,calc(100vw - 42px))}}

#editor .editorbar{right:auto;max-width:calc(100vw - 32px);width:max-content;min-height:44px}#editor .editor-actions{position:absolute;z-index:21;right:16px;bottom:18px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100vw - 32px);padding:8px;border-radius:10px;background:#ffffff70;backdrop-filter:blur(3px);transition:right .2s,bottom .2s}#editor .editor-actions button,#editor .editor-actions a{font-size:13px;padding:8px 10px}#editor .editor-actions a{align-self:center}#editor[data-panel="side"] .editor-actions{right:448px;max-width:calc(100vw - 464px)}#editor[data-panel="tray"] .editor-actions{bottom:calc(var(--scene-tray-height,190px) + 18px)}@media(max-width:760px){#editor[data-panel="side"] .editor-actions{right:448px;max-width:calc(100vw - 464px);min-width:180px}#editor .editor-actions{gap:4px;padding:6px}#editor .editor-actions button,#editor .editor-actions a{font-size:12px;padding:6px}}

#hotPreview{position:absolute;left:26%;top:50%;transform:translate(-50%,-50%);z-index:19;color:white;text-shadow:0 2px 5px #000;padding:8px 12px;background:#0006;border-radius:10px;pointer-events:none}dialog[open].editor-sheet{z-index:22}#infoAuthor{background:#eee;color:#444}#infoLogo[hidden]{display:none}
#createDialog{position:fixed}#createConfirm{min-width:230px;min-height:48px}#fileList{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}#fileList .upload-file{display:flex;flex-direction:column;align-items:stretch;padding:10px;border:2px solid transparent;border-radius:10px}#fileList .picked,#fileList .upload-file:focus-within{border-color:#e87824}#fileList .upload-thumb{width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;background:#eee;cursor:grab}#fileList .upload-info{min-width:0}#fileList .upload-info input{width:65%}#fileList .upload-info select{width:32%}.work-card h2 small{display:block;font-weight:400;overflow-wrap:anywhere}[hidden]{display:none!important}

.work-filters{flex-wrap:wrap}.work-filters strong{margin-right:0}.cascade{display:flex;flex-wrap:wrap;gap:8px;margin-right:auto}.cascade select{width:auto;min-width:90px;max-width:200px}

.cascade #clearFilters{border:0;background:transparent;box-shadow:none;color:#1764ad;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.upload-thumb,.file-order span,.scene-picture { touch-action:none; user-select:none; } .sort-target { outline:3px solid #2474cb; outline-offset:-3px; }
#app>header{position:sticky;top:0;z-index:30;background:#fff}.identity{display:inline-flex;align-items:baseline;gap:12px}.nav-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84px;height:38px;object-fit:contain;pointer-events:none}
#editor .editorbar,#editor .editor-actions,#editor .tray,#editor .tray-done{background:rgba(250,250,249,.95);color:#232323}
#editor .editor-actions,#editor[data-panel] .editor-actions{top:10px;bottom:auto;right:12px;max-width:calc(100% - 415px);min-width:0}
#editor .tray{bottom:20px;left:12px;right:12px;border-radius:10px;box-shadow:0 4px 24px #0003}
#editor #batchScenes,#editor #renameGroup,#publishedLink,.work-footer a{background:white;border:1px solid #d4d4d4;border-radius:7px;padding:7px 10px;text-decoration:none}
#editor #scenes .scene-picture{height:clamp(86px,10vh,130px)}#editor #scenes .scene.selected .scene-picture{border-color:#ef791d}
#settingsDialog[open],#shareDialog[open],dialog.editor-sheet:modal{position:fixed;inset:0;margin:auto;width:min(700px,92vw);max-width:92vw;height:fit-content;max-height:86dvh;overflow:auto;background:white;color:#252525;border-radius:14px}
dialog:modal::backdrop{background:rgba(20,20,20,.58)}#releasePreview{position:fixed;inset:0;margin:auto;width:min(690px,96vw);max-height:96dvh;padding:22px 18px;background:transparent;color:white;border:0;box-shadow:none;text-align:center;overflow:auto}
#releasePreview .close{color:#222;background:white}.poster-stage,.poster-tools{display:flex;align-items:center;justify-content:center;gap:12px}.poster-stage canvas{width:min(47vh,60vw,360px);height:auto;border-radius:10px;background:white}.poster-stage button{font-size:26px}.poster-tools{flex-wrap:wrap;margin:12px auto}.poster-tools a,.poster-tools button{background:white;color:#222;border:1px solid #ddd;border-radius:8px;padding:7px 11px;text-decoration:none}.poster-tools a:not([href]){opacity:.5}.poster-tools .primary{background:var(--accent);color:white}#posterStatus{color:white}
@media(max-width:960px){#editor .editor-actions,#editor[data-panel] .editor-actions{top:66px;right:10px;max-width:calc(100% - 20px)}.nav-logo{position:static;transform:none;width:60px}}
.scene-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px}.scene-strip #scenes{min-width:0;overflow-x:auto}#editor .scene-strip>button{background:white}#editor #appendScene{min-height:65px}#editor .tray{max-height:46dvh}dialog.editor-sheet:modal::backdrop{background:#16161694}
body.editing,html:has(body.editing){overflow:hidden;overscroll-behavior:none}
body.editing #editor{position:fixed;inset:0;height:100dvh;overflow:hidden}
body.editing dialog[open]{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
body.editing dialog.editor-sheet:modal:not(#settingsDialog){left:auto;right:12px;top:12px;bottom:12px;margin:auto 0;width:min(390px,92vw);max-height:calc(100dvh - 24px);height:fit-content}
.access-fields{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}.access-fields input,.access-fields select{width:100%;min-width:0}

.upload-info .room-name-wrap{display:inline-block;position:relative;width:65%;vertical-align:middle}
.upload-info .room-name-wrap input{width:100%;padding-right:30px}
.upload-info .room-clear{position:absolute;right:3px;top:50%;transform:translateY(-50%);min-width:24px;padding:2px;background:white;border:0;color:#555;font-size:19px;line-height:1}

#fileList .upload-file{gap:5px;padding:6px;min-width:0}
#fileList .upload-picture{position:relative;overflow:hidden;border-radius:7px}
#fileList .upload-picture img{display:block}
#fileList .upload-info progress{grid-column:1/-1;display:block;width:100%;height:4px;margin:0;border:0;appearance:none;background:#d8d8d8;color:#ef781b}
.upload-info progress::-webkit-progress-bar{background:#d8d8d8}
.upload-info progress::-webkit-progress-value{background:#ef781b}
.upload-info progress::-moz-progress-bar{background:#ef781b}
#fileList .upload-info{display:grid;grid-template-columns:3.1em minmax(0,1fr) auto;gap:4px;align-items:center}
#fileList .file-order{position:static;display:block}
#fileList .file-order input,#fileList .room-name-wrap,#fileList .room-name-wrap input,#fileList .upload-info select{width:100%;min-width:0;box-sizing:border-box;margin:0}
#fileList .upload-info input,#fileList .upload-info select{height:32px;padding:3px 5px}
#fileList .room-name-wrap input{padding-right:25px}
#fileList .upload-info small{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fileList .progress-label{grid-column:1/-1;margin:0;min-height:0}
#fileList .file-actions{align-items:center;gap:4px}
#fileList .file-actions button{margin:0;padding:2px 6px}
#fileList [data-remove]{color:#b42318}

#fileList .file-actions{justify-content:flex-start;gap:5px;flex-wrap:wrap}
#fileList .file-actions button{padding:5px 10px;min-height:30px}
.scene-naming{display:flex;align-items:center;gap:2px;min-width:0}
.scene-naming input{flex:1;min-width:0}
.scene-naming select{width:auto;max-width:52px;padding:2px;font-size:11px}
#sceneMenu{position:fixed;inset:auto;margin:0;width:185px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);box-sizing:border-box;padding:12px;overflow:auto}
#sceneMenu::backdrop{background:transparent}
#sceneMenu button{display:block;width:100%;margin:4px 0}

#sceneTray .tray-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:center;gap:8px}
#sceneTray #groups{grid-column:1;justify-content:flex-start;min-width:0;overflow-x:auto}
#editor #sceneTray #groups button{font-size:18px;padding:9px 15px;flex:none}
#sceneTray .tray-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
#editor .scene-strip #appendScene{background:var(--accent);color:white;border-color:var(--accent)}
.sorting-preview{position:fixed;pointer-events:none;z-index:2147483647;object-fit:cover;border-radius:6px;transform:translateY(-5px) rotate(-2deg);box-shadow:0 8px 22px #0005;outline:2px solid #f78222}
.sorting-source{opacity:.42}
#sceneTray .sort-target{outline:3px solid #ee791b;outline-offset:-3px}
@media(max-width:960px){#sceneTray .tray-header{grid-template-columns:minmax(0,1fr)}#sceneTray #groups{grid-column:1}#sceneTray .tray-actions{justify-content:center}}

#sceneTray .tray-floors{grid-column:2;justify-content:center;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-left:8px}#sceneTray .tray-floors select,#sceneTray .tray-floors input{width:auto;max-width:12em;margin:0}

@media(max-width:960px){#sceneTray .tray-floors{grid-column:1}}
#stagePopup{position:fixed;inset:auto;margin:0;padding:6px;overflow:auto;border:1px solid #ddd;border-radius:8px;background:white}
#stagePopup:popover-open #groups{display:grid;gap:4px}
#trayFloor{display:flex;flex-wrap:wrap;gap:5px}
#sceneTray #stageTrigger,#sceneTray #trayFloor button{font-size:16px;padding:8px 14px}
#sceneTray #trayFloor button[aria-pressed=true]{background:#fff1e5;color:#a84c08;border-color:#ed751d}

#uploadHoverPhoto{position:fixed;z-index:5;pointer-events:none;aspect-ratio:2/1;object-fit:contain;background:#242424;border-radius:8px;box-shadow:0 4px 22px #0005}#uploadHoverPhoto[hidden]{display:none}

#editor .opening-badge{max-width:calc(100% - 28px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#232323db;pointer-events:none}#editor .opening-text{color:#ffab55}

#editor .scene .opening-text{display:inline;font:inherit;margin:0}
.work-card h2 small{opacity:.8}
#uploadDialog #startUpload{display:block;margin-inline:auto;z-index:30}

.work-footer{flex-wrap:wrap}.work-footer .work-people{flex:1 1 150px;min-width:0;font-size:13px;color:#666;text-align:left;overflow-wrap:anywhere}

.recycle-card{display:flex;align-items:center;gap:20px}.recycle-card .work-cover{aspect-ratio:1;align-self:center}.recycle-info{min-width:0;overflow-wrap:anywhere}.recycle-info p{margin:6px 0;color:#666}
