:root{color-scheme:dark;--bg:#14171c;--panel:#1e232b;--panel2:#282e38;--line:#343c49;--text:#f0f3f8;--muted:#a3afbf;--accent:#6588d4;--active:#344d81}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px system-ui,sans-serif}body.light{color-scheme:light;--bg:#eef1f6;--panel:#fff;--panel2:#f2f4f8;--line:#d6dce5;--text:#17202e;--muted:#58667a;--active:#c8d8ff}header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--line);background:var(--panel)}.brand{display:flex;gap:12px;align-items:center}.logo{background:#5277c6;color:white;font-size:26px;font-weight:800;border-radius:12px;width:46px;height:46px;display:grid;place-items:center}h1{font-size:21px;margin:0}h2{font-size:13px;margin:15px 0 9px;letter-spacing:.03em}small,footer{color:var(--muted);font-size:12px}.header-actions,.buttons,.transport{display:flex;gap:8px;align-items:center;flex-wrap:wrap}main{display:grid;grid-template-columns:220px minmax(320px,1fr) 300px;gap:14px;padding:14px;max-width:1800px;margin:auto}aside,.center{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:13px;min-width:0}aside h2:first-child,.preview-head h2{margin-top:0}button,select,input,textarea{font:inherit}button,select,textarea,input[type=number]{background:var(--panel2);border:1px solid var(--line);border-radius:7px;color:var(--text);padding:8px;cursor:pointer}button:hover{border-color:var(--accent)}button.active,button.primary{background:var(--active);border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}#library{display:grid;grid-template-columns:1fr 1fr;gap:6px}#library button{display:flex;flex-direction:column;align-items:center;font-size:11px;padding:4px;min-width:0}#library svg{width:100%;height:65px;background:white;border-radius:4px}#actors{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}label{display:flex;flex-direction:column;gap:5px;margin:10px 0;color:var(--muted)}label.inline{display:flex;flex-direction:row;align-items:center;margin:6px 0}input[type=range]{width:100%;accent-color:var(--accent)}input[type=number]{width:65px}input[type=color]{height:32px;width:100%;border:0}textarea{width:100%;min-height:50px;resize:vertical}select{width:100%}.preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.preview-head h2{font-size:17px;margin-bottom:3px}#status{font-size:12px;color:var(--muted)}.stage{aspect-ratio:16/9;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 50%/20px 20px;overflow:hidden;border-radius:9px}.stage svg{display:block;width:100%;height:100%}.transport{margin-top:12px}.transport #clock{font-variant-numeric:tabular-nums;margin-right:auto}.choice{display:grid;grid-template-columns:1fr 1fr;gap:5px}.choice button{font-size:12px;padding:7px 4px}.subpanel{border-top:1px solid var(--line);margin-top:16px;padding-top:3px}.subpanel audio{width:100%}.subpanel small{display:block;margin-top:8px}footer{text-align:center;padding:12px}.range-label{display:flex;justify-content:space-between}#audioFile{max-width:100%}@media(max-width:1050px){main{grid-template-columns:165px minmax(0,1fr)}.inspector{grid-column:1/-1}.inspector .choice{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}}@media(max-width:650px){header{padding:10px;flex-wrap:wrap;gap:10px}main{display:flex;flex-direction:column;padding:8px}#library{grid-template-columns:repeat(4,1fr)}#library svg{height:50px}h1{font-size:17px}}