
:root {
  color-scheme: dark;
  --bg: #070b0e;
  --panel: #11181d;
  --panel-2: #182229;
  --line: #31414b;
  --text: #f4f7f9;
  --muted: #b8c7d0;
  --blue: #64c7ff;
  --orange: #ff9d45;
  --green: #65d18d;
  --red: #ff6961;
  --focus: #ffd166;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

button, a { font: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--focus);
  color: #141414;
  padding: 10px 14px;
  z-index: 4;
}
.skip-link:focus { top: 12px; }

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #0b1115;
  padding: 22px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
}
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

nav {
  display: grid;
  gap: 6px;
}
.nav-button {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.nav-button[aria-current="page"] {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.content {
  min-width: 0;
  padding: 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; margin-bottom: 0; }
h2 { font-size: 21px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.account-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-pill span {
  display: grid;
  gap: 2px;
}
.account-pill small {
  color: var(--muted);
}
.pill-button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.metric, .item, .notice, .invoice {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
}
.metric strong {
  display: block;
  color: var(--blue);
  font-size: 26px;
}
.muted { color: var(--muted); }
.status { color: var(--green); font-weight: 700; }
.warning { color: var(--orange); font-weight: 700; }
.danger { color: var(--red); font-weight: 700; }

.section {
  margin-bottom: 24px;
}
.list {
  display: grid;
  gap: 10px;
}
.strip-list {
  display: grid;
  gap: 10px;
}
.flight-strip {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(220px, 1fr) minmax(260px, 0.95fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #11181d, #142028);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
}
.strip-good { border-left-color: var(--green); }
.strip-warn { border-left-color: var(--orange); }
.strip-danger { border-left-color: var(--red); }
.strip-status {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px dashed var(--line);
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.strip-main {
  display: grid;
  gap: 8px;
  align-content: center;
}
.strip-title {
  display: grid;
  gap: 4px;
}
.strip-title strong {
  font-size: 17px;
}
.strip-title span {
  color: var(--muted);
}
.strip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-meta span {
  border: 1px solid var(--line);
  background: #0c1419;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}
.strip-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  align-content: center;
}
.strip-details div {
  display: grid;
  gap: 3px;
}
.strip-details strong {
  font-size: 13px;
}
.strip-actions {
  margin-top: 8px;
}
.hero-panel, .profile-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #10181f, #17242c);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.hero-panel p, .profile-panel p {
  margin-bottom: 0;
}
.signed-in {
  border-color: #426b56;
}
.avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid var(--orange);
  background: #1a2329;
  color: var(--orange);
  font-weight: 900;
  font-size: 24px;
  flex: 0 0 auto;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.row:last-child { border-bottom: 0; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.action {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.action:disabled {
  color: #7f8f98;
  cursor: not-allowed;
  opacity: 0.72;
}
.provider-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.provider-button {
  display: grid;
  gap: 3px;
  min-width: 170px;
}
.provider-button small {
  color: var(--muted);
}
.route-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.setup-links a {
  color: var(--blue);
  text-align: right;
  overflow-wrap: anywhere;
}
.setup-links .item p {
  margin: 8px 0 0;
}
.notice p {
  margin-bottom: 0;
  color: var(--muted);
}
.live-notice {
  border-color: #426b56;
}
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tab-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
}
.tab-button[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--text);
}
.field-label {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}
.field-control {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1419;
  color: var(--text);
  border-radius: 6px;
  padding: 10px;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.toggle-list {
  display: grid;
  gap: 10px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.toggle-row:last-child { border-bottom: 0; }

.coming {
  border-left: 4px solid var(--orange);
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .flight-strip { grid-template-columns: 1fr; }
  .hero-panel, .profile-panel { align-items: flex-start; flex-direction: column; }
}

@media print {
  .sidebar, .topbar, .actions, .skip-link { display: none; }
  .app-shell { display: block; }
  body { background: #fff; color: #000; }
  .invoice { border: 0; }
}
