*{box-sizing:border-box}body{margin:0 auto;padding:36px 24px;max-width:960px;background:white;color:#111;font:16px/1.5 Arial,Helvetica,sans-serif}a{color:inherit}h1{font-size:clamp(32px,6vw,56px);line-height:1;letter-spacing:-.055em;margin:28px 0 18px}h2{font-size:18px;margin-top:30px}button,input{font:inherit;color:inherit;background:white;border:1px solid #111;padding:10px 14px;border-radius:0}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}button:hover:enabled{background:#111;color:white}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #111;outline-offset:3px}.eyebrow{font-size:10px;font-weight:bold;letter-spacing:.1em;text-transform:uppercase}.controls{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}label{display:flex;flex-direction:column;font-size:12px;gap:6px}input{width:180px}#camera{max-width:480px;background:#eee;min-height:100px}canvas,video{display:block;max-width:100%;height:auto!important}#status,#result{min-height:24px}#result{font-size:24px;font-weight:bold;letter-spacing:-.03em}#scores{font:13px/1.7 monospace;white-space:pre-wrap}.note{font-size:12px;color:#666;max-width:670px}details{border-top:1px solid #aaa;margin-top:30px;padding-top:16px}summary{cursor:pointer}code{font-size:13px}#bridge-status{font-size:12px}hr{border:0;border-top:1px solid #aaa;margin:28px 0}

.demo-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(180px,.8fr);gap:28px;align-items:start}.demo-grid #camera{max-width:480px;aspect-ratio:4/3;display:grid;place-items:center}.live-counts{border-top:1px solid #111;padding-top:12px}.live-counts h2{margin:0 0 12px}.tally-row,#tally>div{display:flex;justify-content:space-between;gap:20px;padding:6px 0;border-bottom:1px solid #ddd;font-size:14px}#tally strong{font-variant-numeric:tabular-nums}.tally-total{display:flex;justify-content:space-between;font-size:13px;font-weight:bold;margin-top:18px}.tally-total strong{font-size:28px;line-height:1}.live-counts .controls{gap:10px;margin:16px 0}.live-counts button{font-size:11px;padding:6px 9px}.model-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.model-controls label{flex:1;min-width:200px}.model-controls input{width:100%}.model-controls button{height:46px}#scores{margin:8px 0;font-size:11px}.embedded{padding:8px 0;max-width:none}.embedded .standalone{display:none}.embedded .controls{margin:4px 0 14px}.embedded #status{font-size:12px;margin:8px 0}.embedded #result{font-size:21px;margin:12px 0}.embedded .note{font-size:11px}.embedded .demo-grid{gap:24px}.embedded #camera{max-width:100%;min-height:100px}.embedded .model-controls{margin-bottom:14px}.embedded .model-controls label{font-size:10px}.embedded .model-controls input{font-size:12px;padding:8px}.embedded .model-controls button{font-size:12px;height:36px;padding:8px}.embedded details{margin-top:14px}.embedded .live-counts h2{font-size:16px}.embedded .live-counts .controls{margin:14px 0}.ignored-label{font-size:11px;margin-top:12px}select{font:inherit;max-width:100%;padding:5px;color:#111;background:white;border:1px solid #111}@media(max-width:580px){.demo-grid{grid-template-columns:1fr}.embedded .demo-grid{grid-template-columns:minmax(0,1fr) minmax(115px,.75fr);gap:14px}.embedded .live-counts h2{font-size:13px}.embedded #tally>div{font-size:11px}.embedded .note{font-size:10px}.embedded .live-counts button{font-size:10px}.embedded #scores{font-size:10px}.embedded .tally-total{font-size:11px}.embedded .tally-total strong{font-size:22px}}

.teachable #camera,.teachable.embedded #camera{aspect-ratio:1;width:100%;max-width:360px}

.embedded:not(.teachable) #camera{max-width:480px;width:100%;aspect-ratio:4/3}.embedded #scores{display:none}

.embedded>.controls button{font-size:11px;padding:6px 10px}.embedded>.controls{margin:2px 0 8px;gap:8px}.embedded #model-state{margin:4px 0;font-size:10px}.embedded #log-status{min-height:28px;font-size:10px}.embedded #tally>div{padding:4px 0}.embedded .live-counts .note{line-height:1.4}.embedded .live-counts .ignored-label{margin-top:8px}.embedded .live-counts .tally-total{margin-top:10px}
