body {background:#fff}
.tour-choice {width:460px}
.tour-choice button {width:100%;margin-top:12px}
.tour-choice .tour-choice-cancel {background:transparent}
.receiver-calibration .action-stack button {
    display:grid;
    grid-template-columns:30px 5em;
    justify-content:center;
    align-items:center;
    column-gap:14px;
}
.receiver-calibration .action-stack button svg {justify-self:center}
.receiver-calibration .action-stack button .action-label {text-align:left}
.app {max-width:1500px;margin:0 auto;border:0;border-radius:0;box-shadow:none;min-height:100dvh}
header {height:86px;border:0;padding:22px 36px}
.brand img {width:216px}
.header-right {gap:20px}
.help-button {width:auto;height:34px;padding:0 12px;border-radius:18px;font-size:13px;white-space:nowrap;flex-shrink:0}
.demo-label,.sidebar-title,.side-foot,.bottom-caption,.breadcrumb,#footer-note {display:none}
.view-switch {display:flex;border:1px solid #ffab00;border-radius:22px;padding:2px;background:#fff;gap:2px}
.view-switch button {padding:6px 20px;border-radius:18px;color:#bd7c00;background:transparent;font-size:13px;font-weight:700}
.view-switch button[aria-pressed=true] {background:#ffab00;color:#fff}
.workspace {min-height:calc(100dvh - 86px)}
aside {width:90px;border:0;padding:45px 24px}
nav {gap:28px;align-items:center}
.step {padding:0;min-height:40px;gap:0}
.step>span:not(.number) {display:none}
.step .number {width:38px;height:38px;font-size:18px;border-color:#dadcde;color:#999;background:#fff}
.step.active .number {border-color:#ffb800;color:#222;background:#fff}
.step:not(:last-child):after {left:18px;top:39px;height:29px;width:2px;background:#e1e2e4}
main {padding:0 36px 0 16px;position:relative}
.topline {height:46px;justify-content:flex-end}
.status {padding:7px 14px;font-weight:650}
.status.connected {color:#247638;background:#e8f8e9;border-color:#d3efd5}
.status.connected i {width:17px;height:17px;border-radius:50%;background:#22c338;color:white;display:grid;place-items:center}
.status.connected i:after {content:'✓';font-size:12px;line-height:1}
#content {min-height:0;padding:20px 0 24px}
footer {border:0;min-height:90px;margin:0;padding:16px 0 24px;background:#fff;position:static}
footer .primary {border-radius:30px;min-width:210px;font-size:17px;padding:16px 28px}
footer .disconnect-button {background:#fff;color:var(--ink);border:1px solid #dadde1;border-radius:30px;min-width:124px;padding:12px 20px;font-size:14px;font-weight:700;white-space:nowrap;transition:border-color .2s,transform .2s}
footer .disconnect-button:hover {border-color:#a5aab2;transform:translateY(-1px)}
footer .disconnect-button[hidden] {display:none}
body[data-page="1"] .workspace {height:calc(100dvh - 86px);min-height:0}
body[data-page="1"] main {min-height:0}
body[data-page="1"] .topline,body[data-page="1"] footer {flex-shrink:0}
body[data-page="1"] #content {padding:0;display:flex;align-items:center;min-height:0}
body[data-page="1"] #content>.eyebrow,body[data-page="1"] #content>h1 {display:none}
body[data-page="1"] .hero {width:100%;min-height:0;height:100%;margin:0}
body[data-page="1"] .hero:after {display:none}
body[data-page="1"] .drone-photo {width:100%;height:100%;max-width:1000px;aspect-ratio:auto;background:transparent}
body[data-page="1"] footer {justify-content:flex-end;align-items:flex-end}
body[data-page="1"] #back {display:none}
.expert-mode .workspace,.expert-mode #help {display:none}
#expert-panel {height:calc(100dvh - 86px);position:relative}
#expert-panel[hidden],#expert-frame[hidden] {display:none}
#expert-frame {width:100%;height:100%;border:0;display:block}
#expert-loading {position:absolute;inset:0;display:grid;place-items:center;color:#727b87}
#expert-loading[hidden] {display:none}
.expert-mode .tour-layer {display:none}
@media(max-width:650px) {
    header {height:76px;padding:16px}
    .brand img {width:150px}
    .header-right {gap:10px}
    .help-button {height:32px;padding:0 10px;font-size:12px}
    .view-switch button {padding:6px 12px;font-size:12px}
    .workspace {display:flex;min-height:calc(100dvh - 76px)}
    aside {width:50px;padding:36px 6px;border:0}
    nav {flex-direction:column;gap:24px}
    .step {min-width:0;min-height:34px}
    .step .number {width:32px;height:32px;font-size:15px}
    .step:not(:last-child):after {left:15px;top:32px;height:26px;width:2px;min-width:0}
    main {padding:0 16px 0 4px;min-height:calc(100dvh - 76px)}
    .topline {height:40px}
    #content {padding:16px 0}
    body[data-page="1"] .workspace {height:calc(100dvh - 76px)}
    footer .primary {min-width:160px;font-size:15px}
    body[data-page="1"] footer {gap:10px}
    footer .disconnect-button {min-width:100px;padding:11px 14px;font-size:13px}
    #expert-panel {height:calc(100dvh - 76px)}
    .calibration-grid {grid-template-columns:1fr}
}
@media(max-width:380px) {
    .brand img {width:120px}
    .header-right {gap:8px}
    .view-switch button {padding:6px 10px}
}

/* Keep the desktop wizard within the available window height. */
@media (min-width: 950px) {
    header {height:64px;padding:12px 28px}
    .brand img {width:190px}
    .workspace,body[data-page="1"] .workspace {height:calc(100dvh - 64px);min-height:0}
    main {min-height:0}
    aside {padding-top:26px}
    .topline {height:34px;flex-shrink:0}
    #content {padding:8px 0;min-height:0}
    footer {min-height:64px;flex-shrink:0;padding:8px 0 14px}
    footer .primary {padding:12px 24px;font-size:16px}
    .receiver-calibration {gap:18px;align-items:center}
    .calibration-photo {aspect-ratio:auto;height:clamp(210px,48dvh,430px)}
    .receiver-calibration .level-instructions {padding:8px;font-size:12px}
    .receiver-calibration .channels {padding:12px 14px}
    .receiver-calibration .card-title {margin-bottom:8px}
    .receiver-channel-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;max-height:none;overflow:visible}
    .receiver-calibration .channel {grid-template-columns:48px minmax(0,1fr);gap:6px;margin:0;min-height:20px}
    .receiver-calibration .action-stack {margin-top:10px;gap:8px}
    .receiver-calibration .action-stack button {min-height:40px;padding:8px;font-size:16px}
    .receiver-calibration .action-stack button .action-label {font-size:16px}
    .receiver-binding-result,.calibration-feedback p {margin:6px 0 0;font-size:12px;line-height:1.4}
    .receiver-binding-result:empty,.calibration-feedback p:empty {display:none}
    .flight-gallery h1 {font-size:24px}
    .mode-preview {height:clamp(130px,calc(100dvh - 365px),320px);margin-top:0}
    .flight-caption h2 {font-size:clamp(18px,1.7vw,26px);margin:4px 0;padding-bottom:4px}
    .flight-caption p {margin:6px 0 12px;font-size:13px}
    .flight-card {min-height:76px;padding:10px 5px;font-size:14px}
    #expert-panel {height:calc(100dvh - 64px)}
}

@media (min-width: 950px) {
    body[data-page="3"] #content {display:flex;flex-direction:column}
    body[data-page="3"] .flight-gallery {
        flex:1;
        min-height:0;
        display:flex;
        flex-direction:column;
    }
    .flight-gallery > h1,.flight-caption,.flight-cards {flex-shrink:0}
    body[data-page="3"] .mode-preview {
        flex:1;
        min-height:80px;
        height:auto;
        max-height:none;
    }
    .flight-cards {padding-bottom:4px}
    .flight-card {min-height:92px}
}

body[data-page="1"] .drone-photo .connection-image {position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;mix-blend-mode:normal}

.browser-usb-label{font-size:13px;color:#66726d}.header-right{gap:18px}
