:root {
  --bg: #e8eee9;
  --bg-mid: #dfe7e1;
  --paper: #f9fbf8;
  --ink: #141916;
  --muted: #5a635c;
  --faint: #859089;
  --line: rgba(20, 25, 22, 0.11);
  --line-strong: rgba(20, 25, 22, 0.18);
  --accent: #6e2f3f;
  --accent-soft: rgba(110, 47, 63, 0.1);
  --ok: #2d684c;
  --ok-soft: rgba(45, 104, 76, 0.12);
  --dusk-top: #c9d4ce;
  --dusk-warm: #d8cfc4;
  --radius: 14px;
  --radius-sm: 10px;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 0 rgba(20, 25, 22, 0.04), 0 8px 24px rgba(20, 25, 22, 0.05);
  --page-max: 440px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  background: var(--bg);
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(120% 70% at 50% -10%, var(--dusk-warm) 0%, transparent 55%),
    radial-gradient(90% 50% at 100% 0%, var(--dusk-top) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 28%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

button { font-family: inherit; cursor: pointer; color: inherit; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 560; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
  border-radius: var(--radius-sm);
}
.skip:focus {
  left: 12px;
  top: 12px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 20px calc(88px + var(--safe-bottom));
  animation: pageIn 0.55s var(--ease) both;
}

.page.article {
  padding-bottom: 56px;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Brand / masthead —— */
.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.brand-block {
  margin-bottom: 18px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 6.5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.wordmark .place {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.wordmark.compact {
  font-size: 1.25rem;
  line-height: 1.15;
}
.wordmark.compact .place {
  font-size: 0.62rem;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(249, 251, 248, 0.72);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.icon-btn:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn { position: relative; text-decoration: none; }
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.mast-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.context-strip span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(249, 251, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.context-strip span:first-child {
  color: var(--accent);
  border-color: rgba(110, 47, 63, 0.22);
  background: var(--accent-soft);
}

.mood-bar { margin: 10px 0 0; }

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 22px;
  max-width: 28ch;
}

.kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.kicker a { text-decoration: none; }

/* —— Controls —— */
.controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.seg {
  display: flex;
  background: rgba(20, 25, 22, 0.075);
  border-radius: 12px;
  padding: 3px;
}
.seg button {
  flex: 1;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0.55;
  font-weight: 550;
  font-size: 0.9rem;
  border-radius: 9px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(20, 25, 22, 0.07);
}

.tonight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 14px;
}
.tonight-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s var(--ease);
}
.text-btn:hover { color: var(--accent); }
.text-btn svg { width: 14px; height: 14px; }

/* —— Plans (interactive) —— */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  animation: riseIn 0.5s var(--ease) both;
}
.plan:nth-child(1) { animation-delay: 0.05s; }
.plan:nth-child(2) { animation-delay: 0.12s; }
.plan:nth-child(3) { animation-delay: 0.19s; }
.plan:hover { border-color: var(--line-strong); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 18px 15px;
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.plan-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
  padding-left: 8px;
}
.plan-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px 10px;
  border-top: 1px solid var(--line);
  background: rgba(249, 251, 248, 0.65);
}
.plan-actions .text-btn {
  flex: 1;
  justify-content: center;
  height: 40px;
}
.plan-main::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  opacity: 0.85;
}
.plan-main h3 {
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  padding-left: 8px;
}
.plan-main .why {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 8px 0 0;
  padding-left: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plan-meta {
  margin-top: 12px;
  padding-left: 8px;
  font-size: 0.76rem;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.plan-meta .open,
.spot-meta .open {
  color: var(--ok);
  font-weight: 700;
  background: var(--ok-soft);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.follow {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(232, 238, 233, 0.55);
}
.follow a {
  flex: 1;
  padding: 13px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.25;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.follow a:hover { color: var(--ink); background: rgba(249, 251, 248, 0.8); }
.follow a + a { border-left: 1px solid var(--line); }
.follow em {
  font-style: normal;
  color: var(--accent);
  margin-right: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* —— Sections —— */
.section { margin-top: 40px; }
.filter-bar + .section { margin-top: 10px; }
.section > h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.section > a.more {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 14px;
}

.quiet-row {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: padding-left 0.2s var(--ease);
}
.quiet-row:hover { padding-left: 4px; }
.quiet-row:last-child { border-bottom: 1px solid var(--line); }
.quiet-row strong {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.3;
}
.quiet-row span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 500;
}

/* —— Bottom nav —— */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 30;
  width: 100%;
  max-width: var(--page-max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 10px calc(10px + var(--safe-bottom));
  background: rgba(249, 251, 248, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--faint);
  border-radius: 10px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.tabbar a svg {
  width: 20px;
  height: 20px;
}
.tabbar a:hover { color: var(--ink); background: rgba(20, 25, 22, 0.04); }
.tabbar a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.foot {
  display: none;
}

.legal {
  margin-top: 28px;
  font-size: 0.72rem;
  color: var(--faint);
  line-height: 1.55;
}

/* —— Buttons —— */
.btn {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex: 1;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.primary:hover { background: #222925; }
.btn:active { transform: scale(0.98); }
.actions { display: flex; gap: 8px; margin-top: 24px; }

/* —— Sheet —— */
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 22, 0.42);
  display: flex;
  align-items: flex-end;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.sheet.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sheet-card {
  background: var(--bg);
  background-image:
    radial-gradient(80% 60% at 50% 0%, var(--dusk-warm) 0%, transparent 60%);
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(28px + var(--safe-bottom));
  transform: translateY(24px);
  transition: transform 0.32s var(--ease);
  box-shadow: 0 -12px 40px rgba(20, 25, 22, 0.12);
}
.sheet.open .sheet-card { transform: translateY(0); }
.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  margin: 0 auto 18px;
}
.sheet-card h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field select {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  min-height: 44px;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* —— Filters —— */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  margin: 8px 0 8px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(249, 251, 248, 0.55);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* —— Lists / venues —— */
.list { display: flex; flex-direction: column; }
.venue-link, .venue {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: none;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  transition: padding-left 0.2s var(--ease);
}
.venue-link:hover { padding-left: 4px; }
.list .venue-link:last-child,
.list .venue:last-child { border-bottom: 1px solid var(--line); }
.venue-link h3, .venue h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.venue-link .desc, .venue .desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.venue-link .plan-meta { margin-top: 8px; padding-left: 0; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  margin: 0 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.search-icon {
  display: grid;
  place-items: center;
  color: var(--faint);
  flex-shrink: 0;
}
.search-icon svg { width: 18px; height: 18px; }
.search-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.search-clear {
  border: 0;
  background: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.search-clear svg { width: 16px; height: 16px; }

.lens-bar { margin: 8px 0 4px; }

.hit-count {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin: 4px 0 8px;
}

.section.tight { margin-top: 22px; }
.section.tight .tonight-head { margin-top: 0; }

.spot-card {
  border-top: 1px solid var(--line);
  padding: 4px 0 10px;
}
.list .spot-card:last-child { border-bottom: 1px solid var(--line); }
.spot-card .venue-link {
  border: 0;
  padding: 12px 0 6px;
}
.spot-card .venue-link:hover { padding-left: 0; }
.mini-actions {
  display: flex;
  gap: 6px;
  padding: 0 0 6px;
}
.mini {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(249, 251, 248, 0.8);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mini svg { width: 13px; height: 13px; }
button.mini { font: inherit; font-size: 0.75rem; font-weight: 650; }

.also {
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 600;
}
.also a { color: var(--accent); text-decoration: none; }

.lead { max-width: 34ch; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* —— Spot detail —— */
.spot-title {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 10px 0 12px;
}
.spot-meta {
  font-size: 0.82rem;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 20px;
}
.spot-lede {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.48;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.spot-note {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.spot-note b {
  color: var(--ink);
  font-weight: 650;
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 24px 0;
}
.menu { list-style: none; }
.menu li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.menu li span:last-child {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.spot-h {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}



.slot-time {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}

.timeline-card {
  background: rgba(249, 251, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px 10px;
  margin-bottom: 14px;
}
.timeline-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.timeline li:first-child { border-top: 0; }
.timeline li span {
  color: var(--muted);
  min-width: 0;
}
.timeline li strong {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.empty {
  padding: 36px 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
.empty a { color: var(--accent); font-weight: 600; }

.saved-dot {
  color: var(--accent);
  font-size: 0.75em;
  vertical-align: 0.1em;
}

.itinerary-stop {
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}
.itinerary-stop:first-of-type { border-top: 0; padding-top: 0; }
.itinerary-stop h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 2px 0 6px;
}
.itinerary-stop h3 a { text-decoration: none; }
.itinerary-stop .desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stop-actions .btn {
  flex: 1 1 auto;
  min-width: 96px;
}
.sheet-plan {
  max-height: min(88dvh, 760px);
  overflow: auto;
}
.sheet-plan .btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
}
.stay-blocks {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
}
.stay-blocks li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.stay-blocks li strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stay-blocks li span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 60;
  max-width: calc(var(--page-max) - 40px);
  width: max-content;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: var(--shadow-soft);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.actions .btn svg {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
}

/* —— Loading —— */
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.skel {
  height: 88px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(20,25,22,0.05) 25%, rgba(20,25,22,0.09) 37%, rgba(20,25,22,0.05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}
.skel.sm { height: 42px; }
.skel.lg { height: 120px; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* —— Articles —— */
.article { padding-top: 10px; }
.article .brand-link {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}
.article h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 4px 0 14px;
}
.article h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 30px 0 10px;
}
.article p { margin: 0 0 14px; }
.article .lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 18px;
}
.article ul {
  padding-left: 0;
  margin: 0 0 16px;
  list-style: none;
}
.article li {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
.article li strong { color: var(--ink); }
.article a:not(.brand-link):not(.kicker a) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article .end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article .end-links a {
  text-decoration: none;
  font-weight: 600;
}

/* —— Desktop —— */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(70% 55% at 50% -5%, var(--dusk-warm) 0%, transparent 50%),
      radial-gradient(50% 40% at 80% 10%, var(--dusk-top) 0%, transparent 40%),
      linear-gradient(180deg, #d5dfd8 0%, var(--bg) 40%);
  }
  .page {
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 28px 28px calc(96px + var(--safe-bottom));
    background: rgba(249, 251, 248, 0.55);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
  }
  .page.article {
    padding-bottom: 36px;
  }
  .tabbar {
    bottom: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-width: calc(var(--page-max) - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
