:root{--paper:#edf1f0;--panel:#f8faf8;--ink:#182122;--muted:#747d7b;--line:#d8dfdc;--stage:#101719;--stage-text:#f0f5f1;--cyan:#75d5d2;--coral:#ef7666;--gold:#edbd59;--green:#76cfa1;--violet:#a99be1;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-synthesis:none;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}html,body{margin:0;min-width:320px;min-height:100%;background:var(--paper)}button,input,select,textarea{font:inherit}button,input,select{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--coral);outline-offset:2px}.lab-shell{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:100svh}.panel{position:relative;z-index:3;display:flex;flex-direction:column;height:100svh;overflow-y:auto;background:var(--panel);border-right:1px solid var(--line);scrollbar-width:thin}.brand{display:flex;align-items:center;gap:14px;min-height:104px;padding:22px 28px;border-bottom:1px solid var(--line)}.brand-mark{position:relative;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--ink)}.brand-mark i{position:absolute;top:10px;width:1px;height:23px;background:var(--cyan);transform-origin:bottom}.brand-mark i:first-child{left:20px;transform:rotate(-38deg)}.brand-mark i:nth-child(2){left:21px;transform:rotate(38deg)}.brand-mark b{position:absolute;left:17px;top:8px;width:9px;height:9px;border-radius:50%;background:var(--coral)}.brand span,.brand h1{display:block;margin:0}.brand span{margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:700}.brand h1{font-size:18px;font-weight:650}.panel section{padding:20px 28px 22px;border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title h2{margin:0;font-size:13px}.section-title small{color:#b3bcb8;font:10px ui-monospace,Consolas,monospace}.field{display:grid;gap:8px;color:var(--muted);font-size:11px;font-weight:600}.field select,.field textarea{width:100%;padding:10px 11px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px}.field select{height:40px}.field textarea{min-height:60px;resize:vertical;line-height:1.4}.range{display:block;margin-top:17px}.range>span{display:flex;justify-content:space-between;margin-bottom:9px}.range b{font-size:11px}.range output{color:var(--muted);font:11px ui-monospace,Consolas,monospace}input[type=range]{width:100%;height:14px;margin:0;appearance:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--ink) var(--progress,43%),var(--line) var(--progress,43%))}input[type=range]::-webkit-slider-thumb{width:13px;height:13px;margin-top:-5.5px;appearance:none;background:var(--panel);border:2px solid var(--ink);border-radius:50%}.panel-button{width:100%;height:36px;margin-top:10px;color:var(--stage-text);background:var(--ink);border:0;border-radius:6px;font-size:11px;font-weight:650}.panel-button.secondary{color:var(--ink);background:var(--paper);border:1px solid var(--line)}.validation{min-height:12px;margin:6px 0;color:var(--coral);font-size:10px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;color:var(--muted);font-size:9px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border-radius:2px}.range-key{background:var(--cyan)}.scan-key{background:var(--gold)}.pivot-key{background:var(--coral)}.fixed-key{background:var(--green)}.panel footer{display:flex;justify-content:space-between;margin-top:auto;padding:16px 28px;color:#aab5b0;font:9px ui-monospace,Consolas,monospace}.stage{position:relative;min-width:0;height:100svh;min-height:540px;overflow:hidden;background:var(--stage)}#canvas{position:absolute;inset:0;width:100%;height:100%}.stage-header{position:absolute;inset:0 0 auto;z-index:2;display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(220px,1fr);align-items:center;min-height:94px;padding:0 30px;color:var(--stage-text);border-bottom:1px solid rgba(255,255,255,.1);pointer-events:none}.live{display:flex;align-items:center;gap:11px}.live>i{width:8px;height:8px;background:var(--coral);border-radius:50%;box-shadow:0 0 0 5px rgba(239,118,102,.1)}.live div{display:grid;gap:4px}.live span,.metrics span{color:#94a2a1;font-size:9px}.live strong{font-size:13px;font-weight:650}.metrics{display:flex}.metrics>div{display:grid;min-width:80px;gap:5px;padding:0 18px;border-left:1px solid rgba(255,255,255,.11)}.metrics>div:last-child{border-right:1px solid rgba(255,255,255,.11)}.metrics strong{font:600 14px ui-monospace,Consolas,monospace}.actions{display:flex;justify-self:end;gap:8px;pointer-events:auto}.actions button{display:flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 12px;color:var(--stage-text);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.17);border-radius:6px;font-size:11px}.actions b{font-weight:600}.actions .primary{color:var(--stage);background:var(--cyan);border-color:var(--cyan)}.stage-note{position:absolute;left:30px;bottom:24px;z-index:2;display:flex;align-items:center;gap:10px;color:#94a2a1;font:9px ui-monospace,Consolas,monospace;pointer-events:none}.stage-note i{width:42px;height:1px;background:rgba(255,255,255,.2)}@media(max-width:1050px){.lab-shell{grid-template-columns:292px minmax(0,1fr)}.brand,.panel section{padding-left:22px;padding-right:22px}.stage-header{grid-template-columns:1fr auto;padding:0 20px}.metrics{position:absolute;left:20px;top:72px}.actions{grid-column:2}}@media(max-width:760px){.lab-shell{display:flex;flex-direction:column}.stage{order:1;height:58svh;min-height:420px}.panel{order:2;height:auto;overflow:visible}.brand{min-height:84px}.stage-header{min-height:72px;padding:0 16px}.metrics{left:16px;top:72px}.metrics>div{min-width:68px;padding:0 10px}.actions button{width:38px;padding:0}.actions b{display:none}.stage-note{left:16px;bottom:16px}.panel footer{margin-top:0}}@media(max-width:390px){.stage{min-height:400px}.live strong{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metrics>div{min-width:63px;padding:0 8px}.brand,.panel section{padding-left:20px;padding-right:20px}}
