:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #333333;
  --line: #e4e4e4;
  --paper: #f5f5f5;
  --card: #ffffff;
  --navy: #001571;
  --yellow: #ffed00;
  --danger: #7d1e1e;
  --danger-bg: #fdecec;
  --navy-wash: #e8ebf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.45 "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--navy); }
a:hover { text-decoration: none; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 8px; background: #fff; padding: 8px; z-index: 2; }
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  color: var(--navy);
  border-bottom: 6px solid var(--yellow);
}
.top a { color: var(--navy); text-decoration: none; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand img { height: 56px; width: auto; display: block; }
.brand span, .who span { color: var(--muted); font-size: 13px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a { font-weight: 700; padding: 10px 12px; border-radius: 8px; min-height: 44px; }
.nav a.quiet { font-weight: 600; color: var(--muted); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--navy); }
.who { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.pill, .status {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.pill { color: var(--navy); background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
main { padding: 24px 28px 40px; max-width: 1240px; margin: 0 auto; }
h1 { font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0; }
.lead, .meta, .empty, .hint { color: var(--muted); }
.hint { margin: 0 0 8px; font-size: 15px; }
.pagehead, .filters, .split, .actionbar, .who, .cards { }
.pagehead { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pagehead .button { flex: 0 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.filters select { width: auto; min-width: 280px; max-width: 100%; }
.narrow { max-width: 640px; }
.fleet-now {
  margin: 18px 0 8px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fleet-now-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fleet-now-head h2 { margin: 0; }
.fleet-now-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.fleet-now-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.fleet-live-map {
  height: min(62vh, 520px);
  min-height: 320px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #dfe6df;
}
.fleet-map-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fleet-map-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.fleet-map-chip:hover,
.fleet-map-chip:focus-visible {
  border-color: #7a8499;
  outline: none;
}
.fleet-pin {
  background: transparent;
  border: 0;
}
.fleet-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd54a;
  border: 2px solid #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.fleet-pin-label {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(12, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.quiet-link { font-weight: 600; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
input, select, textarea, button {
  font: inherit;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c5c8d4;
  border-radius: 10px;
  background: #fff;
}
textarea { min-height: 96px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--yellow);
  color: var(--navy);
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button.secondary, a.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
button.linkish { min-height: 44px; background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 8px 12px; font-weight: 700; text-decoration: none; }
.banner { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.banner.info { background: #fff8b0; color: var(--navy); }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.banner.danger a { color: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tally { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.tally div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tally strong { display: block; font-size: 32px; line-height: 1; color: var(--navy); }
.tally span { color: var(--muted); font-weight: 700; }
.jobrows { display: flex; flex-direction: column; gap: 8px; }
.jobrow {
  display: grid;
  grid-template-columns: 11rem minmax(160px, 1.3fr) minmax(160px, 1.3fr) minmax(140px, 1fr) auto auto;
  gap: 8px 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.jobrow:hover { border-color: var(--navy); }
.jobrow .when { color: var(--navy); font-weight: 700; }
.jobrow .whojob, .jobrow span { display: flex; flex-direction: column; gap: 2px; }
.jobrow .meta { margin: 0; }
.jobrow .next { font-weight: 700; color: var(--navy); white-space: nowrap; }
.jobrow .status { justify-self: start; }
.card, .panel, .demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--navy); }
.card .when { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.card header, .rowline { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card p { margin: 6px 0; }
.section { margin: 22px 0; }
.people { display: grid; gap: 10px; }
.count { color: var(--muted); font-weight: 400; }
.status-awaiting_confirmation, .status-in_progress { color: var(--navy); background: var(--yellow); }
.status-scheduled, .status-completed, .status-closed { color: var(--navy); background: var(--navy-wash); }
.status-cancelled { color: var(--danger); background: var(--danger-bg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 4px 0; }
dt { color: var(--muted); }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gaps { margin: 8px 0 0; padding-left: 18px; }
.audit, .plain, .files { padding-left: 18px; }
blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); }
pre.doc { white-space: pre-wrap; font: 14px/1.45 ui-monospace, Consolas, monospace; }
.pad { width: 100%; height: 160px; border: 1px solid #c5c8d4; border-radius: 8px; background: #fff; touch-action: none; }
.clip { display: block; width: 100%; max-height: 520px; margin-top: 8px; background: #000; border-radius: 8px; }
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.clips .clip { margin-top: 0; }
.print-logo { display: none; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; }
.actionbar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.actionbar button { flex: 1; }
.foot { display: flex; gap: 16px; padding: 8px 20px 24px; }
.foot a { color: var(--muted); font-weight: 600; }
.crumbs { margin-bottom: 8px; }
details.panel, details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 700; }
summary h2 { display: inline; margin: 0; }
.demo summary { font-size: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (min-width: 900px) {
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobrow { grid-template-columns: 1fr 1fr; }
  .jobrow .when, .jobrow .whojob { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .brand img { height: 44px; }
  .pagehead { flex-direction: column; align-items: flex-start; }
  .nav a { padding: 8px 10px; }
  .split, dl div { grid-template-columns: 1fr; }
  .who { margin-left: 0; }
  main { padding: 14px; }
  h1 { font-size: 24px; }
  .tally { grid-template-columns: 1fr 1fr; }
  .jobrow, .jobrow .when, .jobrow .whojob { grid-template-columns: 1fr; grid-column: auto; }
  .jobrow .next { white-space: normal; }
}
body.gate {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% 18%, rgba(255, 237, 0, 0.18), transparent 55%),
    linear-gradient(145deg, #000b3d 0%, var(--navy) 42%, #0a1f8a 100%);
  color: #fff;
}
body.gate .gate-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
}
body.gate .banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(440px, calc(100% - 32px));
}
.gate-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100%;
  min-height: 100vh;
}
.gate-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px);
  border-right: 6px solid var(--yellow);
}
.gate-brand img {
  width: min(360px, 78%);
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.gate-tag {
  margin: 36px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.gate-lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}
.gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
}
.gate-panel h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 36px);
}
.gate-panel .stack { max-width: 380px; }
.gate-panel .demo {
  margin-top: 18px;
  max-width: 380px;
}
@media (max-width: 860px) {
  .gate-stage { grid-template-columns: 1fr; }
  .gate-brand {
    min-height: auto;
    padding: 28px 22px 20px;
    border-right: 0;
    border-bottom: 6px solid var(--yellow);
  }
  .gate-brand img { width: min(220px, 72%); }
  .gate-lead { font-size: 17px; max-width: none; }
  .gate-panel { padding: 24px 20px 36px; }
  .gate-panel .stack, .gate-panel .demo { max-width: none; }
}
@media print {
  .top, .actionbar, form, .skip { display: none !important; }
  .print-logo { display: block; width: 280px; height: auto; margin: 0 0 12px; }
  body, main { background: #fff; }
}
