
.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;
  --due: #b42318;
  --soon: #b54708;
  --watch: #175cd3;
  --verify: #7a4a00;
  --ok: #067647;
  --focus: #0b7285;
}
* { 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);
}
a { color: var(--focus); text-decoration: none; }
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  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: 840px; }
.control button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fbfcfe;
  color: var(--focus);
  font-size: 13px;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 16px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
.dot.due { background: var(--due); }
.dot.soon { background: var(--soon); }
.dot.watch { background: var(--watch); }
.dot.verify { background: var(--verify); }
.canvas-wrap {
  overflow: auto;
  min-height: calc(100vh - 170px);
}
.chart {
  position: relative;
  min-width: 1280px;
  height: 720px;
  padding: 34px 36px 40px 150px;
}
.axis {
  position: absolute;
  left: 150px;
  right: 36px;
  top: 38px;
  height: 1px;
  background: var(--line);
}
.tick {
  position: absolute;
  top: 28px;
  width: 1px;
  height: 640px;
  background: #edf1f5;
}
.tick span {
  position: absolute;
  top: -24px;
  left: -18px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.lane-label {
  position: absolute;
  left: 20px;
  width: 112px;
  transform: translateY(-50%);
  color: var(--strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.today-line {
  position: absolute;
  top: 28px;
  height: 650px;
  width: 2px;
  background: var(--focus);
  z-index: 2;
}
.today-label {
  position: absolute;
  top: 42px;
  transform: translateX(-50%);
  border: 1px solid #89d2dc;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--focus);
  background: #eefcfe;
  font-size: 12px;
  font-weight: 650;
  z-index: 3;
  white-space: nowrap;
}
.event {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18), 0 6px 14px rgba(15, 23, 42, 0.16);
  background: var(--ok);
  cursor: pointer;
  z-index: 4;
}
.event.due { background: var(--due); width: 18px; height: 18px; }
.event.soon { background: var(--soon); width: 16px; height: 16px; }
.event.watch { background: var(--watch); }
.event.verify { background: var(--verify); }
.event.selected {
  outline: 3px solid rgba(11, 114, 133, 0.28);
  outline-offset: 3px;
}
.event-label {
  position: absolute;
  left: 10px;
  top: -8px;
  max-width: 190px;
  color: var(--strong);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.event:hover .event-label, .event.selected .event-label {
  opacity: 1;
}
.details {
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.details-inner { padding: 16px; }
.detail-title {
  margin: 0 0 10px;
  color: var(--strong);
  font-size: 20px;
  line-height: 1.2;
}
.detail-sub { color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.kv {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.kv b { color: var(--muted); font-weight: 550; }
.kv span { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  header { display: block; padding: 18px 16px; }
  main { grid-template-columns: 1fr; padding: 10px; }
  .details { position: static; max-height: none; }
}
