:root{--paper:#efeee9;--panel:#faf9f5;--ink:#20201c;--muted:#77766f;--line:#dedbd1;--stage:#171714;--stage-text:#f4f1e7;--yellow:#f0c45b;--coral:#ed7663;--green:#7ac9a2;--blue:#73b9dc;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,select{font:inherit}button,input,select{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select: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;bottom:10px;width:6px;background:var(--yellow)}.brand-mark i:nth-child(1){left:10px;height:13px}.brand-mark i:nth-child(2){left:18px;height:21px;background:var(--coral)}.brand-mark i:nth-child(3){left:26px;height:28px;background:var(--green)}.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:21px 28px 23px;border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-title h2{margin:0;font-size:13px}.section-title small{color:#b7b3a8;font:10px ui-monospace,Consolas,monospace}.field{display:grid;gap:8px;color:var(--muted);font-size:11px;font-weight:600}.field+ .range{margin-top:18px}.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:64px;resize:vertical;line-height:1.45}.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:13px;margin:7px 0 0;color:var(--coral);font-size:10px}.range{display:block}.range.no-top{margin-top:0}.range>span{display:flex;justify-content:space-between;gap:12px;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,42%),var(--line) var(--progress,42%))}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:flex;flex-wrap:wrap;gap:13px;margin-top:17px;color:var(--muted);font-size:10px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border-radius:2px}.legend .compare{background:var(--yellow)}.legend .swap{background:var(--coral)}.legend .sorted{background:var(--green)}.panel footer{display:flex;justify-content:space-between;margin-top:auto;padding:17px 28px;color:#aaa79e;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;top:0;left:0;right: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;background:var(--yellow);border-radius:50%;box-shadow:0 0 0 5px rgba(240,196,91,.1)}.live div{display:grid;gap:4px}.live span,.metrics span{color:#9d9b91;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(--yellow);border-color:var(--yellow)}.stage-note{position:absolute;left:30px;bottom:24px;z-index:2;display:flex;align-items:center;gap:10px;color:#98968e;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:70px;padding:0 11px}.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:98px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metrics>div{min-width:65px;padding:0 8px}.brand,.panel section{padding-left:20px;padding-right:20px}}
