:root{color-scheme:light;--bg:#f5f4ef;--card:#fff;--ink:#273b35;--muted:#79817a;--line:#e7e9e2;--green:#285246;--pale:#edf3ee;--orange:#bb6839}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}button,input,a,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,summary{cursor:pointer}button{color:inherit}button:disabled,input:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid #db976b;outline-offset:4px}button{transition:background .15s,border-color .15s,transform .15s}button:hover{border-color:#b2c4b8}button:active{transform:translateY(1px)}[hidden]{display:none!important}.topbar{height:88px;padding:0 max(28px,calc((100vw - 1320px)/2));background:#fafbf8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:17px;font-weight:650;letter-spacing:.04em}.brand small{display:block;font-size:9px;color:#889087;font-weight:500;letter-spacing:.16em;margin-top:1px}.brand-icon{width:42px;height:40px;border-radius:13px;background:var(--green);display:flex;align-items:center;justify-content:center;gap:6px}.brand-icon i{width:8px;height:15px;border-radius:5px;background:#fff}.top-status{display:flex;align-items:center;gap:8px;font-size:12px;color:#5f7165}.dot{display:inline-block;flex-shrink:0;width:6px;height:6px;background:#658777;border-radius:50%}.version{padding-left:18px;border-left:1px solid var(--line);margin-left:14px;color:#969d94;font-size:11px}main{max-width:1320px;margin:auto;padding:30px 28px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 28px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.08em}h1{font-size:26px;letter-spacing:.02em;font-weight:650;line-height:1.5;margin:5px 0}p{margin:0}.page-head p{color:var(--muted);font-size:13px}.workspace{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:24px;align-items:start}.preview-column{min-width:0}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:0 4px 20px #243b2c03}.preview-card{padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h2{font-size:15px;margin:0;font-weight:650}h3{font-size:14px;margin:0 0 10px}.tiny-index{font-size:10px;letter-spacing:.04em;color:#95a094;font-weight:500;margin-right:9px}.pill{font-size:10px;line-height:22px;padding:1px 10px;border-radius:20px;white-space:nowrap}.green{background:var(--pale);color:var(--green)}.orange{background:#fbefe3;color:#ad673d}.screen-shell{background:#050606;border:6px solid #262c29;border-radius:32px;overflow:hidden;box-shadow:0 12px 20px #1a302215,inset 0 0 0 1px #444}.screen-shell canvas{width:100%;display:block;aspect-ratio:1.6}.screen-top,.screen-bottom{display:flex;justify-content:space-between;gap:10px;color:#727e77;font-size:9px;letter-spacing:.09em;font-family:ui-monospace,monospace;padding:17px 20px 0}.screen-top>span:first-child{display:flex;align-items:center;gap:7px}.screen-dot{width:4px;height:4px;border-radius:100%;background:#96ae9c}.screen-bottom{padding:0 20px 17px}.display-caption{display:flex;align-items:center;gap:8px;margin:18px 0 21px;font-size:12px;color:#7b847c;min-height:24px}.caption-mark{width:5px;height:5px;border-radius:50%;background:#b4c3b5}.transport{display:flex;align-items:center;gap:9px}.button{min-height:44px;border:1px solid #e3e7df;background:#fff;border-radius:11px;padding:9px 17px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.primary{background:var(--green);border-color:var(--green);color:#fff;min-width:112px}.primary:hover{background:#1f4539}.quiet{background:transparent}.icon-button{width:44px;padding:0;font-size:10px;color:#6c7c70}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:#8a948a;letter-spacing:.05em;margin-left:auto}.look-control{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}label{font-size:12px}.look-control label,.feature-sliders label{display:flex;justify-content:space-between;gap:10px}output{font-family:ui-monospace,monospace;color:#577161;font-size:12px}input[type=range]{width:100%;height:44px;accent-color:var(--green);cursor:pointer;margin:5px 0 0}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}.range-ends{display:flex;justify-content:space-between;color:#90988e;font-size:10px}.pipeline-card{margin-top:18px;padding:22px}.subtle{color:#93998e;font-size:10px;font-weight:400}.pipeline{display:grid;grid-template-columns:1.1fr 10px 1.3fr 10px .8fr 10px .9fr;align-items:center;gap:3px}.pipeline>div{display:flex;flex-direction:column;gap:6px;min-width:0}.stage-num{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#9ba493}.pipeline strong{font-family:ui-monospace,monospace;font-size:13px;letter-spacing:-.04em;font-weight:600;white-space:nowrap}.pipeline small{font-size:9px;color:#8a9388;white-space:nowrap}.arrow{font-size:13px;color:#bec8ba}.axis-row{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:18px;font-size:10px;color:#83907f;align-items:center;flex-wrap:wrap}.axis-row b{font-weight:500;color:#526c59;margin-left:5px}.axis-row>span:last-child{margin-left:auto}.note{display:flex;gap:9px;padding:17px 5px;font-size:11px;line-height:1.9;color:#889080}.note>span{font-size:14px}.control-card{padding:10px 22px 23px;min-width:0}.tabbar{display:flex;gap:4px;padding:5px;background:var(--bg);border:1px solid var(--line);border-radius:999px;margin-bottom:22px}.tabbar button{flex:1;position:relative;background:transparent;border:0;border-radius:999px;min-height:44px;font-size:14px;color:var(--muted);font-weight:550;padding:8px 16px}.tabbar button[aria-selected=true]{color:var(--green);background:var(--card);box-shadow:0 2px 6px #273b3510}.panel-intro{margin-bottom:20px}.panel-intro p{font-size:11px;color:var(--muted);margin-top:5px}.expression-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.expression-button{border:1px solid var(--line);border-radius:13px;background:#fafbf8;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:100px;padding:9px 8px 8px;gap:7px}.expression-button[aria-pressed=true]{border-color:#557664;background:#edf3ed;box-shadow:0 0 0 1px #557664}.expression-button canvas{width:62px;height:39px;border-radius:7px;pointer-events:none}.expression-button span{font-size:12px}.expression-button:last-child{grid-column:span 2;flex-direction:row;gap:15px}.sequence-button{margin-top:18px;width:100%;justify-content:space-between;background:#f7f8f4;border-style:dashed}.sequence-button small{font-size:10px;color:#899481}.hint-box{background:#f8f8f4;border-radius:12px;padding:15px;margin-top:20px;font-size:11px;color:#8a9385;line-height:1.9}.hint-box strong{font-size:11px;color:#6d7b64;font-weight:500}.hint-box p{margin-top:5px}.tracking-intro{display:flex;align-items:center;justify-content:space-between;gap:8px}.input-stage{position:relative;background:#f2f5ef;border:1px solid #dce5d9;border-radius:13px;overflow:hidden}.input-stage canvas{display:block;width:100%;aspect-ratio:5/3;touch-action:none;cursor:grab}.input-stage canvas:active{cursor:grabbing}.stage-label{position:absolute;top:10px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none;color:#8b9a85;font-size:9px}.tracking-actions{display:flex;gap:8px;margin:13px 0}.tracking-actions .button{padding:8px 10px;flex:1;min-width:0}.presets{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.presets button{min-height:44px;background:#fafbf8;border:1px solid var(--line);border-radius:9px;padding:5px;font-size:11px}.sample-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#8e9789;margin:14px 0}.switch-label{display:flex;align-items:center;gap:3px;font-size:10px;min-height:44px}.score-panel{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fbfcf9}.score-row{display:flex;align-items:center;gap:12px;font-size:10px;margin-bottom:10px}.score-row>span{min-width:50px}.score-row meter{flex:1;width:0;height:7px;border:0;background:#e9ede5;border-radius:10px}.score-row meter::-webkit-meter-bar{border:0;background:#e9ede5;height:7px}.score-row meter::-webkit-meter-optimum-value{background:#72927d}.score-row b{font-weight:500;font-family:ui-monospace,monospace;width:28px}.classification{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;font-size:10px;color:#8a9483}.classification span{display:flex;justify-content:space-between;gap:5px}.classification b{color:#526a57;font-weight:500}.history{display:flex;gap:5px;margin-top:12px}.history span{flex:1;text-align:center;background:#edf1e9;border-radius:4px;font-size:9px;line-height:22px;color:#73846c}.gate{display:flex;align-items:center;gap:7px;font-size:10px;margin-top:14px;color:#8d6a44;min-height:20px}.gate .dot{background:#bb9565}.cooldown{font-size:9px;color:#929a89;margin-top:11px}.cooldown>span{display:flex;justify-content:space-between}.cooldown b{font-weight:400}progress{width:100%;height:3px;display:block;margin-top:6px;accent-color:#b8c5ae;border:0}progress::-webkit-progress-bar{background:#edf0e8}progress::-webkit-progress-value{background:#b8c5ae}.feature-details{border-top:1px solid var(--line);margin-top:18px;padding-top:5px}summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:12px;list-style:none}summary:after{content:'+';color:#83927b;font-size:17px;font-weight:400}details[open]>summary:after{content:'−'}summary::-webkit-details-marker{display:none}.feature-details summary>span{font-size:9px;color:#9ba391;margin-left:auto}.feature-sliders{display:grid;grid-template-columns:1fr 1fr;gap:10px 19px;margin-top:10px}.feature-sliders label{font-size:10px}.feature-sliders output{font-size:10px}.feature-sliders input{height:44px}.text-button{background:transparent;border:0;min-height:44px;font-size:10px;color:#6a836a;padding:0}.logs-card{margin-top:26px;padding:18px 24px 22px}.logs-card .section-head{margin-bottom:10px}.count{margin-left:8px;font-size:10px;color:#7d8e73;background:#eff3eb;border-radius:6px;padding:2px 6px}.log-scroll{max-height:240px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px;line-height:1.7}th{font-size:10px;color:#a0a795;background:#f8faf5;position:sticky;top:0;font-weight:500}td,th{padding:11px 12px;border-bottom:1px solid #f0f2eb}td{color:#7b8872}td:first-child{font-family:ui-monospace,monospace;white-space:nowrap;color:#a0a895}td:last-child{color:#4d6a53;white-space:nowrap}#emptyLog{text-align:center;color:#939c89;padding:20px;font-size:12px}.algorithm{margin-top:16px;padding:12px 24px}.algorithm summary{font-size:13px}.algorithm summary>.subtle{margin-left:auto}.algorithm-body{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 0;font-size:12px;line-height:1.9;color:#7c8973}.algorithm-body p+p{margin-top:10px}.source-note{grid-column:1/-1;background:#f8faf5;border-radius:10px;padding:14px;font-size:11px}footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#9aa28f;padding:25px 2px 5px}@media(min-width:1050px){.preview-column{position:sticky;top:22px}}@media(max-width:1050px){.workspace{grid-template-columns:1.2fr 1fr;gap:16px}.preview-card{padding:19px}.control-card{padding-left:17px;padding-right:17px}.pipeline-card{padding:17px}.pipeline{grid-template-columns:1fr 10px 1fr;row-gap:15px}.pipeline>.arrow:nth-child(4){display:none}.pipeline strong{font-size:12px}.axis-row>span:last-child{margin-left:0}}@media(max-width:760px){.topbar{height:72px;padding:0 20px}.brand{font-size:14px}.brand-icon{width:36px;height:35px}.brand small{font-size:8px}.top-status{font-size:10px}.version{display:none}main{padding:24px 16px}.page-head{margin-bottom:22px;align-items:flex-start}.page-head h1{font-size:23px}.page-head p{font-size:11px;max-width:220px}.page-head .button{font-size:10px;padding:9px 10px;margin-top:20px}.eyebrow{font-size:10px}.workspace{grid-template-columns:1fr;gap:10px}.preview-card{padding:18px}.screen-shell{border-width:5px;border-radius:25px}.screen-top,.screen-bottom{font-size:8px;padding-left:14px;padding-right:14px}.display-caption{font-size:11px;margin:14px 0}.look-control{margin-top:18px;padding-top:16px}.pipeline{grid-template-columns:1fr 10px 1fr 10px .7fr 10px .7fr;gap:2px}.pipeline>.arrow:nth-child(4){display:block}.pipeline strong{font-size:10px}.pipeline small{font-size:8px;letter-spacing:-.04em}.pipeline .stage-num{font-size:8px}.axis-row{gap:12px}.axis-row>span:last-child{margin-left:auto}.note{font-size:10px;padding:15px 4px}.control-card{padding:8px 18px 20px}.expression-button{min-height:94px}.panel-intro p{font-size:11px}.logs-card{padding:12px 15px 17px;margin-top:20px}.logs-card .button{font-size:10px;padding:8px 10px}.log-scroll table{min-width:540px}.algorithm{padding:10px 17px}.algorithm summary>.subtle{display:none}.algorithm-body{grid-template-columns:1fr;font-size:11px;gap:18px}footer{font-size:9px}.source-note{font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.camera-stage{aspect-ratio:4/3;background:#18231f;position:relative;overflow:hidden}.camera-stage video,.camera-stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform:scaleX(-1)}.camera-stage canvas{pointer-events:none}.camera-stage .stage-label{z-index:2;color:#ecf6ef;background:#18231fbb;padding:7px 10px;border-radius:8px;max-width:calc(100% - 20px)}#cameraPlaceholder{position:absolute;inset:0;display:grid;place-items:center;color:#d6e1d8;font-size:14px;text-align:center;padding:20px}#cameraPlaceholder[hidden]{display:none}.camera-status{font-size:13px;line-height:1.6;color:var(--green);overflow-wrap:anywhere;min-height:22px}.camera-status[data-error=true]{color:#a33d24}.tracking-actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.camera-select{display:grid;gap:8px;font-size:13px;margin-top:16px}.camera-select select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font:inherit;padding:8px 12px}.camera-features{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.camera-feature{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.camera-feature output{font-family:ui-monospace,monospace;color:var(--ink);font-size:16px}
