/* THERA Aurora. Presentation only: no map rendering, data or document changes. */
body.tfo-aurora {
  color-scheme: dark;
  --bg: #030a1e;
  --bg-2: #07152d;
  --surface: rgba(10, 26, 43, .64);
  --surface-strong: #0d1b37;
  --surface-soft: rgba(18, 37, 66, .48);
  --surface-hover: rgba(35, 59, 94, .76);
  --line: rgba(155, 190, 229, .21);
  --line-strong: rgba(158, 215, 242, .42);
  --text: #f1f5ff;
  --ink: #f1f5ff;
  --muted: #b3c2d9;
  --muted-2: #9cacc5;
  --blue: #52adf0;
  --blue-2: #a9dfff;
  --orange: #ff923b;
  --orange-2: #ffc08a;
  --orange-soft: rgba(255, 141, 52, .12);
  --green: #6ee7b7;
  --yellow: #ffe082;
  --red: #ff8998;
  --danger: #ffacb6;
  --purple: #c4b5fd;
  --cyan: #80e2e5;
  --soft: rgba(7, 19, 40, .58);
  --archive: #b9c8df;
  --archive-soft: rgba(134, 153, 191, .08);
  --shadow: 0 20px 55px rgba(0, 4, 19, .38), 0 2px 8px rgba(0, 0, 0, .15);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --aurora-panel: radial-gradient(ellipse at 28% 15%, rgba(68, 184, 163, .18), transparent 54%),
    radial-gradient(ellipse at 80% 85%, rgba(131, 104, 211, .19), transparent 55%),
    linear-gradient(135deg, rgba(13, 30, 48, .63), rgba(7, 20, 38, .72));
  --aurora-ring: 0 0 0 3px rgba(129, 222, 239, .28);
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 88% 4%, rgba(57, 69, 148, .28), transparent 50%),
    radial-gradient(ellipse at 0% 45%, rgba(14, 105, 116, .19), transparent 46%),
    linear-gradient(160deg, #07112c 0%, #030a1e 48%, #07172a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.tfo-aurora::before { display: none; }
body.tfo-aurora *, body.tfo-aurora *::before, body.tfo-aurora *::after { box-sizing: border-box; }
body.tfo-aurora .app-shell, body.tfo-aurora .page-shell { position: relative; z-index: 1; }
body.tfo-aurora .app-shell { min-height: 100svh; }
body.tfo-aurora :is(h1, h2, h3, p, .field-label, .selected-location) { overflow-wrap: anywhere; }
body.tfo-aurora :is(h1, h2, h3) { color: var(--text); letter-spacing: -.025em; }
body.tfo-aurora a { color: var(--blue-2); text-underline-offset: .2em; }
body.tfo-aurora :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #9bedef;
  outline-offset: 4px;
}
body.tfo-aurora :is(button, input, select, textarea) { font: inherit; }
body.tfo-aurora :is(button, .button, .link-btn, .tfo-extra-button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.tfo-aurora :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
  min-width: 0;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 11, 29, .79);
  font-size: 16px;
  line-height: 1.4;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18);
}
body.tfo-aurora select option { background: #0c1b37; color: #f1f5ff; }
body.tfo-aurora input::placeholder, body.tfo-aurora textarea::placeholder { color: #96a9c5; opacity: 1; }
body.tfo-aurora :is(input, select, textarea):focus {
  border-color: #79d7e6;
  box-shadow: var(--aurora-ring);
}
body.tfo-aurora :is(input[type="checkbox"], input[type="radio"]) { accent-color: #ff923b; flex: 0 0 auto; }
body.tfo-aurora :is(.checklist label, .watch-toggle, .dossier-check, .dossier-file label) { min-height: 44px; }
body.tfo-aurora :is(.checklist input, .watch-toggle input, .dossier-check input, .dossier-file input) { width: 20px; min-height: 20px; }
body.tfo-aurora input[type="range"] { min-height: 44px; background: transparent; }
body.tfo-aurora input[type="range"]::-webkit-slider-runnable-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg, #398ba8, #71d3d4); }
body.tfo-aurora input[type="range"]::-moz-range-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg, #398ba8, #71d3d4); }
body.tfo-aurora input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -8px; border-color: #ebfaff; background: #e58737; box-shadow: 0 0 0 5px rgba(255, 146, 59, .15); }
body.tfo-aurora input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-color: #ebfaff; background: #e58737; box-shadow: 0 0 0 5px rgba(255, 146, 59, .15); }

/* Dark translucent surfaces preserve contrast over the immersive sky. */
body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .login-card) {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--aurora-panel);
  box-shadow: inset 0 1px 0 rgba(231, 243, 255, .08), var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.tfo-aurora :is(.workspace, .dashboard-grid, .status-grid, .insight-grid, .space-grid, .chart-grid, .weather-kpis, .missions-layout, .settings-grid, .dossier-grid, .mission-toolbar) > * { min-width: 0; }
body.tfo-aurora .workspace { width: min(1500px, calc(100% - 48px)); padding: 24px 0 48px; }
body.tfo-aurora .topbar {
  min-height: calc(82px + var(--safe-top));
  padding: calc(16px + var(--safe-top)) max(24px, var(--safe-right)) 16px max(24px, var(--safe-left));
  border-color: rgba(171, 206, 240, .16);
  background: rgba(4, 13, 33, .85);
  box-shadow: 0 8px 28px rgba(0, 5, 21, .19);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
body.tfo-aurora .brand-lockup { gap: 12px; }
body.tfo-aurora .brand-mark { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; color: var(--orange); filter: none; }
body.tfo-aurora .brand-name { font-size: 1rem; font-weight: 760; letter-spacing: .015em; }
body.tfo-aurora .brand-name span { color: var(--text); background: none; }
body.tfo-aurora .brand-subtitle { font-size: .62rem; letter-spacing: .12em; color: var(--muted); }
body.tfo-aurora .topbar-actions { gap: 9px; min-width: 0; }
body.tfo-aurora .sync-indicator { min-height: 44px; border-color: var(--line); background: rgba(21, 40, 70, .53); }
body.tfo-aurora :is(.button, .icon-button, .text-button, .tab-button, .mission-action, .zone-band-button, .primary-btn, .secondary-btn, .danger-btn, .link-btn, .tfo-extra-button) {
  min-height: 44px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.35;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
body.tfo-aurora :is(.button, .primary-btn, .secondary-btn, .danger-btn, .link-btn, .tfo-extra-button) { padding: 11px 16px; }
body.tfo-aurora .icon-button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: rgba(23, 42, 72, .48); }
body.tfo-aurora .text-button { padding: 10px; }
body.tfo-aurora :is(.button--primary, .primary-btn, .tfo-extra-button.primary) {
  border: 1px solid #ffa04f;
  color: #201205;
  background: linear-gradient(125deg, #ffa34d, #f18029);
  box-shadow: inset 0 1px rgba(255, 234, 206, .35), 0 6px 22px rgba(213, 100, 16, .18);
  font-weight: 780;
}
body.tfo-aurora :is(.button--secondary, .secondary-btn, .link-btn, .tfo-extra-button) {
  border: 1px solid var(--line-strong);
  color: #e3edff;
  background: rgba(22, 42, 73, .59);
}
body.tfo-aurora :is(.button--danger, .danger-btn) { border: 1px solid rgba(255, 138, 153, .45); color: #ffb4be; background: rgba(142, 34, 65, .17); }
body.tfo-aurora :is(button, .button, .link-btn, .tfo-extra-button):disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
body.tfo-aurora :is(.button, .icon-button, .primary-btn, .secondary-btn, .danger-btn, .link-btn):hover { transform: none; }
body.tfo-aurora .mission-toolbar { grid-template-columns: minmax(280px, 1.65fr) minmax(142px, .65fr) minmax(116px, .5fr) minmax(215px, 1fr); gap: 16px; padding: 20px; }
body.tfo-aurora .field-label { color: #bacde4; font-size: .72rem; letter-spacing: .07em; line-height: 1.4; }
body.tfo-aurora .search-row { grid-template-columns: minmax(0, 1fr) auto; }
body.tfo-aurora .search-input-wrap input { padding-left: 41px !important; }
body.tfo-aurora .search-results { border-radius: 17px; border-color: var(--line-strong); background: #101f3b; }
body.tfo-aurora .search-result { min-height: 50px; font-size: .9rem; }
body.tfo-aurora .selected-location { flex-wrap: wrap; font-size: .79rem; }
body.tfo-aurora .app-tabs {
  top: calc(82px + var(--safe-top));
  gap: 5px;
  margin: 22px 0;
  padding: 6px;
  border-radius: 22px;
  border-color: var(--line);
  background: rgba(8, 19, 43, .91);
  box-shadow: inset 0 1px rgba(232, 242, 255, .06), 0 9px 25px rgba(0, 4, 22, .24);
  scroll-padding-inline: 6px;
  overscroll-behavior-x: contain;
}
body.tfo-aurora .tab-button { position: relative; padding: 11px 18px; color: #b9cbe2; border-radius: 16px; }
body.tfo-aurora .tab-button.is-active {
  color: #ffd0a1;
  background: linear-gradient(140deg, rgba(227, 123, 39, .2), rgba(79, 77, 100, .14));
  box-shadow: inset 0 0 0 1px rgba(255, 170, 88, .34), 0 2px 9px rgba(0, 0, 0, .16);
}
body.tfo-aurora .tab-button.is-active::after { content: ""; position: absolute; bottom: 3px; left: 30%; right: 30%; height: 2px; border-radius: 9px; background: #ffad65; box-shadow: 0 0 9px rgba(255, 162, 70, .65); }
body.tfo-aurora .tab-panel.is-active { animation: tfo-aurora-panel-in .28s ease both; }
@keyframes tfo-aurora-panel-in { from { opacity: .3; } to { opacity: 1; } }
body.tfo-aurora .eyebrow { color: #a1d5ed; font-size: .7rem; letter-spacing: .13em; font-weight: 760; }
body.tfo-aurora .panel-heading { gap: 14px; flex-wrap: wrap; }
body.tfo-aurora .panel-heading h2 { font-size: 1.12rem; font-weight: 720; line-height: 1.35; }
body.tfo-aurora :is(.dashboard-grid, .chart-grid, .space-grid, .missions-layout, .settings-grid, .dossier-grid) { gap: 20px; }
body.tfo-aurora .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
body.tfo-aurora .overall-card { min-height: 272px; padding: 30px; gap: 24px; }
body.tfo-aurora .overall-card::after { width: 360px; height: 360px; background: radial-gradient(circle, rgba(111, 127, 229, .2), transparent 65%); }
body.tfo-aurora .overall-copy h1 { font-size: clamp(2rem, 3.2vw, 3.4rem); font-weight: 700; line-height: 1.08; }
body.tfo-aurora .overall-copy p { color: #bfcee4; font-size: .94rem; }
body.tfo-aurora .overall-meta { gap: 8px 16px; font-size: .77rem; }
body.tfo-aurora .overall-gauge { width: 150px; height: 150px; margin-left: 0; }
body.tfo-aurora .overall-gauge::before { background: #0c1a36; }
body.tfo-aurora .overall-gauge strong { font-weight: 650; font-variant-numeric: tabular-nums; }
body.tfo-aurora :is(.mission-controls, .timeline-panel, .insight-card, .chart-card, .forecast-table-card, .method-card, .kp-card, .space-alerts, .gnss-check-card, .mission-editor, .missions-list-card, .settings-card, .score-breakdown-card, .dossier-box) { padding: 24px; }
body.tfo-aurora :is(.status-grid, .insight-grid, .weather-kpis) { gap: 14px; margin-top: 20px; }
body.tfo-aurora .status-card { padding: 21px; min-height: 180px; border-radius: 22px; }
body.tfo-aurora .status-card:hover { transform: none; }
body.tfo-aurora .status-card__icon { border-radius: 50%; width: 44px; height: 44px; margin-bottom: 17px; }
body.tfo-aurora .status-card__top { flex-wrap: wrap; font-size: .67rem; letter-spacing: .08em; }
body.tfo-aurora .status-card .status-pill { font-size: .63rem; padding: 5px 8px; }
body.tfo-aurora .status-card__title { font-size: 1rem; line-height: 1.4; }
body.tfo-aurora .status-card__detail { font-size: .82rem; }
/* Keep the established red/yellow/green state indicators, distinct from the brand. */
body.tfo-aurora .status-card.status-ok { border-color: rgba(110, 231, 183, .38); }
body.tfo-aurora .status-card.status-warn { border-color: rgba(255, 224, 130, .4); }
body.tfo-aurora .status-card.status-bad { border-color: rgba(255, 137, 152, .44); }
body.tfo-aurora .operational-timeline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); overflow: visible; gap: 8px; }
body.tfo-aurora .timeline-hour { border-radius: 15px; background: rgba(5, 17, 39, .58); }
body.tfo-aurora .timeline-hour:is(:hover, .is-selected) { border-color: #75cbdc; background: rgba(56, 122, 150, .17); }
body.tfo-aurora :is(.insight-copy, .method-card p, .kp-explanation p, .gnss-check-copy p, .settings-note) { font-size: .875rem; line-height: 1.65; }
body.tfo-aurora .metric-card { padding: 20px; border-radius: 21px; }
body.tfo-aurora .metric-card > span, body.tfo-aurora .metric-card small { font-size: .73rem; }
body.tfo-aurora .metric-card strong { font-size: 1.8rem; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
body.tfo-aurora .chart-label { fill: #aabdD8; }
body.tfo-aurora .chart-unit { font-size: .77rem; }
body.tfo-aurora .table-scroll { max-width: 100%; border-radius: 14px; overscroll-behavior-x: contain; }
body.tfo-aurora .forecast-table :is(th, td) { padding: 15px 13px; font-size: .8rem; }
body.tfo-aurora .forecast-table th { background: rgba(20, 39, 69, .6); color: #c0cfe6; font-size: .69rem; }
body.tfo-aurora .thermal-formula-cards > div, body.tfo-aurora .thermal-curve > div { border-radius: 17px; background: rgba(18, 36, 65, .58); }
body.tfo-aurora .thermal-context summary { min-height: 44px; padding: 9px 0; }
body.tfo-aurora .kp-gauge::before { background: #0c1a36; }
body.tfo-aurora .kp-display { gap: 24px; }
body.tfo-aurora .space-alert { padding: 16px; border-radius: 17px; background: rgba(4, 16, 36, .5); }
body.tfo-aurora .space-alert strong { font-size: .86rem; }
body.tfo-aurora .space-alert p { font-size: .8rem; }
body.tfo-aurora .space-alert time { font-size: .71rem; }
body.tfo-aurora .missions-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
body.tfo-aurora .mission-item { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 20px; border-radius: 19px; background: linear-gradient(125deg, rgba(35, 55, 90, .45), rgba(4, 15, 35, .55)); }
body.tfo-aurora .mission-item h3 { font-size: 1rem; }
body.tfo-aurora .mission-item p { font-size: .84rem; overflow-wrap: anywhere; }
body.tfo-aurora .mission-item__meta { font-size: .75rem; gap: 8px 14px; }
body.tfo-aurora .mission-item__actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
body.tfo-aurora .mission-action { padding: 9px 13px; color: #d5e3f7; background: rgba(29, 48, 79, .65); }
body.tfo-aurora .mission-action--delete { color: #ffb4be; }
body.tfo-aurora .settings-fields label { font-size: .86rem; min-width: 0; }
body.tfo-aurora .settings-fields input { flex: 0 0 94px; width: 94px; }
body.tfo-aurora .source-status { grid-template-columns: 10px minmax(0, 1fr) auto; border-radius: 15px; }
body.tfo-aurora .source-status strong { font-size: .84rem; }
body.tfo-aurora .source-status small { font-size: .74rem; overflow-wrap: anywhere; }
body.tfo-aurora .source-status time { font-size: .71rem; }

/* Map chrome only. Leaflet/Mapbox layers, canvas pixels and exported maps stay untouched. */
body.tfo-aurora .map-shell { border-radius: 26px; }
body.tfo-aurora :is(.map-toolbar, .map-status-strip, .map-feature-panel) { padding: 18px 22px; }
body.tfo-aurora .map-toolbar { flex-wrap: wrap; }
body.tfo-aurora .layer-toggle span { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: .81rem; }
body.tfo-aurora .layer-toggle input:focus-visible + span { outline: 2px solid #9bedef; outline-offset: 3px; }
body.tfo-aurora .map-hint { max-width: min(80%, 480px); padding: 10px 15px; border-color: var(--line-strong); background: rgba(6, 18, 42, .9); }
body.tfo-aurora .map-zone-group { border-radius: 17px; }
body.tfo-aurora .map-zone-group__main { min-height: 52px; }
body.tfo-aurora .map-zone-group__main strong { font-size: .84rem; }
body.tfo-aurora .map-zone-group__main small { font-size: .73rem; }
body.tfo-aurora .zone-band-buttons { gap: 8px; }
body.tfo-aurora .zone-band-button { font-size: .75rem; padding: 8px 12px; }
body.tfo-aurora .airspace-detail { min-width: 0; }
body.tfo-aurora .dossier-heading { gap: 18px; align-items: center; }
body.tfo-aurora .dossier-heading > div { min-width: 0; }
body.tfo-aurora .dossier-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 680; }
body.tfo-aurora .dossier-heading img { width: 74px; height: 74px; flex: 0 0 auto; border-radius: 18px; }
body.tfo-aurora .dossier-notice { border: 1px solid rgba(255, 177, 95, .28); border-left: 3px solid #ffa350; border-radius: 17px; color: #d5dfed; background: rgba(79, 46, 26, .2); font-size: .9rem; }
body.tfo-aurora .dossier-box { border-radius: 24px; }
body.tfo-aurora .dossier-box h2 { font-size: 1.32rem; }
body.tfo-aurora .dossier-box .field-label { margin-top: 18px; }
body.tfo-aurora .file-drop { min-height: 112px; padding: 23px; border: 1px dashed rgba(127, 218, 228, .57); border-radius: 19px; background: rgba(27, 73, 91, .13); color: #d2e9f1; font-size: .875rem; }
body.tfo-aurora .dossier-file { padding: 18px; border-color: var(--line); border-radius: 18px; background: rgba(4, 17, 38, .55); }
body.tfo-aurora .dossier-file label { align-items: flex-start; padding: 4px 0; }
body.tfo-aurora .dossier-file label input { margin-top: 2px; }
body.tfo-aurora .dossier-report-row { flex-wrap: wrap; gap: 12px; border-color: var(--line); padding: 14px 0; }
body.tfo-aurora .dossier-report-link { padding: 10px 8px; min-height: 44px; overflow-wrap: anywhere; }
body.tfo-aurora .dossier-report-link span { color: var(--muted); }
body.tfo-aurora dialog { max-width: calc(100% - 32px); max-height: calc(100svh - 40px); border: 1px solid var(--line-strong); border-radius: 24px; color: var(--text); background: #0d1b36; box-shadow: 0 28px 90px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
body.tfo-aurora dialog::backdrop { background: rgba(1, 6, 22, .8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
body.tfo-aurora .login-overlay { padding: max(24px, var(--safe-top)) max(18px, var(--safe-right)) max(24px, var(--safe-bottom)) max(18px, var(--safe-left)); background: rgba(3, 9, 28, .62); overflow-y: auto; }
body.tfo-aurora .login-card { padding: 36px; border-radius: 30px; border-color: rgba(143, 197, 226, .35); animation: none; }
body.tfo-aurora .brand-lockup--large .brand-mark { width: 58px; height: 58px; }
body.tfo-aurora .login-copy { color: #c0cee4; line-height: 1.7; }
body.tfo-aurora .toast { font-size: .875rem; padding: 17px 19px; border-radius: 19px; background: rgba(16, 33, 62, .97); }
body.tfo-aurora .toast-root { bottom: max(22px, var(--safe-bottom)); }
body.tfo-aurora :is(.offline-banner, .fatal-message) { top: max(14px, var(--safe-top)); }
body.tfo-aurora .app-footer { width: min(1500px, calc(100% - 48px)); color: var(--muted); font-size: .73rem; }

/* Flight's private practice screen shares the theme without touching the legacy route. */
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .page-shell { width: min(1500px, calc(100% - 48px)); padding-top: calc(24px + var(--safe-top)); padding-bottom: calc(48px + var(--safe-bottom)); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar { position: relative; top: auto; min-height: 0; margin-bottom: 22px; padding: 23px 26px; border-radius: 26px; border-color: var(--line); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar h1 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 680; line-height: 1.15; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar p { color: var(--muted); line-height: 1.6; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .workspace { width: 100%; margin: 0; padding: 0; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stats-grid { gap: 14px; margin: 20px 0; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stat-card { padding: 21px; border-radius: 20px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stat-card span { font-size: .72rem; letter-spacing: .06em; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stat-card strong { font-size: 2rem; font-weight: 650; font-variant-numeric: tabular-nums; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .panel { overflow: hidden; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .panel-head { padding: 21px 23px; border-color: var(--line); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .panel-head h2 { font-size: 1.2rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .panel-head p { font-size: .83rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 17px; background: rgba(4, 16, 38, .54); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar input { grid-column: 1 / -1; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar button { grid-column: 1 / -1; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-list { min-height: 360px; max-height: 78svh; overscroll-behavior-y: contain; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item { gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); background: rgba(6, 19, 41, .45); transition: background .18s ease, box-shadow .18s ease; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item:hover { background: rgba(44, 69, 109, .45); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item.active { background: linear-gradient(105deg, rgba(193, 100, 36, .2), rgba(46, 73, 106, .3)); box-shadow: inset 3px 0 #ffad65; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item.archived { background: var(--archive-soft); opacity: 1; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item.archived.active { background: rgba(71, 96, 132, .26); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-code { color: #ffc08a; font-size: .75rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-title { font-size: 1.025rem; font-weight: 680; overflow-wrap: anywhere; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-meta { font-size: .8rem; overflow-wrap: anywhere; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .status-pill { color: #ffcb95; background: rgba(239, 132, 45, .13); border-color: rgba(255, 172, 98, .37); font-size: .65rem; padding: 6px 9px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .archive-pill { color: #c1cee3; border-color: rgba(179, 200, 231, .28); font-size: .62rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-body { max-height: none; min-height: 500px; overflow: visible; padding: 22px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-placeholder { min-height: 350px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-title { font-size: 1.65rem; font-weight: 680; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-subtitle { font-size: .82rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-section { margin-top: 17px; padding: 17px; border-radius: 18px; border-color: var(--line); background: rgba(4, 17, 38, .52); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-section h3 { color: #aad8e8; font-size: .75rem; letter-spacing: .07em; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-row { padding: 12px; border: 1px solid rgba(155, 190, 229, .1); border-radius: 12px; background: rgba(25, 45, 75, .43); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-row span { color: #b3c5df; font-size: .67rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-row strong { color: #f0f5ff; font-size: .86rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .field label { color: #c4d4e8; font-size: .85rem; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.detail-grid, .detail-actions, .status-flags) { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.flag, .archive-notice, .delete-notice, .error-box) { border-radius: 13px; line-height: 1.55; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .flag.ok { color: #9cf0c7; background: rgba(20, 113, 78, .15); border-color: rgba(110, 231, 183, .28); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .flag.no, :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.delete-notice, .error-box) { color: #ffb4be; background: rgba(153, 40, 69, .13); border-color: rgba(255, 137, 152, .3); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .archive-notice { color: #c7d4e7; background: rgba(103, 125, 159, .09); border-color: var(--line); }
body.tfo-aurora #tfoNotifications { padding: 23px; border: 1px solid var(--line); border-radius: 24px; background: var(--aurora-panel); box-shadow: inset 0 1px rgba(234, 242, 255, .07), var(--shadow); }
body.tfo-aurora #tfoNotifications :is(h3, p) { color: var(--text); }
body.tfo-aurora #tfoNotifications p { color: var(--muted); }
body.tfo-aurora #tfoNotifications button { border-radius: 14px; border-color: var(--line-strong); color: #e6efff; background: rgba(24, 44, 77, .75); }
body.tfo-aurora #tfoNotifications #tfoPushEnable { color: #201205 !important; background: #ff9a43 !important; border-color: #ffb365 !important; }
/* These two legacy cards carry inline colors, so the scoped override is explicit. */
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPendingCard, :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoDeletionRecovery { color: var(--text) !important; background: var(--aurora-panel) !important; border-radius: 24px !important; padding: 23px !important; box-shadow: var(--shadow); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPendingCard { border-color: rgba(255, 163, 79, .5) !important; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPendingCard p { color: #c6d4e8 !important; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPendingCount { color: #ffc38c; font-weight: 650; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoDeletionRecovery { border-color: rgba(255, 137, 152, .52) !important; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPracticeExtras { color: var(--text); border-color: var(--line); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) #tfoPracticeExtras h3 { color: #e3f1ff; font-size: 1rem; line-height: 1.4; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.tfo-extra-note, .tfo-flight-values small) { color: var(--muted); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .tfo-flight-values { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.tfo-flight-values > div, .tfo-flight-mission) { border-color: var(--line); border-radius: 17px; background: rgba(14, 34, 60, .52); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .tfo-extra-actions { gap: 10px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .tfo-practice-map { border-color: var(--line-strong); border-radius: 19px; }

@media (hover: hover) {
  body.tfo-aurora :is(.button--secondary, .secondary-btn, .link-btn, .icon-button, .mission-action, .tfo-extra-button):not(:disabled):hover { background: rgba(43, 72, 111, .8); border-color: #a1cde2; box-shadow: 0 0 0 1px rgba(162, 217, 232, .09); }
  body.tfo-aurora :is(.button--primary, .primary-btn, .tfo-extra-button.primary):not(:disabled):hover { color: #201205; background: #ffac63; border-color: #ffd1a3; box-shadow: 0 7px 23px rgba(247, 140, 56, .2); }
}
@media (max-width: 1180px) {
  body.tfo-aurora .mission-toolbar { grid-template-columns: minmax(0, 1.6fr) minmax(142px, .7fr) minmax(110px, .55fr); }
  body.tfo-aurora .toolbar-field--profile { grid-column: 1 / -1; }
  body.tfo-aurora .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tfo-aurora .weather-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tfo-aurora .overall-card { flex-wrap: wrap; }
  body.tfo-aurora .overall-gauge { width: 130px; height: 130px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .workspace { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
}
@media (max-width: 900px) {
  body.tfo-aurora .topbar { min-height: calc(78px + var(--safe-top)); padding-inline: max(20px, var(--safe-left)) max(20px, var(--safe-right)); }
  body.tfo-aurora .app-tabs { top: calc(78px + var(--safe-top)); }
  body.tfo-aurora .workspace, body.tfo-aurora .app-footer { width: calc(100% - 36px); }
  body.tfo-aurora .mission-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tfo-aurora .search-block, body.tfo-aurora .toolbar-field--profile { grid-column: 1 / -1; }
  body.tfo-aurora :is(.dashboard-grid, .space-grid, .missions-layout, .dossier-grid) { grid-template-columns: minmax(0, 1fr); }
  body.tfo-aurora :is(.chart-grid, .insight-grid, .settings-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tfo-aurora .overall-card { flex-wrap: nowrap; }
  body.tfo-aurora .overall-gauge { width: 144px; height: 144px; }
  body.tfo-aurora .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tfo-aurora .gnss-check-card { gap: 22px; }
  body.tfo-aurora .source-status { grid-template-columns: 10px minmax(0, 1fr); }
  body.tfo-aurora .source-status time { grid-column: 2; }
  body.tfo-aurora .settings-fields label { flex-wrap: wrap; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .page-shell { width: calc(100% - 36px); }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .workspace { width: 100%; grid-template-columns: minmax(0, 1fr); }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-list { max-height: 58svh; min-height: 250px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar input { grid-column: 1; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar button { grid-column: 1 / -1; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-body { min-height: 0; }
}
@media (max-width: 620px) {
  body.tfo-aurora .topbar { display: flex; flex-wrap: wrap; gap: 11px; min-height: 0; padding: calc(12px + var(--safe-top)) max(16px, var(--safe-right)) 12px max(16px, var(--safe-left)); }
  body.tfo-aurora .brand-mark { width: 42px; height: 42px; }
  body.tfo-aurora .brand-name { font-size: .88rem; line-height: 1.25; }
  body.tfo-aurora .brand-lockup { gap: 9px; }
  body.tfo-aurora .topbar-actions { width: 100%; justify-content: flex-end; gap: 8px; }
  body.tfo-aurora .topbar-actions > .button { margin-right: auto; }
  body.tfo-aurora .sync-indicator { width: 44px; min-width: 44px; }
  /* Two-row mobile header is not sticky: tab scrolling stays predictable under Dynamic Island. */
  body.tfo-aurora .topbar { position: relative; }
  body.tfo-aurora .app-tabs { top: var(--safe-top); margin: 16px 0 20px; border-radius: 20px; }
  body.tfo-aurora .tab-button { padding: 11px 15px; font-size: .82rem; }
  body.tfo-aurora .workspace { width: calc(100% - 28px); padding-top: 18px; padding-bottom: 28px; }
  body.tfo-aurora .mission-toolbar { padding: 17px; gap: 13px; border-radius: 22px; }
  body.tfo-aurora .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  body.tfo-aurora .search-row .button { width: auto; padding-inline: 11px; }
  body.tfo-aurora .search-row .button svg { display: none; }
  body.tfo-aurora .selected-location { gap: 5px 8px; }
  body.tfo-aurora #locationCoordinates { flex-basis: 100%; padding-left: 15px; }
  body.tfo-aurora :is(.chart-grid, .insight-grid, .settings-grid, .status-grid) { grid-template-columns: minmax(0, 1fr); }
  body.tfo-aurora :is(.dashboard-grid, .space-grid, .missions-layout, .dossier-grid) { gap: 16px; }
  body.tfo-aurora .overall-card { display: flex; flex-wrap: wrap; min-height: 0; padding: 24px; gap: 22px; }
  body.tfo-aurora .overall-copy h1 { font-size: clamp(2rem, 8.5vw, 2.65rem); }
  body.tfo-aurora .overall-gauge { width: 118px; height: 118px; margin: 0; }
  body.tfo-aurora .overall-gauge strong { font-size: 2rem; }
  body.tfo-aurora :is(.mission-controls, .timeline-panel, .insight-card, .chart-card, .forecast-table-card, .method-card, .kp-card, .space-alerts, .gnss-check-card, .mission-editor, .missions-list-card, .settings-card, .score-breakdown-card, .dossier-box) { padding: 20px; }
  body.tfo-aurora .status-card { min-height: 0; padding: 20px; }
  body.tfo-aurora .status-card__icon { margin-bottom: 13px; }
  body.tfo-aurora .weather-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.tfo-aurora .metric-card { padding: 17px 15px; }
  body.tfo-aurora .metric-card strong { font-size: 1.7rem; }
  body.tfo-aurora .panel-heading { gap: 10px; }
  body.tfo-aurora .timeline-legend { display: flex; gap: 8px 12px; font-size: .69rem; }
  body.tfo-aurora .operational-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tfo-aurora .map-toolbar, body.tfo-aurora .map-status-strip { padding: 17px; }
  body.tfo-aurora .layer-switches { gap: 7px; }
  body.tfo-aurora .layer-toggle span { padding-inline: 11px; }
  body.tfo-aurora .map-feature-panel { padding: 17px; }
  body.tfo-aurora .score-breakdown-row { grid-template-columns: minmax(0, 1fr) 58px 65px; gap: 7px; font-size: .72rem; }
  body.tfo-aurora .kp-display { align-items: stretch; }
  body.tfo-aurora .kp-gauge { align-self: center; }
  body.tfo-aurora .mission-item { padding: 17px; }
  body.tfo-aurora .mission-item__actions { justify-content: flex-start; }
  body.tfo-aurora .mission-item__actions > button { flex: 1 1 auto; }
  body.tfo-aurora .button-row { gap: 10px; }
  body.tfo-aurora .button-row > .button { flex: 1 1 145px; white-space: normal; }
  body.tfo-aurora .dossier-heading { align-items: flex-start; }
  body.tfo-aurora .dossier-heading h2 { font-size: 1.65rem; }
  body.tfo-aurora .dossier-heading img { width: 60px; height: 60px; border-radius: 14px; }
  body.tfo-aurora .dossier-file { padding: 14px; }
  body.tfo-aurora .dossier-box .button { max-width: 100%; white-space: normal; }
  body.tfo-aurora .dossier-report-row { align-items: stretch; }
  body.tfo-aurora .dossier-report-row button { align-self: flex-start; }
  body.tfo-aurora .thermal-formula-cards { grid-template-columns: minmax(0, 1fr); }
  body.tfo-aurora .thermal-curve { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tfo-aurora .settings-fields label { flex-wrap: nowrap; }
  body.tfo-aurora .login-card { padding: 29px 22px; }
  body.tfo-aurora .brand-lockup--large { flex-wrap: wrap; }
  body.tfo-aurora .brand-lockup--large .brand-name { white-space: normal; font-size: 1rem; }
  body.tfo-aurora .pin-row { grid-template-columns: minmax(0, 1fr); }
  body.tfo-aurora .app-footer { width: calc(100% - 32px); }
  body.tfo-aurora .data-attribution { margin-left: 0; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .page-shell { width: calc(100% - 28px); padding-top: calc(14px + var(--safe-top)); }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar { padding: 22px; gap: 19px; align-items: stretch; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar-actions { justify-content: flex-start; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .topbar-actions > * { flex: 1 1 auto; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stat-card { padding: 17px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .stat-card:first-child { grid-column: 1 / -1; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .workspace { width: 100%; padding: 0; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .panel-head { padding: 20px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .toolbar input { grid-column: 1 / -1; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .request-item { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 19px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .status-stack { flex-direction: row; flex-wrap: wrap; align-items: center; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-body { padding: 18px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .detail-section { padding: 14px; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.detail-grid, .detail-actions, .status-flags) { grid-template-columns: minmax(0, 1fr); }
  body.tfo-aurora #tfoNotifications { padding: 20px; }
  body.tfo-aurora #tfoNotifications .tfo-push-buttons { gap: 10px; }
  body.tfo-aurora #tfoNotifications button { width: 100%; }
  :is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .tfo-extra-actions > * { flex: 1 1 100%; }
}

/* Manual mission tools remain reachable alongside the SAR practice manager. */
body.tfo-aurora .tfo-manual-missions { margin-top: 24px; border: 1px solid var(--line); border-radius: 24px; padding: 0 20px 20px; background: rgba(6, 19, 41, .72); }
body.tfo-aurora .tfo-manual-missions > summary { min-height: 56px; padding: 17px 2px; color: #d7e8fa; font-weight: 700; cursor: pointer; }
body.tfo-aurora .tfo-manual-missions:not([open]) { padding-bottom: 0; }
body.tfo-aurora #tfoMissionManager { min-width: 0; color: var(--text); }
/* The manager's base stylesheet declares a light palette locally. Inherit Aurora
   explicitly and outrank its ID-scoped controls without changing that fallback. */
body.tfo-aurora #tfoMissionManager {
  --orange: inherit;
  --orange-soft: inherit;
  --ink: inherit;
  --text: inherit;
  --muted: inherit;
  --line: inherit;
  --surface: inherit;
  --soft: inherit;
  --danger: inherit;
  --archive: inherit;
  --archive-soft: inherit;
}
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.topbar, .panel, .stat-card) { background: var(--aurora-panel); border-color: var(--line); box-shadow: inset 0 1px rgba(231, 243, 255, .08), var(--shadow); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { min-width: 0; min-height: 46px; padding: 11px 13px; border-radius: 14px; border-color: var(--line); color: var(--text); background: rgba(2, 11, 29, .79); font-size: 16px; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(input, select, textarea):focus { border-color: #79d7e6 !important; box-shadow: var(--aurora-ring); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.primary-btn, .secondary-btn, .danger-btn, .link-btn) { min-height: 44px; padding: 11px 16px; border-radius: 14px; font-size: .875rem; line-height: 1.4; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .primary-btn { color: #201205; background: linear-gradient(125deg, #ffa34d, #f18029); border-color: #ffa04f; box-shadow: inset 0 1px rgba(255, 234, 206, .3); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.secondary-btn, .link-btn) { color: #e3edff; background: rgba(22, 42, 73, .59); border-color: var(--line-strong); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .danger-btn { color: #ffb4be; background: rgba(142, 34, 65, .17); border-color: rgba(255, 138, 153, .45); }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) :is(.primary-btn, .secondary-btn, .danger-btn, .link-btn):hover { transform: none; }
:is(body.tfo-aurora-pratiche, body.tfo-aurora #tfoMissionManager) .eyebrow { color: #a1d5ed; font-size: .7rem; letter-spacing: .13em; }
body.tfo-aurora #tfoMissionManager .page-shell { width: 100%; padding: 0; }
body.tfo-aurora #tfoMissionManager .topbar { position: relative; top: auto; }
body.tfo-aurora [data-aurora-control] { min-height: 46px; font-size: 16px; }
body.tfo-aurora [data-aurora-status] { color: var(--muted); font-size: .86rem; line-height: 1.6; }
body.tfo-aurora .tfo-mobile-nav { display: none; }
body.tfo-aurora .tfo-context-parameters { border: 1px solid var(--line); border-radius: 20px; background: rgba(7, 19, 40, .72); }
body.tfo-aurora .tfo-context-parameters > summary { padding: 15px 20px; min-height: 48px; cursor: pointer; font-size: .85rem; font-weight: 650; color: var(--muted); }
body.tfo-aurora .tfo-context-parameters[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
body.tfo-aurora .tfo-context-parameters .mission-toolbar { border: 0; margin: 0; box-shadow: none; background: transparent; }
body.tfo-aurora .layer-toggle { position: relative; }
body.tfo-aurora .layer-toggle input { width: 1px; height: 1px; min-height: 0; padding: 0; clip-path: inset(50%); }
body.tfo-aurora .layer-toggle input:focus-visible + span { outline: 2px solid #9bedef; outline-offset: 3px; }
@media (max-width: 620px) {
  body.tfo-aurora #sarPracticesButton { display: none; }
  body.tfo-aurora #tfoMissionManager .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tfo-aurora #tfoMissionManager .stat-card:first-child { grid-column: auto; }
  body.tfo-aurora #tfoMissionManager .stat-card { padding: 12px 10px; }
  body.tfo-aurora #tfoMissionManager .stat-card span { font-size: .6rem; letter-spacing: .02em; }
  body.tfo-aurora #tfoMissionManager .stat-card strong { font-size: 1.7rem; }
  body.tfo-aurora:has(.tfo-mobile-nav) .app-shell { padding-bottom: calc(88px + var(--safe-bottom)); }
  body.tfo-aurora .tfo-mobile-nav {
    position: fixed;
    z-index: 1200;
    left: max(10px, var(--safe-left));
    right: max(10px, var(--safe-right));
    bottom: max(10px, var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 7px;
    border: 1px solid rgba(175, 209, 237, .3);
    border-radius: 23px;
    background: rgba(7, 18, 41, .96);
    box-shadow: inset 0 1px rgba(232, 247, 255, .07), 0 8px 35px rgba(0, 2, 14, .6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  body.tfo-aurora .tfo-mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 52px; border: 1px solid transparent; border-radius: 16px; padding: 7px 2px; background: transparent; color: #c1d1e7; font-size: .7rem; font-weight: 650; line-height: 1.2; }
  body.tfo-aurora .tfo-mobile-nav button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  body.tfo-aurora .tfo-mobile-nav button.is-active, body.tfo-aurora .tfo-mobile-nav button[aria-selected="true"] { color: #ffc48e; border-color: rgba(255, 163, 83, .3); background: linear-gradient(150deg, rgba(225, 123, 45, .19), rgba(122, 93, 103, .1)); }
  body.tfo-aurora:has(.tfo-mobile-nav) .toast-root { bottom: calc(99px + var(--safe-bottom)); }
  body.tfo-aurora #tfoMissionManager .page-shell { width: 100%; padding: 0; }
  body.tfo-aurora .tfo-manual-missions { padding-inline: 14px; }
}

/* Aurora immersiva (proposta 10): one viewport canvas, never a map layer. */
body.tfo-aurora .tfo-aurora-scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
  opacity: 1;
  background: radial-gradient(ellipse at 22% 28%, #184b49, transparent 62%),
    radial-gradient(ellipse at 80% 70%, #34335b, transparent 67%), #071421;
}
body.tfo-aurora .tfo-aurora-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.tfo-aurora[data-aurora-mode="calm"] .tfo-aurora-scene { opacity: .82; }

/* The soft light moves within the existing backgrounds as well as behind them.
   No overlay sits over text, and map elements receive no transform or filter. */
body.tfo-aurora #tfoMissionManager :is(.panel, .stat-card, .topbar),
body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .login-card, .topbar,
  .settings-card, .status-card, .metric-card, .dossier-box, #tfoNotifications,
  #tfoPendingCard, #tfoDeletionRecovery) {
  background-size: 160% 180%, 170% 170%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 0 0;
  background-repeat: no-repeat;
  animation: tfo-immersive-surface 18s steps(270, end) infinite alternate;
}
body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .login-card) {
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-color: rgba(157, 220, 224, .3);
  box-shadow: inset 0 1px rgba(208, 255, 246, .12), 0 18px 44px rgba(0, 5, 21, .3);
}
body.tfo-aurora .topbar {
  background-image: radial-gradient(ellipse at 10% 0%, rgba(83, 192, 173, .2), transparent 58%),
    radial-gradient(ellipse at 85% 100%, rgba(133, 108, 222, .18), transparent 55%),
    linear-gradient(120deg, rgba(5, 20, 34, .79), rgba(7, 19, 37, .72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .settings-card):nth-child(2n) { animation-delay: -7s; }
body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .settings-card):nth-child(3n) { animation-delay: -13s; }
body.tfo-aurora :is(.mission-item, .dossier-file, .detail-section, .tfo-flight-mission, .mw-prepare) {
  background-image: radial-gradient(ellipse at 0% 15%, rgba(75, 178, 165, .12), transparent 58%),
    radial-gradient(ellipse at 90% 100%, rgba(124, 113, 211, .12), transparent 56%),
    linear-gradient(135deg, rgba(7, 24, 42, .42), rgba(7, 21, 40, .57));
  background-size: 160% 180%, 170% 170%, 100% 100%;
  animation: tfo-immersive-surface 22s steps(264, end) infinite alternate;
}
body.tfo-aurora[data-aurora-mode="calm"] :is(.glass-panel, .panel, .stat-card, .login-card, .topbar,
  .settings-card, .status-card, .metric-card, .dossier-box, #tfoNotifications,
  #tfoPendingCard, #tfoDeletionRecovery, .mission-item, .dossier-file, .detail-section, .tfo-flight-mission, .mw-prepare) {
  animation-duration: 48s;
  animation-timing-function: steps(192, end);
}
body.tfo-aurora[data-aurora-paused="true"] :is(.glass-panel, .panel, .stat-card, .login-card, .topbar,
  .settings-card, .status-card, .metric-card, .dossier-box, #tfoNotifications,
  #tfoPendingCard, #tfoDeletionRecovery, .mission-item, .dossier-file, .detail-section, .tfo-flight-mission, .mw-prepare) {
  animation-play-state: paused !important;
}
body.tfo-aurora[data-aurora-mode="off"] :is(.glass-panel, .panel, .stat-card, .login-card, .topbar,
  .settings-card, .status-card, .metric-card, .dossier-box, #tfoNotifications,
  #tfoPendingCard, #tfoDeletionRecovery, .mission-item, .dossier-file, .detail-section, .tfo-flight-mission, .mw-prepare) {
  animation: none !important;
}
@keyframes tfo-immersive-surface {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to { background-position: 100% 80%, 0% 15%, 0 0; }
}

body.tfo-aurora #missionWorkspace .mw-prepare { background-color: rgba(7, 20, 38, .2); }
body.tfo-aurora #missionWorkspace .mw-tabs button:not([aria-selected="true"]) {
  background: rgba(10, 28, 46, .84);
  border-color: rgba(144, 206, 218, .32);
  color: #dcecf5;
}

/* User motion preferences also stop the baseline's decorative transitions. */
body.tfo-aurora[data-aurora-paused="true"] .tfo-aurora-scene *,
body.tfo-aurora[data-aurora-paused="true"] .tfo-aurora-scene::before,
body.tfo-aurora[data-aurora-paused="true"] .tfo-aurora-scene::after { animation-play-state: paused !important; }
body.tfo-aurora[data-aurora-mode="off"] .tfo-aurora-scene { display: none !important; }
body.tfo-aurora[data-aurora-mode="off"] :is(.tab-panel, .toast, .sync-dot, .skeleton-line) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.tfo-aurora *, body.tfo-aurora *::before, body.tfo-aurora *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.tfo-aurora .tfo-aurora-scene { display: none !important; }
}
@media (prefers-contrast: more) {
  body.tfo-aurora { --line: rgba(208, 225, 252, .5); --line-strong: #c3e5ef; --muted: #d4e1f5; --muted-2: #c2d1e8; --aurora-panel: #0a1833; }
  body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .login-card) { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print {
  body.tfo-aurora { color-scheme: light; color: #142338; background: #fff; }
  body.tfo-aurora .tfo-aurora-scene, body.tfo-aurora .tfo-aurora-controls { display: none !important; }
  body.tfo-aurora *, body.tfo-aurora *::before, body.tfo-aurora *::after { animation: none !important; transition: none !important; text-shadow: none !important; }
  body.tfo-aurora :is(.glass-panel, .panel, .stat-card, .login-card, .topbar) { background: #fff; color: #142338; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
