/* Local flight screen. All styles stay inside its mount point. */
/* The authenticated shell explicitly adds this class while this view is mounted. */
body.freeflight-open #navigation{display:none!important}
body.freeflight-open .app-layout{grid-template-columns:minmax(0,1fr);min-height:0;max-width:1440px}
body.freeflight-open main{padding:24px 30px 36px;min-width:0}
@media(max-width:620px){body.freeflight-open main{padding:18px 16px 24px}}
@media(orientation:landscape) and (max-height:600px){body.freeflight-open main{padding:16px 20px 22px}}
.freeflight{--ff-navy:#18384e;--ff-muted:#687d8e;--ff-line:#dce5eb;--ff-mint:#d7f2e8;--ff-blue:#3158d9;color:#19384c;max-width:1240px;min-width:0;margin:0 auto;font-size:13px;line-height:1.6}
.freeflight *{box-sizing:border-box}.freeflight button,.freeflight input,.freeflight select{font:inherit}.freeflight button{cursor:pointer}.freeflight button:disabled{cursor:not-allowed}.freeflight button:focus-visible,.freeflight input:focus-visible,.freeflight select:focus-visible,.freeflight summary:focus-visible,.freeflight [tabindex]:focus-visible{outline:3px solid #7e9fff;outline-offset:3px}.freeflight [hidden]{display:none!important}
.freeflight .ff-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}.freeflight .ff-eyebrow{margin:0 0 7px;color:#517d80;font-size:9px;font-weight:800;letter-spacing:2px}.freeflight .ff-eyebrow span{margin-left:11px;font-size:8px;color:#89979f;letter-spacing:1px}.freeflight h1{font-size:28px;line-height:1.4;letter-spacing:-.04em;margin:0}.freeflight .ff-subtitle{font-size:12px;color:var(--ff-muted);margin:6px 0 0}.freeflight .ff-disclaimer{font-size:11px;color:#677c8d;margin:0 0 23px;line-height:1.8}
.freeflight .ff-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--ff-line);border-radius:8px;background:white;color:var(--ff-navy);padding:10px 14px;min-height:42px;font-size:12px;font-weight:700;white-space:normal;line-height:1.5}.freeflight .ff-button:hover{background:#edf3f8}.freeflight .ff-primary{background:var(--ff-navy);border-color:var(--ff-navy);color:#fff;min-width:155px}.freeflight .ff-primary:hover{background:#234c63}.freeflight .ff-exit{flex:none;min-width:98px;background:transparent}.freeflight .ff-button:disabled{opacity:.5}.freeflight .ff-session-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:18px}
.freeflight .ff-setup{display:flex;align-items:stretch;justify-content:space-between;gap:16px;margin:0 0 18px;flex-wrap:wrap}.freeflight .ff-aircrafts{display:flex;flex:1 1 390px;gap:8px;border:0;margin:0;padding:0;min-inline-size:0;max-width:565px}.freeflight .ff-aircrafts legend{font-size:10px;color:#687e8e;font-weight:650;margin-bottom:7px;padding:0}.freeflight .ff-aircraft{display:flex;align-items:center;gap:10px;position:relative;flex:1 1 0;min-width:0;border:1px solid #dbe5ed;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;line-height:1.45;color:#6d8090}.freeflight .ff-aircraft svg{width:45px;height:36px;flex:0 0 45px}.freeflight .ff-aircraft strong{display:block;color:#284759;font-size:13px;white-space:nowrap}.freeflight .ff-aircraft small{display:block;color:#7a8d9b;font-size:10px;margin-top:3px}.freeflight .ff-aircraft.is-selected{border-color:#739f9a;background:#eff8f4;box-shadow:inset 0 0 0 1px #739f9a;color:#527d77}.freeflight .ff-selected-mark{display:none;color:#417367;font-size:12px;margin-left:auto}.freeflight .ff-aircraft.is-selected .ff-selected-mark{display:block}.freeflight .ff-portrait-advice{display:none;background:#eaf0f6;border-radius:7px;font-size:11px;color:#526e81;padding:9px 12px;margin:0 0 13px}
.freeflight .ff-workspace{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:15px;align-items:start}.freeflight .ff-view-column{min-width:0}.freeflight .ff-flight-display{--ff-world-share:55;--ff-panel-share:45;display:flex;flex-direction:column;height:clamp(440px,52vw,610px);border:1px solid #243e4c;border-radius:13px;overflow:hidden;background:#192d3a;box-shadow:0 8px 26px #18384e0d;min-width:0}.freeflight figure{margin:0;min-width:0}.freeflight .ff-world{position:relative;flex:var(--ff-world-share) 1 0;min-height:150px;background:#a2c4d8;overflow:hidden}.freeflight canvas{display:block;width:100%;height:100%;max-width:100%}.freeflight .ff-world canvas{position:absolute;inset:0}.freeflight .ff-scene-caption{position:absolute;z-index:1;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:linear-gradient(#102e4b60,transparent);font-size:10px;font-weight:650;color:#fff;letter-spacing:.035em;pointer-events:none}.freeflight .ff-scene-caption>span:first-child{display:flex;align-items:center;gap:6px}.freeflight .ff-scene-caption i{width:5px;height:5px;border-radius:50%;background:#def0e8}.freeflight .ff-mode-badge{padding:3px 8px;border:1px solid #ffffff50;border-radius:5px;background:#132b4570;line-height:1.6}.freeflight.is-running .ff-mode-badge{background:#284d45cf;color:#e8fff3;border-color:#d0f2e94a}.freeflight .ff-scene-footer{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:9px;font-weight:650;letter-spacing:.07em;color:#fff;padding:8px 14px;background:linear-gradient(transparent,#102e4b45)}.freeflight .ff-scene-footer time{font-variant-numeric:tabular-nums;letter-spacing:.08em;margin-left:5px}.freeflight .ff-scene-overlay{position:absolute;z-index:2;inset:0;display:flex;justify-content:center;align-items:center;background:#16334535;backdrop-filter:blur(2px);padding:30px 15px}.freeflight .ff-overlay-content{text-align:center;background:#163448e6;box-shadow:0 8px 30px #18384e20;border:1px solid #e7f0ed35;border-radius:11px;padding:16px 22px;max-width:370px;color:white}.freeflight .ff-overlay-symbol{font-size:17px;line-height:1;display:inline-flex;align-items:center;justify-content:center;height:28px;width:28px;border:1px solid #dde9e450;border-radius:50%;color:#d7eee6;margin-bottom:8px}.freeflight .ff-overlay-content h2{font-size:16px;margin:0 0 5px;letter-spacing:.02em;line-height:1.6}.freeflight .ff-overlay-content p{font-size:10px;margin:0;line-height:1.9;color:#d4e0e5}.freeflight .ff-overlay-start{margin-top:12px;background:var(--ff-mint);border-color:var(--ff-mint);color:#224d47;min-height:37px;padding:8px 14px;font-size:11px}.freeflight .ff-overlay-start:hover{background:#edfff8}
.freeflight .ff-panel{position:relative;flex:var(--ff-panel-share) 1 0;min-height:180px;padding-top:28px;background:#1a2730;border-top:3px solid #10212b;overflow:hidden}.freeflight .ff-panel-heading{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;height:27px;padding:0 12px;gap:10px;border-bottom:1px solid #dce8ed0c;background:#21333e;color:#bacbd3}.freeflight .ff-panel-heading figcaption{font-size:9px;font-weight:650;letter-spacing:.045em}.freeflight .ff-panel-expand{font-size:9px;border:0;background:transparent;color:#d0e1e8;display:inline-flex;align-items:center;gap:8px;height:25px;padding:2px 0;white-space:nowrap}.freeflight .ff-panel-expand:hover{color:white}.freeflight .ff-panel-expand span{font-size:15px}.freeflight .ff-flight-display.is-panel-enlarged .ff-world{flex:30 1 0}.freeflight .ff-flight-display.is-panel-enlarged .ff-panel{flex:70 1 0;min-height:280px}.freeflight .ff-flight-display.is-panel-enlarged{height:clamp(500px,61vw,720px)}
.freeflight .ff-readouts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:12px 0;gap:0;border-bottom:1px solid var(--ff-line)}.freeflight .ff-readouts>div{padding:0 9px;border-right:1px solid var(--ff-line);min-width:0}.freeflight .ff-readouts>div:first-child{padding-left:2px}.freeflight .ff-readouts>div:last-child{border-right:0}.freeflight .ff-readouts dt{font-size:9px;color:#788b9a;margin:0 0 3px;white-space:nowrap}.freeflight .ff-readouts dd{display:flex;gap:3px;align-items:baseline;flex-wrap:wrap;font-size:18px;line-height:1.4;letter-spacing:-.04em;font-weight:700;font-variant-numeric:tabular-nums;margin:0;color:#294655}.freeflight .ff-readouts small{font-size:8px;font-weight:500;color:#718797;letter-spacing:0;white-space:nowrap}
.freeflight .ff-controls{min-width:0;border:1px solid var(--ff-line);border-radius:13px;padding:17px 15px;background:#fff;box-shadow:0 5px 18px #18384e03}.freeflight .ff-controls-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:18px}.freeflight .ff-controls-title h2{font-size:13px;margin:0}.freeflight .ff-controls-title>span{font-size:6px;font-weight:700;letter-spacing:.07em;color:#91a1ad}.freeflight .ff-control-label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:650;color:#426070;margin:0 0 10px}.freeflight .ff-control-label>span{font-size:8px;font-weight:400;color:#8c9da9}.freeflight .ff-stick{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;aspect-ratio:1;border:1px solid #d9e3e9;border-radius:12px;background:radial-gradient(ellipse at center,#f7fafb 0%,#f7fafb 48%,#eef3f6 100%);width:100%;max-width:220px;margin:auto;cursor:grab;overflow:hidden}.freeflight.ff-stick-active .ff-stick{cursor:grabbing;border-color:#7eaba1}.freeflight .ff-stick-ring{position:absolute;width:61%;height:61%;border:1px dashed #ccdce3;border-radius:50%;left:19.5%;top:19.5%}.freeflight .ff-stick-cross{position:absolute;background:#dbe5ea}.freeflight .ff-stick-cross-x{height:1px;width:66%;top:50%;left:17%}.freeflight .ff-stick-cross-y{height:66%;width:1px;left:50%;top:17%}.freeflight .ff-stick-label{position:absolute;font-size:9px;color:#64808d;line-height:1;pointer-events:none}.freeflight .ff-stick-top{top:12px;left:0;right:0;text-align:center}.freeflight .ff-stick-bottom{bottom:12px;left:0;right:0;text-align:center}.freeflight .ff-stick-left{left:11px;top:calc(50% - 4px)}.freeflight .ff-stick-right{right:11px;top:calc(50% - 4px)}.freeflight .ff-stick-knob{position:absolute;left:calc(50% - 23px);top:calc(50% - 23px);width:46px;height:46px;border:4px solid #fff;border-radius:50%;background:linear-gradient(140deg,#54778a,#1c4055);box-shadow:0 3px 8px #17384e29,0 0 0 1px #b8ccd5;display:flex;align-items:center;justify-content:center;color:#d6e7ed;pointer-events:none;will-change:transform}.freeflight .ff-stick-knob span{font-size:17px;font-weight:300}.freeflight.ff-stick-active .ff-stick-knob{background:linear-gradient(140deg,#6a9c8e,#315a52);box-shadow:0 4px 12px #2e706b3d,0 0 0 1px #80b4a9}.freeflight .ff-stick-feedback{font-size:9px;color:#7e929e;text-align:center;min-height:15px;margin:7px 0 16px}.freeflight .ff-power{border-top:1px solid #e7edf2;padding-top:17px}.freeflight .ff-power output{font-size:13px;font-weight:750;color:#284d59;font-variant-numeric:tabular-nums}.freeflight input[type=range]{appearance:auto;-webkit-appearance:auto;padding:0;border:0;background:transparent;width:100%;min-height:24px;height:24px;margin:0;accent-color:#487b73;cursor:pointer;border-radius:0}.freeflight .ff-power-limits{display:flex;justify-content:space-between;font-size:7px;color:#8a9ca8;letter-spacing:.08em;margin:0 0 12px}.freeflight .ff-throttle-buttons{display:flex;gap:7px}.freeflight .ff-throttle-buttons button{flex:1;min-height:35px;padding:6px;font-size:10px;background:#f7fafb}.freeflight .ff-keyboard-help{margin:17px 0 0;padding-top:15px;border-top:1px solid #e7edf2;color:#7b8f9c;font-size:8px;line-height:2.1}.freeflight .ff-keyboard-help>span{display:block;white-space:nowrap}.freeflight kbd{font:inherit;font-size:8px;font-weight:600;color:#607887;display:inline-block;border:1px solid #dbe4e9;border-bottom-width:2px;background:#fafcfd;border-radius:3px;min-width:14px;text-align:center;padding:0 2px;line-height:1.5;margin-right:2px}
.freeflight .ff-status-message{font-size:11px;line-height:1.8;color:#6c8190;margin:12px 0 20px;padding-left:2px;min-height:20px}.freeflight.has-limitation .ff-status-message{color:#9b583c;background:#fff3e5;border:1px solid #f1dfc6;border-radius:8px;padding:10px 12px}.freeflight .ff-settings{border:1px solid var(--ff-line);border-radius:10px;background:#fff;overflow:hidden}.freeflight .ff-settings>summary{cursor:pointer;min-height:47px;padding:13px 16px;font-size:11px;font-weight:650;color:#426172;list-style-position:inside}.freeflight .ff-settings>summary>span{margin-left:9px;font-size:10px;color:#8b9ba6;font-weight:400}.freeflight .ff-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 20px;padding:5px 18px 18px}.freeflight .ff-settings-grid>label{font-size:10px;color:#5b7586;min-width:0;position:relative}.freeflight .ff-settings-grid select,.freeflight .ff-settings-grid input:not([type=range]){width:100%;min-width:0;margin:7px 0 0;border:1px solid #dce6ec;border-radius:6px;min-height:38px;padding:7px 10px;background:white;color:#244356;font-size:11px;line-height:1.5}.freeflight .ff-settings-grid input[type=range]{display:block;margin-top:8px}.freeflight .ff-settings-grid output,.freeflight .ff-unit{float:right;font-size:10px;font-weight:500;color:#7b919e}.freeflight .ff-range-hints{display:flex;justify-content:space-between;font-size:8px;font-weight:400;color:#8a9ca8}.freeflight .ff-settings-note{border-top:1px solid #e7edf2;margin:0;padding:11px 18px;color:#7a8e9b;font-size:10px;line-height:1.8}
@media(min-width:1350px){.freeflight .ff-workspace{grid-template-columns:minmax(0,1fr) 230px}.freeflight .ff-controls{padding:19px 18px}.freeflight .ff-controls-title>span{font-size:7px}}
@media(max-width:1050px){.freeflight .ff-workspace{grid-template-columns:minmax(0,1fr) 195px;gap:12px}.freeflight .ff-controls{padding:14px 12px}.freeflight .ff-controls-title>span{font-size:5px}.freeflight .ff-aircrafts{max-width:none}.freeflight .ff-session-actions{padding-top:0}.freeflight .ff-readouts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 0}.freeflight .ff-readouts>div:nth-child(3){border-right:0}.freeflight .ff-readouts>div:nth-child(4){padding-left:2px}.freeflight .ff-keyboard-help{font-size:7px}.freeflight .ff-flight-display{height:510px}.freeflight .ff-flight-display.is-panel-enlarged{height:600px}}
@media(max-width:760px){.freeflight .ff-workspace{grid-template-columns:minmax(0,1fr);gap:15px}.freeflight .ff-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px;padding:14px 18px}.freeflight .ff-controls-title{grid-column:1/-1;margin-bottom:10px}.freeflight .ff-controls-title>span{font-size:7px}.freeflight .ff-stick-section{grid-row:2/4}.freeflight .ff-stick{max-width:180px}.freeflight .ff-stick-feedback{margin-bottom:0}.freeflight .ff-power{grid-column:2;border-top:0;padding-top:0;align-self:center}.freeflight .ff-keyboard-help{grid-column:2;align-self:end;font-size:8px;padding-top:10px;margin-top:10px}.freeflight .ff-flight-display{height:540px}.freeflight .ff-flight-display.is-panel-enlarged{height:630px}.freeflight .ff-readouts{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}.freeflight .ff-readouts>div:nth-child(3){border-right:1px solid var(--ff-line)}.freeflight .ff-readouts>div:nth-child(4){padding-left:9px}.freeflight .ff-readouts dd{font-size:17px}.freeflight .ff-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.freeflight .ff-setup{gap:12px}.freeflight .ff-aircrafts{flex-basis:100%}.freeflight .ff-session-actions{width:100%}.freeflight .ff-session-actions>button:first-child{flex:1}}
@media(max-width:480px){.freeflight .ff-heading{align-items:flex-start;gap:8px}.freeflight h1{font-size:24px}.freeflight .ff-eyebrow{font-size:8px;letter-spacing:1.5px}.freeflight .ff-eyebrow span{display:none}.freeflight .ff-subtitle{font-size:10px;max-width:210px;line-height:1.8}.freeflight .ff-exit{min-width:0;font-size:10px;padding:8px 9px;min-height:36px;gap:5px}.freeflight .ff-disclaimer{font-size:10px;margin-bottom:16px}.freeflight .ff-aircraft{padding:10px 8px;gap:6px}.freeflight .ff-aircraft svg{width:30px;height:29px;flex-basis:30px}.freeflight .ff-aircraft strong{font-size:11px}.freeflight .ff-aircraft small{font-size:8px}.freeflight .ff-selected-mark{display:none!important}.freeflight .ff-button{font-size:11px;padding:10px 11px}.freeflight .ff-primary{min-width:0}.freeflight .ff-flight-display{height:480px;border-radius:10px}.freeflight .ff-world{min-height:190px}.freeflight .ff-panel{min-height:260px}.freeflight .ff-flight-display.is-panel-enlarged{height:525px}.freeflight .ff-flight-display.is-panel-enlarged .ff-panel{min-height:290px}.freeflight .ff-overlay-content{padding:12px 14px;max-width:270px}.freeflight .ff-overlay-content h2{font-size:14px}.freeflight .ff-overlay-content p{font-size:9px}.freeflight .ff-overlay-symbol{display:none}.freeflight .ff-overlay-start{font-size:10px;min-height:34px;margin-top:9px;padding:6px 12px}.freeflight .ff-scene-caption{padding:9px 10px;font-size:9px}.freeflight .ff-scene-footer{padding:7px 10px;font-size:8px}.freeflight .ff-panel-heading{padding:0 9px}.freeflight .ff-panel-heading figcaption,.freeflight .ff-panel-expand{font-size:8px}.freeflight .ff-readouts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 0;padding:12px 0}.freeflight .ff-readouts>div:nth-child(3){border-right:0}.freeflight .ff-readouts>div:nth-child(4){padding-left:2px}.freeflight .ff-readouts dd{font-size:19px}.freeflight .ff-controls{padding:13px 12px;column-gap:14px}.freeflight .ff-stick-label{font-size:7px}.freeflight .ff-stick-top{top:10px}.freeflight .ff-stick-bottom{bottom:10px}.freeflight .ff-stick-left{left:7px}.freeflight .ff-stick-right{right:7px}.freeflight .ff-stick-knob{width:38px;height:38px;left:calc(50% - 19px);top:calc(50% - 19px);border-width:3px}.freeflight .ff-stick-knob span{font-size:15px}.freeflight .ff-control-label{font-size:10px;margin-bottom:8px}.freeflight .ff-control-label>span{font-size:7px}.freeflight .ff-throttle-buttons{gap:5px}.freeflight .ff-throttle-buttons button{font-size:9px;min-height:34px;padding:6px 3px}.freeflight .ff-keyboard-help{font-size:7px;line-height:1.8}.freeflight .ff-keyboard-help>span{white-space:normal}.freeflight kbd{font-size:7px;min-width:12px;padding:0 1px;margin-right:1px}.freeflight .ff-status-message{font-size:10px}.freeflight .ff-settings>summary{font-size:11px;padding:13px}.freeflight .ff-settings>summary>span{font-size:8px;margin-left:5px}.freeflight .ff-settings-grid{gap:15px 13px;padding:5px 13px 15px}.freeflight .ff-settings-grid select,.freeflight .ff-settings-grid input:not([type=range]){font-size:12px;padding:7px;min-height:40px}.freeflight .ff-settings-grid>label{font-size:9px}.freeflight .ff-settings-grid output,.freeflight .ff-unit{font-size:9px}.freeflight .ff-settings-note{padding:11px 13px;font-size:9px}}
@media(orientation:portrait) and (max-width:900px){.freeflight .ff-portrait-advice{display:block}}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){.freeflight .ff-workspace{scroll-margin-top:8px;grid-template-columns:minmax(0,1fr) 180px}.freeflight .ff-flight-display{height:clamp(300px,calc(100dvh - 16px),470px)}.freeflight .ff-world{min-height:130px}.freeflight .ff-panel{min-height:150px}.freeflight .ff-flight-display.is-panel-enlarged{height:440px}.freeflight .ff-flight-display.is-panel-enlarged .ff-panel{min-height:280px}.freeflight .ff-controls{display:block;padding:10px 12px}.freeflight .ff-controls-title{margin-bottom:6px}.freeflight .ff-controls-title h2{font-size:11px}.freeflight .ff-control-label{font-size:9px;margin-bottom:5px}.freeflight .ff-control-label>span{font-size:7px}.freeflight .ff-stick{max-width:110px}.freeflight .ff-stick-label{font-size:6px}.freeflight .ff-stick-top{top:7px}.freeflight .ff-stick-bottom{bottom:7px}.freeflight .ff-stick-left{left:6px}.freeflight .ff-stick-right{right:6px}.freeflight .ff-stick-knob{width:34px;height:34px;left:calc(50% - 17px);top:calc(50% - 17px);border-width:3px}.freeflight .ff-stick-knob span{font-size:13px}.freeflight .ff-stick-feedback{font-size:8px;min-height:12px;margin:3px 0 5px}.freeflight .ff-power{padding-top:7px}.freeflight .ff-power-limits{margin-bottom:5px}.freeflight .ff-throttle-buttons button{min-height:30px;padding:4px;font-size:9px}.freeflight .ff-keyboard-help{margin-top:7px;padding-top:6px;font-size:7px;line-height:1.8}.freeflight .ff-overlay-symbol{display:none}.freeflight .ff-overlay-content{padding:10px 16px}.freeflight .ff-overlay-content h2{font-size:13px}.freeflight .ff-overlay-content p{font-size:9px}.freeflight .ff-overlay-start{margin-top:7px;min-height:30px;padding:5px 12px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.freeflight *{scroll-behavior:auto}}

.freeflight-entry{display:flex;align-items:center;justify-content:space-between;gap:24px}.freeflight-entry h2{margin:8px 0}.freeflight-entry p{max-width:48rem}.freeflight-entry button{flex-shrink:0}@media(max-width:700px){.freeflight-entry{align-items:stretch;flex-direction:column;gap:12px}}

/* Tilt and propeller controls: input sources stay separate and every switch remains reachable. */
.freeflight .ff-input-mode-label,.freeflight .ff-effect-mode-label{display:block;min-width:0;font-size:10px;font-weight:650;color:#426070}
.freeflight .ff-input-mode-label{margin:0 0 15px}
.freeflight .ff-input-mode-label select,.freeflight .ff-effect-mode-label select{display:block;width:100%;min-width:0;max-width:100%;height:auto;min-height:42px;margin-top:5px;padding:8px 10px;border:1px solid var(--ff-line);border-radius:7px;background:#fff;color:var(--ff-navy);font:inherit;font-size:12px}
.freeflight .ff-tilt{min-width:0;margin-bottom:16px;padding:12px;border:1px solid #cbdedb;border-radius:9px;background:#f1f8f5}
.freeflight .ff-tilt .ff-button{width:100%;font-size:11px;padding:8px 9px;margin:0 0 8px}
.freeflight .ff-tilt-status{font-size:11px;line-height:1.8;color:#315c53;margin:0 0 10px;overflow-wrap:anywhere}
.freeflight .ff-tilt-help{font-size:10px;line-height:1.8;color:#647c80;margin:10px 0 0}
.freeflight .ff-check-label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.8;color:#456375;min-width:0;cursor:pointer}
.freeflight input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;display:inline-block;flex:0 0 18px;width:18px;height:18px;min-height:0;padding:0;margin:1px 0 0;accent-color:#367a6e;border-radius:3px}
.freeflight .ff-rudder{border-top:1px solid #e7edf2;padding-top:14px;margin-top:15px;min-width:0}
.freeflight .ff-rudder output{font-size:10px;color:#4c7e74;font-weight:650}
.freeflight .ff-rudder-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.freeflight .ff-rudder-buttons button{min-width:0;min-height:44px;padding:8px 5px;touch-action:none;user-select:none;-webkit-user-select:none}
.freeflight .ff-rudder-buttons button[aria-pressed=true]{background:#d7f2e8;border-color:#7aa99c;color:#23584b}
.freeflight .ff-rudder-hint{font-size:9px;color:#788c99;line-height:1.7;margin:6px 0 10px}
.freeflight .ff-rudder-hint:last-child{margin-bottom:0}
.freeflight .ff-keyboard-help>span{white-space:normal}
.freeflight .ff-effects{min-width:0;margin-top:16px;padding:16px;border:1px solid var(--ff-line);border-radius:11px;background:#fff}
.freeflight .ff-effects-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.freeflight .ff-effects-heading h2{font-size:14px;line-height:1.5;margin:0 0 4px}
.freeflight .ff-effects-heading p{font-size:10px;color:#758b97;margin:0}
.freeflight .ff-effect-mode-label{flex:0 1 215px;max-width:100%}
.freeflight .ff-effects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.freeflight .ff-effect-switch{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #e0e8ed;border-radius:8px;min-width:0;cursor:pointer;background:#f8fafb}
.freeflight .ff-effect-switch:has(input:checked){border-color:#a8c9c0;background:#f0f8f4}
.freeflight .ff-effect-switch>span{min-width:0;overflow-wrap:anywhere}
.freeflight .ff-effect-switch strong{font-size:11px;line-height:1.6;font-weight:650;display:block}
.freeflight .ff-effect-switch small{font-size:10px;color:#55786d;line-height:1.8;display:block;margin-top:4px;min-height:18px}
.freeflight .ff-effect-display{margin-top:13px;font-size:10px}
.freeflight .ff-effect-note{font-size:10px;color:#788b96;line-height:1.8;margin:8px 0 0}
@media(max-width:760px){
  .freeflight .ff-controls{grid-template-areas:"title title" "mode mode" "attitude power" "rudder rudder" "keyboard keyboard";grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
  .freeflight .ff-controls-title{grid-area:title;margin:0}
  .freeflight .ff-input-mode-label{grid-area:mode;margin:0}
  .freeflight .ff-stick-section{grid-area:attitude;min-width:0}
  .freeflight .ff-tilt{grid-area:attitude;margin:0}
  .freeflight .ff-power{grid-area:power;align-self:center;min-width:0}
  .freeflight .ff-rudder{grid-area:rudder;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:5px 18px;margin:0;padding-top:12px}
  .freeflight .ff-rudder>.ff-control-label{grid-column:1;margin:0}
  .freeflight .ff-rudder-buttons{grid-column:1;grid-row:2/4}
  .freeflight .ff-rudder>.ff-rudder-hint:first-of-type{grid-column:1;grid-row:4;margin:0}
  .freeflight .ff-rudder>.ff-check-label{grid-column:2;grid-row:2;align-self:center}
  .freeflight .ff-rudder>.ff-rudder-hint:last-of-type{grid-column:2;grid-row:3/5;margin:0}
  .freeflight .ff-keyboard-help{grid-area:keyboard;margin:0;padding-top:10px}
  .freeflight.ff-tilt-mode .ff-controls{grid-template-areas:"title title" "mode mode" "attitude attitude" "power power" "rudder rudder" "keyboard keyboard"}
  .freeflight .ff-tilt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
  .freeflight .ff-tilt-status,.freeflight .ff-tilt-help,.freeflight .ff-tilt>.ff-check-label{grid-column:1/-1;margin:0}
  .freeflight .ff-tilt .ff-button{margin:0;align-self:start;min-height:44px}
  .freeflight .ff-tilt .ff-button[hidden]+.ff-button{grid-column:1/-1}
  .freeflight .ff-input-mode-label select,.freeflight .ff-effect-mode-label select{font-size:16px}
}
@media(max-width:480px){
  .freeflight .ff-controls{column-gap:14px}
  .freeflight .ff-effects{padding:13px}
  .freeflight .ff-effect-mode-label{flex-basis:100%}
  .freeflight .ff-effects-heading{gap:10px}
  .freeflight .ff-effects-grid{grid-template-columns:minmax(0,1fr);gap:7px}
  .freeflight .ff-effect-switch{min-height:44px;padding:10px 12px}
  .freeflight .ff-effect-switch strong{font-size:12px}
  .freeflight .ff-rudder{column-gap:12px}
  .freeflight .ff-rudder-buttons{gap:5px}
  .freeflight .ff-rudder-buttons button{font-size:11px}
  .freeflight .ff-rudder .ff-check-label{font-size:10px}
  .freeflight .ff-tilt{padding:10px}
  .freeflight .ff-tilt .ff-button{font-size:11px;padding:8px}
}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){
  .freeflight .ff-controls,.freeflight.ff-tilt-mode .ff-controls{display:block}
  .freeflight .ff-controls-title{margin-bottom:9px}
  .freeflight .ff-input-mode-label{margin-bottom:10px}
  .freeflight .ff-input-mode-label select{font-size:12px;padding:6px;min-height:38px}
  .freeflight .ff-tilt{display:block;margin-bottom:10px;padding:9px}
  .freeflight .ff-tilt-status{font-size:10px;margin-bottom:8px}
  .freeflight .ff-tilt .ff-button{margin-bottom:7px}
  .freeflight .ff-tilt-help{font-size:9px;margin-top:7px}
  .freeflight .ff-rudder{display:block;padding-top:10px;margin-top:10px}
  .freeflight .ff-rudder .ff-control-label{margin-bottom:6px}
  .freeflight .ff-rudder>.ff-rudder-hint:first-of-type{margin:5px 0 8px}
  .freeflight .ff-rudder>.ff-rudder-hint:last-of-type{margin-top:4px}
  .freeflight .ff-keyboard-help{margin-top:10px;padding-top:8px}
  .freeflight .ff-effect-mode-label{flex-basis:100%}
  .freeflight .ff-effects-grid{grid-template-columns:minmax(0,1fr)}
}

/* Keep operative controls beside the cockpit; detailed setup stays available on pause. */
.freeflight .ff-view-column{grid-column:1;grid-row:1}
.freeflight .ff-controls{grid-column:2;grid-row:1 / span 2}
.freeflight .ff-effects{grid-column:1;grid-row:2;margin-top:0}
.freeflight .ff-quick-actions{display:none}
@media(max-width:760px){
  .freeflight .ff-view-column{grid-column:1;grid-row:1}
  .freeflight .ff-controls{grid-column:1;grid-row:2}
  .freeflight .ff-effects{grid-column:1;grid-row:3}
}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){
  .freeflight .ff-view-column{grid-column:1;grid-row:1}
  .freeflight .ff-controls{grid-column:2;grid-row:1 / span 2}
  .freeflight .ff-effects{grid-column:1;grid-row:2}
  .freeflight.is-running .ff-controls{padding:8px 10px}
  .freeflight.is-running .ff-controls-title{margin:0 0 5px}
  .freeflight.is-running .ff-controls-title>span{font-size:6px}
  .freeflight.is-running .ff-quick-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:5px;margin-bottom:7px}
  .freeflight.is-running .ff-quick-actions .ff-button{font-size:9px;min-height:34px;padding:6px 3px;gap:3px}
  .freeflight.is-running .ff-input-mode-label,
  .freeflight.is-running .ff-keyboard-help,
  .freeflight.is-running .ff-rudder-hint,
  .freeflight.is-running .ff-tilt-status,
  .freeflight.is-running .ff-tilt-help,
  .freeflight.is-running .ff-tilt>.ff-check-label{display:none}
  .freeflight.is-running .ff-tilt{padding:0;border:0;background:transparent;margin:0 0 7px}
  .freeflight.is-running .ff-tilt .ff-button{font-size:10px;min-height:34px;padding:6px 4px;margin:0}
  .freeflight.is-running .ff-stick{max-width:96px}
  .freeflight.is-running .ff-stick-feedback{font-size:7px;margin:2px 0 4px;min-height:10px;line-height:1.4}
  .freeflight.is-running .ff-control-label{font-size:9px;margin:0 0 4px}
  .freeflight.is-running .ff-power{padding-top:6px}
  .freeflight.is-running .ff-power-limits{font-size:6px;margin:0}
  .freeflight.is-running .ff-throttle-buttons{display:none}
  .freeflight.is-running .ff-rudder{padding-top:7px;margin-top:7px}
  .freeflight.is-running .ff-rudder-buttons button{min-height:36px;padding:6px 4px;font-size:10px}
  .freeflight.is-running .ff-rudder>.ff-check-label{font-size:9px;margin-top:7px;line-height:18px}
  .freeflight.is-running .ff-rudder input[type=checkbox]{width:16px;height:16px;flex-basis:16px}
}
