/* Rider's-eye cockpit. cockpit- = layout and bodywork, hc- = handlebar controls. Loaded last. */
.cockpit{--ck-key:#1b1c20;--ck-ink:#e8e8e4;--ck-gold:#bc9c67;--ck-amber:#f2a73b;--ck-card:#141414;--ck-card-border:#464039;--ck-mirror-top:#8eb1cf;--ck-mirror-mid:#d8e2e8;--ck-mirror-ground:#9a958c;--ck-mirror-road:#4a4c50;--ck-mirror-line:#e7c23a;position:absolute;inset:0;overflow:hidden;overflow:clip;background:#0b0c0e;color:var(--ck-ink);user-select:none;-webkit-user-select:none;font-family:'Sora','Microsoft YaHei',sans-serif}
.cockpit[hidden]{display:none}
.cockpit[data-scene=highway]{--ck-mirror-top:#7fa9d6;--ck-mirror-mid:#dbe7f0;--ck-mirror-ground:#7b8f5a;--ck-mirror-road:#55585d;--ck-mirror-line:#f2f2ee}
.cockpit[data-scene=winding]{--ck-mirror-top:#9cc0da;--ck-mirror-mid:#e6eee0;--ck-mirror-ground:#6f9150;--ck-mirror-road:#4f5154}
.cockpit-view .stage{padding:0}
.cockpit-view .stage-caption{left:16px;top:14px;bottom:auto;z-index:6;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.cockpit-road{position:absolute;left:0;top:0;width:100%;height:var(--road-h,100%);display:block}
.cockpit-rig{position:absolute;left:50%;bottom:0;z-index:1;width:1400px;height:1000px;transform:translateX(-50%) scale(var(--cockpit-scale,.8));transform-origin:50% 100%;pointer-events:none}
.cockpit-art,.cockpit-band{position:absolute;inset:0;pointer-events:none}
.cockpit-art svg{display:block;width:1400px;height:1000px;overflow:visible}
.cockpit-band{display:none}
.ck-lever{will-change:transform}
/* Idle shake: about 8 steps a second, with the mirror's blur filters dropped so each step repaints cheaply. */
.cockpit[data-engine=running][data-moving=no] .ck-mirror{animation:ck-shake .24s steps(2) infinite}
@media(prefers-reduced-motion:no-preference){.cockpit[data-engine=running][data-moving=no] .ck-mirror [filter]{filter:none}}
@keyframes ck-shake{0%{transform:translate(0,0)}50%{transform:translate(.5px,-.4px)}}
/* Gauge cup: the live #device is re-hosted here unchanged. */
.cockpit-pod{position:absolute;left:378px;top:68px;width:644px;height:644px;border-radius:50%;pointer-events:auto;z-index:2}
.cockpit-pod-cup{position:absolute;left:0;top:10px;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 50% 36%,#1a1b1e 0,#131417 52%,#070708 71%);box-shadow:0 0 0 2px #2a2b2e,0 28px 50px rgba(0,0,0,.62),0 6px 14px rgba(0,0,0,.5),inset 0 2px 0 rgba(255,255,255,.07)}
.cockpit-pod-cup::before{content:'';position:absolute;inset:-2px;border-radius:50%;background:conic-gradient(from 210deg,rgba(255,255,255,0),rgba(255,255,255,.2) 45deg,rgba(255,255,255,0) 115deg,rgba(255,255,255,0) 235deg,rgba(255,255,255,.1) 290deg,rgba(255,255,255,0) 335deg);-webkit-mask:radial-gradient(circle,transparent calc(50% - 3px),#000 calc(50% - 2px));mask:radial-gradient(circle,transparent calc(50% - 3px),#000 calc(50% - 2px))}
.cockpit-pod-cup::after{content:'';position:absolute;left:15%;right:15%;bottom:-5px;height:26px;border-radius:0 0 50% 50%/0 0 100% 100%;background:linear-gradient(180deg,#09090a,#1d1e22 70%,#2a2b2e);box-shadow:0 6px 10px rgba(0,0,0,.5)}
.cockpit-pod .device-fit{position:absolute;left:calc((100% - var(--device-size))/2);top:calc((100% - var(--device-size))/2);border-radius:50%}
.cockpit-pod .device-fit::before{content:'';position:absolute;inset:1%;border-radius:50%;box-shadow:0 12px 26px rgba(0,0,0,.75),0 0 0 3px rgba(0,0,0,.55)}
/* Switch cubes: 190 × 340 design px, scaled as one unit. */
.hc-card{position:absolute;top:560px;width:190px;height:340px;pointer-events:auto;z-index:3}
.hc-card-left{left:205px}.hc-card-right{left:1005px}
.hc-card h3{display:none}
.hc-cube-frame{position:relative;width:calc(190px * var(--cube-scale,1));height:calc(340px * var(--cube-scale,1))}
.hc-cube{position:absolute;left:0;top:0;width:190px;height:340px;transform:scale(var(--cube-scale,1));transform-origin:0 0}
.hc-cube-bar{position:absolute;left:-16px;top:144px;width:222px;height:28px;border-radius:6px;background:linear-gradient(180deg,#303136,#141416 42%,#060607)}
.hc-cube-shell{position:absolute;left:0;width:190px;border-radius:26px;background:linear-gradient(180deg,#24262a,#131417 35%,#0d0e10);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.6),0 18px 30px rgba(0,0,0,.45)}
.hc-cube-shell.top{top:0;height:150px}.hc-cube-shell.bottom{top:166px;height:174px}
.hc-cube-shell.top::after{content:'';position:absolute;left:18px;right:18px;top:3px;height:22px;border-radius:20px 20px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0))}
.hc-cube-clamp{position:absolute;left:6px;top:138px;width:178px;height:40px;border-radius:9px;background:linear-gradient(180deg,#0e0f11,#1d1e22 50%,#0b0b0d);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 5px rgba(0,0,0,.6)}
.hc-cube-clamp i{position:absolute;top:13px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#7a7e85,#25272b 70%);box-shadow:inset 0 0 0 1px #0a0a0b}
.hc-cube-clamp i:first-child{left:14px}.hc-cube-clamp i:last-child{right:14px}
.hc-cube-clamp i::after{content:'';position:absolute;left:3px;top:6px;width:8px;height:2px;background:#111;transform:rotate(-30deg)}
.hc-rocker-v,.hc-pad-ring,.hc-turn-slot,.hc-ring-housing{position:absolute;pointer-events:none}
.hc-rocker-v{border-radius:12px;background:#08090a;box-shadow:inset 0 2px 4px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.05)}
.hc-pad-ring{border-radius:50%;background:radial-gradient(circle,#0a0b0c 0 27%,#1b1c20 28%,#131417 66%,#08090a 70%,#1c1d21 72%,#0b0c0d 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 4px rgba(0,0,0,.6)}
.hc-btn{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;margin:0;padding:0;border:0;border-radius:8px;background:var(--ck-key);color:var(--ck-ink);font:600 10px/1 'Sora',sans-serif;letter-spacing:.5px;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 2px 0 #050506,0 3px 6px rgba(0,0,0,.35);touch-action:none;pointer-events:auto;transition:transform .06s,box-shadow .06s,color .06s;-webkit-tap-highlight-color:transparent}
.hc-btn svg{display:block;width:18px;height:18px}
.hc-btn small{font-size:7.5px;letter-spacing:.6px;font-weight:600}
.hc-btn:hover{filter:brightness(1.18)}
.hc-btn:active,.hc-btn.is-pressed,.hc-btn.is-held{transform:translateY(1.5px);box-shadow:inset 0 2px 3px rgba(0,0,0,.6);color:#fff}
.hc-btn:focus-visible,.hc-hot:focus-visible,.hc-cell:focus-visible,.hc-shift:focus-visible,.hc-pedal:focus-visible{outline:2px solid var(--ck-gold);outline-offset:2px}
.hc-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;pointer-events:none}
.hc-seg b{font-size:9px}.hc-seg i{font-style:normal;font-size:13px;line-height:11px}
.hc-seg.top{border-radius:9px 9px 3px 3px}.hc-seg.bottom{border-radius:3px 3px 9px 9px}
.hc-rocker{position:absolute;border-radius:16px;background:#08090a;box-shadow:inset 0 2px 4px rgba(0,0,0,.8)}
.hc-half{left:2px;width:calc(100% - 4px);height:calc(50% - 1px)}
.hc-half svg{width:16px;height:13px}
.hc-beam-up{top:1px;border-radius:15px 15px 3px 3px}.hc-beam-down{top:calc(50%);border-radius:3px 3px 15px 15px}
.cockpit[data-beam=high] .hc-beam-up{transform:translateY(1.5px);box-shadow:inset 0 2px 3px rgba(0,0,0,.6);color:#fff}
.hc-petal{background:linear-gradient(180deg,#24262b,#17181b)}
.hc-petal.up{border-radius:50% 50% 5px 5px/70% 70% 5px 5px}.hc-petal.down{border-radius:5px 5px 50% 50%/5px 5px 70% 70%}
.hc-petal.left{border-radius:70% 5px 5px 70%/50% 5px 5px 50%}.hc-petal.right{border-radius:5px 70% 70% 5px/5px 50% 50% 5px}
.hc-petal svg{width:13px;height:13px}
.hc-ok{border-radius:50%;background:radial-gradient(circle at 40% 32%,#2c2e33,#17181b 72%)}
.hc-ok b{font-size:9px}
.hc-media-center svg{width:15px;height:15px}
.hc-turn-slot{border-radius:13px;background:#060607;box-shadow:inset 0 2px 5px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.06)}
.hc-turn{background:transparent;box-shadow:none}
.hc-turn:hover{background:rgba(255,255,255,.03);filter:none}
.hc-turn .hc-face{position:absolute;inset:0;display:block}
.hc-turn-arrow{position:absolute;top:6px;width:16px;height:16px;opacity:.9}.hc-turn-arrow.l{left:8px}.hc-turn-arrow.r{right:8px}
.hc-turn-arrow svg{width:16px;height:16px}
.hc-turn-knob{position:absolute;left:50%;top:3px;width:32px;height:22px;margin-left:-16px;border-radius:8px;background:linear-gradient(180deg,#3a3c42,#1d1e22 55%,#141518);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 2px 3px rgba(0,0,0,.7);transition:transform .12s}
.hc-turn-knob::after{content:'';position:absolute;left:9px;right:9px;top:10px;height:2px;border-radius:1px;background:rgba(232,232,228,.65)}
.hc-turn:active,.hc-turn.is-pressed{transform:none;box-shadow:none}
.hc-turn.is-pressed .hc-turn-knob{transform:scale(.93)}
.hc-turn[data-push=left] .hc-turn-knob{transform:translateX(-34px)}.hc-turn[data-push=right] .hc-turn-knob{transform:translateX(34px)}
.hc-horn{border-radius:6px 6px 12px 12px;background:linear-gradient(180deg,#202125,#16171a)}
.hc-horn svg{width:20px;height:16px}
.hc-mode.hc-paddle{border-radius:11px 11px 6px 6px;background:linear-gradient(180deg,#45474e,#24252a 40%,#17181b);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 3px 0 #050506,0 4px 8px rgba(0,0,0,.4)}
.hc-hazard{border-radius:10px}.hc-hazard svg{width:22px;height:22px}
.hc-blank{opacity:.4}.hc-plug{display:block;width:16px;height:8px;border-radius:4px;background:#0d0e10;box-shadow:inset 0 1px 1px rgba(0,0,0,.8)}
.hc-ring-housing{border-radius:50%;background:radial-gradient(circle,transparent 0 33px,#050506 34px 36px,#0f1012 37px 100%);box-shadow:0 1px 0 rgba(255,255,255,.05)}
.hc-ring-label{position:absolute;top:-2px;font:600 7.5px/1 'Sora',sans-serif;letter-spacing:.6px;color:var(--ck-ink)}
.hc-ring-label.off{left:-12px}.hc-ring-label.run{right:-12px}
.hc-ring{--ring-rot:-45deg;border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.07) 0 3deg,rgba(0,0,0,0) 3deg 9deg),radial-gradient(circle closest-side,transparent 0 62%,#2b2c31 64%,#1a1b1e 88%,#0d0e10 99%,transparent 100%);box-shadow:0 2px 0 #050506,0 3px 6px rgba(0,0,0,.4);-webkit-mask:radial-gradient(circle closest-side,transparent 62%,#000 64% 99%,transparent 100%);mask:radial-gradient(circle closest-side,transparent 62%,#000 64% 99%,transparent 100%);transform:rotate(var(--ring-rot));transition:transform .18s cubic-bezier(.3,.7,.3,1)}
.cockpit[data-ignition=run] .hc-ring{--ring-rot:45deg}
.hc-ring.hc-btn:active,.hc-ring.is-pressed{transform:rotate(var(--ring-rot)) scale(.985);box-shadow:inset 0 2px 3px rgba(0,0,0,.6)}
.hc-ring .hc-face{position:absolute;inset:0;display:block}
.hc-ring-lug{position:absolute;left:50%;top:-1px;width:14px;height:16px;margin-left:-7px;border-radius:5px 5px 3px 3px;background:linear-gradient(180deg,#4a4c52,#24252a);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.hc-ring-lug::after{content:'';position:absolute;left:6px;top:3px;width:2px;height:8px;border-radius:1px;background:var(--ck-ink)}
.hc-start.hc-round{z-index:1;border-radius:50%;background:radial-gradient(circle at 40% 32%,#30323a,#17181b 70%);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 3px 0 #050506,0 4px 10px rgba(0,0,0,.5)}
.hc-start svg{width:22px;height:22px}
.hc-tc .hc-slip{width:22px;height:9px}
.hc-voice svg{width:17px;height:17px}
/* Levers, grip and foot windows on the wide layout. */
.hc-hot{position:absolute;margin:0;padding:0;border:0;border-radius:26px;background:transparent;pointer-events:auto;touch-action:none;cursor:grab;z-index:3}
.hc-hot:active{cursor:grabbing}
.hc-hot-clutch{left:20px;top:600px;width:185px;height:100px}
.hc-hot-brake{left:1195px;top:600px;width:185px;height:100px}
.hc-hot-throttle{left:1195px;top:700px;width:190px;height:90px}
.hc-hot:hover,.hc-hot.is-held{background:rgba(188,156,103,.05);box-shadow:inset 0 0 0 2px rgba(188,156,103,.35)}
.hc-window{position:absolute;top:830px;width:150px;height:140px;padding:9px 10px 8px;border:1px solid var(--ck-card-border);border-radius:10px;background:rgba(20,20,20,.93);box-shadow:0 10px 24px rgba(0,0,0,.45);pointer-events:auto;z-index:3}
.hc-shifter{left:40px}.hc-rear-brake{left:1210px}
.hc-window h3{margin:0;font-size:10px;font-weight:500;color:#cdb789;letter-spacing:.5px}
.hc-window p{margin:4px 0 0;font-size:8.5px;color:#8b847a;text-align:center;letter-spacing:.4px}
.hc-pedal-wrap{height:40px}.hc-pedal-wrap svg{display:block;width:100%;height:40px}.hc-pedal-wrap.mirror svg{transform:scaleX(-1)}
.hc-pedal-arm{transform-box:view-box;transform-origin:70px 40px;transition:transform .12s}
.hc-pedal-arm.kick-up{transform:rotate(-16deg)}.hc-pedal-arm.kick-down{transform:rotate(14deg)}
.hc-rear-brake:has(.hc-pedal.is-pressed) .hc-pedal-arm{transform:rotate(12deg)}
.hc-shift-row{display:flex;gap:6px;margin-top:4px}
.hc-shift,.hc-pedal{position:relative;flex:1;height:34px;border:1px solid #34312c;border-radius:7px;background:linear-gradient(180deg,#25262b,#17181b);color:var(--ck-ink);font:500 10px/1 'Sora','Microsoft YaHei',sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 0 #050506;touch-action:manipulation}
.hc-pedal{width:100%;margin-top:6px;touch-action:none}
.hc-shift:active,.hc-shift.is-pressed,.hc-pedal:active,.hc-pedal.is-pressed{transform:translateY(1.5px);box-shadow:inset 0 2px 3px rgba(0,0,0,.6);border-color:#6b5a3a}
.hc-strip{display:none}
/* Body lights: amber corners for disarm/arm flashes and signals, horn ripple, toast. */
.cockpit-glow{position:absolute;bottom:-14%;z-index:3;width:44%;height:50%;border-radius:50%;background:radial-gradient(closest-side,rgba(242,167,59,.6),rgba(242,167,59,.18) 55%,rgba(242,167,59,0));opacity:0;pointer-events:none;mix-blend-mode:screen}
.cockpit-glow.left{left:-14%}.cockpit-glow.right{right:-14%}
.cockpit-glow.flash1{animation:ck-flash .7s ease-out 1}.cockpit-glow.flash2{animation:ck-flash .55s ease-out 2}
.cockpit[data-signal=left] .cockpit-glow.left,.cockpit[data-signal=right] .cockpit-glow.right,.cockpit[data-signal=hazard] .cockpit-glow{animation:ck-blink 1s steps(1) infinite}
@keyframes ck-blink{0%,100%{opacity:.95}50%{opacity:0}}
@keyframes ck-flash{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
.cockpit-horn{position:absolute;left:50%;top:42%;z-index:2;width:0;height:0;pointer-events:none}
.cockpit-horn i{position:absolute;left:-60px;top:-30px;width:120px;height:60px;border-radius:50%;border:2px solid rgba(255,244,214,.7);opacity:0}
.cockpit[data-horn=on] .cockpit-horn i{animation:ck-ripple 1.2s ease-out infinite}
.cockpit[data-horn=on] .cockpit-horn i:nth-child(2){animation-delay:.4s}.cockpit[data-horn=on] .cockpit-horn i:nth-child(3){animation-delay:.8s}
@keyframes ck-ripple{0%{transform:scale(.3);opacity:.85}100%{transform:scale(3.4);opacity:0}}
.cockpit-toast{position:absolute;left:50%;top:14px;z-index:30;max-width:min(560px,calc(100% - 32px));padding:9px 16px;border:1px solid #464039;border-radius:8px;background:rgba(21,21,21,.95);color:#e7decd;font:12px/1.5 'Sora','Microsoft YaHei',sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.45);transform:translate(-50%,-8px);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.cockpit-toast.show{opacity:1;transform:translate(-50%,0)}
.cockpit-toast[data-kind=refuse]{border-color:var(--ck-amber,#f2a73b);padding-left:36px}
.cockpit-toast[data-kind=refuse]::before{content:'!';position:absolute;left:12px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:#f2a73b;color:#151515;font:700 11px/16px 'Sora',sans-serif;text-align:center}
.cockpit-toast[data-kind=warn]{border-color:#b22031;background:rgba(44,12,17,.96)}
/* Coach bubble and auto-ride subtitle. */
.cockpit-coach{position:absolute;z-index:25;max-width:270px;padding:10px 30px 10px 12px;border:1px solid var(--ck-gold);border-radius:10px;background:#151515;color:#e7decd;font:13px/1.5 'Sora','Microsoft YaHei',sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.5);pointer-events:auto}
.cockpit-coach[hidden]{display:none}
.cockpit-coach p{margin:0}
.cockpit-coach kbd{display:inline-block;margin-left:6px;padding:0 5px;border:1px solid #5a4c35;border-radius:4px;color:#e6cf9f;font:10px/16px 'Sora',sans-serif;white-space:nowrap}
.cockpit-coach-sub{margin-top:3px!important;font-size:11px;color:#9c9488}
.cockpit-coach-sub[hidden]{display:none}
.cockpit-coach-actions button{margin-top:6px;padding:0;border:0;background:none;color:#cdb789;font-size:10px;text-decoration:underline;text-underline-offset:2px}
.cockpit-coach-close{position:absolute;right:5px;top:4px;width:22px;height:22px;padding:0;border:0;background:none;color:#9a948a;font-size:16px;line-height:22px}
.cockpit-coach-close:hover{color:#fff}
.cockpit-coach-arrow{position:absolute;left:var(--arrow-x,50%);bottom:-7px;width:12px;height:12px;margin-left:-6px;background:#151515;border-right:1px solid var(--ck-gold);border-bottom:1px solid var(--ck-gold);transform:rotate(45deg)}
.cockpit-coach.below .cockpit-coach-arrow{top:-7px;bottom:auto;transform:rotate(225deg)}
.cockpit-coach.ghost{padding-right:12px;border-color:#464039;opacity:.85;pointer-events:none}
.cockpit-coach.ghost .cockpit-coach-close,.cockpit-coach.ghost .cockpit-coach-actions{display:none}
.cockpit-coach.ghost .cockpit-coach-arrow{border-color:#464039}
.hc-coach-target{animation:hc-pulse 1.4s ease-in-out infinite}
@keyframes hc-pulse{0%,100%{box-shadow:0 0 0 2px rgba(188,156,103,.95),0 0 0 0 rgba(188,156,103,.55)}50%{box-shadow:0 0 0 2px rgba(188,156,103,.95),0 0 0 10px rgba(188,156,103,0)}}
/* Instrument states that the engine drives through #device classes. */
#device::after{content:'';position:absolute;left:57px;top:58px;z-index:8;width:622px;height:514px;background:linear-gradient(199deg,rgba(255,255,255,.1) 8%,rgba(255,255,255,0) 46%),#050506;-webkit-mask:url('./assets/home_design-imgMask.svg') 0 0/622px 514px no-repeat;mask:url('./assets/home_design-imgMask.svg') 0 0/622px 514px no-repeat;opacity:0;pointer-events:none;transition:opacity .25s}
.ride-mode #device.is-off::after{opacity:1}
.ride-mode #device.is-off #screen,.ride-mode #device.is-off #overlay-layer{visibility:hidden}
.hc-boot{position:absolute;left:57px;top:58px;z-index:7;width:622px;height:514px;-webkit-mask:url('./assets/home_design-imgMask.svg') 0 0/622px 514px no-repeat;mask:url('./assets/home_design-imgMask.svg') 0 0/622px 514px no-repeat;opacity:0;pointer-events:none}
.hc-boot svg{display:block}
.prototype-mode .hc-boot{display:none}
.ride-mode #device.in-neutral .gear-group>span,.ride-mode #device.in-neutral .nv-gear>span{color:#61c36b}
.hc-screen-toast{position:absolute;left:218px;top:96px;z-index:9;width:300px;height:40px;display:flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid #b79867;border-radius:8px;background:rgba(16,16,16,.85);color:#fee7b5;font:18px/1 'Sora',sans-serif;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;pointer-events:none;transition:opacity .2s}
.hc-screen-toast.show{opacity:1}
html[data-overlay]:not([data-overlay=""]) .hc-screen-toast{display:none}
/* The settings note is non-modal so the handlebar stays usable while it is open. */
.settings-dialog[open]{position:fixed;left:50%;top:50%;z-index:60;margin:0;transform:translate(-50%,-50%);box-shadow:0 20px 60px rgba(0,0,0,.65)}
/* Side panel in the rider view: legend first, legacy controls hidden, assistive pedals folded. */
div.legacy-controls{display:contents}
.cockpit-view .legacy-controls{display:none}
.cockpit-view .controls{display:flex;flex-direction:column}
.ride-mode.cockpit-view #ride-panel{display:contents}
.cockpit-view .controls>*,.cockpit-view .ride-panel>*{order:20}
.cockpit-view .ride-panel-heading,.cockpit-view .ride-field,.cockpit-view #ride-description{order:1}
.cockpit-view .ride-start-row{order:2}
.cockpit-view .ride-options{order:3}
.cockpit-view .ride-state-line,.cockpit-view #ride-coach-line,.cockpit-view #ride-chips,.cockpit-view #active-call{order:4}
.cockpit-view #harley-legend{order:5}
.cockpit-view .notify-section{order:6}
.cockpit-view .ride-route,.cockpit-view .ride-map-controls,.cockpit-view .ride-map-hint{order:7}
.cockpit-view .telemetry-grid{order:8}
.cockpit-view #ride-assist-controls{order:9}
.cockpit-view .ride-osm{order:10}
.cockpit-view #live-status{order:11}
.cockpit-view .notify-section{margin-top:4px}
.cockpit-view .ride-osm{padding-top:12px;border-top:1px solid #38332c}
.ride-coach-line{margin:8px 0 0;font-size:10px;line-height:1.6;color:#cdb789}
.ride-coach-line[hidden]{display:none}
.ride-chips{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0}
.ride-chips span{padding:2px 7px;border:1px solid #3b362f;border-radius:10px;background:#1d1c1a;color:#b9b2a6;font-size:9px;line-height:14px}
.ride-chips span.on{border-color:#6b5a3a;color:#fee7b5}.ride-chips span.warn{border-color:#7a2a33;color:#f09aa5}.ride-chips span.blue{border-color:#2c4f8f;color:#9dbbff}
.ride-assist-controls{margin-top:14px;padding-top:10px;border-top:1px solid #34302b}
.ride-assist-controls>summary{cursor:pointer;font-size:10px;color:#9c8b70;letter-spacing:.4px;margin-bottom:8px}
.ride-options{flex-wrap:wrap}
.harley-legend{margin:14px 0 18px;border:1px solid #38332c;border-radius:8px;background:#161513;color:#b0aaa0;font-size:10px}
.harley-legend summary{display:flex;flex-direction:column;gap:3px;padding:10px 12px;cursor:pointer;list-style:none}
.harley-legend summary::-webkit-details-marker{display:none}
.harley-legend summary span{font-size:12px;color:#fee7b5}
.harley-legend summary span::after{content:'▾';float:right;color:#8b847a}
.harley-legend:not([open]) summary span::after{content:'▸'}
.harley-legend summary small{font-size:9px;color:#8b847a}
.hc-legend-body{padding:0 12px 12px}
.hc-legend-body h3{margin:10px 0 4px;font-size:9px;font-weight:400;color:#9c8b70;letter-spacing:.6px}
.hc-legend-body ul{margin:0;padding:0;list-style:none}
.hc-legend-body li{display:grid;grid-template-columns:86px 1fr auto;gap:6px;align-items:baseline;padding:4px 0;border-bottom:1px solid #26231f}
.hc-legend-name{color:#e7decd}.hc-legend-name sup{color:#bc9c67}
.hc-legend-zh{color:#8f887d;line-height:1.5}
.hc-legend-body kbd{padding:0 4px;border:1px solid #4b4031;border-radius:4px;color:#e6cf9f;white-space:nowrap}
.hc-legend-body kbd.none{border-color:#2c2925;color:#5d574f}
.hc-legend-note{margin:10px 0 6px;color:#7e7972;font-size:9px;line-height:1.6}
.hc-legend-links{display:flex;gap:14px}
.hc-legend-links button{padding:0;border:0;background:none;color:#cdb789;font-size:10px;text-decoration:underline;text-underline-offset:2px}
.view-label{font-size:11px;color:#aaa}
.view-label select{background:#252525;color:#e9e3d8;border:1px solid #464039;border-radius:5px;padding:6px;font:11px 'Sora',sans-serif}
/* Compact layouts: cubes become zoomed cards, levers move into a sticky strip. */
.cockpit[data-layout=row],.cockpit[data-layout=column]{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.cockpit:not([data-layout=wide]) .cockpit-rig{position:relative;left:auto;bottom:auto;width:100%;max-width:100%;height:auto;min-height:100%;transform:none;display:grid;justify-content:center;align-content:start;align-items:center;gap:12px 8px;padding:34px 16px 0}
.cockpit[data-layout=row] .cockpit-rig{grid-template-columns:auto auto auto;grid-template-areas:"left pod right" "strip strip strip"}
.cockpit[data-layout=column] .cockpit-rig{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"pod pod" "left right" "strip strip"}
.cockpit:not([data-layout=wide]) .cockpit-art,.cockpit:not([data-layout=wide]) .hc-hot,.cockpit:not([data-layout=wide]) .hc-window{display:none}
.cockpit:not([data-layout=wide]) .cockpit-band{display:block;top:calc(34px + var(--pod-size) * .5);bottom:auto;height:calc(var(--pod-size) * .62)}
.cockpit-band svg{display:block;width:100%;height:100%}
.cockpit:not([data-layout=wide]) .cockpit-pod{position:relative;left:auto;top:auto;grid-area:pod;justify-self:center;width:var(--pod-size);height:var(--pod-size);max-width:100%}
.cockpit:not([data-layout=wide]) .cockpit-pod-cup{left:-3%;top:-2%;width:106%;height:106%}
/* Compact widths follow cockpitLayout() exactly: card chrome lives inside 190px × --cube-scale, the cube uses --cube-inner. */
.cockpit:not([data-layout=wide]) .hc-card{position:relative;left:auto;top:auto;width:calc(190px * var(--cube-scale));height:auto;max-width:100%;padding:5px;border:1px solid var(--ck-card-border);border-radius:10px;background:var(--ck-card);justify-self:center;box-shadow:0 10px 24px rgba(0,0,0,.4)}
.cockpit:not([data-layout=wide]) .hc-card-left{grid-area:left}.cockpit:not([data-layout=wide]) .hc-card-right{grid-area:right}
.cockpit:not([data-layout=wide]) .hc-card h3{display:block;margin:1px 2px 6px;font-size:10px;font-weight:500;color:#cdb789;letter-spacing:.5px;white-space:nowrap}.cockpit:not([data-layout=wide]) .hc-cube-frame{width:calc(190px * var(--cube-inner));height:calc(340px * var(--cube-inner))}.cockpit:not([data-layout=wide]) .hc-cube{transform:scale(var(--cube-inner))}
.cockpit:not([data-layout=wide]) .hc-strip{grid-area:strip;position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:1.2fr .8fr .8fr 1fr 1.4fr;gap:6px;width:100%;max-width:100%;height:72px;margin-top:4px;padding:10px 0;background:#151515;border-top:1px solid #333;box-shadow:0 -10px 20px rgba(0,0,0,.35);pointer-events:auto}
.hc-cell{position:relative;min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:0;padding:4px 2px;border:1px solid #3a3530;border-radius:8px;background:linear-gradient(180deg,#25262b,#17181b);color:var(--ck-ink);font:10px/1.2 'Sora','Microsoft YaHei',sans-serif;text-align:center;touch-action:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.hc-cell svg{width:26px;height:20px}.hc-cell .flip{display:contents}.hc-cell .flip svg{transform:scaleX(-1)}
.hc-cell b{font-size:16px;line-height:1}.hc-cell span{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
.hc-cell:active,.hc-cell.is-pressed,.hc-cell.is-held{transform:translateY(1px);border-color:var(--ck-gold);background:#2b2620}
/* Latched clutch (one quick tap, for a single mouse or finger): the lever stays pulled until the next tap or the throttle. */
.hc-latch-tag{display:none;position:absolute;left:50%;bottom:4px;transform:translateX(-50%);padding:0 6px;border:1px solid var(--ck-gold);border-radius:8px;background:rgba(20,18,14,.94);color:#fee7b5;font:600 9px/14px 'Sora','Microsoft YaHei',sans-serif;white-space:nowrap;pointer-events:none}
.is-latched>.hc-latch-tag{display:block}
.hc-hot .hc-latch-tag{bottom:12px;padding:1px 9px;font-size:13px;line-height:19px}
.hc-hot-clutch.is-latched{background:rgba(188,156,103,.08);box-shadow:inset 0 0 0 2px rgba(188,156,103,.65)}
.hc-cell.is-latched{border-color:var(--ck-gold)}
/* Decorative housing layers never take a hit, so the enlarged hit boxes below can reach into them. */
.hc-cube-bar,.hc-cube-shell,.hc-cube-clamp{pointer-events:none}
/* Compact layouts: each key gets a transparent hit box of at least 40 CSS px. The boxes sit at z-index -1
   inside the cube, so a drawn key always wins and a box only fills the free space around its own key. */
.cockpit:not([data-layout=wide]) .hc-cube{--hit:calc(40px / var(--cube-inner,1))}
.cockpit:not([data-layout=wide]) .hc-btn::before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:max(100%,var(--hit));height:max(100%,var(--hit));transform:translate(-50%,-50%)}
/* Pad petals, the turn switch and the horn grow outward, away from the keys they border. */
.cockpit:not([data-layout=wide]) .hc-petal.up::before{top:auto;bottom:0;transform:translateX(-50%)}
.cockpit:not([data-layout=wide]) .hc-petal.down::before,.cockpit:not([data-layout=wide]) .hc-turn::before,.cockpit:not([data-layout=wide]) .hc-horn::before{top:0;transform:translateX(-50%)}
.cockpit:not([data-layout=wide]) .hc-petal.left::before{left:auto;right:0;transform:translateY(-50%)}
.cockpit:not([data-layout=wide]) .hc-petal.right::before{left:0;transform:translateY(-50%)}
/* OFF/RUN: a round hit area well outside the thin drawn annulus. START, MODE and Hazard stay on top of it. */
.cockpit:not([data-layout=wide]) .hc-ring::before{left:-24px;top:-24px;width:calc(100% + 48px);height:calc(100% + 48px);border-radius:50%;transform:none}
.cockpit:not([data-layout=wide]) .hc-mode,.cockpit:not([data-layout=wide]) .hc-hazard{z-index:1}
/* Headlamp: the two halves are too thin for a finger, so one key covers the rocker: tap toggles high / low, hold flashes. */
.hc-beam-touch{display:none}
.cockpit:not([data-layout=wide]) .hc-beam-touch{display:block;left:0;top:0;width:100%;height:100%;z-index:1;border-radius:16px;background:transparent;box-shadow:none}
.cockpit:not([data-layout=wide]) .hc-half{pointer-events:none}
@media(max-width:650px){
 .ride-mode.cockpit-view .stage,.ride-mode.panel-hidden.cockpit-view .stage,.cockpit-view .stage{display:block;height:auto;padding:0;overflow:visible}
 .cockpit-view .cockpit{position:relative;inset:auto;width:100%;overflow:clip visible;min-height:0}
 .cockpit-view .cockpit-toast{position:fixed;top:64px}
 .harley-legend{grid-column:1/-1}
}
/* Sticky touch hover would lift a key's hit box above its neighbours' faces. */
@media(hover:none){.hc-btn:hover{filter:none}}
@media(prefers-reduced-motion:reduce){
 .cockpit .ck-mirror,.hc-coach-target{animation:none!important}
 .cockpit[data-horn=on] .cockpit-horn i{animation:none;opacity:.6;transform:scale(1.6)}
 .cockpit[data-signal] .cockpit-glow{animation-duration:2s}
 .cockpit-toast,.hc-ring,.hc-turn-knob,.hc-pedal-arm{transition:none}
}
