*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:Arial,Helvetica,sans-serif;background:#0b0d10;color:#f5f7fa}body{overflow:hidden}.setup-body{height:100vh}.setup-header{height:58px;border-bottom:1px solid #20252c;background:rgba(11,13,16,.96);display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:relative;z-index:20}.brand{font-size:18px;font-weight:650;letter-spacing:.2px}.model-badge{font-size:10px;letter-spacing:1.3px;color:#9ca3af;border:1px solid #2b3139;border-radius:999px;padding:7px 11px}.setup-main{height:calc(100vh - 58px);width:min(1180px,calc(100% - 34px));margin:0 auto;padding:22px 0 24px;display:flex;align-items:flex-start}.setup-card{width:100%;height:100%;max-height:calc(100vh - 104px);background:#15181d;border:1px solid #272d35;border-radius:16px;padding:25px 28px 20px;box-shadow:0 18px 60px rgba(0,0,0,.25);display:flex;flex-direction:column}.eyebrow{font-size:11px;letter-spacing:2px;color:#8d96a3;margin-bottom:8px}.setup-card h1{font-size:31px;line-height:1.1;margin:0 0 7px}.intro{color:#9aa3af;font-size:13px;margin:0 0 18px}.class-toolbar{display:flex;gap:9px;margin-bottom:10px}.search-wrap{flex:1}.search-wrap input,.detect-search input{width:100%;height:40px;border:1px solid #303640;border-radius:8px;background:#0f1216;color:#f3f4f6;padding:0 12px;outline:none}.search-wrap input:focus,.detect-search input:focus{border-color:#4b5563}.toolbar-actions{display:flex;gap:8px}.small-button{height:36px;padding:0 13px;border-radius:8px;border:1px solid #303640;background:#252b33;color:#e5e7eb;cursor:pointer;font-size:12px}.small-button:hover{background:#303742}.small-button.ghost{background:transparent}.class-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;overflow-y:auto;min-height:0;flex:1;padding:0 3px 0 0}.class-item{min-height:39px;display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid #272d35;background:#111419;border-radius:8px;color:#cbd1d8;font-size:12px;cursor:pointer}.class-item:hover{border-color:#3c4550;background:#171b21}.class-item input{accent-color:#6b7280;width:15px;height:15px}.setup-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:13px;padding-top:13px;border-top:1px solid #272d35}.selection-count{font-size:12px;color:#8f98a5}.primary-button{height:43px;padding:0 25px;border:0;border-radius:9px;background:#e5e7eb;color:#111318;font-weight:700;cursor:pointer}.primary-button:hover{background:#fff}.detection-body{height:100vh;min-height:100vh}.detect-header{height:58px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #20252c;background:#0b0d10;position:relative;z-index:30}.back-button{width:32px;height:32px;margin-right:10px;border:1px solid #2d333c;border-radius:7px;background:#15191f;color:#cbd1d8;font-size:18px;cursor:pointer}.header-status{margin-left:auto;margin-right:10px;display:flex;align-items:center;gap:7px;font-size:11px;color:#858e9b}.status-dot{width:7px;height:7px;border-radius:50%;background:#8b949e}.status-dot.connected{background:#52c41a;box-shadow:0 0 9px rgba(82,196,26,.55)}.detection-layout{height:calc(100vh - 58px);display:grid;grid-template-columns:245px minmax(0,1fr) 245px;min-height:0}.side-panel{background:#111419;min-width:0;overflow:hidden}.left-panel{border-right:1px solid #242a32;padding:16px 13px}.right-panel{border-left:1px solid #242a32;padding:16px 13px}.panel-title{font-size:13px;font-weight:700;color:#dfe3e8;margin-bottom:11px}.panel-tools{display:flex;gap:6px;margin-bottom:9px}.panel-tools .small-button{flex:1}.detect-search input{height:35px;font-size:12px}.detect-class-list{overflow:auto;margin-top:9px;height:calc(100% - 108px);padding-right:3px}.detect-class-item{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:6px;color:#b9c0c9;font-size:12px;cursor:pointer}.detect-class-item:hover{background:#1a1f26}.detect-class-item input{accent-color:#7c8591}.camera-stage{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;background:#0b0d10;padding:18px}.camera-frame{position:relative;width:min(100%,1100px);height:min(100%,calc((100vw - 490px)*.5625));aspect-ratio:16/9;background:#050608;border:1px solid #252b33;box-shadow:0 18px 60px rgba(0,0,0,.35);overflow:hidden}.camera-frame video{width:100%;height:100%;display:block;object-fit:contain;background:#050608}.camera-frame canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.camera-frame.mirrored video{transform:scaleX(-1)}.stream-overlay{position:absolute;font-family:monospace;font-size:10px;line-height:1.6;letter-spacing:.4px;color:#d9dee5;text-shadow:0 1px 3px #000;pointer-events:none}.top-left{left:11px;top:9px}.top-right{right:11px;top:9px;color:#6ee7a0}.bottom-left{left:11px;bottom:9px;color:#9ca3af}.camera-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:#9ca3af;font-size:13px;padding:25px;pointer-events:none}.control-section{border-top:1px solid #242a32;padding-top:15px;margin-top:15px}.control-section.first-control{border-top:0;padding-top:0;margin-top:0}.section-label{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#7f8894;margin-bottom:9px}.tracker-options{display:flex;flex-direction:column;gap:7px}.tracker-button{height:37px;border:1px solid #303640;border-radius:8px;background:#191e25;color:#cbd1d8;font-size:12px;cursor:pointer}.tracker-button:hover{background:#242a32}.tracker-button.active{background:#e5e7eb;color:#111318;border-color:#e5e7eb;font-weight:700}.switch-row{display:flex;align-items:center;justify-content:space-between;color:#cbd1d8;font-size:12px;cursor:pointer}.switch-row input{display:none}.switch{width:38px;height:21px;background:#303640;border-radius:999px;padding:3px;transition:.18s}.switch:after{content:"";display:block;width:15px;height:15px;border-radius:50%;background:#8b949e;transition:.18s}.switch-row input:checked+.switch{background:#e5e7eb}.switch-row input:checked+.switch:after{transform:translateX(17px);background:#111318}.hamburger,.mobile-menu{display:none}

.camera-facing-options{display:flex;gap:7px}.camera-facing-options .tracker-button{flex:1}

.camera-frame,.camera-frame video,.camera-frame canvas{backface-visibility:hidden;transform-style:flat}.camera-frame video{will-change:transform}.camera-frame canvas{will-change:contents}
