:root{--yellow:#ffc400;--ink:#191b20;--muted:#858991;--line:#eceef0;--green:#24a86b}*{box-sizing:border-box}body{margin:0;background:#f3f4f6;color:var(--ink);font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;font-size:14px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d69c00;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}.app{max-width:1280px;margin:32px auto 20px;background:white;border:1px solid #e9eaec;border-radius:24px;box-shadow:0 16px 64px #16243408;overflow:hidden}header{height:101px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:20px 38px}.brand img{width:236px;display:block}.header-right{display:flex;align-items:center;gap:18px}.demo-label{font-size:12px;color:#8b7439;background:#fff8df;border:1px solid #f3e8bf;padding:6px 12px;border-radius:20px}.help-button{border:1px solid #dadde1;border-radius:50%;width:28px;height:28px;background:white;color:#6b717b}.workspace{display:flex;min-height:690px}aside{width:211px;flex-shrink:0;padding:33px 24px;border-right:1px solid var(--line);position:relative}.sidebar-title{font-size:12px;color:#969aa3;margin:0 0 25px 15px;letter-spacing:2px}nav{display:flex;flex-direction:column;gap:20px}.step{background:none;display:flex;align-items:center;gap:15px;text-align:left;color:#999da5;position:relative;min-height:44px;padding:0 10px}.step:not(:last-child):after{content:"";height:22px;width:2px;background:#eceef0;position:absolute;top:44px;left:27px}.step .number{width:36px;height:36px;border:2px solid #e5e7ea;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:700;font-size:16px;flex-shrink:0}.step.active{color:#17191d;font-weight:700}.step.active .number{border:3px solid var(--yellow);background:#fffbed}.step.done .number{border-color:#e1f3e8;background:#eff9f3;color:var(--green)}.side-foot{position:absolute;bottom:38px;left:39px;display:flex;gap:12px;color:#b0b4ba;line-height:1.8;font-size:12px}.tiny-drone{font-size:36px;color:#d4d7db}.side-foot p{margin:0}main{flex:1;min-width:0;padding:28px 42px 0;display:flex;flex-direction:column}.topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{color:#a0a4ac;font-size:12px}.breadcrumb span{margin-left:10px}.status{display:flex;align-items:center;gap:7px;background:#fff0ef;color:#ca5e55;border:1px solid #f4dad6;border-radius:30px;padding:7px 12px;font-size:12px}.status i{width:7px;height:7px;background:currentColor;border-radius:50%}.status.connected{color:#22935c;background:#effaf1;border-color:#dcefe1}#content{flex:1;padding:31px 0 26px;min-height:525px;animation:appear .3s ease}.eyebrow{font-size:11px;letter-spacing:2px;color:#aa8c2c;font-weight:600;margin:0 0 11px}.heading-row{display:flex;align-items:center;gap:12px}h1{font-size:30px;letter-spacing:-.9px;margin:0;font-weight:800;line-height:1.4}h1:after{content:"";display:block;width:48px;height:4px;background:var(--yellow);margin-top:10px;border-radius:10px}.sub{color:#8b9099;line-height:1.8;margin:15px 0 25px;font-size:13px}.hero{position:relative;min-height:335px;display:flex;align-items:center;justify-content:center}.drone-photo{overflow:hidden;position:relative;width:100%;aspect-ratio:1.9;max-width:680px;background:white;border-radius:20px}.drone-photo img{position:absolute;width:150%;max-width:none;left:-18%;top:-28%;mix-blend-mode:multiply}.hero:after{content:"";position:absolute;width:80%;height:1px;background:linear-gradient(90deg,transparent,#eceef0,transparent);bottom:13px}.hero-label{position:absolute;right:5px;bottom:30px;display:flex;gap:9px;align-items:center;color:#9398a0;font-size:12px}.hero-label i{width:8px;height:8px;border-radius:50%;background:#d1d5db}.hero-label.online i{background:var(--green);box-shadow:0 0 0 4px #e9f7ee}.connect-hints{display:flex;justify-content:center;gap:30px;color:#9499a1;font-size:12px}.connect-hints span{display:flex;align-items:center;gap:8px}.connect-hints b{color:#a6abb3;font-size:18px;font-weight:400}footer{border-top:1px solid var(--line);min-height:91px;display:flex;align-items:center;justify-content:space-between;gap:15px}footer>span{font-size:11px;color:#a5aab2}.primary{background:var(--yellow);color:#17191c;border-radius:12px;font-weight:700;padding:15px 25px;min-width:155px;display:inline-flex;gap:28px;align-items:center;justify-content:center;transition:background .2s,transform .2s}.primary:hover{background:#ffd22c;transform:translateY(-1px)}.primary span{font-size:20px;line-height:1}.secondary{background:#f3f4f6;color:#69707b;border-radius:11px;padding:14px 20px}.secondary:hover{background:#e9ebee}.bottom-caption{border-top:1px solid var(--line);padding:14px 38px;display:flex;justify-content:space-between;font-size:10px;color:#b3b7bd}.calibration-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.level-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fafafa}.level-card .drone-photo{aspect-ratio:1.35;background:linear-gradient(#fafafa,#f2f3f4)}.level-card .drone-photo img{top:-1%;width:168%;left:-23%}.level-pill{margin:-32px auto 15px;position:relative;z-index:1;width:max-content;padding:5px 16px;background:#fff;border:1px solid #e2e5e8;border-radius:20px;font-size:11px;color:#8d9299}.level-pill.ok{color:#24976a}.level-instructions{display:flex;justify-content:center;gap:15px;font-size:10px;padding:15px 6px;background:white;border-top:1px solid var(--line);color:#6c727b}.channels{border:1px solid var(--line);border-radius:18px;padding:18px}.card-title{font-size:13px;font-weight:700;display:flex;justify-content:space-between;margin-bottom:15px}.live{font-size:9px;letter-spacing:1px;color:var(--green)}.channel{display:grid;grid-template-columns:66px 1fr 30px;gap:9px;align-items:center;font-size:10px;margin:10px 0;color:#6a717a}.track{height:10px;border-radius:10px;background:#f2f3f5;overflow:hidden}.fill{height:100%;background:var(--yellow);border-radius:10px;transition:width .16s}.action-stack{display:grid;gap:9px;margin-top:12px}.action-stack button{padding:12px;min-width:0;font-size:12px}.channel-note{font-size:11px;color:#9298a1;margin:14px 0 0}.mode-stage{border:1px solid var(--line);border-radius:18px;background:radial-gradient(ellipse at 50% 75%,#fff6cf,white 65%);height:210px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}.mode-stage .drone-photo{width:390px;aspect-ratio:2.4;animation:float 3s ease-in-out infinite;background:none}.mode-stage .drone-photo img{top:-38%}.motion-angle .drone-photo{animation:angle 3s ease-in-out infinite}.motion-horizon .drone-photo{animation:angle 1.7s ease-in-out infinite}.motion-acro .drone-photo{animation:roll 4s ease-in-out infinite}.motion-buzzer:after{content:"";position:absolute;inset:35px 25%;border:3px solid #ffc40060;border-radius:50%;animation:ping 1.5s infinite}.motion-turtle .drone-photo{animation:roll 2s ease-in-out infinite}.mode-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:18px 0}.mode-choice{border:1px solid var(--line);border-radius:13px;padding:13px 4px;background:#f7f8f9;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:#6f747c}.mode-choice strong{font-size:23px;line-height:1.2;font-weight:400}.mode-choice.selected{background:var(--yellow);border-color:var(--yellow);color:#17191c}.mode-info{display:flex;justify-content:space-between;align-items:center;gap:16px}.mode-info h2{font-size:16px;margin:0 0 6px}.mode-info p{font-size:12px;margin:0;color:#8a9099;line-height:1.7}.mode-setting{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:11px;color:#757b85}select{border:1px solid #e2e5e9;padding:10px;border-radius:9px;background:white;color:#444;font:inherit}.check-circle{display:grid;place-items:center;border:1px solid #d8dce1;width:18px;height:18px;border-radius:50%;font-size:11px;color:transparent}.selected .check-circle{background:var(--yellow);border-color:var(--yellow);color:#262626}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.summary-item{padding:18px;border:1px solid var(--line);border-radius:13px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#868c95}.summary-item b{font-size:13px;color:#333a43}.save-intro{padding:17px 20px;border-radius:13px;background:#fff9e5;font-size:12px;line-height:1.8;color:#96834a;margin-top:20px}.success{display:grid;place-items:center;text-align:center;padding:12px 0 5px}.success-mark{width:72px;height:72px;border-radius:50%;background:#eaf8ef;color:var(--green);display:grid;place-items:center;font-size:34px;margin-bottom:15px}.success h1:after{margin:10px auto}.flight-tips{display:flex;justify-content:center;gap:28px;font-size:12px;color:#838b93;margin:25px 0 0}.progress-bar{height:5px;overflow:hidden;background:#eee;border-radius:8px;margin-top:15px}.progress-bar:after{content:"";display:block;height:100%;background:var(--yellow);animation:save 1.6s linear forwards}dialog{border:1px solid #e9ebef;border-radius:22px;padding:35px;width:440px;max-width:calc(100% - 32px);box-shadow:0 24px 100px #0002;color:var(--ink)}dialog::backdrop{background:#19233055;backdrop-filter:blur(5px)}dialog h2{font-size:23px;margin:0 0 12px}dialog p{font-size:13px;line-height:1.9;color:#868c95}dialog .primary{width:100%;margin-top:15px}.close{position:absolute;top:12px;right:15px;background:none;color:#999;font-size:25px}.device-option{display:flex;gap:13px;align-items:center;padding:18px;border:1px solid var(--yellow);background:#fffcf0;border-radius:14px;margin:20px 0}.device-option b{display:block;font-size:14px}.device-option small{display:block;font-size:11px;color:#999;margin-top:5px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,25px);padding:12px 22px;border-radius:11px;background:#23262d;color:white;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.simulator{display:flex;gap:8px;align-items:center;font-size:11px;color:#888;margin-top:16px}.simulator input{accent-color:#e8b000;width:100%}@keyframes appear{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes float{50%{transform:translateY(-6px)}}@keyframes angle{0%,100%{transform:rotate(0)}30%{transform:rotate(-9deg)}65%{transform:rotate(9deg)}}@keyframes roll{0%,20%{transform:rotate(0)}80%,100%{transform:rotate(360deg)}}@keyframes ping{to{transform:scale(1.5);opacity:0}}@keyframes save{from{width:0}to{width:100%}}
@media(min-width:1400px){.app{margin-top:6vh}}@media(max-width:1000px){.app{margin:15px}aside{width:170px;padding:30px 15px}main{padding:24px 28px 0}.step{gap:10px}.side-foot{left:25px}.mode-info{align-items:flex-start;flex-direction:column}.connect-hints{gap:15px}footer>span{display:none}}
@media(max-width:650px){body{background:white}.app{margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}header{height:81px;padding:16px 20px}.brand img{width:183px}.header-right{gap:10px}.demo-label{font-size:10px;padding:5px 8px}.help-button{width:24px;height:24px}.workspace{display:block;min-height:0}aside{width:100%;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px 15px;position:static}.sidebar-title,.side-foot{display:none}nav{flex-direction:row;gap:0;justify-content:space-between}.step{flex-direction:column;gap:6px;padding:0;min-width:50px;font-size:10px}.step .number{width:28px;height:28px;font-size:12px}.step:not(:last-child):after{top:13px;left:calc(100% + 4px);height:1px;width:calc((100vw - 290px)/4);min-width:12px}.step.active .number{border-width:2px}main{padding:19px 20px 0;min-height:calc(100dvh - 170px)}.topline{height:28px}.breadcrumb{font-size:10px}.status{padding:6px 9px;font-size:10px}#content{padding:27px 0 20px;min-height:0;flex:1}h1{font-size:25px}.eyebrow{font-size:9px;margin-bottom:8px}.sub{font-size:12px;margin:13px 0 20px}.hero{min-height:255px;margin:10px -12px}.drone-photo{aspect-ratio:1.45}.drone-photo img{width:172%;left:-23%;top:-7%}.hero-label{font-size:10px;right:12px;bottom:12px}.connect-hints{flex-direction:column;align-items:center;gap:10px;margin:15px 0 20px}.connect-hints b{font-size:14px}footer{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(10px);min-height:84px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));z-index:4;margin-top:18px}.primary{padding:15px 20px;border-radius:12px;min-width:160px;font-size:13px}.secondary{font-size:12px;padding:15px}.bottom-caption{font-size:9px;padding:13px 20px;gap:15px}.bottom-caption>span:first-child{display:none}.calibration-grid{grid-template-columns:1fr;gap:16px}.level-card .drone-photo{aspect-ratio:2.15}.level-card .drone-photo img{width:155%;top:-26%;left:-19%}.level-instructions{font-size:10px;padding:12px 5px}.level-pill{margin-top:-29px}.channels{padding:15px}.channel{margin:10px 0;font-size:10px}.action-stack{grid-template-columns:1fr 1fr}.action-stack button{padding:13px 5px;gap:4px;font-size:11px}.mode-stage{height:185px}.mode-stage .drone-photo{width:330px}.mode-stage .drone-photo img{width:150%;left:-18%;top:-38%}.mode-choices{grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.mode-choice{flex-direction:row;justify-content:center;padding:12px 3px;font-size:10px;gap:6px}.mode-choice strong{font-size:20px}.mode-info{gap:15px}.mode-info h2{font-size:15px}.mode-info p{font-size:11px}.mode-setting{width:100%;justify-content:space-between}.mode-setting select{flex:1;max-width:110px}.summary-grid{grid-template-columns:1fr;gap:9px;margin-top:18px}.summary-item{padding:16px}.flight-tips{gap:13px;font-size:10px;flex-wrap:wrap}.success{padding-top:15px}.success h1{font-size:24px}.save-intro{font-size:11px}.simulator{font-size:10px}.success-mark{width:64px;height:64px}.check-circle{width:15px;height:15px;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:650px){.hero>.drone-photo img{top:-18%}}
@media(min-width:651px) and (max-height:800px){.app{margin-top:16px}header{height:85px}.workspace{min-height:570px}#content{min-height:420px;padding-top:22px}.hero{min-height:260px}.hero>.drone-photo{max-width:570px}main{padding-top:20px}footer{min-height:78px}}
.display-positions{display:grid;gap:10px}.display-position{display:flex;align-items:center;gap:12px;padding:12px;border:2px solid #eceef0;border-radius:12px;flex-wrap:wrap}.display-position.current{border-color:#ffc400;background:#fff9df}.display-position select{flex:1}.display-position span{font-size:12px;color:#777}
.display-editor{margin-top:16px}.display-editor select{min-height:44px;padding:4px 8px;max-width:100%;border:1px solid #dfe1e5;border-radius:8px;background:#fff;color:inherit;font:inherit}.display-editor button:disabled{opacity:.55;cursor:default}.display-position span{font-variant-numeric:tabular-nums}.display-editor #display-result{font-weight:600}
@media(max-width:650px){.display-position{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.display-position span{justify-self:end}.display-position button{padding:8px 10px}.display-editor .card-title{flex-wrap:wrap;gap:8px}}
.flight-gallery{width:100%;text-align:center;color:#151515}
.flight-gallery h1{display:flex;align-items:center;gap:.45em;text-align:left;font-size:clamp(23px,2.3vw,34px);margin:0}
.flight-gallery h1:after{display:none}
.flight-gallery h1 i{width:24px;height:20px;background:white url('assets/mode-reference.png') -55px -32px / 410px 289px no-repeat}
.flight-art{width:min(62%,440px);aspect-ratio:228/104;margin:12px auto 0;background:white url('assets/mode-reference.png') 52.75% 26.49% / 179.825% 277.885% no-repeat}
.flight-caption h2{display:inline-block;font-size:clamp(21px,2vw,30px);margin:10px 0 4px;padding-bottom:6px;border-bottom:3px solid #ffc400}
.flight-caption p{margin:12px 0 28px;line-height:1.6}
.flight-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.flight-card{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:78px;padding:9px 3px;border:0;border-radius:14px;background:#f3f3f3;color:#161616;font:inherit;font-weight:650;cursor:pointer}
.flight-card.mode-editing{background:#fff2dc;box-shadow:inset 0 0 0 3px #ed8314}.flight-card:focus-visible{outline:3px solid #865900;outline-offset:2px}
.flight-card.mode-active{background:#ffc400}.flight-card small{font-size:12px;font-weight:500;line-height:1.4}
.mode-binding{min-width:0;margin:18px 0 0;padding:12px 20px;text-align:left;border:2px solid #ed8314;border-radius:16px;background:#fffdfa}
.mode-binding legend{padding:0 8px;font-weight:700}.mode-binding p{margin:8px 0 12px;color:#526070}
.binding-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.binding-fields label{display:grid;gap:5px;font-size:14px}.binding-fields input,.binding-fields select{width:116px;max-width:100%;padding:8px;border:1px solid #cfd2d5;border-radius:8px;background:white;color:#191919;font:inherit}
.flight-card i{width:24px;height:19px;background:url('assets/mode-reference.png') calc(0px - var(--icon-x)) -227px / 410px 289px no-repeat;filter:grayscale(1) contrast(1.7);mix-blend-mode:multiply}
.flight-details{margin-top:22px;border-top:1px solid #eaebed}.flight-details summary{cursor:pointer;padding:14px 0;font-weight:600;color:#475467}
@media(max-width:650px){.flight-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.flight-card{min-height:56px;font-size:13px}.flight-art{width:min(88%,350px)}.flight-caption p{font-size:14px;margin:8px 0 16px}}
.binding-progress-wrap{max-width:480px;margin:14px 0}.binding-progress-wrap[hidden]{display:none}.binding-progress-wrap label{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#526070}.binding-progress-wrap progress{display:block;width:100%;height:12px;margin-top:8px;accent-color:#ed8314;border:0;border-radius:8px;overflow:hidden}.binding-progress-wrap progress::-webkit-progress-bar{background:#f0e9df;border-radius:8px}.binding-progress-wrap progress::-webkit-progress-value{background:#ed8314;border-radius:8px;transition:width .15s linear}
@media (max-width: 650px) {
}

.calibration-title{display:flex;align-items:center;gap:12px;margin:0 0 24px}
.calibration-title>span{font-size:52px;line-height:1;color:#ffb900}
.calibration-title h1{font-size:28px;letter-spacing:0}
.receiver-calibration{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:start}
.receiver-calibration .level-card{background:#fff;box-shadow:0 2px 5px #00000008}
.calibration-photo{aspect-ratio:1.52;position:relative;overflow:hidden;background:#f5f5f5}
.calibration-photo img{display:block;width:100%;height:100%;object-fit:cover}
.level-indicator{position:absolute;bottom:9%;left:39%;width:22%;height:22px;border:2px solid #fff;border-radius:20px;background:#ffffff90;display:flex;justify-content:center;align-items:center}
.level-indicator i{width:25px;height:13px;border-radius:8px;background:#a2aab3;box-shadow:inset 0 2px 3px #ffffff90}
.receiver-calibration .level-instructions{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:2px 16px;padding:12px 16px;color:#343940;font-size:14px;font-weight:500;line-height:1.6;text-align:center}
.receiver-calibration .channels{padding:18px 20px}
.receiver-calibration .card-title{font-size:14px;color:#222;align-items:center;margin-bottom:12px}
.receiver-channel-list{max-height:290px;overflow-y:auto;scrollbar-width:thin}
.receiver-calibration .channel{grid-template-columns:70px minmax(0,1fr) 36px;font-size:11px;color:#30343b;gap:10px;margin:10px 0}
.receiver-calibration .channel>span:last-child{text-align:right;font-variant-numeric:tabular-nums}
.receiver-calibration .track{height:14px}
.receiver-calibration .action-stack{grid-template-columns:1fr;gap:12px;margin-top:16px}
.receiver-calibration .action-stack button{width:100%;min-height:49px;border-radius:30px;font-size:20px;font-weight:800;gap:14px}
.receiver-calibration .action-stack button span{font-size:30px;line-height:1}
.calibration-feedback{font-size:12px;color:#707781;line-height:1.7}
.calibration-feedback progress{width:100%;height:8px;accent-color:#ffc400;margin-top:14px}
.calibration-feedback p{margin:12px 0 0}
@media(max-width:900px){.receiver-calibration{grid-template-columns:1fr}.calibration-photo{aspect-ratio:1.65}.receiver-channel-list{max-height:300px}.calibration-title h1{font-size:25px}}

/* Ported from Configurator ReceiverTab channelBars: MSP_RC order, 800–2200 μs,
   active channel count, value centered over the progress indicator (GPL-3.0). */
.receiver-calibration .channel{grid-template-columns:65px minmax(0,1fr);gap:10px;font-size:12px}
.receiver-calibration .track{position:relative;height:20px;border-radius:5px;background:#f0f1f3}
.receiver-calibration .fill{border-radius:5px;transition:width .05s}
.channel-reading{position:absolute;inset:0;text-align:center;line-height:20px;font-size:11px;font-weight:700;color:#1e2732;font-variant-numeric:tabular-nums}
.receiver-binding-result{font-size:13px;line-height:1.6;color:#a46325;margin:12px 0 0}
.receiver-binding-result:empty{display:none}
.receiver-binding-result.connected{color:#24976a;font-weight:700}

/* Shared button geometry keeps icon/text centered with identical spacing. */
.receiver-calibration .action-stack button {
    display:flex;align-items:center;justify-content:center;gap:14px;
    padding:12px 24px;min-height:58px;
}
.receiver-calibration .action-stack button svg {
    width:30px;height:30px;flex:0 0 30px;display:block;
}
.receiver-calibration .action-stack button .action-label {
    display:block;font:inherit;line-height:1.2;white-space:nowrap;
}
.receiver-calibration .action-stack .receiver-connected {
    background:#e7f8ec;color:#188947;
}
.receiver-calibration .action-stack .receiver-connected:hover {background:#d9f2e1}
.calibration-title-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px}
.calibration-title-icon svg{display:block;width:36px;height:36px}

.receiver-channel-list .fill{width:100%;transform-origin:left center;transform:scaleX(0);transition:transform 32ms linear}
.mk4-stage{position:absolute;inset:0}
.mk4-stage canvas{display:block;width:100%;height:100%}
.calibration-photo.live-attitude .level-indicator{display:none}
.level-card:has(.live-attitude) .level-instructions{display:none}
/* Beginner flow */
.tour-confirm-pose{display:block;width:100%;min-width:0;padding:12px 16px;margin:16px 0 0;font-size:15px}
.tour-confirm-pose[hidden]{display:none}
.tour-layer{position:fixed;inset:0;z-index:1000;pointer-events:none}
.tour-layer[hidden]{display:none}
.tour-spot{position:fixed;border:3px solid #ff9900;border-radius:18px;box-shadow:0 0 0 9999px rgba(0,0,0,.55);pointer-events:none;box-sizing:border-box}
.tour-spot[hidden]{display:none}
.tour-tip{position:fixed;box-sizing:border-box;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border-radius:18px;background:#fff;box-shadow:0 12px 48px #0003;pointer-events:auto;color:#19212b;text-align:left}
.tour-tip h2{font-size:20px;margin:0 20px 12px 0;line-height:1.4}
.tour-tip p{font-size:14px;line-height:1.7;margin:0 0 12px}
.tour-tip .tour-status{color:#946000;font-size:13px}
.tour-tip .tour-status:empty{display:none}
.tour-exit{position:absolute;right:10px;top:8px;border:0;background:transparent;color:#737b86;font-size:25px;cursor:pointer}
.tour-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tour-actions button{min-width:0;padding:10px 12px;border-radius:10px;font-size:13px}
.tour-actions button[hidden]{display:none}
.mode-detail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:28px;width:90%}
.mode-countdown{display:block;width:100%;max-width:130px;height:5px;border:0;border-radius:6px;overflow:hidden;accent-color:#ed8314;background:#e5d9bf}
.mode-countdown[hidden]{display:none}
.mode-countdown::-webkit-progress-bar{background:#e5d9bf;border-radius:6px}
.mode-countdown::-webkit-progress-value{background:#ed8314;border-radius:6px}
.mode-countdown::-moz-progress-bar{background:#ed8314;border-radius:6px}
.beginner-guide {background:#fff8df;border-left:4px solid #ffb800;padding:16px 20px;border-radius:12px;color:#534b35;line-height:1.7;margin:20px 0}
.guide-stages {display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.guide-stages span {padding:10px 16px;border-radius:24px;background:#f3f4f6;color:#7b8491;font-weight:600}
.guide-stages .guide-current {background:#fff1bc;color:#986400;box-shadow:inset 0 0 0 2px #ffbb00}
.guide-stages .guide-done {background:#e7f8eb;color:#20864d}
.guide-focus {outline:3px solid #ff9900;outline-offset:4px}
.completion-screen {text-align:center;padding:22px 8px}
.completion-check {margin:0 auto 20px;width:72px;height:72px;display:grid;place-items:center;background:#e1f7e8;color:#1b9c51;border-radius:50%;font-size:44px}
.completion-screen h2 {line-height:1.6}
button:disabled {cursor:not-allowed}

.mode-preview{position:relative;width:min(100%,640px);height:280px;margin:8px auto 0;overflow:hidden;border:0;border-radius:0;background:transparent}
#mode-stage{position:absolute;inset:0;cursor:pointer}
#mode-stage canvas{display:block;width:100%;height:100%}
.mode-demo-overlay{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:center;gap:12px;font-size:13px;pointer-events:none}
.mode-stick{width:58px;height:58px;flex-shrink:0;border:1px solid #b9c0ca;border-radius:0;position:relative;overflow:hidden;background:#ffffffc9}
.mode-stick:before,.mode-stick:after{content:"";position:absolute;background:#d4d8df}
.mode-stick:before{width:1px;height:100%;left:50%;top:0}.mode-stick:after{height:1px;width:100%;left:0;top:50%}
.mode-stick i{position:absolute;width:14px;height:14px;left:21px;top:21px;border-radius:50%;background:#467cda;z-index:1}
.mode-stick[hidden]{display:none}
.mode-playback{position:absolute;top:10px;right:10px;display:flex;gap:6px}
.mode-playback button{border:1px solid #d9dfe6;border-radius:7px;padding:6px 10px;background:#fff;color:#394457;font:inherit;font-size:12px;cursor:pointer}
.mode-playback button[hidden]{display:none}
@media(max-width:650px){.mode-preview{height:250px}.mode-demo-overlay{font-size:12px}}

/* Flight-mode icons use the mode code already present on each card label. */
.flight-card:has([data-binding-label="ANGLE"]) {--mode-icon:url('assets/mode-angle.svg')}
.flight-card:has([data-binding-label="HORIZON"]) {--mode-icon:url('assets/mode-horizon.svg')}
.flight-card:has([data-binding-label="ACRO"]) {--mode-icon:url('assets/mode-acro.svg')}
.flight-card:has(:is([data-binding-label="ANGLE"],[data-binding-label="HORIZON"],[data-binding-label="ACRO"])) > i {
    width:32px;height:28px;background:var(--mode-icon) center / contain no-repeat;filter:none;mix-blend-mode:normal;
}
