/* Desktop creative workspace. Renderer dimensions follow its own ResizeObserver. */
:root { --topbar-h:74px; --status-h:48px; --rail-w:88px; --left-w:304px; --right-w:324px; }
[hidden] { display:none !important; }
body { font-size:13px; }
#topbar { background:var(--bg-secondary); padding:0 22px; gap:18px; }
.brand-logo { width:40px; height:44px; overflow:visible; }
.brand-name { font-size:19px; font-weight:450; letter-spacing:-.4px; }
.brand-tag { font-size:8px; letter-spacing:.8px; color:var(--text2); margin-top:4px; }
.top-actions { gap:9px; }
.btn.primary { color:var(--accent-ink); box-shadow:0 2px 9px #9882ac12; font-weight:600; }
.btn { min-height:34px; border-color:var(--border-primary); transition:background 160ms,color 160ms,border-color 160ms; }
.btn:active { transform:translateY(1px); }
.btn:disabled { opacity:.45; cursor:default; }
.btn:focus-visible,select:focus-visible,input:focus-visible { outline:2px solid var(--accent-primary); outline-offset:3px; }
#rail { background:var(--bg-secondary); padding:10px 7px; gap:5px; overflow-y:auto; }
.rail-item { min-height:62px; border-radius:10px; flex-shrink:0; gap:6px; }
.rail-item span { font-size:10px; letter-spacing:.5px; text-transform:uppercase; }
.rail-item.active { background:var(--bg-active); color:var(--text); border:1px solid var(--accent-secondary); box-shadow:inset 0 0 18px #a393bf0a; }
.rail-item svg { width:21px; height:21px; }
#leftPanel { background:var(--bg-secondary); border-right:1px solid var(--border); }
.panel-body { padding:20px 20px 28px; }
.panel-title { font-size:16px; margin-bottom:8px; }
.panel-desc { font-size:13px; line-height:1.6; margin-bottom:20px; }
.drop { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:166px; border:1px dashed var(--palette-3); background:var(--bg-panel); border-radius:12px; padding:18px; margin-bottom:13px; }
.upload-icon { width:28px; height:28px; color:var(--accent-primary); margin-bottom:12px; }
.drop strong { font-size:14px; }
.drop small { font-size:11px; margin-top:5px; }
.choose-file { display:block; min-width:174px; margin:15px auto 0; padding:8px 12px; border:1px solid var(--border-primary); background:var(--bg-elevated); border-radius:7px; font-size:12px; color:var(--text); }
.choose-file::after { content:'⌄'; float:right; margin-left:18px; }
.drop.compact { min-height:46px; align-items:stretch; text-align:left; border-style:solid; }
.aux-head { margin-top:22px; margin-bottom:9px; }
.source-card { border:1px solid var(--border-primary); background:var(--bg-panel); border-radius:12px; padding:12px; }
.section-label { font-size:13px; color:var(--text); margin-top:24px; }
#viewportWrap { flex-direction:column; padding:14px; gap:14px; }
#viewport { flex:1 1 0; min-height:0; border-color:var(--border-primary); border-radius:13px; }
#vpTools,#vpProjection,#vpResolution { background:var(--bg-secondary); border:1px solid var(--border-primary); box-shadow:none; }
.viewport-overlay { color:var(--text-muted); text-shadow:none; letter-spacing:1.6px; font-size:10px; }
#vpHint { max-width:70%; }
#vpHint span { letter-spacing:.1px; }
.creator-link { color:var(--text-muted); bottom:20px; font-size:10px; letter-spacing:1px; }
#rightPanel { background:var(--bg-secondary); }
#rightPanel .panel-body { padding:12px 12px 20px 0; }
.card { background:var(--bg-panel); border:1px solid var(--border-primary); border-radius:12px; padding:16px 17px; margin-bottom:9px; box-shadow:var(--shadow); }
.card-title { display:flex; gap:10px; align-items:center; font-size:13px; font-weight:650; margin-bottom:14px; color:var(--text); }
.card-title svg { width:20px; height:20px; color:var(--accent-primary); }
.control.tight { margin:9px 0; }
.row { gap:8px; align-items:center; }
.row label { font-size:12px; }
output { min-width:54px; padding:2px 7px; text-align:center; background:var(--bg-input); border:1px solid var(--border-primary); border-radius:5px; font-variant-numeric:tabular-nums; color:var(--text2); }
input[type="range"] { accent-color:var(--accent-primary); height:5px; margin-top:7px; }
input[type="range"]::-webkit-slider-thumb { background:var(--accent-primary); border:2px solid var(--accent-primary); width:14px; height:14px; box-shadow:none; }
input[type="range"]::-moz-range-thumb { background:var(--accent-primary); border:0; width:14px; height:14px; }
input[type="checkbox"] { accent-color:var(--accent-primary); }
input[type="checkbox"]:checked { background:var(--accent-grad); }
input[type="range"]::-webkit-slider-runnable-track { background:linear-gradient(to right,var(--slider-fill) var(--fill,0%),var(--slider-track) var(--fill,0%)); height:4px; }
#vpHint { top:68px; bottom:auto; left:24px; }
#vpHint strong { color:var(--text-muted); }
#vpProjection select,#vpResolution select,#vpTools .btn { color:var(--text2); }
.creator-link { bottom:65px; }
.creator-link { position:absolute; z-index:7; right:20px; display:flex; align-items:center; gap:9px; text-decoration:none; }
.creator-link img { width:40px; height:32px; object-fit:contain; }
.player-heading { display:flex; align-items:center; justify-content:space-between; }
.player-actions { display:flex; align-items:center; justify-content:center; }
#playerTrack { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.source-card { display:grid; grid-template-columns:56px minmax(0,1fr); gap:9px; }
.source-card .source-remove { grid-column:2; justify-self:start; }
.source-thumb,#waveCanvas { width:56px; height:56px; grid-row:1 / 3; min-width:0; }
.source-info { min-width:0; }
.source-meta { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#emptyState { background:var(--viewport-bg); }
.empty-box { max-width:min(450px,90%); padding:30px; }
.empty-box small { font-size:13px; }
.export-hud { position:absolute; z-index:30; left:50%; top:70px; transform:translateX(-50%); display:flex; align-items:center; gap:16px; max-width:calc(100% - 24px); padding:14px 18px; border:1px solid var(--border-primary); border-radius:12px; }
@media (max-width:1500px) { .player-actions { display:grid; grid-template-columns:auto auto auto; } #playerBeat { grid-column:1 / 3; } #statusParticles { max-width:100px; overflow:hidden; white-space:nowrap; } #statusbar .status-track { max-width:80px; } }
.card-title { text-transform:none; letter-spacing:0; }
#rightPanel .control.tight { margin:7px 0; }
#rightPanel .card { padding-top:14px; padding-bottom:10px; }
#rightPanel .card-title { margin-bottom:10px; }
.floating-player { min-height:78px; }
.player-actions { flex-wrap:nowrap; max-width:none; }
.player-actions .btn { font-size:11px; }
[data-theme="light"] .btn,[data-theme="light"] .rail-item,[data-theme="light"] .theme-switch button { color:var(--text-secondary); }
[data-theme="light"] .btn.primary { color:var(--accent-ink); }
[data-theme="light"] .drop { background:var(--bg-panel); }
[data-theme="light"] .rail-item.active { color:#722066; }
#statusbar { background:var(--bg-secondary); padding:0 18px; gap:12px; border-top:1px solid var(--border-primary); color:var(--text-muted); }
#statusbar .btn.primary { min-height:34px; padding:7px 17px; }
.floating-player { position:relative; flex:none; left:auto; bottom:auto; transform:none; width:100%; display:flex; align-items:center; gap:13px; padding:13px 15px; min-height:80px; border:1px solid var(--border-primary); border-radius:12px; background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow); backdrop-filter:none; }
.floating-player audio { display:none; }
.player-play { width:44px; height:44px; min-width:44px; border-radius:50%; background:var(--primary-grad); color:var(--accent-ink); border:none; }
.player-play svg { width:20px; height:20px; }
.player-body { min-width:60px; flex:1; }
.player-heading { color:var(--text-muted); font-size:11px; gap:10px; }
#playerTrack { color:var(--text2); flex:1; max-width:65%; }
#playerTime { white-space:nowrap; font-variant-numeric:tabular-nums; }
.player-wave { position:relative; height:29px; }
#playerWave { width:100%; height:29px; }
#playerSeek { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.player-wave:focus-within { outline:2px solid var(--accent-primary); border-radius:4px; }
.player-actions { gap:6px; flex-wrap:wrap; max-width:290px; }
.player-actions .btn { color:var(--text2); }
#playerVolume { width:65px; margin:0 5px; }
#playerLoop[aria-pressed="true"],#playerBeat[aria-pressed="true"] { background:var(--bg-active); color:var(--text); border-color:var(--accent-secondary); }
.app-dialog { width:min(590px,calc(100vw - 40px)); max-height:calc(100dvh - 48px); overflow:auto; margin:auto; padding:28px; border:1px solid var(--border-primary); border-radius:16px; background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow-pop); }
.app-dialog[open] { animation:dialog-enter 160ms ease-out; }
.app-dialog::backdrop { background:#0c0910bb; backdrop-filter:blur(3px); }
.app-dialog h2 { font-size:24px; line-height:1.25; margin:22px 0 14px; }
.app-dialog p { color:var(--text2); font-size:14px; line-height:1.7; }
.app-dialog a { color:var(--text2); }
.app-dialog .btn { color:var(--text); }
.app-dialog .btn.primary { color:var(--accent-ink); }
.app-dialog form { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.install-brand { display:flex; align-items:center; gap:12px; font-size:19px; }
.install-brand img { width:46px; height:46px; object-fit:contain; }
.notice-estimate { background:var(--bg-elevated); border-radius:8px; padding:12px; font-variant-numeric:tabular-nums; }
.legal-dialog { width:min(760px,calc(100vw - 40px)); padding:0; }
.legal-dialog .modal-box { width:auto; max-height:none; border:none; box-shadow:none; }
.legal-dialog h2 { font-size:18px; margin:0; }
.export-hud { background:var(--bg-panel); border-color:var(--border-primary); color:var(--text); }
#desktopNotice { display:none; }
[data-theme="light"] #topbar { background:linear-gradient(110deg,#ccfbfe66,var(--bg-panel) 50%,#e1b6e733); }
[data-theme="light"] #leftPanel { background:linear-gradient(180deg,var(--bg-panel),#ccfbfe44); }
[data-theme="light"] .rail-item.active { color:#722066; }
body.presentation .floating-player { margin:0 auto 8px; width:min(950px,calc(100% - 30px)); }
@keyframes dialog-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (min-width:2200px) { :root { --left-w:330px; --right-w:350px; --rail-w:96px; } .panel-body { padding:24px; } .card { padding:20px; } }
@media (max-width:1500px) { :root { --left-w:255px; --right-w:270px; --rail-w:70px; --topbar-h:64px; --status-h:44px; } #topbar { padding:0 12px; gap:9px; } .brand-name { font-size:16px; } .brand-tag { font-size:7px; } .top-stats,.project-label { display:none; } .panel-body { padding:17px; } .card { padding:13px; } .floating-player { gap:9px; padding:10px; } .player-actions { max-width:205px; } #playerVolume { width:48px; } .drop { min-height:145px; } .rail-item { min-height:55px; } #statusbar { gap:8px; padding:0 10px; } }
@media (max-width:1200px) { .brand-tag,#supportBtn { display:none; } #fullBtn span { display:none; } .top-actions { gap:4px; } }
@media (max-width:1099px) { #desktopNotice { position:fixed; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:40px; z-index:200; background:var(--bg-primary); } #desktopNotice img { width:70px; height:70px; } #desktopNotice p { max-width:420px; font-size:16px; } #topbar,#main,#statusbar { visibility:hidden; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
/* Optional artwork sits beneath the always-available particle generator. */
.procedural-source { padding: 14px; margin-bottom: 16px; border: 1px solid var(--border-primary); border-radius: 12px; }
.procedural-source .control { margin-bottom: 12px; }
.procedural-source .hint { margin: 8px 0 0; font-size: 11px; line-height: 1.5; opacity: .7; }
