@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101311;--panel:#171b18;--surface:#1b201d;--line:#2b312d;--text:#f1f4ee;--muted:#a1aaa2;--subtle:#7e8a80;--accent:#bded83;--ink:#192213;--font:'DM Sans','Noto Sans TC',sans-serif;font-family:var(--font);font-size:16px;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{-webkit-user-select:none;user-select:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.45}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{transition:background .18s,border-color .18s,transform .18s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.topbar{min-height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 30px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:37px;height:37px;background:var(--accent);color:var(--ink);border-radius:10px;display:grid;place-items:center}.brand-mark .icon{width:25px;height:25px;stroke-width:1.9}.brand-name{font-size:26px;font-weight:700;letter-spacing:-1.4px;display:flex;align-items:center}.brand-divider{font-weight:400;color:#556050;margin:0 15px;font-size:24px}.brand-product{font-weight:500;font-size:12px;letter-spacing:2px;color:#b6c0b5}.topbar-right{display:flex;align-items:center;gap:28px;font-size:13px}.workspace-tag{color:var(--muted)}.channel-link{display:flex;align-items:center;gap:8px;color:#d5dbd2}.channel-link .icon{width:17px;height:17px}.channel-link:hover{color:var(--accent)}.workspace{display:grid;grid-template-columns:296px minmax(0,1fr);min-height:calc(100vh - 78px)}.sidebar{background:#141815;border-right:1px solid var(--line);min-width:0}.sidebar-intro{padding:29px 25px 23px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted);line-height:1.5}h1{font-size:21px;font-weight:500;letter-spacing:.4px;margin:8px 0 0}h2{margin:0}.settings-fieldset{border:0;padding:0;margin:0;min-width:0}.settings-section{padding:24px 25px;border-top:1px solid var(--line)}.assets-section{padding-top:22px}.settings-section h2{font-size:15px;display:flex;align-items:center;gap:9px;font-weight:500;margin-bottom:21px}.settings-section h2>.switch{margin-left:auto}.section-number{color:#8a968b;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:400}.upload-zone{border:1px dashed #414c41;background:#1a201a;border-radius:10px;display:flex;align-items:center;flex-direction:column;width:100%;min-height:151px;padding:18px 12px;gap:5px}.upload-zone:hover,.upload-zone.drag-over{border-color:var(--accent);background:#222d20}.upload-icon{color:var(--accent);margin-bottom:4px}.upload-icon .icon{width:23px;height:23px}.upload-zone strong{font-size:14px;font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-zone>span:not(.upload-icon){font-size:12px;color:var(--muted)}.upload-zone .file-types{font-size:10px!important;letter-spacing:.5px;margin-top:8px;color:var(--subtle)!important}.cover-upload{border:1px solid var(--line);background:#1c211d;display:flex;align-items:center;gap:11px;width:100%;padding:11px;border-radius:8px;margin-top:12px;text-align:left}.cover-upload:hover,.cover-upload.drag-over{border-color:#677a5e;background:#242e23}.cover-upload canvas{width:48px;height:48px;object-fit:cover;border-radius:4px;flex:none;background:#322c49}.cover-upload .icon{width:17px;height:17px;margin-left:auto;color:var(--muted)}.cover-upload-text{display:flex;flex-direction:column;gap:4px;min-width:0}.cover-upload-text strong{font-size:13px;font-weight:500}.cover-upload-text span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cover-upload-text small{font-size:9px;color:var(--subtle)}.local-note{font-size:11px;color:var(--subtle);margin:12px 0 0;text-align:center}.control-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:12px;gap:10px}.control-value,output{color:var(--muted);font-size:12px;font-family:'DM Sans','Noto Sans TC',sans-serif}.spaced{margin-top:20px}.switch{display:inline-flex;position:relative;align-items:center;cursor:pointer;flex:none}.switch input{position:absolute;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}.switch span{width:31px;height:18px;background:#404a40;border-radius:20px;display:block;transition:background .2s}.switch span:after{content:'';width:12px;height:12px;position:absolute;left:3px;top:3px;border-radius:50%;background:#c5ccc4;transition:transform .2s}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translateX(13px);background:#25321d}.switch input:focus-visible+span{outline:2px solid var(--accent);outline-offset:4px}.color-swatches{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:15px 0 24px}.swatch{width:23px;height:23px;border-radius:50%;border:0;background:var(--swatch);position:relative;padding:0}.swatch.selected:after{content:'';position:absolute;inset:-5px;border:1px solid var(--swatch);border-radius:50%}.custom-color{width:26px;height:26px;position:relative;border:1px solid #566152;border-radius:50%;overflow:hidden;display:grid;place-items:center;cursor:pointer;color:var(--muted);font-size:18px}.custom-color input{position:absolute;opacity:0;inset:0;width:100%;height:100%;padding:0;cursor:pointer}.custom-color span{pointer-events:none}.range{--fill:40%;display:block;width:100%;height:4px;appearance:none;-webkit-appearance:none;background:linear-gradient(to right,var(--accent) 0 var(--fill),#3b443b var(--fill) 100%);border-radius:4px;cursor:pointer;margin:16px 0 6px;padding:0;touch-action:pan-y}.range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;background:var(--accent);border:0;border-radius:50%;box-shadow:0 0 0 3px #141815}.range::-moz-range-thumb{width:11px;height:11px;border:0;background:var(--accent);border-radius:50%}.input-label{font-size:12px;display:block;color:var(--muted);margin-bottom:8px}input[type=text],select{width:100%;border:1px solid #354034;border-radius:6px;background:#1c221d;color:var(--text);padding:11px 12px;font-size:13px;min-height:41px}.title-section input+label{margin-top:16px}.sidebar-footer{display:flex;align-items:center;justify-content:center;gap:8px;padding:22px;border-top:1px solid var(--line);color:var(--subtle);font-size:11px}.sidebar-footer .icon{width:16px;height:16px}.main{max-width:1536px;min-width:0;padding:35px 38px 0;display:flex;flex-direction:column;align-items:stretch}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:31px}.workspace-heading h2{font-size:27px;font-weight:500;letter-spacing:1px;margin-top:6px}.workspace-heading .eyebrow{font-size:10px;color:#8b978c}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:11px 18px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:600;white-space:nowrap}.button .icon{width:17px;height:17px}.button-primary{color:var(--ink);background:var(--accent)}.button-primary:hover{background:#cafa94}.button-secondary{border-color:#4b5848;background:#252f24}.button-secondary:hover{background:#344332}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px;min-height:31px}.preview-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#c7cec4}.live-indicator{width:6px;height:6px;border-radius:50%;background:#869280}.live-indicator.playing{background:var(--accent);box-shadow:0 0 8px #bded8355}.preview-divider{height:12px;width:1px;background:#3f483d;margin:0 4px}.secondary-meta{font-size:11px;color:var(--subtle)}.ratio-group{display:flex;gap:3px;background:#1e241f;padding:3px;border:1px solid var(--line);border-radius:6px}.ratio-group button{background:transparent;border:0;border-radius:3px;font-size:11px;color:#9eaa9c;padding:4px 10px;min-width:43px}.ratio-group button.active{background:#3a4633;color:#dfefd2}.stage{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border:1px solid #323833;border-radius:10px;background:#151a20;isolation:isolate;align-self:center}.stage.square{width:min(100%,640px);aspect-ratio:1}.stage canvas{width:100%;height:100%;object-fit:contain;display:block}.fullscreen-button{position:absolute;right:15px;bottom:15px;color:white;border:1px solid #ffffff24;background:#111a1670;backdrop-filter:blur(9px);width:32px;height:32px;border-radius:6px;display:grid;place-items:center;opacity:.6}.fullscreen-button:hover{opacity:1}.fullscreen-button .icon{width:16px;height:16px}.stage:fullscreen{width:100vw;height:100vh;max-width:none;border:0;border-radius:0;background:#000;aspect-ratio:auto}.stage:fullscreen canvas{object-fit:contain}.stage:fullscreen .fullscreen-button{right:25px;bottom:25px}.player{margin-top:16px;border:1px solid var(--line);background:#191e1a;border-radius:9px;padding:21px 23px 22px}.player-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.track-info{display:flex;gap:13px;align-items:center;min-width:0}.track-info>div{display:flex;flex-direction:column;gap:4px;min-width:0}.track-icon{color:#a5b59b;background:#2e382a;width:35px;height:35px;padding:8px;border-radius:7px}.track-info strong{font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.track-info span{font-size:11px;color:var(--muted)}.volume-control{display:flex;align-items:center;gap:9px;flex:none}.volume-control .range{width:76px;margin:0}.volume-control .range::-webkit-slider-thumb{width:8px;height:8px;box-shadow:none}.icon-button{display:grid;place-items:center;background:none;border:0;padding:7px;color:#a9b5a4;border-radius:5px;flex:none}.icon-button .icon{width:18px;height:18px}.icon-button:hover{color:var(--text);background:#ffffff0a}.transport{display:flex;align-items:center;gap:14px;margin-top:24px}.play-button{border:0;background:var(--accent);color:var(--ink);border-radius:50%;width:37px;height:37px;display:grid;place-items:center;flex:none}.play-button:hover{background:#d1fca4}.play-button .icon{width:21px;height:21px}.time{font-size:11px;color:#b3bdae;font-variant-numeric:tabular-nums;min-width:28px}.seek{margin:0;flex:1;background:linear-gradient(to right,var(--accent) 0 var(--fill),#3b443b var(--fill) 100%);height:3px}.seek::-webkit-slider-thumb{width:8px;height:8px;box-shadow:none}.player-hint{font-size:9px;color:var(--subtle);white-space:nowrap;margin-left:7px}.workspace-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 55px}.preview-note{display:flex;align-items:stretch;gap:12px}.note-line{width:2px;background:linear-gradient(var(--accent),#4d61423d);margin:3px 0}.preview-note p{font-size:13px;line-height:1.9;color:#bdc7b8;margin:0}.preview-note p span{font-size:12px;color:var(--subtle)}.demo-button{border:1px solid #3c4837;background:transparent;border-radius:30px;padding:9px 15px;color:#c0d1b2;display:flex;align-items:center;gap:7px;font-size:12px}.demo-button:hover{border-color:var(--accent);color:var(--accent)}.demo-button .icon{width:15px;height:15px}.main-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 0;margin-top:auto;border-top:1px solid var(--line);color:#83907e;font-size:10px}.main-footer a{display:flex;align-items:center;gap:5px}.main-footer a:hover{color:var(--accent)}.main-footer .icon{width:13px;height:13px}dialog{background:#1b211c;color:var(--text);border:1px solid #46533e;border-radius:16px;padding:30px;width:440px;max-width:calc(100vw - 32px);box-shadow:0 30px 100px #0009}dialog::backdrop{background:#080e0bbd;backdrop-filter:blur(6px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-6px -6px 15px 0}.dialog-heading .eyebrow{font-size:10px}dialog h2{font-size:24px;font-weight:500;line-height:1.5}.dialog-description{font-size:14px;color:var(--muted);line-height:1.8;margin:12px 0 25px}.export-spec{display:flex;gap:12px;color:#bed1b0;font-size:12px;margin:15px 0;flex-wrap:wrap}.export-note{color:var(--muted);font-size:13px;line-height:1.8;margin:18px 0}.full-width{width:100%}.export-progress-label{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin:20px 0}progress{display:block;width:100%;height:6px;border:0;appearance:none;background:#3c4637;border-radius:4px;overflow:hidden}progress::-webkit-progress-bar{background:#3c4637}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}#export-success{text-align:center}.success-symbol{width:48px;height:48px;margin:20px auto;color:var(--ink);background:var(--accent);border-radius:50%;display:grid;place-items:center}#export-result{font-size:14px;color:var(--muted);margin-bottom:20px}.error-text{font-size:14px;line-height:1.7;color:#ffb7b0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;padding:14px 21px;border:1px solid #526547;border-radius:9px;background:#23311feF;box-shadow:0 8px 35px #0004;color:#e4f0dc;font-size:14px;line-height:1.6;width:max-content;max-width:calc(100vw - 30px)}.noscript{padding:20px;background:#493626}.range:disabled{opacity:.45;cursor:default}
/* Regular controls remain legible across both scripts and browser text sizes. */
.eyebrow,.workspace-heading .eyebrow,.dialog-heading .eyebrow{font-size:.75rem;letter-spacing:1.5px}.brand-product,.topbar-right{font-size:.8125rem}.settings-section h2{font-size:.9375rem}.control-label,.control-value,output,.input-label,.upload-zone strong,.cover-upload-text strong,.button,.track-info strong,.preview-note p,.demo-button,input[type=text],select{font-size:.875rem}.upload-zone>span:not(.upload-icon),.upload-zone .file-types,.cover-upload-text span,.cover-upload-text small,.local-note,.section-number,.sidebar-footer,.preview-label,.secondary-meta,.ratio-group button,.track-info span,.time,.player-hint,.preview-note p span,.main-footer{font-size:.75rem!important}.cover-upload-text small{line-height:1.5}.player-hint{display:none}.cover-upload{gap:8px;padding:10px 8px}.cover-upload canvas{width:42px;height:42px}.cover-upload-text span{white-space:normal}.cover-upload>.icon{width:14px;height:14px}.range{height:5px}.range::-webkit-slider-thumb{width:13px;height:13px}.upload-zone .file-types{letter-spacing:0}.main{padding-left:34px;padding-right:34px}
@media(min-width:1600px){.workspace{grid-template-columns:320px minmax(0,1fr)}.main{padding:40px 55px 0;width:100%;margin:0 auto}.settings-section{padding-left:30px;padding-right:30px}.sidebar-intro{padding-left:30px}.workspace-heading{margin-bottom:35px}.workspace-bottom{margin-bottom:75px}}
@media(max-width:1100px){.workspace{grid-template-columns:272px minmax(0,1fr)}.sidebar-intro{padding:26px 20px 22px}.sidebar-intro h1{font-size:19px}.settings-section{padding:22px 20px}.main{padding:29px 24px 0}.workspace-heading h2{font-size:24px}.workspace-tag{display:none}.cover-upload{gap:7px}.cover-upload>.icon{display:none}.transport{gap:11px}.workspace-bottom{align-items:flex-start}.preview-note p span{max-width:200px;display:block}.volume-control .range{width:55px}.main-footer{line-height:1.8;gap:6px;padding:17px 0}}
@media(max-width:800px){.topbar{padding:16px 20px;min-height:70px}.brand-name{font-size:23px}.brand-product{font-size:11px;letter-spacing:1px}.brand-divider{margin:0 11px}.topbar-right{display:none}.workspace{display:flex;flex-direction:column}.main{order:0;padding:25px 20px 0}.sidebar{order:1;border-right:0;border-top:1px solid var(--line);margin-top:15px}.sidebar-intro{padding:24px}.sidebar-intro h1{font-size:21px}.settings-fieldset{display:grid;grid-template-columns:1fr 1fr}.settings-section{padding:24px;border-right:1px solid var(--line)}.settings-section:nth-child(even){border-right:0}.sidebar-footer{padding:20px}.workspace-heading{margin-bottom:24px}.workspace-heading h2{font-size:23px}.workspace-heading .button{min-height:41px;padding:10px 14px}.preview-toolbar{margin-bottom:12px}.stage{border-radius:8px}.stage.square{max-width:510px}.player{padding:18px}.workspace-bottom{margin:22px 0 25px;align-items:center}.main-footer{margin-top:0}.cover-upload>.icon{display:block}.cover-upload canvas{width:48px;height:48px}.cover-upload{padding:12px}.fullscreen-button{bottom:10px;right:10px}.player-hint{display:none}}
@media(max-width:450px){.topbar{padding:15px 16px}.brand-mark{width:33px;height:33px}.main{padding:22px 14px 0}.workspace-heading .eyebrow{font-size:10px}.workspace-heading h2{font-size:21px}.workspace-heading .button{font-size:13px;padding:10px 12px}.preview-label{gap:6px}.preview-divider{margin:0 2px}.ratio-group button{padding:4px 8px;min-width:35px}.settings-fieldset{display:block}.settings-section{border-right:0;padding:24px}.volume-control{gap:3px}.volume-control .range{width:42px}.transport{gap:10px;margin-top:19px}.player{padding:16px 13px}.track-info{gap:9px}.track-icon{width:31px;height:31px;padding:7px}.workspace-bottom{gap:9px}.preview-note{gap:9px}.preview-note p span{max-width:210px;font-size:11px}.demo-button{padding:8px 10px;white-space:nowrap}.main-footer{font-size:11px}.stage.square{max-width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.text-layout-note{font-size:11px;line-height:1.8;color:var(--muted,#93998e);margin:13px 0 8px}.text-reset{border:0;background:transparent;color:var(--accent,#bded83);padding:4px 0;font:inherit;font-size:11px;cursor:pointer}.text-reset:disabled{opacity:.5;cursor:default}
#export-result{overflow-wrap:anywhere;line-height:1.8}

.export-estimate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:18px 0 8px;border:1px solid #46533e;border-radius:8px;background:#252f23;font-size:14px}.export-estimate strong{font-size:19px;color:var(--accent);font-variant-numeric:tabular-nums}.export-preset-note{font-size:13px;line-height:1.7;color:var(--muted);margin:8px 0 14px}#export-preset{margin-bottom:0}#export-options>.input-label{font-size:14px}#spectrum-outline-colors{margin-top:10px}

.export-audio-choice{display:flex;align-items:center;gap:10px;font-size:14px;margin:18px 0 6px;cursor:pointer}.export-audio-choice input{width:17px;height:17px;accent-color:var(--accent)}.cover-layout-section .control-label{font-size:14px;gap:10px}.cover-layout-section .control-label label:first-child{line-height:1.5}
.spectrum-note{font-size:.8125rem;line-height:1.75;color:var(--muted);margin:10px 0 18px}.spectrum-layout{border:1px solid var(--line);border-radius:7px;padding:12px;margin:0 0 22px}.spectrum-layout summary{cursor:pointer;font-size:.875rem;color:var(--text);line-height:1.6}.spectrum-layout summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.spectrum-layout[open] summary{color:var(--accent)}.spectrum-layout .spectrum-note{margin-bottom:8px}.spectrum-layout .text-reset{font-size:.8125rem;line-height:1.6}.spectrum-section select{font-size:.875rem}.spectrum-section{min-width:0}
.disc-upload{margin-top:11px}.disc-upload canvas{border-radius:50%;background:#242a27}.disc-section select{font-size:.875rem}
@media(min-width:801px){html,body{height:100%;overflow:hidden}.topbar{height:78px}.workspace{height:calc(100dvh - 78px);min-height:0}.sidebar,.main{height:100%;overflow-y:auto;overscroll-behavior:contain}.sidebar{scrollbar-gutter:stable}.main{scrollbar-gutter:stable both-edges}}
@media(max-width:800px){html,body{height:auto;overflow:auto}.workspace{height:auto;min-height:calc(100vh - 70px)}.sidebar,.main{height:auto;overflow:visible}}
.beta-badge{display:inline-flex;align-items:center;margin-left:7px;padding:2px 5px;border:1px solid #7f9e68;border-radius:4px;color:var(--accent);font-size:.625rem;line-height:1;letter-spacing:1px;vertical-align:middle}.layer-note{margin:-7px 0 12px;color:var(--muted);font-size:.8125rem;line-height:1.7}.layer-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:7px}.layer-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:8px 9px 8px 12px;border:1px solid var(--line);border-radius:7px;background:#1c221d}.layer-name{display:flex;flex-direction:column;gap:2px;min-width:0}.layer-name strong{font-size:.875rem;font-weight:500}.layer-name small{font-size:.75rem;color:var(--muted)}.layer-actions{display:flex;gap:5px}.layer-actions button{width:31px;height:31px;padding:0;border:1px solid #455042;border-radius:5px;background:#252d26;color:#d7e2d2}.layer-actions button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.layer-actions button:disabled{cursor:default;opacity:.3}.spectrum-audio-layout select{margin-bottom:4px}#radial-lock-controls{padding-bottom:3px;border-bottom:1px solid var(--line)}#spectrum-position-note{min-height:2.8em}
/* Language controls remain available on desktop and mobile. */
.time-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:16px 0}.time-fields>div{min-width:0}.time-fields .text-reset{font-size:.8125rem;white-space:normal;line-height:1.5}
input[type=number],textarea{width:100%;min-width:0;border:1px solid #354034;border-radius:6px;background:#1c221d;color:var(--text);padding:10px;font:inherit;font-size:.875rem}textarea{resize:vertical;line-height:1.7;min-height:70px}.lyrics-section details{margin-top:18px}.lyrics-section input[type=color]{width:48px;height:32px;padding:2px;border:1px solid var(--line);background:transparent}.clip-section .button,.lyrics-section .button{white-space:normal;line-height:1.6}.lyrics-section select{max-width:100%}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto}#export-range-note{border-left:2px solid var(--accent);padding-left:12px}
.layer-actions{align-items:center;flex:none}.layer-actions .switch{margin-right:4px}.layer-list li:has(.switch input:not(:checked)) .layer-name{opacity:.5}
.stage.portrait{width:min(100%,360px,calc((100dvh - 300px) * .5625));min-width:150px;aspect-ratio:9/16}
.stage.portrait:fullscreen{width:100vw;height:100vh;max-width:none;aspect-ratio:auto}
#background-color{width:52px;height:34px;border:1px solid var(--line);border-radius:5px;background:transparent;padding:3px;cursor:pointer}
@media(max-width:800px){.stage.portrait{width:min(100%,320px)}.preview-toolbar{flex-wrap:wrap}}
.language-picker{display:flex;align-items:center;gap:8px;font-size:.875rem;flex:none}
#language-select{width:auto;min-width:118px;padding:8px 28px 8px 10px;font-size:.875rem}
:root{--font:'DM Sans','Noto Sans TC','Noto Sans SC','Noto Sans JP','Noto Sans KR','Microsoft JhengHei','Microsoft YaHei','Hiragino Kaku Gothic ProN','Yu Gothic','Malgun Gothic',sans-serif}
:root:lang(zh-Hans){--font:'DM Sans','Microsoft YaHei','PingFang SC','Noto Sans SC',sans-serif}
:root:lang(ja){--font:'DM Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo','Noto Sans JP',sans-serif}
:root:lang(ko){--font:'DM Sans','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif}
.control-value,output{font-family:var(--font)}
.control-label label,.settings-section h2,.input-label{overflow-wrap:anywhere}
.control-label{line-height:1.5}.control-label output{flex:none}
.workspace-heading h2{overflow-wrap:anywhere}
.preview-label{flex-wrap:wrap}.ratio-group{flex:none}
.topbar-right{gap:16px}.workspace-tag{white-space:nowrap}
@media(max-width:1400px){.workspace-tag{display:none}}
@media(max-width:800px){.topbar{height:auto;flex-wrap:wrap;gap:12px}.topbar-right{display:flex;margin-left:auto}.topbar-right .channel-link{display:none}.language-picker>span{display:none}#language-select{min-width:105px}.workspace-heading{flex-wrap:wrap}.workspace-bottom{flex-wrap:wrap}.demo-button{white-space:normal}}

/* Main sections collapse independently without changing their media or settings. */
.settings-section h2{margin-bottom:0;gap:8px}
.section-toggle{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:44px;padding:0;background:transparent;border:0;text-align:left;font-size:inherit;font-weight:inherit;line-height:1.5}
.section-toggle:hover{color:var(--accent)}
.section-chevron{margin-left:auto;flex:none;font-size:20px;transform:rotate(-90deg)}
.section-toggle[aria-expanded="true"] .section-chevron{transform:rotate(0deg)}
.section-panel{padding-top:18px}
.settings-section{padding-top:12px;padding-bottom:12px}
@media(max-width:800px){.settings-fieldset{display:block}.settings-section{border-right:0}}

.scene-section .studio-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.scene-section .button { flex:1; min-width:100px; padding:10px 12px; }
.scene-section input[type="number"], .scene-section input[type="text"] { width:100%; }
.scene-section input[type="color"] { width:100%; height:34px; border:1px solid #3b4338; background:#1b211c; border-radius:6px; }
.scene-section .export-audio-choice { margin-top:18px; }

.workspace-heading { flex-wrap:wrap; }
.workspace-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; max-width:100%; margin-left:auto; }
.workspace-actions .button { min-width:0; max-width:100%; white-space:normal; font-size:.875rem; }
#project-status { margin:-15px 0 18px; text-align:right; overflow-wrap:anywhere; }
#project-status:empty { display:none; }
