:root{--paper:#eef1ef;--panel:#f8faf7;--ink:#182124;--muted:#727c7b;--line:#d8deda;--stage:#11181a;--stage-text:#f0f5ef;--cyan:#74d7df;--amber:#efbd58;--coral:#eb7666;--green:#76d3a5;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,textarea{font:inherit}button,input[type=range]{cursor:pointer}button:focus-visible,input: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:12px;width:15px;height:18px;border:1px solid var(--cyan)}.brand-mark i:first-child{left:7px;border-right:0}.brand-mark i:nth-child(2){right:7px;border-left:0}.brand-mark b{position:absolute;left:19px;top:19px;width:5px;height:5px;border-radius:50%;background:var(--amber)}.brand span,.brand h1{display:block;margin:0;letter-spacing: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:22px 28px 24px;border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-title h2{margin:0;font-size:13px}.section-title small{color:#b2bab6;font:10px ui-monospace,Consolas,monospace}.field{display:grid;gap:8px;color:var(--muted);font-size:11px;font-weight:600}.field textarea,.field input{width:100%;padding:10px 11px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px;resize:vertical}.field textarea{min-height:68px;line-height:1.5}.field.compact input{height:40px}.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}.validation{min-height:15px;margin:8px 0 0;color:var(--coral);font-size:10px}.range{display:block;margin-top:18px}.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,27%),var(--line) var(--progress,27%))}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%}.legend{display:grid;grid-template-columns:1fr 1fr;gap:12px;color:var(--muted);font-size:10px}.legend span{display:flex;align-items:center;gap:7px}.legend i{width:12px;height:12px;border-radius:2px}.range-key{background:rgba(116,215,223,.35);border:1px solid var(--cyan)}.mid-key{background:var(--amber)}.discard-key{background:#c8ceca}.found-key{background:var(--green)}.panel footer{display:flex;justify-content:space-between;margin-top:auto;padding:18px 28px;color:#aab3af;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%;touch-action:none}.stage-header{position:absolute;top:0;right:0;left:0;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;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 5px rgba(116,215,223,.1)}.live div{display:grid;gap:4px}.live span,.metrics span,.metrics small{color:#92a1a2;font-size:9px}.live strong{font-size:13px;font-weight:650}.metrics{display:flex}.metrics>div{display:grid;min-width:88px;gap:5px;padding:0 18px;border-left:1px solid rgba(255,255,255,.12)}.metrics>div:last-child{border-right:1px solid rgba(255,255,255,.12)}.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 button b{font-weight:600}.actions .primary{color:var(--stage);background:var(--cyan);border-color:var(--cyan)}.actions button:hover{border-color:rgba(255,255,255,.4)}.stage-note{position:absolute;bottom:25px;left:30px;z-index:2;display:flex;align-items:center;gap:10px;color:#91a0a1;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:1080px){.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;top:72px;left:20px}.actions{grid-column:2}.stage-note{left:20px}}@media(max-width:760px){.lab-shell{display:flex;flex-direction:column}.stage{order:1;height:58svh;min-height:430px}.panel{order:2;width:100%;height:auto;overflow:visible;border:0}.brand{min-height:84px}.stage-header{min-height:72px;padding:0 16px}.metrics{top:72px;left:16px}.metrics>div{min-width:76px;padding:0 12px}.actions button{width:38px;padding:0}.actions button b{display:none}.stage-note{left:16px;bottom:17px}.panel footer{margin-top:0}}@media(max-width:390px){.stage{height:58svh;min-height:400px}.live strong{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metrics>div{min-width:70px;padding:0 9px}.brand,.panel section{padding-left:20px;padding-right:20px}}
