.mlab-root{position:relative;isolation:isolate;width:100%;height:100%;min-height:600px;overflow:hidden}.mlab-viewer canvas{display:block;width:100%;height:100%;outline:none}.mlab-runtime-message{min-width:150px;padding:10px 12px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:#0c0f15db;color:#eef1f6;font:12px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.mlab-runtime-error{max-width:360px;border-color:#dc5c708c;color:#ffd8de}.mlab-root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#eef1f6;background:#090b0f;font-synthesis:none;text-rendering:optimizeLegibility;color-scheme:dark}.mlab-root,.mlab-root *{box-sizing:border-box}.mlab-root{width:100%;height:100%;margin:0;overflow:hidden}.mlab-root button,.mlab-root input,.mlab-root select{font:inherit}.mlab-root button{color:inherit}.mlab-root .app-shell{width:100%;height:100%;display:grid;grid-template-rows:58px minmax(0,1fr);background:#090b0f}.mlab-root .toolbar{position:relative;z-index:20;display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #232833;background:#0e1117f7;box-shadow:0 8px 24px #0000002e;overflow-x:auto}.mlab-root .brand{display:flex;align-items:center;gap:10px;min-width:170px;margin-right:4px}.mlab-root .brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(145deg,#6f7cff,#4b55ce);box-shadow:inset 0 1px #ffffff40,0 8px 20px #4f59d247;font-weight:800;font-size:12px;letter-spacing:.04em}.mlab-root .brand div{display:grid;gap:1px}.mlab-root .brand strong{font-size:14px}.mlab-root .brand small{color:#8d96a7;font-size:10px}.mlab-root .toolbar-group{display:flex;align-items:center;gap:6px;white-space:nowrap}.mlab-root .toolbar-spacer{flex:1;min-width:12px}.mlab-root .toolbar-divider{width:1px;align-self:stretch;margin:4px 1px;background:#282d38}.mlab-root .button,.mlab-root .segmented button{border:1px solid #323846;border-radius:8px;background:#1b1f28;color:#dce1eb;padding:7px 10px;cursor:pointer;transition:border-color .14s ease,background .14s ease,transform .14s ease}.mlab-root .button:hover:not(:disabled),.mlab-root .segmented button:hover:not(:disabled){border-color:#566178;background:#242a35}.mlab-root .button:active:not(:disabled),.mlab-root .segmented button:active:not(:disabled){transform:translateY(1px)}.mlab-root .button:disabled,.mlab-root .segmented button:disabled{opacity:.42;cursor:not-allowed}.mlab-root .button.primary{border-color:#6874ff;background:#5c68ea;color:#fff}.mlab-root .button.accent{border-color:#347c66;background:#1f5f4d}.mlab-root .segmented{padding:2px;border:1px solid #292f3a;border-radius:9px;background:#11151b}.mlab-root .segmented button{min-width:32px;padding:5px 9px;border:0;background:transparent}.mlab-root .segmented button.active{background:#394056;color:#fff}.mlab-root .workspace{min-height:0;display:grid;grid-template-columns:248px minmax(320px,1fr) 370px}.mlab-root .panel{min-width:0;min-height:0;background:#101319;color:#dce1eb}.mlab-root .scene-panel{border-right:1px solid #232833;overflow:hidden;display:flex;flex-direction:column}.mlab-root .inspector-panel{border-left:1px solid #232833;overflow-y:auto;scrollbar-color:#353c49 transparent}.mlab-root .panel-heading{padding:15px 15px 12px;border-bottom:1px solid #222833;background:#12161d}.mlab-root .sticky-heading{position:sticky;top:0;z-index:3}.mlab-root .panel-heading h2{max-width:100%;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650}.mlab-root .eyebrow{color:#7f8a9d;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.mlab-root .stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px}.mlab-root .stat-card{min-width:0;display:grid;gap:2px;padding:9px 10px;border:1px solid #252b36;border-radius:9px;background:#151920}.mlab-root .stat-card strong{overflow:hidden;text-overflow:ellipsis;font-size:12px}.mlab-root .stat-card span{color:#7f8999;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.mlab-root .section-title{padding:7px 14px;border-top:1px solid #202630;border-bottom:1px solid #202630;color:#8790a1;background:#0e1116;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.mlab-root .tree-list{min-height:0;flex:1;overflow-y:auto;padding:6px}.mlab-root .tree-row{width:100%;display:flex;align-items:center;gap:9px;padding:8px;border:1px solid transparent;border-radius:7px;background:transparent;text-align:left;cursor:pointer}.mlab-root .tree-row:hover{background:#171c24}.mlab-root .tree-row.active{border-color:#465077;background:#20263a}.mlab-root .tree-icon{color:#7380e9;font-size:8px}.mlab-root .tree-copy{min-width:0;display:grid;gap:2px}.mlab-root .tree-copy strong,.mlab-root .tree-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mlab-root .tree-copy strong{font-size:11px;font-weight:550}.mlab-root .tree-copy small{color:#758093;font-size:9px}.mlab-root .empty-list{padding:13px;color:#7f8999;font-size:11px;line-height:1.5}.mlab-root .viewport-shell{position:relative;min-width:0;min-height:0;overflow:hidden;background:#11141b}.mlab-root .viewport-shell canvas{display:block;width:100%;height:100%;outline:0}.mlab-root .drop-card{position:absolute;z-index:4;inset:50% auto auto 50%;width:min(510px,calc(100% - 40px));transform:translate(-50%,-50%);display:grid;justify-items:center;gap:10px;padding:30px;border:1px solid rgba(130,143,170,.28);border-radius:18px;background:#0f1219e0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 30px 90px #00000075;text-align:center}.mlab-root .drop-card h1{margin:0;font-size:clamp(22px,3vw,34px);letter-spacing:-.04em}.mlab-root .drop-card p{max-width:450px;margin:0;color:#a1a9b8;font-size:13px;line-height:1.6}.mlab-root .drop-card small{color:#697486}.mlab-root .drop-orbit{display:grid;place-items:center;width:54px;height:54px;border:1px solid #515b78;border-radius:50%;color:#9da7ff;background:#21263a;font-size:28px;box-shadow:0 0 45px #6470ff2e}.mlab-root .drop-actions{display:flex;gap:8px;margin:4px 0}.mlab-root .viewport-hint{position:absolute;z-index:3;left:50%;bottom:11px;transform:translate(-50%);padding:6px 9px;border:1px solid rgba(85,94,111,.34);border-radius:7px;background:#090b0fb3;color:#7f8999;font-size:9px;white-space:nowrap;pointer-events:none}.mlab-root .canvas-message{min-width:220px;display:grid;gap:6px;padding:14px 16px;border:1px solid #363e4e;border-radius:10px;background:#0d1016eb;color:#fff;text-align:center;box-shadow:0 20px 50px #00000059}.mlab-root .canvas-message span,.mlab-root .canvas-message small{color:#9ba4b3;font-size:11px}.mlab-root .canvas-error{max-width:360px;border-color:#754d55}.mlab-root .inspector-section{border-bottom:1px solid #232934}.mlab-root .inspector-section summary{padding:11px 14px;color:#c9cfda;background:#11151b;font-size:11px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.mlab-root .inspector-section[open] summary{border-bottom:1px solid #202631}.mlab-root .inspector-content{display:grid;gap:10px;padding:12px 14px 15px}.mlab-root .field{min-width:0;display:grid;grid-template-columns:minmax(90px,1fr) minmax(100px,1.25fr);align-items:center;gap:10px;color:#939daf;font-size:10px}.mlab-root .field-stack{grid-template-columns:1fr;gap:6px}.mlab-root .field input[type=number],.mlab-root .field input[type=text],.mlab-root .field input[type=file],.mlab-root .field select{min-width:0;width:100%;height:29px;border:1px solid #303744;border-radius:6px;outline:none;background:#191e27;color:#e0e5ee;padding:5px 7px;font-size:10px}.mlab-root .field input:focus,.mlab-root .field select:focus{border-color:#6673df;box-shadow:0 0 0 2px #5c68ea26}.mlab-root .field input[type=range]{width:100%;accent-color:#6975eb}.mlab-root .field input[type=file]{height:auto;padding:5px;color:#8993a4}.mlab-root .vector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.mlab-root .axis-input{position:relative;min-width:0}.mlab-root .axis-input b{position:absolute;z-index:1;left:7px;top:7px;color:#6f7cff;font-size:9px;pointer-events:none}.mlab-root .axis-input input{padding-left:19px!important}.mlab-root .range-label{display:flex;justify-content:space-between;gap:8px}.mlab-root .range-label b{color:#d4d9e3;font-weight:550}.mlab-root .toggle-field input{justify-self:end;width:32px;height:18px;accent-color:#6874ff}.mlab-root .toggle-field.disabled{opacity:.45}.mlab-root .color-field{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px}.mlab-root .color-field input[type=color]{width:32px;height:29px;padding:2px;border:1px solid #303744;border-radius:6px;background:#191e27}.mlab-root .readonly-field code{overflow:hidden;text-overflow:ellipsis;color:#aeb7c6;font-size:9px}.mlab-root .toast{position:fixed;z-index:100;left:50%;bottom:26px;transform:translate(-50%);padding:9px 13px;border:1px solid #3c4659;border-radius:8px;background:#191f29;color:#eef1f6;box-shadow:0 16px 50px #00000073;font-size:11px;pointer-events:none}@media(max-width:1050px){.mlab-root .workspace{grid-template-columns:210px minmax(300px,1fr) 330px}.mlab-root .toolbar .brand small,.mlab-root .toolbar-divider{display:none}}@media(max-width:820px){.mlab-root .app-shell{grid-template-rows:auto minmax(0,1fr)}.mlab-root .toolbar{min-height:58px}.mlab-root .workspace{grid-template-columns:minmax(0,1fr)}.mlab-root .scene-panel,.mlab-root .inspector-panel{display:none}}.mlab-root .vector-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.mlab-root .texture-editor,.mlab-root .sequence-editor{display:grid;gap:10px;padding:10px;border:1px solid #29313d;border-radius:9px;background:#0e1218}.mlab-root .section-note{margin:0;color:#8f99aa;font-size:10px;line-height:1.55}.mlab-root .compact-note{padding-top:2px;font-size:9px}.mlab-root .empty-list.compact{padding:8px 0}.mlab-root .inline-actions,.mlab-root .timeline-actions,.mlab-root .keyframe-actions{display:flex;flex-wrap:wrap;gap:6px}.mlab-root .inline-actions .mini-button:last-child,.mlab-root .keyframe-actions .mini-button:last-child{flex:1}.mlab-root .mini-button{border:1px solid #323b4a;border-radius:6px;background:#171d26;color:#cfd6e1;padding:5px 7px;font-size:9px;cursor:pointer}.mlab-root .mini-button:hover{border-color:#58657a;background:#202734}.mlab-root .button.danger{border-color:#693e49;background:#43242c}.mlab-root .timeline-readout{display:flex;align-items:baseline;gap:4px;color:#8792a4;font-size:10px}.mlab-root .timeline-readout strong{color:#f0f3f8;font-size:15px}.mlab-root .timeline-slider{width:100%;accent-color:#6f7cff}.mlab-root .timeline-actions .button{flex:1 1 auto;padding:7px 8px;font-size:9px}.mlab-root .keyframe-list{display:grid;gap:7px;max-height:310px;overflow-y:auto;padding-right:2px}.mlab-root .keyframe-card{display:grid;gap:8px;padding:9px;border:1px solid #2b3340;border-radius:8px;background:#151a22}.mlab-root .keyframe-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.mlab-root .keyframe-heading strong{color:#dbe1eb;font-size:10px}.mlab-root .keyframe-row{display:grid;grid-template-columns:minmax(74px,.75fr) minmax(110px,1.25fr);gap:7px}.mlab-root .keyframe-row label{display:grid;gap:4px;color:#818c9f;font-size:9px}.mlab-root .keyframe-row input,.mlab-root .keyframe-row select{min-width:0;width:100%;height:27px;border:1px solid #303744;border-radius:6px;background:#10151c;color:#dce2eb;padding:4px 6px;font-size:9px}.mlab-root .field-note{margin:0;color:var(--muted);font-size:.78rem;line-height:1.55}.mlab-root .pivot-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.mlab-root .pivot-actions .button{white-space:normal;min-height:2.35rem}.mlab-root .pivot-pick-notice{padding:.7rem .8rem;border:1px solid rgba(124,247,255,.45);border-radius:.65rem;background:#20bfcd1a;color:#aef9ff;font-size:.8rem;line-height:1.4}.mlab-root .mlab-accessible-shell,.mlab-root .mlab-responsive-frame,.mlab-root .mlab-responsive-stage{position:relative;width:100%;height:100%;min-width:0;min-height:0}.mlab-root .mlab-accessible-shell:focus-visible{outline:2px solid #70e1ff;outline-offset:-2px}.mlab-root .mlab-accessible-shell.high-contrast:focus-visible{outline-color:#fff500;outline-width:3px}.mlab-root .mlab-responsive-stage{display:grid;place-items:center;padding:30px 12px 12px;overflow:auto;background:linear-gradient(45deg,rgba(255,255,255,.02) 25%,transparent 25%) 0 0 / 20px 20px,linear-gradient(-45deg,rgba(255,255,255,.02) 25%,transparent 25%) 0 0 / 20px 20px,#0a0d12}.mlab-root .mlab-responsive-frame.fixed-preview{flex:none;overflow:hidden;border:1px solid #3a4354;border-radius:12px;box-shadow:0 20px 70px #00000073}.mlab-root .mlab-device-label{position:absolute;top:8px;left:50%;transform:translate(-50%);padding:4px 8px;border:1px solid #303846;border-radius:999px;background:#0c1017eb;color:#9ba7ba;font-size:10px;white-space:nowrap}.mlab-root .mlab-composition-guides{position:absolute;inset:0;z-index:7;pointer-events:none}.mlab-root .mlab-composition-guides i{position:absolute;display:block;background:#70e1ff85;box-shadow:0 0 0 1px #0000002e}.mlab-root .guide-v{top:0;bottom:0;width:1px}.mlab-root .guide-h{left:0;right:0;height:1px}.mlab-root .guide-v1{left:33.333%}.mlab-root .guide-v2{left:66.666%}.mlab-root .guide-h1{top:33.333%}.mlab-root .guide-h2{top:66.666%}.mlab-root .guide-golden-v1{left:38.2%}.mlab-root .guide-golden-v2{left:61.8%}.mlab-root .guide-golden-h1{top:38.2%}.mlab-root .guide-golden-h2{top:61.8%}.mlab-root .guide-center-x{top:50%;left:0;right:0;height:1px}.mlab-root .guide-center-y{left:50%;top:0;bottom:0;width:1px}.mlab-root .guide-safe{border:1px dashed rgba(112,225,255,.75);background:transparent!important}.mlab-root .guide-reserved{top:0;bottom:0;width:36%;background:#5669ff14!important}.mlab-root .guide-reserved-left{left:0;border-right:1px dashed rgba(132,148,255,.7)}.mlab-root .guide-reserved-right{right:0;border-left:1px dashed rgba(132,148,255,.7)}.mlab-root .mlab-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mlab-root .scene-node{display:flex;align-items:center;gap:3px;padding-right:6px}.mlab-root .tree-visibility,.mlab-root .tree-node-select{border:0;background:transparent}.mlab-root .tree-visibility{flex:0 0 24px;padding:4px;color:#7d8ba2;cursor:pointer}.mlab-root .tree-node-select{min-width:0;flex:1;display:flex;align-items:center;gap:8px;padding:7px 4px;color:inherit;text-align:left;cursor:pointer}.mlab-root .tree-node-select:disabled{cursor:default;opacity:.72}.mlab-root .framing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.mlab-root .framing-grid .mini-button{text-transform:capitalize}.mlab-root .framing-grid .mini-button.active{border-color:#70e1ff8c;background:#2397ae2e;color:#c9faff}.mlab-root .performance-score{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:2px 10px;padding:10px;border:1px solid #303846;border-radius:9px;background:#10151d}.mlab-root .performance-score strong{grid-row:span 2;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:17px;border:2px solid currentColor}.mlab-root .performance-score.pass{color:#80e8bf}.mlab-root .performance-score.warn{color:#ffcb79}.mlab-root .performance-score span{color:#dce4ef;font-size:11px;font-weight:700}.mlab-root .performance-score small{color:#7f8a9d;font-size:9px}.mlab-root .performance-findings{display:grid;gap:6px}.mlab-root .performance-findings article{padding:9px;border:1px solid #353b47;border-radius:7px;background:#11161e}.mlab-root .performance-findings article.error{border-color:#ee5b6e73}.mlab-root .performance-findings article.warning{border-color:#edb15b61}.mlab-root .performance-findings strong{display:block;font-size:10px}.mlab-root .performance-findings p{margin:4px 0;color:#aeb7c5;font-size:9px;line-height:1.45}.mlab-root .performance-findings small{color:#78859a;font-size:8px;line-height:1.45}.mlab-root textarea{width:100%;resize:vertical;border:1px solid #303744;border-radius:6px;background:#10151c;color:#dce2eb;padding:7px;font:inherit}@media(max-width:900px){.mlab-root .framing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.mlab-root .workspace.without-scene-panel{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#edf2ff;background:#070910;font-synthesis:none;text-rendering:geometricPrecision;--panel: #0d1018;--panel-2: #111623;--line: rgba(166, 183, 230, .13);--muted: #8f9ab8;--accent: #7a8cff;--cyan: #58e4f4;--green: #61f2c2;--danger: #ff6f91}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{overflow:hidden;background:#070910}button,input,textarea,select{font:inherit}button{color:inherit}.studio-shell{height:100vh;display:grid;grid-template-rows:64px minmax(0,1fr);background:radial-gradient(circle at 52% -20%,rgba(78,98,208,.17),transparent 38%),#070910}.topbar{z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 18px;border-bottom:1px solid var(--line);background:#080a11f0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-lockup,.topbar-actions,.target-switch{display:flex;align-items:center}.brand-lockup{gap:12px;min-width:0}.brand-lockup>div{display:grid;gap:2px}.brand-lockup strong{font-size:14px;letter-spacing:.01em}.brand-lockup small{color:var(--muted);font-size:11px}.brand-glyph{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(132,153,255,.34);border-radius:10px;background:linear-gradient(145deg,#7082ff42,#37dcf114);color:#dce4ff;font-size:11px;font-weight:800;letter-spacing:.08em;box-shadow:inset 0 0 18px #7489ff14}.topbar-actions{gap:10px}.target-switch{gap:9px;color:var(--muted);font-size:11px}select,input,textarea{width:100%;border:1px solid var(--line);border-radius:8px;color:#e7edff;background:#090d16;outline:none}select,input{min-height:34px;padding:0 10px}textarea{padding:10px;resize:vertical;line-height:1.45}select:focus,input:focus,textarea:focus{border-color:#6c84ffb3;box-shadow:0 0 0 3px #5d76ff17}.target-switch select{width:112px}button{min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#111622;cursor:pointer;transition:.14s ease}button:hover:not(:disabled){border-color:#879cff7a;background:#171e2e;transform:translateY(-1px)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{border-color:#7a8cff6b;background:linear-gradient(135deg,#5268ee,#6e52dc);color:#fff;font-weight:700;box-shadow:0 8px 26px #4755cb3d}button.secondary{background:#101520}button.danger{border-color:#ff6f9173;background:#ff4a7529;color:#ffb3c4}button.wide{width:100%}.workspace{min-height:0;display:grid;grid-template-columns:270px minmax(440px,1fr) 390px}.left-rail,.inspector{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#273149 transparent}.left-rail{border-right:1px solid var(--line);background:#0a0d14eb}.inspector{border-left:1px solid var(--line);background:#0a0d14f5}.rail-section{padding:16px;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading span{color:#dbe3ff;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.section-heading small{color:#6f7b9b;font-size:10px}.phase-stack{display:grid;gap:8px}.phase-card{position:relative;display:grid;grid-template-columns:33px 1fr;gap:9px;padding:11px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,#171d2eb8,#0d111cc2);overflow:hidden}.phase-card:after{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#667aff}.phase-card.phase-1:after{background:#5fd4eb}.phase-card.phase-2:after{background:#9a78ff}.phase-card.phase-3{border-color:#62f0c247;background:linear-gradient(145deg,#132e2ba6,#0d181dcc)}.phase-card.phase-3:after{background:var(--green)}.phase-index{color:#65718e;font-size:10px;font-weight:800;letter-spacing:.08em;padding-top:2px}.phase-card>div:last-child{min-width:0}.phase-card strong{display:block;font-size:12px}.phase-card span{display:inline-block;margin-top:3px;color:#8290b3;font-size:9px;text-transform:uppercase;letter-spacing:.09em}.phase-card p{margin:7px 0 0;color:#929eba;font-size:10px;line-height:1.45}.scene-outline{padding-bottom:28px}.entity-row{display:grid;grid-template-columns:10px 1fr;gap:9px;align-items:center;padding:8px 4px;border-bottom:1px solid rgba(158,178,224,.07)}.entity-row:last-child{border-bottom:0}.entity-row strong{display:block;font-size:11px;font-weight:650}.entity-row small{display:block;margin-top:2px;color:#77829f;font-size:9px}.entity-dot{width:6px;height:6px;border-radius:50%;background:#6e7d9e;box-shadow:0 0 8px currentColor}.role-hero{background:#7d90ff}.role-detail,.role-mechanism{background:#61e1f1}.role-logo{background:#c592ff}.role-interactive{background:#61f2c2}.viewport-column{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#06080d}.viewport-frame{min-height:0;position:relative;overflow:hidden}.viewport-frame canvas{display:block;width:100%;height:100%}.viewport-frame:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px #0000006b}.viewport-badge{position:absolute;z-index:4;top:18px;left:18px;display:grid;gap:4px;pointer-events:none}.viewport-badge span{color:#70e9fb;font-size:9px;font-weight:800;letter-spacing:.16em}.viewport-badge strong{max-width:380px;font-size:18px;font-weight:600;letter-spacing:-.02em}.viewport-stats{position:absolute;z-index:4;right:15px;top:15px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:430px}.viewport-stats span{padding:6px 8px;border:1px solid rgba(149,171,224,.18);border-radius:7px;background:#080c15ad;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#9eacca;font-size:9px}.recording-indicator{position:absolute;z-index:5;left:50%;bottom:22px;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid rgba(255,111,145,.42);border-radius:20px;background:#380c19d9;color:#ffc0ce;font-size:11px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.recording-indicator i{width:7px;height:7px;border-radius:50%;background:var(--danger);box-shadow:0 0 12px var(--danger);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.35;transform:scale(.72)}}.preview-console{padding:12px 14px;border-top:1px solid var(--line);background:#090c13}.console-status{display:flex;align-items:center;gap:10px;margin-bottom:9px;min-width:0}.console-status span{flex:0 0 auto;padding:4px 7px;border-radius:5px;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.status-ok{color:#8ff8d3;background:#2baa7e26}.status-warn{color:#ffd38a;background:#db8f2e26}.console-status strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#9ba7c4;font-size:10px;font-weight:500}.shot-controls{display:flex;align-items:center;gap:6px;overflow-x:auto}.shot-controls button{flex:0 0 auto;min-height:30px;font-size:9px;color:#929ebb}.shot-controls button span{display:inline-grid;place-items:center;width:16px;height:16px;margin-right:5px;border-radius:50%;background:#202942;color:#bcc7e4}.shot-controls button.active{border-color:#62e1f26b;color:#d8fbff;background:#1a65702e}.shot-controls .play-button{margin-left:auto;border-color:#778bff5c;color:#dce3ff}.inspector-tabs{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(5,1fr);background:#0a0d14f5;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.inspector-tabs button{position:relative;min-height:48px;padding:0 5px;border:0;border-radius:0;background:transparent;color:#717d9c;font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.inspector-tabs button:hover{transform:none;background:#687ecd0d}.inspector-tabs button.active{color:#dce4ff;box-shadow:inset 0 -2px #7286ff}.new-dot{position:absolute;top:9px;right:11px;width:5px;height:5px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green)}.inspector-content{padding:18px}.panel-section{display:grid;gap:15px}.panel-intro span{color:#7888ae;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.panel-intro h2{margin:5px 0 7px;font-size:22px;letter-spacing:-.035em}.panel-intro p{margin:0;color:#909bb8;font-size:11px;line-height:1.55}.teach-intro span{color:var(--green)}.field{display:grid;gap:6px}.field>span{color:#9ba8c6;font-size:10px;font-weight:650}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.number-unit{position:relative}.number-unit input{padding-right:34px}.number-unit small{position:absolute;right:9px;top:10px;color:#687490;font-size:9px}.contract-grid,.behavior-range{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.metric{padding:9px;border:1px solid var(--line);border-radius:8px;background:#0a0e17}.metric span{display:block;color:#727e9d;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.metric strong{display:block;margin-top:4px;color:#d9e2ff;font-size:11px}.analysis-hero{padding:14px;border:1px solid rgba(115,139,255,.24);border-radius:10px;background:linear-gradient(145deg,#30408730,#0f162873)}.analysis-hero small,.analysis-hero span{color:#7e8baa;font-size:9px}.analysis-hero strong{display:block;margin:5px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.role-groups{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.role-groups article{padding:10px;border:1px solid var(--line);border-radius:8px;background:#0a0e16}.role-groups span{color:#7b87a5;font-size:9px}.role-groups strong{float:right;font-size:13px}.role-groups small{display:block;clear:both;padding-top:6px;color:#9da8c2;font-size:9px;line-height:1.35}.evidence-list details,.json-output{border:1px solid var(--line);border-radius:8px;background:#0a0e16}.evidence-list details+details{margin-top:6px}.evidence-list summary,.json-output summary{display:flex;justify-content:space-between;gap:12px;padding:10px;cursor:pointer;font-size:10px}.evidence-list details p{margin:0;padding:0 10px 8px;color:#8e99b5;font-size:9px;line-height:1.5}.evidence-list code{display:block;padding:0 10px 10px;color:#6ddce9;font-size:8px}.diagnostic,.error-callout{padding:11px;border:1px solid rgba(255,185,96,.28);border-radius:8px;background:#633b1029}.diagnostic strong,.error-callout strong{color:#ffd190;font-size:9px}.diagnostic p,.error-callout p{margin:5px 0 0;color:#b7a98e;font-size:9px;line-height:1.4}.loading-block,.empty-state{padding:16px;border:1px dashed rgba(143,159,202,.24);border-radius:9px;color:#8691ac;font-size:10px;text-align:center}.candidate-list{display:grid;gap:10px}.candidate-card{padding:12px;border:1px solid var(--line);border-radius:11px;background:#0a0e16;transition:.16s ease}.candidate-card.selected{border-color:#64efc557;background:linear-gradient(145deg,#1435306b,#0c141bbd);box-shadow:0 0 28px #28b88e0f}.candidate-card header{display:flex;justify-content:space-between;align-items:flex-start}.candidate-card header span{color:#7280a1;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.candidate-card h3{margin:3px 0 0;font-size:14px}.candidate-card header>strong{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid rgba(115,139,255,.3);color:#aebcff;font-size:11px}.candidate-card p{color:#8f9ab6;font-size:9px;line-height:1.48}.candidate-metrics{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.candidate-metrics span{padding:4px 6px;border-radius:5px;background:#131a28;color:#7e8ba8;font-size:8px}.mini-shots{display:flex;gap:4px;margin-bottom:9px}.mini-shots button{min-width:25px;min-height:25px;padding:0;border-radius:50%;font-size:8px}.selected-action{width:100%;border-color:#61f2c240;background:#32b3891f;color:#88f5d0}.graph-flow{display:grid}.graph-step{display:grid;justify-items:center}.graph-step article{width:100%;padding:12px;border:1px solid rgba(114,136,255,.24);border-radius:10px;background:linear-gradient(145deg,#28346a2e,#0a0f1ba6)}.graph-step article>span{color:#7685aa;font-size:8px;text-transform:uppercase}.graph-step article strong{display:block;margin-top:4px;font-size:12px}.graph-step article p{margin:6px 0;color:#929db8;font-size:9px;line-height:1.4}.graph-step article small{color:#61dceb;font-size:8px}.graph-step>i{padding:5px 0;color:#566483;font-style:normal}.transition-list{display:grid;gap:6px}.transition-list article{padding:9px;border:1px solid var(--line);border-radius:8px;background:#0a0e16}.transition-list span{display:inline-block;min-width:52px;color:#70dbea;font-size:8px;text-transform:uppercase}.transition-list strong{font-size:9px}.transition-list small{display:block;margin-top:5px;color:#7783a0;font-size:8px}.variant-row,.event-chips{display:flex;flex-wrap:wrap;gap:5px}.variant-row code,.event-chips code{padding:5px 7px;border:1px solid var(--line);border-radius:6px;background:#090d15;color:#8ca3dc;font-size:8px}.teach-recorder{padding:17px;border:1px solid rgba(97,242,194,.22);border-radius:11px;background:linear-gradient(145deg,#19453a40,#0c161bb8);text-align:center}.teach-recorder.active{border-color:#ff6f9161;background:linear-gradient(145deg,#5c192d4d,#1d0f17b8)}.recorder-visual{height:34px;display:flex;justify-content:center;align-items:end;gap:4px;margin-bottom:8px}.recorder-visual i{width:4px;height:12px;border-radius:3px;background:var(--green)}.recorder-visual i:nth-child(2){height:25px}.recorder-visual i:nth-child(3){height:18px}.teach-recorder.active .recorder-visual i{background:var(--danger);animation:bars .7s infinite alternate}.teach-recorder.active .recorder-visual i:nth-child(2){animation-delay:.18s}.teach-recorder.active .recorder-visual i:nth-child(3){animation-delay:.32s}@keyframes bars{to{height:30px;opacity:.5}}.teach-recorder strong{display:block;font-size:12px}.teach-recorder span{display:block;margin-top:4px;color:#8f9db8;font-size:9px}.teach-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.behavior-result{padding:13px;border:1px solid rgba(97,242,194,.25);border-radius:11px;background:#0a1115}.behavior-result header{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.behavior-result header span{color:#6aa18f;font-size:8px;text-transform:uppercase}.behavior-result h3{margin:3px 0 0;font-size:14px;text-transform:capitalize}.behavior-result header>strong{color:#77f1c8;font-size:18px}.behavior-result ul{margin:11px 0;padding-left:16px;color:#8f9db6;font-size:9px;line-height:1.5}.event-chips{margin:10px 0}.json-output{margin-top:9px}.json-output pre{max-height:260px;margin:0;padding:10px;overflow:auto;border-top:1px solid var(--line);color:#94b1d8;font:8px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.teach-explanation{padding:12px;border:1px solid var(--line);border-radius:9px;background:#0a0e16}.teach-explanation strong{font-size:10px}.teach-explanation ol{margin:9px 0 0;padding-left:17px;color:#8b97b4;font-size:9px;line-height:1.65}@media(max-width:1180px){.workspace{grid-template-columns:220px minmax(390px,1fr) 340px}.phase-card p{display:none}.left-rail{font-size:90%}}@media(max-width:900px){body{overflow:auto}.studio-shell{height:auto;min-height:100vh}.topbar{position:sticky;top:0;min-height:64px}.workspace{display:grid;grid-template-columns:1fr;grid-template-rows:auto 62vh auto}.left-rail{order:2;display:grid;grid-template-columns:1fr 1fr;border-right:0;border-top:1px solid var(--line);overflow:visible}.viewport-column{order:1;min-height:62vh}.inspector{order:3;border-left:0;border-top:1px solid var(--line);overflow:visible}.inspector-tabs{top:64px}}@media(max-width:620px){.topbar{padding:8px 10px;height:auto;align-items:flex-start}.brand-lockup small,.target-switch span{display:none}.topbar-actions{align-items:stretch}.target-switch select{width:92px}.workspace{grid-template-rows:54vh auto auto}.left-rail,.field-grid,.teach-actions{grid-template-columns:1fr}.viewport-stats{display:none}.viewport-badge strong{font-size:14px}}.phase4-shell{grid-template-rows:58px minmax(0,1fr);height:100vh;overflow:hidden}.phase4-workbench-host{min-width:0;min-height:0;height:calc(100vh - 58px)}.studio-mode-switch{display:flex;gap:6px}.studio-mode-switch button.active{border-color:#62e1f27a;background:#23899c2e;color:#d9fbff}
