:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{width:100%;height:100%}body{min-width:320px;min-height:100%;margin:0;overflow:hidden}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-.4px;margin:0;font-size:22px;line-height:1.2}h2{letter-spacing:-.2px;margin:0;font-size:18px;line-height:1.25}p{margin:0}.camera-preview{background:#111;border-radius:18px;width:100%;height:100%;position:relative;overflow:hidden}.camera-canvas{object-fit:contain;background:#111;width:100%;height:100%;display:block;transform:scaleX(-1)}.fullscreen-button{color:#fff;cursor:pointer;font:inherit;background:#000000a6;border:1px solid #fff9;border-radius:8px;padding:8px 12px;position:absolute;top:12px;right:12px}.fullscreen-button:hover,.fullscreen-button:focus-visible{background:#000000d9}.camera-preview:fullscreen{background:#000;border-radius:0;place-items:center;width:100vw;height:100vh;display:grid}.camera-preview:fullscreen .camera-canvas{object-fit:contain;width:100vw;height:100vh}.app-shell{box-sizing:border-box;text-align:left;grid-template-columns:320px minmax(0,1fr);width:100%;height:100dvh;min-height:0;display:grid;overflow:hidden}.sidebar{z-index:30;border-right:1px solid var(--border);background:var(--bg);flex-direction:column;gap:20px;min-height:0;padding:22px 18px;display:flex;position:relative;overflow:hidden}.sidebar-header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.eyebrow{color:var(--accent);letter-spacing:1.2px;font-size:11px;font-weight:750}.sidebar-header .eyebrow{margin-bottom:5px}.menu-close-button{color:var(--text-h);font:inherit;cursor:pointer;background:0 0;border:0;font-size:28px;line-height:1;display:none}.menu-nav{border:1px solid var(--border);background:var(--code-bg);border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:4px;display:grid}.menu-nav button{min-width:0;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:8px 4px;font-size:13px}.menu-nav button[aria-current=page]{color:var(--text-h);background:var(--bg);box-shadow:var(--shadow);font-weight:650}.menu-section{border-top:1px solid var(--border);gap:11px;padding-top:16px;display:grid}.active-menu-section{align-content:start;min-height:0;overflow:hidden}.menu-section h2{font-size:16px}.pose-list{gap:7px;display:grid}.pose-button{border:1px solid var(--border);width:100%;color:var(--text);text-align:left;font:inherit;cursor:pointer;background:0 0;border-radius:9px;padding:9px 11px;font-size:14px}.pose-button.selected{border-color:var(--accent-border);color:var(--text-h);background:var(--accent-bg)}.pose-hint{color:var(--text);font-size:13px}.camera-status{color:#b45309;align-items:center;gap:8px;font-size:13px;display:flex}.camera-status.detected{color:#15803d}.status-dot,.recording-dot{background:#f59e0b;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.camera-status.detected .status-dot,.connection-indicator.connected .status-dot{background:#22c55e}.duration-control,.recording-select{color:var(--text);gap:5px;font-size:13px;display:grid}.duration-control input,.duration-control select,.recording-select select{border:1px solid var(--border);width:100%;min-width:0;color:var(--text-h);background:var(--bg);font:inherit;border-radius:8px;padding:8px 9px;font-size:14px}.recording-help{color:var(--text);font-size:12px;line-height:1.4}.hand-console{border:1px solid var(--border);background:var(--code-bg);border-radius:9px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.hand-console-header{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:8px;padding:7px 9px;display:flex}.hand-console-header h3{color:var(--text-h);margin:0;font-size:12px;font-weight:700}.hand-console-header button{border:1px solid var(--border);color:var(--text);background:var(--bg);font:inherit;cursor:pointer;border-radius:6px;padding:3px 7px;font-size:11px}.hand-console-header button:disabled{opacity:.5;cursor:default}.hand-console-output{overscroll-behavior:contain;min-height:88px;max-height:240px;color:var(--text);font-family:var(--mono);padding:6px 8px;font-size:10px;line-height:1.4;overflow:auto}.hand-console-entry+.hand-console-entry{border-top:1px solid var(--border);margin-top:7px;padding-top:6px}.hand-console-entry-heading{color:var(--accent);justify-content:space-between;gap:8px;margin-bottom:3px;font-size:9px;display:flex}.hand-console-entry-heading span{color:var(--text)}.hand-console-entry-heading .websocket-write-success{color:#15803d}.hand-console-entry-heading .websocket-write-failure{color:#b45309}.hand-console-entry pre{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.hand-console-empty{padding-top:4px;font-size:10px}.hand-console-footnote{border-top:1px solid var(--border);color:var(--text);flex:none;padding:6px 8px;font-size:9px;line-height:1.35}.hand-menu-section{overscroll-behavior:contain;overflow-y:auto}.robot-test-open-button{min-height:36px;padding:6px 10px;font-size:12px}.robot-test-page{box-sizing:border-box;background:var(--bg);flex-direction:column;gap:16px;width:min(1440px,100%);height:100dvh;min-height:0;margin:0 auto;padding:24px;display:flex;overflow:auto}.robot-test-header,.robot-test-header-actions,.robot-test-content,.robot-hand-panel>header,.robot-test-log-panel>header{justify-content:space-between;align-items:center;gap:16px;display:flex}.robot-test-header>div:first-child{gap:5px;display:grid}.robot-test-header h1{font-size:clamp(20px,3vw,30px)}.robot-test-header p:last-child{max-width:700px;font-size:13px}.robot-test-header-actions{flex-wrap:wrap;justify-content:flex-end}.robot-test-header-actions .secondary-button{width:auto;min-height:36px;padding:6px 10px;font-size:12px}.robot-test-connection{white-space:nowrap;color:var(--text);align-items:center;gap:7px;font-size:12px;font-weight:650;display:inline-flex}.robot-test-connection i{background:#f59e0b;border-radius:50%;width:9px;height:9px}.robot-test-connection.connected i{background:#22c55e}.robot-test-status-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;display:grid}.robot-test-status-grid article{border:1px solid var(--border);background:var(--code-bg);border-radius:10px;gap:3px;min-width:0;padding:10px 12px;display:grid}.robot-test-status-grid article span{font-size:11px}.robot-test-status-grid article strong{color:var(--text-h);text-overflow:ellipsis;font-size:18px;overflow:hidden}.robot-test-message{border:1px solid var(--border);background:var(--code-bg);color:var(--text-h);border-radius:9px;padding:9px 12px;font-size:12px}.robot-test-message.ready{border-color:#22c55e59}.robot-test-content{flex:1;align-items:stretch;min-height:0}.robot-hand-panel,.robot-test-log-panel{border:1px solid var(--border);background:var(--bg);min-width:0;box-shadow:var(--shadow);border-radius:14px;flex-direction:column;gap:12px;padding:16px;display:flex}.robot-hand-panel{flex:1.2}.robot-test-log-panel{flex:.8}.robot-hand-panel h2,.robot-test-log-panel h2{color:var(--text-h);font-size:17px}.robot-hand-panel>header>span,.robot-test-log-panel>header>span{white-space:nowrap;font-size:11px}.robot-hand-panel>header>span b{color:var(--accent)}.robot-hand-visual{background:radial-gradient(ellipse at 50% 50%, #6366f12e, transparent 68%), var(--code-bg);cursor:grab;touch-action:none;border-radius:12px;flex:1;place-items:center;min-height:230px;display:grid;position:relative;overflow:hidden}.robot-hand-visual:active{cursor:grabbing}.robot-hand-visual canvas{width:100%;height:100%;display:block}.robot-hand-view-hint{z-index:1;border:1px solid var(--border);color:var(--text);background:color-mix(in srgb, var(--bg) 82%, transparent);pointer-events:none;border-radius:99px;padding:4px 7px;font-size:9px;position:absolute;bottom:8px;right:10px}.robot-angle-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.robot-angle-grid article{gap:5px;min-width:0;display:grid}.robot-angle-grid article>div:first-child{color:var(--text);justify-content:space-between;gap:3px;font-size:10px;display:flex}.robot-angle-grid strong{color:var(--text-h);font-family:var(--mono)}.robot-angle-track{background:var(--border);border-radius:99px;height:6px;overflow:hidden}.robot-angle-track i{border-radius:inherit;background:var(--accent);height:100%;transition:width .1s linear;display:block}.robot-angle-grid small,.robot-test-note{color:var(--text);font-size:10px}.robot-test-log-panel>header{flex:none}.robot-test-log{background:var(--code-bg);min-height:160px;font-family:var(--mono);border-radius:9px;flex:1;align-content:start;gap:9px;padding:10px;font-size:11px;line-height:1.45;display:grid;overflow:auto}.robot-test-log article+article{border-top:1px solid var(--border);padding-top:8px}.robot-test-log article header,.robot-test-log-panel>footer{color:var(--accent);justify-content:space-between;gap:10px;margin-bottom:4px;font-size:10px;display:flex}.robot-test-log pre{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.robot-test-empty{color:var(--text);text-align:center;font-family:var(--sans);margin:auto;font-size:12px}.robot-test-log-panel>footer{border-top:1px solid var(--border);flex:none;align-items:center;margin:0;padding-top:8px}.robot-test-log-panel>footer code{color:var(--text-h)}.recording-timer{color:var(--text-h);font-size:20px;font-weight:750}.recording-timer.urgent{color:#dc2626;font-size:28px}.primary-button,.secondary-button{color:#fff;text-align:center;width:100%;min-height:42px;font:inherit;cursor:pointer;background:#6366f1;border:1px solid #6366f1;border-radius:10px;justify-content:center;align-items:center;padding:9px 12px;font-size:14px;font-weight:650;display:inline-flex}.primary-button:disabled{opacity:.55;cursor:not-allowed}.secondary-button{color:var(--text-h);background:0 0}.recording-error{color:#dc2626;font-size:12px}.comparison-result{color:#15803d;font-size:14px;font-weight:700}.import-button{cursor:pointer;position:relative;overflow:hidden}.import-button input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.workspace{grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0;padding:18px 22px 16px;display:grid;position:relative;overflow:hidden}.workspace-header{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.workspace-heading{min-width:0}.workspace-heading .eyebrow{margin-bottom:3px}.workspace-heading h2{color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.connection-indicator{border:1px solid var(--border);border-radius:999px;flex:none;align-items:center;gap:7px;padding:7px 10px;font-size:12px;display:inline-flex}.connection-indicator.connected .status-dot{background:#22c55e}.notification-center{border:1px solid var(--border);min-height:42px;color:var(--text);background:var(--bg);border-radius:10px;align-items:center;padding:8px 13px;font-size:13px;line-height:1.35;display:flex}.notification-center.has-notice{border-color:var(--accent-border);color:var(--text-h);background:var(--accent-bg)}.camera-stage{place-items:center;min-width:0;min-height:0;display:grid;position:relative}.camera-stage .camera-preview{width:min(100%,1280px);height:100%;max-height:100%}.playback-countdown{z-index:5;color:#fff;pointer-events:none;text-shadow:0 2px 12px #000000a6;background:#07081252;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;inset:0}.playback-countdown span{font-size:clamp(72px,16vw,160px);font-weight:800;line-height:1}.playback-countdown strong{font-size:clamp(16px,2.4vw,24px)}.skeleton-legend{z-index:2;color:#fff;pointer-events:none;background:#0000009e;border:1px solid #fff3;border-radius:9px;gap:6px;padding:9px 11px;font-size:12px;display:grid;position:absolute;bottom:14px;left:14px}.skeleton-legend span{align-items:center;gap:7px;display:flex}.skeleton-legend i{border-radius:50%;width:9px;height:9px;display:inline-block}.legend-guide{background:#fb7185}.legend-live{background:#22d3ee}.playback-progress{z-index:3;pointer-events:none;background:#ffffff40;border-radius:18px 18px 0 0;height:5px;position:absolute;top:0;left:0;right:0;overflow:hidden}.playback-progress span{background:#fb7185;height:100%;transition:width .1s linear;display:block}.stop-playback-button{color:#dc2626;border-color:#dc2626}.stop-playback-button:hover{background:#dc262614}.workspace-footer{align-items:center;gap:20px;min-height:52px;padding:0 4px;display:flex}.live-feedback{gap:1px;display:grid}.footer-label{color:var(--text);font-size:11px}.live-feedback strong{color:var(--text-h);font-size:18px;line-height:1.1}.footer-recording{color:#dc2626;align-items:center;gap:8px;margin-left:auto;font-size:14px;font-weight:700;display:inline-flex}.recording-dot{background:#ef4444;animation:1s infinite recording-pulse}.hand-control-footer{gap:9px;min-width:0;padding:2px 4px 0;display:grid}.finger-readouts{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.finger-readout{min-width:0;color:var(--text);grid-template-columns:1fr auto;align-items:center;gap:3px 8px;font-size:11px;display:grid}.finger-readout strong{color:var(--text-h);font-size:12px}.finger-readout i{background:var(--border);border-radius:999px;grid-column:1/-1;height:5px;overflow:hidden}.finger-readout i span{border-radius:inherit;background:var(--accent);height:100%;display:block}.hand-actions{flex-wrap:wrap;gap:7px;display:flex}.hand-actions .primary-button,.hand-actions .secondary-button{width:auto;min-height:36px;padding:6px 10px;font-size:12px}.hand-import-button{cursor:pointer;position:relative;overflow:hidden}.hand-import-button input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}@keyframes recording-pulse{50%{opacity:.35}}.mobile-menu-button,.menu-backdrop{display:none}@media (width<=820px){.app-shell{display:block}.sidebar{width:min(88vw,340px);box-shadow:var(--shadow);transition:transform .18s;position:fixed;top:0;bottom:0;left:0;transform:translate(-105%)}.sidebar.open{transform:translate(0)}.menu-close-button{display:inline-flex}.menu-backdrop{z-index:20;background:#00000073;border:0;display:block;position:fixed;inset:0}.workspace{height:100dvh;padding:12px}.mobile-menu-button{border:1px solid var(--border);color:var(--text-h);background:var(--bg);font:inherit;cursor:pointer;border-radius:9px;flex:none;align-items:center;gap:7px;padding:8px 10px;font-size:13px;display:inline-flex}}@media (width<=480px){.workspace{gap:9px;padding:9px}.notification-center{min-height:38px;padding:7px 9px;font-size:12px}.connection-indicator{padding:6px 8px;font-size:11px}.workspace-footer{gap:14px;min-height:44px}.finger-readouts{gap:5px}.finger-readout{font-size:9px}}@media (height<=620px){.sidebar{gap:12px;padding-top:12px;padding-bottom:12px}.menu-section{gap:8px;padding-top:10px}.pose-button{padding:7px 9px}.recording-help{font-size:11px}}@media (width<=900px){.robot-test-page{gap:12px;padding:16px}.robot-test-content{flex-direction:column}.robot-hand-visual{min-height:260px}.robot-test-log{max-height:320px}}@media (width<=560px){.robot-test-page{padding:12px}.robot-test-header{flex-direction:column;align-items:flex-start}.robot-test-header-actions{justify-content:flex-start}.robot-test-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.robot-test-status-grid article:last-child{grid-column:1/-1}.robot-hand-panel,.robot-test-log-panel{padding:12px}.robot-angle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.robot-angle-grid article:last-child{grid-column:1/-1}}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}
