/* Flight path uses the same tokens and studio surfaces as the home editor. */
.flight-language { color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.flight-language:hover { color: var(--acid); }
.flight-intro { width: min(100%, 1660px); margin: 0 auto; padding: clamp(32px,5vw,72px) clamp(18px,3.2vw,54px) clamp(30px,4.4vw,56px); }
.flight-intro > div { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); align-items: end; column-gap: clamp(36px,7vw,110px); }
.flight-eyebrow { color: var(--acid); font: 500 10px var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.flight-intro .flight-eyebrow { grid-column: 1/-1; margin: 0 0 14px; }
.flight-intro h1 { max-width: 950px; margin: 0; color: var(--paper); font-family: var(--font-display); font-size: clamp(52px,6.8vw,112px); font-weight: 500; line-height: .97; letter-spacing: -.057em; text-wrap: balance; }
.flight-intro p:not(.flight-eyebrow) { max-width: 420px; margin: 0; padding-bottom: 8px; color: var(--muted-strong); font-family: var(--font-editorial); font-size: clamp(18px,1.55vw,23px); line-height: 1.42; }
html[data-script="hans"] .flight-intro h1 { letter-spacing: 0; line-height: 1.2; }
.flight-studio { width: min(calc(100% - 2 * clamp(18px,3.2vw,54px)), 1552px); margin: 0 auto; display: grid; grid-template-columns: minmax(246px,300px) minmax(0,1fr) minmax(250px,306px); align-items: start; gap: 16px; }
.flight-panel,.flight-stage { min-width: 0; color: var(--text); background: linear-gradient(180deg,rgba(255,255,255,.016),transparent 120px),var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flight-panel { padding: 20px; }
.flight-panel .panel-heading,.stage-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-bottom: 20px; color: var(--muted); font: 500 9px var(--font-mono); letter-spacing: .075em; }
.flight-panel .panel-heading span:first-child { color: var(--acid); }
.flight-panel h2 { margin: 0 0 24px; color: var(--paper); font-family: var(--font-display); font-size: 31px; font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.flight-panel h2 + .hint { margin-top: -14px; margin-bottom: 26px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.route-fields { margin-top: 24px; }
.place-field { position: relative; }
.place-field label,.field label { display: block; margin: 0 0 9px; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.place-field input,.field input:not([type=range]),.field select { width: 100%; height: 48px; padding: 0 12px; color: var(--paper); background: #11110e; border: 1px solid #3c3c33; border-radius: 10px; font-size: 12px; }
.place-field input { padding-right: 44px; font-family: var(--font-editorial); font-size: 17px; }
.place-field input:focus,.field input:focus,.field select:focus { outline: 0; border-color: var(--acid); box-shadow: 0 0 0 3px var(--acid-soft); }
.field input::placeholder { color: #77776b; }
.pin { position: absolute; right: 5px; bottom: 5px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--acid); cursor: pointer; font-size: 22px; }
.swap { display: block; width: 30px; height: 30px; margin: 7px auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-strong); background: #22221c; cursor: pointer; }
.pin:hover,.swap:hover { color: var(--acid); }
.distance { min-height: 20px; margin: 12px 0 0; color: var(--acid); font: 500 10px var(--font-mono); }
.suggestions { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow: auto; padding: 4px; background: #20201b; border: 1px solid #45453b; border-radius: 10px; box-shadow: 0 16px 32px #0008; }
.suggestions button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--paper); text-align: left; font-size: 12px; cursor: pointer; }
.suggestions button:hover,.suggestions button:focus { background: #34342c; }
.suggestions button:disabled { color: var(--muted); cursor: default; }
.field { margin-top: 22px; }
.field output { float: right; color: var(--acid); font-family: var(--font-mono); font-size: 10px; }
.field select { cursor: pointer; }
.flight-ratios { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flight-ratios button { min-height: 46px; }
input[type=range] { width: 100%; accent-color: var(--acid); cursor: pointer; }
.flight-primary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 72px; margin-top: 26px; padding: 14px 17px; color: var(--ink); background: var(--acid); border: 1px solid var(--acid); border-radius: 12px; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; transition: transform 180ms var(--ease-out),background 180ms ease,opacity 180ms ease; }
.flight-primary:hover:not(:disabled) { background: #edff65; transform: translateY(-2px); }
.flight-primary:disabled { opacity: .7; cursor: progress; }
.flight-stage { display: flex; flex-direction: column; min-height: 690px; padding: 18px; overflow: hidden; }
.stage-top { min-height: 28px; margin-bottom: 9px; }
.stage-top span:last-child { color: var(--acid); }
.stage-body { position: relative; display: grid; flex: 1; min-height: 500px; padding: clamp(18px,3vw,38px); overflow: hidden; background: radial-gradient(circle at 50% 45%,rgba(243,238,223,.06),transparent 30%),radial-gradient(circle,rgba(255,255,255,.11) .7px,transparent .9px); background-size: auto,24px 24px; border: 1px solid var(--line-soft); border-radius: 16px; place-items: center; }
.stage-body::before,.stage-body::after { position: absolute; width: 54px; height: 54px; content: ""; opacity: .38; pointer-events: none; }
.stage-body::before { top: 12px; left: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stage-body::after { right: 12px; bottom: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-frame { max-width: 100%; max-height: 580px; padding: 10px; line-height: 0; background: #0c0c09; border: 1px dashed rgba(243,238,223,.3); border-radius: 17px; box-shadow: var(--shadow-deep); }
.preview-frame canvas { display: block; max-width: 100%; max-height: 558px; width: auto; height: auto; border-radius: 7px; }
.stage-controls { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px 0; color: #77776b; font: 500 9px var(--font-mono); letter-spacing: .03em; }
.stage-controls button { padding: 8px 0; border: 0; background: transparent; color: var(--muted-strong); font-size: 11px; cursor: pointer; }
.stage-controls button:hover { color: var(--acid); }
.flight-settings details { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.flight-settings summary { color: var(--muted-strong); font: 500 10px var(--font-mono); cursor: pointer; }
.pin-panel { margin: 14px 0; padding: 12px; background: #11110e; border: 1px solid var(--line); border-radius: 11px; }
.pin-panel p { color: var(--muted-strong); font-size: 12px; }
.pin-panel canvas { width: 100%; height: auto; border-radius: 6px; cursor: crosshair; }
.pin-panel button { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--muted-strong); font-size: 11px; text-decoration: underline; cursor: pointer; }
.flight-about { width: min(calc(100% - 2 * clamp(18px,3.2vw,54px)), 1320px); margin: 0 auto; padding: clamp(75px,10vw,140px) 0 90px; }
.flight-about h2 { max-width: 18em; margin: 0 0 0.45em; color: var(--paper); font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.flight-about p:not(.flight-eyebrow) { max-width: 68ch; margin: 0 0 1em; color: var(--text); font-family: var(--font-editorial); font-size: 19px; line-height: 1.65; }
.flight-about a { color: var(--muted-strong); text-decoration: underline; text-underline-offset: 3px; }
.flight-about a:hover { color: var(--acid); }
.flight-footer { display: flex; flex-wrap: wrap; gap: 20px 30px; width: min(calc(100% - 2 * clamp(18px,3.2vw,54px)),1320px); margin: 0 auto; padding: 30px 0 40px; border-top: 1px solid var(--line-soft); color: var(--muted-strong); font-size: 12px; }
.flight-footer span { flex: 1; color: var(--muted); }
.flight-footer a:hover { color: var(--acid); }
@media(max-width:1100px) { .flight-studio { grid-template-columns: minmax(230px,1fr) minmax(0,1.7fr); } .flight-settings { grid-column: 1/-1; } .flight-settings .field { display: inline-block; vertical-align: top; width: calc(33.333% - 15px); margin-right: 15px; } .flight-settings details .field { width: calc(50% - 15px); } }
@media(max-width:700px) { .flight-intro > div { grid-template-columns: 1fr; gap: 22px; } .flight-intro .flight-eyebrow { margin: 0; } .flight-intro h1 { font-size: clamp(44px,10vw,68px); } .flight-intro p:not(.flight-eyebrow) { font-size: 18px; } .flight-studio { grid-template-columns: 1fr; } .flight-stage { grid-row: 1; min-height: 480px; } .stage-body { min-height: 360px; } .preview-frame canvas { max-height: 420px; } .flight-settings { grid-column: auto; } .flight-settings .field,.flight-settings details .field { display: block; width: 100%; margin-right: 0; } .flight-about { padding: 80px 0 55px; } .flight-footer span { flex-basis: 60%; } }

.pin-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.pin-overlay[hidden] { display: none; }
.pin-overlay .pin-panel { width: min(760px, 100%); margin: 0; padding: 20px; box-shadow: 0 20px 70px #0009; }
.pin-panel canvas { display: block; touch-action: none; }
.pin-actions { display: flex; align-items: center; justify-content: space-between; }
.pin-zoom { display: flex; gap: 8px; }
.pin-panel .pin-zoom button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; font-size: 20px; text-decoration: none; }
.pin-panel button:focus-visible, .pin-panel canvas:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.flight-about h2:not(:first-of-type) { margin-top: 1.55em; }
.flight-about h3 { max-width: 68ch; margin: 1.35em 0 0.35em; color: var(--paper); font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -0.03em; }
.flight-about ol { max-width: 68ch; margin: 0 0 1em; padding-left: 1.15em; color: var(--text); font-family: var(--font-editorial); font-size: 19px; line-height: 1.65; }
.flight-about li { padding-left: 0.15em; margin: 0.35em 0; }
