:root {
  --bg: #0b0e14;
  --panel: #141925;
  --panel-2: #1b2230;
  --line: #273043;
  --text: #e6e9f0;
  --muted: #8b95a7;
  --accent: #00b8d4;
  --soon: #ffb020;
  --rt: #2fd47a;
  --late: #ff5d5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.topbar h1 a {
  color: inherit;
  text-decoration: none;
}
.topbar h1 span {
  color: var(--accent);
}

/* Dashboard / Events tabs. nav hugs the title; controls (if any) sit right. */
.nav {
  display: flex;
  gap: 6px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--text);
  border-color: var(--line);
}
.nav a.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nb-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
#nb-select {
  appearance: none;
  background: var(--panel-2)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238b95a7' stroke-width='1.5'/></svg>")
    no-repeat right 12px center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#nb-select:hover {
  border-color: var(--accent);
}
#nb-select:focus {
  outline: none;
  border-color: var(--accent);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rt);
  box-shadow: 0 0 0 0 rgba(47, 212, 122, 0.6);
  animation: pulse 2s infinite;
}
.status .dot.stale {
  background: var(--late);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 212, 122, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 212, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 212, 122, 0);
  }
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
}

/* Single-neighborhood view: one centered card. */
.board.single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.neighborhood {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.neighborhood > h2 {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.port {
  padding: 6px 18px 14px;
}
.port h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 14px 0 8px;
}

.dep {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.dep:first-of-type {
  border-top: none;
}

.route-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.12s ease;
}
a.route-chip:hover {
  filter: brightness(1.12);
  text-decoration: underline;
}

.dest {
  min-width: 0;
}
.dest .head {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dest .meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.badge.rt {
  color: var(--rt);
}
.badge.late {
  color: var(--late);
}
.badge.early {
  color: var(--accent);
}
.badge .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.when {
  text-align: right;
}
.when .mins {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.when .mins.soon {
  color: var(--soon);
}
.when .unit {
  font-size: 11px;
  color: var(--muted);
}
.when .clock {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0 4px;
}

/* Collapsible card sections (Ferry / Subway) */
.card-section + .card-section {
  border-top: 1px solid var(--line);
}
.card-section.collapsed .section-body {
  display: none;
}

/* Section title doubles as the collapse toggle */
.section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  margin: 4px 18px 0;
  padding: 12px 0 4px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}
.section-title:hover {
  color: var(--text);
}
.section-title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Down-pointing triangle that rotates to point right when collapsed */
.chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.card-section.collapsed .chevron {
  transform: rotate(-90deg);
}

/* Subway line bullet (circular for letters/numbers) */
.bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.station {
  padding: 4px 18px 12px;
}
.station-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 6px;
}
.station-name {
  font-size: 14px;
  font-weight: 600;
}
.station-lines {
  display: flex;
  gap: 4px;
}
.station-lines .bullet {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.arr {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.arr .dir {
  font-size: 13px;
  color: var(--text);
}
.arr .eta {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.arr .eta.soon {
  color: var(--soon);
}

/* Service alerts */
.alerts {
  margin: 6px 18px 16px;
}
.alerts-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--late);
  margin-bottom: 8px;
}
.alert {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.alert-lines {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  align-content: flex-start;
}
.alert-lines .bullet {
  width: 18px;
  height: 18px;
  font-size: 10px;
}
.alert-text {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.35;
}
.alerts-clear {
  margin: 6px 18px 16px;
  font-size: 12.5px;
  color: var(--rt);
}

/* -- events tile ------------------------------------------------------- */

.events-tile {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.events-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.events-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.events-count {
  font-size: 12px;
  color: var(--muted);
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #04222a;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  transition: opacity 0.15s ease;
}
.events-list.loading {
  opacity: 0.5;
}

.ev {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto; /* never shrink to fit the scroll container's
                               max-height — let the list scroll instead */
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.12s ease,
    transform 0.12s ease;
}
.ev:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ev-img {
  flex: 0 0 88px; /* fixed width; never grow or shrink */
  align-self: stretch; /* match the card's (body-defined) height */
  background-size: cover;
  background-position: center;
  background-color: var(--panel-2);
}
.ev-img-none {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.5;
}

.ev-body {
  flex: 1 1 auto;
  min-width: 0; /* let children truncate instead of overflow */
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-when {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* wrap rather than blow out the row */
  gap: 4px 6px;
  min-width: 0;
}
.ev-date {
  color: var(--accent);
  font-weight: 700;
}
.ev-free {
  color: var(--rt);
  font-weight: 700;
  border: 1px solid var(--rt);
  border-radius: 5px;
  padding: 0 5px;
  font-size: 10.5px;
  flex: 0 0 auto;
}
.ev-cost {
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* long "Included with admission…" strings clip */
}
.ev-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere; /* wrap long words; never overflow the card */
  color: inherit;
  text-decoration: none;
}
.ev-title:hover {
  color: var(--accent);
}
.ev-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ev-cat {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--panel-2);
  border-radius: 5px;
  padding: 1px 6px;
}
.ev-meta {
  display: flex;
  align-items: flex-start; /* so an open menu grows down, not recenters */
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.ev-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto; /* hug the right even when there's no venue */
}
.ev-venue {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ev-source {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
}
.ev-source:hover {
  text-decoration: underline;
  opacity: 1;
}

/* "via multiple sources" — a tap-to-open disclosure listing each feed's link. */
.ev-srcs {
  flex: 0 0 auto;
}
.ev-source-multi {
  cursor: pointer;
  list-style: none; /* drop the default ▸ triangle */
  user-select: none;
}
.ev-source-multi::-webkit-details-marker {
  display: none;
}
.ev-source-multi::after {
  content: " ▾";
  font-size: 9px;
  vertical-align: middle;
}
details[open] .ev-source-multi::after {
  content: " ▴";
}
.ev-srcs-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-top: 6px;
}
.ev-srcs-menu a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ev-srcs-menu a:hover {
  text-decoration: underline;
}

/* "Add to calendar" — a tap-to-open disclosure (Google Calendar / .ics). */
.ev-cal {
  flex: 0 0 auto;
}
.ev-cal-btn {
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.85;
}
.ev-cal-btn::-webkit-details-marker {
  display: none;
}
.ev-cal-btn:hover {
  opacity: 1;
}
details.ev-cal[open] .ev-cal-btn {
  opacity: 1;
}
.ev-cal-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-top: 6px;
}
.ev-cal-menu a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ev-cal-menu a:hover {
  text-decoration: underline;
}

/* "See all →" link on the dashboard teaser tile. */
.events-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.events-more:hover {
  text-decoration: underline;
}

/* -- full events page ---------------------------------------------------- */

.events-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-search {
  display: flex;
}
.filter-search input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  background: var(--panel-2)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b95a7' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>")
    no-repeat 12px center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 36px;
  font-size: 14px;
  font-family: inherit;
}
.filter-search input[type="search"]::placeholder {
  color: var(--muted);
}
.filter-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-label {
  flex: 0 0 84px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
}
.filter-group .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}

.custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  margin-left: 84px;
}
.custom-range[hidden] {
  display: none;
}
.custom-sep {
  color: var(--muted);
  font-size: 12px;
}
.custom-range input[type="date"] {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  color-scheme: dark;
}
.custom-range input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
}

.ev-results-wrap {
  position: relative;
  min-height: 140px;
}
.ev-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ev-results.loading {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Loading overlay: spinner near the top of the results area (where the user is
   after touching the filters), visible over the empty list on first paint. */
.ev-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  z-index: 2;
}
.ev-loading[hidden] {
  display: none;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }
}
.ev-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ev-day-head {
  position: sticky;
  top: 64px; /* clear the sticky topbar while scrolling */
  z-index: 1;
  margin: 0;
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(var(--bg) 70%, transparent);
  letter-spacing: 0.2px;
}
.ev-day-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.ev-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.foot .build {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

/* -- Plan page (recommended itinerary of options, SIL-89 UI) ------------- */
.plan-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.plan-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.plan-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s ease;
}
.plan-btn:hover {
  border-color: var(--accent);
}
.plan-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.plan-regen {
  flex: 0 0 auto;
}
.plan-ask {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.plan-ask input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
}
.plan-ask input[type="search"]::placeholder {
  color: var(--muted);
}
.plan-ask input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}
#persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.plan-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.plan-intro:empty {
  display: none;
}
.plan-results-wrap {
  position: relative;
  min-height: 160px;
}
/* Plan's loading overlay (SIL-98): no spinner — just the rotating
   scavenger-hunt line, with a light sweeping across the text so the wait reads
   as alive, not stuck. Anchored to the top behind a scrim so the line stays
   legible (and in view) when an existing itinerary is re-rendering underneath —
   centered over content, the glimmer collided with the cards below. */
.plan-loading {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(3px);
}
/* Glimmer = a bright band swept across muted text via a clipped gradient. The
   text fill is transparent so the gradient shows through; the band rides
   background-position from one edge to the other. */
.plan-loading-msg {
  font-size: 1.05rem;
  text-align: center;
  max-width: 20em;
  background: linear-gradient(
    100deg,
    var(--muted) 35%,
    var(--text) 50%,
    var(--muted) 65%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: planGlimmer 2.6s linear infinite;
}
/* Each swapped line also fades up; the reflow retrigger restarts both. */
.plan-loading-msg.in {
  animation:
    planMsgIn 0.4s ease both,
    planGlimmer 2.6s linear infinite;
}
@keyframes planGlimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
@keyframes planMsgIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Reduced motion: no sweep, no fade — just legible muted text. */
@media (prefers-reduced-motion: reduce) {
  .plan-loading-msg,
  .plan-loading-msg.in {
    animation: none;
    background: none;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
  }
}
.plan-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.plan-results.loading {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
/* Empty-but-available: a "why nothing matched" line plus tappable refined
   searches (SIL-99). */
.plan-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 8px;
  align-items: flex-start;
}
.plan-empty-msg {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}
.plan-suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-day-head {
  position: sticky;
  top: 64px; /* clear the sticky topbar while scrolling */
  z-index: 1;
  margin: 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(var(--bg) 70%, transparent);
  letter-spacing: 0.2px;
}
.plan-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* The grounded "why" — the differentiator vs the plain events list. */
.plan-why {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 10px;
}
.plan-star {
  color: var(--soon);
}
/* "A or B" framing: a quiet divider between a day's alternatives. */
.plan-or {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin: 2px 0;
}
.plan-or::before,
.plan-or::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px dashed var(--line);
}

@media (max-width: 560px) {
  .plan-page {
    padding: 16px;
  }
  .plan-day-head {
    top: 56px;
  }
}
