/* ───────────────────────────────────────────────────────────────
   MERIDIAN — signal yellow on true black.
   One static matte-black theme; a single saturated yellow does the
   accent work. The live sky appears only inside the framed hero
   panel (.skyview) — a porthole, not a wallpaper.
   Type: Inter (display & prose) + Martian Mono (instruments).
   ─────────────────────────────────────────────────────────────── */

:root {
  /* True black, hueless. The brass tokens keep their names but now
     carry the signal yellow (≈ #FFD60A); --brass-ink is the black
     that text wears on a yellow fill. */
  --bg:          oklch(0.135 0.004 95);
  --bg-deep:     oklch(0.11 0.003 95);
  --surface:     oklch(0.17 0.005 95);
  --surface-2:   oklch(0.21 0.007 95);
  --line:        oklch(0.30 0.012 95);
  --line-strong: oklch(0.44 0.045 95);
  --text:        oklch(0.965 0.003 95);
  --text-2:      oklch(0.81 0.006 95);
  --text-3:      oklch(0.66 0.01 95);
  --brass:       oklch(0.85 0.167 95);
  --brass-bright:oklch(0.91 0.155 98);
  --brass-ink:   oklch(0.15 0.015 95);
  --alert:       oklch(0.66 0.19 30);

  /* The colour law. Yellow (the brass tokens) is value on paper and
     the hand of the maker; coin is money landed in your palm (the
     vault stays yellow — the institution, not the pocket); nocturne
     is the night's jurisdiction; azimuth is the sky observed. Alert
     is a PROXIMATE threat — resolved news wears ink. Tertiaries are
     ink accents: text, glyphs, hairlines — never fills, never glows.
     Yellow is the only colour allowed to fill. */
  --coin:     oklch(0.8 0.13 150);
  --nocturne: oklch(0.72 0.1 285);
  --azimuth:  oklch(0.78 0.07 230);

  /* Live sky (set by JS, consumed only inside .skyview) */
  --sky-top: #050510;
  --sky-horizon: #0a0a1c;
  --sky-stars: 1;
  --overcast: 0;

  --display: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  /* 4pt rhythm */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: var(--line) transparent; }

body {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes twinkle { 0%,100% { opacity: .8 } 50% { opacity: .25 } }

/* ── Frame ── */
#app { max-width: 1240px; margin: 0 auto; padding: 0 28px 96px; position: relative; z-index: 1; }

/* ── The bridge: full-width hero band, then rail + stage ── */
.hero-band { margin-top: var(--sp-5); }
.hero-band .skyview { margin-top: 0; }
.hero-band .busy-panel { border-bottom: none; padding-bottom: 0; }
.layout {
  display: grid; grid-template-columns: 324px minmax(0, 1fr);
  gap: var(--sp-6); align-items: start; margin-top: var(--sp-5);
}
.instruments {
  position: sticky; top: calc(var(--topbar-h, 78px) + 20px);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.instruments .notices { margin-top: 0; }
.main-col { min-width: 0; }

/* Mini-timetable: the next three appointments, always at hand */
.mini-tt { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.mini-tt-head {
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-1);
}
.tt-row.mini { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 13px 2px; font-size: 11.5px; }
.mini-tt-more {
  background: none; border: none; padding: 14px 2px 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brass);
  text-align: left; width: 100%;
}
.mini-tt-more:hover { color: var(--brass-bright); }

.topbar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--sp-5) 28px var(--sp-4);
  margin: 0 -28px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.135 0.004 95 / .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.wordmark {
  font-weight: 600; font-size: 12px;
  letter-spacing: .46em; color: var(--brass);
  text-transform: uppercase; user-select: none;
}
.wordmark .dot { color: var(--text-2); }
.topbar .utc { font-size: 12px; color: var(--text-3); letter-spacing: .1em; white-space: nowrap; }
.topbar .utc b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.topbar-right { display: flex; gap: 22px; align-items: baseline; }
.cash-chip {
  font-size: 13px; letter-spacing: .06em; color: var(--brass-bright);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.cash-chip small { color: var(--text-3); font-weight: 400; letter-spacing: .18em; margin-right: var(--sp-2); font-size: 11px; }
.cash-chip[data-wallet-chip] { color: var(--coin); }

/* ── Papers: the traveller's menu ── */
.menu-wrap { position: relative; }
.menu-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 13px 14px; border-radius: 999px; transition: all .2s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--brass); color: var(--brass-bright); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 264px; padding: var(--sp-2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 60px -20px oklch(0 0 0 / .8);
}
.menu-name {
  font-family: var(--display); font-size: 16px; color: var(--text);
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--line); margin-bottom: var(--sp-2);
}
.menu-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; border-radius: 999px;
  color: var(--text-2); font-size: 12px; letter-spacing: .04em;
  padding: 15px var(--sp-3); transition: background .15s, color .15s;
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item.danger { color: var(--alert); margin-top: var(--sp-2); border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; }
.menu-item.danger:hover { background: oklch(0.66 0.19 30 / .12); color: var(--alert); }

/* ── Shared bits ── */
.kicker {
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--brass); margin-bottom: var(--sp-4); font-weight: 500;
}
button { font-family: var(--mono); cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

/* Almanac section header: label · rule */
.board { margin-top: var(--sp-8); }
.board-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.board-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  border-bottom: 1px solid var(--line);
}
.board-head h3 {
  font-size: 12px; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase; color: var(--brass);
}
/* Section notes read like the italic gloss under a printed almanac rule. */
.board-head .note {
  font-family: var(--display); font-style: italic; font-size: 13.5px;
  color: var(--text-3); letter-spacing: .01em; text-align: right;
}
.board > *:nth-child(2) { margin-top: var(--sp-5); }

/* ── The Meridian Gazette: ink on the day's paper ── */
.gazette { border-width: 2px; }
.gz-masthead {
  text-align: center; border-bottom: 3px double var(--line-strong);
  padding-bottom: 14px; margin-bottom: 16px;
}
.gz-title {
  font-family: var(--display); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(24px, 4vw, 34px);
}
.gz-dateline {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); margin-top: 6px;
}
.gz-cols { column-width: 300px; column-gap: 28px; column-rule: 1px solid var(--line); }
.gz-section { break-inside: avoid; margin-bottom: 18px; }
.gz-head {
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 8px;
}
.gz-item {
  font-family: var(--display); font-size: 14px; line-height: 1.55;
  color: var(--text-2); margin: 0 0 8px;
}
.gz-item:first-letter { font-weight: 600; }

/* ── City standing progress ── */
.standing-bar {
  height: 6px; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface-2);
}
.standing-bar i {
  display: block; height: 100%; width: 100%; background: var(--brass);
  transform-origin: left; transition: transform .6s ease;
}

/* ── The skyview: live sky in a framed porthole ── */
.skyview {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  margin-top: var(--sp-6);
  padding: clamp(26px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-horizon) 100%);
  transition: background 3s linear;
}
.skyview::before { /* real clouds dim the real sky */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, oklch(0.55 0.01 260 / .9), oklch(0.45 0.012 260 / .75));
  opacity: var(--overcast); transition: opacity 3s linear;
}
.skyview .sv-stars { position: absolute; inset: 0; opacity: var(--sky-stars); transition: opacity 3s linear; pointer-events: none; }
.skyview .sv-stars i {
  position: absolute; display: block; border-radius: 50%; background: #fff;
  animation: twinkle 4s ease-in-out infinite;
}
.skyview .sv-inner { position: relative; z-index: 1; }

/* ── Real-sky events: the aurora and meteor showers, when reality provides ── */
.skyview .sv-aurora {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(130% 65% at 18% 0%, oklch(0.72 0.17 165 / .34), transparent 62%),
    radial-gradient(115% 55% at 78% 0%, oklch(0.66 0.15 305 / .2), transparent 55%);
  transition: opacity 4s linear;
}
.skyview.aurora .sv-aurora { opacity: 1; animation: aurora-drift 11s ease-in-out infinite alternate; }
@keyframes aurora-drift {
  from { transform: skewX(-4deg) translateY(-2%); }
  to   { transform: skewX(3deg)  translateY(2%); }
}
.skyview .sv-meteor {
  position: absolute; width: 90px; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, oklch(0.96 0.02 90 / .9));
  transform: rotate(-32deg);
}
.skyview.shower .sv-meteor { animation: meteor-streak 7s linear infinite; }
.skyview.shower .sv-meteor + .sv-meteor { animation-delay: 3.4s; }
@keyframes meteor-streak {
  0%, 86% { opacity: 0; transform: translate(0, 0) rotate(-32deg); }
  89%     { opacity: .9; }
  96%     { opacity: 0; transform: translate(-260px, 160px) rotate(-32deg); }
  100%    { opacity: 0; }
}

/* Text on the sky: paper by default, ink when the sun is up (.lit) */
.skyview { --sv-text: var(--text); --sv-text-2: oklch(0.8 0.006 95); --sv-text-3: oklch(0.68 0.01 95); --sv-accent: var(--brass-bright); }
.skyview.lit { --sv-text: oklch(0.2 0.01 95); --sv-text-2: oklch(0.3 0.012 95); --sv-text-3: oklch(0.38 0.015 95); --sv-accent: oklch(0.32 0.06 95); }
.skyview .kicker { color: var(--sv-accent); margin-bottom: var(--sp-3); }
.skyview h2.city-name {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--sv-text);
}
.skyview .country-line {
  font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sv-text-3); margin-top: var(--sp-3); font-weight: 500;
}
.clock-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4) var(--sp-7);
  margin-top: var(--sp-6);
}
.big-clock {
  font-weight: 300; font-stretch: 100%;
  font-size: clamp(34px, 4.6vw, 56px); letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--sv-text);
}
.big-clock .sec { font-size: .42em; color: var(--sv-accent); font-weight: 500; }
.big-clock .ampm {
  font-size: .3em; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sv-accent); margin-left: .5em;
}
.clock-meta { font-size: 12.5px; line-height: 2; color: var(--sv-text-2); letter-spacing: .04em; }
.clock-meta .phase-word { color: var(--sv-accent); text-transform: capitalize; font-weight: 600; }
.weather-line {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: baseline;
  margin-top: var(--sp-5); font-size: 12.5px; letter-spacing: .04em;
  color: var(--sv-text-2);
}
.weather-line .w-main { color: var(--sv-text); font-size: 15px; font-weight: 500; }
.weather-line .w-main .deg { font-size: 21px; font-weight: 600; }

/* ── Notices: the day's actionables, each one a door ── */
.notices {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4); align-items: center; min-height: 38px;
}
.notices-quiet {
  font-family: var(--display); font-style: italic; font-size: 14px;
  color: var(--text-3); letter-spacing: .01em; padding-left: 2px;
}
.notice-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 15px 9px 12px;
  font-size: 12px; letter-spacing: .04em; color: var(--text-2); font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.notice-chip .n-icon { color: var(--brass); font-size: 12px; }
.notice-chip .n-go { color: var(--text-3); transition: transform .2s, color .2s; }
.notice-chip:hover { border-color: var(--brass); color: var(--brass-bright); background: oklch(0.85 0.167 95 / .09); }
.notice-chip:hover .n-go { transform: translateX(3px); color: var(--brass-bright); }
.notice-chip.warn { border-color: oklch(0.66 0.19 30 / .6); }
.notice-chip.warn .n-icon { color: var(--alert); }
.notice-chip.warn:hover { border-color: var(--alert); color: var(--alert); background: oklch(0.66 0.19 30 / .08); }
.notice-chip.noct { border-color: oklch(0.72 0.1 285 / .55); }
.notice-chip.noct .n-icon { color: var(--nocturne); }
.notice-chip.noct:hover { border-color: var(--nocturne); color: var(--nocturne); background: oklch(0.72 0.1 285 / .08); }

/* ── Next-up echo: one line, one door ── */
#next-echo { margin-top: var(--sp-3); }
.next-echo {
  display: flex; align-items: baseline; gap: var(--sp-3); width: 100%;
  background: none; border: none; padding: 12px 2px; text-align: left;
  font-size: 12px; letter-spacing: .04em; color: var(--text-2);
  font-variant-numeric: tabular-nums; transition: color .2s;
}
.next-echo .ne-word {
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); flex: none;
}
.next-echo .ne-label { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-echo .ne-meta { color: var(--text-3); white-space: nowrap; }
.next-echo .ne-meta b { color: var(--brass-bright); font-weight: 600; }
.next-echo:hover .ne-label { color: var(--brass-bright); }

/* ── The timetable: a printed schedule, ruled like the almanac ── */
.tt-day {
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3); margin: var(--sp-6) 0 var(--sp-2);
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line);
}
.tt-day:first-of-type { margin-top: var(--sp-5); }
.tt-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: var(--sp-4); align-items: baseline; width: 100%;
  background: none; border: none; border-bottom: 1px dashed var(--line);
  padding: 11px 2px; text-align: left;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em;
  color: var(--text-2); font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s;
}
button.tt-row:hover { background: oklch(0.85 0.167 95 / .06); color: var(--text); }
.tt-time { color: var(--text); font-weight: 600; white-space: nowrap; }
.tt-glyph { color: var(--brass); margin-right: 9px; }
.tt-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-count { color: var(--text-3); white-space: nowrap; }
.tt-row.underway .tt-count, .tt-row.underway .tt-time { color: var(--brass-bright); }
.tt-underway { font-family: var(--display); font-style: italic; color: var(--brass-bright); margin-left: 8px; font-size: 13px; }
.tt-row.warn .tt-glyph, .tt-row.warn .tt-count { color: var(--alert); }
.tt-row.sun { color: var(--text-3); }
.tt-row.sun .tt-label { font-family: var(--display); font-style: italic; font-size: 14px; }
.tt-row.sun .tt-glyph { color: var(--azimuth); }

/* ── Tabs: the four dimensions — City · Map · Time · You ── */
.tabbar {
  display: flex; gap: var(--sp-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: var(--sp-1);
  position: sticky; top: calc(var(--topbar-h, 78px) - 1px); z-index: 30;
  box-shadow: 0 12px 30px -18px oklch(0 0 0 / .8);
}
.tabbar button {
  flex: 1;
  background: transparent; border: none; border-radius: 999px;
  color: var(--text-3); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 8px; position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  transition: color .2s, background .2s;
}
.tabbar button:hover { color: var(--text-2); }
.tabbar button.active {
  background: var(--surface-2);
  color: var(--brass-bright);
  box-shadow: inset 0 -2px 0 var(--brass);
}
.tab-icon { font-size: 13px; letter-spacing: 0; }
.tab-badge {
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--brass); color: var(--brass-ink); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; letter-spacing: 0;
}
.tab-badge[hidden] { display: none; }
.tab-badge.warn { background: var(--alert); color: oklch(0.15 0.02 30); }
#stage { padding-top: var(--sp-5); animation: fadeIn .3s ease both; min-height: 40vh; }

/* ── The venue board: the city as places ── */
.venue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-4);
}
.venue-card {
  position: relative; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: var(--sp-4) var(--sp-4) var(--sp-4); min-height: 104px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  transition: transform .2s, border-color .2s, background .2s;
}
.venue-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.venue-card .vc-glyph { color: var(--text-3); font-size: 15px; }
.venue-card .vc-name { font-family: var(--display); font-size: 18px; font-weight: 650; color: var(--text); }
.venue-card .vc-status {
  font-size: 11px; letter-spacing: .04em; color: var(--text-3);
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
.venue-card.warn { border-color: oklch(0.66 0.19 30 / .55); }
.venue-card.warn .vc-status { color: var(--alert); }
.venue-card.live .vc-status { color: var(--brass-bright); }
.venue-card.noct .vc-status { color: var(--nocturne); }
.venue-card.noct .vc-glyph { color: var(--nocturne); }
.venue-card .vc-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--brass); color: var(--brass-ink); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ── The quest strip: the daily contract as a posted bill ── */
.quest-strip {
  display: flex; align-items: center; gap: var(--sp-4);
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: oklch(0.85 0.167 95 / .08);
  padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-4);
}
.quest-strip.done { background: var(--surface); border-color: var(--line); }
.quest-strip .q-glyph { color: var(--brass); font-size: 16px; flex: none; }
.quest-strip .q-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.quest-strip .q-title {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass-bright);
}
.quest-strip.done .q-title { color: var(--text-2); }
.quest-strip .q-status { font-size: 11.5px; color: var(--text-2); letter-spacing: .03em; line-height: 1.5; }

/* ── Venue chrome: back door + the row of other doors ── */
.venue-head { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.v-back {
  background: none; border: none; padding: 15px 10px 15px 2px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; transition: color .2s;
}
.v-back:hover { color: var(--brass-bright); }
.venue-title {
  font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 650;
  margin: var(--sp-4) 0 var(--sp-5);
}

/* ── The world chart: a plate from the almanac ── */
.map-panel {
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--bg-deep); overflow: hidden;
}
.map-panel svg { display: block; width: 100%; height: auto; }
.mp-land {
  fill: oklch(0.2 0.006 95); stroke: oklch(0.3 0.012 95); stroke-width: .5;
}
.mp-grid { stroke: oklch(0.25 0.008 95); stroke-width: .6; }
.mp-grid.eq { stroke: oklch(0.32 0.014 95); stroke-dasharray: 2 4; }
.mp-dot { fill: oklch(0.62 0.05 95); pointer-events: none; }
.mp-dot.sel { fill: var(--brass-bright); }
.mp-hit { fill: transparent; pointer-events: none; }
.map-panel svg { cursor: pointer; }
.mp-sel {
  fill: none; stroke: var(--brass-bright); stroke-width: 1.2;
  animation: mp-pulse 2.4s ease-in-out infinite;
}
.mp-you { fill: var(--brass-bright); animation: mp-pulse 2.4s ease-in-out infinite; }
@keyframes mp-pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.mp-contract { fill: none; stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 3 3; }
.mp-route { stroke: var(--brass); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.map-legend {
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.map-legend .lg-you { background: var(--brass-bright); }
.map-legend .lg-city { background: oklch(0.55 0.04 95); }
.map-legend .lg-ct { background: transparent; border: 1.5px dashed var(--brass); }
.map-legend .lg-rt { background: transparent; border-top: 2px dashed var(--brass); border-radius: 0; height: 0; width: 14px; vertical-align: 3px; }

/* ── The sailing card under the chart ── */
#map-info { margin-top: var(--sp-3); min-height: 56px; }
.map-hint {
  font-family: var(--display); font-style: italic; font-size: 14px;
  color: var(--text-3); padding: var(--sp-3) 2px;
}
.map-card {
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4) var(--sp-5);
  animation: fadeIn .25s ease both;
}
.map-card .mi-head { display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; }
.map-card .mi-name { font-family: var(--display); font-size: 22px; font-weight: 650; }
.map-card .mi-meta {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.map-card .mi-facts {
  display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-2);
  font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums;
  align-items: center;
}
.map-card .mi-facts b { color: var(--brass-bright); font-weight: 600; }
.map-card .mi-modes { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }
.map-card .mi-note {
  font-family: var(--display); font-style: italic; font-size: 14px;
  color: var(--text-2); margin-top: var(--sp-2);
}

/* ── Subnav: the page's printed index tabs ── */
.subnav {
  display: flex; gap: var(--sp-1); flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  position: sticky; top: calc(var(--topbar-h, 78px) + 48px); z-index: 20;
  background: oklch(0.135 0.004 95 / .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.subnav button {
  background: transparent; border: none;
  color: var(--text-3); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 14px; position: relative; transition: color .2s;
}
.subnav button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.subnav button:hover { color: var(--text-2); }
.subnav button.active { color: var(--brass-bright); }
.subnav button.active::after { border-color: var(--brass); }
.tab-section { scroll-margin-top: 176px; }
.tab-section + .tab-section { margin-top: var(--sp-7); }

/* ── Busy panel: countdown & progress while the world carries you ── */
.busy-hero .busy-title {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.12;
  color: var(--sv-text, var(--text));
}
.busy-hero .busy-title .to { color: var(--sv-accent, var(--brass-bright)); font-style: italic; }
.busy-hero .mode-line {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--sv-text-3, var(--text-3)); margin-top: var(--sp-4); font-weight: 600;
}
.busy-panel { text-align: center; padding: var(--sp-5) 0 var(--sp-2); border-bottom: 1px solid var(--line); }
.transit-body { text-align: center; padding-top: var(--sp-5); }
.transit-body .eta-line { font-size: 13px; line-height: 2.1; color: var(--text-2); letter-spacing: .03em; }
.transit-body .eta-line b { color: var(--brass-bright); font-weight: 600; }

/* ── Toasts: word back from the world ── */
#toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; flex-direction: column; gap: var(--sp-2); max-width: min(420px, calc(100vw - 40px));
}
.toast {
  display: flex; gap: var(--sp-3); align-items: baseline;
  background: var(--surface-2); border: 1px solid oklch(0.66 0.19 30 / .55);
  border-radius: 16px; padding: 13px 16px; cursor: pointer;
  font-size: 12.5px; line-height: 1.55; letter-spacing: .02em; color: var(--text);
  box-shadow: 0 20px 50px -18px oklch(0 0 0 / .85);
  animation: toast-in .3s cubic-bezier(.2,.9,.3,1) both;
}
.toast .t-mark { color: var(--alert); flex: none; }
.toast.ok { border-color: var(--line-strong); }
.toast.ok .t-mark { color: var(--brass); }
.toast.bye { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Inline field validation ── */
input.field-bad, select.field-bad, textarea.field-bad {
  border-color: var(--alert) !important;
}
.field-note {
  font-family: var(--display); font-style: italic; font-size: 13px;
  color: var(--alert); letter-spacing: .01em; text-transform: none; font-weight: 400;
  margin-top: 4px; display: block;
}

/* ── Inline load errors ── */
.board-error { color: var(--text-2); }
.btn-retry {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text-2); font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; margin-left: var(--sp-3); transition: all .2s;
}
.btn-retry:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ── Small doors ── */
.btn-inline-link {
  background: none; border: none; padding: 0;
  font: inherit; font-style: inherit; color: var(--brass-bright);
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.btn-inline-link:hover { color: var(--brass); }
.btn-inline { padding: 8px 14px; font-size: 11px; }
.ct-flag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
  white-space: nowrap; vertical-align: 4px; margin-left: 2px;
}
.btn-reveal { margin-top: var(--sp-5); }
.retire-label {
  display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-bottom: var(--sp-2);
}
.btn-primary.danger { background: var(--alert); color: oklch(0.15 0.02 30); }
.btn-primary.danger:hover:not(:disabled) { background: oklch(0.72 0.2 30); box-shadow: 0 14px 34px -12px oklch(0.66 0.19 30 / .5); }
.va-label {
  display: flex; flex-direction: column; gap: var(--sp-2);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.va-label.grow { flex: 1.4; }

/* ── Sun track ── */
.sun-track { margin-top: var(--sp-2); }
.sun-track svg { width: 100%; height: 86px; display: block; overflow: visible; }
.sun-track .horizon { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 1 5; }
.sun-track .arc { stroke: oklch(0.78 0.07 230 / .6); stroke-width: 1.25; fill: none; }
.sun-track .sun-dot { fill: oklch(0.87 0.16 95); filter: drop-shadow(0 0 8px oklch(0.87 0.16 95 / .9)); }
.sun-track .sun-dot.below { fill: var(--nocturne); filter: drop-shadow(0 0 7px oklch(0.72 0.1 285 / .8)); }
.sun-times {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .16em; color: var(--text-3); text-transform: uppercase;
  margin-top: var(--sp-2); font-weight: 500;
}
.sun-times b { color: var(--azimuth); font-weight: 600; font-variant-numeric: tabular-nums; }

.flavor {
  font-family: var(--display); font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 400; line-height: 1.68; color: var(--text);
  max-width: 64ch; margin-top: var(--sp-6);
}
.flavor .phase-line { display: block; margin-top: var(--sp-4); font-style: italic; color: var(--brass-bright); }

/* ── Onboarding ── */
.onboard { padding-top: 8vh; }
.onboard h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(52px, 8.5vw, 104px); line-height: .98; letter-spacing: -0.015em;
  animation: fadeUp .9s ease both;
}
.onboard h1 em { font-style: italic; font-weight: 600; color: var(--brass-bright); }
.onboard .lede {
  font-family: var(--display);
  font-size: 17px; line-height: 1.75; color: var(--text-2);
  max-width: 58ch; margin: var(--sp-6) 0 var(--sp-2);
  animation: fadeUp .9s .12s ease both;
}
.onboard .lede b { color: var(--text); font-weight: 600; }
.name-row { margin: var(--sp-7) 0 var(--sp-3); animation: fadeUp .9s .2s ease both; }
.name-row label {
  display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-3); font-weight: 600;
}
input[type="text"] {
  font-family: var(--display); font-size: 32px; font-weight: 400;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text); padding: 4px 2px 10px; width: min(420px, 100%);
  outline: none; transition: border-color .3s;
}
input[type="text"]:focus { border-color: var(--brass); }
input[type="text"]::placeholder { color: var(--text-3); font-style: italic; }

.region-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 var(--sp-5); animation: fadeUp .9s .28s ease both; }
.region-tabs button {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); font-size: 11.5px; letter-spacing: .12em; font-weight: 500;
  padding: 10px 16px; border-radius: 999px;
  transition: all .2s;
}
.region-tabs button:hover { border-color: var(--line-strong); color: var(--text); }
.region-tabs button.active {
  background: var(--brass); border-color: var(--brass);
  color: var(--brass-ink); font-weight: 700;
}

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--sp-4); animation: fadeUp .9s .34s ease both; }
.city-card {
  text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: var(--sp-5) var(--sp-4) var(--sp-4); color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.city-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.city-card.selected {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass), 0 18px 40px -18px oklch(0.85 0.167 95 / .35);
}
.city-card .c-name { font-family: var(--display); font-size: 24px; font-weight: 650; }
.city-card .c-country { font-size: 11px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; margin-top: var(--sp-1); font-weight: 600; }
.city-card .c-tag { font-family: var(--display); font-style: italic; font-size: 14.5px; color: var(--text-2); margin-top: var(--sp-3); line-height: 1.5; }
.city-card .c-time {
  margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .06em; color: var(--brass-bright);
  display: flex; align-items: center; gap: var(--sp-2);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.phase-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.phase-dot.day   { background: oklch(0.87 0.16 95);  box-shadow: 0 0 8px oklch(0.87 0.16 95); }
.phase-dot.dawn  { background: oklch(0.78 0.13 45);  box-shadow: 0 0 8px oklch(0.78 0.13 45); }
.phase-dot.dusk  { background: oklch(0.68 0.15 35);  box-shadow: 0 0 8px oklch(0.68 0.15 35); }
.phase-dot.night { background: var(--nocturne); box-shadow: 0 0 8px var(--nocturne); }

.begin-row { margin-top: var(--sp-7); display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.btn-primary {
  background: var(--brass); color: var(--brass-ink); border: none; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  padding: 17px 40px; border-radius: 999px;
  transition: all .25s;
}
.btn-primary:hover:not(:disabled) { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 14px 34px -12px oklch(0.85 0.167 95 / .5); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.begin-hint { font-size: 14px; color: var(--text-3); font-style: italic; font-family: var(--display); }
.error-note { color: var(--alert); font-size: 12.5px; margin-top: var(--sp-4); letter-spacing: .04em; }

/* ── Spots & jobs ── */
.spot-list { margin-top: var(--sp-5); }
.hustle-col .col-title {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-4); font-weight: 700;
}
.spot-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4) var(--sp-4); margin-bottom: var(--sp-3);
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
  transition: border-color .25s;
}
.spot-card:hover { border-color: var(--line-strong); }
.spot-card .s-name { font-family: var(--display); font-size: 19px; font-weight: 650; }
.spot-card .s-type {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); margin-top: var(--sp-1); font-weight: 600;
}
.spot-card .s-hints { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: 6px; }
.hint-tag {
  font-family: var(--display); font-size: 12.5px; letter-spacing: .02em; color: var(--brass-bright);
  border: 1px dashed var(--line-strong); border-radius: 999px;
  padding: 3px 10px; font-style: italic;
}
.btn-spot {
  background: transparent; border: 1px solid var(--brass);
  color: var(--brass-bright); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; white-space: nowrap;
  transition: all .2s; font-variant-numeric: tabular-nums;
}
.btn-spot:hover:not(:disabled) { background: var(--brass); color: var(--brass-ink); }
.btn-spot:disabled { border-color: var(--line); color: var(--text-3); cursor: default; }

.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1); border-bottom: 1px solid var(--line);
}
.job-row .j-name { font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: .02em; }
.job-row .j-meta { font-size: 11px; color: var(--text-3); letter-spacing: .08em; margin-top: var(--sp-1); font-variant-numeric: tabular-nums; font-weight: 500; }
.job-row .j-pay { font-size: 14px; color: var(--brass-bright); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.job-row .j-blurb { font-family: var(--display); font-style: italic; font-size: 13.5px; color: var(--text-2); margin-top: var(--sp-1); line-height: 1.5; }
.btn-work {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap; transition: all .2s; font-weight: 600;
}
.btn-work:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-bright); }
.btn-work:disabled { border-color: var(--line); color: var(--text-3); cursor: default; }
.job-closed-note { font-size: 11px; color: var(--text-3); letter-spacing: .08em; font-style: italic; white-space: nowrap; }

/* ── Satchel: a ruled ledger. Fixed column geometry so every row's
      figures sit on the same vertical rules, like a printed table. ── */
.satchel-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 296px;
  gap: var(--sp-1) var(--sp-4);
  align-items: center; padding: var(--sp-3) var(--sp-1);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.i-main { min-width: 0; }
.i-name { color: var(--text); font-family: var(--display); font-size: 15.5px; }
.i-qty {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-3); letter-spacing: .06em; margin-left: var(--sp-2);
  white-space: nowrap; vertical-align: 1px;
}
.i-name .origin-tag {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 2px 8px; margin-left: var(--sp-2); white-space: nowrap;
  vertical-align: 2px; font-weight: 700;
}
.i-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; letter-spacing: .04em; }
.i-spoil { color: var(--alert); font-size: 11px; letter-spacing: .04em; font-weight: 500; }
.i-price {
  color: var(--brass-bright); font-weight: 600; text-align: right;
  font-size: 13.5px; white-space: nowrap;
}
.i-price small {
  display: block; color: var(--text-3); font-weight: 400;
  font-size: 11px; letter-spacing: .08em; margin-top: 2px;
}
.i-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }
.btn-sell {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; padding: 8px 11px; border-radius: 999px; transition: all .2s; font-weight: 600;
  white-space: nowrap;
}
.btn-sell:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-bright); }
.btn-sell:disabled { opacity: .4; cursor: default; }
.satchel-empty, .log-empty, .board-empty {
  font-family: var(--display); font-style: italic; color: var(--text-3);
  font-size: 15px; padding: var(--sp-5) var(--sp-1);
}

/* ── Departures ── */
.dest-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) minmax(96px, .8fr) minmax(70px, .6fr) 2.2fr;
  gap: var(--sp-3) var(--sp-5); align-items: center;
  padding: var(--sp-4) var(--sp-1);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.dest-row:hover { background: oklch(0.85 0.167 95 / .06); }
.dest-row .d-city { font-family: var(--display); font-size: 20px; font-weight: 650; }
.dest-row .d-city small {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-top: var(--sp-1); font-weight: 600;
}
.dest-row .d-time { font-size: 13px; color: var(--brass-bright); letter-spacing: .04em; display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; font-weight: 500; }
.dest-row .d-dist { font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; font-weight: 500; }
.dest-row .d-modes { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
.mode-chip {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 999px;
  font-size: 11px; letter-spacing: .03em; padding: 9px 12px;
  display: inline-flex; gap: var(--sp-2); align-items: baseline;
  transition: all .2s; font-variant-numeric: tabular-nums;
}
.mode-chip b { color: var(--text); font-weight: 600; }
.mode-chip .fare { color: var(--text-3); font-size: 11px; font-weight: 500; }
.mode-chip:hover { border-color: var(--brass); color: var(--brass-bright); background: oklch(0.85 0.167 95 / .1); transform: translateY(-1px); }
.mode-chip.cant { opacity: .4; cursor: not-allowed; }
.mode-chip.cant:hover { border-color: var(--line); color: var(--text-2); background: transparent; transform: none; }

/* ── Corkboard ── */
.composer {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4); margin: var(--sp-5) 0 var(--sp-6);
}
.composer textarea {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: var(--display); font-size: 16px; color: var(--text);
  resize: vertical; min-height: 58px; line-height: 1.55;
}
.composer textarea::placeholder { color: var(--text-3); font-style: italic; }
.composer .c-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line);
}
.composer .c-count { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .08em; font-weight: 500; }
.btn-post {
  background: var(--brass); border: none; color: var(--brass-ink); white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 999px; transition: all .2s;
}
.btn-post:hover:not(:disabled) { background: var(--brass-bright); }
.btn-post:disabled { opacity: .35; cursor: default; }

.post-note {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface);
  padding: var(--sp-4); margin-bottom: var(--sp-3);
}
.post-note.yours { background: var(--surface-2); border-color: var(--line-strong); }
.post-note .p-head {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-2); font-weight: 600;
}
.post-note .p-head .p-author { color: var(--brass-bright); }
.post-note.yours .p-head .p-author::before { content: "◆ "; color: var(--brass); }
.post-note .p-body { font-family: var(--display); font-size: 16px; line-height: 1.6; color: var(--text); overflow-wrap: break-word; }
.board-intro {
  font-family: var(--display); font-style: italic; font-size: 14px;
  color: var(--text-3); letter-spacing: .01em;
  margin: var(--sp-4) 0 var(--sp-2); line-height: 1.6;
}

/* ── Travel log ── */
.log { margin-top: var(--sp-8); }
.btn-open-board { margin-top: var(--sp-2); }
.log .post-note { margin-top: var(--sp-5); margin-bottom: var(--sp-4); }
.log .board-empty { padding-bottom: var(--sp-4); }
.log-row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-1); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.log-row .lr-route b { color: var(--text); font-weight: 600; }
.log-row .lr-when { color: var(--text-3); }

/* ── Ticket / overlay ── */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.05 0 0 / .8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-5);
  animation: fadeIn .25s ease both;
}
.ticket {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  max-width: 480px; width: 100%; padding: var(--sp-6) var(--sp-6) var(--sp-5);
  border-radius: 16px; position: relative;
  box-shadow: 0 40px 90px -30px oklch(0 0 0 / .8);
  animation: fadeUp .35s ease both;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
  top: 50%; transform: translateY(-50%);
}
.ticket::before { left: -10px; }
.ticket::after { right: -10px; }
.ticket .kicker { margin-bottom: var(--sp-4); }
.ticket .route { font-family: var(--display); font-size: 29px; font-weight: 700; line-height: 1.25; }
.ticket .route .via { color: var(--brass-bright); font-style: italic; }
.ticket dl {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-5) 0 var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
}
.ticket dt { color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; padding-top: 2px; font-weight: 600; }
.ticket dd { color: var(--text); font-variant-numeric: tabular-nums; }
.ticket .warn { font-family: var(--display); font-style: italic; font-size: 14px; color: var(--text-2); margin-bottom: var(--sp-5); line-height: 1.55; }
.ticket .actions { display: flex; gap: var(--sp-3); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px; transition: all .2s; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text); }

.find-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.find-row .f-name { font-family: var(--display); font-size: 17px; }
.find-row .f-val { color: var(--brass-bright); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.find-tier-4 .f-name { color: var(--brass-bright); }
.find-tier-4 .f-name::after { content: " ✦"; }
.find-row { animation: fadeUp .4s ease both; }
.fr-mark {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
  margin-top: 4px;
}
.fr-mark.ct { color: var(--brass-bright); }
.find-row.first-record .f-name { color: var(--brass-bright); }

/* ── The walk home: the reveal's coda ── */
.walk-divider {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  padding: var(--sp-4) 0 var(--sp-2); border-bottom: 1px solid var(--line-strong);
  animation: fadeUp .4s ease both; animation-delay: var(--reveal, 0ms);
}
.walk-row { border-bottom: none; }
.walk-row .f-name { font-size: 14.5px; line-height: 1.5; }
.walk-color .f-name, .walk-stranger .f-name { font-style: italic; color: var(--text-2); }
.walk-glyph { color: var(--text-3); margin-right: 8px; font-style: normal; }
.walk-row .seal { vertical-align: -3px; margin-right: 8px; }
.walk-trouble .f-name, .walk-choice .f-name { color: var(--text); }
.walk-trouble .walk-glyph { color: var(--nocturne); }

/* ── The focus screen: hands full, options away ── */
.focus {
  max-width: 760px; margin: 0 auto; padding-top: var(--sp-6);
  text-align: center;
}
.focus .skyview { margin-top: var(--sp-4); }
.focus .busy-title {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(34px, 5.5vw, 58px); line-height: 1.12;
  color: var(--sv-text, var(--text));
}
.focus .mode-line {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--sv-text-3, var(--text-3)); margin-top: var(--sp-4); font-weight: 600;
}
.focus .focus-clock {
  margin-top: var(--sp-5); font-size: 13px; letter-spacing: .04em;
  color: var(--sv-text-2, var(--text-2)); font-variant-numeric: tabular-nums;
}
.focus .focus-clock b { color: var(--sv-text, var(--text)); font-weight: 600; }
.focus .weather-line { justify-content: center; }
.focus .eta-line { margin-top: var(--sp-6); font-size: 13px; line-height: 2.1; color: var(--text-2); letter-spacing: .03em; }
.focus .eta-line b { color: var(--brass-bright); font-weight: 600; }
.focus .flavor { margin: var(--sp-7) auto 0; max-width: 52ch; }

/* ── The seal: an engraved mark, unique to the name ── */
.seal { flex: none; }
.seal circle, .seal line { stroke: var(--brass); stroke-width: 1.1; }
.seal text {
  fill: var(--text); font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: .5px;
}
.presence-chip.sealed { display: inline-flex; align-items: center; gap: 7px; }
.presence-chip.sealed::before { content: none; }
.presence-chip.sealed .seal circle, .presence-chip.sealed .seal line { stroke-width: 2; }
.presence-chip.sealed .seal text { font-size: 17px; }

/* ── The docket: while you were away ── */
.ticket.docket { max-width: 560px; }
.docket-row {
  display: flex; gap: var(--sp-3); align-items: baseline;
  padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line);
  animation: fadeUp .4s ease both;
}
.docket-row .dk-glyph { color: var(--brass); flex: none; width: 18px; text-align: center; }
.docket-row .dk-body {
  font-family: var(--display); font-size: 15px; line-height: 1.55; color: var(--text);
  flex: 1; min-width: 0;
}
.docket-row .dk-when {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; color: var(--text-3); margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.docket-row .dk-delta {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.docket-row .dk-delta.up { color: var(--coin); }
.docket-row .dk-delta.down { color: var(--alert); }

/* ── Traveller's notes ── */
.ticket.notes { max-width: 620px; max-height: 84vh; overflow-y: auto; }
.notes-body h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass); margin: var(--sp-5) 0 var(--sp-2);
  padding-bottom: var(--sp-1); border-bottom: 1px solid var(--line);
}
.notes-body p {
  font-family: var(--display); font-size: 14.5px; line-height: 1.7; color: var(--text-2);
}
.notes-body p b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ── The standings overlay ── */
.ticket.standings { max-width: 680px; max-height: 84vh; overflow-y: auto; }
.ticket.standings .lb-grid { margin-top: var(--sp-5); }
.lb-gap { text-align: center; color: var(--text-3); padding: 2px 0; letter-spacing: .3em; }
.focus-links { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ── The ledger-movement beat ── */
.cash-chip { position: relative; }
.cash-chip.pulse { animation: cash-pulse .8s ease; }
@keyframes cash-pulse {
  25% { filter: brightness(1.55); text-shadow: 0 0 14px currentColor; }
}
.cash-float {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  pointer-events: none; animation: cash-float 1.5s ease forwards;
}
.cash-float.up { color: var(--coin); }
.cash-float.down { color: var(--alert); }
@keyframes cash-float {
  0% { opacity: 0; transform: translate(-50%, 2px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ── The traveller's card at the top of You ── */
.you-head {
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  display: flex; gap: var(--sp-4); align-items: flex-start;
}
.you-head .yh-main { min-width: 0; flex: 1; }
.you-head > .seal { margin-top: 2px; }
.you-head .yh-name { font-family: var(--display); font-size: 24px; font-weight: 650; }
.you-head .yh-title { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.you-head .yh-rows {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3); font-size: 12px; letter-spacing: .04em;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.you-head .yh-item b { color: var(--brass-bright); font-weight: 600; }
.you-head .yh-item em { font-family: var(--display); font-style: italic; color: var(--text-3); }
.you-head .yh-item small { color: var(--text-3); margin-left: 5px; }

/* ── Arms: worn, wielded, and priced ── */
.arms-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 9px; margin-left: var(--sp-2); white-space: nowrap;
  vertical-align: 2px;
}
.arms-tag.on { color: var(--brass-ink); background: var(--brass); border-color: var(--brass); }

/* ── After Dark: the alleys, the scrap, the blotter ── */
.venue-card.closed { opacity: .45; cursor: default; }
.venue-card.closed:hover { transform: none; border-color: var(--line); background: var(--surface); }
.dark-sheet {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline;
  padding-top: var(--sp-5); font-size: 12.5px; letter-spacing: .04em;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.dark-sheet .dark-left { margin-left: auto; color: var(--nocturne); font-weight: 600; }
/* The Ring is lawful, all-hours ground — its counter wears the maker's
   metal, not the night's colour. */
.ring-sheet .dark-left { color: var(--brass); }
.pc-wanted { color: var(--alert); font-size: 12px; margin-left: 2px; }
.yh-wanted, .yh-wanted b { color: var(--alert) !important; }
.pc-duel {
  background: none; border: none;
  padding: 14px 12px; margin: -14px -10px -14px 0;
  font-size: 13px; color: var(--text-3); vertical-align: 1px;
  transition: color .2s;
}
.pc-duel:hover { color: var(--brass-bright); }

.focus.fight { max-width: 640px; }
.fight-hp {
  margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2);
  text-align: left;
}
.fh-row {
  display: grid; grid-template-columns: 130px 1fr 44px; gap: var(--sp-3);
  align-items: center; font-size: 12px; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.fh-name {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 11px;
  color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fh-num { text-align: right; color: var(--text-2); font-weight: 600; }
.fight-hp .fh-row:last-child .hp-bar i { background: var(--nocturne); }
.hp-bar {
  display: block; height: 8px; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface-2);
}
.hp-bar i {
  display: block; height: 100%; width: 100%; background: var(--brass);
  transform-origin: left; transition: transform .45s ease;
}
.fight-log {
  margin-top: var(--sp-5); max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: var(--sp-4) var(--sp-5); text-align: left;
}
.fight-log p {
  font-family: var(--display); font-size: 15px; line-height: 1.65;
  color: var(--text-2); margin: 0 0 var(--sp-2);
}
.fight-log p:last-child { margin-bottom: 0; color: var(--text); }
.fight-log p.fl-new { animation: fadeUp .35s ease both; }
.fight-outcome {
  margin-top: var(--sp-5); font-family: var(--display); font-style: italic;
  font-size: 17px; color: var(--brass-bright);
}
.fight-actions { display: flex; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-5); }

/* ── Journey progress & countdown ── */
.progress-wrap { max-width: 640px; margin: var(--sp-7) auto 0; }
.progress-cities {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--sp-3); font-weight: 600;
}
.progress-bar { height: 2px; background: var(--line); position: relative; overflow: visible; }
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, oklch(0.85 0.167 95 / .4), var(--brass-bright));
  transform-origin: left; transition: transform 1s linear;
}
.progress-vessel {
  position: absolute; top: 50%; transform: translate(-50%, -54%);
  font-size: 20px; transition: left 1s linear;
  filter: drop-shadow(0 0 10px oklch(0.85 0.167 95 / .7));
}
.countdown {
  font-weight: 200; font-stretch: 100%;
  font-size: clamp(44px, 7vw, 80px); letter-spacing: .04em;
  font-variant-numeric: tabular-nums; margin-top: var(--sp-7);
}
.countdown-label { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--text-3); margin-top: var(--sp-2); font-weight: 600; }

/* ── Footer strip ── */
.strip {
  margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.strip button {
  background: none; border: none; color: var(--text-3);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.strip button:hover { color: var(--text-2); }

/* ── Almanac notes: real-calendar events ── */
.event-chips { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-5); }
.event-chip {
  border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--surface-2);
  border-radius: 12px; padding: 11px 14px; font-size: 12px; color: var(--text-2);
  letter-spacing: .03em; line-height: 1.6;
}
.event-chip b { color: var(--brass-bright); font-weight: 600; }

/* ── Port of call: daily contract ── */
.ct-body { padding-top: var(--sp-5); }
.ct-line { font-family: var(--display); font-size: 17px; line-height: 1.65; color: var(--text); max-width: 60ch; }
.ct-line b { color: var(--brass-bright); font-weight: 600; }
.ct-status {
  margin-top: var(--sp-4); font-size: 12.5px; color: var(--text-2); letter-spacing: .03em;
  line-height: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.ct-status b { color: var(--text); font-weight: 600; }
.ct-done { color: var(--brass-bright); font-weight: 600; letter-spacing: .06em; }

/* ── Presence ── */
.presence-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-5); }
.presence-chip {
  font-family: var(--display); font-size: 14.5px; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 15px; background: var(--surface);
}
.presence-chip::before { content: "● "; color: var(--brass); font-size: 9px; vertical-align: 2px; }

/* ── Trading post ── */
.offer-composer .oc-grid {
  display: grid; grid-template-columns: 2fr .7fr 1fr auto;
  gap: var(--sp-4); align-items: end;
}
.offer-composer label {
  display: flex; flex-direction: column; gap: var(--sp-2);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.offer-composer select, .offer-composer input[type="number"] {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 10px; outline: none; width: 100%;
}
.offer-composer select:focus, .offer-composer input[type="number"]:focus { border-color: var(--brass); }
.offer-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 128px;
  gap: var(--sp-1) var(--sp-5);
  align-items: center; padding: var(--sp-3) var(--sp-1);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.offer-row.yours { background: oklch(0.85 0.167 95 / .05); }
.offer-row .o-local { display: block; color: var(--text-3); font-weight: 400; font-size: 11px; margin-top: 2px; }

/* ── Outfitter ── */
.tool-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1); border-bottom: 1px solid var(--line);
}
.tool-owned { font-size: 11px; color: var(--brass-bright); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

/* ── Traveller's ledger ── */
.ledger-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-5);
}
.stat-tile {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4);
}
.stat-tile .st-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.stat-tile .st-value {
  font-size: 21px; margin-top: var(--sp-2); color: var(--brass-bright);
  font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .01em;
}
.stat-tile .st-value.coin { color: var(--coin); }
.stat-tile .st-sub { font-size: 11px; color: var(--text-3); margin-top: var(--sp-1); letter-spacing: .04em; line-height: 1.6; }

/* ── Field Almanac ── */
.almanac-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-5);
}
.al-card {
  border: 1px dashed var(--line); border-radius: 16px;
  padding: var(--sp-4); background: transparent; min-height: 96px;
}
.al-card.found { border-style: solid; border-color: var(--line-strong); background: var(--surface); }
.al-card .al-name { font-family: var(--display); font-size: 16px; color: var(--text-3); font-style: italic; }
.al-card.found .al-name { color: var(--text); font-style: normal; }
.al-card.found.t4 .al-name { color: var(--brass-bright); }
.al-card.found.t4 .al-name::after { content: " ✦"; }

/* The metal ladder: tier pips wear their tier's metal (t3 stays brass). */
.al-card.t1 .al-tier { color: oklch(0.7 0.005 260); }
.al-card.t2 .al-tier { color: oklch(0.68 0.13 45); }
.al-card.t4 .al-tier { color: var(--brass-bright); text-shadow: 0 0 9px oklch(0.85 0.167 95 / .55); }
.al-tier { color: var(--brass); letter-spacing: .1em; }
.al-card .al-meta, .al-card .al-first {
  font-size: 11px; color: var(--text-3); margin-top: var(--sp-2);
  letter-spacing: .05em; line-height: 1.6;
}
.al-card.found .al-meta { color: var(--text-2); }
.al-card.sky .al-first { color: var(--azimuth); }

/* ── Engraved plates: Blender-rendered item art on discovered cards ── */
.al-card { position: relative; }
.al-card .al-art {
  position: absolute; top: 8px; right: 8px;
  width: 72px; height: 72px; object-fit: contain;
  filter: drop-shadow(0 6px 14px oklch(0 0 0 / .55));
  pointer-events: none;
}
.al-card:has(.al-art) { padding-right: 88px; min-height: 104px; }

/* Venue emblems on the city board */
.venue-card .vc-art {
  position: absolute; bottom: 8px; right: 8px;
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 4px 10px oklch(0 0 0 / .5));
  pointer-events: none; opacity: .95;
}
.venue-card.closed .vc-art { opacity: .3; }
.venue-card .vc-status { padding-right: 52px; }

/* Plates at the forage reveal — finds land one by one, each plate
   stamping in just after its row. */
.find-row { animation-delay: var(--reveal, 0ms); }
.find-row .fr-art {
  width: 48px; height: 48px; object-fit: contain;
  vertical-align: -17px; margin-right: 10px;
  filter: drop-shadow(0 4px 10px oklch(0 0 0 / .5));
  animation: plate-stamp .5s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: calc(var(--reveal, 0ms) + 200ms);
}
@keyframes plate-stamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(-7deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

/* ── Lodging & the night ── */
.event-chip.warn { border-color: oklch(0.66 0.19 30 / .55); background: oklch(0.66 0.19 30 / .08); }
.event-chip.warn b { color: var(--alert); }
.vault-chip small { letter-spacing: .18em; }
.lg-status { padding-top: var(--sp-5); font-family: var(--display); font-size: 15.5px; line-height: 1.6; }
.lg-ok { color: var(--text-2); }
.lg-warn { color: var(--alert); }
.lg-last {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--line-strong); border-radius: 16px;
  font-family: var(--display); font-style: italic; font-size: 14px; color: var(--text-2);
  display: flex; gap: var(--sp-3); align-items: baseline; line-height: 1.55;
}
.lg-nights-row {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-4); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
}
.lg-nights-row select {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 10px;
}
.lg-nights-row .note { text-transform: none; letter-spacing: .06em; font-weight: 400; }

/* ── Exchange: vault, terms, wire ── */
.vault-board { padding-top: var(--sp-5); }
.vault-figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.vault-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); align-items: center;
}
.vault-actions input[type="number"], .vault-actions input[type="text"] {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; outline: none; width: 160px;
  font-variant-numeric: tabular-nums;
}
.vault-actions input:focus { border-color: var(--brass); }

/* ── Prediction markets ── */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.mk-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); padding: var(--sp-4);
}
.mk-q { font-family: var(--display); font-size: 16.5px; line-height: 1.5; }
.mk-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-3); font-size: 11px; letter-spacing: .08em;
  color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500;
}
.mk-bar { height: 4px; border-radius: 999px; background: oklch(0.72 0.1 285 / .45); margin-top: var(--sp-3); overflow: hidden; }
.mk-bar-yes { height: 100%; background: var(--brass); }
.mk-pos { margin-top: var(--sp-3); font-size: 11px; letter-spacing: .08em; color: var(--brass-bright); font-variant-numeric: tabular-nums; }
.mk-bet { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); align-items: center; }
.mk-bet input {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px; outline: none; width: 90px;
  font-variant-numeric: tabular-nums;
}
.mk-bet input:focus { border-color: var(--brass); }
.btn-sell.yes { border-color: var(--brass); color: var(--brass-bright); }
.mk-resolved {
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-1); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.mk-resolved b { color: var(--text); }
.mk-outcome.yes { color: var(--brass-bright); font-weight: 700; letter-spacing: .1em; }
.mk-outcome.no { color: var(--nocturne); font-weight: 700; letter-spacing: .1em; }
.mk-void { color: var(--text-3); font-weight: 600; letter-spacing: .1em; }

/* ── Travel: regional departure pages ── */
.travel-regions { margin: var(--sp-5) 0 var(--sp-2); animation: none; }
.travel-regions button { padding: 8px 14px; font-size: 11px; }
.tr-count {
  display: inline-block; margin-left: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.travel-regions button.active .tr-count { color: var(--brass-ink); }

/* ── Mail composer ── */
.mail-grid { grid-template-columns: 1.6fr .9fr .7fr 1.2fr; margin-bottom: var(--sp-3); }
.offer-composer .mail-grid input[type="text"] {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; width: 100%;
}
.offer-composer .mail-grid input[type="text"]:focus { border-color: var(--brass); }
.composer .mk-pos { margin-top: var(--sp-2); }

/* ── Onward legs & delays ── */
.onward-note {
  margin-top: var(--sp-5); font-size: 12px; color: var(--text-2); letter-spacing: .04em;
  display: flex; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap;
}
.onward-note b { color: var(--brass-bright); }

/* ── Leaderboards & titles ── */
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-5); }
@media (max-width: 720px) { .lb-grid { grid-template-columns: 1fr; } }
.lb-you { background: oklch(0.85 0.167 95 / .09); }
.pc-title { color: var(--brass); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Mobile ── */
@media (max-width: 720px) {
  #app { padding: 0 16px 120px; }
  .topbar { padding: var(--sp-3) 16px var(--sp-3); margin: 0 -16px; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
  .wordmark { letter-spacing: .3em; font-size: 11px; }
  .topbar .utc { font-size: 11px; }
  .cash-chip { font-size: 12px; }
  .topbar-right { flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: flex-end; row-gap: 6px; align-items: center; flex: 1; }
  .menu-btn { padding: 7px 10px; }
  /* The bridge folds: compact hero band, then everything stacks. */
  .layout { display: block; margin-top: var(--sp-2); }
  .instruments { position: static; gap: var(--sp-2); }
  .hero-band { margin-top: var(--sp-3); }
  .hero-band .skyview { padding: var(--sp-4) var(--sp-4); }
  .hero-band .city-name { font-size: clamp(24px, 7vw, 30px); }
  .hero-band .country-line { display: none; }
  .hero-band .big-clock { font-size: clamp(22px, 6.5vw, 28px); }
  .hero-band .big-clock .sec { font-size: 12px; }
  .hero-band .big-clock .ampm { font-size: 11px; }
  .hero-band .clock-row { gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-2); }
  .hero-band .clock-meta { font-size: 11px; line-height: 1.7; }
  .hero-band .clock-meta [data-clock-date] { display: none; }
  .hero-band .weather-line { margin-top: var(--sp-2); }
  .hero-band .weather-line > span:not(.w-main) { display: none; }
  .hero-band .kicker { margin-bottom: var(--sp-1); font-size: 11px; letter-spacing: .3em; }
  .mini-tt { border-top: none; padding-top: 0; margin-top: var(--sp-1); }
  .mini-tt .tt-row.mini:nth-of-type(n+3) { display: none; } /* two appointments is plenty on a phone */
  .mini-tt-head { display: none; }
  .hero-band .busy-title { font-size: clamp(22px, 6.5vw, 28px); }
  .hero-band .countdown { font-size: clamp(28px, 9vw, 38px); }
  .instruments .notices { margin-top: var(--sp-3); }
  .onboard { padding-top: 5vh; }
  input[type="text"] { font-size: 26px; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    margin: 0; z-index: 40; gap: 0;
    background: oklch(0.15 0.005 95 / .96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: none; border-top: 1px solid var(--line);
    border-radius: 0; box-shadow: none; padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  /* Four dimensions leave room for generous targets and honest labels. */
  .tabbar button {
    flex-direction: column; gap: 4px; border-radius: 0;
    padding: 11px 2px 10px; font-size: 11px; letter-spacing: .08em;
  }
  .tabbar button.active { background: transparent; box-shadow: inset 0 2px 0 var(--brass); }
  .tab-icon { font-size: 17px; }
  .tab-badge { position: absolute; top: 5px; right: 24%; }
  #stage { padding-top: var(--sp-4); }

  /* The board is the point of the City page: it goes first on a phone.
     Quest keeps second billing; word-on-the-road and the flavor prose
     read after the day's doors. */
  .city-stack { display: flex; flex-direction: column; }
  .city-stack .venue-grid { order: -2; margin-top: var(--sp-3); }
  .city-stack .quest-strip { order: -1; margin-top: var(--sp-3); }
  .city-stack .event-chips { margin-top: var(--sp-4); }
  .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .venue-card { min-height: 96px; padding: var(--sp-3); }
  .venue-card .vc-name { font-size: 15.5px; }
  .venue-card .vc-art { width: 36px; height: 36px; bottom: 6px; right: 6px; opacity: .85; }
  .quest-strip { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); align-items: start; }
  .quest-strip .q-glyph { padding-top: 2px; }
  .quest-strip .btn-work, .quest-strip .btn-inline { grid-column: 2; justify-self: start; }
  .venue-title { margin: var(--sp-3) 0 var(--sp-4); }
  .venue-head { position: sticky; top: var(--topbar-h, 78px); z-index: 20;
    background: oklch(0.135 0.004 95 / .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    margin: 0 -16px; padding: 4px 16px; }
  .map-legend { gap: var(--sp-3); }
  .focus { padding-top: var(--sp-4); }
  .fh-row { grid-template-columns: 90px 1fr 40px; }
  .fight-log { max-height: 44vh; }
  .fight-actions { flex-wrap: wrap; }
  .fight-actions button { flex: 1; min-width: 100px; }
  .focus .busy-title { font-size: clamp(28px, 8.5vw, 38px); }

  .notices { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: var(--sp-4) -16px 0; padding: 0 16px; }
  .notices::-webkit-scrollbar { display: none; }
  .notice-chip { flex: none; }

  /* The section index stays pinned under the (wrapping) topbar — longest
     pages need it most. --topbar-h is measured by the client after render. */
  .subnav { position: sticky; top: var(--topbar-h, 78px); overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -16px; padding: 0 10px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav button { white-space: nowrap; padding: 13px 10px; }
  .tab-section { scroll-margin-top: calc(var(--topbar-h, 78px) + 52px); }
  .notice-chip { min-height: 44px; }

  .menu-panel { position: fixed; left: 16px; right: 16px; top: auto; min-width: 0; }
  #toasts { right: 12px; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: none; }

  .spot-card { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .btn-spot { width: 100%; padding: 13px; }
  .job-row { flex-direction: column; align-items: stretch; }
  .job-row > div:last-child { flex-direction: row !important; justify-content: space-between; align-items: center !important; }
  .satchel-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--sp-2); }
  .satchel-row .i-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .i-price small { display: inline; margin-left: 5px; }
  .dest-row { grid-template-columns: 1fr 1fr; }
  .dest-row .d-modes { grid-column: 1 / -1; justify-content: flex-start; }
  .dest-row .d-dist { text-align: right; }
  .ticket { padding: var(--sp-5) var(--sp-4); }
  .countdown { font-size: clamp(36px, 12vw, 56px); }
  .strip { margin-top: var(--sp-7); }
  .vault-figures { grid-template-columns: 1fr; }
  .vault-actions input[type="number"], .vault-actions input[type="text"] { width: 100%; }
  .vault-actions .va-label { width: 100%; }
  .vault-actions .btn-work { flex: 1; }
  .mk-grid { grid-template-columns: 1fr; }
  .offer-composer .oc-grid { grid-template-columns: 1fr 1fr; }
  .offer-composer .oc-grid > label:first-child { grid-column: 1 / -1; }
  .offer-composer .oc-grid > button { grid-column: 1 / -1; }
  .offer-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--sp-2); }
  .offer-row .i-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .board-head { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .board-head .note { text-align: left; }
  .tool-row { flex-direction: column; align-items: stretch; }
  .tool-row > div:last-child { flex-direction: row !important; justify-content: space-between; align-items: center !important; }
  .ledger-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .almanac-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
