:root {
  --bg: #f3efe6;
  --ink: #1b1914;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #d8d0c3;
  --accent: #0d5c4a;
  --accent-ink: #f7fffb;
  --hot: #8c3414;
  --chip: #fff;
  --shadow: 0 1px 0 rgba(27, 25, 20, 0.04);
  --sans: "Segoe UI", system-ui, sans-serif;
  --max: 40rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
}

a { color: var(--accent); }

a:hover { text-decoration-thickness: 2px; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { border-color: var(--accent); }

.nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 0;
  text-align: center;
}

.home-main h1 { margin-bottom: 2rem; }

.home-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  min-height: 64px;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.home-go:hover { background: #1d4e89; }

.home-soon {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tldr { margin: 0 0 0.35rem; font-size: 1.15rem; }

.hard {
  margin: 0 0 1.25rem;
  color: var(--hot);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.arrival-map-wrap {
  position: relative;
  margin: 0 0 1.25rem;
}

.arrival-map {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  isolation: isolate;
}

.arrival-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--card);
  font-family: var(--sans);
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  background: var(--card);
  color: var(--hot);
  font-weight: 750;
  text-align: center;
}

.map-fallback[hidden] { display: none; }

.map-key {
  position: absolute;
  z-index: 500;
  left: 0.55rem;
  bottom: 1.4rem;
  max-width: 13rem;
  margin: 0;
  padding: 0.4rem 0.55rem 0.4rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
}

.map-key[hidden] { display: none; }

.map-key li.is-quiet { color: var(--muted); }

.map-key li.is-hot { color: var(--hot); }

.leaflet-tooltip.map-tip {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.leaflet-tooltip.map-tip--quiet {
  color: var(--muted);
  border-color: var(--line);
  font-weight: 500;
}

.leaflet-tooltip.map-tip--hot {
  color: var(--hot);
  border-color: var(--hot);
}

.leaflet-tooltip.map-tip--note {
  color: var(--hot);
  border-color: var(--hot);
  border-radius: 12px;
  font-weight: 650;
  white-space: normal;
  max-width: 11rem;
}

.leaflet-control-attribution {
  background: var(--card);
  color: var(--muted);
  font-size: 0.65rem;
}

@media (min-width: 720px) {
  .arrival-map { height: 420px; }
}

.plan-line {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-stage {
  --tone: var(--line);
  --dot: var(--card);
  position: relative;
  padding: 0 0 0.35rem 2rem;
}

.plan-stage[data-tone] { --tone-on: var(--accent); }

.plan-stage.is-done,
.plan-stage.is-open { --tone: var(--tone-on); }

.plan-stage.is-done { --dot: var(--tone-on); }

.plan-stage[hidden] { display: none; }

/* The line runs from this dot down to the next one. */
.plan-stage::before {
  content: "";
  position: absolute;
  left: calc(0.6rem - 1px);
  top: 1.6rem;
  bottom: -0.95rem;
  width: 2px;
  background: var(--line);
}

.plan-stage.is-done::before { background: var(--tone-on); }

.plan-stage.is-last::before { display: none; }

/* 2.1 and 2.2 hang off step 2. The main rail keeps only guests, from, and send. */
.plan-legs {
  list-style: none;
  margin: 0.1rem 0 0.45rem;
  padding: 0.05rem 0 0.05rem 0.2rem;
}

.plan-legs .plan-stage {
  padding: 0 0 0.05rem 1.05rem;
}

.plan-legs .plan-stage::after {
  left: 0;
  top: 0.62rem;
  width: 0.55rem;
  height: 0.55rem;
}

.plan-legs .plan-stage.is-open::after {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--tone);
}

.plan-legs .plan-stage::before { display: none; }

.plan-legs .plan-stop {
  min-height: 0;
  padding: 0.28rem 0 0.15rem;
}

.plan-legs .plan-stop .plan-label {
  font-size: 0.92rem;
  font-weight: 650;
}

.plan-legs .plan-stop .plan-value { font-size: 0.82rem; }

.plan-stage::after {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.95rem;
  width: 1.1rem;
  height: 1.1rem;
  box-sizing: border-box;
  border: 2px solid var(--tone);
  border-radius: 50%;
  background: var(--dot);
}

.plan-stage.is-open::after { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--tone); }

.plan-stop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0 0.5rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.plan-stop .plan-label {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

.plan-stage.is-open .plan-stop .plan-label { color: var(--tone-on); }

.plan-stop .plan-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.5rem;
  font-size: 0.9rem;
}

.plan-stop .plan-value:empty { display: none; }

.plan-stop .plan-value span + span::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--line);
}

.plan-stage.is-open .plan-stop .plan-value { display: none; }

.plan-stop:disabled {
  cursor: default;
  opacity: 0.45;
}

.plan-stop:not(:disabled):hover .plan-label { text-decoration: underline; }

.step { margin: 0.1rem 0 0.6rem; }

.step[hidden] { display: none; }

.step.is-current {
  border-radius: 12px;
  padding: 0.75rem;
}

.step.is-current { background: #e7f6f3; }

#sendFace[hidden] { display: none; }

.wa-send {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 1rem 0 0.65rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: #128c7e;
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.wa-send:disabled { opacity: 0.45; cursor: default; }

.wa-send[hidden] { display: none; }

.hai-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hai-toggle {
  min-width: 64px;
  min-height: 52px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(27, 25, 20, 0.22);
  cursor: pointer;
}

.hai-dock.is-away .hai-toggle { background: var(--muted); }

.hai-panel {
  display: none;
  flex-direction: column;
  width: min(22rem, calc(100vw - 2rem));
  height: min(30rem, calc(100vh - 7rem));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(27, 25, 20, 0.18);
  overflow: hidden;
}

.hai-dock.is-open .hai-panel { display: flex; }

.hai-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.hai-reset {
  flex: none;
  min-height: 28px;
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.hai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #1d4e89;
  color: #fff;
}

.hai-dock.is-away .hai-head { background: var(--muted); }

.hai-status { font-size: 0.85rem; }

.hai-cal {
  margin-top: 0.55rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}

.hai-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.hai-cal-title { font-weight: 650; }

.hai-cal-nav,
.hai-guest {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.hai-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.hai-cal-wd {
  color: var(--muted);
  font-size: 0.72rem;
}

.hai-cal-day {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.hai-cal-day:disabled { color: var(--line); cursor: default; }
.hai-cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.hai-guests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.hai-guest { padding: 0 0.55rem; }

.hai-number {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.hai-way-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hai-google {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.hai-google[hidden], .hai-number[hidden], .account[hidden] { display: none; }

.account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

.account-name { font-weight: 650; }

.account-out {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.hai-number-row { display: flex; gap: 0.45rem; }

.hai-number-row[hidden],
.hai-number .hai-way-label[hidden],
.hai-number a[hidden] { display: none; }

.hai-number input {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.hai-number button,
.hai-number a {
  border: 0;
  border-radius: 12px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hai-number button:disabled { opacity: 0.45; cursor: default; }

.hai-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  overflow-y: auto;
}

.hai-msg {
  max-width: 85%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.95rem;
  white-space: pre-line;
}

.hai-msg.is-guest {
  align-self: flex-end;
  background: #e7f1fb;
}

.hai-msg.is-note {
  align-self: center;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.hai-next {
  padding: 0.35rem 0.6rem 0;
  border-top: 1px solid var(--line);
}

.hai-next-label {
  margin: 0.2rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.hai-msg.is-thinking { font-style: italic; }

.hai-msg.is-draft {
  border: 1px dashed var(--muted);
  background: none;
  color: var(--muted);
}

.hai-msg.is-hyperlu { background: #e9f6e9; }

.hai-who-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hai-roles {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem 0;
}

.hai-roles .hai-undo { margin-left: auto; }

.hai-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
}

.hai-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  resize: none;
}

.hai-send {
  min-width: 64px;
  border: 0;
  border-radius: 12px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.hai-send:disabled { background: var(--muted); cursor: default; }

.host-main { width: min(52rem, calc(100% - 2rem)); }

.host-h { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }

.host-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.host-card {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.host-card.is-open { border-left: 4px solid #8c3414; }

.host-card p { margin: 0.2rem 0; }

.host-meta { color: var(--muted); font-size: 0.9rem; }

.host-said { font-weight: 650; }

.host-plan {
  margin: 0.4rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.host-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.host-form textarea {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.host-form .wa-send { margin: 0; }

.wa-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.picker,
.block,
.company,
.shop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.picker { padding: 0.4rem 1rem 1rem; }

fieldset {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
}

legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.45rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-body p,
.company p,
.shop p { margin: 0 0 0.75rem; }

#sections { margin-top: 1rem; }

.block { margin-top: 0.6rem; }

.block summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.block summary::-webkit-details-marker { display: none; }

.block summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}

.block[open] summary::after { content: "–"; }

.block summary:hover { color: var(--accent); }

.block-body { padding: 0 1rem 0.4rem; white-space: pre-wrap; }

.company-list,
.shop-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.company,
.shop { padding: 0.85rem 0.9rem 0.2rem; }

.company h3,
.shop h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }

.is-prefer { border-color: var(--accent); }

.flag {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.routes,
.status { color: var(--muted); }

.status { font-weight: 700; color: var(--ink); }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
}

.text-link { font-weight: 700; }

.story {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.85;
}

.said-words { color: var(--ink); font-weight: 450; }

.said {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.now-ask {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.now-ask-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-toggle {
  flex: none;
  min-height: 32px;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.info-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.info-panel {
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
}

.info-warn {
  margin: 0 0 0.5rem;
  color: #8c3414;
  font-weight: 800;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.now-ask + .said {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.now-ask:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.now-ask-q {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.45;
}

.said button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.said-words {
  font-weight: 450;
  text-decoration: none;
}

.said button:hover .said-words { text-decoration: underline; text-underline-offset: 0.15em; }

.said-key { font-weight: inherit; }

.boats {
  margin: 0.7rem 0;
  font-size: 0.92rem;
}

.boats-note { margin: 0 0 0.4rem; }

.boats ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}

.boats .is-prefer { font-weight: 750; }

.because {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.choice:hover { border-color: var(--accent); }

.when {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.when-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.when-label {
  padding-left: 0.7rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.when-box {
  position: relative;
  display: flex;
  align-items: center;
}

.when input[data-when="date"] {
  width: 10.5rem;
  padding-right: 2.6rem;
}

.when input[data-when="time"] {
  width: 8.5rem;
  padding-right: 2.6rem;
}

.when input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 1px;
}

.when-open {
  position: absolute;
  right: 0.3rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.when-open:hover,
.when-open[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.cal {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 10;
  width: min(17.5rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(27, 25, 20, 0.16), 0 2px 6px rgba(27, 25, 20, 0.08);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cal-head strong { font-size: 1rem; }

.cal-nav {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover:not(:disabled) { background: var(--bg); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-wd {
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cal-day:disabled { color: var(--line); cursor: default; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 750; }

.cal-day.is-picked {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}

.clock-head {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.clock-head + .clock-grid { margin-bottom: 0.6rem; }
.clock-grid:last-child { margin-bottom: 0; }

.clock-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.clock-grid .cal-day {
  aspect-ratio: auto;
  height: 2.2rem;
}

.cal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.cal-link {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.cal-link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.when .choice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.when-away {
  color: var(--muted);
  font-weight: 650;
}

.when-input,
.when input {
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.choice-break {
  flex-basis: 100%;
  height: 0;
}

.choice.is-later { font-weight: 750; }

.choice.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.story-block .choices { margin-top: 0.75rem; }

.plan-print { gap: 0.9rem; }

.foot {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  main { width: min(var(--max), calc(100% - 1.25rem)); }
}

body.is-chat {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.is-chat .top {
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0.3rem 0.7rem 0.25rem;
}

body.is-chat .brand {
  font-size: 0.92rem;
  line-height: 1.15;
}

body.is-chat .nav { gap: 0.3rem; }

body.is-chat .nav a,
body.is-chat .nav-chip {
  min-height: 32px;
  padding: 0.05rem 0.6rem;
  font-size: 0.88rem;
}

body.is-chat .hai-head { padding: 0.28rem 0.65rem; }

body.is-chat .hai-thread { padding: 0.4rem 0.55rem; gap: 0.35rem; }

body.is-chat .hai-form { padding: 0.35rem 0.45rem; }

body.is-chat .hai-msg { padding: 0.4rem 0.6rem; }

body.is-chat .ref-block > summary {
  min-height: 34px;
  padding: 0.3rem 0.7rem;
}

body.is-chat .hai-google { display: none !important; }

.hai-sign {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  margin-right: 0.45rem;
}

.hai-who { font-size: 0.78rem; }

.hai-signin { display: flex; transform: scale(0.92); transform-origin: right center; }

.hard-line {
  margin: 0;
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
}

.nav-chip {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-chip[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.arrival-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.chat-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--card);
}

#chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hai-page {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  width: auto;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.hai-page .hai-thread { flex: 1; }

.hai-text { display: block; white-space: pre-line; }

.ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.ask-when input {
  min-height: 44px;
  width: 8.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.choice:disabled {
  opacity: 0.55;
  cursor: default;
}

.choice.is-send {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
  font-weight: 750;
}

.ref-block {
  flex: none;
  max-height: 32vh;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.ref-block > summary {
  min-height: 44px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 750;
}

.ref-block .block { margin: 0 1rem 0.75rem; }

.arrival-map-wrap,
.plan-sheet { display: none; }

.arrival-shell.is-map .arrival-map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

body.is-chat .arrival-map {
  flex: 1;
  height: auto;
  min-height: 180px;
  border-radius: 0;
  border-width: 0 0 1px;
}

.arrival-shell.is-plan .plan-sheet {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.85rem 1rem 1.2rem;
  background: var(--bg);
  overflow: auto;
}

.plan-sheet h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.plan-sheet ol {
  margin: 0;
  padding-left: 1.15rem;
}

.plan-empty { color: var(--muted); list-style: none; margin-left: -1.15rem; }

@media (max-width: 959px) {
  .arrival-shell.is-map { grid-template-rows: minmax(180px, 36vh) minmax(0, 1fr); }
  .arrival-shell.is-plan .plan-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    max-height: 55vh;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(27, 25, 20, 0.12);
  }
}

@media (min-width: 960px) {
  .arrival-shell.is-map.is-plan { grid-template-columns: minmax(220px, 28vw) minmax(0, 1fr) minmax(200px, 24vw); }
  .arrival-shell.is-map:not(.is-plan) { grid-template-columns: minmax(220px, 28vw) minmax(0, 1fr); }
  .arrival-shell.is-plan:not(.is-map) { grid-template-columns: minmax(0, 1fr) minmax(200px, 24vw); }
  body.is-chat .arrival-map { border-width: 0 1px 0 0; }
  .plan-sheet { border-left: 1px solid var(--line); }
}

@media print {
  .top, .tldr, .arrival-map-wrap, .plan-stop, #sections, .foot,
  .wa-send, .wa-hint, .hai-dock, .nav-chip, .ref-block, .hai-form { display: none !important; }
  .plan-stage { padding: 0; }
  .plan-stage::before, .plan-stage::after { display: none; }
  body { background: #fff; }
  .step.is-current { padding: 0; background: none !important; }
  .said-words { text-decoration: none; }
}
