:root {
  --pilot-canvas: #f4f5f6;
  --pilot-surface: #ffffff;
  --pilot-ink: #171a1d;
  --pilot-muted: #687078;
  --pilot-line: #d9dde1;
  --pilot-line-dark: #343a3f;
  --pilot-dark: #111518;
  --pilot-dark-soft: #1a2024;
  --pilot-red: #c72f43;
  --pilot-red-dark: #a92537;
  --pilot-teal: #39b8ad;
  --pilot-gold: #e0aa37;
  --pilot-blue: #225f94;
  --pilot-success: #187653;
  --pilot-fast: 120ms;
  --pilot-default: 200ms;
  --pilot-ease-out: cubic-bezier(0, 0, .2, 1);
  --pilot-ease-change: cubic-bezier(.4, 0, .2, 1);
}

.pilot-sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pilot-eyebrow {
  align-items: center;
  color: var(--pilot-red);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.pilot-lead {
  color: var(--pilot-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 720px;
  text-wrap: pretty;
}

.pilot-live-dot {
  background: var(--pilot-teal);
  border: 3px solid rgba(57, 184, 173, .2);
  border-radius: 50%;
  box-sizing: content-box;
  display: inline-block;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

/* Compact tool-page header */
.pilot-tools-page {
  background: var(--pilot-canvas);
  color: var(--pilot-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-tools-page * { box-sizing: border-box; }
.pilot-tools-page button,
.pilot-tools-page a { -webkit-tap-highlight-color: rgba(199, 47, 67, .14); touch-action: manipulation; }

.pilot-tools-page .wrap {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 24px;
  width: 100%;
}

.pilot-tools-page .site-header {
  background: #0c1012;
  border-bottom: 1px solid #292f33;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pilot-tools-page .header-row { align-items: center; min-height: 72px; padding-block: 0; }
.pilot-tools-page .logo { flex: 0 0 78px; width: 78px; }
.pilot-tools-page .logo-image { display: block; height: 42px; max-height: 42px; max-width: 70px; width: auto; }
.pilot-tools-page .nav { align-items: center; gap: 4px; margin-left: auto; }
.pilot-tools-page .nav > .nav-item > button,
.pilot-tools-page .nav > .pilot-tools-nav {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 2px;
  color: #d7dcdf;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  min-height: 38px;
  padding: 8px 10px;
  text-decoration: none;
}

.pilot-tools-page .nav > .pilot-tools-nav { background: #23292d; color: #fff; }
.pilot-tools-page .nav > .nav-item > button:hover,
.pilot-tools-page .nav > .pilot-tools-nav:hover { background: #23292d; color: #fff; }
.pilot-tools-page .header-actions { gap: 8px; margin-left: 14px; }
.pilot-tools-page .header-actions .btn { border-radius: 2px; font-size: 13px; min-height: 36px; padding: 8px 13px; }
.pilot-tools-page .header-actions .btn-primary { background: var(--pilot-red); }

/* Full-bleed evidence-led hero */
.pilot-tool-main { background: var(--pilot-canvas); color: var(--pilot-ink); min-height: 70vh; }

.pilot-tool-hero {
  align-items: center;
  background: var(--pilot-dark);
  color: #fff;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.pilot-tool-hero::after {
  background: rgba(7, 11, 13, .62);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.pilot-tool-hero-media { inset: 0; margin: 0; position: absolute; }
.pilot-tool-hero-media img { display: block; height: 100%; object-fit: cover; object-position: center 46%; width: 100%; }
.pilot-tool-hero-content { padding-block: 54px; position: relative; z-index: 2; }
.pilot-tool-hero .pilot-eyebrow { color: #dfe8e8; }

.pilot-tool-hero h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 680px;
  text-wrap: balance;
}

.pilot-tool-hero .pilot-lead { color: #d7dddf; font-size: 18px; max-width: 650px; }

.pilot-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pilot-hero-primary,
.pilot-hero-secondary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  gap: 22px;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color var(--pilot-fast) var(--pilot-ease-out), border-color var(--pilot-fast) var(--pilot-ease-out), transform 90ms var(--pilot-ease-out);
}

.pilot-hero-primary { background: var(--pilot-red); color: #fff; }
.pilot-hero-primary:hover { background: var(--pilot-red-dark); color: #fff; }
.pilot-hero-secondary { background: rgba(17, 21, 24, .72); border-color: rgba(255, 255, 255, .34); color: #fff; }
.pilot-hero-secondary:hover { background: #20272b; border-color: #fff; color: #fff; }
.pilot-hero-primary:active,
.pilot-hero-secondary:active { transform: scale(.98); }

.pilot-signal-band { background: #fff; border-bottom: 1px solid var(--pilot-line); }
.pilot-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pilot-signal-grid > div { border-right: 1px solid var(--pilot-line); display: grid; gap: 3px; min-height: 86px; padding: 18px 22px; }
.pilot-signal-grid > div:first-child { border-left: 1px solid var(--pilot-line); }
.pilot-signal-grid strong { color: var(--pilot-ink); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 24px; line-height: 1; }
.pilot-signal-grid span { color: var(--pilot-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Refero-inspired compact view navigation */
.pilot-tab-band {
  background: #fff;
  border-bottom: 1px solid var(--pilot-line);
  position: sticky;
  top: 72px;
  z-index: 80;
}

.pilot-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-color: #aab0b5 transparent; scrollbar-width: thin; }
.pilot-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--pilot-muted);
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 2px;
  min-height: 64px;
  padding: 10px 16px 8px;
  text-align: left;
  transition: background-color var(--pilot-fast) var(--pilot-ease-out), border-color var(--pilot-fast) var(--pilot-ease-out), color var(--pilot-fast) var(--pilot-ease-out);
}

.pilot-tab::before { color: #9aa1a7; content: attr(data-index); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 500; }
.pilot-tab:hover { background: #f5f6f7; color: var(--pilot-ink); }
.pilot-tab[aria-selected="true"] { border-bottom-color: var(--pilot-red); color: var(--pilot-ink); }

.pilot-tool-panels { padding-block: 46px 68px; }
.pilot-tool-panel[hidden] { display: none; }
.pilot-tool-panel:not([hidden]) { animation: pilot-panel-in var(--pilot-default) var(--pilot-ease-out); }
.pilot-tool-panel::before {
  color: var(--pilot-red);
  content: attr(data-panel-kicker);
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pilot-tool-panel > h2 { color: var(--pilot-ink); font-size: 34px; letter-spacing: 0; line-height: 1.14; margin: 0 0 8px; text-wrap: balance; }
.pilot-tool-panel > p { color: var(--pilot-muted); font-size: 16px; line-height: 1.55; margin: 0 0 26px; max-width: 780px; }

.pilot-tool-columns { align-items: stretch; display: grid; gap: 0; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

.pilot-form,
.pilot-result,
.pilot-data-table-wrap,
.pilot-legal-output {
  border: 1px solid var(--pilot-line);
  border-radius: 6px;
}

.pilot-tool-columns > .pilot-form { border-radius: 6px 0 0 6px; border-right: 0; }
.pilot-tool-columns > .pilot-result { border-radius: 0 6px 6px 0; }
.pilot-form { background: var(--pilot-surface); padding: 24px; }
.pilot-form::before { color: var(--pilot-muted); content: "Input parameters"; display: block; font-size: 11px; font-weight: 800; margin-bottom: 18px; text-transform: uppercase; }
.pilot-form-inline { margin-bottom: 16px; }
.pilot-form-inline .pilot-fields { align-items: end; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pilot-form-inline .pilot-field-wide { grid-column: auto; }

.pilot-fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilot-field { display: grid; gap: 7px; min-width: 0; }
.pilot-field-wide { grid-column: 1 / -1; }
.pilot-field label { color: #363b3f; font-size: 12px; font-weight: 750; }
.pilot-field small { color: var(--pilot-muted); line-height: 1.35; }

.pilot-field input,
.pilot-field select {
  background: #fff;
  border: 1px solid #bfc5ca;
  border-radius: 2px;
  color: var(--pilot-ink);
  font: inherit;
  font-size: 14px;
  min-height: 46px;
  padding: 10px 12px;
  transition: border-color var(--pilot-fast) var(--pilot-ease-out), box-shadow var(--pilot-fast) var(--pilot-ease-out);
  width: 100%;
}

.pilot-field input:hover,
.pilot-field select:hover { border-color: #858e95; }
.pilot-field input:focus-visible,
.pilot-field select:focus-visible { border-color: var(--pilot-red); box-shadow: 0 0 0 3px rgba(199, 47, 67, .13); outline: 0; }

.pilot-check { align-items: center; color: var(--pilot-ink); cursor: pointer; display: flex; font-size: 13px; font-weight: 700; gap: 9px; min-height: 46px; }
.pilot-check input { accent-color: var(--pilot-red); height: 18px; width: 18px; }

.pilot-action {
  align-items: center;
  background: var(--pilot-red);
  border: 1px solid var(--pilot-red);
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 18px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  transition: background-color var(--pilot-fast) var(--pilot-ease-out), border-color var(--pilot-fast) var(--pilot-ease-out), transform 90ms var(--pilot-ease-out);
  width: 100%;
}

.pilot-action::after { content: "\2192"; }
.pilot-action:hover { background: var(--pilot-red-dark); border-color: var(--pilot-red-dark); }
.pilot-action:active { transform: scale(.99); }
.pilot-action:focus-visible,
.pilot-tab:focus-visible,
.pilot-hero-primary:focus-visible,
.pilot-hero-secondary:focus-visible,
.pilot-tools-link:focus-visible,
.pilot-related-card:focus-visible { outline: 2px solid var(--pilot-red); outline-offset: 3px; }

.pilot-result { background: var(--pilot-dark); border-color: var(--pilot-dark); color: #fff; padding: 24px; }
.pilot-result h3 { color: #fff; font-size: 17px; margin: 0 0 17px; }
.pilot-result-grid { border-left: 1px solid var(--pilot-line-dark); border-top: 1px solid var(--pilot-line-dark); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilot-metric { border-bottom: 1px solid var(--pilot-line-dark); border-right: 1px solid var(--pilot-line-dark); min-height: 94px; padding: 14px; }
.pilot-metric span { color: #9ca7ad; display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pilot-metric strong { color: #fff; display: block; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 22px; font-weight: 650; line-height: 1.2; margin-top: 8px; overflow-wrap: anywhere; }
.pilot-metric strong.is-updated { animation: pilot-value-pulse 360ms var(--pilot-ease-out); }
.pilot-note { color: var(--pilot-muted); font-size: 13px; line-height: 1.55; margin: 16px 0 0; }
.pilot-result .pilot-note { color: #9ba6ac; }

/* Modern chart canvas */
.pilot-chart-shell { background: #0a0e10; border: 1px solid #2b3237; border-radius: 2px; margin-top: 18px; overflow: hidden; padding: 12px; }
.pilot-chart-head { align-items: center; border-bottom: 1px solid #252c30; color: #dfe5e7; display: flex; font-size: 11px; font-weight: 800; justify-content: space-between; padding: 2px 2px 10px; text-transform: uppercase; }
.pilot-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.pilot-chart-legend span { align-items: center; color: #8f9aa0; display: inline-flex; font-size: 10px; gap: 6px; }
.pilot-chart-legend i { display: inline-block; height: 2px; width: 16px; }
.pilot-chart-legend .is-observed { background: var(--pilot-teal); }
.pilot-chart-legend .is-expected { background: var(--pilot-gold); }
.pilot-chart-shell canvas { aspect-ratio: 16 / 7; display: block; height: auto; width: 100%; }

/* Data tables and inline diagrams */
.pilot-data-table-wrap { background: #fff; overflow-x: auto; padding: 0; }
.pilot-data-table { border-collapse: separate; border-spacing: 0; min-width: 780px; width: 100%; }
.pilot-data-table th,
.pilot-data-table td { border-bottom: 1px solid var(--pilot-line); color: var(--pilot-ink); font-size: 13px; padding: 13px 14px; text-align: left; vertical-align: middle; }
.pilot-data-table th { background: var(--pilot-dark); color: #dce2e5; font-size: 10px; font-weight: 750; position: sticky; text-transform: uppercase; top: 0; z-index: 2; }
.pilot-data-table tbody tr { transition: background-color var(--pilot-fast) var(--pilot-ease-out); }
.pilot-data-table tbody tr:hover { background: #f2f4f5; }
.pilot-data-table tbody tr:last-child td { border-bottom: 0; }
.pilot-data-table td:first-child { font-family: "SFMono-Regular", Consolas, monospace; font-weight: 800; width: 56px; }
.pilot-data-table td:nth-child(3),
.pilot-data-table td:nth-child(5),
.pilot-data-table td:last-child { font-family: "SFMono-Regular", Consolas, monospace; }
.pilot-data-table td a { color: var(--pilot-blue); font-weight: 750; text-underline-offset: 3px; }
.pilot-data-table td a::after { content: " \2197"; }
.pilot-rtp-cell { align-items: center; display: flex; gap: 8px; min-width: 112px; }
.pilot-rtp-track { background: #e2e6e8; display: block; flex: 1; height: 4px; min-width: 48px; }
.pilot-rtp-track i { background: var(--pilot-teal); display: block; height: 100%; transform-origin: left center; }
.pilot-volatility { align-items: end; display: inline-flex; gap: 3px; height: 18px; }
.pilot-volatility i { background: #d8dde0; display: block; height: 7px; width: 4px; }
.pilot-volatility i:nth-child(2) { height: 9px; }
.pilot-volatility i:nth-child(3) { height: 12px; }
.pilot-volatility i:nth-child(4) { height: 15px; }
.pilot-volatility i:nth-child(5) { height: 18px; }
.pilot-volatility i.is-active { background: var(--pilot-red); }
.pilot-turnover-cell { display: grid; gap: 5px; min-width: 130px; }
.pilot-turnover-cell span { font-family: "SFMono-Regular", Consolas, monospace; }
.pilot-turnover-track { background: #e3e7e9; display: block; height: 4px; }
.pilot-turnover-track i { background: var(--pilot-red); display: block; height: 100%; }

.pilot-payment-results { background: #fff; border: 1px solid var(--pilot-line); border-radius: 6px; display: grid; margin-top: 16px; }
.pilot-payment-row { align-items: center; border-bottom: 1px solid var(--pilot-line); display: grid; gap: 14px; grid-template-columns: minmax(150px, .9fr) minmax(180px, 2fr) auto; min-height: 58px; padding: 12px 16px; }
.pilot-payment-row:last-child { border-bottom: 0; }
.pilot-payment-row strong { font-size: 13px; }
.pilot-payment-row > span { color: var(--pilot-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.pilot-payment-bar { background: #e1e5e7; height: 5px; overflow: hidden; }
.pilot-payment-bar span { background: var(--pilot-teal); display: block; height: 100%; transform-origin: left center; transition: width 320ms var(--pilot-ease-out); }

.pilot-legal-output { background: #fff; margin-top: 16px; padding: 22px; }
.pilot-legal-output h3 { color: var(--pilot-ink); margin: 0 0 8px; }
.pilot-legal-output p:not(.pilot-eyebrow) { color: var(--pilot-muted); line-height: 1.55; }
.pilot-legal-output a { color: var(--pilot-blue); font-weight: 800; text-underline-offset: 3px; }
.pilot-legal-output a::after { content: " \2197"; }

/* Changelog is a connected list, not a stack of cards */
.pilot-history { border-left: 1px solid #bfc6ca; display: grid; gap: 0; margin: 32px 0 0 10px; max-width: 900px; }
.pilot-history-item { padding: 0 0 32px 30px; position: relative; }
.pilot-history-item::before { background: #fff; border: 3px solid var(--pilot-red); border-radius: 50%; content: ""; height: 12px; left: -7px; position: absolute; top: 2px; width: 12px; }
.pilot-history-item time { color: var(--pilot-red); display: block; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; }
.pilot-history-item strong { color: var(--pilot-ink); display: block; font-size: 18px; }
.pilot-history-item p { color: var(--pilot-muted); line-height: 1.55; margin: 5px 0 0; }

/* Homepage market report */
.pilot-band { background: #eef0f1; border-bottom: 1px solid var(--pilot-line); border-top: 1px solid var(--pilot-line); color: var(--pilot-ink); padding: 64px 0; }
.pilot-band h2 { color: var(--pilot-ink); font-size: 36px; letter-spacing: 0; line-height: 1.14; margin: 0; text-wrap: balance; }
.pilot-update-grid { align-items: stretch; display: grid; gap: 38px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pilot-update-media { background: #202629; border-radius: 2px; margin: 0; min-height: 560px; overflow: hidden; position: relative; }
.pilot-update-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.pilot-update-media figcaption { align-items: center; background: rgba(12, 16, 18, .88); bottom: 0; color: #e3e8ea; display: flex; font-size: 11px; font-weight: 750; gap: 8px; left: 0; padding: 12px 14px; position: absolute; right: 0; text-transform: uppercase; }
.pilot-update-body { align-content: center; display: grid; gap: 19px; }
.pilot-update-meta { align-items: center; border-bottom: 1px solid #cbd1d4; border-top: 1px solid #cbd1d4; display: flex; flex-wrap: wrap; font-size: 12px; gap: 0; }
.pilot-update-meta > span { border-right: 1px solid #cbd1d4; color: var(--pilot-muted); padding: 9px 12px; }
.pilot-update-meta > span:first-child { padding-left: 0; }
.pilot-update-meta > span:last-child { border-right: 0; }
.pilot-update-meta strong { color: var(--pilot-ink); margin-right: 5px; }
.pilot-update-verified { align-items: center; color: var(--pilot-success) !important; display: inline-flex; font-weight: 800; gap: 7px; }
.pilot-update-verified i { background: var(--pilot-success); border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.pilot-update-list { border-top: 1px solid #cbd1d4; display: grid; }
.pilot-update-item { border-bottom: 1px solid #cbd1d4; display: grid; gap: 14px; grid-template-columns: 34px 1fr; padding: 14px 0; }
.pilot-update-number { color: var(--pilot-red); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 800; padding-top: 2px; }
.pilot-update-item strong { color: var(--pilot-ink); display: block; font-size: 14px; margin-bottom: 4px; }
.pilot-update-item p { color: var(--pilot-muted); font-size: 13px; line-height: 1.48; margin: 0; }
.pilot-source-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pilot-source-links a { border-bottom: 1px solid #bfc6ca; color: var(--pilot-ink); display: flex; font-size: 12px; font-weight: 700; gap: 8px; justify-content: space-between; padding: 9px 8px 9px 0; text-decoration: none; }
.pilot-source-links a:hover { border-color: var(--pilot-red); color: var(--pilot-red); }
.pilot-tools-link { align-items: center; background: var(--pilot-red); border-radius: 2px; color: #fff; display: inline-flex; font-size: 14px; font-weight: 800; gap: 28px; justify-content: space-between; min-height: 46px; padding: 11px 15px; text-decoration: none; transition: background-color var(--pilot-fast) var(--pilot-ease-out), transform 90ms var(--pilot-ease-out); width: fit-content; }
.pilot-tools-link:hover { background: var(--pilot-red-dark); color: #fff; }
.pilot-tools-link:active { transform: scale(.99); }

/* Contextual guides */
.pilot-related { background: var(--pilot-dark); color: #fff; padding: 52px 0; }
.pilot-related h2 { color: #fff; font-size: 30px; letter-spacing: 0; margin: 0 0 7px; }
.pilot-related .pilot-eyebrow { color: var(--pilot-teal); }
.pilot-related .pilot-lead { color: #98a3a9; font-size: 14px; }
.pilot-related-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.pilot-related-card { background: #171d21; border: 1px solid #353d42; border-radius: 2px; color: #fff; display: grid; gap: 16px; grid-template-rows: auto 1fr auto; min-height: 156px; padding: 17px; text-decoration: none; transition: background-color var(--pilot-fast) var(--pilot-ease-out), border-color var(--pilot-fast) var(--pilot-ease-out), transform var(--pilot-default) var(--pilot-ease-out); }
.pilot-related-card:hover { background: #1d2428; border-color: #68747b; color: #fff; transform: translateY(-3px); }
.pilot-related-category { color: var(--pilot-teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pilot-related-card strong { align-self: end; color: #fff; font-size: 16px; line-height: 1.35; }
.pilot-related-card b { color: #7f8b91; font-size: 18px; font-weight: 500; }
.pilot-related-card:hover b { color: var(--pilot-red); }

.nav > .pilot-tools-nav { color: #fff; font-weight: 800; }
.mobile-menu > .pilot-mobile-tool-link { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 2px; color: #fff; display: block; font-weight: 800; margin: 8px 0 14px; padding: 12px 14px; }

.pilot-tools-page .site-footer { background: #070a0c; border-top: 1px solid #242b2f; color: #b6c0c5; }
.pilot-tools-page .site-footer strong { color: #fff; }
.pilot-tools-page .site-footer a { color: #b6c0c5; }
.pilot-tools-page .site-footer a:hover { color: #fff; }

@keyframes pilot-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pilot-value-pulse {
  0% { color: var(--pilot-teal); transform: translateY(2px); }
  100% { color: #fff; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .pilot-tools-page .nav { display: none; }
  .pilot-tools-page .burger { display: inline-flex; }
  .pilot-tools-page .header-actions { margin-left: auto; }
  .pilot-tab { padding-inline: 13px; }
}

@media (max-width: 991px) {
  .pilot-tool-hero { min-height: 420px; }
  .pilot-tool-hero h1 { font-size: 50px; }
  .pilot-tool-columns { gap: 14px; grid-template-columns: 1fr; }
  .pilot-tool-columns > .pilot-form,
  .pilot-tool-columns > .pilot-result { border: 1px solid var(--pilot-line); border-radius: 6px; }
  .pilot-tool-columns > .pilot-result { border-color: var(--pilot-dark); }
  .pilot-update-grid { grid-template-columns: 1fr; }
  .pilot-update-media { aspect-ratio: 16 / 8; min-height: 0; }
  .pilot-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pilot-tools-page .wrap { padding-inline: 16px; }
  .pilot-tools-page .site-header,
  .pilot-tools-page .header-row { min-height: 64px; }
  .pilot-tools-page .logo { flex-basis: 58px; width: 58px; }
  .pilot-tools-page .logo-image { height: 36px; max-height: 36px; max-width: 54px; }
  .pilot-tools-page .header-actions .btn-login { display: none; }
  .pilot-tools-page .header-actions .btn { min-height: 34px; padding: 7px 10px; }
  .pilot-tab-band { top: 64px; }
  .pilot-tool-hero { min-height: 460px; }
  .pilot-tool-hero::after { background: rgba(7, 11, 13, .74); }
  .pilot-tool-hero-media img { object-position: 62% center; }
  .pilot-tool-hero-content { padding-block: 42px; }
  .pilot-tool-hero h1 { font-size: 42px; }
  .pilot-tool-hero .pilot-lead { font-size: 16px; }
  .pilot-hero-actions { align-items: stretch; flex-direction: column; }
  .pilot-hero-primary,
  .pilot-hero-secondary { width: 100%; }
  .pilot-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-signal-grid > div { border-bottom: 1px solid var(--pilot-line); min-height: 76px; padding: 14px 16px; }
  .pilot-signal-grid > div:nth-child(odd) { border-left: 1px solid var(--pilot-line); }
  .pilot-tab { min-height: 58px; padding: 8px 12px 7px; }
  .pilot-tool-panels { padding-block: 36px 48px; }
  .pilot-tool-panel > h2 { font-size: 28px; }
  .pilot-fields,
  .pilot-form-inline .pilot-fields,
  .pilot-result-grid { grid-template-columns: 1fr; }
  .pilot-form,
  .pilot-result,
  .pilot-legal-output { padding: 18px; }
  .pilot-metric { min-height: 82px; }
  .pilot-chart-head { align-items: flex-start; gap: 8px; }
  .pilot-chart-legend { gap: 8px; }
  .pilot-payment-row { align-items: start; grid-template-columns: 1fr; }
  .pilot-payment-row > span { font-size: 11px; }
  .pilot-band { padding: 44px 0; }
  .pilot-band h2 { font-size: 29px; }
  .pilot-update-grid { gap: 26px; }
  .pilot-update-media { aspect-ratio: 4 / 3; }
  .pilot-update-meta { align-items: stretch; flex-direction: column; }
  .pilot-update-meta > span { border-bottom: 1px solid #cbd1d4; border-right: 0; padding-left: 0; }
  .pilot-source-links { grid-template-columns: 1fr; }
  .pilot-related-grid { grid-template-columns: 1fr; }
  .pilot-related-card { min-height: 126px; }
}

@media (prefers-reduced-motion: reduce) {
  .pilot-tool-panel:not([hidden]),
  .pilot-metric strong.is-updated { animation: none; }
  .pilot-action,
  .pilot-hero-primary,
  .pilot-hero-secondary,
  .pilot-related-card,
  .pilot-tab,
  .pilot-payment-bar span { transition-duration: .01ms; }
}
