:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#173252;background:#f2f6fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dbe5f2;padding:18px max(18px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:18px}.brand small{display:block;color:#71829a;font-size:11px;margin-top:4px}.logo{background:#1764dc;color:white;border-radius:14px;font-size:25px;font-weight:850;padding:10px 13px}.badge{font-size:12px;background:#edf3fd;color:#2361b7;padding:7px 10px;border-radius:30px;white-space:nowrap}main{max-width:1100px;margin:auto;padding:20px}nav{display:flex;overflow-x:auto;gap:6px;padding:0 0 16px;position:sticky;top:0;background:#f2f6fc;z-index:3;scrollbar-width:thin}button{border:1px solid #d6e2f2;background:white;color:#234a7a;padding:13px 17px;border-radius:12px;font:inherit;font-weight:600;cursor:pointer;min-height:46px;-webkit-tap-highlight-color:transparent}nav button{white-space:nowrap;border:0;background:transparent}button.selected,.primary{background:#1764dc;color:white;border-color:#1764dc}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #f2ae35;outline-offset:3px}h1{font-size:clamp(28px,5vw,40px);line-height:1.12;letter-spacing:-1px;margin:12px 0 16px}h2{font-size:19px;margin-top:0}p{color:#647890;line-height:1.6}.card{background:#fff;border:1px solid #e0e8f3;border-radius:22px;padding:26px;margin-bottom:18px;box-shadow:0 4px 20px #163b6410}.hero{padding:32px;border-radius:22px;background:linear-gradient(120deg,#1155c7,#4a8bea);color:white;margin-bottom:20px;position:relative;overflow:hidden}.hero:after{content:'W';position:absolute;right:25px;top:5px;font-size:210px;font-weight:900;color:#ffffff13;pointer-events:none}.hero p{color:#e3eeff}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.metric{padding:20px;border:1px solid #dfE8f3;background:white;border-radius:17px}.metric b{display:block;margin:9px 0}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#a6b2c0;margin-right:6px}.dot.live{background:#1ba67d}.metric small{color:#73859c}.segmented{display:flex;background:#edf3fb;border-radius:14px;padding:5px;gap:4px;margin-bottom:18px}.segmented button{flex:1;padding:11px 7px;border:0;background:transparent}.segmented button.selected{background:white;color:#165dc9;box-shadow:0 2px 7px #18375b18}.pad{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,85px);gap:10px;max-width:440px;margin:24px auto;touch-action:none;user-select:none}.pad button{font-size:30px;background:#edf4ff;border-color:#d7e7ff;color:#1d64d2}.pad button small{display:block;font-size:12px;margin-top:3px}.pad button.held{background:#1764dc;color:white}.forward{grid-area:1/2}.left{grid-area:2/1}.right{grid-area:2/3}.reverse{grid-area:3/2}.pad .stop{grid-area:2/2;font-size:18px;background:#ffeded;color:#b53243;border-color:#ffd8dc}.muted{font-size:12px}canvas{display:block;width:100%;max-width:640px;background:#f3f7fd;border-radius:16px;margin:15px auto}#joystick{max-width:360px}.data-row,.light-row,.button-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid #e7edf5}.data-row span{font-size:13px;overflow-wrap:anywhere}.light-row strong{font-size:14px}.colors{display:flex;gap:6px}.colors button{padding:5px;min-height:38px;width:38px;border-radius:50%;font-size:11px}.colors button.active{outline:3px solid #9cb4d7;outline-offset:2px}.all-colors{display:flex;gap:6px;margin:14px 0;flex-wrap:wrap}.all-colors button{flex:1;font-size:12px;padding:10px}.chair{height:275px;max-width:330px;position:relative;margin:20px auto}.front-label{position:absolute;top:0;width:100%;text-align:center;font-size:10px;letter-spacing:3px;color:#8999ac}.seat{position:absolute;top:90px;left:calc(50% - 47px);width:94px;height:112px;border-radius:25px 25px 15px 15px;background:#d9e6f7;color:#a1badb;text-align:center;padding-top:22px;font-size:48px;font-weight:800}.wheel{position:absolute;top:100px;width:18px;height:115px;background:#53749b;border-radius:8px}.wheel-l{left:calc(50% - 77px)}.wheel-r{right:calc(50% - 77px)}.backrest{position:absolute;top:197px;left:calc(50% - 55px);width:110px;height:18px;background:#b9cde8;border-radius:7px}.strip{position:absolute;height:12px;width:52px;background:#dce4ef;border-radius:6px;border:1px solid #bccbdc}.strip.s0{top:50px;left:55px}.strip.s1{top:50px;right:55px}.strip.s2{bottom:22px;left:55px}.strip.s3{bottom:22px;right:55px}.strip.s4{height:100px;width:12px;top:108px;left:12px}.strip.s5{height:100px;width:12px;top:108px;right:12px}.camera-frame{background:#102239;aspect-ratio:4/3;border-radius:16px;overflow:hidden;position:relative;display:grid;place-items:center}.camera-frame img{width:100%;height:100%;object-fit:contain}.camera-frame span{position:absolute;color:white;background:#102239b0;padding:8px;border-radius:8px;font-size:12px}.mirrored{transform:scaleX(-1)}label{display:block;margin:14px 0 6px;font-size:14px}input[type=password]{display:block;width:100%;border:1px solid #b9cce6;padding:14px;border-radius:10px;font:inherit;margin:8px 0 16px}input[type=range]{display:block;width:100%;margin:16px 0}.toggle{display:flex;align-items:center;gap:8px}input[type=checkbox]{width:20px;height:20px}.login{max-width:480px;margin:40px auto}.login button{width:100%}.actions{display:flex;gap:8px}.topic{padding:14px 0;border-top:1px solid #e2eaf5;overflow-wrap:anywhere}.topic small{display:block;color:#7c8da4;margin-top:5px}footer{text-align:center;color:#8291a6;font-size:11px;padding:16px}footer button{border:0;background:none;min-height:32px;font-size:11px;padding:5px}#notice{color:#8d4f0b;background:#fff0d9;border-radius:10px;padding:12px;margin-bottom:12px}#notice:empty{display:none}[hidden]{display:none!important}@media(min-width:800px){.view{max-width:800px;margin:auto}#overview{max-width:none}.view .card{padding:32px}}@media(max-width:520px){header{padding:14px}.brand strong{font-size:15px}.brand small{font-size:9px}.badge{font-size:10px}.logo{padding:7px 10px;font-size:23px}main{padding:14px}.card{padding:20px}.cards{grid-template-columns:repeat(2,1fr)}.hero{padding:25px}.metric{padding:16px}.light-row{flex-wrap:wrap}.chair{max-width:290px}nav button{font-size:14px;padding:12px}}

#key{display:block;width:100%;min-height:76px;border:2px solid #a9c4eb;border-radius:16px;font:700 clamp(28px,8vw,40px) ui-monospace,monospace;text-align:center;letter-spacing:.22em;padding:16px 8px;margin:12px 0 20px;color:#173252;background:#f6f9ff}#pairButton{min-height:58px;font-size:18px}.pair-progress{display:flex;align-items:center;gap:12px;background:#edf4ff;border-radius:12px;padding:16px;margin-top:18px;line-height:1.5}.spinner{display:none;flex-shrink:0;width:22px;height:22px;border:3px solid #c8daf4;border-top-color:#1764dc;border-radius:50%}.busy .spinner{display:block;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#loginError{color:#ad243a;overflow-wrap:anywhere}.drive-steps{list-style:none;padding:16px;background:#f2f6fc;border-radius:12px;line-height:1.8;font-size:14px}.drive-steps .ready{color:#087c53}@media(max-width:520px){.login{margin:12px auto}.login h1{font-size:32px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none!important}}

.pad,.pad *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}.pad button{font-family:Arial,sans-serif;font-size:42px}

footer #logout{display:block;width:min(100%,440px);margin:18px auto 6px;min-height:58px;border-radius:20px;background:#b8243b;color:white;font-size:18px;font-weight:700;padding:14px 24px}#driveSteps:empty{display:none}

.forward-left{grid-area:1/1}.forward-right{grid-area:1/3}.reverse-left{grid-area:3/1}.reverse-right{grid-area:3/3}
