/* Travel Terminal — Knowledge Destinations.
   Everything themed hangs off [data-theme]; components read --t-* variables
   so a new theme is a variable block, not new CSS. */

body.terminal {
  --paper: #f7f9fd;
  --panel: #ffffff;
  --ink2: #101828;
  --ink2-soft: #5d6b84;
  --hairline: #e5eaf3;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-flap: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* neutral fallbacks; themes override */
  --t-accent: #3d7cf0;
  --t-accent-soft: #e3edff;
  --t-band: #12233f;
  --t-board-bg: #0b0f1c;
  --t-board-row: #131a2e;
  --t-flap-bg: #1a2238;
  --t-flap-text: #ffd35c;
  --t-ticket-paper: #ffffff;
  --t-stamp: #b0413e;

  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink2);
}

[data-theme="airport"] body.terminal,
body.terminal[data-theme="airport"] {
  --t-accent: #0e6ee8;
  --t-accent-soft: #e2eeff;
  --t-band: #0c2f66;
  --t-board-bg: #0a1122;
  --t-board-row: #111a30;
  --t-flap-bg: #18223c;
  --t-flap-text: #ffd35c;
  --t-ticket-paper: #ffffff;
  --t-stamp: #1d5fc2;
}

[data-theme="railway"] body.terminal,
body.terminal[data-theme="railway"] {
  --t-accent: #0e6b4f;
  --t-accent-soft: #e1f2ea;
  --t-band: #0b3d2e;
  --t-board-bg: #0d1410;
  --t-board-row: #14201a;
  --t-flap-bg: #1b2b22;
  --t-flap-text: #f4b942;
  --t-ticket-paper: #fffdf6;
  --t-stamp: #8a5a12;
}

.trm-wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.trm-section { margin: 34px 0; }
.trm-eyebrow {
  font-family: var(--font-flap); font-size: 11px; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--ink2-soft); margin: 0 0 12px;
}
.trm-h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.6px;
  font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px;
}
.linkish {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--t-accent); font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.trm-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--t-accent); color: #fff; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.trm-btn:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.trm-btn.quiet {
  background: transparent; color: var(--ink2); border: 1px solid var(--hairline);
}
.trm-btn.quiet:hover { border-color: var(--ink2-soft); }

/* ---------- greeting + stats ---------- */
.trm-greet { margin-top: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.trm-greet h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -1px;
  font-size: clamp(28px, 4vw, 42px); margin: 6px 0 4px;
}
.trm-greet .sub { color: var(--ink2-soft); font-size: 16.5px; margin: 0; }
.trm-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-tile {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 12px 18px; text-align: center; min-width: 92px;
}
.stat-tile b { font-family: var(--font-display); font-size: 22px; display: block; }
.stat-tile span { font-size: 11.5px; color: var(--ink2-soft); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }

/* ---------- departure board (split-flap) ---------- */
.board {
  background: var(--t-board-bg); border-radius: 20px; padding: 20px 20px 14px;
  box-shadow: 0 24px 60px rgba(8, 14, 30, 0.35); overflow-x: auto;
}
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 6px 14px; min-width: 520px;
}
.board-title {
  font-family: var(--font-flap); color: var(--t-flap-text); font-size: 15px;
  letter-spacing: 6px; font-weight: 700;
}
.board-clock { font-family: var(--font-flap); color: #7d8aa8; font-size: 13px; letter-spacing: 2px; }
.board-cols, .board-row {
  display: grid; grid-template-columns: 96px minmax(150px, 1fr) 76px 84px 130px;
  gap: 10px; align-items: center; min-width: 520px;
}
.board-cols {
  font-family: var(--font-flap); font-size: 10px; letter-spacing: 2px;
  color: #66738f; padding: 0 6px 8px;
}
.board-row {
  background: var(--t-board-row); border-radius: 10px; padding: 10px 6px;
  margin-bottom: 6px; text-decoration: none;
}
a.board-row:hover { outline: 2px solid var(--t-accent); text-decoration: none; }
.board-row .cell { display: flex; gap: 2px; flex-wrap: nowrap; overflow: hidden; }
.flap {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-flap); font-size: 14px; font-weight: 700;
  color: var(--t-flap-text); background: var(--t-flap-bg);
  border-radius: 3px; min-width: 15px; height: 24px; padding: 0 1px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.5), inset 0 10px 12px -10px rgba(255,255,255,0.14);
}
.flap::after {  /* the split line across the middle of each flap card */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0, 0, 0, 0.55);
}
.flap.flipping { animation: flap-flip 0.09s linear; }
@keyframes flap-flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.12); } 100% { transform: scaleY(1); } }
.board-row .status-cell .flap { color: #9ff0c1; }
.board-row.expired .status-cell .flap { color: #ff9d94; }
.board-row.soon .flap { color: #66738f; }
.board-note { font-family: var(--font-flap); color: #66738f; font-size: 11px; letter-spacing: 1.6px; padding: 10px 6px 2px; }

/* ---------- journey card ---------- */
.journey-card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 24px; margin-top: 14px;
}
.journey-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.journey-top h3 { font-family: var(--font-display); font-size: 24px; margin: 0; letter-spacing: -0.5px; }
.journey-head { min-width: 0; }
.station-board { width: 100%; max-width: 380px; height: auto; display: block; }
.station-board .sb-region {
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  letter-spacing: 3px; fill: #2b2f8f;
}
.station-board .sb-name {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: 4px; fill: #ffffff;
}
.journey-top .muted2 { color: var(--ink2-soft); font-size: 14px; margin: 4px 0 0; }
.pass-chip {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  background: var(--t-accent-soft); color: var(--t-accent);
  border-radius: 999px; padding: 8px 14px; white-space: nowrap;
}
.pass-chip.warn { background: #fdeeec; color: #c0392b; }
.pass-chip.infinite { background: #eef1f7; color: var(--ink2-soft); }

/* route rail: stations along a line, marker travels */
.route { position: relative; margin: 30px 4px 8px; height: 58px; }
.route .track {
  position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 99px;
  background: var(--hairline);
}
.route .track-done {
  position: absolute; left: 0; top: 14px; height: 4px; border-radius: 99px;
  background: var(--t-accent); transition: width 0.6s ease;
}
.route .stop-dot {
  position: absolute; top: 9px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel); border: 3px solid var(--hairline); transform: translateX(-50%);
}
.route .stop-dot.done { border-color: var(--t-accent); background: var(--t-accent); }
.route .stop-dot.next { border-color: var(--t-accent); box-shadow: 0 0 0 5px var(--t-accent-soft); }
.route .stop-dot span {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: var(--ink2-soft); white-space: nowrap;
}
.route .marker {
  position: absolute; top: -16px; font-size: 20px; transform: translateX(-50%);
  transition: left 0.6s ease; filter: drop-shadow(0 3px 4px rgba(16,24,40,0.25));
}
.journey-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; align-items: center; }

/* expired state */
.expired-note {
  border: 1px solid #f3d1cc; background: #fdf4f2; color: #7c3a30;
  border-radius: 14px; padding: 14px 16px; margin-top: 18px; font-size: 14.5px; line-height: 1.55;
}
.expired-note b { display: block; margin-bottom: 2px; }

/* ---------- passport ---------- */
.passport-flex { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.passport-cover {
  flex: 0 0 240px; min-height: 300px; border-radius: 16px; position: relative;
  background: linear-gradient(160deg, var(--t-band), color-mix(in srgb, var(--t-band) 70%, black));
  color: #f4e9c8; padding: 26px 22px; display: flex; flex-direction: column;
  justify-content: space-between; box-shadow: 0 18px 44px rgba(10, 20, 40, 0.3);
}
.passport-cover::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(244, 233, 200, 0.45);
  border-radius: 10px; pointer-events: none;
}
.passport-cover .crest { font-size: 40px; text-align: center; margin-top: 34px; }
.passport-cover h4 {
  font-family: var(--font-display); text-align: center; margin: 10px 0 0;
  font-size: 17px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700;
}
.passport-cover .holder { font-family: var(--font-flap); font-size: 12px; text-align: center; letter-spacing: 1px; opacity: 0.85; }

/* the cover is now a button that opens the book */
button.passport-cover { border: 0; cursor: pointer; text-align: inherit; font: inherit; width: 240px; }
.passport-cover.clickable { transition: transform .18s ease, box-shadow .2s ease; }
.passport-cover.clickable:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 26px 56px rgba(10, 20, 40, 0.42); }
.passport-open-hint { font-family: var(--font-flap); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  text-align: center; opacity: .8; margin-top: 6px; }

/* ---------- passport book (modal) ---------- */
.pp-overlay { display: grid; place-items: center; padding: 24px; }
.pp-book { position: relative; width: min(760px, 94vw); max-height: 88vh; overflow: auto;
  border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); animation: pp-in .28s cubic-bezier(.2,.8,.25,1); }
@keyframes pp-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pp-close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 999px;
  border: 0; cursor: pointer; background: rgba(0,0,0,.35); color: #fff; font-size: 15px; }
.pp-spread { display: grid; grid-template-columns: 260px 1fr; min-height: 420px;
  background: #f3ead2; background-image: radial-gradient(rgba(120,90,40,.06) 1px, transparent 1px); background-size: 6px 6px; }
.pp-page { padding: 30px 26px; position: relative; }
.pp-left { background: linear-gradient(160deg, var(--t-band, #163a6b), color-mix(in srgb, var(--t-band, #163a6b) 65%, black));
  color: #f4e9c8; border-radius: 16px 0 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.pp-left::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(244,233,200,.4); border-radius: 10px; }
.pp-crest { font-size: 46px; }
.pp-title { font-family: var(--font-display); font-size: 16px; letter-spacing: 2.5px; text-transform: uppercase; }
.pp-holder { font-family: var(--font-flap); letter-spacing: 1px; margin-top: 8px; }
.pp-since { font-size: 12px; opacity: .8; }
.pp-count { margin-top: 14px; font-family: var(--font-flap); font-size: 12px; letter-spacing: 1px;
  border: 1px solid rgba(244,233,200,.5); border-radius: 999px; padding: 5px 12px; }
.pp-right { color: #4a3a1e; border-radius: 0 16px 16px 0; }
.pp-page-label { font-family: var(--font-flap); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .6; border-bottom: 1px dashed rgba(120,90,40,.35); padding-bottom: 8px; margin-bottom: 16px; }
.pp-stamps { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pp-stamps > * { transform: rotate(-4deg); }
.pp-stamps > *:nth-child(2n) { transform: rotate(3deg); }
.pp-stamps > *:nth-child(3n) { transform: rotate(-1.5deg); }
.pp-empty { color: #6b5836; font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) { .pp-spread { grid-template-columns: 1fr; } .pp-left { border-radius: 16px 16px 0 0; min-height: 200px; } .pp-right { border-radius: 0 0 16px 16px; } }
.stamps-panel {
  flex: 1 1 320px; background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 22px; min-height: 300px;
}
.stamps-grid { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.stamp { width: 150px; transform: rotate(-6deg); }
.stamp:nth-child(2n) { transform: rotate(4deg); }
.stamps-empty { color: var(--ink2-soft); font-size: 14.5px; line-height: 1.6; margin: 14px 0 0; }

/* ---------- destinations grid ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.dest-card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink2);
  text-decoration: none; transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dest-card .d-head { display: flex; justify-content: space-between; align-items: center; }
.dest-card .d-icon { font-size: 26px; }
.dest-card .d-code {
  font-family: var(--font-flap); font-size: 11px; letter-spacing: 2px; color: var(--ink2-soft);
  border: 1px solid var(--hairline); padding: 3px 8px; border-radius: 6px;
}
.dest-card h3 { margin: 2px 0 0; font-family: var(--font-display); font-size: 18.5px; letter-spacing: -0.3px; }
.dest-card .d-region { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--t-accent); }
/* Fixed-height blurb so the progress bar below it lands at the same Y on every
   card — the bars stay in a straight line across the grid regardless of copy. */
.dest-card p { margin: 0; color: var(--ink2-soft); font-size: 13.5px; line-height: 1.5;
  min-height: 6em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dest-card .d-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink2-soft); flex-wrap: wrap; }
.dest-card.live:hover { transform: translateY(-3px); border-color: var(--t-accent); box-shadow: 0 14px 34px rgba(30, 70, 140, 0.13); text-decoration: none; }
.dest-card.soon { opacity: 0.6; }
/* One CTA per card, pinned to the bottom so cards line up; the slack collects
   above it, keeping the progress bar tight under the blurb. */
.dest-card .d-cta { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.dest-card .d-cta .trm-btn { flex: 1; padding: 10px 12px; font-size: 13.5px; gap: 5px; min-width: 0; }

/* ---------- onboarding theme picker ---------- */
.picker-overlay {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(9, 14, 26, 0.6); backdrop-filter: blur(6px); padding: 20px;
}
.picker {
  background: var(--panel); border-radius: 24px; padding: 34px; max-width: 640px; width: 100%;
  text-align: center; max-height: 92vh; overflow-y: auto;
}
.picker h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; letter-spacing: -0.5px; }
.picker .muted2 { color: var(--ink2-soft); margin: 0 0 22px; }
.picker-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.picker-card {
  border: 2px solid var(--hairline); border-radius: 18px; padding: 24px 18px; cursor: pointer;
  background: var(--paper); transition: border-color 0.15s ease, transform 0.12s ease;
  font-family: var(--font-body); text-align: center;
}
.picker-card:hover { border-color: var(--t-accent); transform: translateY(-3px); }
.picker-card .p-icon { font-size: 42px; display: block; }
.picker-card h3 { font-family: var(--font-display); margin: 10px 0 6px; font-size: 19px; }
.picker-card p { color: var(--ink2-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }
.picker .later { margin-top: 16px; font-size: 13px; }

/* ---------- ticket (boarding pass / journey pass) ---------- */
.ticket-overlay {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(9, 14, 26, 0.66); backdrop-filter: blur(6px); padding: 30px 16px; overflow-y: auto;
}
.ticket-slot { width: min(660px, 96vw); }
.ticket-slot .slot-lip {
  height: 14px; border-radius: 8px 8px 0 0; margin: 0 26px;
  background: linear-gradient(#232c44, #0d1424);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.6);
}
.ticket {
  background: var(--t-ticket-paper); border-radius: 16px; overflow: hidden;
  color: #17233c; box-shadow: 0 30px 70px rgba(5, 10, 25, 0.5);
}
.ticket.printing { animation: ticket-print 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ticket-print {
  0% { clip-path: inset(0 0 100% 0); transform: translateY(-46px); }
  60% { clip-path: inset(0 0 12% 0); }
  100% { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
.ticket-band {
  background: var(--t-band); color: #fff; padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ticket-band .airline { font-family: var(--font-display); font-weight: 700; letter-spacing: 1.4px; font-size: 15px; }
.ticket-band .pass-name { font-family: var(--font-flap); font-size: 11px; letter-spacing: 2.4px; opacity: 0.85; }
.ticket-main { display: flex; }
.ticket-fields { flex: 1; padding: 20px 22px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px 12px; }
.tf { min-width: 0; }
.tf label {
  display: block; font-family: var(--font-flap); font-size: 9.5px; letter-spacing: 1.8px;
  color: #7a8497; margin-bottom: 3px; text-transform: uppercase;
}
.tf b { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.tf b.big { font-size: 21px; color: var(--t-band); }
.ticket-qr {
  flex: 0 0 168px; border-left: 2px dashed #c9d2e2; padding: 18px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.ticket-qr::before, .ticket-qr::after {  /* perforation notches */
  content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--t-board-bg, #0b0f1c);
}
.ticket-qr::before { top: -10px; } .ticket-qr::after { bottom: -10px; }
.ticket-qr img { width: 116px; height: 116px; image-rendering: pixelated; }
.ticket-qr .jid { font-family: var(--font-flap); font-size: 10px; letter-spacing: 1px; color: #7a8497; }
.ticket-footer {
  border-top: 1px solid #e4e9f2; padding: 12px 22px; font-family: var(--font-flap);
  font-size: 11px; letter-spacing: 1.4px; color: #7a8497; display: flex;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.ticket-actions { text-align: center; margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.ticket-actions .trm-btn.quiet { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- stamp pop (earned moment) ---------- */
.stamp-pop {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(9, 14, 26, 0.7); backdrop-filter: blur(6px); padding: 20px;
}
.stamp-pop .card2 {
  background: var(--panel, #fff); border-radius: 22px; padding: 30px; text-align: center; max-width: 420px;
}
.stamp-pop .stamp { width: 210px; margin: 10px auto; display: block; }
.stamp-pop .stamp.thump { animation: stamp-thump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.45s; }
@keyframes stamp-thump {
  0% { transform: scale(2.2) rotate(-18deg); opacity: 0; }
  60% { transform: scale(0.94) rotate(-7deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

/* ---------- responsive / motion / dark ---------- */
@media (max-width: 700px) {
  .ticket-main { flex-direction: column; }
  .ticket-qr { border-left: none; border-top: 2px dashed #c9d2e2; flex-basis: auto; }
  .ticket-qr::before { left: auto; right: -11px; top: -10px; }
  .ticket-qr::after { left: -11px; top: -10px; bottom: auto; }
  .ticket-fields { grid-template-columns: 1fr 1fr; }
  .picker-cards { grid-template-columns: 1fr; }
  .passport-cover { flex-basis: 100%; min-height: 220px; }
  .route .stop-dot span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flap.flipping { animation: none; }
  .ticket.printing { animation: none; }
  .stamp-pop .stamp.thump { animation: none; opacity: 1; }
}
/* light/dark toggle button (mounted in the header) */
.theme-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  font-size: 14px; cursor: pointer; background: transparent; color: var(--ink2-soft);
  border: 1px solid var(--hairline); border-radius: 999px; vertical-align: middle;
  transition: color .2s ease, border-color .2s ease, transform .45s cubic-bezier(0.34,1.56,0.64,1);
}
.theme-btn:hover { color: var(--ink2); border-color: var(--ink2-soft); }
.theme-btn.spin { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .theme-btn { transition: none; } }

/* Dark tokens — applied on a manual toggle (data-theme=dark) OR the OS setting
   (unless the user has explicitly forced light via the toggle). */
:root[data-theme="dark"] body.terminal {
  --paper: #0f1319; --panel: #181d26; --ink2: #eef1f6; --ink2-soft: #a6adba;
  --hairline: #262c38;
  background: linear-gradient(180deg, #0f1319, #0d1015 60%, #0b0d11);
  background-attachment: fixed;
}
:root[data-theme="dark"] .picker-card { background: #181d26; }
:root[data-theme="dark"] .expired-note { background: #2b1a17; border-color: #56302a; color: #f0b9ae; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.terminal {
    --paper: #0f1319; --panel: #181d26; --ink2: #eef1f6; --ink2-soft: #a6adba;
    --hairline: #262c38;
    background: linear-gradient(180deg, #0f1319, #0d1015 60%, #0b0d11);
    background-attachment: fixed;
  }
  :root:not([data-theme="light"]) .picker-card { background: #181d26; }
  :root:not([data-theme="light"]) .expired-note { background: #2b1a17; border-color: #56302a; color: #f0b9ae; }
}
