
  :root {
    --ink: #1A2432;
    --ink-2: #2A3648;
    --paper: #F5F6F7;
    --card: #FFFFFF;
    --line: #E1E4E8;
    --muted: #5A6472;
    --orange: #D95B12;       /* flight-recorder international orange */
    --orange-soft: #FBEDE3;
    --red: #B3261E;
    --red-soft: #FAECEB;
    --blue: #2A78D6;
    --amber: #D98E2C;
    --ok: #2E7D32; --ok-soft: #E8F5E9;
    --mid: #A15C00; --mid-soft: #FFF6E3;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
  body {
    margin: 0; background: var(--paper); color: #1c2430;
    font-family: "IBM Plex Sans", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
    font-size: 15px; line-height: 1.7;
  }
  .mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; }

  /* ---------- header ---------- */
  header { background: var(--ink); color: #EDF0F4; }
  .rec-band { height: 6px; background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, #B44A0D 14px 28px); }
  .hd-in { max-width: 980px; margin: 0 auto; padding: 40px 22px 30px; }
  .hd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
  .kicker { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #9AA6B5; margin-bottom: 12px; }
  h1 { margin: 0 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.3px; }
  .route { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: #C7CFDA; margin: 6px 0 14px; }
  .route b { color: var(--orange); font-weight: 600; }
  .hd-sub { max-width: 560px; color: #A9B4C2; font-size: 14px; margin: 0; }
  .meta-line { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #7E8B9C; margin-top: 18px; }
  .lang-sw { display: flex; border: 1px solid #3A4658; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
  .lang-sw button {
    background: transparent; color: #A9B4C2; border: 0; padding: 7px 14px; cursor: pointer;
    font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 1px;
  }
  .lang-sw button.on { background: var(--orange); color: #fff; }
  .lang-sw button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

  /* ---------- disclaimer ---------- */
  .discl { max-width: 980px; margin: 22px auto 0; padding: 0 22px; }
  .discl-in { background: var(--red-soft); border: 1px solid #EAC7C4; border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 18px; font-size: 13.5px; }
  .discl-in b { color: var(--red); }

  /* ---------- nav ---------- */
  nav { position: sticky; top: 0; z-index: 2000; background: rgba(245,246,247,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .nav-in { max-width: 980px; margin: 0 auto; padding: 8px 18px; display: flex; gap: 2px; overflow-x: auto; }
  nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 16px; white-space: nowrap; }
  nav a:hover { background: #E8EBEF; }
  nav a:focus-visible { outline: 2px solid var(--orange); }

  /* ---------- layout ---------- */
  main { max-width: 980px; margin: 0 auto; padding: 10px 22px 40px; }
  section { padding: 42px 0 8px; }
  .eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
  h2 { margin: 0 0 4px; font-size: 22px; color: var(--ink); letter-spacing: -0.2px; }
  .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 14px; }

  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
  thead th, tr.thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
  tbody tr:last-child td { border-bottom: none; }
  td.t { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
  th.rowh { background: #F0F2F4; color: var(--ink-2); font-weight: 600; width: 150px; }

  .badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 10px; font-weight: 600; }
  .b-hi { background: var(--ok-soft); color: var(--ok); }
  .b-mid { background: var(--mid-soft); color: var(--mid); }
  .b-lo { background: var(--red-soft); color: var(--red); }

  .chart-box { position: relative; height: 300px; margin-top: 10px; }
  .chart-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

  /* ---------- ATC log (signature) ---------- */
  .atc-wrap { background: var(--ink); border-radius: 12px; padding: 8px 0; overflow: hidden; }
  .atc-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px 10px; border-bottom: 1px solid #2C3A4E; }
  .atc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(217,91,18,0.8); }
  .atc-head span { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 1.5px; color: #9AA6B5; }
  .atc-row { display: flex; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #232F41; }
  .atc-row:last-child { border-bottom: none; }
  .atc-t { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--orange); min-width: 62px; padding-top: 2px; }
  .atc-spk { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.5px; color: #8FA0B5; margin-bottom: 2px; }
  .atc-q { color: #E8ECF1; font-size: 14.5px; font-style: italic; }
  .atc-note { color: #9AA6B5; font-size: 12.5px; margin-top: 5px; }
  .atc-row.warn { background: rgba(179,38,30,0.12); border-left: 3px solid var(--red); }
  .atc-row.warn .atc-t { color: #E58A84; }
  .atc-row.warn .atc-note { color: #D9AFAC; }
  .audio-card audio { width: 100%; margin-top: 10px; }

  /* ---------- gallery + lightbox ---------- */
  .gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
  .ev { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; transition: box-shadow .15s ease, transform .15s ease; }
  .ev:hover { box-shadow: 0 4px 16px rgba(26,36,50,0.12); transform: translateY(-2px); }
  .ev:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .ev img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
  .ev figcaption { padding: 9px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
  .lb { position: fixed; inset: 0; background: rgba(12,17,25,0.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 30px 16px; }
  .lb.open { display: flex; }
  .lb-in { max-width: min(1100px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
  .lb-in img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
  .lb-cap { color: #C7CFDA; font-size: 13px; text-align: center; margin-top: 12px; }
  .lb-x { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,0.1); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; }
  .lb-x:hover { background: rgba(255,255,255,0.22); }

  /* ---------- downloads ---------- */
  .dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
  .dl { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
  .dl:hover { border-color: var(--orange); }
  .dl-ic { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px; background: var(--ink); color: #fff; border-radius: 6px; padding: 6px 8px; flex-shrink: 0; }
  .dl b { display: block; font-size: 13.5px; color: var(--ink); }
  .dl span.d { font-size: 12px; color: var(--muted); }

  .src-list { font-size: 14px; padding-left: 20px; }
  .src-list li { margin-bottom: 7px; }
  .src-list a { color: var(--orange); }

  .cl-item { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
  .cl-item:last-child { border-bottom: none; }
  .cl-d { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); min-width: 88px; padding-top: 2px; }

  footer { text-align: center; padding: 34px 20px 40px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 30px; }
  @media (max-width: 640px) { h1 { font-size: 24px; } .atc-row { flex-direction: column; gap: 4px; } }


  /* ---------- aircraft / map / wreckage additions ---------- */
  .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mini-title { margin: 0 0 12px; font-size: 15.5px; color: var(--ink); }
  .source-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
  .source-note a { color: var(--orange); }
  .callout { border-left: 4px solid var(--orange); background: var(--orange-soft); padding: 12px 14px; border-radius: 7px; font-size: 13px; margin-top: 12px; }
  .history { display: grid; gap: 0; }
  .hist-row { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .hist-row:last-child { border-bottom: none; }
  .hist-y { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--orange); font-weight: 600; }
  .hist-v { font-size: 13.5px; }
  #mapBox { position:relative; z-index:0; isolation:isolate; height:520px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#E8ECEF; }
  #mapBox.leaflet-container { z-index:0; }
  .map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
  .map-key { display: inline-flex; align-items: center; gap: 7px; }
  .map-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  .map-line { width: 20px; height: 3px; display: inline-block; border-radius: 2px; }
  .map-fallback { height: 100%; display:flex; align-items:center; justify-content:center; padding:24px; text-align:center; color:var(--muted); font-size:13px; }
  .media-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
  .media-card { margin:0; background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; cursor:zoom-in; }
  .media-card.wide { grid-column: 1 / -1; }
  .media-card img { display:block; width:100%; height:100%; max-height:520px; object-fit:cover; }
  .media-card.wide img { max-height:640px; object-fit:contain; background:#111820; }
  .media-card figcaption { padding:10px 13px; font-size:12px; line-height:1.55; color:var(--muted); }
  .fact-pills { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; }
  .fact-pill { background:#EEF1F4; color:var(--ink-2); border:1px solid var(--line); border-radius:999px; padding:4px 9px; font-size:11.5px; }
  @media (max-width: 720px) {
    .info-grid, .media-grid { grid-template-columns: 1fr; }
    .media-card.wide { grid-column: auto; }
    #mapBox { height: 430px; }
  }


  /* ---------- chart interaction & estimate notes ---------- */
  .chart-head-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:2px; flex-wrap:wrap; }
  .chart-head-row h3 { margin:0; font-size:15.5px; color:var(--ink); }
  .chart-head-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .chart-reset {
    border:1px solid #D6DAE0; background:#fff; color:var(--ink-2); border-radius:7px;
    padding:5px 10px; font-family:"IBM Plex Mono", monospace; font-size:11px; cursor:pointer;
  }
  .chart-reset:hover { border-color:var(--orange); color:var(--orange); }
  .chart-help { font-size:11.5px; color:var(--muted); margin:4px 0 2px; }
  .estimate-note {
    background:var(--red-soft); border:1px solid #EAC7C4; border-left:4px solid var(--red);
    border-radius:8px; padding:13px 16px; margin:0 0 14px; font-size:13px;
  }
  .estimate-note b { color:var(--red); }
  .photo-credit { display:block; margin-top:7px; font-size:11.5px; color:var(--muted); }
  .photo-credit a { color:var(--orange); text-decoration:none; font-weight:600; }
  .photo-credit a:hover { text-decoration:underline; }
  figure[data-source-url] { cursor:pointer; }



/* ---------- Flask rebuild additions ---------- */
:root { --panel-shadow: 0 8px 28px rgba(26,36,50,.06); }
body { min-height: 100vh; }
.hero-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:22px; }
.hero-fact { background:rgba(255,255,255,.05); border:1px solid #364357; border-radius:9px; padding:11px 12px; }
.hero-fact .v { color:#fff; font:600 14px/1.35 "IBM Plex Mono",monospace; }
.hero-fact .k { color:#8996a8; font-size:11px; margin-top:4px; }
.card { box-shadow:var(--panel-shadow); }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.metric-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 18px; }
.metric-card .metric-label { color:var(--muted); font-size:12px; }
.metric-card .metric-value { font:600 20px/1.35 "IBM Plex Mono",monospace; color:var(--ink); margin-top:5px; }
.metric-card .metric-note { margin-top:7px; color:var(--muted); font-size:11.5px; }
.crew-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.crew-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 18px; }
.crew-role { font:600 11px/1.4 "IBM Plex Mono",monospace; color:var(--orange); letter-spacing:.8px; text-transform:uppercase; }
.crew-name { margin-top:6px; font-weight:700; font-size:16px; color:var(--ink); }
.crew-status { margin-top:8px; color:var(--muted); font-size:12px; }
.timeline-list { position:relative; padding-left:20px; }
.timeline-list:before { content:""; position:absolute; left:5px; top:4px; bottom:4px; width:2px; background:#E0E4E8; }
.timeline-item { position:relative; display:grid; grid-template-columns:155px 1fr; gap:16px; padding:0 0 18px 16px; }
.timeline-item:before { content:""; position:absolute; left:-19px; top:7px; width:10px; height:10px; border-radius:50%; background:#AAB3BE; border:2px solid var(--paper); }
.timeline-item.high:before { background:var(--orange); }
.timeline-item.critical:before { background:var(--red); box-shadow:0 0 0 4px rgba(179,38,30,.10); }
.timeline-time { font:500 12px/1.6 "IBM Plex Mono",monospace; color:var(--muted); }
.timeline-title { font-weight:600; color:var(--ink); }
.timeline-values { display:flex; flex-wrap:wrap; gap:7px; margin-top:6px; }
.timeline-values span { background:#F0F2F4; border:1px solid var(--line); border-radius:999px; padding:2px 7px; font:500 10.5px/1.5 "IBM Plex Mono",monospace; color:var(--ink-2); }
.chart-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:14px; box-shadow:var(--panel-shadow); }
.chart-box.tall { height:360px; }
.chart-loading { display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted); font-size:13px; }
.api-state { display:inline-flex; align-items:center; gap:7px; font-size:11px; color:var(--muted); }
.api-state:before { content:""; width:7px; height:7px; border-radius:50%; background:#AAB3BE; }
.api-state.ok:before { background:var(--ok); }
.api-state.err:before { background:var(--red); }
.compare-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.compare-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 18px; }
.compare-card h4 { margin:0 0 10px; color:var(--ink); }
.compare-card dl { margin:0; display:grid; grid-template-columns:110px 1fr; gap:5px 10px; font-size:12.5px; }
.compare-card dt { color:var(--muted); }
.compare-card dd { margin:0; font-family:"IBM Plex Mono",monospace; color:var(--ink-2); }
.hypothesis { background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:12px; }
.hypothesis-rank { font:600 11px/1.4 "IBM Plex Mono",monospace; color:var(--orange); }
.hypothesis h3 { margin:6px 0 8px; font-size:17px; color:var(--ink); }
.hypothesis p { margin:6px 0; font-size:13px; }
.hypothesis .decisive { color:var(--muted); }
.source-table-wrap { overflow-x:auto; }
.source-type { font:600 10.5px/1.4 "IBM Plex Mono",monospace; color:var(--muted); text-transform:uppercase; }
.source-link { color:var(--orange); text-decoration:none; word-break:break-all; }
.source-link:hover { text-decoration:underline; }
.download-note { font-size:12px; color:var(--muted); margin-top:12px; }
.file-size { font-family:"IBM Plex Mono",monospace; }
.footer-tech { margin-top:7px; font-family:"IBM Plex Mono",monospace; font-size:11px; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:var(--mid); }
.media-card img { min-height:220px; }
.lb-in { position:relative; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%; border:0; color:#fff; background:rgba(255,255,255,.12); cursor:pointer; font-size:22px; }
.lb-prev { left:-54px; } .lb-next { right:-54px; }
.no-js { max-width:980px; margin:18px auto; padding:0 22px; }
.no-js div { background:#fff7e6; border:1px solid #f0d59f; border-radius:8px; padding:12px 14px; }
.data-origin { font-size:11px; color:var(--muted); margin-top:8px; }
.history-route { font-family:"IBM Plex Mono",monospace; white-space:nowrap; }
.mono-small { font:500 11.5px/1.5 "IBM Plex Mono",monospace; }
#mapBox .leaflet-popup-content { font-family:"IBM Plex Sans","Noto Sans KR",sans-serif; line-height:1.55; }
@media (max-width: 860px) {
  .hero-facts,.grid-3,.compare-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .hero-facts,.grid-3,.compare-grid { grid-template-columns:1fr; }
  .timeline-item { grid-template-columns:1fr; gap:2px; }
  .lb-nav { display:none; }
}


/* ---------- investigation / search progress ---------- */
.investigation-list { position:relative; }
.investigation-item {
  display:grid;
  grid-template-columns:145px 1fr;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.investigation-item:first-child { padding-top:2px; }
.investigation-item:last-child { border-bottom:0; padding-bottom:2px; }
.investigation-date { color:var(--ink-2); font-size:12px; font-weight:600; }
.investigation-date span { color:var(--muted); font-size:11px; font-weight:400; }
.investigation-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.investigation-title-row h3 { margin:0; font-size:15px; color:var(--ink); }
.investigation-item p { margin:5px 0 0; color:var(--ink-2); font-size:13.5px; }
.investigation-sources { margin-top:7px; font-size:11.5px; color:var(--muted); }
.investigation-sources a { color:var(--orange); text-decoration:none; }
.investigation-sources a:hover { text-decoration:underline; }
.investigation-snapshot { background:#EEF1F4; color:var(--muted); }
@media (max-width:640px) {
  .investigation-item { grid-template-columns:1fr; gap:4px; }
}

/* ---------- v1 enrichment: operator / replay / source state / context ---------- */
.grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.metric-value.compact { font-size:15px; }
.operator-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.operator-head .mini-title { margin-top:4px; margin-bottom:0; }
.operator-metrics { margin-top:4px; }

.replay-console {
  background:linear-gradient(180deg,#1A2432 0%,#202C3D 100%);
  color:#EDF0F4;
  border-radius:12px;
  padding:18px 20px;
  margin-bottom:14px;
  box-shadow:var(--panel-shadow);
}
.replay-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.replay-head h3 { margin:3px 0 0; font-size:16px; color:#fff; }
.replay-head .source-type { color:#9AA6B5; }
.replay-head .api-state { color:#A9B4C2; }
.replay-slider {
  width:100%;
  margin:18px 0 4px;
  accent-color:#8A6BD1;
  cursor:pointer;
}
.replay-slider:disabled { cursor:wait; opacity:.55; }
.replay-time-row { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; color:#9AA6B5; }
.replay-time-row strong { color:#fff; text-align:center; font-size:12px; }
.replay-time-row span:last-child { text-align:right; }
.replay-telemetry { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; margin-top:14px; }
.replay-telemetry > div { background:rgba(255,255,255,.055); border:1px solid #364357; border-radius:8px; padding:9px 10px; min-width:0; }
.replay-telemetry span { display:block; color:#8FA0B5; font-size:10.5px; }
.replay-telemetry b { display:inline-block; color:#fff; font:600 13px/1.35 "IBM Plex Mono",monospace; margin-top:3px; white-space:nowrap; }
.replay-telemetry small { color:#8996A8; font-size:9px; margin-left:3px; }
.replay-console .chart-note { color:#98A5B6; margin-bottom:0; }
.replay-source.source-text-adsb { color:#8FC1FF; }
.replay-source.source-text-mlat { color:#F2B65D; }
.replay-source.source-text-satellite { color:#F19A94; }

.source-band-legend { display:flex; align-items:center; flex-wrap:wrap; gap:8px 15px; font-size:11.5px; color:var(--muted); margin:0 0 12px; }
.source-band-legend b { color:var(--ink-2); font-size:12px; }
.source-band-legend span { display:inline-flex; align-items:center; gap:6px; }
.source-swatch { display:inline-block; width:18px; height:7px; border-radius:2px; }
.source-swatch.adsb { background:rgba(42,120,214,.55); }
.source-swatch.mlat { background:rgba(217,142,44,.65); }
.source-swatch.satellite { background:rgba(179,38,30,.75); }
.source-swatch.gap { background:rgba(90,100,114,.28); }

.source-strip-wrap { margin-top:13px; }
.source-strip-label { font-size:10.5px; color:var(--muted); margin-bottom:4px; }
.source-strip { display:flex; height:10px; width:100%; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#EEF1F4; }
.source-strip-segment { display:block; height:100%; min-width:1px; }
.source-strip-segment.source-adsb { background:rgba(42,120,214,.72); }
.source-strip-segment.source-mlat { background:rgba(217,142,44,.78); }
.source-strip-segment.source-satellite { background:rgba(179,38,30,.78); }
.source-strip-segment.source-gap, .source-strip-segment.source-na { background:rgba(90,100,114,.26); }
.source-strip-loading { font-size:9px; color:var(--muted); padding-left:5px; line-height:8px; }

.regional-context-card { overflow:hidden; }
.regional-timeline { position:relative; margin-top:12px; }
.regional-timeline:before { content:""; position:absolute; left:155px; top:10px; bottom:10px; width:2px; background:#E2E6EA; }
.regional-event { display:grid; grid-template-columns:135px 20px 1fr; gap:10px; align-items:start; padding:10px 0; }
.regional-date { color:var(--ink-2); font-size:11.5px; text-align:right; }
.regional-date span { color:var(--muted); font-size:10px; }
.regional-marker { width:11px; height:11px; border-radius:50%; background:#AAB3BE; margin:5px auto 0; border:2px solid #fff; box-shadow:0 0 0 1px #D8DDE3; z-index:1; }
.regional-event.gnss .regional-marker { background:var(--amber); }
.regional-event.conflict .regional-marker { background:var(--red); }
.regional-event.flight .regional-marker { background:var(--blue); box-shadow:0 0 0 4px rgba(42,120,214,.12); }
.regional-body h4 { margin:0; color:var(--ink); font-size:14px; }
.regional-body p { margin:4px 0 0; color:var(--ink-2); font-size:13px; }
.context-caveat { margin-top:13px; margin-bottom:0; }

.methodology-card { margin-top:16px; }
.methodology-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.methodology-grid > div { min-width:0; }
.methodology-grid p { margin:7px 0 0; font-size:13px; }
.dl.derived { border-style:dashed; background:#FCFCFD; }
.dl.derived .dl-ic { background:#7157B8; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .replay-telemetry { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .grid-4,.methodology-grid { grid-template-columns:1fr; }
  .replay-telemetry { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .replay-time-row { grid-template-columns:1fr; gap:2px; text-align:center; }
  .replay-time-row span:last-child { text-align:center; }
  .regional-timeline:before { left:5px; }
  .regional-event { grid-template-columns:20px 1fr; gap:8px; }
  .regional-date { grid-column:2; text-align:left; order:1; }
  .regional-marker { grid-column:1; grid-row:1 / span 2; order:0; }
  .regional-body { grid-column:2; order:2; }
}
.source-swatch.mixed { background:rgba(113,87,184,.62); }
.source-strip-segment.source-mixed { background:rgba(113,87,184,.72); }
.replay-source.source-text-mixed { color:#B9A3F0; }


/* ---------- v2: full-flight granular charts / event strip / range controls ---------- */
.chart-range-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:11px 13px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:var(--panel-shadow);
}
.chart-range-toolbar b { color:var(--ink-2); font-size:12px; }
.chart-range-actions { display:flex; gap:6px; flex-wrap:wrap; }
.range-btn,
.chart-reset {
  border:1px solid #D5DAE0;
  background:#fff;
  color:var(--ink-2);
  border-radius:7px;
  padding:6px 10px;
  font:500 11px/1.3 "IBM Plex Sans","Noto Sans KR",sans-serif;
  cursor:pointer;
}
.range-btn:hover,
.chart-reset:hover { border-color:var(--orange); color:var(--orange); }
.range-btn.active { background:var(--ink); border-color:var(--ink); color:#fff; }
.range-btn:focus-visible,
.chart-reset:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }

.flight-event-panel {
  margin-top:15px;
  border-top:1px solid var(--line);
  padding-top:13px;
}
.flight-event-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.flight-event-head b { display:block; color:var(--ink-2); font-size:12px; }
.flight-event-head > div > span { display:block; color:var(--muted); font-size:10.5px; margin-top:2px; }
.flight-event-legend { display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:10.5px; }
.flight-event-legend span { display:inline-flex; align-items:center; gap:5px; }
.event-dot { width:8px; height:8px; border-radius:50%; background:var(--orange); display:inline-block; }
.phase-diamond { width:8px; height:8px; background:#7157B8; display:inline-block; transform:rotate(45deg); }
.flight-event-track {
  position:relative;
  height:142px;
  margin:12px 12px 4px;
  border-top:2px solid #DDE2E8;
}
.flight-event-track:before,
.flight-event-track:after {
  content:"";
  position:absolute;
  top:-4px;
  width:1px;
  height:8px;
  background:#AAB3BE;
}
.flight-event-track:before { left:0; }
.flight-event-track:after { right:0; }
.flight-event-marker {
  position:absolute;
  top:-7px;
  transform:translateX(-50%);
  width:0;
  height:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  overflow:visible;
  color:var(--ink-2);
}
.flight-event-marker > i {
  display:block;
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--orange);
  border:2px solid #fff;
  box-shadow:0 0 0 1px rgba(217,91,18,.5);
  transform:translateX(-5px);
}
.flight-event-marker.importance-critical > i {
  background:var(--red);
  box-shadow:0 0 0 3px rgba(179,38,30,.10);
}
.flight-event-marker > span {
  position:absolute;
  left:var(--event-label-shift, 0px);
  top:var(--event-row-top, 15px);
  width:var(--event-label-width, 128px);
  box-sizing:border-box;
  padding:3px 4px;
  border-radius:6px;
  text-align:center;
  transform:translateX(-50%);
  pointer-events:auto;
  cursor:pointer;
  transition:background-color .15s ease, box-shadow .15s ease;
}
.flight-event-marker > span:hover,
.flight-event-marker:focus-visible > span {
  background:rgba(217,91,18,.07);
  box-shadow:0 0 0 1px rgba(217,91,18,.10);
}
.flight-event-marker b {
  display:block;
  font-size:10.5px;
  line-height:1.25;
  color:var(--ink-2);
  white-space:normal;
}
.flight-event-marker small {
  display:block;
  margin-top:2px;
  color:var(--muted);
  font:500 9.5px/1.3 "IBM Plex Mono",monospace;
  white-space:nowrap;
}
.flight-event-marker:hover b,
.flight-event-marker:focus-visible b { color:var(--orange); }
.flight-event-marker:focus-visible { outline:none; }


.flight-phase-scale {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin:0 12px 5px;
  color:var(--muted);
  font:500 9.5px/1.3 "IBM Plex Mono",monospace;
}
.flight-phase-scale b { color:var(--ink-2); font:600 10.5px/1.3 "IBM Plex Sans","Noto Sans KR",sans-serif; }
.flight-phase-scale span:last-child { text-align:right; }
.flight-phase-track {
  position:relative;
  height:34px;
  margin:0 12px;
  background:#F2F4F6;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
}
.flight-phase-segment {
  position:absolute;
  top:0;
  bottom:0;
  border:0;
  border-right:1px solid rgba(255,255,255,.65);
  padding:0 5px;
  cursor:pointer;
  overflow:hidden;
  color:#fff;
  font:600 9.5px/1.2 "IBM Plex Sans","Noto Sans KR",sans-serif;
  white-space:nowrap;
}
.flight-phase-segment span { display:block; overflow:hidden; text-overflow:ellipsis; }
.flight-phase-segment.compact span { display:none; }
.flight-phase-segment.phase-takeoff_climb { background:#D9782D; }
.flight-phase-segment.phase-cruise { background:#2A78D6; }
.flight-phase-segment.phase-anomaly { background:#8A6BBE; }
.flight-phase-segment.phase-accident_sequence { background:#B3261E; }
.flight-phase-segment.phase-first_descent { background:#C76A28; }
.flight-phase-segment.phase-rebound_climb { background:#7157B8; }
.flight-phase-segment.phase-final_descent_terrestrial { background:#B3261E; }
.flight-phase-segment.phase-reception_gap { background:#8D96A3; color:#fff; }
.flight-phase-note { margin:7px 12px 0; color:var(--muted); font-size:10.5px; }
.flight-event-track.is-empty { height:58px; }
.flight-event-empty {
  position:absolute;
  left:50%;
  top:15px;
  transform:translateX(-50%);
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
}
.comparison-source-legend {
  margin-top:-4px;
  margin-bottom:13px;
  padding:9px 11px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

@media (max-width: 760px) {
  .flight-event-track { height:154px; margin-left:8px; margin-right:8px; }
  .flight-phase-track,.flight-phase-scale { margin-left:8px; margin-right:8px; }
}


/* ========================================================================== */
/* V3 · multi-page information architecture                                   */
/* ========================================================================== */
.v3-header .hd-in { max-width:1180px; }
.v3-header.is-compact .hd-in { padding-top:24px; padding-bottom:22px; }
.v3-header.is-compact h1 { font-size:28px; margin-top:4px; }
.v3-header.is-compact .hd-sub { max-width:760px; }
.site-brand { display:inline-block; color:#97A6B8; text-decoration:none; font-size:11px; letter-spacing:1.8px; margin-bottom:10px; }
.site-brand:hover { color:#fff; }
.v3-page-kicker { color:var(--orange); font:600 11px/1.3 "IBM Plex Mono",monospace; letter-spacing:1.7px; }
.v3-header-copy { min-width:0; flex:1; }
.v3-discl { max-width:1180px; margin-top:18px; }
.v3-discl .discl-in { padding-top:11px; padding-bottom:11px; }

.v3-nav { position:sticky; top:0; z-index:2000; background:rgba(245,246,247,.96); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.v3-nav .nav-in { max-width:1180px; }
.v3-primary-nav { padding-top:7px; padding-bottom:7px; gap:4px; }
.v3-primary-nav a { font-weight:600; padding:7px 14px; }
.v3-primary-nav a.active { background:var(--ink); color:#fff; }
.v3-primary-nav a.active:hover { background:var(--ink); }
.v3-local-nav-wrap { border-top:1px solid rgba(225,228,232,.8); background:rgba(255,255,255,.72); }
.v3-local-nav { padding-top:5px; padding-bottom:5px; align-items:center; gap:2px; }
.v3-local-nav a { font-size:12px; padding:5px 10px; }
.v3-local-label { color:var(--orange); font:600 10.5px/1.2 "IBM Plex Mono",monospace; letter-spacing:.8px; padding:0 10px 0 2px; white-space:nowrap; }

.v3-main { max-width:1180px; margin:0 auto; padding:8px 22px 52px; }
.v3-main section { scroll-margin-top:104px; }
.v3-page-intro { margin:24px 0 -8px; display:grid; grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr); gap:28px; align-items:center; padding:18px 22px; background:linear-gradient(135deg,#fff 0%,#F7F8FA 100%); }
.v3-page-intro h2 { font-size:18px; margin:7px 0 0; }
.v3-page-intro p { margin:0; color:var(--muted); font-size:13.5px; }

.v3-hub-section { padding-top:32px; }
.v3-hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.v3-hub-card { position:relative; min-height:190px; display:flex; flex-direction:column; padding:21px 22px; background:#fff; color:inherit; text-decoration:none; border:1px solid var(--line); border-radius:12px; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; overflow:hidden; }
.v3-hub-card:after { content:""; position:absolute; width:120px; height:120px; right:-46px; bottom:-58px; border-radius:50%; background:var(--orange-soft); transition:transform .15s ease; }
.v3-hub-card:hover { transform:translateY(-2px); border-color:#D3B39F; box-shadow:0 8px 24px rgba(26,36,50,.09); }
.v3-hub-card:hover:after { transform:scale(1.12); }
.v3-hub-card h3 { margin:7px 0 5px; color:var(--ink); font-size:19px; }
.v3-hub-card p { max-width:88%; margin:0 0 16px; color:var(--muted); font-size:13.5px; }
.v3-hub-index { color:var(--orange); font-size:11px; letter-spacing:1px; }
.v3-hub-link { margin-top:auto; color:var(--orange); font-weight:600; font-size:12.5px; z-index:1; }

.v3-key-flow { display:flex; align-items:stretch; gap:8px; padding:16px; overflow-x:auto; }
.v3-key-flow a { min-width:150px; flex:1; color:inherit; text-decoration:none; background:#F8F9FA; border:1px solid #E7E9EC; border-radius:9px; padding:12px 13px; }
.v3-key-flow a:hover { border-color:var(--orange); background:#FFFDFC; }
.v3-key-flow b { display:block; color:var(--orange); font:600 11px/1.3 "IBM Plex Mono",monospace; }
.v3-key-flow span { display:block; color:var(--ink-2); font-size:12.5px; margin-top:5px; line-height:1.45; }
.v3-key-flow i { align-self:center; color:#A6AFBA; font-style:normal; }
.v3-latest-update { margin-top:14px; }
.v3-latest-update > div { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.v3-latest-update strong { color:var(--ink); }
.v3-latest-update .mono { color:var(--muted); font-size:11px; }
.v3-latest-update p { margin:10px 0 8px; font-size:13.5px; color:var(--ink-2); }
.v3-latest-update a { color:var(--orange); text-decoration:none; font-size:12.5px; font-weight:600; }

.v3-hypothesis-divider { margin:46px 0 0; padding:18px 20px; border:1px dashed #D7B7B4; border-radius:10px; background:var(--red-soft); text-align:center; }
.v3-hypothesis-divider span { color:var(--red); font:600 10.5px/1.2 "IBM Plex Mono",monospace; letter-spacing:1.3px; }
.v3-hypothesis-divider p { margin:6px 0 0; color:#71413E; font-size:13px; }

.page-overview #overview { padding-top:28px; }
.page-overview #overview .eyebrow { display:none; }
.page-overview #overview > h2 { font-size:24px; }

@media (max-width: 820px) {
  .v3-page-intro { grid-template-columns:1fr; gap:9px; }
  .v3-hub-grid { grid-template-columns:1fr; }
  .v3-key-flow { align-items:stretch; }
  .v3-key-flow i { display:none; }
}
@media (max-width: 640px) {
  .v3-header.is-compact h1 { font-size:24px; }
  .v3-main { padding-left:14px; padding-right:14px; }
  .v3-discl { padding-left:14px; padding-right:14px; }
  .v3-primary-nav a { padding-left:10px; padding-right:10px; }
  .v3-local-label { display:none; }
  .v3-main section { scroll-margin-top:98px; }
  .v3-key-flow { display:grid; grid-template-columns:1fr; }
  .v3-key-flow a { min-width:0; }
}
.v3-local-nav a.active { background:var(--orange-soft); color:var(--orange); font-weight:600; }
