/* Ann Tracker · refined theme */
:root {
  --bg: #f4f2ee;
  --card: #ffffff;
  --ink: #15191f;
  --ink-2: #3a414b;
  --muted: #6d737c;
  --line: #e7e3dc;
  --line-strong: #cfc9bf;
  --track: #ebe7e0;
  --navy: #14213d;
  --accent: #a8823a;        /* brass */
  --accent-soft: #f3ecdf;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --bad: #b3261e;
  --info: #2b5a8a;
  --shadow: 0 1px 2px rgba(20, 25, 31, .04), 0 8px 24px rgba(20, 25, 31, .05);
  --radius: 14px;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f15;
    --card: #141a22;
    --ink: #ece9e3;
    --ink-2: #c9c5bd;
    --muted: #8e949c;
    --line: #232b36;
    --line-strong: #36404d;
    --track: #232b36;
    --navy: #0b0f15;
    --accent: #cfa65a;
    --accent-soft: #2a2418;
    --ok: #5cb883;
    --warn: #e0a54a;
    --bad: #e5675d;
    --info: #7aa7d6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.ic.sm { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: var(--navy);
  color: #f4f1ea;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(207, 166, 90, .55); color: #d9b46a;
}
.brand-mark .ic { width: 20px; height: 20px; }
.brand-text { min-width: 0; }
.wordmark { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #d9b46a; }
h1 { margin: 1px 0 0; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, .16); color: #e9e5dc;
}
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #5cd18c; box-shadow: 0 0 0 0 rgba(92, 209, 140, .6); animation: pulse 2s infinite; }
.live.err .dot { background: #e0a54a; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(92, 209, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 209, 140, 0); } }

/* ---------- layout ---------- */
main { position: relative; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px 8px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px; margin: 0 0 14px; border: 1px solid var(--line); min-width: 0; max-width: 100%;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
main > .card:nth-child(2) { animation-delay: .06s; } main > .card:nth-child(3) { animation-delay: .12s; }
main > .card:nth-child(4) { animation-delay: .18s; } main > .card:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
h3 .ic { color: var(--accent); }
.label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.label .ic { color: var(--accent); }
.label .norm { text-transform: none; letter-spacing: 0; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--track); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 11%, transparent); color: var(--bad); }
.pill.info { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }

/* ---------- next change (compact tracker) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 2px; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 6px; height: 2px; background: var(--track); }
.steps .prog { position: absolute; left: 12.5%; top: 6px; height: 2px; background: var(--ink); transition: width 1s linear; }
.step { position: relative; text-align: center; min-width: 0; padding: 0 2px; }
.step .sd { display: block; width: 14px; height: 14px; margin: 0 auto 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); position: relative; z-index: 1; }
.step.done .sd { background: var(--ink); border-color: var(--ink); }
.step.next .sd { border-color: var(--accent); background: var(--accent); animation: ping 2s infinite; }
.step em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step em .hcx { font-family: var(--mono); letter-spacing: 0; color: var(--ink-2); }
.step b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; margin-top: 2px; }
.step b.late { color: var(--bad); } .step b.ontime { color: var(--ok); }
.step small { display: block; font-size: 11px; color: var(--muted); }
.step small s { margin-right: 3px; }
.step .plc { display: inline-block; margin-top: 4px; font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); }
.step .plc.chg { border-color: var(--bad); color: var(--bad); }
.nc-facts { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }
.nc-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.nc-facts li .ic { color: var(--accent); }
.nc-facts li.bad .ic, .nc-facts li.bad b { color: var(--bad); }
.nc-facts li.warn .ic, .nc-facts li.warn b { color: var(--warn); }
.nc-facts li.ok .ic { color: var(--ok); }
.nc-facts li span { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.nc-facts li > b { font-family: var(--serif); font-weight: 500; font-size: 17px; white-space: nowrap; }
.buffer { grid-column: 2 / 4; position: relative; height: 5px; border-radius: 5px; background: var(--track); overflow: hidden; margin-top: -2px; }
.buffer i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; transition: width 1s ease, background .3s; }

/* ---------- hero ---------- */
.eyebrow { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.18; letter-spacing: -.01em; }
.sub { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.sub b { color: var(--ink); font-weight: 600; }

.route { position: relative; margin: 26px 4px 18px; }
.track { position: relative; height: 4px; border-radius: 4px; background: var(--track); }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--ink); transition: width 1s linear; overflow: hidden; }
.track-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: sheen 2.8s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.track-stops span { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line-strong); }
.track-stops span.done { border-color: var(--ink); background: var(--ink); }
.track-stops span.key { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-width: 2px; }
.track-stops em { position: absolute; top: -22px; transform: translateX(-50%); font: 500 10.5px var(--mono); color: var(--muted); white-space: nowrap; letter-spacing: .04em; }
.track-stops em.l { transform: none; left: -4px; }
.track-stops em.r { transform: translateX(-100%); left: 8px; }
.train-mark {
  position: absolute; top: 50%; left: 0; width: 28px; height: 28px; margin-top: -14px;
  transform: translateX(-50%); transition: left 1s linear;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.train-mark .ic { width: 16px; height: 16px; stroke-width: 2; }
.train-mark .halo { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: halo 2s ease-out infinite; }
.train-mark.still .halo { animation: none; opacity: 0; }
@keyframes halo { from { transform: scale(1); opacity: .7; } to { transform: scale(2.1); opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 -16px -18px; }
.stat { padding: 12px 10px; text-align: center; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(3n) { border-right: 0; }
.stat:nth-last-child(-n+3) { border-bottom: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.bad b { color: var(--bad); }

/* ---------- ETA ---------- */
.eta-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.eta-main { min-width: 0; }
.big { margin: 6px 0 2px; font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.eta p.muted { margin: 6px 0 0; font-size: 12.5px; }
.countdown { flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--accent) var(--pct, 0%), var(--track) 0); transition: --pct 1s; }
.countdown::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.countdown > * { position: relative; }
.cd-num { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; }
.cd-unit { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.journey-bar { position: relative; height: 6px; border-radius: 6px; background: var(--track); margin: 18px 0 10px; }
.jb-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--ink), var(--accent)); transition: width 1s linear; }
.jb-ann { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; transform: translateX(-50%); border-radius: 50%; background: var(--card); border: 3px solid var(--accent); transition: left 1s linear; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } }
.eta p.small { margin: 0; }

/* ---------- connection ---------- */
.conn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 0; align-items: stretch; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; }
.conn-box { padding: 12px 10px; text-align: center; min-width: 0; }
.conn-box .t { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; margin: 2px 0; }
.conn-box .s { font-size: 11px; color: var(--muted); font-weight: 500; }
.conn-box .s:first-child { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.conn-box .pl { display: inline-block; margin-top: 6px; font: 500 11.5px var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink); }
.conn-arrow { display: grid; place-items: center; color: var(--accent); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.conn-arrow .ic { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }
.verdict { border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 13.5px; border-left: 3px solid; overflow-wrap: anywhere; }
.verdict b.v { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.verdict.ok { background: color-mix(in srgb, var(--ok) 7%, transparent); border-color: var(--ok); }
.verdict.warn { background: color-mix(in srgb, var(--warn) 8%, transparent); border-color: var(--warn); }
.verdict.bad { background: color-mix(in srgb, var(--bad) 7%, transparent); border-color: var(--bad); }
.verdict.info { background: color-mix(in srgb, var(--info) 7%, transparent); border-color: var(--info); }
.verdict.ok b.v { color: var(--ok); } .verdict.warn b.v { color: var(--warn); } .verdict.bad b.v { color: var(--bad); } .verdict.info b.v { color: var(--info); }
.gauge { position: relative; height: 6px; border-radius: 6px; margin: 10px 0 6px; background: linear-gradient(90deg, var(--bad) 0 25%, var(--warn) 25% 40%, var(--ok) 40%); opacity: .85; }
.gauge i { position: absolute; top: -5px; width: 3px; height: 16px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); transition: left .8s ease; box-shadow: 0 0 0 2px var(--card); }
.gauge-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.other-train { display: flex; gap: 8px; font-size: 13px; margin: 12px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.other-train .ic { color: var(--accent); margin-top: 1px; }
.plan-pick { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); padding: 10px 4px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--card); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 50%; } .timeline li:last-child::before { bottom: 50%; }
.timeline li.done::before { background: var(--ink); }
.timeline .dotc { position: relative; z-index: 1; align-self: center; justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); }
.timeline li.done .dotc { background: var(--ink); border-color: var(--ink); }
.timeline li.key .dotc { width: 14px; height: 14px; }
.timeline li.here .dotc { border-color: var(--accent); background: var(--accent); animation: ping 2s infinite; }
.timeline .nm { min-width: 0; }
.timeline .nm b { display: block; font-size: 14.5px; font-weight: 600; }
.timeline .nm small { color: var(--muted); font-size: 12px; }
.timeline .tm { text-align: right; white-space: nowrap; }
.timeline .tm b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.timeline .tm s { color: var(--muted); font-size: 12px; }
.timeline .tm small { font-size: 11px; }
.timeline .late { color: var(--bad); } .timeline .early, .timeline .ontime { color: var(--ok); }
.timeline li.train-here { grid-template-columns: 20px minmax(0, 1fr); padding: 4px 0; }
.timeline li.train-here::before { background: linear-gradient(var(--ink) 50%, var(--line) 50%); }
.timeline li.train-here .tt { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.timeline li.train-here .tt .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.timeline li.train-here .tx { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.timeline li.change { grid-template-columns: 20px minmax(0, 1fr); }
.timeline li.change .cx { font-size: 13px; background: var(--accent-soft); border-radius: 10px; padding: 9px 12px; overflow-wrap: anywhere; }
.timeline li.change .ci { position: relative; z-index: 1; justify-self: center; align-self: center; color: var(--accent); background: var(--card); padding: 2px 0; }
.timeline .leg-head { grid-template-columns: minmax(0, 1fr); padding: 12px 0 4px; }
.timeline .leg-head:first-child { padding-top: 0; }
.timeline .leg-head::before { display: none; }
.timeline .leg-head span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- map ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
#map { height: 300px; border-radius: 10px; overflow: hidden; background: var(--track); z-index: 0; border: 1px solid var(--line); }
.map-card p { margin: 10px 0 0; }
.ann-marker { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ann-marker .ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: halo 2s ease-out infinite; }
.other-marker { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--info); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip { font-size: 12px; }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
}

/* ---------- weather ---------- */
.weather { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.wx { padding: 14px 10px; text-align: center; min-width: 0; }
.wx + .wx { border-left: 1px solid var(--line); }
.wx .i { display: inline-block; color: var(--accent); animation: float 4s ease-in-out infinite; }
.wx .i .ic { width: 30px; height: 30px; stroke-width: 1.5; }
@keyframes float { 50% { transform: translateY(-3px); } }
.wx b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 2px 0; }
.wx span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx span.where { color: var(--ink-2); font-weight: 600; margin-top: 2px; }

/* ---------- trains ---------- */
.train-card h3 { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); flex-wrap: wrap; font-weight: 600; }
.hc { font: 500 12.5px var(--mono); background: var(--ink); color: var(--card); padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.facs span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--ink-2); }
.facs .ic { width: 13px; height: 13px; color: var(--accent); }
.coaches { display: flex; gap: 3px; margin: 14px 0 0; }
.coaches i { flex: 1 1 0; max-width: 32px; height: 10px; border-radius: 2px; background: var(--line-strong); }
.coaches i:first-child { border-radius: 6px 2px 2px 6px; background: var(--ink); }
.coaches i:last-child { border-radius: 2px 6px 6px 2px; background: var(--ink); }
.ext { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

/* ---------- summary ---------- */
#summary p { margin: 0 0 10px; font-size: 14px; }
#summary ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
#summary li { margin-bottom: 6px; }
#summary li::marker { color: var(--accent); }

footer { text-align: center; padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); }
footer p { margin: 4px 0; }

/* ---------- arrival celebration ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 6px; height: 12px; border-radius: 1px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (min-width: 420px) {
  .status { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
