:root{--paper:#edf0ef;--panel:#f8f9f5;--ink:#1c2423;--muted:#747d79;--line:#d7ddd8;--stage:#111719;--text:#f2f4ed;--stage-muted:#97a4a2;--aqua:#75d9d1;--gold:#efc25b;--coral:#ef776d;--blue:#79a6dc;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body{min-width:320px;min-height:100%;margin:0;color:var(--ink);background:var(--paper)}button,input{font:inherit}button,input[type=range]{cursor:pointer}button:focus-visible,input: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;background:var(--ink);border-radius:50%}.brand-mark i{position:absolute;width:5px;height:5px;background:var(--aqua);border-radius:1px}.brand-mark i:nth-child(1){top:8px;left:10px}.brand-mark i:nth-child(2){top:8px;left:25px;background:var(--gold)}.brand-mark i:nth-child(3){top:19px;left:17px}.brand-mark i:nth-child(4){top:29px;left:9px;background:var(--blue)}.brand-mark i:nth-child(5){top:29px;left:27px;background:var(--coral)}.brand-mark::before,.brand-mark::after{position:absolute;width:1px;height:16px;background:rgba(117,217,209,.55);content:""}.brand-mark::before{top:9px;left:18px;transform:rotate(42deg)}.brand-mark::after{top:19px;left:20px;transform:rotate(-42deg)}.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:23px 28px 25px;border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{margin:0;font-size:13px}.section-title small{color:#b6bebb;font:10px ui-monospace,Consolas,monospace}.range{display:block}.range+.range{margin-top:19px}.range>span{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.range b{font-size:11px;font-weight:600}.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,50%),var(--line) var(--progress,50%))}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%}input[type=range]::-moz-range-track{height:2px;background:var(--line)}input[type=range]::-moz-range-progress{height:2px;background:var(--ink)}input[type=range]::-moz-range-thumb{width:10px;height:10px;background:var(--panel);border:2px solid var(--ink);border-radius:50%}.block-button{display:flex;align-items:center;justify-content:center;width:100%;height:36px;margin-top:19px;gap:8px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:6px;font-size:10px;font-weight:600}.field-label{display:block;margin-bottom:8px;color:var(--muted);font-size:11px;font-weight:650}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px;background:var(--paper);border:1px solid var(--line);border-radius:6px}.tool-grid button{height:32px;color:var(--muted);background:transparent;border:0;border-radius:3px;font-size:10px;font-weight:600}.tool-grid button[aria-pressed=true]{color:var(--text);background:var(--ink)}.legend{display:flex;flex-wrap:wrap;gap:13px;margin-top:17px;color:var(--muted);font-size:9px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:2px}.legend .stack{background:var(--gold)}.legend .current{background:var(--coral)}.legend .closed{background:var(--aqua)}.field-note{margin:18px 0 0;color:var(--muted);font-size:10px;line-height:1.65}.panel footer{display:flex;justify-content:space-between;margin-top:auto;padding:18px 28px;color:#b6bebb;font:9px ui-monospace,Consolas,monospace}.stage{position:relative;min-width:0;min-height:540px;overflow:hidden;background:var(--stage)}#canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.stage-header{position:absolute;top:0;right:0;left:0;z-index:2;display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(220px,1fr);align-items:center;min-height:92px;padding:0 34px;color:var(--text);background:linear-gradient(to bottom,rgba(17,23,25,.86),rgba(17,23,25,.12));border-bottom:1px solid rgba(255,255,255,.1);pointer-events:none}.live{display:flex;align-items:center;gap:12px}.live>i{width:8px;height:8px;background:var(--aqua);border-radius:2px;box-shadow:0 0 0 5px rgba(117,217,209,.1)}.live div{display:grid;gap:4px}.live span,.metrics span,.metrics small{color:var(--stage-muted);font-size:9px}.live strong{font-size:13px;font-weight:600}.metrics{display:flex}.metrics>div{display:grid;min-width:78px;gap:5px;padding:0 17px;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:500 15px ui-monospace,Consolas,monospace}.metrics strong b{font:inherit}.metrics small{font-size:8px}.actions{display:flex;justify-self:end;gap:8px;pointer-events:auto}.actions button{display:flex;align-items:center;justify-content:center;min-width:72px;height:38px;padding:0 12px;gap:7px;color:var(--text);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);border-radius:6px;font-size:11px}.actions button b{font-weight:600}.actions .primary{color:var(--stage);background:var(--aqua);border-color:var(--aqua)}.stage-note,.stack-note{position:absolute;bottom:26px;z-index:2;display:flex;align-items:center;gap:10px;color:var(--stage-muted);font:9px ui-monospace,Consolas,monospace;pointer-events:none}.stage-note{left:34px}.stack-note{right:34px;max-width:42%}.stage-note i,.stack-note i{width:38px;height:1px;flex:0 0 38px;background:rgba(255,255,255,.2)}.stack-note strong{overflow:hidden;color:var(--gold);font-weight:500;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1180px){.lab-shell{grid-template-columns:292px minmax(0,1fr)}.brand,.panel section{padding-right:22px;padding-left:22px}.stage-header{grid-template-columns:1fr auto;padding:0 24px}.metrics{display:none}.actions{grid-column:2}}@media(max-width:760px){.lab-shell{display:flex;flex-direction:column}.stage{order:1;min-height:58svh}.panel{order:2;width:100%;height:auto;overflow:visible;border:0;border-top:1px solid var(--line)}.brand{min-height:84px}.stage-header{min-height:74px;padding:0 16px}.actions button{width:42px;min-width:42px;padding:0}.actions button b{display:none}.stage-note{left:16px}.stack-note{right:16px;max-width:44%}.stack-note>span,.stack-note i{display:none}.panel footer{margin-top:0}}@media(max-width:430px){.live strong{display:block;max-width:83px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand,.panel section{padding-right:20px;padding-left:20px}}@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}
