/* ============================================================================
   VPSPO 2.0 UI Beta06 — Warm White & Orange Design System + Bespoke Dark Mode
   Standard: VPSPO_2_0_UI_BETA06 (Isolated Preview — Prod & Beta05 Untouched)
   ============================================================================ */

:root {
  /* Light Mode: Warm White Canvas + Crisp White Surfaces + Signature Brand Orange */
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f5f3ef;
  --surface-warm: #fff8f0;
  --surface-warm-2: #fff3e6;
  --surface-green: #edf8f2;

  --border: #eae6df;
  --border-strong: #dbd4ca;
  --border-accent: #f3c8a2;

  --ink: #171a23;
  --ink-brand: #171a23;
  --ink-2: #444c5c;
  --muted: #6e7787;

  /* Primary Brand Orange */
  --accent: #e86a17;
  --accent-hover: #d45b0e;
  --accent-deep: #be4d08;
  --accent-text: #d55c0f;
  --accent-soft: #fff2e6;
  --accent-soft-border: #f7d6b8;

  /* Semantic Status Colors */
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --ok-border: #c3ebd2;
  --partial: #d97706;
  --partial-bg: #fff7e6;
  --partial-border: #f8d8a0;
  --fail: #dc2626;
  --fail-bg: #fef2f2;
  --fail-border: #f8c7c7;
  --blue: #2563eb;
  --purple: #7c3aed;
  --teal-ico: #0d9488;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(23, 26, 35, 0.035);
  --shadow-sm: 0 4px 14px rgba(23, 26, 35, 0.055);
  --shadow-hover: 0 10px 26px rgba(232, 106, 23, 0.085), 0 2px 6px rgba(23, 26, 35, 0.04);

  --font: "Inter", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-caret { width: 9px; height: 9px; fill: currentColor; stroke: none; }
.icon-chev { width: 13px; height: 13px; stroke-width: 2.2; transition: transform 0.16s ease; }

/* ============================================================================
   TOP NAVIGATION BAR
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
body[data-page="report"] {
  --site-header-h: 61px;
  --anchor-offset: 136px;
}
body[data-page="report"] .site-header { z-index: 42; }

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 6px;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.logo-brand--sm .brand-logo { height: 26px; }

/* Live Status Strip */
.site-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  min-width: 0;
}
.st-item {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.st-val {
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.st-visitors {
  color: var(--ink);
  font-weight: 750;
}
.st-clock {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.st-sep {
  color: #dad4cb;
  user-select: none;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: var(--accent-text);
  background: rgba(232, 106, 23, 0.06);
}
.nav-link.is-active {
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: 700;
}
.nav-soon {
  color: var(--muted);
  cursor: default;
}
.nav-soon:hover {
  color: var(--muted);
  background: transparent;
}
.nav-soon em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  line-height: 1.25;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-ico--sun { display: none; }
html[data-theme="dark"] .theme-ico--moon { display: none; }
html[data-theme="dark"] .theme-ico--sun { display: block; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { padding: 7px 9px; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(232, 106, 23, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 5px 14px rgba(232, 106, 23, 0.28);
}
.btn-deep {
  background: var(--accent-deep);
  color: #ffffff;
  padding: 11px 22px;
}
.btn-deep:hover { background: #a84206; }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* ============================================================================
   AIRPORT MONOGRAM LOGO TILES (6 Curated Tones)
   ============================================================================ */
.logo-tile {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 6px rgba(23, 26, 35, 0.08);
}
.logo-tile.logo-lg { width: 54px; height: 54px; border-radius: 12px; font-size: 24px; }
.logo-tile.tone-0 { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.logo-tile.tone-1 { background: linear-gradient(145deg, #10b981, #059669); }
.logo-tile.tone-2 { background: linear-gradient(145deg, #f59e0b, #d97706); }
.logo-tile.tone-3 { background: linear-gradient(145deg, #6366f1, #4f46e5); }
.logo-tile.tone-4 { background: linear-gradient(145deg, #f97316, #ea580c); }
.logo-tile.tone-5 { background: linear-gradient(145deg, #334155, #1e293b); }

/* Kind & Status Pills */
.kind-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}
.kind-tag--first {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.kind-tag--retest {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}
.status-pill.is-ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.is-partial { background: var(--partial-bg); color: var(--partial); }
.status-pill.is-fail { background: var(--fail-bg); color: var(--fail); }
.status-pill.is-neutral { background: var(--accent-soft); color: var(--accent-text); }
.status-pill.is-muted { background: var(--surface-soft); color: var(--muted); }

/* ============================================================================
   HOMEPAGE (Beta05 Reference Redesign — Gemini_beta01.png)
   ============================================================================ */
.home { padding-bottom: 16px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.96fr);
  gap: 44px;
  align-items: center;
  padding: 36px 0 34px;
}
.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-copy h1 span { color: var(--ink); }
.hero-lead {
  margin: 0 0 24px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.hero-cta {
  padding: 12px 24px;
  font-size: 14.5px;
  border-radius: 9px;
}

/* Right Review Index Card */
.overview-card {
  background: var(--surface-warm);
  border: 1px solid var(--border-accent);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  box-shadow: 0 4px 18px rgba(232, 106, 23, 0.055);
}
.ov-kicker {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ov-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}
.ov-stat strong {
  font-size: 52px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ov-stat span {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--ink);
}
.ov-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ov-tile {
  background: var(--surface);
  border: 1px solid #f2dfd0;
  border-radius: 10px;
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(23, 26, 35, 0.025);
}
.ov-ico {
  width: 22px;
  height: 22px;
}
.ov-ico--speed { color: #16a34a; }
.ov-ico--video { color: #7c3aed; }
.ov-ico--ip { color: #0d9488; }
.ov-tile-title {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
}
.ov-tile small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ov-foot {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid #f2e1d2;
  font-size: 12px;
  color: var(--muted);
}

/* Directory & Search Section */
.reviews-section {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
}
.reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.reviews-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reviews-sort {
  font-size: 13px;
  color: var(--muted);
  font-weight: 550;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-ico {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: #8c95a3;
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 42px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input::placeholder { color: #929aa8; }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.13);
}
.search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-clear:hover { background: var(--surface-soft); color: var(--ink); }
.search-help {
  margin: 7px 0 18px;
  font-size: 12px;
  color: var(--muted);
}

/* 3-Column Airport Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.airport-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px 17px 14px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.airport-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.ac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ac-date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ac-title-wrap { min-width: 0; }
.ac-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-nodes {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Region Pills */
.ac-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.reg-chip {
  padding: 2px 8px;
  border-radius: 5px;
  background: #f5f4f0;
  border: 1px solid #ebe7e0;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.4;
}
.reg-more {
  font-size: 11.5px;
  color: var(--muted);
  padding: 2px 5px;
  border-radius: 5px;
  background: #f5f4f0;
}

/* Semantic Feature / Capability Chips */
.ac-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.chip-benefit {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.chip-benefit--blue {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}
.chip-benefit--purple {
  background: #f5f3ff;
  border-color: #e9d5ff;
  color: #7c3aed;
}
.chip-benefit--cyan {
  background: #ecfeff;
  border-color: #cffafe;
  color: #0e7490;
}
.chip-benefit--indigo {
  background: #eef2ff;
  border-color: #e0e7ff;
  color: #4338ca;
}
.chip-benefit--rose {
  background: #fdf2f8;
  border-color: #fce7f3;
  color: #be185d;
}
.chip-benefit--amber {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.chip-soft {
  background: #f4f3ef;
  border: 1px solid #eae6de;
  color: var(--ink-2);
}

/* 2x2 Metrics Block */
.metrics-group {
  border-top: 1px solid #f0ece5;
  border-bottom: 1px solid #f0ece5;
}
.metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  padding: 9px 0;
  gap: 0;
  align-items: stretch;
}
.metrics + .metrics { border-top: 1px solid #f0ece5; }
.metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding-right: 10px;
}
.metric + .metric {
  border-left: 1px solid #f0ece5;
  padding-left: 11px;
  padding-right: 0;
}
.metric label {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.32;
  display: block;
}
.metric .metric-ico {
  width: 12px;
  height: 12px;
  color: #8c96a6;
  display: inline-block;
  vertical-align: -1.5px;
  margin-right: 4px;
  stroke-width: 2;
}
.metric .metric-ico--speed { color: var(--accent); }
.metric .metric-ico--onems { color: var(--teal-ico); }
.metric .metric-ico--video { color: #d97706; }
.metric .metric-ico--aiip { color: #7c3aed; }
.metric .speed-upload-unit { white-space: nowrap; }
.metric strong {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 850;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.metric strong.is-missing,
.metric strong .val-warn {
  font-weight: 750;
  color: var(--accent-text);
}
.metric strong .val-muted {
  font-weight: 700;
  color: var(--muted);
}
.metric strong .val-sep {
  font-weight: 600;
  color: #a0a8b6;
}

/* Protocol & Platform Rows */
.ac-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.spec-label {
  flex: 0 0 48px;
  padding-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

/* Card Footer */
.ac-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ac-read-btn {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}
.ac-history { position: relative; }
.ac-history > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent-text);
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 6px;
  user-select: none;
  transition: background 0.14s ease;
}
.ac-history > summary:hover { background: var(--accent-soft); }
.ac-history > summary::-webkit-details-marker { display: none; }
.ac-history[open] > summary .icon-chev { transform: rotate(180deg); }
.ac-history > ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  min-width: 224px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(23, 26, 35, 0.14);
}
.ac-history li a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ac-history li a:hover { background: var(--accent-soft); color: var(--accent-text); }
.ac-history li.hist-all {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.ac-history li.hist-all a { font-weight: 700; color: var(--accent-text); }

.empty-state {
  text-align: center;
  padding: 44px 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-state .icon { color: var(--accent); opacity: 0.7; }
.empty-state h3 { margin: 8px 0 4px; font-size: 16px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 13px; }

.home-disclaimer {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Bottom Review Principles Band */
.method-band {
  border-top: 1px solid var(--border);
  padding: 36px 0 38px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.method-intro {
  border-right: 1px solid var(--border);
  padding-right: 22px;
}
.method-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.method-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.26;
  color: var(--ink);
}
.method-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.method-ico {
  width: 26px;
  height: 26px;
  margin-bottom: 3px;
}
.method-ico--1 { color: #0d9488; }
.method-ico--2 { color: #7c3aed; }
.method-ico--3 { color: #2563eb; }
.method-ico--4 { color: var(--accent); }
.method-item h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 750;
  color: var(--ink);
}
.method-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================================
   REPORT DETAIL PAGE — Frozen Information Architecture + Beta05 Visual Theme
   ============================================================================ */
.report { padding: 14px 0 44px; }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 34px;
  min-width: 0;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1;
}
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.back-pill:hover {
  background: #ffe6d0;
  border-color: var(--border-accent);
  color: var(--accent-hover);
}
.crumb-arrow { width: 15px; height: 15px; stroke-width: 2.1; }
.crumb-chev { width: 14px; height: 14px; color: #a1a9b7; flex-shrink: 0; }
.crumb-link {
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.14s ease;
}
.crumb-link:hover { color: var(--accent-text); }
.crumb-current {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.report-head {
  padding-bottom: 14px;
  scroll-margin-top: calc(var(--site-header-h, 61px) + 16px);
}
.rh-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rh-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.rh-text { min-width: 0; }
.rh-text h1 {
  margin: 0 0 6px;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rh-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.meta-item b { color: var(--ink-2); font-weight: 650; }
.rh-scope {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--partial-bg);
  border: 1px solid var(--partial-border);
  color: #9a5708;
  font-size: 12px;
  font-weight: 600;
}
.rh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rh-facts {
  margin: 14px 0 0;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rh-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.rh-facts dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  word-break: break-word;
}

/* Secondary Sticky Primary Module Bar (flush below sticky .site-header, gapPx = 0) */
.module-tabs { margin: 0 0 20px; min-width: 0; }
.module-tabs--sticky {
  position: sticky;
  top: var(--site-header-h, 61px);
  z-index: 40;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mtab-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mtab-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mtab-track::-webkit-scrollbar { display: none; }
.mtab {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.mtab:hover { color: var(--accent-text); background: var(--accent-soft); }
.mtab.is-active { background: var(--accent); color: #ffffff; }
.mtab-toc-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.mtab-toc-btn:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* Six KPI Cards */
.kpi-section {
  margin-bottom: 28px;
  scroll-margin-top: var(--anchor-offset, 136px);
}
.sec-title {
  margin: 0 0 13px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kpi {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.kpi:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.kpi-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.kpi-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-ico .icon { width: 20px; height: 20px; }
.kpi-ico.tone-teal { color: var(--accent); }
.kpi-ico.tone-red { color: #dc2626; }
.kpi-ico.tone-ink { color: #1f2937; }
.kpi-ico.tone-blue { color: var(--blue); }
.kpi-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value {
  font-size: 23px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-status.is-ok { color: var(--ok); }
.kpi-status.is-partial { color: var(--partial); }
.kpi-status.is-fail { color: var(--fail); }
.kpi-status.is-muted { color: var(--muted); }
.kpi-detail { font-size: 12px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.kpi-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 8-Module Flow & TOC Tree */
.report-modules { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.toc-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.toc-tree ul {
  list-style: none;
  margin: 2px 0 5px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-mod, .toc-sub {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.38;
  transition: background 0.12s ease, color 0.12s ease;
}
.toc-mod { font-size: 13px; font-weight: 700; color: var(--ink); }
.toc-overview-item { padding-bottom: 7px; margin-bottom: 5px; border-bottom: 1px solid var(--border); }
.toc-overview { display: flex; align-items: center; gap: 6px; }
.toc-ico { color: var(--accent); flex-shrink: 0; }
.toc-sub { font-size: 12px; color: var(--muted); }
.toc-mod:hover, .toc-sub:hover { background: var(--surface-soft); color: var(--accent-text); }
.toc-mod.is-active, .toc-sub.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
}

/* Modules & Submodules */
.module { min-width: 0; scroll-margin-top: var(--anchor-offset, 136px); }
.module-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.module-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.module-sub { font-weight: 700; color: var(--ink-2); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-chip {
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.sub-chip:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}
.module-body { display: flex; flex-direction: column; gap: 16px; }
.module-lead { margin: 0; font-size: 13px; color: var(--muted); }

.sub-block {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  scroll-margin-top: var(--anchor-offset, 136px);
}
.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sub-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  scroll-margin-top: calc(var(--anchor-offset, 136px) + 2px);
}
.sub-head-right { display: flex; align-items: center; gap: 8px; }

/* Module 3 Folder Tabs */
.speed-tabs-wrap { min-width: 0; }
.speed-tablist {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-left: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  overflow-x: auto;
  scrollbar-width: none;
}
.speed-tablist::-webkit-scrollbar { display: none; }
.speed-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border);
  border-bottom-color: var(--border);
  background: #f1ede7;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.speed-tab:hover { background: var(--accent-soft); color: var(--accent-text); }
.speed-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  padding-top: 9px;
  padding-bottom: 9px;
}
.speed-tab.is-active:hover { background: var(--accent-hover); color: #ffffff; }

.speed-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 12px 12px 12px;
  padding: 16px 20px 18px;
  box-shadow: var(--shadow-xs);
}
.speed-anchor { display: block; position: relative; top: -1px; scroll-margin-top: var(--anchor-offset, 136px); }
.speed-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.speed-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  scroll-margin-top: calc(var(--anchor-offset, 136px) + 2px);
}
.speed-split {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(275px, 1fr);
  gap: 22px;
  align-items: start;
}
.speed-media { min-width: 0; }
.speed-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.speed-empty {
  min-height: 240px;
  padding: 36px 24px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}
.speed-empty .icon { color: var(--accent); opacity: 0.75; }
.speed-empty strong { font-size: 15px; font-weight: 750; color: var(--ink); }
.speed-empty p { margin: 0; max-width: 420px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Evidence Layouts */
.evi { display: grid; gap: 22px; align-items: start; }
.evi--metric { grid-template-columns: minmax(0, 1.72fr) minmax(270px, 1fr); }
.evi--wide, .evi--stack { grid-template-columns: minmax(0, 1fr); }
.evi--tall, .evi--square { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.9fr); }
.evi-media { min-width: 0; }
.evi-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.evi--tall .evi-side { position: sticky; top: var(--anchor-offset, 136px); }

.metric-panel h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.metric-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.metric-panel-head h4 { margin: 0; }
.metric-list { list-style: none; margin: 0; padding: 0; }
.metric-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.metric-list li:last-child { border-bottom: 0; }
.ml-ico { color: var(--accent); display: inline-flex; align-items: center; flex-shrink: 0; }
.ml-label { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.ml-val {
  margin-left: auto;
  text-align: right;
  font-weight: 750;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* Note Callout Boxes */
.note-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.note-box p { margin: 0; }
.note-box .note-row strong { color: var(--ink); font-weight: 750; margin-right: 4px; }
.note-box--green,
.note-box--status-ok {
  background: var(--surface-green);
  border-color: var(--ok-border);
  color: #1f4635;
}
.note-box--status-partial {
  background: var(--partial-bg);
  border-color: var(--partial-border);
  color: #7c4706;
}
.note-box--status-fail {
  background: var(--fail-bg);
  border-color: var(--fail-border);
  color: #8f1d1d;
}

.sub-meta {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}
.meta-seg { white-space: nowrap; }
.meta-seg + .meta-seg::before { content: "·"; margin-right: 10px; color: #c0b8ad; }

/* Screenshots & Lightbox Trigger */
.shot { margin: 0; }
.zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  touch-action: manipulation;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zoom-trigger:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(23, 26, 35, 0.08);
}
.zoom-trigger img { width: 100%; height: auto; display: block; }
.zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  pointer-events: none;
  border-radius: 6px;
  background: rgba(23, 26, 35, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 550;
  opacity: 0.9;
}
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.no-shot {
  margin: 0;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Module 1 Basic Info & Subscription Support */
.info-tiles { margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.info-tile { padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); border: 1px solid var(--border); }
.info-tile dt { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.info-tile dd { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }

.support-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.support-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.support-table { min-width: 0; }
.platform-list {
  margin: 0;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.platform-list > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.platform-list dt { font-weight: 700; color: var(--ink); }
.platform-list dd { margin: 0; color: var(--ink-2); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
.data-table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0ece5;
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-wrap--plans .data-table td { min-width: 78px; }

/* Module 6 IP Quality Grid */
.ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 15px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: var(--anchor-offset, 136px);
}
.ip-card .sub-head { margin-bottom: 2px; padding-bottom: 8px; }
.ip-card .sub-head h3 { font-size: 14px; }
.ip-shot .zoom-trigger img {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}
.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 11.5px;
}
.score-badge small { color: var(--muted); font-size: 11px; }
.score-badge b { color: var(--ink); font-weight: 800; font-size: 13px; }

/* Module 7 Official Entry */
.official-panel {
  background: var(--surface-warm);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.op-text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.op-text strong { display: block; font-size: 15.5px; color: var(--ink); }
.official-disclosure { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.op-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Module 8 History */
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.history-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.history-list li:last-child { border-bottom: 0; }
.history-list li.is-current { background: var(--surface-warm); }
.hl-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.hl-cur {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
}
.text-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-text);
  font-weight: 650;
}
.text-link:hover { text-decoration: underline; }
.history-more { margin: 0; }

/* TOC Drawer, FAB, Lightbox, Toast */
.toc-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--accent-hover);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(232, 106, 23, 0.34);
  cursor: pointer;
}
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15, 17, 23, 0.42); }
.toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  width: min(330px, 88vw);
  background: var(--surface);
  box-shadow: -10px 0 32px rgba(15, 17, 23, 0.18);
  display: flex;
  flex-direction: column;
}
.toc-drawer[hidden], .drawer-backdrop[hidden], .lightbox[hidden], .toast[hidden] { display: none; }
.toc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.toc-drawer-head strong { display: block; font-size: 15px; color: var(--ink); }
.toc-drawer-head span { font-size: 11.5px; color: var(--muted); }
.icon-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.toc-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(12, 14, 20, 0.92);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lightbox-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(12, 14, 20, 0.96);
  color: #f1f3f7;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#lightbox-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lightbox-btn, .lightbox-close {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.lightbox-btn:hover, .lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.lightbox-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.lightbox-scroll img {
  display: block;
  margin: auto;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - 32px));
  max-height: none;
  cursor: zoom-out;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.lightbox.is-fit .lightbox-scroll { overflow: hidden; align-items: center; justify-content: center; }
.lightbox.is-fit .lightbox-scroll img {
  margin: 0;
  max-width: min(100%, calc(100vw - 32px));
  max-height: min(100%, calc(100dvh - 84px));
  object-fit: contain;
}
.lightbox.is-actual .lightbox-scroll img {
  margin: auto;
  flex-shrink: 0;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: unset;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 8px 22px rgba(15, 17, 23, 0.28);
}

/* ============================================================================
   ABOUT PAGE (/about/)
   ============================================================================ */
.about-page { padding: 18px 0 48px; }
.about-hero { max-width: 720px; margin-bottom: 24px; }
.about-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}
.about-lead { margin: 0 0 8px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.about-card--wide { grid-column: 1 / -1; }
.about-card-head { display: flex; align-items: center; gap: 9px; }
.about-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-card h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.about-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.about-check { color: var(--accent); margin-top: 4px; stroke-width: 2.3; }
.about-contact { font-weight: 700; color: var(--ink) !important; }
.about-muted { font-size: 12.5px !important; color: var(--muted) !important; }
.about-back { display: flex; align-items: center; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  min-height: 58px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-ver { color: var(--muted); }

/* ============================================================================
   RESPONSIVE BREAKPOINTS (1440 -> 1280 -> 1060 -> 768 -> 390 -> 375 -> 320)
   ============================================================================ */
@media (max-width: 1120px) {
  .other-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  body[data-page="report"] {
    --site-header-h: 92px;
    --anchor-offset: 166px;
  }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 12px;
  }
  .site-header .logo-brand { order: 1; padding: 10px 0; }
  .site-header .main-nav {
    order: 2;
    margin-left: auto;
    height: 54px;
    gap: 6px;
  }
  .site-header .site-status {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    padding: 6px 0 8px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 0 24px; }
  .method-band { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .method-intro { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 14px; }
  .method-intro br { display: none; }
  .rh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtab-track { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speed-split,
  .evi--metric, .evi--tall, .evi--square { grid-template-columns: minmax(0, 1fr); }
  .evi--tall .evi-side { position: static; }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .ip-grid { grid-template-columns: minmax(0, 1fr); }
  .info-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body[data-page="report"] {
    --site-header-h: 84px;
    --anchor-offset: 158px;
  }
  .wrap { padding: 0 16px; }
  .footer-inner { padding: 14px 16px; }
  .brand-logo { height: 30px; }
  .site-header .logo-brand { padding: 8px 0; }
  .site-header .main-nav { height: 48px; gap: 4px; }
  .nav-link { padding: 5px 9px; font-size: 13px; }
  .nav-opt { display: none; }
  .theme-toggle { width: 32px; height: 32px; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .method-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-block { padding: 14px; }
  .speed-card { padding: 14px; }
  .speed-tab { padding: 7px 14px; font-size: 13px; }
  .mtab-toc-btn { display: none; }
  .toc-fab { display: inline-flex; }
  .rh-main { align-items: flex-start; }
  .official-panel { padding: 15px; }
  .about-grid, .about-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .other-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .other-thumb { height: 78px; }
}

@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .rh-facts { grid-template-columns: minmax(0, 1fr); }
  .info-tiles { grid-template-columns: minmax(0, 1fr); }
  .ov-pillars { gap: 7px; }
  .ov-tile { padding: 10px 5px; }
  .ov-tile-title { font-size: 11.5px; }
  .metric strong { font-size: 13.5px; }
}

@media (max-width: 480px) {
  .crumbs { gap: 6px; margin-bottom: 12px; }
  .back-pill { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .lightbox-bar { padding: 8px 12px; gap: 6px; }
  .lightbox-actions { gap: 5px; }
  .lightbox-btn, .lightbox-close { padding: 5px 8px; font-size: 11.5px; }
  .lightbox-scroll { padding: 12px; }
  .lightbox-scroll img { max-width: min(100%, calc(100vw - 24px)); }
  .lightbox.is-fit .lightbox-scroll img {
    max-width: min(100%, calc(100vw - 24px));
    max-height: min(100%, calc(100dvh - 72px));
  }
}

@media (max-width: 440px) {
  .site-status { font-size: 11px; gap: 6px; }
  .st-clock { font-size: 10.5px; }
  .hero-copy h1 { font-size: 36px; }
  .overview-card { padding: 16px 15px 15px; }
  .ov-stat strong { font-size: 46px; }
  .airport-card { padding: 14px 14px 13px; }
  .metric { padding-right: 8px; }
  .metric + .metric { padding-left: 9px; }
  .metric strong { font-size: 13px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  .site-status { font-size: 10px; gap: 4px; flex-wrap: wrap; row-gap: 2px; }
  .st-clock { font-size: 9.8px; }
  .airport-card { padding: 13px 12px; }
  .kpi { padding: 12px 13px; }
  .kpi-title { white-space: normal; font-size: 12px; }
  .kpi-value { font-size: 19px; }
  .metric { padding-right: 6px; }
  .metric + .metric { padding-left: 8px; }
  .metric label { font-size: 10px; }
  .metric strong { font-size: 12px; }
  .ac-read-btn { padding: 7px 12px; font-size: 12.5px; }
  .ac-history > summary { font-size: 12px; }
  .hero-copy h1 { font-size: 32px; }
  .speed-tab { padding: 7px 11px; font-size: 12px; }
  .other-card { padding: 7px; }
  .other-thumb { height: 68px; }
}

/* ============================================================================
   BESPOKE BETA05 DARK MODE — Warm Obsidian + Vibrant Amber-Orange
   (Designed from scratch for high readability & zero evidence image inversion)
   ============================================================================ */
html[data-theme="dark"] {
  --bg: #0e1015;
  --surface: #151821;
  --surface-soft: #1b202b;
  --surface-warm: #1c1613;
  --surface-warm-2: #241b15;
  --surface-green: #10261b;

  --border: #252a36;
  --border-strong: #343b4c;
  --border-accent: #4c301c;

  --ink: #f1f3f7;
  --ink-brand: #f8fafc;
  --ink-2: #c2c8d4;
  --muted: #8b94a6;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-deep: #c2410c;
  --accent-text: #fb923c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-soft-border: rgba(249, 115, 22, 0.34);

  --ok: #4ade80;
  --ok-bg: rgba(34, 197, 94, 0.14);
  --ok-border: rgba(34, 197, 94, 0.32);
  --partial: #fbbf24;
  --partial-bg: rgba(245, 158, 11, 0.14);
  --partial-border: rgba(245, 158, 11, 0.34);
  --fail: #f87171;
  --fail-bg: rgba(239, 68, 68, 0.15);
  --fail-border: rgba(239, 68, 68, 0.34);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --teal-ico: #2dd4bf;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.36);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.44);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(249, 115, 22, 0.25);
}

html[data-theme="dark"] .site-header {
  background: rgba(14, 16, 21, 0.92);
  border-bottom-color: var(--border);
}
html[data-theme="dark"] .module-tabs--sticky {
  background: rgba(14, 16, 21, 0.94);
  border-bottom-color: var(--border);
}
html[data-theme="dark"] .st-sep { color: #343b4c; }
html[data-theme="dark"] .st-visitors { color: var(--accent-text); }

html[data-theme="dark"] .nav-link:hover {
  background: rgba(249, 115, 22, 0.1);
}
html[data-theme="dark"] .nav-soon:hover { background: transparent; }
html[data-theme="dark"] .nav-soon em {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

html[data-theme="dark"] .theme-toggle {
  background: #1a1f2b;
  border-color: var(--border-strong);
  color: #fbbf24;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: #232938;
  border-color: var(--accent);
  color: #fcd34d;
}

html[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .btn-primary:hover {
  background: #fb923c;
  color: #111318;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}
html[data-theme="dark"] .btn-ghost {
  background: #191e29;
  border-color: var(--border-strong);
  color: var(--ink-2);
}
html[data-theme="dark"] .btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Dark Hero Review Index Card */
html[data-theme="dark"] .overview-card {
  background: linear-gradient(180deg, #1f1713 0%, #161821 100%);
  border-color: #462d1c;
  border-top-color: var(--accent);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .ov-tile {
  background: #151923;
  border-color: #292f3d;
}
html[data-theme="dark"] .ov-ico--speed { color: #4ade80; }
html[data-theme="dark"] .ov-ico--video { color: #a78bfa; }
html[data-theme="dark"] .ov-ico--ip { color: #2dd4bf; }
html[data-theme="dark"] .ov-foot {
  border-top-color: #2c2524;
  color: #9ba3b4;
}

/* Dark Search */
html[data-theme="dark"] .search-input {
  background: #151821;
  border-color: var(--border-strong);
  color: var(--ink);
}
html[data-theme="dark"] .search-input::placeholder { color: #717a8c; }
html[data-theme="dark"] .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
html[data-theme="dark"] .search-clear:hover { background: #232938; color: var(--ink); }

/* Dark Airport Cards & Semantic Chips */
html[data-theme="dark"] .airport-card {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="dark"] .airport-card:hover {
  border-color: #5b381f;
}
html[data-theme="dark"] .kind-tag--first {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}
html[data-theme="dark"] .kind-tag--retest {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
html[data-theme="dark"] .reg-chip,
html[data-theme="dark"] .reg-more {
  background: #1c212d;
  border-color: #2b3140;
  color: var(--ink-2);
}
html[data-theme="dark"] .reg-more { color: var(--muted); }

html[data-theme="dark"] .chip-benefit {
  background: #1d222e;
  border-color: #2e3444;
  color: #d1d5db;
}
html[data-theme="dark"] .chip-benefit--blue {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
html[data-theme="dark"] .chip-benefit--purple {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.32);
  color: #c4b5fd;
}
html[data-theme="dark"] .chip-benefit--cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}
html[data-theme="dark"] .chip-benefit--indigo {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.32);
  color: #a5b4fc;
}
html[data-theme="dark"] .chip-benefit--rose {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f9a8d4;
}
html[data-theme="dark"] .chip-benefit--amber {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.34);
  color: #fdba74;
}
html[data-theme="dark"] .chip-soft {
  background: #1c212d;
  border-color: #2a3040;
  color: #cbd5e1;
}

html[data-theme="dark"] .metrics-group,
html[data-theme="dark"] .metrics + .metrics,
html[data-theme="dark"] .metric + .metric { border-color: #232836; }
html[data-theme="dark"] .metric .metric-ico { color: #7a8396; }
html[data-theme="dark"] .metric .metric-ico--speed { color: #fb923c; }
html[data-theme="dark"] .metric .metric-ico--onems { color: #2dd4bf; }
html[data-theme="dark"] .metric .metric-ico--video { color: #fbbf24; }
html[data-theme="dark"] .metric .metric-ico--aiip { color: #a78bfa; }
html[data-theme="dark"] .metric strong .val-sep { color: #565f72; }

html[data-theme="dark"] .ac-history > ul {
  background: #181c26;
  border-color: var(--border-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .ac-history li a:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Dark Method Band */
html[data-theme="dark"] .method-ico--1 { color: #2dd4bf; }
html[data-theme="dark"] .method-ico--2 { color: #a78bfa; }
html[data-theme="dark"] .method-ico--3 { color: #60a5fa; }
html[data-theme="dark"] .method-ico--4 { color: #fb923c; }

/* Dark Report Detail, Tables, Tabs, Lightbox & Drawer */
html[data-theme="dark"] .back-pill:hover {
  background: rgba(249, 115, 22, 0.22);
  border-color: var(--accent);
  color: #fdba74;
}
html[data-theme="dark"] .crumb-chev { color: #5a6375; }
html[data-theme="dark"] .rh-scope { color: #fbbf24; }
html[data-theme="dark"] .kpi-ico.tone-ink { color: #cbd5e1; }
html[data-theme="dark"] .kpi-ico.tone-red { color: #f87171; }
html[data-theme="dark"] .other-ico.tone-red { color: #f87171; }

html[data-theme="dark"] .speed-tab {
  background: #1a1f2b;
  border-color: var(--border);
  color: var(--ink-2);
}
html[data-theme="dark"] .speed-tab:hover {
  background: #232836;
  color: var(--accent-text);
}
html[data-theme="dark"] .speed-tab.is-active,
html[data-theme="dark"] .speed-tab.is-active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
html[data-theme="dark"] .speed-empty { background: #12151d; }
html[data-theme="dark"] .other-thumb { border-color: #2b3140; background: #10131a; }
html[data-theme="dark"] .other-thumb--placeholder {
  background: linear-gradient(180deg, #1d1816, #161820);
  border-color: #463122;
}

/* CRITICAL: NEVER invert real evidence screenshots in Dark Mode */
html[data-theme="dark"] .zoom-trigger { border-color: #2b3140; background: #10131a; }
html[data-theme="dark"] .zoom-trigger img,
html[data-theme="dark"] .other-thumb-img,
html[data-theme="dark"] #lightbox-img {
  filter: none !important;
}
html[data-theme="dark"] .zoom-hint {
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .note-box--green,
html[data-theme="dark"] .note-box--status-ok { color: #bbf7d0; }
html[data-theme="dark"] .note-box--status-partial { color: #fde68a; }
html[data-theme="dark"] .note-box--status-fail { color: #fecaca; }
html[data-theme="dark"] .meta-seg + .meta-seg::before { color: #4c5568; }
html[data-theme="dark"] .data-table td { border-bottom-color: #212633; }
html[data-theme="dark"] .official-panel {
  background: linear-gradient(180deg, #1f1713 0%, #171922 100%);
  border-color: #4a301d;
}
html[data-theme="dark"] .history-list li.is-current { background: #1d1816; }
html[data-theme="dark"] .toc-drawer {
  background: #13161f;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.58);
}
html[data-theme="dark"] .drawer-backdrop { background: rgba(4, 6, 10, 0.72); }
html[data-theme="dark"] .icon-close { background: #1b202b; border-color: var(--border-strong); color: var(--ink-2); }
html[data-theme="dark"] .toast { background: #202534; border: 1px solid var(--border-strong); color: var(--ink); }
html[data-theme="dark"] .site-footer { background: #12151d; border-top-color: var(--border); }
