:root{--bg:#0b0d10;--panel:#12161b;--panel2:#171c22;--line:#232a33;--text:#d7dde5;--muted:#8691a0;--accent:#e2574c}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);margin:0;font-family:Inter,system-ui,sans-serif;font-size:13px}#app{flex-direction:column;height:100vh;display:flex}.st-header{border-bottom:1px solid var(--line);background:#0e1115;align-items:center;gap:16px;padding:10px 16px;display:flex}.st-brand{letter-spacing:.18em;align-items:center;gap:10px;font-size:12px;font-weight:500;display:flex}.st-brand b{color:var(--accent);font-weight:700}.st-dot{background:var(--accent);width:9px;height:9px;box-shadow:0 0 10px var(--accent);border-radius:50%}.st-status{color:var(--muted);margin-left:auto;font-size:12px}.st-select,input[type=number]{background:var(--panel2);color:var(--text);border:1px solid var(--line);font:inherit;border-radius:6px;padding:5px 8px}.st-select.sm{padding:3px 6px}.st-main{flex:1;grid-template-columns:1fr 340px;min-height:0;display:grid}.st-viewport-wrap{flex-direction:column;gap:10px;min-width:0;min-height:0;padding:12px;display:flex}.st-viewport{border:1px solid var(--line);background:#000;border-radius:8px;flex:1;min-height:0;position:relative;overflow:hidden}#stage{transform-origin:50%;position:absolute;top:50%;left:50%}.mp-canvas{display:block}.st-transport{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.st-transport button{background:var(--panel2);color:var(--text);border:1px solid var(--line);cursor:pointer;font:inherit;border-radius:6px;min-width:40px;padding:6px 10px}.st-transport button:hover{border-color:#3a4552}.st-play{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;min-width:52px!important}.st-time{font-variant-numeric:tabular-nums;flex-direction:column;margin:0 8px;display:flex}.st-time span{font-size:18px;font-weight:300}.st-time small{color:var(--muted);font-size:11px}.st-inline{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.st-perf{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:auto;font-size:11px}.st-timeline{background:var(--panel);border:1px solid var(--line);cursor:pointer;border-radius:8px;height:84px;position:relative;overflow:hidden}.st-timeline canvas{width:100%;height:100%;display:block}.st-playhead{pointer-events:none;background:#fff;width:2px;position:absolute;top:0;bottom:0;box-shadow:0 0 8px #fff9}.st-side{border-left:1px solid var(--line);background:var(--panel);flex-direction:column;gap:12px;padding:12px;display:flex;overflow-y:auto}.st-panel{background:var(--panel2);border:1px solid var(--line);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.st-panel h3{letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 4px;font-size:11px;font-weight:600}.st-panel label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.st-panel label.st-inline{flex-direction:row}.st-row{align-items:flex-end;gap:8px;display:flex}.st-row>*{flex:1}.st-btn{color:var(--text);border:1px solid var(--line);cursor:pointer;font:inherit;background:#222932;border-radius:6px;padding:7px 10px}.st-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.st-shots{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.st-shots li{cursor:pointer;border-radius:6px;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;padding:6px 8px;display:grid}.st-shots li:hover{background:#1d232b}.st-shots li.active{background:#222a33;outline:1px solid #34404d}.st-shots .sw{border-radius:3px;width:10px;height:10px}.st-shots .tm{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.st-progress{background:#0e1115;border-radius:3px;height:6px;overflow:hidden}.st-progress div{background:linear-gradient(90deg, var(--accent), #f0a04b);width:0;height:100%;transition:width .4s}.st-exp-info{color:var(--muted);min-height:28px;font-size:11px}.st-outputs{color:var(--muted);margin:0;padding-left:16px;font-size:11px}.st-outputs a{color:#9cc8ff}.st-gpu{color:var(--muted);border:1px solid var(--line);white-space:nowrap;text-overflow:ellipsis;border-radius:999px;max-width:420px;padding:3px 10px;font-size:11px;overflow:hidden}.st-gpu.ok{color:#7fd6a2;border-color:#2b5a40}.st-gpu.warn{color:#ffb36b;border-color:#6a4524}.st-gpu.bad{color:#ff7b72;border-color:#6a2a26}.st-kv{grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:11px;display:grid}.st-kv dt{color:var(--muted)}.st-kv dd{color:var(--text);overflow-wrap:anywhere;margin:0}.st-kv dd.ok{color:#7fd6a2}.st-kv dd.warn{color:#ffb36b}.st-mem{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.st-estimate{color:var(--text);border:1px solid var(--line);background:#0e1115;border-radius:6px;padding:6px 8px;font-size:12px}.st-bench{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:11px}.st-bench th,.st-bench td{text-align:left;border-bottom:1px solid var(--line);padding:3px 4px}.st-bench th{color:var(--muted);font-weight:500}.st-busy{color:var(--text);text-align:center;z-index:5;background:#080a0dd1;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex;position:absolute;inset:0}.st-busy[hidden]{display:none}.st-busy b{letter-spacing:.04em;font-size:16px;font-weight:600}.st-busy span{color:var(--muted);max-width:420px}@media (max-width:900px){.st-main{grid-template-columns:1fr}.st-side{border-left:0;border-top:1px solid var(--line)}}.st-side{overflow-x:hidden}.st-panel,.st-row>*,.st-panel label{min-width:0}.st-panel .st-select,.st-panel input[type=number]{width:100%;min-width:0;max-width:100%}.st-row button{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}
