
.brand-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.sortie-logo {
  display: inline-flex;
  align-items: baseline;
  color: #0f172a;
  font-family: "Avenir Next", Avenir, "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.sortie-logo .aero {
  color: #f05a28;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fbfcfe;
  color: var(--focus);
  font-size: 13px;
  text-decoration: none;
}
.top-nav a.active {
  color: #fff;
  border-color: var(--focus);
  background: var(--focus);
}
.theme-select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 28px 5px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}
html[data-theme="ops"] {
  --bg: #eef1ed;
  --panel: #fffdf5;
  --ink: #263238;
  --muted: #59636a;
  --line: #bfc7bf;
  --strong: #111827;
  --due: #9f1d14;
  --soon: #8a4b0b;
  --watch: #245b78;
  --verify: #6a4b00;
  --ok: #286247;
  --focus: #405565;
}
html[data-theme="aero"] {
  --bg: #0f1720;
  --panel: #17212b;
  --ink: #e5edf5;
  --muted: #aab8c6;
  --line: #334454;
  --strong: #f8fbff;
  --due: #ff8a80;
  --soon: #ffbf69;
  --watch: #7db7ff;
  --verify: #f2d27c;
  --ok: #7dd3a8;
  --focus: #45b6c9;
}
html[data-theme] body,
html[data-theme] html { background: var(--bg); color: var(--ink); }
html[data-theme] header,
html[data-theme] .panel,
html[data-theme] .metric,
html[data-theme] .card,
html[data-theme] .table-panel,
html[data-theme] .chart-wrap,
html[data-theme] .details,
html[data-theme] .reference-box,
html[data-theme] .field input,
html[data-theme] .field select,
html[data-theme] input,
html[data-theme] select,
html[data-theme] table,
html[data-theme] th {
  background: var(--panel);
  color: var(--ink);
}
html[data-theme] .top-nav a,
html[data-theme] .badge,
html[data-theme] .pill,
html[data-theme] .fuel-signal,
html[data-theme] .activity-flags span,
html[data-theme] .expand-icon {
  background: var(--panel);
}
html[data-theme] .top-nav a.active {
  color: #fff;
  border-color: var(--focus);
  background: var(--focus);
}
html[data-theme="ops"] body { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
html[data-theme="ops"] h1,
html[data-theme="ops"] h2,
html[data-theme="ops"] h3 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html[data-theme="ops"] .panel,
html[data-theme="ops"] .metric,
html[data-theme="ops"] .card,
html[data-theme="ops"] .field input,
html[data-theme="ops"] .field select {
  border-radius: 3px;
}
html[data-theme="ops"] .top-nav a,
html[data-theme="ops"] .theme-select,
html[data-theme="ops"] .badge,
html[data-theme="ops"] .pill,
html[data-theme="ops"] .fuel-signal {
  border-radius: 3px;
}
html[data-theme="aero"] body,
html[data-theme="aero"] header,
html[data-theme="aero"] .app {
  background: var(--bg);
}
html[data-theme="aero"] a,
html[data-theme="aero"] .top-nav a,
html[data-theme="aero"] .theme-select,
html[data-theme="aero"] .sortie-logo {
  color: var(--focus);
}
html[data-theme="aero"] .sortie-logo .aero {
  color: #ff9a62;
}
html[data-theme="aero"] .top-nav a.active {
  color: #061017;
}
html[data-theme="aero"] .subtitle,
html[data-theme="aero"] p,
html[data-theme="aero"] .muted,
html[data-theme="aero"] .note,
html[data-theme="aero"] .detail,
html[data-theme="aero"] .section-head span,
html[data-theme="aero"] .table-head span {
  color: var(--muted);
}
html[data-theme="aero"] .card,
html[data-theme="aero"] .metric,
html[data-theme="aero"] .notice,
html[data-theme="aero"] .reference-box,
html[data-theme="aero"] .chart-wrap {
  box-shadow: 0 0 0 1px rgba(69, 182, 201, 0.08);
}

:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #18212d;
  --muted: #64748b;
  --line: #d8e0e8;
  --strong: #0f172a;
  --focus: #0b7285;
  --ok: #067647;
  --warn: #b54708;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header {
  padding: 22px 28px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  color: var(--strong);
  letter-spacing: 0;
}
p { margin: 0; color: var(--muted); line-height: 1.45; max-width: 980px; }
main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
  padding: 16px;
}
h2 { margin: 0 0 12px; font-size: 18px; color: var(--strong); }
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}
.metric strong { display: block; color: var(--strong); font-size: 22px; line-height: 1; margin-bottom: 6px; }
.metric strong.long { font-size: 13px; line-height: 1.25; }
.metric span { color: var(--muted); font-size: 12px; }
.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.notice {
  border: 1px solid #f5c28f;
  background: #fff8ed;
  color: var(--warn);
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.chart-panel {
  padding: 16px;
  margin-bottom: 16px;
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.chart-head h2 { margin-bottom: 4px; }
.chart-head p {
  font-size: 13px;
  max-width: 760px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ok);
}
.legend-dot.high { background: #b42318; }
.legend-dot.low { background: var(--warn); }
.legend-dot.none { background: #94a3b8; }
.chart-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.fuel-chart {
  display: block;
  min-width: 820px;
  width: 100%;
  height: 300px;
}
.chart-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.table-panel { overflow: hidden; }
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.table-head span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcfe;
  color: var(--muted);
  font-weight: 650;
}
.airfield { font-weight: 650; color: var(--strong); }
.crew { font-weight: 650; color: var(--strong); }
.muted { color: var(--muted); }
.yes { color: var(--ok); font-weight: 700; }
.verify { color: var(--warn); }
.fuel-signal {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.fuel-signal.high { color: #b42318; border-color: #efb5ae; background: #fff5f3; }
.fuel-signal.low { color: var(--warn); border-color: #f5c28f; background: #fff8ed; }
.fuel-signal.normal { color: var(--ok); border-color: #9bd7bd; background: #f1fbf6; }
.activity-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.activity-flags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 12px;
}
.activity-flags .active {
  color: var(--ok);
  border-color: #9bd7bd;
  background: #f1fbf6;
}
@media (max-width: 880px) {
  header { padding: 18px 16px; }
  main { grid-template-columns: 1fr; padding: 10px; }
  .sidebar { position: static; }
}
