:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#242b32;background:#f4f6f8;font-synthesis:none;letter-spacing:0;color-scheme:light}
.filing{text-align:center;padding-top:8px;font-size:11px;line-height:1.5;color:#89929a}.filing a{color:inherit;text-decoration:none}.filing a:hover{text-decoration:underline}.cloud-login{color:#386d92}.joystick[aria-disabled=true]{opacity:.45;cursor:not-allowed}footer b{font-weight:400;font-variant-numeric:tabular-nums}
*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}button:focus-visible,input:focus-visible{outline:3px solid #287bc1;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}main{max-width:620px;margin:0 auto;padding:24px 24px max(20px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;padding-bottom:26px;gap:12px}.identity{display:flex;gap:12px;align-items:center}.mark{background:#f2cc46;width:44px;height:44px;display:grid;place-items:center;font-weight:850;font-size:25px;border-radius:6px;border:1px solid #ddba38}h1{font-size:23px;margin:0;font-weight:800;line-height:1.25}h2{font-size:17px;margin:0;font-weight:700}h3{font-size:14px;margin:0 0 14px}.sub{color:#717b84;font-size:12px}.header-tools{display:flex;align-items:center;gap:12px}.icon-btn{display:grid;place-items:center;width:40px;height:40px;background:transparent;border:1px solid #d9dfe5;border-radius:6px;color:#58646d}.connection{display:flex;gap:6px;align-items:center;font-size:12px;white-space:nowrap;color:#747d86}.connection i{width:7px;height:7px;border-radius:50%;background:#a6afb7}.connection.online{color:#247749}.connection.online i{background:#32a467}.connection.offline{color:#ad4141}.connection.offline i{background:#cf5656}.telemetry{padding:0 0 24px;border-bottom:1px solid #dce2e7}.battery-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px}.battery-heading svg{color:#3a9164}small{color:#7a838c;font-size:11px;margin-left:7px}.battery-reading{display:flex;align-items:baseline;gap:7px;margin:10px 0 14px}.battery-reading strong{font-size:52px;line-height:1.08;font-weight:750;font-variant-numeric:tabular-nums}.battery-reading>span{font-size:22px;color:#747d86}.battery-secondary{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;font-size:12px;gap:4px;color:#7c858d}.battery-secondary b{font-size:19px;color:#343c43;font-weight:600;font-variant-numeric:tabular-nums}progress{display:block;width:100%;height:7px;border:0;border-radius:3px;overflow:hidden;background:#dde5e4;accent-color:#37956a}progress::-webkit-progress-bar{background:#dde5e4}progress::-webkit-progress-value{background:#37956a}progress.low::-webkit-progress-value{background:#d35648}.battery-footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#7a838b;margin-top:10px}.battery-footer>span{overflow-wrap:anywhere}.drive-section{padding-top:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.arm-btn{display:flex;align-items:center;gap:7px;padding:8px 12px;background:#e9edf1;color:#414b54;border:1px solid #d9dfe5;border-radius:6px;font-size:13px;min-height:38px}.arm-btn svg{width:17px;height:17px}.arm-btn.armed{color:#237748;border-color:#9cc9ae;background:#e6f3eb}.drive-info{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#78818b;margin-top:13px;min-height:20px}#drive-status{font-weight:650;color:#4a535c}.drive-body{display:flex;align-items:center;justify-content:space-evenly;gap:22px;padding:27px 0 29px}.dpad{width:220px;height:220px;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:7px;flex-shrink:0;touch-action:none;user-select:none;-webkit-user-select:none}.direction{border:1px solid #d3dbe1;background:#fff;color:#3f4c57;border-radius:7px;display:grid;place-items:center;touch-action:none;-webkit-touch-callout:none}.direction svg{width:27px;height:27px;pointer-events:none}.direction.active{background:#f2cc46;border-color:#c7a322;color:#282923}.direction.center{background:#e8edf1;color:#63717c}.direction.center svg{width:19px;height:19px;fill:currentColor}.up{grid-area:1/2}.left{grid-area:2/1}.center{grid-area:2/2}.right{grid-area:2/3}.down{grid-area:3/2}.track-output{width:148px;flex-shrink:0}.track-pair{display:flex;align-items:center;justify-content:center;gap:9px;height:136px}.track{height:132px;width:31px;border:3px solid #454e55;border-radius:7px;background:#606971;display:flex;flex-direction:column;justify-content:space-around;overflow:hidden}.track i{height:4px;background:#b3bac0;margin:0 2px}.chassis{width:61px;height:105px;border:2px solid #c1a531;border-radius:5px;background:#f0cd4d;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px}.chassis span{font-size:24px;font-weight:800;color:#67591f}.chassis i{width:23px;height:6px;border:1px solid #a78e25;border-radius:2px}.track-values{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#7b848b;margin-top:15px}.track-values b{display:block;font-size:15px;color:#4d5861;margin-top:5px;font-variant-numeric:tabular-nums}.speed-row{display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px}output{font-weight:700;font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin:0;accent-color:#4a718e;min-height:32px;touch-action:pan-x}.speed-scale{display:flex;justify-content:space-between;color:#8a939b;font-size:11px;margin-top:3px}.emergency{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:#c9403d;color:#fff;border:1px solid #ba3230;border-radius:7px;min-height:55px;font-size:15px;font-weight:700;margin-top:24px}.emergency:active{background:#a9302d}footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#89929a;padding-top:19px}footer span{overflow-wrap:anywhere}.message,.preview{font-size:12px;padding:11px 13px;border-left:3px solid #ccaa32;background:#fff6d8;color:#69551e;border-radius:3px;overflow-wrap:anywhere}.message{margin:16px 0 0}.preview{margin:0 0 18px}[hidden]{display:none!important}dialog{width:calc(100% - 32px);max-width:410px;border:1px solid #d4dce3;border-radius:8px;padding:24px;color:#303a43;background:#fafbfd;max-height:calc(100dvh - 40px);overflow-y:auto}dialog::backdrop{background:#25333f75}dialog h2{margin-bottom:22px}dialog label{font-size:12px;display:block;margin:12px 0 6px}dialog input:not([type=checkbox]){display:block;width:100%;height:42px;padding:8px 10px;border:1px solid #cdd6dd;border-radius:5px;background:#fff;min-width:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:21px}.primary,.secondary{min-height:40px;padding:9px 15px;border-radius:5px;border:1px solid #d4dce2;font-size:13px}.primary{background:#386d92;border-color:#386d92;color:white}.secondary{background:#edf1f4;color:#43515d}.full{width:100%;margin-top:16px}.form-error{font-size:12px;color:#b13c38;min-height:16px;overflow-wrap:anywhere}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between}.dialog-heading .icon-btn{width:30px;height:30px;border:0}.dialog-heading h2{margin-top:5px}.address-list{display:grid;grid-template-columns:1fr;gap:5px;margin:17px 0 0;font-size:11px;color:#77838c}.address-list b{font-size:12px;color:#465663;overflow-wrap:anywhere}.address-list b+span{margin-top:9px}#motor-form{margin-top:22px;padding-top:20px;border-top:1px solid #dce3e8}.check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px}.check-row input{width:17px;height:17px;accent-color:#386d92}.settings-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:23px;font-size:11px;color:#84909a}.text-btn{background:none;border:0;color:#536f85;font-size:12px;padding:6px 0}
@media(max-width:400px){main{padding:18px 16px max(16px,env(safe-area-inset-bottom))}.header-tools{gap:7px}.drive-body{gap:12px;justify-content:space-between}.dpad{width:204px;height:204px;gap:6px}.track-output{width:100px}.track-pair{gap:5px}.track{width:24px;height:114px}.chassis{width:45px;height:90px}.track-values{font-size:10px}header{padding-bottom:22px}.battery-reading strong{font-size:48px}.mark{width:40px;height:40px}.connection{font-size:11px}}
@media(max-width:340px){.drive-body{gap:8px}.dpad{width:180px;height:180px}.track-output{width:85px}.track{width:21px}.chassis{width:37px}.header-tools{gap:4px}.connection{font-size:10px}.identity{gap:8px}h1{font-size:21px}}
@media(prefers-reduced-motion:no-preference){.track.moving i{animation:tread .25s linear infinite}@keyframes tread{to{transform:translateY(10px)}}}
.bench-warning{font-size:13px;line-height:1.6;color:#92532a}#bench-dialog .check-row{align-items:flex-start;line-height:1.6}#bench-dialog .check-row span{flex:1;min-width:0}#bench-dialog .check-row input{flex-shrink:0;margin-top:3px}#bench-time{font-variant-numeric:tabular-nums}.drive-info>span{overflow-wrap:anywhere}
.bench-mode main,.unmonitored-mode main{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}.bench-mode .emergency,.unmonitored-mode .emergency{position:fixed;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));width:min(572px,calc(100% - 32px));margin-top:0;z-index:4}
.lock-free-mode .section-heading{min-height:38px}
.wifi-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.wifi-heading h3{margin:0}.wifi-heading .icon-btn{width:32px;height:32px}.wifi-heading svg{width:17px;height:17px}.wifi-state{font-size:12px;line-height:1.5;color:#68757f;overflow-wrap:anywhere;margin:10px 0}.wifi-manual-row{margin-top:12px!important}#wifi-local-only{color:#92532a}#wifi-form select{display:block;width:100%;min-width:0;min-height:42px;border:1px solid #cdd6dd;border-radius:5px;background:#fff;color:#303a43;padding:8px 10px;font:inherit;font-size:13px;text-overflow:ellipsis}#wifi-form input:disabled,#wifi-form select:disabled{color:#7a838c;background:#edf1f4}#wifi-connect-state{min-height:18px;margin-bottom:0}
.console-body{min-width:0}
.joystick{position:relative;width:240px;height:240px;flex-shrink:0;border:1px solid #d3dbe0;border-radius:50%;background:#edf1f3;box-shadow:inset 0 2px 6px #58636c0a;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;isolation:isolate}
.joystick-deck{position:absolute;left:12%;top:65%;width:76%;height:24%;border:1px solid #89949b;border-radius:50%;background:linear-gradient(#c0c8ce,#79858f);box-shadow:0 7px 5px #24313b19;pointer-events:none}
.joystick-deck::before{content:"";position:absolute;inset:0 0 16%;border:1px solid #e9eef1;border-radius:50%;background:linear-gradient(#f9fbfc,#cbd3d9)}
.joystick-deck i{position:absolute;top:28%;left:12%;width:7px;height:4px;border-radius:50%;border:1px solid #8c989f;background:#bec8ce;z-index:1}
.joystick-deck i+i{left:auto;right:12%}
.joystick-boot{position:absolute;left:50%;top:78%;width:34%;height:17%;transform:translate(-50%,-50%);border:2px solid #39434c;border-radius:50%;background:repeating-radial-gradient(ellipse at center,#424e58 0 4px,#6b7781 5px 7px,#3d4750 8px 10px);box-shadow:0 3px 0 #65727c,0 5px 2px #35414d22;pointer-events:none}
.joystick-shaft{position:absolute;left:50%;bottom:22%;width:8%;height:var(--shaft-length,28%);transform:translateX(-50%) rotate(var(--shaft-angle,0rad));transform-origin:50% 100%;border:1px solid #687780;border-radius:5px;background:linear-gradient(90deg,#77858f 0,#d2dbe1 25%,#f7fafb 45%,#a6b4be 70%,#667780 100%);box-shadow:3px 0 2px #1d2b3520;pointer-events:none}
.joystick.active{border-color:#b89b2d;cursor:grabbing}
.joystick[aria-disabled=true]{opacity:.45;cursor:default}
.joystick>svg{position:absolute;width:18px;height:18px;color:#89959e;pointer-events:none;z-index:2}
.stick-up{left:calc(50% - 9px);top:8px}.stick-down{left:calc(50% - 9px);bottom:8px}.stick-left{top:calc(50% - 9px);left:8px}.stick-right{top:calc(50% - 9px);right:8px}
.joystick-thumb{position:absolute;left:50%;top:50%;width:64px;height:64px;border:1px solid #a76d13;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff2bd 0,#ffda62 24%,#edb12c 57%,#bd7e13 86%,#935d10 100%);box-shadow:inset -3px -5px 5px #9c641035,inset 2px 2px 2px #ffedb5,0 5px 7px #39465135;transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px)));z-index:3;pointer-events:none}
.joystick-thumb i{position:absolute;left:13%;right:13%;top:52%;height:27%;border-bottom:1px solid #ad741b80;border-radius:50%;transform:rotate(-12deg)}
.joystick-mode .drive-body{padding-top:18px;padding-bottom:18px}
.joystick-mode main{padding-bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:400px){.joystick{width:216px;height:216px}.joystick-thumb{width:58px;height:58px}}
@media(max-width:340px){.joystick{width:180px;height:180px}.joystick-thumb{width:52px;height:52px}}
@media(min-width:560px) and (orientation:landscape){
  .joystick-mode main{width:100%;max-width:1280px;height:100dvh;min-height:320px;padding:16px 24px 10px;display:flex;flex-direction:column;gap:10px}
  .joystick-mode header{padding:0;flex-shrink:0}
  .joystick-mode .preview{margin:0;padding:8px 11px;line-height:1.4;flex-shrink:0}
  .joystick-mode #bench-banner{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
  .joystick-mode #bench-banner br{display:none}
  .joystick-mode .console-body{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;flex:1;min-height:0}
  .joystick-mode .telemetry{padding:16px 22px 0 0;border-bottom:0;border-right:1px solid #dce2e7;min-width:0}
  .joystick-mode .battery-reading{flex-wrap:wrap;gap:4px;margin:10px 0}
  .joystick-mode .battery-reading strong{font-size:44px}
  .joystick-mode .battery-secondary{flex-basis:100%;margin:0;align-items:flex-start;flex-direction:row;justify-content:space-between;gap:4px}
  .joystick-mode .battery-secondary b{font-size:16px}
  .joystick-mode .battery-footer{flex-direction:column;gap:6px}
  .joystick-mode .drive-section{position:relative;padding:0;display:flex;flex-direction:column;min-height:0;min-width:0}
  .joystick-mode .section-heading{min-height:25px;flex-shrink:0;padding-right:160px}
  .joystick-mode .drive-info{position:absolute;top:4px;right:0;margin:0;min-height:18px;gap:16px}
  .joystick-mode .drive-body{padding:4px 0;gap:22px;flex:1;min-height:0;container-type:size}
  .joystick-mode .joystick{width:min(300px,calc(100dvh - 220px));height:auto;aspect-ratio:1}
  .joystick-mode .emergency{position:static;transform:none;width:100%;min-height:42px;flex-shrink:0;margin:8px 0 0;z-index:auto}
  .joystick-mode footer{padding:0;flex-shrink:0;min-height:16px}
  .joystick-mode .message{margin:0;flex-shrink:0}
  @supports(width:1cqh){.joystick-mode .joystick{width:min(300px,100cqh,calc(100cqw - 180px))}}
}
@media(min-width:560px) and (orientation:landscape) and (max-height:450px){
  .joystick-mode main{padding:10px 16px 8px;gap:7px}
  .joystick-mode header .mark{width:34px;height:34px;font-size:22px}
  .joystick-mode header h1{font-size:20px}
  .joystick-mode header .sub{font-size:10px}
  .joystick-mode .icon-btn{width:34px;height:34px}
  .joystick-mode .console-body{grid-template-columns:155px minmax(0,1fr);gap:18px}
  .joystick-mode .telemetry{padding-top:7px;padding-right:14px}
  .joystick-mode .battery-reading strong{font-size:36px}
  .joystick-mode .battery-heading{font-size:12px}
  .joystick-mode .battery-heading small{font-size:10px;margin-left:3px}
  .joystick-mode .battery-secondary{font-size:10px}
  .joystick-mode .battery-secondary b{font-size:14px}
  .joystick-mode .track-output{width:136px}
  .joystick-mode .track-pair{height:80px;gap:5px}
  .joystick-mode .track{height:76px;width:24px}
  .joystick-mode .chassis{width:45px;height:65px}
  .joystick-mode .track-values{margin-top:4px;font-size:10px;gap:4px}
  .joystick-mode .track-values b{display:inline;font-size:11px;margin:0 0 0 3px}
  .joystick-mode .joystick-thumb{width:50px;height:50px}
  .joystick-mode .joystick{width:min(190px,calc(100dvh - 170px))}
  @supports(width:1cqh){.joystick-mode .joystick{width:min(230px,100cqh,calc(100cqw - 170px))}}
}
