:root{color-scheme:dark;--ink:#e9e7ee;--muted:#aaa6b7;--edge:#2a2933;--ground:#111117;--panel:#181820;--raised:#23222d;--accent:#bd9dff;--action:#a386fd;--action-ink:#17112a;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink)}[hidden]{display:none!important}
a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--edge);background:#15151c;gap:15px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:17px;font-weight:750;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--action);color:var(--action-ink);font-weight:900;font-size:18px}.brand-section{border-left:1px solid #43414d;padding-left:9px;color:var(--muted);font-weight:500;font-size:14px}
.topbar nav{display:flex;align-items:center;gap:20px;font-size:13px;color:var(--muted);white-space:nowrap}.topbar nav a:hover{color:var(--accent)}
.studio{display:grid;grid-template-columns:285px minmax(0,1fr) 270px;min-height:calc(100dvh - 64px);max-width:1920px;margin:auto}.library,.inspector{background:var(--panel);min-width:0}.library{border-right:1px solid var(--edge);height:calc(100dvh - 64px);position:sticky;top:0;overflow:auto;scrollbar-color:#484456 transparent}.inspector{padding:23px 20px;border-left:1px solid var(--edge)}
.list-head{padding:19px 17px 13px;position:sticky;top:0;background:var(--panel);z-index:1;border-bottom:1px solid var(--edge)}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.list-heading h1,.inspector h2{font-size:16px;line-height:1.4;margin:0}#count{font-size:12px;color:var(--muted)}
input[type="search"],input[type="text"],select,textarea,input[type="number"]{width:100%;border:1px solid #413d50;border-radius:8px;background:#17151f;padding:9px 10px;font-size:13px;min-height:40px}textarea{resize:vertical;line-height:1.5;min-height:60px}#group{margin-top:8px}.muted,.empty{font-size:12px;color:var(--muted);line-height:1.65}.empty{padding:0 17px}
.component-list{display:grid;gap:4px;padding:9px}.component{border:1px solid transparent;background:none;border-radius:9px;text-align:left;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:10px;padding:7px;width:100%;min-height:61px}.component:hover{background:var(--raised)}.component[aria-pressed="true"]{border-color:#8066c3;background:#2c2441}.thumb{width:70px;height:44px;border-radius:5px;background:#101015;object-fit:contain}.component-copy{min-width:0}.component-id{display:block;color:var(--accent);font:650 11px ui-monospace,monospace;margin-bottom:3px}.component-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35}
.workspace{min-width:0;display:flex;flex-direction:column;gap:16px;padding:22px 24px 19px}.workspace-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px}.eyebrow{font-size:12px;color:var(--accent);margin:0 0 6px}.workspace-head h2{font-size:clamp(15px,1.5vw,21px);line-height:1.4;margin:0;font-weight:700}.spec,#clock{font:12px ui-monospace,monospace;color:var(--muted);white-space:nowrap}
.stage{min-height:330px;flex:1;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 45%,#24212e,#111116 78%);border:1px solid var(--edge);border-radius:14px;overflow:hidden}.picture{display:grid;place-items:center;width:100%;min-width:0}.picture video,.picture canvas{display:block;max-width:100%;max-height:calc(100dvh - 242px);width:auto;height:auto;background:#0d0d12;box-shadow:0 12px 40px #0007;object-fit:contain}.picture video[hidden]{display:none!important}
.transport{display:flex;align-items:center;gap:13px}.play{background:#262331;border:1px solid #413b50;border-radius:8px;padding:7px 10px;white-space:nowrap;font-size:13px}.transport input{flex:1;min-width:0;accent-color:var(--action)}
.settings,.actions{display:grid;gap:8px}.settings{margin:18px 0 22px}.settings label{font-size:13px;font-weight:620}.field{display:grid;gap:7px;margin-top:3px}.quiet{justify-self:start;background:none;border:0;color:var(--accent);font-size:12px;padding:5px 0}.primary,.secondary{min-height:42px;border-radius:9px;display:flex;justify-content:center;align-items:center;padding:9px 8px;text-align:center;font-size:13px;font-weight:680}.primary{background:var(--action);color:var(--action-ink);border:1px solid var(--action)}.primary:hover{background:#c1adff}.secondary{background:#23212d;border:1px solid #454054}.secondary:hover{border-color:#a68ad3}.feedback{font-size:12px;line-height:1.65;color:#d9c6ff;margin:12px 0;overflow-wrap:anywhere}.copy-text{font-size:11px}.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.single .studio{grid-template-columns:minmax(0,1fr) 285px;max-width:1120px;margin:0 auto}body.single .workspace{padding-left:20px}body.single .inspector{padding-top:26px}
@media(max-width:1080px){.studio{grid-template-columns:218px minmax(0,1fr) 220px}.workspace{padding:18px 14px}.inspector{padding:18px 13px}.workspace-head{align-items:flex-start;flex-direction:column;gap:5px}.stage{padding:12px}}
@media(max-width:760px){.topbar{height:56px;padding:0 13px}.topbar nav{gap:11px;font-size:11px}.brand{font-size:15px}.brand-section{display:none}.studio,body.single .studio{display:grid;grid-template-columns:1fr;min-height:calc(100dvh - 56px)}.library{height:auto;position:static;border-right:0;border-bottom:1px solid var(--edge)}.list-head{position:static;display:grid;grid-template-columns:1.2fr 1fr;gap:8px;padding:11px 14px}.list-heading{grid-column:1/-1;margin:0}.list-head #group{margin:0}.component-list{display:flex;overflow:auto;gap:5px;padding:7px 10px}.component{width:160px;flex:0 0 160px;grid-template-columns:48px minmax(0,1fr);gap:7px;min-height:52px}.thumb{width:48px;height:34px}.workspace,body.single .workspace{padding:16px 13px}.stage{min-height:245px}.picture video,.picture canvas{max-height:54dvh}.inspector{border-top:1px solid var(--edge);border-left:0;padding:17px 15px 22px}}
