@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #f1ede3; --surface: #fffdf8; --raised: #e9e4d7; --ink: #17231f; --muted: #58635e; --line: #dcd6c8;
  --accent: #17423c; --accent-ink: #fff; --accent-soft: #dfe8df;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --warn: #8a5a00; --warn-soft: #fbf0d7; --bad: #b3261e; --bad-soft: #fbe6e4; --good: #1a7a4c; --good-soft: #dff3e8;
  --sight: #2c6bed; --museum: #7b4bc4; --meal: #d2543a; --food: #d2543a; --walk: #1f8a5b; --travel: #5a6673; --hotel: #b5791a; --custom: #c8517d;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1412; --surface: #151e1b; --raised: #202b27; --ink: #eef1ea; --muted: #a4afa8; --line: #2b3632;
    --accent: #93d8c2; --accent-ink: #0b1f19; --accent-soft: #17302a;
    --warn: #f0c060; --warn-soft: #362a10; --bad: #ff9d94; --bad-soft: #3b1a18; --good: #6fd6a2; --good-soft: #12301f;
    --sight: #79a4ff; --museum: #b794f0; --meal: #f08a70; --food: #f08a70; --walk: #63c896; --travel: #9aa6b2; --hotel: #e0a94d; --custom: #ea8bae;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { max-width: 680px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-top: env(safe-area-inset-top); }
.topbar-row { max-width: 680px; margin: 0 auto; padding: 8px 8px; display: flex; align-items: center; gap: 4px; min-height: 52px; }
.topbar-title { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--ink); flex: none; text-decoration: none; }
.icon-btn:hover { background: var(--raised); }
.icon-btn svg, .tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.display { font-family: var(--serif); font-size: 38px; line-height: 1.08; font-weight: 500; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-size: 27px; line-height: 1.15; font-weight: 500; letter-spacing: -.012em; }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.45; }
.prewrap { white-space: pre-line; }
.stack > * + * { margin-top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.small-btn { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn.wide { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* home */
.home-head { padding: 20px 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trip-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 150px; position: relative; overflow: hidden; background: var(--cover); color: #fff; border-radius: 20px; padding: 18px 20px; text-decoration: none; margin-bottom: 12px; transition: transform .18s ease-out; }
.trip-card:hover { transform: translateY(-2px); }
.trip-card > :not(.cover-route) { position: relative; }
.cover-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-card .muted { color: rgba(255, 255, 255, .88); }
.trip-card.hero { min-height: 240px; padding: 24px; }
.trip-name { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.012em; line-height: 1.15; }
.hero .trip-name { font-size: 30px; letter-spacing: -.02em; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .18); color: #fff; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .trip-card { transition: none; } .trip-card:hover { transform: none; } }
details.fold > summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); padding: 12px 0; }
.empty { text-align: center; padding: 56px 16px; }
.empty .btn { margin-top: 16px; }

/* tabs */
.tabs { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 520px); display: flex; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 22px; padding: 5px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 17px; }
.tab[aria-current] { color: var(--accent); background: var(--accent-soft); }

/* day strip */
.days { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 15; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--bg); padding: 4px 16px 10px; margin: 0 -16px; }
.days::-webkit-scrollbar { display: none; }
.day-pill { flex: none; width: 54px; padding: 7px 0; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; line-height: 1.15; }
.day-pill b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.day-pill span { font-size: 12px; color: var(--muted); font-weight: 500; }
.day-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day-pill[aria-pressed="true"] span { color: inherit; }
.day-pill.today:not([aria-pressed="true"]) { border-color: var(--accent); }
.day-pill.today:not([aria-pressed="true"]) b { color: var(--accent); }

.day-head { padding: 10px 0 14px; }
.day-meta { margin-top: 4px; }

/* timeline */
.stop { display: grid; grid-template-columns: 72px 1fr; gap: 0 8px; width: 100%; text-align: left; border-radius: 12px; padding: 13px 8px; cursor: pointer; }
.stop:hover { background: var(--raised); }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; flex: none; margin-top: 2px; }
.num.next { background: var(--accent); color: var(--accent-ink); }
.day-in { animation: day-in .24s ease-out; }
@keyframes day-in { from { opacity: 0; transform: translateY(6px); } }
.now { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 18px; margin: 2px 0 14px; }
.now-label { font-size: 14px; font-weight: 600; opacity: .85; }
.now-time { font-family: var(--serif); font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.now-title { font-size: 18px; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.now-sub { font-size: 14px; opacity: .88; margin-top: 2px; }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.now-btn { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 12px; border: 1px solid currentColor; background: none; color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; }
.now-btn.solid { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.sheet-handle { display: none; }
.stop.skipped { opacity: .58; }
.stop.skipped .stop-title { text-decoration: line-through; }
.stop-time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5; padding-top: 2px; white-space: nowrap; }
.stop-title { display: flex; gap: 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.stop-sub { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--c); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; background: var(--raised); color: var(--ink); border: 0; }
.chip.done { background: var(--good-soft); color: var(--good); }
.chip.need { background: var(--warn-soft); color: var(--warn); }
.chip.hours, .chip.tight { background: var(--warn-soft); color: var(--warn); }
.chip.closed, .chip.overlap { background: var(--bad-soft); color: var(--bad); }
.chip.ticket { background: var(--ink); color: var(--bg); padding: 5px 12px; }
.leg { font-size: 13px; color: var(--muted); padding: 6px 8px 0 88px; border-top: 1px solid var(--line); }
.leg.far { color: var(--warn); }
.stop-gap { border-top: 1px solid var(--line); }
.fab-row { display: flex; gap: 10px; margin-top: 18px; }
.fab-row .btn { flex: 1; }

/* lists */
.row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; color: inherit; text-decoration: none; }
button.row:hover, a.row:hover { background: var(--raised); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.row-title { font-weight: 600; line-height: 1.3; }
.ticket-row { display: flex; gap: 14px; align-items: center; }
.thumb { width: 60px; height: 60px; flex: none; object-fit: cover; object-position: top; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.grow { flex: 1; min-width: 0; }
.info { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 13px; padding: 12px 14px; font-size: 15px; line-height: 1.4; margin-bottom: 14px; }
.code-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* filters */
.search { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.segment { display: flex; padding: 3px; background: var(--raised); border-radius: 12px; margin-bottom: 10px; }
.segment button { flex: 1; border: 0; background: none; min-height: 38px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.segment button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px; padding: 0 16px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tagline { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.tagline span { color: var(--t, var(--muted)); }
@media (prefers-color-scheme: dark) { .tagline span { filter: brightness(1.6); } }

/* map */
.map { height: 62vh; min-height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); z-index: 1; }
.pin { display: block; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--pin); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pin.numbered { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: var(--surface); color: var(--accent); border: 2px solid var(--accent); font: 700 13px/24px var(--font); text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pin.numbered.next { background: var(--accent); color: var(--accent-ink); }
.map-label { position: absolute; white-space: nowrap; font: 500 11px/1.2 var(--font); pointer-events: none; }
.map-label.area { font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.map-label.square { font-style: italic; }
.leaflet-container .leaflet-control-attribution { background: var(--surface); color: var(--muted); }
.leaflet-container .leaflet-control-attribution a { color: inherit; }
.map-locate { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; min-height: 38px; padding: 0 12px; font-size: 14px; font-weight: 600; }
.map-locate[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tiles-dark { filter: invert(1) hue-rotate(170deg) brightness(.85) contrast(.9) saturate(.6); }
.tiles-paper { filter: sepia(.28) saturate(.72) brightness(1.02); }

/* reading */
.reading { font-size: 18px; line-height: 1.6; }
.reading p + p { margin-top: 14px; }
.reading h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -.01em; }
.reading ul { padding-left: 20px; margin: 0; }
.reading li + li { margin-top: 8px; }
.lede { font-size: 19px; line-height: 1.5; font-weight: 500; margin: 12px 0 8px; }

/* sheet */
dialog#sheet { width: min(100%, 620px); max-width: 100%; max-height: min(92dvh, 900px); margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
dialog#sheet[open] { animation: rise .22s ease-out; }
dialog#sheet::backdrop { background: rgba(0, 0, 0, .45); }
@media (min-width: 700px) { dialog#sheet { margin: auto; border-radius: 24px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog#sheet[open] { animation: none; } }
.sheet-body { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: flex-end; position: sticky; top: 0; padding: 8px 8px 0; z-index: 5; pointer-events: none; }
.sheet-head button { pointer-events: auto; background: var(--raised); border-radius: 50%; width: 38px; height: 38px; border: 0; font-size: 20px; line-height: 1; }
.facts { display: grid; gap: 10px; margin: 16px 0; }
.fact-label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.input { width: 100%; min-height: 48px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
input[type="date"].input, input[type="time"].input { -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.err { color: var(--bad); font-size: 15px; font-weight: 500; margin: 8px 0; }

/* wizard */
.wizard { padding-top: 10px; }
.progress { display: flex; gap: 5px; margin-bottom: 26px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
.wizard .display { font-size: 30px; margin-bottom: 8px; }
.suggest { margin: -8px 0 14px; }
.suggest-row { display: block; width: 100%; min-height: 44px; padding: 10px 4px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; }
.suggest-row b { font-weight: 600; }
.suggest-row span { color: var(--muted); font-size: 14px; }
.wizard-sub { color: var(--muted); margin-bottom: 22px; }
.wizard-nav { display: flex; gap: 10px; margin-top: 22px; }
.wizard-nav .primary { flex: 1; }
.hotel-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.found { background: var(--good-soft); color: var(--good); padding: 12px 14px; border-radius: 13px; font-weight: 600; font-size: 15px; margin: 12px 0; }
.review dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 14px; }
.review dd { margin: 0; }

/* ticket viewer: always white, whatever the theme, so scanners can read it */
#viewer { position: fixed; inset: 0; z-index: 100; background: #fff; color: #111; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.viewer-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.viewer-top button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #eee; color: #111; font-weight: 600; }
.viewer-title { flex: 1; min-width: 0; font-weight: 700; line-height: 1.25; }
.viewer-sub { font-size: 14px; font-weight: 500; color: #444; }
.viewer-img { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 0 12px; -webkit-overflow-scrolling: touch; }
.viewer-img.qr { align-items: center; }
.viewer-img img { max-width: 100%; display: block; background: #fff; }
.viewer-img.qr img { width: min(100%, 72vh); image-rendering: pixelated; }
.viewer-foot { padding: 10px 14px 14px; text-align: center; font-size: 15px; color: #333; }
.viewer-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.viewer-tabs button { min-height: 40px; padding: 0 14px; border: 1px solid #ccc; border-radius: 10px; background: #fff; color: #111; font-weight: 600; font-size: 14px; }
.viewer-tabs button[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }

#toast { position: fixed; z-index: 120; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; width: max-content; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.on { opacity: 1; }
.offline-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); margin-left: 6px; white-space: nowrap; }

/* ---------- bigger screens ---------- */
.pin { transition: transform .12s; }
.pin.active { transform: scale(1.4); box-shadow: 0 0 0 3px var(--ink); }
.map-empty { padding: 24px; text-align: center; }
.split-main { min-width: 0; }
@media (min-width: 700px) {
  .home.page { max-width: 1040px; }
  .trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .trip-grid .trip-card { margin: 0; }
  .trip-grid .hero { grid-column: 1 / -1; padding: 36px 32px; }
  .hero .trip-name { font-size: 36px; }
}
@media (max-width: 899.98px) {
  .plan.page { --sheet-top: 44dvh; --bar: calc(60px + env(safe-area-inset-top)); max-width: none; padding: 0 0 calc(104px + env(safe-area-inset-bottom)); pointer-events: none; }
  .plan.page:has(.now) { --sheet-top: 36dvh; }
  .plan.page.peek { --sheet-top: calc(100dvh - 190px); }
  .plan .split-side { position: fixed; inset: 0; z-index: 0; }
  .plan .map { height: 100%; min-height: 0; border: 0; border-radius: 0; }
  .plan .leaflet-bottom { bottom: calc(100dvh - var(--sheet-top)); transition: bottom .28s ease-out; }
  .plan .leaflet-top { top: calc(68px + env(safe-area-inset-top)); }
  .plan .split-main { position: relative; z-index: 2; pointer-events: auto; max-width: 680px; margin: calc(var(--sheet-top) - var(--bar)) auto 0; padding: 0 16px 20px; min-height: 70dvh; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); transition: margin-top .28s ease-out; }
  .plan .no-map .split-main { margin-top: 8px; box-shadow: none; }
  .plan .no-map .sheet-handle { display: none; }
  .plan .sheet-handle { display: flex; justify-content: center; width: 100%; padding: 10px 0 8px; border: 0; background: none; touch-action: none; }
  .plan .sheet-handle span { width: 40px; height: 5px; border-radius: 5px; background: var(--line); }
  .plan .days { background: var(--surface); }
  .plan .day-pill:not([aria-pressed="true"]) { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { .plan .split-main, .plan .leaflet-bottom { transition: none !important; } .day-in { animation: none; } }
@media (min-width: 900px) {
  .narrow-only { display: none !important; }
  .with-rail .topbar, .with-rail .page { margin-left: 196px; }
  .with-rail .topbar-row { max-width: none; padding-inline: 20px; }
  .with-rail .page { max-width: none; padding: 0 32px 48px; }
  .with-rail .page:not(.wide) > * { max-width: 720px; margin-inline: auto; }
  .tabs { left: 0; top: 0; bottom: 0; transform: none; width: 196px; flex-direction: column; gap: 4px; padding: calc(16px + env(safe-area-inset-top)) 12px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tab { flex: none; flex-direction: row; gap: 12px; padding: 11px 14px; font-size: 15px; border-radius: 12px; }
  .tab:not([aria-current]):hover { background: var(--raised); color: var(--ink); }
  .split { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(360px, 1.15fr); gap: 28px; align-items: start; max-width: 1500px; margin-inline: auto; }
  .split-side { position: sticky; top: calc(68px + env(safe-area-inset-top)); }
  .split-side .map { height: calc(100dvh - 88px); min-height: 0; }
  .days { margin-inline: 0; padding-inline: 0; }
  .filters { margin-inline: 0; padding-inline: 0; }
  .with-rail ~ #toast { left: calc(50% + 98px); bottom: 28px; }
}

#print { display: none; }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  #app, #sheet, #viewer, #toast { display: none !important; }
  #print { display: block; }
  #print h1 { font-size: 22pt; margin: 0 0 4pt; }
  #print h2 { font-size: 13pt; margin: 16pt 0 5pt; border-bottom: 1px solid #999; padding-bottom: 3pt; break-after: avoid; }
  #print .pr { display: grid; grid-template-columns: 62pt 1fr; gap: 6pt; padding: 3pt 0; break-inside: avoid; }
  #print .pr small { display: block; color: #444; }
}
