:root{color-scheme:dark;font-family:Inter,'Segoe UI','Malgun Gothic',sans-serif;color:#e8f1ed;background:#101a20;--mint:#a4e6ce;--screen-width:520px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #40505a;background:#24333b;border-radius:7px;padding:8px 12px;transition:background .16s,border-color .16s,transform .1s}button:hover:not(:disabled){background:#344b54;border-color:#8aa2a5}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--mint);outline-offset:3px}.primary{background:var(--mint);color:#16382e;font-weight:700;border-color:var(--mint)}.primary:hover:not(:disabled){background:#c0f6e1;color:#12342a}.app{height:100dvh;min-height:760px;display:flex;flex-direction:column}.header{height:60px;flex:none;display:flex;align-items:center;gap:22px;padding:0 30px;background:#101b22;border-bottom:1px solid #304047}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#eff5f1;font-weight:800;font-size:14px;letter-spacing:.08em;line-height:1.2}.brand-mark{font-size:32px;color:#a6dac6;line-height:1}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:.23em;color:#7d9a9f;font-weight:600;margin-top:5px}.connection{display:flex;align-items:center;gap:9px;background:#1b2b32;font-size:11px}.connection>span:first-child{width:6px;height:6px;background:#7e929b;border-radius:50%}.connection.connected>span:first-child{background:#8edead;box-shadow:0 0 8px #8edead55}.small-arrow{color:#8eb6ac}.icon-btn{width:32px;height:32px;display:grid;place-items:center;padding:0;background:transparent;color:#bdccc9}.flightbar{min-height:52px;padding:8px 30px;display:flex;align-items:center;gap:8px;flex:none;background:#17262e;border-bottom:1px solid #34434a;font-size:11px}.flightbar button{padding:7px 11px;font-size:11px}.toolbar-divider{height:18px;width:1px;background:#3b4b51;margin:0 5px}.los-area{display:flex;flex-direction:column;flex:1;min-height:220px}.los-viewport{position:relative;min-height:0;flex:1;background:#99b8c6;overflow:hidden}canvas{display:block;width:100%;height:100%}.loading{position:absolute;inset:0;background:#162930;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;font-size:14px}.loading span{font-size:11px;color:#9cb5b6}.loading-spinner{width:30px;height:30px;border:2px solid #42625f;border-top-color:#a4e6ce;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pause-cover{position:absolute;inset:0;background:#08182099;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}.pause-cover>span{font-size:32px;font-weight:300;color:#c2e9db}.pause-cover b{font-size:15px}.pause-cover button{font-size:12px}[hidden]{display:none!important}.dock{flex:none;display:grid;place-items:center;padding:13px 20px 9px;background:radial-gradient(ellipse at 50% 0,#354950,#15232a 70%);box-shadow:0 -8px 35px #05232a33;border-top:1px solid #5b777b}.controller{display:grid;grid-template-columns:145px var(--screen-width) 145px;gap:18px;padding:15px 18px 8px;border-radius:37px 37px 42px 42px;background:linear-gradient(145deg,#39464b,#263239 48%,#1e2a30);border:1px solid #65767a;box-shadow:inset 0 2px 2px #e1f4e519,0 12px 30px #071116aa}.wing{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:2px 0 8px}.dial-wrap{display:flex;flex-direction:column;align-items:center;min-height:89px;flex:none}.gimbal-knob{width:50px;height:50px;border-radius:50%;position:relative;cursor:ns-resize;touch-action:none;background:radial-gradient(circle,#24353b 0 35%,transparent 37%),repeating-conic-gradient(#8a999e 0deg 4deg,#41535a 4deg 14deg);border:3px solid #142026;box-shadow:0 3px 8px #091619,inset 0 0 5px #1a2225}.gimbal-knob i{position:absolute;left:21px;top:3px;width:3px;height:12px;background:#bae4d5;border-radius:2px;transform-origin:1px 19px;transform:rotate(0)}.dial-wrap label{font-size:11px;line-height:18px;letter-spacing:.06em;margin-top:5px;color:#c3d1d2;white-space:nowrap}.dial-wrap output{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0;color:#c7ede0;margin-left:4px}.virtual-stick{width:91px;height:91px;background:radial-gradient(circle,#213038 0 48%,#596a71 49% 50%,#15232b 51% 67%,#2a3b43 68%);border:2px solid #111e25;border-radius:50%;position:relative;box-shadow:inset 0 5px 9px #03151b99,0 1px 0 #6d858666;touch-action:none;cursor:grab}.virtual-stick:active{cursor:grabbing}.stick-cross{position:absolute;inset:12px;background:linear-gradient(transparent 49%,#718b9344 49% 51%,transparent 51%),linear-gradient(90deg,transparent 49%,#718b9344 49% 51%,transparent 51%);border-radius:50%}.thumb{position:absolute;left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px;border:4px solid #667a81;border-radius:50%;background:radial-gradient(circle at 36% 30%,#40565d,#1c3037);box-shadow:0 4px 4px #09181b;pointer-events:none}.wing-buttons{display:flex;gap:22px;padding-bottom:20px}.wing-buttons button{background:radial-gradient(circle at 35% 20%,#50646a,#203039 72%);border:2px solid #15252c;border-radius:50%;width:34px;height:34px;box-shadow:0 3px 6px #08181d;padding:0;font-size:11px;color:#e4f0ea;position:relative}.wing-buttons small{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);width:max-content;font-size:11px;line-height:14px;white-space:nowrap;color:#bdd0d1;pointer-events:none}.screen-column{min-width:0}.bezel{background:#081217;padding:7px;border-radius:10px;box-shadow:0 1px 1px #a1b8b544,inset 0 0 0 1px #091015}.display{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:3px;background:#111c20;color:white;text-shadow:0 1px 3px #04181e}.screen-top{position:absolute;top:10px;left:12px;right:12px;display:flex;align-items:center;gap:8px;font-size:9px}.screen-mode{font-weight:700;font-size:10px;background:#17403baa;border-radius:3px;padding:3px 6px}.screen-top b{font-weight:500}.screen-spacer{flex:1}.screen-dots{font-size:5px;color:#b4eac9;letter-spacing:2px}.screen-bottom{position:absolute;bottom:12px;left:13px;right:13px;display:flex;justify-content:space-between;align-items:end;gap:12px}.screen-bottom>div>small{display:block;font-size:8px;color:#d7e7e4;margin-bottom:4px}.screen-bottom b{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.screen-bottom em{font-size:9px;font-style:normal;font-weight:400;margin-left:3px;color:#c9dbd8}.heading{display:flex;flex-direction:column;align-items:center;border:1px solid #c7e5e566;border-radius:50%;height:45px;width:45px;justify-content:center;background:#18343666}.heading span{font-size:18px;line-height:22px;display:block}.heading small{font-size:7px!important;margin:0!important}.camera-center{position:absolute;top:50%;left:50%;width:13px;height:13px;border:1px solid #f3fff855;transform:translate(-50%,-50%)}.camera-center i{position:absolute;top:5px;left:5px;width:1px;height:1px;background:white}.statusbar{flex:none;height:28px;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:0 30px;font-size:9px;color:#7e9da5;background:#12212a;border-top:1px solid #2c424a}#fps{font-variant-numeric:tabular-nums}.toast{position:fixed;bottom:38px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#172c32ed;border:1px solid #769e94;border-radius:10px;padding:13px 22px;font-size:12px;box-shadow:0 9px 35px #07171980;transition:.2s;z-index:40;max-width:calc(100vw - 40px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{border-color:#dd9b72;color:#ffe2c4}dialog{width:min(650px,calc(100vw - 28px));max-height:90dvh;padding:0;border:1px solid #577079;border-radius:18px;background:#172831;color:#e5eeea;box-shadow:0 25px 100px #051017bb}dialog::backdrop{background:#030f17a6;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 26px 18px;border-bottom:1px solid #354952}.dialog-heading small{font-size:9px;letter-spacing:.16em;color:#89b8ae}.dialog-heading h1{font-size:23px;letter-spacing:-.05em;margin:7px 0 0;font-weight:600}.close-btn{border:0;background:transparent;font-size:25px;padding:0 8px;color:#9bb4ba}.dialog-scroll{padding:20px 26px 26px;overflow:auto;max-height:calc(90dvh - 90px)}.setup-notice{padding:13px 15px;border:1px solid #415c65;background:#20373f;font-size:11px;line-height:1.7;border-radius:8px;margin-bottom:17px;color:#bad1cf}.full-label{display:block;font-size:10px;color:#97b2b8}.full-label select{width:100%;margin-top:6px}select{background:#10232c;border:1px solid #4a6570;color:#d4e4df;padding:8px;border-radius:6px;font-size:11px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;margin:23px 0 12px}.section-label span{font-size:9px;color:#819ca5;font-weight:400}.axis-row{display:grid;grid-template-columns:85px 88px 60px 1fr;gap:12px;align-items:center;padding:7px 0;font-size:11px}.axis-row>label{display:flex;gap:5px;align-items:center;color:#9db4b9;font-size:10px}.axis-meter{position:relative;height:6px;border-radius:5px;background:#0c1c26}.axis-meter:after{content:'';position:absolute;left:50%;top:-2px;height:10px;width:1px;background:#627f89}.axis-meter i{position:absolute;left:50%;top:-2px;width:4px;height:10px;border-radius:3px;background:#a4e6ce}.axis-meter small{position:absolute;right:0;top:9px;font-size:8px;color:#8fafb8}.calibration{display:flex;gap:8px;margin-top:14px}.calibration button{font-size:11px;flex:1}.form-hint{font-size:10px;line-height:1.8;color:#94aeb5;margin:10px 0}.sliders{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin:24px 0}.sliders label{font-size:10px;color:#c5dad7}.sliders output{float:right;color:#8ee0bd;font-size:10px}.sliders input{width:100%;margin:14px 0 0}input[type=range]{accent-color:#93daba;cursor:pointer}.button-rows{display:grid;grid-template-columns:1fr 1fr;gap:9px 24px}.button-rows label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b5cbc9}.button-rows select{width:94px}.dialog-actions{display:flex;justify-content:space-between;border-top:1px solid #38505a;padding-top:20px;margin-top:22px}.dialog-actions button{font-size:11px}.steps{padding-left:21px;font-size:13px}.steps li{padding-left:7px;margin-bottom:21px}.steps p{font-size:11px;line-height:1.7;color:#9bb5b7;margin-top:6px}.help-grid{display:grid;grid-template-columns:1fr 1fr;font-size:11px;margin:24px 0}.help-grid p{margin:5px 0}.help-grid kbd{display:inline-block;width:84px;font:11px inherit;color:#b1e5d0}details{font-size:10px;color:#91aab2;line-height:1.7;margin-top:20px}summary{cursor:pointer}details p{margin:12px 0 0}.fatal{max-width:600px;text-align:center;line-height:1.8}.fatal button{margin-top:12px}
@media(max-width:1050px){:root{--screen-width:460px}.header,.flightbar,.statusbar{padding-left:14px;padding-right:14px}.controller{grid-template-columns:110px var(--screen-width) 110px;gap:8px;padding:13px 8px 7px}.wing{padding-bottom:8px}.brand-light{display:none}}
@media(max-width:760px){:root{--screen-width:min(61vw,420px)}.app{min-width:560px}.controller{grid-template-columns:92px var(--screen-width) 92px;gap:3px}.virtual-stick{width:69px;height:69px}.gimbal-knob{width:42px;height:42px}.gimbal-knob i{left:17px;transform-origin:1px 15px}.wing-buttons button{width:29px;height:29px}.dial-wrap{min-height:71px}.screen-bottom b{font-size:11px}.screen-bottom{gap:5px}.screen-top{font-size:7px}.header{gap:9px}.flightbar{gap:3px}.flightbar button{font-size:9px;padding:7px 6px}.toolbar-divider{display:none}.connection{font-size:9px}.heading{width:31px;height:31px}.heading small{display:none}.statusbar{font-size:8px}.sliders{gap:9px}}
.dialog-status{font-size:11px;line-height:1.7;color:#b1decf;padding:10px 12px;background:#203b40;border-radius:7px;margin:16px 0 0}.dialog-status:empty{display:none}.dialog-status.error{color:#ffe1c2;background:#4b372d}
@media(min-width:1450px) and (min-height:900px){:root{--screen-width:600px}.controller{grid-template-columns:150px var(--screen-width) 150px;gap:23px;padding:18px 22px 10px}.virtual-stick{width:101px;height:101px}.screen-top{font-size:10px}.screen-bottom b{font-size:18px}.screen-bottom>div>small{font-size:9px}.statusbar{font-size:10px}.wing-buttons button{width:37px;height:37px}}
.home-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:none;color:#fff;filter:drop-shadow(0 1px 2px #06141dcc);z-index:1}.home-marker>span{display:grid;place-items:center;width:25px;height:25px;border:1.5px solid #fff;border-radius:50%;font:700 16px/1 'Segoe UI',sans-serif;background:#11272e26;text-shadow:0 1px 3px #000}.home-marker>i{display:none;position:absolute;inset:-8px;transform-origin:center}.home-marker.at-edge>i{display:block}.home-marker>i:before{content:'';position:absolute;left:calc(50% - 4px);top:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:5px solid white}
@media(max-width:760px){.home-marker>span{width:21px;height:21px;font-size:13px}}
/* Reference-matched stick diagrams flank the controller without covering either camera. */
.dock{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:22px}.stick-guide{width:100%;max-width:248px;align-self:center;color:#b5c7ca;min-width:0}.stick-guide h2{font-size:11px;font-weight:500;letter-spacing:.17em;color:#d6e3df;margin:0 0 12px 5px}.stick-guide svg{display:block;width:100%;height:auto;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stick-guide text{fill:#b5c7ca;stroke:none;font:14px 'Segoe UI','Malgun Gothic',sans-serif}.stick-guide .filled,.stick-guide .stick-center{fill:currentColor}.stick-guide .faint{opacity:.2}.stick-outline{stroke:#8fa6ae}.guide-aircraft{fill:#d8e8e708}.stick-guide .guide-aircraft path+path{fill:none;stroke:#93acb2}
@media(max-width:1450px){.dock{gap:14px;padding-left:14px;padding-right:14px}.stick-guide h2{font-size:10px;letter-spacing:.1em}.stick-guide text{font-size:16px}}
@media(max-width:1000px){.dock{grid-template-columns:1fr 1fr;gap:18px}.controller{grid-column:1 / -1;grid-row:1}.stick-guide{max-width:205px;grid-row:2}.stick-guide h2{text-align:center;margin-left:0}.stick-guide svg{max-height:175px}}
.mode-switch{width:110px;height:89px;padding-top:9px;flex:none}.mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.mode-options span{font-size:13px;font-weight:600;letter-spacing:.03em;padding:5px 0;border:1px solid transparent;background:none;color:#8da6ac;border-radius:5px}.mode-options span[data-active=true]{color:#d5f4e7;text-shadow:0 0 9px #a4e6ce40;background:#14362c66;border-color:#71988a55}.mode-track{position:relative;margin:7px 5px 0;height:13px;border:1px solid #101b22;background:linear-gradient(#101c22,#2b3e45);box-shadow:inset 0 2px 4px #0009,0 1px 0 #8ea59b40;border-radius:8px;pointer-events:none}.mode-track:before{content:'';position:absolute;left:50%;top:3px;width:1px;height:5px;background:#7f979b66;box-shadow:-33px 0 #7f979b66,33px 0 #7f979b66}.mode-track i{position:absolute;top:-3px;left:calc(3px + var(--mode-index)*32px);width:25px;height:17px;border-radius:4px;border:1px solid #819296;background:repeating-linear-gradient(90deg,#64777b 0 2px,#3b5056 2px 5px);box-shadow:0 2px 3px #0008;transition:left .16s ease}#screenSize{margin-left:auto}
@media(max-width:1050px){.mode-switch{width:96px}.mode-track i{left:calc(3px + var(--mode-index)*25px)}.mode-track:before{box-shadow:-25px 0 #7f979b66,25px 0 #7f979b66}}
@media(max-width:760px){.mode-switch{width:86px;height:71px;padding-top:5px}.mode-track i{width:21px;left:calc(3px + var(--mode-index)*24px)}.mode-options span{font-size:11px;padding:3px 0}}
.auto-flight{--hold:0;position:absolute;z-index:3;left:9px;top:43%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;width:52px;padding:4px 2px;border:0;border-radius:8px;background:#12202945;color:#fff;touch-action:none;user-select:none;text-shadow:0 1px 3px #000;cursor:pointer}.auto-flight:hover{background:#12202980}.auto-flight svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0008)}.auto-flight .hold-track{stroke:#ffffff30;stroke-width:1}.auto-flight .hold-progress{stroke:#a4e6ce;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--hold));transform:rotate(-90deg);transform-origin:24px 24px}.auto-flight .flight-arrow{stroke-width:3}.auto-flight.landing-icon .flight-arrow{transform:translateY(41px) scaleY(-1)}.auto-flight span{font-size:10px;white-space:nowrap}.auto-flight.holding{background:#122029a0}.auto-flight:disabled{opacity:.4;cursor:default}.auto-flight:focus-visible{outline:2px solid #a4e6ce;outline-offset:2px}@media(max-width:760px){.auto-flight{left:4px;width:43px}.auto-flight svg{width:32px;height:32px}.auto-flight span{font-size:8px}}
/* Camera HUD follows the DJI Fly status order and two-column flight telemetry. */
.screen-top{top:8px;left:10px;right:8px;gap:6px;z-index:5;white-space:nowrap}.screen-top #cameraState{min-width:0;overflow:hidden;text-overflow:ellipsis}.telemetry-top{display:flex;align-items:center;gap:7px;flex:none;font-size:12px;font-variant-numeric:tabular-nums}.telemetry-top .telemetry-stat,.telemetry-top button{display:flex;align-items:center;gap:4px;padding:0;border:0;border-radius:3px;background:none;box-shadow:none;color:#fff;font:inherit;text-shadow:0 1px 3px #000b;line-height:1;cursor:pointer}.telemetry-top button:hover{background:#0004}.telemetry-top button:focus-visible{outline:1px solid #9cebc8}.telemetry-top svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0007)}.battery-info{gap:5px!important}.battery-ring{position:relative;display:grid;place-items:center;width:28px;height:28px;color:#21d985}.battery-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);stroke-width:2.7}.battery-ring b{font:600 11px/1 'Segoe UI',sans-serif;color:inherit}.battery-track{stroke:#ef4a55}#batteryArc{stroke:currentColor;stroke-dasharray:100}.battery-info.low .battery-ring{color:#ffbc43}.battery-info.critical .battery-ring{color:#ff5252}#flightTime{font-size:12px;min-width:42px}.signal-info{gap:0!important}.signal-info svg{width:23px;height:22px}.signal-info small{font-size:8px;font-weight:600}.gnss-info{gap:2px!important}.gnss-info svg{width:23px}.telemetry-top .unavailable{color:#ff6565}.telemetry-menu{font-size:19px!important;letter-spacing:1px;padding:3px!important}.screen-bottom{justify-content:flex-start;gap:16px;bottom:12px}.flight-telemetry{display:grid;grid-template-columns:1fr 1fr;column-gap:32px;font-size:17px;line-height:1.23;font-weight:500;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000c}.telemetry-column{text-align:center;min-width:84px}.telemetry-column>div{white-space:nowrap}.telemetry-panel{position:absolute;z-index:8;top:42px;right:8px;width:245px;max-width:calc(100% - 16px);max-height:calc(100% - 50px);overflow:auto;padding:10px 12px;background:#10191af5;border:1px solid #fff3;border-radius:7px;box-shadow:0 6px 18px #0006;color:#fff;text-shadow:none;font-size:10px}.telemetry-panel p{font-size:11px;color:#d4e5df;line-height:1.6;margin:0}.telemetry-panel[hidden]{display:none}
@media(max-width:1050px){.telemetry-top{gap:5px;font-size:10px}.telemetry-top svg{width:20px;height:20px}#flightTime{font-size:10px;min-width:35px}.battery-ring{width:25px;height:25px}.battery-ring b{font-size:10px}.flight-telemetry{font-size:15px;column-gap:25px}}
@media(max-width:760px){.screen-top{left:7px;right:6px;gap:4px}.telemetry-top{gap:3px;font-size:9px}.telemetry-top svg{width:17px;height:17px}.battery-ring{width:23px;height:23px}.signal-info small{font-size:6px}#flightTime{font-size:9px;min-width:32px}.telemetry-menu{font-size:16px!important}.flight-telemetry{font-size:12px;column-gap:18px}.telemetry-column{min-width:64px}.screen-bottom{gap:10px;left:10px}.telemetry-panel{top:37px;max-height:calc(100% - 42px)}}
/* Simulation preferences share the existing controller settings dialog. */
.settings-section-title{font-size:14px;letter-spacing:-.02em;margin:0 0 14px;font-weight:600;color:#e5f0ec}.flight-settings{padding-bottom:17px;margin-bottom:23px;border-bottom:1px solid #38505a}.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;background:#20373f;border:1px solid #48645e;border-radius:10px;cursor:pointer}.setting-toggle b{display:block;font-size:13px;font-weight:600}.setting-toggle small{display:block;font-size:10px;color:#a9c3c0;line-height:1.6;margin-top:7px}.toggle-control{display:flex;align-items:center;gap:8px;position:relative;flex:none;font-size:10px;font-weight:700;color:#a4b8b9}.toggle-control input{position:absolute;left:0;top:0;width:42px;height:24px;opacity:0;margin:0;cursor:pointer;z-index:1}.toggle-track{width:42px;height:24px;border-radius:20px;background:#52676b;border:1px solid #819292;transition:background .18s}.toggle-track:after{content:'';display:block;width:16px;height:16px;margin:3px;border-radius:50%;background:#e4eeeb;transition:transform .18s}.toggle-control input:checked+.toggle-track{background:#75cdae;border-color:#9fe9cc}.toggle-control input:checked+.toggle-track:after{transform:translateX(18px);background:#103b2d}.toggle-control input:focus-visible+.toggle-track{outline:2px solid var(--mint);outline-offset:3px}.toggle-control input:checked~#unlimitedFlightState{color:#a4e6ce}#unlimitedFlightState{min-width:24px}.wing-buttons button[aria-pressed=true]{border-color:#9ce3c2;color:#b9ffe0;box-shadow:0 0 9px #77e8b855,inset 0 0 5px #77e8b822}
#settings[open]{display:flex;flex-direction:column}#settings .dialog-scroll{max-height:none;min-height:0}#settings .dialog-heading,#settings .dialog-actions{flex-shrink:0}#settings .dialog-actions{margin:0;padding:16px 26px;background:#172831}
/* Compact camera controls mirror the reference, leaving the center of the feed open. */
.screen-top .screen-mode{font-size:14px;padding:3px 6px}.screen-top #cameraState{font-size:13px;font-weight:600;line-height:1.3}.camera-controls{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:78px;height:142px;z-index:3;pointer-events:none;color:#fff;text-shadow:0 1px 3px #0008;user-select:none}.camera-controls>*{position:absolute;display:grid;place-items:center;pointer-events:auto;cursor:default}.camera-controls svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0008)}.camera-control-disc{width:30px;height:30px;left:0;border:0;border-radius:50%;background:#17202099;color:white;font-size:11px;font-weight:600;padding:0;box-shadow:none}.camera-orientation{top:20px;opacity:.65}.camera-orientation svg{width:21px;height:21px}.camera-video-icon{right:8px;top:0;width:24px;height:24px}.camera-controls #cameraZoom{top:56px;cursor:pointer;touch-action:manipulation}.camera-controls #cameraZoom:hover{background:#142421d9}.camera-controls #cameraZoom[aria-pressed=true]{color:#fff;border:1px solid #ffffff85}.camera-record{right:0;top:52px;width:38px;height:38px;background:#ed1730;border:1px solid #720d17;border-radius:50%;box-shadow:0 1px 2px #0003}.camera-af{top:92px;font-size:10px}.camera-playback{right:8px;bottom:0;width:24px;height:24px}
@media(max-width:760px){.screen-top .screen-mode{font-size:13px;padding:2px 4px}.screen-top #cameraState{font-size:11px}.camera-controls{right:6px;width:62px;height:114px}.camera-control-disc{width:25px;height:25px;font-size:10px}.camera-orientation{top:15px}.camera-orientation svg{width:18px;height:18px}.camera-controls #cameraZoom{top:45px}.camera-record{top:42px;width:31px;height:31px}.camera-af{top:75px;font-size:9px}.camera-controls svg{width:19px;height:19px}.camera-video-icon,.camera-playback{right:4px;width:23px;height:20px}}

.telemetry-top .telemetry-stat{cursor:default;user-select:none}
/* Primary controls stay left; field of view floats inside the LOS viewport. */
.header,.flightbar{justify-content:flex-start}.flightbar .icon-btn{padding:0;font-size:16px;flex:none}
.los-view-tools{position:absolute;top:12px;left:14px;z-index:1;padding:8px 11px;border:1px solid #b3d0c333;border-radius:8px;background:#13232dcc;box-shadow:0 2px 8px #07161e33;color:#e0eee8;backdrop-filter:blur(5px)}.los-view-tools label{display:flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap}.los-view-tools svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.los-view-tools input{width:104px;height:4px;margin:0;touch-action:none}.los-view-tools output{min-width:25px;font-variant-numeric:tabular-nums}.loading,.pause-cover{z-index:2}
@media(max-width:760px){.los-view-tools{top:10px;left:10px;padding:7px 9px}.los-view-tools label{gap:6px;font-size:10px}.los-view-tools input{width:91px}}

/* Keep the right stick level with the left after removing the motor button. */
.wing-right::after{content:"";display:block;height:54px;flex:none}
@media(min-width:1450px) and (min-height:900px){.wing-right::after{height:57px}}
@media(max-width:760px){.wing-right::after{height:49px}}

/* A real split view: only the 16:9 monitor grows; side controls keep their size. */
.app{height:calc(100dvh + var(--guide-overflow,0px));min-height:calc(760px + var(--guide-overflow,0px))}
.los-area{min-height:180px}
.view-divider{height:18px;flex:none;display:grid;place-items:center;position:relative;z-index:6;background:linear-gradient(#21383f,#192c33);border-top:1px solid #79989166;border-bottom:1px solid #07191d;cursor:ns-resize;touch-action:none;user-select:none;outline-offset:-3px}
.view-divider span{width:58px;height:4px;border-radius:4px;background:#96b9b2;box-shadow:0 1px 2px #06171980;transition:background .15s,box-shadow .15s}
.view-divider:hover span,.view-divider:focus-visible span,.resizing-views .view-divider span{background:#c2f4de;box-shadow:0 0 9px #94e7c955}
.view-divider:focus-visible{outline:2px solid var(--mint)}
.resizing-views,.resizing-views *{cursor:ns-resize!important;user-select:none!important}
.resizable-dock{border-top:0}
.resizable-dock .controller{grid-template-columns:145px var(--resized-screen-width) 145px;align-items:center}
.resizable-dock .wing{height:var(--control-height)}
.resizable-dock .virtual-stick,.resizable-dock .gimbal-knob,.resizable-dock .wing-buttons{flex-shrink:0}
.resizable-dock .stick-guide{width:var(--guide-size);max-width:none}
.resizable-dock.dock-guides-below{grid-template-columns:1fr 1fr;row-gap:18px}
.dock-guides-below .controller{grid-column:1 / -1;grid-row:1}
.dock-guides-below .stick-guide{grid-row:2;justify-self:center}
@media(max-width:1050px){.resizable-dock .controller{grid-template-columns:110px var(--resized-screen-width) 110px}}
@media(max-width:760px){.resizable-dock .controller{grid-template-columns:92px var(--resized-screen-width) 92px}}
@media(min-width:1450px) and (min-height:900px){.resizable-dock .controller{grid-template-columns:150px var(--resized-screen-width) 150px}}

/* Keep the layout action beside the divider, separate from its drag target. */
.view-divider-bar{height:30px;flex:none;position:relative;z-index:6}
.view-divider-bar .view-divider{height:100%;width:100%;z-index:auto}
.swap-views{position:absolute;right:14px;top:3px;height:24px;display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid #78948b66;border-radius:5px;background:#2c444b;color:#d8e9e2;font-size:10px;line-height:1;white-space:nowrap;z-index:1;touch-action:manipulation}
.swap-views svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.swap-views[aria-pressed=true]{background:#315548;border-color:#8bd3b288;color:#d0f4e1}
.guide-tray{display:grid;grid-template-columns:1fr 1fr;justify-items:center;align-items:center;gap:18px;padding:18px 14px 0;flex:none;background:#15232a}
.guide-tray .stick-guide{width:var(--guide-size);max-width:none}

/* Brief boundary feedback sits below the camera status row, clear of flight controls. */
.flight-limit-notice{position:absolute;top:45px;left:10px;z-index:4;display:flex;align-items:center;gap:12px;max-width:calc(100% - 20px);padding:7px 10px;border-left:3px solid #f5c35b;border-radius:5px;background:#302819ed;color:#ffe3a4;font-size:12px;font-weight:600;line-height:1.3;text-shadow:none;box-shadow:0 2px 8px #0003;pointer-events:none}
.flight-limit-notice span{white-space:nowrap}
.flight-notices{position:absolute;top:45px;left:10px;z-index:4;display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:calc(100% - 88px);pointer-events:none}
.flight-notices .flight-limit-notice{position:static;max-width:100%;flex-wrap:wrap}
.training-warnings{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%}
.training-warning{display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:3px;background:#262725ed;color:#fff;font-size:11px;line-height:1.45;font-weight:500;text-shadow:none;box-shadow:0 2px 7px #0003}
.training-warning i{width:7px;height:7px;border-radius:50%;flex:none;background:#f84949;box-shadow:0 0 5px #f8494933}
.screen-top #cameraState.warning-state{background:#e8413c;color:#fff;padding:4px 7px;border-radius:3px;font-size:11px;font-weight:600;text-shadow:none}
@media(max-width:760px){.flight-notices{top:39px;left:7px;max-width:calc(100% - 72px)}.training-warning{font-size:10px;padding:5px 7px;gap:6px}.screen-top #cameraState.warning-state{font-size:10px;padding:3px 5px}}
@media(max-width:760px){.flight-limit-notice{top:39px;left:7px;font-size:11px;padding:6px 8px;gap:10px}}

/* Photograph-backed daylight and sunset presets, separate from flight controls. */
.scene-switch{margin-left:auto;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #486057;border-radius:8px;background:#102229}
.flightbar .scene-switch button{display:grid;place-items:center;width:31px;height:28px;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#819d9e}
.scene-switch svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.flightbar .scene-switch button[aria-pressed=true]{background:#2d4a42;border-color:#86bba566;color:#d3efdf}
.flightbar .scene-switch button[data-scene=sunset][aria-pressed=true]{background:#584533;border-color:#e1b47766;color:#ffda9c}
@media(max-width:760px){.flightbar .scene-switch button{width:27px;height:26px}.scene-switch svg{width:17px;height:17px}}
/* View modes reuse the same canvases and controls. */
.view-mode-control{position:relative;flex:none}
.flightbar #viewModeButton{display:flex;align-items:center;gap:6px;height:32px;white-space:nowrap}
#viewModeButton svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.view-mode-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:35;width:246px;padding:6px;border:1px solid #506a70;border-radius:10px;background:#16282ff7;box-shadow:0 12px 32px #0007}
.flightbar .view-mode-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:10px;text-align:left;border:0;background:transparent;border-radius:6px;color:#bad0d0}
.view-mode-menu b{display:block;font-size:12px;font-weight:600}.view-mode-menu small{display:block;font-size:10px;margin-top:4px;color:#839fa6}
.view-mode-menu i{margin-left:auto;visibility:hidden;color:#b3ebd0;font-style:normal}.view-mode-symbol{width:24px;text-align:center;font-size:25px}
.flightbar .view-mode-menu button[aria-checked=true]{background:#315046;color:#effaf3}.view-mode-menu button[aria-checked=true] i{visibility:visible}
.flightbar .view-mode-menu button:hover,.flightbar .view-mode-menu button:focus-visible{background:#2a4149;outline:1px solid #a4e6ce}
.app[data-view-mode]:not([data-view-mode=both]){height:100dvh;min-height:560px}
.app[data-view-mode]:not([data-view-mode=both]) #viewDividerBar,.app[data-view-mode]:not([data-view-mode=both]) .stick-guide,.app[data-view-mode]:not([data-view-mode=both]) #guideTray{display:none!important}
.app[data-view-mode=los] .dock,.app[data-view-mode=controller] .los-area,.app[data-view-mode=camera] .los-area{display:none}
.app[data-view-mode=los] .los-area{flex:1;min-height:0}
.app[data-view-mode=controller] .dock,.app[data-view-mode=camera] .dock{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;flex:1;min-height:0;overflow:hidden;padding:14px}
.app[data-view-mode=controller] .controller{grid-column:1;grid-row:1;grid-template-columns:145px var(--solo-screen-width,520px) 145px}
.app[data-view-mode=camera] .dock{padding:0;background:#091216}
.app[data-view-mode=camera] .controller{display:block;width:var(--solo-screen-width,520px);padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.app[data-view-mode=camera] .wing{display:none}
.app[data-view-mode=camera] .bezel{padding:0;border-radius:0;box-shadow:none}
.app[data-view-mode=camera] .display{border-radius:0}
.pause-cover,.loading{z-index:20}
@media(max-width:1050px){.app[data-view-mode=controller] .controller{grid-template-columns:110px var(--solo-screen-width,460px) 110px}}
@media(max-width:760px){.app[data-view-mode=controller] .controller{grid-template-columns:92px var(--solo-screen-width,320px) 92px}.flightbar{gap:5px;padding-left:10px;padding-right:10px}.flightbar #viewModeButton{padding:6px}.view-mode-menu{left:auto;right:0}}

/* DJI Fly-style tilt scale, shown only while adjusting the gimbal and briefly afterwards. */
.gimbal-angle-indicator{position:absolute;z-index:4;right:110px;top:max(50px,24%);bottom:max(52px,23%);width:47px;color:white;pointer-events:none;user-select:none;opacity:0;visibility:hidden;transition:opacity .18s,visibility .18s;font:500 10px/1.1 'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000,0 0 2px #000}
.gimbal-angle-indicator.is-visible{opacity:1;visibility:visible}
.gimbal-angle-track{position:absolute;top:0;bottom:0;right:0;width:1px;background:#ffffffa6;box-shadow:0 0 2px #0009}
.gimbal-angle-limit,.gimbal-angle-zero{position:absolute;left:7px;white-space:nowrap;transform:translateY(-50%)}
.gimbal-angle-limit:before,.gimbal-angle-zero:before{content:'';position:absolute;right:calc(100% + 3px);width:5px;height:1px;top:50%;background:#fff;box-shadow:0 0 2px #0009}
.gimbal-angle-max{top:0}.gimbal-angle-min{top:100%}
.gimbal-angle-zero:before{width:8px}
.gimbal-angle-marker{position:absolute;top:51.25%;right:0;display:flex;align-items:center;transform:translateY(-50%)}
.gimbal-angle-marker i{position:absolute;right:-3px;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0009}
.gimbal-angle-value{position:relative;right:8px;min-width:34px;padding:4px 5px;border-radius:3px;background:#202321ce;text-align:center;font-size:11px;text-shadow:none}
.gimbal-angle-value:after{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:4px solid #202321ce}
@media(max-width:760px){.gimbal-angle-indicator{right:88px;top:max(44px,24%);bottom:max(44px,23%);font-size:9px}.gimbal-angle-value{font-size:10px;min-width:31px;padding:3px 4px}}
@media(prefers-reduced-motion:reduce){.gimbal-angle-indicator{transition:none}}

/* The physical switch below the letters is the interactive target. */
.mode-options span{display:block;text-align:center;cursor:default;user-select:none}.mode-track{pointer-events:auto}.mode-track i{left:calc((var(--mode-index) + .5)*100%/3);transform:translateX(-50%);pointer-events:none}.mode-track button{position:absolute;top:-8px;bottom:-8px;width:33.333%;padding:0;border:0;border-radius:5px;background:transparent;touch-action:manipulation}.mode-track button[data-mode=C]{left:0}.mode-track button[data-mode=N]{left:33.333%}.mode-track button[data-mode=S]{left:66.666%}.mode-track button:hover:not(:disabled){background:#a4e6ce18}.mode-track button:active:not(:disabled){transform:none}.mode-track button:focus-visible{outline:2px solid #a4e6ce;outline-offset:2px}
.map-picker{display:inline-flex;align-items:center;position:relative;height:34px;min-width:172px;max-width:210px;background:#192b34;border:1px solid #38505a;border-radius:8px;color:#dfeeed;gap:8px;padding:0 11px;flex-shrink:0}
.map-picker:focus-within{outline:2px solid #91e3d0;outline-offset:2px}
.map-picker>svg{width:17px;height:17px;fill:none;stroke:#8eb3b6;stroke-width:1.5;pointer-events:none;flex-shrink:0}
.map-picker select{appearance:none;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.01em;padding:0 18px 0 0;width:100%;height:100%;cursor:pointer;outline:0}
.map-picker select option{background:#192b34;color:#eaf4f4}
.map-picker>span{position:absolute;right:10px;pointer-events:none;color:#96b3b7}
.map-loading{position:fixed;inset:0;z-index:1000;background:#07131bad;display:grid;place-items:center;backdrop-filter:blur(7px)}
.map-loading[hidden]{display:none}
.map-loading-card{width:min(350px,85vw);padding:35px;border:1px solid #45646a88;border-radius:18px;background:#15262ef0;box-shadow:0 30px 100px #0007;display:flex;align-items:center;flex-direction:column;gap:15px}
.map-loading-card small{color:#95b1b9;font-size:12px}.map-loading-card strong{color:#edf5f4;font-size:24px;font-weight:500;letter-spacing:-.02em}
@media(max-width:760px){.map-picker{min-width:150px;max-width:174px;height:32px}.map-picker select{font-size:11px}.flightbar{flex-wrap:wrap}}

.flightbar .scene-switch button[data-scene=night][aria-pressed=true]{background:#323e5e;border-color:#9baad066;color:#d7e2ff}
.serial-controls{margin:10px 0 18px;padding:14px;border:1px solid #38535d;border-radius:12px;background:#13252d}
.serial-controls[hidden]{display:none}
.serial-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.serial-toolbar>span{flex:1 1 220px;font-size:13px;color:#a6e4d6}
.serial-toolbar button{padding:8px 12px;white-space:nowrap}
.serial-controls .form-hint{margin:10px 0 0;line-height:1.6}
.serial-controls .serial-connection{margin-top:14px}
.gimbal-mapping{padding:16px;border:1px solid #38535d;border-radius:12px;background:#13252d}
.gimbal-mapping .full-label{margin:0 0 16px}
.gimbal-mapping [hidden]{display:none!important}
.gimbal-axis-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px}
.gimbal-axis-row>label:first-child{display:flex;align-items:center;gap:16px;flex:1}
.gimbal-axis-row select{flex:1;min-width:95px}
.gimbal-invert{display:flex;gap:7px;align-items:center;white-space:nowrap}
.gimbal-live{display:flex;gap:9px;align-items:center;margin-top:18px;color:#b1d4cd;font-size:11px}
.gimbal-live-track{flex:1;height:5px;background:#071920;position:relative;border-radius:4px}
.gimbal-live-track:before{content:'';position:absolute;left:50%;top:-4px;height:13px;border-left:1px solid #6b9199}
.gimbal-live-track i{position:absolute;top:-3px;left:50%;width:5px;height:11px;border-radius:2px;background:#a4e6ce;transform:translateX(-50%)}
.gimbal-live output{font-variant-numeric:tabular-nums;min-width:36px;text-align:right}
.gimbal-mapping .form-hint{line-height:1.6;margin:12px 0 0}
