:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #40343a;
  background: #fbf7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --rose: #9a536d;
  --rose-dark: #71364e;
  --rose-pale: #f7e8ed;
  --line: #eadde1;
  --muted: #756b70;
  --paper: #fffefd;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: #fbf7f4; }
button, a { font: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2; padding: .7rem 1rem; background: white; border-radius: .8rem; }
.skip-link:focus { top: 1rem; }
.lab-note { padding: .5rem 1rem; text-align: center; background: #f4e9e9; color: #704a59; font-size: .76rem; letter-spacing: .02em; }
.app-shell { width: min(100%, 760px); min-height: calc(100vh - 32px); margin: 0 auto; padding: 0 1rem max(1.5rem, env(safe-area-inset-bottom)); }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .62rem; color: #49383f; font-size: 1.04rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-weight: 650; }
.readonly-pill, .snapshot-status { border-radius: 999px; padding: .36rem .7rem; background: #f5e8ed; color: var(--rose-dark); font-size: .78rem; font-weight: 650; }
.page { padding: 1.45rem 0 2rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--rose); font-size: .72rem; font-weight: 750; letter-spacing: .12em; }
h1 { margin: 0; color: #49383f; font-size: clamp(1.65rem, 7vw, 2.15rem); line-height: 1.15; }
.page-intro { margin: .65rem 0 1.25rem; color: var(--muted); line-height: 1.55; }
.trip-list { display: grid; gap: .9rem; }
.trip-list[hidden], .trip-detail[hidden] { display: none; }
.snapshot-trip-card, .snapshot-section, .snapshot-detail-hero { border: 1px solid var(--line); border-radius: 1.15rem; background: var(--paper); box-shadow: 0 5px 20px rgb(88 58 68 / 5%); }
.snapshot-trip-card { padding: 1rem; }
.snapshot-trip-card-body { display: grid; grid-template-columns: 1fr auto; gap: .55rem .8rem; align-items: center; }
.snapshot-eyebrow { grid-column: 1 / -1; margin: 0; color: var(--rose); font-size: .68rem; letter-spacing: .1em; font-weight: 750; }
.snapshot-card-title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.snapshot-dates, .snapshot-day-date { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.snapshot-status { justify-self: start; background: #f4edf4; color: #604c68; }
.snapshot-status.active { background: #e6eee6; color: #3c6247; }
.snapshot-open, .snapshot-back { min-height: 42px; border: 1px solid #d8a7b7; border-radius: .8rem; padding: .55rem .85rem; background: var(--rose-pale); color: var(--rose-dark); font-weight: 700; cursor: pointer; }
.snapshot-open:hover, .snapshot-back:hover { background: #f0d8e1; }
.snapshot-open:focus-visible, .snapshot-back:focus-visible, .brand:focus-visible, .skip-link:focus-visible { outline: 3px solid #b9708a; outline-offset: 3px; }
.snapshot-detail-hero { margin: 1rem 0; padding: 1.1rem; }
.snapshot-detail-hero h1 { margin: .15rem 0 .55rem; font-size: clamp(1.45rem, 6vw, 1.9rem); }
.snapshot-detail-hero .snapshot-trip-title { margin: .15rem 0 .55rem; color: #49383f; font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.15; }
.snapshot-destination { margin: .7rem 0 0; color: var(--rose-dark); font-weight: 650; }
.snapshot-section { margin-top: .9rem; padding: 1rem; }
.snapshot-section h2 { margin: 0 0 .85rem; font-size: 1.15rem; }
.snapshot-day { padding: .8rem 0; border-top: 1px solid #f0e8ea; }
.snapshot-day h3 { display: inline; margin: 0 .55rem .2rem 0; font-size: .98rem; }
.snapshot-day-date { display: inline; font-size: .84rem; }
.snapshot-activities, .snapshot-checklist { display: grid; gap: .55rem; margin: .75rem 0 0; padding-left: 1.25rem; }
.snapshot-activity { padding-left: .2rem; }
.snapshot-activity-title { font-weight: 650; }
.snapshot-activity-meta, .snapshot-place { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.snapshot-empty { margin: .7rem 0 0; color: var(--muted); font-size: .88rem; }
.snapshot-checklist { list-style: none; padding: 0; }
.snapshot-checklist-item { display: flex; gap: .7rem; align-items: baseline; line-height: 1.45; }
.snapshot-checkmark { width: 1.2rem; flex: 0 0 1.2rem; color: #777; }
.snapshot-checkmark.is-checked { color: #3c6247; font-weight: 800; }
.error-banner { padding: .9rem 1rem; border: 1px solid #d18d8d; border-radius: .85rem; background: #fff0ef; color: #763939; line-height: 1.45; }
footer { border-top: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

@media (min-width: 620px) {
  .page { padding-top: 2rem; }
  .trip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot-trip-card-body { grid-template-columns: 1fr; }
  .snapshot-open { justify-self: start; }
}
