/* Stage 7.6 — Atmospheric Flight Simulator */
.af-page{max-width:1280px}.af-back{display:inline-block;margin:4px 0 22px;color:#ffb36b;font-weight:750}.af-back:hover{color:#ffd0a3}
.af-hero{padding:clamp(25px,5vw,48px);border:1px solid #34485c;border-radius:18px;background:radial-gradient(ellipse at 82% 18%,#ff8a3220,transparent 43%),linear-gradient(130deg,#18283a,#101720);margin-bottom:24px}
.af-hero h2{margin:12px 0;color:#f5f8fb;font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.05em}.af-hero h2 span{color:#ffad68}.af-hero>p{max-width:820px;color:#b7c5d3;font-size:1.02rem}
.af-equations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:25px}.af-equations>div{padding:14px;border:1px solid #42566b;border-radius:10px;background:#0c1520;text-align:center}.af-equations small{display:block;margin-bottom:8px;color:#ffb36b;font-size:.65rem;font-weight:850;letter-spacing:.1em}.af-equations strong{color:#f5f8fb;font-size:clamp(.9rem,2vw,1.15rem)}
.af-simulator{padding:clamp(12px,2vw,22px);border:1px solid #304255;border-radius:18px;background:#0c1520}.af-toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;padding-bottom:17px;border-bottom:1px solid #304255}.af-world-select{display:grid;gap:7px;min-width:min(100%,290px)}.af-world-select label,.af-control-footer label{color:#f1f5f9;font-size:.85rem;font-weight:800}.af-world-select select,.af-control-footer select{padding:10px 12px;border:1px solid #52677c;border-radius:8px;background:#111e2b;color:#f5f8fb;font:inherit}.af-actions{display:flex;gap:8px;flex-wrap:wrap}.af-actions button{padding:10px 14px;border:1px solid #52677c;border-radius:8px;background:#1b2a3a;color:#eaf0f6;font:inherit;font-size:.84rem;font-weight:800;cursor:pointer}.af-actions .af-primary{border-color:#ff9b4a;background:#ff8a32;color:#17100a}.af-actions .af-danger{border-color:#9e4e43;background:#47251f;color:#ffb4a8}.af-actions button:disabled{opacity:.45;cursor:not-allowed}.af-actions button:focus-visible,.af-world-select select:focus-visible,.af-control-footer select:focus-visible{outline:2px solid #ff9b4a;outline-offset:3px}
.af-main-grid{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(0,1.35fr);gap:16px;align-items:start;margin-top:16px}.af-controls-panel,.af-thermal-panel,.af-capsule-panel,.af-trajectory-panel,.af-telemetry{min-width:0;padding:18px;border:1px solid #304255;border-radius:13px;background:#111b27}
.af-panel-heading,.af-thermal-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.af-panel-heading h3,.af-thermal-top h3{margin:5px 0 0;color:#f5f8fb;font-size:1.15rem}.af-edit-tag,.af-live-tag{padding:5px 8px;border:1px solid #53677b;border-radius:5px;color:#9eafc1;font-size:.62rem;font-weight:850;letter-spacing:.08em}
.af-fields{display:grid;gap:15px;margin-top:16px}.af-control-section{margin:8px 0 -3px;padding-top:12px;border-top:1px solid #304255;color:#ffb36b;font-size:.68rem;letter-spacing:.13em}.af-control-section:first-child{border-top:0;padding-top:0}
.af-field{min-width:0}.af-field>label{display:block;margin-bottom:7px;color:#eaf0f6;font-size:.84rem;font-weight:750}.af-field-inputs{display:grid;grid-template-columns:minmax(0,1fr) 125px;align-items:center;gap:10px}.af-field input[type=range]{width:100%;accent-color:#ff8a32}.af-number-wrap{display:flex;align-items:center;gap:5px;min-width:0;padding:6px 8px;border:1px solid #34485c;border-radius:7px;background:#0b121b}.af-number-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f5f8fb;font:inherit;font-size:.82rem;font-variant-numeric:tabular-nums}.af-number-wrap span{color:#9eafc1;font-size:.68rem;white-space:nowrap}.af-field-help{margin:5px 0 0;color:#8294a7;font-size:.72rem;line-height:1.4}
.af-field input:focus-visible,.af-custom-field input:focus-visible{outline:2px solid #ff9b4a;outline-offset:3px}.af-custom-atmosphere{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;padding:14px;border:1px solid #42566b;border-radius:10px;background:#0c1520}.af-custom-atmosphere[hidden]{display:none}.af-custom-atmosphere h4,.af-custom-atmosphere>p{grid-column:1/-1;margin:0}.af-custom-atmosphere h4{color:#ffb36b}.af-custom-atmosphere>p{color:#9eafc1;font-size:.76rem}.af-custom-field{display:grid;gap:5px;color:#dce6ef;font-size:.76rem}.af-custom-field input{width:100%;min-width:0;padding:7px;border:1px solid #42566b;border-radius:6px;background:#111e2b;color:#fff;font:inherit}.af-custom-field small{color:#8294a7}
.af-control-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #304255}.af-control-footer select{min-width:130px;padding:8px}
.af-live-column{display:grid;gap:14px;min-width:0}.af-thermal-panel{border-color:#59432f;background:linear-gradient(145deg,#211c18,#111b27)}.af-thermal-readout{display:flex;align-items:baseline;gap:10px;margin:17px 0 10px}.af-thermal-readout strong{color:#ffbd82;font-size:2rem;font-variant-numeric:tabular-nums}.af-thermal-readout span{color:#9eafc1;font-size:.78rem}.af-thermal-state{padding:5px 9px;border:1px solid #397b5a;border-radius:5px;background:#173b2c;color:#9de0b8;font-size:.65rem;font-weight:900;letter-spacing:.1em}.af-thermal-state.warning{border-color:#a66b3d;background:#3a291d;color:#ffbd82}.af-thermal-state.critical,.af-thermal-state.failed{border-color:#a94f43;background:#4b211e;color:#ffaaa0}
.af-thermal-track{height:18px;overflow:hidden;border:1px solid #53677b;border-radius:5px;background:#080e15;box-shadow:inset 0 2px 5px #0008}.af-thermal-bar{width:13%;height:100%;border-radius:3px;background:linear-gradient(90deg,#58bd86,#e6b34d 72%,#ed6549);transition:width .12s linear}.af-thermal-bar.warning{background:#e5a33d}.af-thermal-bar.critical,.af-thermal-bar.failed{background:linear-gradient(90deg,#e5a33d,#f04438)}.af-thermal-legend{display:flex;justify-content:space-between;gap:5px;margin-top:6px;color:#8294a7;font-size:.57rem;font-weight:850;letter-spacing:.06em}.af-thermal-note{margin:10px 0 0;color:#9eafc1;font-size:.76rem;line-height:1.5}
.af-capsule-stage{position:relative;display:grid;place-items:center;min-height:220px;overflow:hidden;margin-top:12px;border:1px solid #26394d;border-radius:10px;background:radial-gradient(ellipse at 50% 65%,#31475b,#0a111a 72%)}.af-capsule-art{width:min(100%,390px);height:220px;overflow:visible}.af-heat-glow{opacity:0;transition:opacity .2s}.af-flame{opacity:.35;transform-origin:210px 175px;animation:af-flutter .2s infinite alternate}.af-capsule-stage.hot .af-heat-glow{opacity:.9}.af-capsule-stage.hot .af-flame{opacity:1}.af-capsule-stage.destroyed .af-capsule-art{opacity:0}.af-explosion{position:absolute;inset:0;display:none;place-items:center}.af-explosion i{position:absolute;width:22px;height:22px;border-radius:50%;background:#ff8a32;box-shadow:0 0 28px 12px #ff5c24;animation:af-explode .8s ease-out infinite alternate}.af-explosion i:nth-child(1){transform:translate(-70px,-30px)}.af-explosion i:nth-child(2){transform:translate(65px,-45px);animation-delay:.12s}.af-explosion i:nth-child(3){transform:translate(-85px,42px);animation-delay:.2s}.af-explosion i:nth-child(4){transform:translate(88px,45px);animation-delay:.08s}.af-explosion i:nth-child(5){transform:translate(0,-70px);animation-delay:.18s}.af-explosion i:nth-child(6){transform:translate(0,65px);animation-delay:.25s}.af-explosion b{position:relative;color:#fff2c4;font-size:5rem;text-shadow:0 0 25px #ff5c24}.af-capsule-stage.destroyed .af-explosion{display:grid}.af-failure-message{position:absolute;bottom:12px;padding:8px 12px;border:1px solid #ff5b4e;border-radius:6px;background:#421c1b;color:#ffb0a8;font-size:.8rem;font-weight:950;letter-spacing:.08em;text-align:center}.af-failure-message[hidden]{display:none}.af-capsule-caption{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:#ffbd82;font-size:.64rem;font-weight:850;letter-spacing:.08em}.af-capsule-caption span+span{color:#8294a7}
.af-trajectory{margin-top:10px}.af-trajectory svg{display:block;width:100%;height:auto;min-height:180px}.af-gridline{stroke:#34485c;stroke-width:1;stroke-dasharray:3 6}.af-axis{stroke:#8194a8;stroke-width:1.5}.af-axis-label{fill:#9eafc1;font-size:11px}.af-trajectory-line{fill:none;stroke:#ff9b4a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.af-trajectory-marker{fill:#fff;stroke:#ff8a32;stroke-width:4}
.af-telemetry{margin-top:16px}.af-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.af-metrics>div{min-width:0;padding:12px;border:1px solid #34485c;border-radius:8px;background:#172536}.af-metrics span{display:block;color:#9eafc1;font-size:.7rem}.af-metrics strong{display:block;margin-top:7px;color:#ffbd82;font-size:clamp(.9rem,2vw,1.15rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.af-status{min-height:20px;margin:12px 2px 0;color:#9eafc1;font-size:.8rem}
.af-learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}.af-learning-grid article,.af-model-note,.af-sources{padding:22px;border:1px solid #304255;border-radius:14px;background:#111b27}.af-learning-grid h3,.af-model-note h3,.af-sources h3{margin:8px 0 10px;color:#f5f8fb;font-size:1.18rem}.af-learning-grid p,.af-model-note p,.af-sources li{color:#b1bfcd;font-size:.9rem;line-height:1.6}.af-model-note,.af-sources{margin-top:16px}.af-model-note{border-left:3px solid #ff8a32}.af-sources ul{padding-left:20px}.af-sources a{color:#ffb36b}.af-disclaimer{margin:17px 0;text-align:center;color:#8294a7;font-size:.76rem}
@keyframes af-flutter{from{transform:scaleY(.8) translateY(2px)}to{transform:scaleY(1.15) translateY(0)}}@keyframes af-explode{from{opacity:.55;scale:.7}to{opacity:1;scale:1.35}}
@media(max-width:980px){.af-main-grid{grid-template-columns:1fr}.af-controls-panel{order:2}.af-live-column{order:1}.af-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.af-control-section{grid-column:1/-1}}
@media(max-width:700px){.af-equations{grid-template-columns:1fr}.af-learning-grid{grid-template-columns:1fr}.af-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.af-fields{grid-template-columns:1fr}.af-control-section{grid-column:auto}.af-custom-atmosphere{grid-template-columns:1fr}.af-actions{width:100%}.af-actions button{flex:1}.af-thermal-readout{flex-wrap:wrap}}
@media(max-width:420px){.af-hero{padding:24px 18px}.af-simulator{padding:10px}.af-controls-panel,.af-thermal-panel,.af-capsule-panel,.af-trajectory-panel,.af-telemetry{padding:13px}.af-metrics{grid-template-columns:1fr 1fr}.af-metrics>div{padding:9px}.af-metrics strong{font-size:.9rem}.af-capsule-stage{min-height:190px}.af-capsule-art{height:190px}}
@media(prefers-reduced-motion:reduce){.af-flame,.af-explosion i{animation:none}.af-thermal-bar{transition:none}}

.af-rotation-toggle{display:inline-flex;align-items:center;gap:7px;color:#b7c5d3;font-size:.78rem;font-weight:750}.af-rotation-toggle input{width:16px;height:16px;accent-color:#ff9b4a}.af-rotation-toggle:focus-within{outline:2px solid #ffbd82;outline-offset:4px;border-radius:4px}
@media(max-width:700px){.af-control-footer{align-items:flex-start;flex-direction:column}.af-control-footer select{width:100%}}


.af-world-panel{min-width:0;padding:18px;border:1px solid #304255;border-radius:13px;background:#111b27}
.af-world-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0 10px}
.af-world-actions{display:flex;align-items:center;gap:8px;flex:1;min-width:190px}
.af-world-actions button{width:32px;height:32px;border:1px solid #465b70;border-radius:7px;background:#1b2a3a;color:#fff;font-size:1.2rem;cursor:pointer}
.af-world-actions input{width:min(190px,40vw);accent-color:#ff9b4a}.af-world-actions span{color:#ffbd82;font-size:.78rem;font-variant-numeric:tabular-nums;min-width:42px}
.af-follow-toggle{display:flex;align-items:center;gap:7px;color:#cbd7e2;font-size:.78rem;font-weight:750}.af-follow-toggle input{accent-color:#ff9b4a}.af-world-hint{color:#8294a7;font-size:.7rem}
.af-world-stage{position:relative;width:100%;height:clamp(310px,48vw,540px);overflow:hidden;border:1px solid #34485c;border-radius:10px;background:#050b14;touch-action:none;cursor:grab}.af-world-stage:active{cursor:grabbing}
#af-world-canvas{display:block;width:100%;height:100%}
.af-world-hud{position:absolute;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}.af-world-hud-top{top:12px}.af-world-hud-bottom{bottom:12px;justify-content:flex-start;flex-wrap:wrap}
.af-world-hud span{padding:6px 9px;border:1px solid #71869a55;border-radius:5px;background:#07111dcc;color:#e4edf6;font-size:.65rem;font-weight:850;letter-spacing:.07em;text-shadow:0 1px 3px #000}#af-world-body{color:#ffbd82}
.af-world-crosshair{position:absolute;left:50%;top:43%;width:24px;height:24px;transform:translate(-50%,-50%);border:1px solid #d8e8f644;border-radius:50%;pointer-events:none}
.af-world-failure{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 14px;border:1px solid #ff5b4e;border-radius:6px;background:#421c1bdd;color:#ffb0a8;font-size:.78rem;font-weight:950;letter-spacing:.08em;white-space:nowrap}.af-world-failure[hidden]{display:none}
.af-world-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:10px;color:#9eafc1;font-size:.68rem}.af-world-legend span{display:inline-flex;align-items:center;gap:6px}.af-world-legend i{display:inline-block;width:16px;height:3px;border-radius:3px}
.af-legend-atmosphere{background:#49baff;box-shadow:0 0 7px #49baff}.af-legend-trajectory{background:#ffb36b}.af-legend-vehicle{height:7px!important;width:7px!important;border-radius:50%!important;background:#e7edf4}
@media(max-width:700px){.af-world-stage{height:390px}.af-world-toolbar{gap:9px}.af-world-hint{width:100%}.af-world-hud span{font-size:.57rem;padding:5px 6px}.af-world-legend{gap:9px}}

.af-quickstart{margin:0 0 18px;padding:16px 18px;border:1px solid #39536a;border-left:3px solid #ff9b4a;border-radius:10px;background:linear-gradient(110deg,#182839,#111b27)}
.af-quickstart h3{margin:3px 0 10px;color:#f2f6fb;font-size:1.05rem}
.af-quickstart ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-left:20px;margin:0;color:#b9c7d5;font-size:.82rem}
.af-quickstart li{padding-right:8px}.af-quickstart li strong{color:#f2f6fb}
.af-quickstart p{margin:12px 0 0;color:#b9c7d5;font-size:.8rem}.af-quickstart p strong{color:#ffbd82}
.af-quickstart .af-quickstart-note{color:#e7b5a6;font-size:.75rem}
.af-status-error{border-color:#b84c43!important;color:#ffb0a8!important;background:#391c20!important}
.af-actions button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
@media(max-width:700px){.af-quickstart ol{grid-template-columns:1fr;gap:7px}}

/* Stage 7.6.1 — component thermal gauges and temperature-unit selector */
.af-thermal-unit-row{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:12px;color:#9eafc1;font-size:.75rem}.af-thermal-unit-row select{padding:7px 9px;border:1px solid #53677b;border-radius:6px;background:#172536;color:#f5f8fb;font:inherit}.af-component-thermal{margin-top:12px;padding:10px 11px;border:1px solid #34485c;border-radius:8px;background:#172536}.af-component-thermal-head{display:flex;justify-content:space-between;gap:10px;color:#c6d3df;font-size:.75rem}.af-component-thermal-head strong{color:#ffbd82;font-variant-numeric:tabular-nums}.af-component-track{height:8px;margin:7px 0 5px;overflow:hidden;border-radius:5px;background:#080e15}.af-component-fill{height:100%;width:0;border-radius:5px;transition:width .12s linear}.af-component-fill.shield{background:linear-gradient(90deg,#58bd86,#e6b34d,#ed6549)}.af-component-fill.structure{background:linear-gradient(90deg,#58a6d8,#e6b34d,#ed6549)}.af-component-thermal small{color:#8294a7;font-size:.68rem}.af-component-thermal small span{color:#c6d3df;font-variant-numeric:tabular-nums}

/* Stage 7.6.2 — live local atmospheric conditions */
.af-atmosphere-data{margin-top:18px;padding:15px;border:1px solid #34485c;border-radius:10px;background:linear-gradient(145deg,#14283a,#101c2a)}.af-atmosphere-data .af-panel-heading{margin-bottom:10px}.af-live-indicator{padding:5px 8px;border:1px solid #356b7b;border-radius:5px;color:#83d8e9;font-size:.62rem;letter-spacing:.08em}.af-atmosphere-metrics{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.af-atmosphere-metrics strong{font-size:clamp(.9rem,2vw,1.08rem);overflow-wrap:anywhere}.af-atmosphere-note{margin:11px 0 0;color:#91a5b9;font-size:.75rem;line-height:1.55}

/* Stage 7.6.3 — live atmospheric density profile */
.af-density-profile-wrap{margin-top:16px;padding:13px;border:1px solid #34485c;border-radius:9px;background:#0b1622}
.af-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#eaf0f6;font-size:.82rem}
.af-profile-heading span{color:#83d8e9;font-size:.6rem;font-weight:850;letter-spacing:.08em}
.af-density-profile{width:100%;margin-top:8px}
.af-density-profile svg{display:block;width:100%;height:auto;overflow:visible}
.af-profile-grid{stroke:#34485c;stroke-width:1;stroke-dasharray:3 5}
.af-profile-label{fill:#9eafc1;font-size:10px}
.af-profile-axis-title{fill:#b9c7d5;font-size:10px}
.af-density-profile-line{fill:none;stroke:#54c8ee;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.af-profile-current-line{stroke:#ffbd82;stroke-width:1.5;stroke-dasharray:5 4}
.af-profile-current-marker{fill:#ffbd82;stroke:#fff1df;stroke-width:2}
.af-profile-current-label{fill:#ffcf9e;font-size:9px;font-weight:900;letter-spacing:.08em}
.af-profile-readout{margin:5px 0;color:#aebdcb;font-size:.72rem}
.af-profile-readout strong{color:#ffbd82;font-variant-numeric:tabular-nums}
.af-profile-caption{margin:5px 0 0;color:#8294a7;font-size:.68rem;line-height:1.45}
@media(max-width:420px){.af-density-profile-wrap{padding:9px}.af-profile-label{font-size:9px}}

/* 7.6.3 — selectable live telemetry units */
.af-unit-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:9px;margin:14px 0 4px;padding:12px;border:1px solid #34485c;border-radius:9px;background:#172536}
.af-unit-controls label{display:flex;flex-direction:column;gap:5px;color:#aebdcb;font-size:.7rem;font-weight:700}
.af-unit-controls select{width:100%;min-width:0;padding:8px 7px;border:1px solid #40566c;border-radius:6px;background:#0d1722;color:#edf3f8;font:inherit;font-size:.78rem}
.af-unit-controls select:focus{outline:2px solid #83d8e9;outline-offset:2px}

/* Stage 7.6.6 — scene reference line, realistic capsule and force overlay */
.af-force-toggle{display:inline-flex;align-items:center;gap:7px;color:#cbd7e2;font-size:.76rem;font-weight:750}.af-force-toggle input{accent-color:#ff9b4a}.af-force-toggle:focus-within{outline:2px solid #ffbd82;outline-offset:4px;border-radius:4px}.af-legend-karman{height:0!important;width:17px!important;border-top:2px dashed #e8f3ff;border-radius:0!important}.af-legend-force{height:2px!important;width:17px!important;background:linear-gradient(90deg,#ff9b4a 0 33%,#9ecbff 33% 66%,#72e0b0 66%)}


/* Stage 7.6.7 — live thermal state, model contribution and history */
.af-thermal-warning{margin:12px 0;padding:9px 11px;border:1px solid #355343;border-radius:7px;background:#10251f;color:#8fe0b2;font-size:.72rem;font-weight:900;letter-spacing:.09em}
.af-thermal-warning.warning{border-color:#8b6335;background:#2b2115;color:#ffc27a}
.af-thermal-warning.critical{border-color:#a74d3c;background:#321a18;color:#ff9b83}
.af-thermal-breakdown,.af-thermal-history-wrap{margin-top:16px;padding-top:13px;border-top:1px solid #304255}
.af-thermal-breakdown-head,.af-thermal-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.af-thermal-breakdown-head strong,.af-thermal-history-head strong{color:#dce6ef;font-size:.68rem;letter-spacing:.09em}
.af-thermal-breakdown-head span,.af-thermal-history-head span{color:#8294a7;font-size:.68rem}
.af-breakdown-row{display:grid;grid-template-columns:105px minmax(50px,1fr) minmax(100px,145px);gap:9px;align-items:center;margin:8px 0;color:#b9c7d4;font-size:.72rem}
.af-breakdown-row small{color:#8294a7;text-align:right;font-size:.65rem}
.af-breakdown-track{height:8px;overflow:hidden;border-radius:10px;background:#263646}
.af-breakdown-track i{display:block;width:0;height:100%;border-radius:10px;background:#ff9b4a;transition:width .12s linear}
.af-breakdown-track.molecular i{background:#78d8ff}
.af-thermal-history{width:100%;overflow:hidden}
.af-thermal-history svg{display:block;width:100%;height:auto}
.af-thermal-chart-track{fill:#0b1420;stroke:#2d4052;stroke-width:1}
.af-thermal-chart-label{fill:#aebdcb;font:800 10px system-ui;letter-spacing:.06em}
.af-thermal-chart-value{fill:#e8eff5;font:700 10px system-ui}
.af-thermal-chart-axis{fill:#8294a7;font:10px system-ui}
.af-thermal-hud{position:absolute;z-index:2;top:48px;right:12px;width:min(210px,42%);padding:10px 11px;border:1px solid #50677c99;border-radius:9px;background:#07111ddd;backdrop-filter:blur(5px);display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;pointer-events:none;box-shadow:0 8px 24px #0005}
.af-thermal-hud>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.af-thermal-hud span{color:#92a8ba;font-size:.57rem;font-weight:850;letter-spacing:.08em}
.af-thermal-hud strong{overflow-wrap:anywhere;color:#f4f7fa;font-size:.78rem;font-variant-numeric:tabular-nums}
.af-hud-thermal-status{grid-column:1/-1;padding-top:6px;border-top:1px solid #3b5064;color:#8fe0b2!important;font-size:.63rem!important;letter-spacing:.1em}
.af-hud-thermal-status.warning{color:#ffc27a!important}
.af-hud-thermal-status.critical{color:#ff9b83!important}
@media(max-width:700px){.af-thermal-hud{top:44px;right:7px;width:min(176px,48%);padding:8px;gap:7px}.af-thermal-hud strong{font-size:.68rem}.af-thermal-hud span{font-size:.52rem}.af-breakdown-row{grid-template-columns:92px minmax(35px,1fr);gap:7px}.af-breakdown-row small{grid-column:2;text-align:left}.af-thermal-chart-label,.af-thermal-chart-value{font-size:9px}}


/* Stage 7.6.8 — flight event timeline and CSV flight-data recorder */
.af-recorder-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:16px;margin-top:16px}
.af-event-panel,.af-recorder-panel{min-width:0;padding:18px;border:1px solid #304255;border-radius:13px;background:#111b27}
.af-event-list{display:grid;gap:0;margin:14px 0 0;padding:0;list-style:none}
.af-event-item{position:relative;display:grid;grid-template-columns:15px minmax(0,1fr);gap:10px;padding:0 0 15px}
.af-event-item:not(:last-child):before{position:absolute;content:"";left:6px;top:12px;bottom:-1px;width:1px;background:#3b5064}
.af-event-marker{z-index:1;width:13px;height:13px;margin-top:3px;border:2px solid #ffad68;border-radius:50%;background:#172536}
.af-event-item.failure .af-event-marker{border-color:#ff766d;background:#57251f}
.af-event-item.landing .af-event-marker{border-color:#83d8a7;background:#183c2c}
.af-event-item.interface .af-event-marker{border-color:#78d8ff}
.af-event-copy{display:grid;gap:3px;min-width:0}
.af-event-copy strong{color:#eef3f8;font-size:.82rem}
.af-event-copy>span{color:#b1bfcd;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}
.af-event-copy small{color:#8294a7;font-size:.67rem;font-variant-numeric:tabular-nums}
.af-event-empty{padding:12px 0;color:#8294a7;font-size:.78rem}
.af-recorder-panel>p{margin:13px 0;color:#b1bfcd;font-size:.8rem;line-height:1.55}
.af-recorder-count{margin:16px 0 10px;color:#ffbd82;font-size:.82rem;font-weight:850;font-variant-numeric:tabular-nums}
.af-export-button{width:100%;padding:11px 13px;border:1px solid #ff9b4a;border-radius:8px;background:#ff8a32;color:#17100a;font:inherit;font-size:.82rem;font-weight:900;cursor:pointer}
.af-export-button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
.af-recorder-panel>small,.af-recorder-note{display:block;margin:11px 0 0;color:#8294a7;font-size:.69rem;line-height:1.55}
@media(max-width:760px){.af-recorder-grid{grid-template-columns:1fr}.af-event-panel,.af-recorder-panel{padding:14px}}
