/* Frozen compatibility: rethink.css */
/* Travel runtime presentation. All assets and motion are local. */
:root {
  --ink:#1b2427; --secondary:#536167; --muted:#7e898d; --line:#e3e8e7;
  --paper:#fff; --canvas:#f4f6f5; --soft:#edf1f0; --accent:#146c59;
  --accent-soft:#e5f1eb; --warm:#f6f1e5; --warm-ink:#826730;
  --nav-height:72px; --top-height:58px; --radius:24px;
  --duration-fast:150ms; --duration:260ms; --duration-sheet:400ms;
  --ease:cubic-bezier(.22,.75,.18,1);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","MiSans","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); font-synthesis:weight;
}
* {box-sizing:border-box}
html {-webkit-tap-highlight-color:transparent; scroll-padding-top:145px}
body {margin:0;background:#e8ecea;line-height:1.5;-webkit-font-smoothing:antialiased}
body.sheet-open {overflow:hidden}
button,a,input {touch-action:manipulation}
button,input {font:inherit}
button {border:0;background:none;color:inherit;cursor:pointer}
button,a { -webkit-tap-highlight-color:transparent}
a {color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {outline:3px solid #5d9988;outline-offset:4px}
h1,h2,h3,h4,p {margin:0}
img {display:block;max-width:100%;height:auto}
.icon {width:21px;height:21px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.symbols {position:absolute;width:0;height:0;overflow:hidden}
.app {max-width:600px;margin:auto;min-height:100dvh;background:var(--canvas);padding-bottom:calc(100px + env(safe-area-inset-bottom))}
main {overflow-x:clip}
.topbar {position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;height:var(--top-height);padding:0 24px;background:rgba(244,246,245,.9);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-bottom:1px solid rgba(208,216,212,.35)}
.brand {display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;padding:8px 0}
.brand .icon {width:19px;height:19px;color:var(--accent)}
.status-text {font-size:12px;color:var(--muted)}
.module {display:none;padding:0 24px}
.module.active {display:block;animation:module-in var(--duration) var(--ease)}
@keyframes module-in {from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}
.page-head {padding:26px 0 22px}
.page-head h1 {font-size:34px;font-weight:700;letter-spacing:-1.2px;line-height:1.22}
.page-context {font-size:13px;color:var(--muted);margin-bottom:9px}
.now-head,.todo-head {display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.countdown-pill {flex:0 0 auto;font-size:12px;font-weight:600;color:var(--accent);padding:7px 10px;border-radius:999px;background:var(--accent-soft);margin-bottom:4px}
.section-head {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 13px}
.section-head h2 {font-size:19px;font-weight:650;letter-spacing:-.45px}
.section-head>span {font-size:12px;color:var(--muted);white-space:nowrap}
.text-button {display:inline-flex;align-items:center;gap:3px;min-height:40px;color:var(--accent);font-size:13px;padding:0}
.text-button .icon {width:14px;height:14px}
.button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 18px;font-size:14px;font-weight:600;border-radius:13px;transition:background var(--duration-fast),transform var(--duration-fast);white-space:nowrap}
.button:active {transform:scale(.97)}
.button .icon {width:17px;height:17px}
.primary {background:var(--accent);color:#fff}
.primary:active {background:#0d5042}
.secondary {background:var(--soft);color:var(--ink)}
.action {background:transparent;color:var(--accent);border:1px solid #dce3df;padding:0 12px;min-height:42px;font-size:13px}
.button.small {background:var(--soft);color:var(--ink)}
.focus-card {background:radial-gradient(ellipse at 100% 0%,#e3f1e7 0%,transparent 68%),#fff;border:1px solid #e1e9e3;border-radius:28px;padding:24px;box-shadow:0 9px 24px rgba(32,65,45,.035)}
.focus-kicker {display:flex;align-items:center;gap:7px;font-size:12px;color:var(--accent);font-weight:600}
.focus-kicker>.icon {width:17px;height:17px}
.focus-kicker .status-badge {margin-left:auto}
.focus-card h2 {font-size:28px;font-weight:650;letter-spacing:-1px;line-height:1.3;margin-top:21px}
.focus-description {font-size:15px;line-height:1.7;color:var(--secondary);margin-top:11px}
.focus-time {font-size:22px;color:var(--accent);font-variant-numeric:tabular-nums;margin-top:10px}
.focus-note {display:flex;gap:8px;font-size:13px;color:var(--warm-ink);margin-top:14px;line-height:1.6}
.focus-note .icon {width:16px;height:16px;margin-top:3px}
.focus-actions {display:flex;align-items:center;gap:15px;margin-top:24px}
.focus-progress {font-size:12px;color:var(--muted)}
.departure-card {display:block;width:100%;text-align:left;padding:20px;background:var(--paper);border-radius:22px;border:1px solid #e7ebea;box-shadow:0 4px 14px rgba(30,60,42,.025)}
.departure-top {display:flex;align-items:center;gap:8px;font-size:13px}
.departure-top>.icon:first-child {color:var(--accent);width:19px}
.departure-top>.icon:last-child {color:var(--muted);width:15px;margin-left:4px}
.departure-top strong {font-weight:600}
.quiet-status {margin-left:auto;font-size:11px;color:var(--accent)}
.flight-route {display:flex;align-items:center;gap:16px;margin:22px 0 16px}
.flight-route>div {display:flex;flex:1;flex-direction:column;gap:3px}
.flight-route>div:last-child {text-align:right}
.flight-route strong {font-size:26px;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.flight-route b {font-size:15px;font-weight:600}
.flight-route span:not(.flight-line) {font-size:11px;color:var(--muted)}
.flight-line {display:flex;justify-content:center;align-items:center;width:46px;color:#a3b4ac}
.flight-line .icon {width:29px}
.departure-card>p {font-size:12px;color:var(--secondary);line-height:1.6}
.departure-note {font-size:12px;padding-top:12px;margin-top:13px;border-top:1px solid var(--line);color:var(--accent)}
.destination-preview {position:relative;display:block;width:100%;height:190px;text-align:left;padding:0;margin:28px 0 8px;border-radius:22px;overflow:hidden;color:white;background:#87b5b0}
.destination-preview>img {width:100%;height:100%;object-fit:cover;object-position:center 50%}
.destination-preview:after,.overview-cover:after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 10%,rgba(8,42,40,.6))}
.destination-caption {position:absolute;z-index:1;left:20px;bottom:20px;display:flex;flex-direction:column;gap:4px;text-shadow:0 1px 5px rgba(0,0,0,.1)}
.destination-caption small {font-size:12px;color:rgba(255,255,255,.9)}
.destination-caption strong {font-size:26px;font-weight:650;letter-spacing:-.6px}
.photo-arrow {position:absolute;z-index:1;right:18px;bottom:23px;display:grid;place-items:center;width:35px;height:35px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.1);backdrop-filter:blur(12px)}
.next-event {width:100%;display:flex;align-items:center;gap:16px;padding:18px;background:#fff;border-radius:20px;text-align:left}
.next-event>time {font-size:13px;color:var(--accent);max-width:66px}
.next-event>span {flex:1;min-width:0}
.next-event strong {display:block;font-size:17px;font-weight:600;margin-bottom:4px}
.next-event small {color:var(--secondary);font-size:13px;line-height:1.55}
.next-event>.icon {width:15px;color:var(--muted)}.day-route::-webkit-scrollbar {display:none}
.date-chip {position:relative;display:flex;flex:0 0 49px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 4px 10px;min-height:69px;border-radius:16px;color:var(--secondary);transition:background var(--duration),color var(--duration)}
.date-chip small {font-size:11px;font-weight:500}
.date-chip strong {font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25}
.date-chip.active {background:var(--accent);color:#fff;box-shadow:0 4px 10px rgba(20,108,89,.13)}
.date-indicator {position:absolute;bottom:5px;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:0}
.date-chip.active .date-indicator {opacity:.75}
.day-header {padding:23px 0 0}
.day-meta {display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:9px}
.day-meta span {margin-left:auto;font-size:11px}
.day-header h1 {font-size:31px;font-weight:700;letter-spacing:-1px;line-height:1.25}
.day-header>p {font-size:14px;line-height:1.6;color:var(--secondary);margin-top:9px}
.day-route {display:flex;gap:0;overflow-x:auto;margin:13px -24px 16px;padding:0 24px 5px;scrollbar-width:none}
.day-route>span {font-size:13px;color:var(--secondary);white-space:nowrap;flex:0 0 auto}
.day-route>span:not(:last-child):after {content:"›";padding:0 8px;color:#b2bbb7}
.day-reminders {background:#edf1e9;border:1px solid #e0e6d9;border-radius:14px;margin:0 0 24px}
.day-reminders summary {display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:46px;padding:9px 13px;font-size:13px;font-weight:600;color:#5b6f4b}
.day-reminders summary::-webkit-details-marker {display:none}
.day-reminders summary>.icon {width:17px;height:17px}
.day-reminders summary small {font-size:11px;font-weight:400;color:#7b8972}
.day-reminders summary>.icon:last-child {width:14px;margin-left:auto;transition:transform var(--duration)}
.day-reminders[open] summary>.icon:last-child {transform:rotate(90deg)}
.day-reminders>div {padding:0 14px 12px}
.day-reminders p {font-size:13px;color:#637159;line-height:1.65;margin:4px 0 8px}
.timeline {margin:0}
.timeline-item {position:relative;padding:0 0 28px 26px}
.timeline-item:before {content:"";position:absolute;left:5px;top:13px;bottom:-9px;width:1px;background:#dbe3df}
.timeline-item:last-child:before {display:none}
.event-dot {position:absolute;left:1px;top:10px;width:9px;height:9px;background:var(--canvas);border:2px solid #a8bbb1;border-radius:50%;z-index:1;box-shadow:0 0 0 4px var(--canvas)}
.schedule-current .event-dot {background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px #d4e8de;animation:current-pulse 2s ease infinite}
@keyframes current-pulse {50% {box-shadow:0 0 0 7px rgba(20,108,89,.07)}}
.schedule-past .event-dot {background:#a8bbb1}
.event-top {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:27px;margin-bottom:9px}
.event-top time {font-size:14px;letter-spacing:.05px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--secondary)}
.status-badge {display:inline-flex;align-items:center;flex:0 0 auto;padding:3px 7px;font-size:11px;border-radius:6px;background:#e9edeb;color:#72817a;line-height:1.5;font-weight:500;white-space:nowrap}
.status-badge.booked,.status-badge.issued {color:#26755b;background:#e4eee7}
.status-badge.optional {background:transparent;border:1px solid #d9dfda;padding:2px 6px;color:#8b938e}
.status-badge.plan {background:transparent;color:#9aa39e;padding-right:0}
.current-label {font-size:12px;color:var(--accent);font-weight:600}
.event-content {min-width:0}
.transport-event {background:white;border:1px solid #e5eae7;padding:17px;border-radius:19px;box-shadow:0 3px 12px rgba(34,60,47,.02)}
.event-title-row {display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.event-title-row>h2 {font-size:20px;line-height:1.4;font-weight:650;letter-spacing:-.6px}
.event-title-row>.icon {width:19px;height:19px;color:#8fa398;margin-top:4px}
.event-desc {font-size:14px;color:var(--secondary);line-height:1.65;margin-top:6px}
.event-reminder {font-size:13px;line-height:1.6;color:var(--warm-ink);padding-left:10px;border-left:2px solid #d6c9a4;margin-top:12px}
.event-photo {position:relative;display:block;padding:0;width:100%;margin-top:13px;border-radius:16px;overflow:hidden;background:#e7ece9}
.event-photo img {width:100%;aspect-ratio:1.65;object-fit:cover}
.event-photo>.icon {position:absolute;bottom:10px;right:10px;padding:5px;width:28px;height:28px;border-radius:8px;stroke:white;background:rgba(0,0,0,.2);backdrop-filter:blur(6px)}
.event-actions {display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.transport-event .event-actions {gap:6px}
.transport-event .action {padding:0 9px;font-size:12px}
.day-end {text-align:center;font-size:12px;color:var(--muted);margin:0 0 12px}
/* Journey directory and bookings. */
.overview-cover {position:relative;height:244px;border-radius:25px;overflow:hidden;background:#7dad9f;color:white}
.overview-cover>img {width:100%;height:100%;object-fit:cover}
.overview-cover>div {position:absolute;z-index:1;left:23px;bottom:24px}
.overview-cover p {font-size:12px;opacity:.88;margin-bottom:4px}
.overview-cover h2 {font-size:33px;font-weight:650;letter-spacing:-1.3px}
.overview-cover span {font-size:12px;opacity:.85}
.journey-list,.reservation-list,.todo-list {background:var(--paper);border-radius:22px;overflow:hidden}
.journey-day {display:flex;width:100%;align-items:center;gap:15px;padding:15px 17px;text-align:left}
.journey-day+.journey-day {border-top:1px solid #eef0ef}
.journey-date {display:flex;flex-direction:column;align-items:center;min-width:29px;color:var(--accent);gap:0}
.journey-date strong {font-size:23px;font-weight:500;line-height:1.2}
.journey-date small {font-size:10px;margin-top:3px}
.journey-copy {flex:1;min-width:0}
.journey-copy strong {display:block;font-size:16px;font-weight:600}
.journey-copy small {display:block;font-size:12px;line-height:1.55;color:var(--muted);margin-top:3px}
.journey-day>.icon,.reservation-row>.icon,.source-entry>.icon:last-child {width:14px;height:14px;color:#a0aaa5}
.reservation-row {display:flex;width:100%;text-align:left;align-items:center;gap:13px;padding:18px 16px}
.reservation-row+.reservation-row {border-top:1px solid #edf0ee}
.reservation-icon,.reservation-thumb {display:grid;place-items:center;width:38px;height:42px;flex:0 0 38px;background:#f0f4f1;border-radius:10px;object-fit:contain;color:#5b826d}
.reservation-icon .icon {width:20px}
.reservation-copy {min-width:0;flex:1}
.reservation-copy strong {font-size:15px;font-weight:600;display:block}
.reservation-copy>span {display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:4px}
.source-entry {display:flex;align-items:center;gap:13px;background:#fff;border-radius:20px;padding:17px 18px;margin-top:28px}
.source-entry>.icon:first-child {color:var(--accent)}
.source-entry>span {flex:1}
.source-entry strong {display:block;font-size:15px;font-weight:600}
.source-entry small {display:block;color:var(--muted);font-size:12px;margin-top:3px}
/* Calm, persistent checklist. */
.progress-ring {--progress:0%;display:grid;place-items:center;width:59px;height:59px;flex:0 0 59px;background:conic-gradient(var(--accent) var(--progress),#e0e7e2 0);border-radius:50%;position:relative}
.progress-ring:before {content:"";position:absolute;inset:4px;border-radius:50%;background:var(--canvas)}
.progress-ring>span {position:relative;font-size:18px;font-weight:600}
.progress-ring small {font-size:11px;color:var(--muted);font-weight:400}
.todo-priority {display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #d9e7dc;background:linear-gradient(115deg,#e4efe6,#f1f5ea);padding:18px;border-radius:20px}
.priority-icon {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ffffff80;color:var(--accent);flex:0 0 auto}
.priority-icon .icon {width:18px}
.todo-priority>span:nth-child(2) {flex:1}
.todo-priority small {display:block;color:var(--accent);font-size:11px;margin-bottom:4px}
.todo-priority strong {display:block;font-size:16px;font-weight:600;line-height:1.4}
.todo-priority>.icon:last-child {width:14px;color:#748e7e}
.todo-item {position:relative;display:flex;align-items:flex-start;gap:13px;cursor:pointer;padding:18px 16px;transition:background var(--duration);scroll-margin-top:150px}
.todo-item+.todo-item {border-top:1px solid #eef0ee}
.todo-item input {position:absolute;left:16px;top:20px;width:22px;height:22px;margin:0;opacity:0}
.check-visual {display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin-top:2px;border:1.5px solid #c7d0ca;border-radius:50%;pointer-events:none;transition:background var(--duration-fast),border-color var(--duration-fast)}
.check-visual>.icon {width:14px;height:14px;opacity:0;stroke-width:2.4;transform:scale(.5);transition:transform var(--duration),opacity var(--duration)}
.todo-item input:checked+.check-visual {background:var(--accent);border-color:var(--accent)}
.todo-item input:checked+.check-visual>.icon {opacity:1;color:#fff;transform:scale(1)}
.todo-item input:focus-visible+.check-visual {outline:3px solid #5d9988;outline-offset:4px}
.todo-copy {flex:1}
.todo-copy strong {display:block;font-size:15px;font-weight:550;line-height:1.6}
.todo-copy small {display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:4px}
.todo-item.completed .todo-copy {opacity:.48}
.todo-item.completed .todo-copy strong {text-decoration:line-through;text-decoration-thickness:1px}
.local-note {display:flex;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:11px;margin-top:24px}
.local-note .icon {width:13px;height:13px}
/* Detail sheet: actions first, then guidance and photos. */
.sheet-backdrop {position:fixed;inset:0;z-index:300;background:rgba(12,25,20,0);pointer-events:none;visibility:hidden;transition:background var(--duration-sheet),visibility var(--duration-sheet)}
.sheet-backdrop.active {background:rgba(12,25,20,.32);pointer-events:auto;visibility:visible}
.bottom-sheet {position:absolute;bottom:0;left:50%;width:min(100%,600px);max-height:76dvh;display:flex;flex-direction:column;transform:translate(-50%,105%);transition:transform var(--duration-sheet) var(--ease);background:var(--canvas);border-radius:29px 29px 0 0;box-shadow:0 -8px 35px rgba(0,0,0,.09);overflow:hidden}
.sheet-backdrop.active .bottom-sheet {transform:translate(-50%,0)}
.sheet-handle {width:34px;height:4px;background:#c9d1cd;border-radius:999px;margin:10px auto 0;flex:0 0 auto}
.sheet-header {display:flex;align-items:center;gap:15px;justify-content:space-between;padding:15px 23px 17px;flex-shrink:0}
.sheet-header {touch-action:pan-x}
.sheet-header h3 {font-size:23px;line-height:1.3;font-weight:650;letter-spacing:-.65px;max-width:calc(100% - 50px)}
.sheet-close {display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e7ece9;color:#718078}
.sheet-close .icon {width:17px;height:17px}
.sheet-content {overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:0 23px calc(25px + env(safe-area-inset-bottom));scrollbar-width:thin}
.detail-section {padding:18px 0;border-top:1px solid var(--line)}
.detail-intro {border-top:0;padding:0 0 19px}
.detail-meta {display:flex;align-items:center;gap:10px;margin-bottom:10px}
.detail-meta time {color:var(--muted);font-size:12px}
.detail-desc,.detail-copy {font-size:14px;color:var(--secondary);line-height:1.7}
.detail-section h4 {font-size:13px;font-weight:600;color:var(--muted);margin-bottom:10px}
.detail-list {margin:0;padding-left:18px}
.detail-list li {font-size:14px;color:var(--secondary);line-height:1.7;margin:8px 0}
.location-heading {display:flex;gap:12px}
.location-heading>.icon {margin-top:3px;color:var(--accent)}
.location-heading h4 {font-size:11px;margin:0 0 3px}
.location-heading strong {font-size:16px;font-weight:600;line-height:1.5}
.location-address {font-size:13px;color:var(--muted);margin:8px 0 0 33px;overflow-wrap:anywhere}
.action-row {display:flex;gap:8px;margin-top:16px}
.action-row>.button {flex:1;padding:0 11px}
.detail-gallery {display:grid;grid-auto-flow:column;grid-auto-columns:86%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.detail-gallery>img {width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:17px;scroll-snap-align:start;background:#fff;cursor:zoom-in}
.detail-gallery>img:only-child {grid-column:auto;max-width:100%}
.detail-gallery:has(>img:only-child) {grid-auto-columns:100%}
.detail-gallery>img.ticket-thumb {aspect-ratio:1;object-fit:contain;padding:9px}
.detail-empty-thumb {display:grid;place-items:center;margin-top:13px;width:80px;height:70px;border:1px dashed #cdd6d0;border-radius:12px;font-size:10px;color:#98a49c}
.sheet-code {margin:13px 0;padding:14px 15px;border-radius:16px;background:#fff;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sheet-code-label {font-size:11px;color:var(--muted);width:100%}
.sheet-code-value {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.8px;font-size:16px;font-weight:500;overflow-wrap:anywhere;max-width:100%}
.sheet-code>.button {margin-left:auto;font-size:12px;min-height:36px}
.fallback-intro {border-top:0;padding-top:0;padding-bottom:14px}
.fallback-intro p {font-size:14px;line-height:1.65;color:var(--secondary)}
.fallback-intro span {display:inline-block;margin-top:7px;font-size:12px;color:var(--muted)}
.fallback-card {padding:16px 0 18px;border-top:1px solid var(--line)}
.fallback-card:first-of-type {border-top:0}
.fallback-card-top {display:flex;align-items:center;gap:8px;justify-content:space-between}
.fallback-label {font-size:16px;font-weight:650;line-height:1.45}
.fallback-confidence {font-size:10px;color:var(--muted);white-space:nowrap}
.fallback-trigger {margin-top:7px;font-size:12px;color:var(--warm-ink);line-height:1.6}
.fallback-action-copy {margin-top:7px;font-size:14px;line-height:1.7;color:var(--secondary)}
.fallback-location {display:flex;align-items:flex-start;gap:6px;margin-top:10px;font-size:12px;line-height:1.55;color:var(--muted)}
.fallback-location .icon {width:14px;height:14px;color:var(--accent);margin-top:2px}
.fallback-meta {margin-top:8px;font-size:11px;color:var(--muted);line-height:1.55}
.fallback-note {display:flex;gap:6px;margin-top:8px;font-size:12px;line-height:1.6;color:var(--warm-ink)}
.fallback-note .icon {width:14px;height:14px;flex:0 0 auto;margin-top:3px}
.fallback-actions {display:flex;gap:8px;margin-top:12px}
.fallback-actions .button {min-height:38px;font-size:12px;padding:0 12px}
.fallback-action {color:#7d6b3d;border-color:#e3dac0;background:#fbf8ef}
.image-modal {position:fixed;inset:0;z-index:400;background:rgba(7,14,11,.97);display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--duration),visibility var(--duration)}
.image-modal.active {opacity:1;visibility:visible;pointer-events:auto}
.image-modal>img {max-width:94%;max-height:78dvh;object-fit:contain}
.modal-close {position:absolute;top:calc(20px + env(safe-area-inset-top));right:20px;width:44px;height:44px;border-radius:50%;background:#ffffff20;color:white;font-size:28px}
.image-caption {position:absolute;bottom:calc(22px + env(safe-area-inset-bottom));left:20px;right:20px;color:#fff;text-align:center;font-size:13px}
.toast {position:fixed;z-index:500;left:50%;bottom:calc(105px + env(safe-area-inset-bottom));transform:translate(-50%,15px);width:max-content;max-width:90%;padding:12px 18px;color:#fff;background:#24372c;border-radius:16px;font-size:13px;box-shadow:0 5px 20px #0002;opacity:0;pointer-events:none;transition:opacity var(--duration),transform var(--duration)}
.toast.show {transform:translate(-50%,0);opacity:1}
@media(min-width:650px) {
  .app {box-shadow:0 0 70px rgba(32,56,41,.05)}
  .module {padding:0 32px}
  .topbar {padding:0 32px}
  .date-chip {flex:0 0 54px}
  .day-route {margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px}
  .destination-preview {height:240px}
  .focus-card {padding:28px}
  .focus-card h2 {font-size:32px}
  .event-photo img {max-height:275px}
}
@media(max-width:360px) {
  .module {padding-left:18px;padding-right:18px}
  .topbar {padding-left:18px;padding-right:18px}
  .day-route {margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}
  .focus-card {padding:21px}
  .focus-card h2 {font-size:26px}
  .page-head h1 {font-size:31px}
  .focus-actions {gap:11px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Final iOS light-mode override. Keep this last so the visual system is deterministic. */
:root {
  --ink:#1c1c1e;
  --secondary:#636366;
  --muted:#8e8e93;
  --line:rgba(60,60,67,.18);
  --paper:#fff;
  --canvas:#f2f2f7;
  --soft:#e5e5ea;
  --accent:#007aff;
  --accent-soft:#eaf3ff;
  --warm:#fff5e6;
  --warm-ink:#9a6700;
}
html,body {background:#dfe0e5;color:var(--ink)}
.app {background:var(--canvas);overflow-x:clip;box-shadow:0 0 70px rgba(0,0,0,.08)}
.topbar{background:rgba(242,242,247,.92);border-color:rgba(60,60,67,.16)}
.brand .icon,.focus-kicker,.focus-time,.current-label {color:var(--accent)}
.status-text,.page-context {color:var(--muted)}
.page-context {display:none}
.page-head {padding-top:28px}
.now-head {display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.now-head .countdown-pill {justify-self:start;margin:11px 0 0}
.countdown-pill {background:var(--accent-soft);border-color:#d4e7ff;color:var(--accent)}
.focus-card {background:#fff;border-color:rgba(60,60,67,.15);box-shadow:0 5px 18px rgba(0,0,0,.04)}
.departure-card,.next-event {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.flight-route {display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px}
.flight-route>div {min-width:0}
.flight-route strong,.flight-route b,.flight-route span:not(.flight-line) {overflow-wrap:anywhere}
.flight-line {width:auto}
.date-chip.active {color:var(--accent)}
.date-chip.active:after {background:var(--accent)}
.day-meta span,.day-end,.local-note {display:none}
.day-meta,.section-head>span {color:var(--muted)}
.day-header>p,.day-route>span,.event-desc,.journey-copy small,.reservation-copy>span {color:var(--secondary)}
.day-reminders {background:#fff7e6;border-color:#f3d19b}
.day-reminders summary {color:#9a6700}
.day-reminders summary small {display:none}
.event-top time {color:var(--accent);font-size:12px}
.status-badge {background:#f2f2f7;color:#636366}
.status-badge.booked,.status-badge.issued {background:rgba(52,199,89,.12);color:#248a3d}
.status-badge.plan {display:none}
.status-badge.optional {background:#fff7e6;color:#9a6700;border-color:#f3d19b}
.event-content,.event-title-row,.event-actions {min-width:0;max-width:100%}
.transport-event {border-color:rgba(60,60,67,.15);border-left:2px solid var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.fallback-action {background:#fff7e6!important;border-color:#f3d19b!important;color:#9a6700!important}
.destination-caption small {display:none}
.journey-list,.reservation-list,.todo-list,.source-entry {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.journey-date,.priority-icon,.reservation-icon {color:var(--accent)}
.journey-copy small,.reservation-copy>span {font-size:13px;line-height:1.5}
.progress-ring {background:conic-gradient(var(--accent) var(--progress),#d9d9de 0)}
.todo-priority {background:#fff;border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.todo-priority small {color:var(--accent)}
.todo-item+.todo-item {border-top-color:rgba(60,60,67,.12)}
.check-visual {border-color:#b8b8bd}
.todo-item input:checked+.check-visual {background:var(--accent);border-color:var(--accent)}
.sheet-backdrop.active {background:rgba(0,0,0,.32)}
.bottom-sheet {background:var(--canvas);box-shadow:0 -10px 36px rgba(0,0,0,.14)}
.sheet-close {background:#e5e5ea;color:#636366}
.detail-section,.fallback-card {border-top-color:rgba(60,60,67,.14)}
.detail-desc,.detail-copy,.fallback-action-copy {color:var(--secondary)}
.detail-section h4,.fallback-confidence {color:var(--muted)}
.sheet-code {border-color:rgba(60,60,67,.14);background:#fff}
.fallback-trigger,.fallback-note {color:#9a6700}
.toast {background:#1c1c1e}

@media(max-width:420px) {
}

/* ================================================================
   iOS system pass: grouped surfaces, blue actions, fewer annotations
   ================================================================ */
:root {
  --ink:#1c1c1e;
  --secondary:#636366;
  --muted:#8e8e93;
  --line:rgba(60,60,67,.18);
  --paper:#ffffff;
  --canvas:#f2f2f7;
  --soft:#e5e5ea;
  --accent:#007aff;
  --accent-soft:#eaf3ff;
  --warm:#fff5e6;
  --warm-ink:#9a6700;
}

html {background:#dfe0e5}
body {background:#dfe0e5;color:var(--ink)}
.app {background:var(--canvas);overflow-x:clip;box-shadow:0 0 70px rgba(0,0,0,.08)}
.topbar {background:rgba(242,242,247,.88);border-bottom-color:rgba(60,60,67,.14)}
.brand .icon {color:var(--accent)}
.status-text {color:var(--muted);letter-spacing:.04em}
.page-context {display:none}
.page-head {padding-top:28px}
.now-head {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:0}
.now-head .countdown-pill {justify-self:start;margin:11px 0 0}
.page-head h1 {color:var(--ink);font-weight:700}
.countdown-pill {background:var(--accent-soft);border:1px solid #d4e7ff;color:var(--accent)}
.focus-card {background:#fff;border-color:rgba(60,60,67,.14);box-shadow:0 5px 18px rgba(0,0,0,.04)}
.focus-kicker,.focus-time,.current-label {color:var(--accent)}
.focus-note,.event-reminder {color:var(--warm-ink)}
.primary {background:var(--accent);box-shadow:none}
.secondary {background:var(--soft);color:var(--ink)}
.action {background:#fff;color:var(--accent);border-color:rgba(60,60,67,.2)}
.departure-card,.next-event {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.quiet-status {color:#248a3d}
.flight-route {display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px}
.flight-route>div {min-width:0}
.flight-route strong,.flight-route b,.flight-route span:not(.flight-line) {overflow-wrap:anywhere}
.flight-line {width:auto}
.flight-line .icon {width:23px;color:#8e8e93}
.departure-note {color:#248a3d}
.date-chip.active {color:var(--accent)}
.date-chip.active:after {background:var(--accent)}
.day-meta {color:var(--muted)}
.day-meta span {display:none}
.day-header>p {color:var(--secondary)}
.day-route>span {color:var(--secondary)}
.day-reminders {background:#fff7e6;border-color:#f3d19b}
.day-reminders summary {color:#9a6700}
.day-reminders p {color:#8b6b32}
.event-top time {color:var(--accent)}
.status-badge {background:#f2f2f7;color:#636366}
.status-badge.booked,.status-badge.issued {background:rgba(52,199,89,.12);color:#248a3d}
.status-badge.optional {background:transparent;color:#8e8e93;border-color:rgba(60,60,67,.2)}
.status-badge.plan {color:#8e8e93}
.event-content,.event-title-row,.event-actions {min-width:0;max-width:100%}
.transport-event {border-color:rgba(60,60,67,.15);border-left-color:var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.event-desc {color:var(--secondary)}
.fallback-action {background:#fff7e6!important;border-color:#f3d19b!important;color:#9a6700!important}
.day-end,.local-note {display:none}
.overview-cover {box-shadow:0 7px 18px rgba(0,0,0,.06)}
.journey-list,.reservation-list,.todo-list,.source-entry {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.journey-date,.priority-icon,.reservation-icon {color:var(--accent)}
.journey-copy small,.reservation-copy>span,.source-entry small {color:var(--secondary)}
.progress-ring {background:conic-gradient(var(--accent) var(--progress),#d9d9de 0)}
.todo-priority {background:#fff;border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.todo-priority small {color:var(--accent)}
.todo-item+.todo-item {border-top-color:rgba(60,60,67,.12)}
.check-visual {border-color:#b8b8bd}
.check-visual,.todo-item input:checked+.check-visual {border-color:var(--accent)}
.todo-item input:checked+.check-visual {background:var(--accent)}
.sheet-backdrop.active {background:rgba(0,0,0,.32)}
.bottom-sheet {background:var(--canvas);box-shadow:0 -10px 36px rgba(0,0,0,.14)}
.sheet-close {background:#e5e5ea;color:#636366}
.detail-section,.fallback-card {border-top-color:rgba(60,60,67,.14)}
.location-heading>.icon,.fallback-location .icon {color:var(--accent)}
.detail-desc,.detail-copy,.fallback-action-copy {color:var(--secondary)}
.detail-section h4,.fallback-confidence {color:var(--muted)}
.sheet-code {border-color:rgba(60,60,67,.14);background:#fff}
.fallback-trigger,.fallback-note {color:#9a6700}
.toast {background:#1c1c1e}

@media(max-width:420px) {
}

/* ================================================================
   Art direction refresh: a quiet field guide for the road
   ================================================================ */
:root {
  --ink:#1d2426;
  --secondary:#5e6b6d;
  --muted:#8a9492;
  --line:#e4e8e5;
  --paper:#ffffff;
  --canvas:#f5f6f3;
  --soft:#eef1ee;
  --accent:#176854;
  --accent-soft:#e5f0e8;
  --warm:#faf3e4;
  --warm-ink:#866a3b;
  --radius:26px;
  --nav-height:76px;
  --top-height:64px;
  --duration-fast:140ms;
  --duration:240ms;
  --duration-sheet:360ms;
  --ease:cubic-bezier(.22,.78,.2,1);
}

html {background:#e1e4e1;scroll-padding-top:150px}
body {background:#e1e4e1;color:var(--ink);letter-spacing:0}
.app {background:var(--canvas);box-shadow:0 0 80px rgba(24,42,32,.06)}
.topbar {height:calc(var(--top-height) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 22px 0;background:rgba(244,246,242,.86);border-bottom:1px solid rgba(202,215,207,.42);backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px)}
.brand {gap:9px;font-size:15px;letter-spacing:.01em}
.brand .icon {width:18px;height:18px;stroke-width:1.8}
.status-text {font-size:11px;letter-spacing:.08em;color:#76847f}
.module {padding:0 22px}
.module.active {animation:module-in 260ms var(--ease)}
.page-head {padding:34px 0 25px}
.page-head h1 {font-size:37px;line-height:1.12;letter-spacing:-1.45px;font-weight:720}
.page-context {font-size:11px;letter-spacing:.08em;color:#788682;margin-bottom:11px}
.countdown-pill {padding:7px 11px;font-size:11px;letter-spacing:.02em;background:var(--accent-soft);color:var(--accent);border:1px solid #d5e7da;margin-bottom:3px}
.section-head {margin:31px 0 12px}
.section-head h2 {font-size:18px;letter-spacing:-.3px;font-weight:650}
.section-head>span {font-size:11px;color:#84908d}
.text-button {font-size:12px;min-height:36px}
.button {min-height:43px;padding:0 16px;border-radius:14px;font-size:13px;font-weight:620;letter-spacing:.01em}
.button .icon {width:16px;height:16px}
.primary {background:var(--accent);box-shadow:0 5px 12px rgba(23,105,86,.13)}
.secondary {background:#eaf0ec;color:var(--ink)}
.action {background:rgba(255,255,255,.72);border-color:#d8e3dc;color:#316b5a;min-height:40px;padding:0 12px;font-size:12px}
.action:hover {background:var(--accent-soft)}

/* Now: one decisive card, one clear next action. */
.focus-card {padding:25px 23px 22px;border:1px solid #dfe8e0;border-radius:25px;background:#eef5ef;box-shadow:0 9px 24px rgba(41,82,58,.035)}
.focus-kicker {font-size:11px;letter-spacing:.06em;color:var(--accent)}
.focus-kicker .status-badge {letter-spacing:0}
.focus-card h2 {font-size:30px;line-height:1.22;letter-spacing:-1.05px;margin-top:22px}
.focus-time {font-size:23px;line-height:1.1;margin-top:12px;color:var(--accent);font-weight:600}
.focus-description {font-size:14px;line-height:1.75;margin-top:12px;color:#53656a}
.focus-note {margin-top:15px;font-size:12px;color:var(--warm-ink)}
.focus-actions {gap:10px;margin-top:24px}
.focus-actions .button {min-height:44px}
.focus-progress {font-size:11px;color:#7a8983}
.departure-card {padding:21px;border-radius:22px;background:var(--paper);border:1px solid #e3e9e5;box-shadow:0 4px 14px rgba(36,67,48,.025)}
.departure-top {font-size:12px;color:#516762}
.departure-top>.icon:first-child {width:18px}
.quiet-status {font-size:10px;color:var(--accent);letter-spacing:.04em}
.flight-route {gap:14px;margin:22px 0 17px}
.flight-route strong {font-size:28px;letter-spacing:-.8px}
.flight-route b {font-size:14px}
.flight-line {width:38px}
.flight-line .icon {width:25px}
.departure-card>p {font-size:12px;color:#6d7b78}
.departure-note {margin-top:14px;padding-top:13px;border-top:1px solid var(--line);color:var(--accent);font-size:11px}
.destination-preview {height:204px;margin:31px 0 8px;border-radius:23px;box-shadow:0 9px 22px rgba(32,74,58,.06)}
.destination-preview:after,.overview-cover:after {background:linear-gradient(180deg,rgba(9,38,33,0) 20%,rgba(9,38,33,.7) 100%)}
.destination-caption {left:21px;bottom:21px;gap:3px}
.destination-caption small {font-size:11px;letter-spacing:.08em}
.destination-caption strong {font-size:28px;letter-spacing:-.9px}
.photo-arrow {right:18px;bottom:21px;width:36px;height:36px}
.next-event {gap:14px;padding:18px 17px;border:1px solid #e2e8e4;background:var(--paper);border-radius:20px;box-shadow:0 4px 14px rgba(32,68,46,.025)}
.next-event>time {font-size:12px;min-width:52px;color:var(--accent);font-variant-numeric:tabular-nums}
.next-event strong {font-size:16px;line-height:1.4}
.next-event small {font-size:12px;line-height:1.55;color:#65736f}
.date-chip {flex:0 0 48px;min-height:66px;padding:7px 4px 9px;border-radius:15px;color:#697872;gap:2px}
.date-chip small {font-size:10px;letter-spacing:.04em}
.date-chip strong {font-size:23px;font-weight:650}
.date-chip.active {background:transparent;color:var(--accent);box-shadow:none}
.date-chip.active:after {content:"";position:absolute;left:10px;right:10px;bottom:4px;height:3px;border-radius:999px;background:var(--accent)}
.date-indicator {display:none}
.day-header {padding:29px 0 0}
.day-meta {font-size:11px;letter-spacing:.06em;color:#798781;margin-bottom:10px}
.day-meta span {font-size:10px;letter-spacing:.04em;color:#9aa49f}
.day-header h1 {font-size:37px;line-height:1.14;letter-spacing:-1.4px;font-weight:720}
.day-header>p {font-size:14px;line-height:1.7;color:#5e6e70;margin-top:10px;max-width:31em}
.day-route {margin:17px -22px 18px;padding:0 22px 11px;border-bottom:1px solid #dce5df;gap:0}
.day-route>span {font-size:12px;color:#65766f}
.day-route>span:not(:last-child):after {padding:0 9px;color:#afbbb4}
.day-reminders {margin:0 0 27px;border:1px solid #dfeadf;background:#edf3ea;border-radius:16px}
.day-reminders summary {min-height:45px;padding:8px 13px;color:#60744f;font-size:12px}
.day-reminders>div {padding:1px 14px 11px}
.day-reminders p {font-size:12px;line-height:1.7;color:#64755c;margin:5px 0 8px}
.timeline-item {padding:0 0 31px 29px}
.timeline-item:before {left:6px;top:9px;bottom:-5px;width:1px;background:#d4e0d8}
.event-dot {left:1px;top:6px;width:11px;height:11px;border:2px solid #abbdb2;box-shadow:0 0 0 4px var(--canvas)}
.schedule-current .event-dot {box-shadow:0 0 0 4px #d9ece0}
.schedule-past .event-dot {background:#a9b9af;border-color:#a9b9af}
.event-top {min-height:22px;margin-bottom:8px;align-items:baseline;row-gap:4px}
.event-top time {font-size:12px;letter-spacing:.04em;color:var(--accent);font-weight:650}
.status-badge {padding:3px 7px;border-radius:999px;font-size:11px;letter-spacing:.02em}
.status-badge.booked,.status-badge.issued {color:#2d725d;background:#e4f0e7}
.status-badge.optional {padding:2px 7px;color:#8a918c;border-color:#d7dfd9}
.status-badge.plan {color:#89958f}
.current-label {font-size:11px;color:var(--accent)}
.event-title-row {gap:9px}
.event-title-row>h2 {min-width:0;overflow-wrap:anywhere;font-size:19px;line-height:1.35;letter-spacing:-.45px;font-weight:650}
.event-title-row>.icon {width:18px;height:18px;color:#88a095;margin-top:2px}
.event-desc {font-size:13px;line-height:1.7;color:#5e6d71;margin-top:6px}
.event-reminder {font-size:12px;line-height:1.7;margin-top:12px;padding-left:10px;color:#876c3e;border-left:2px solid #dfcfa9}
.event-content {min-width:0}
.transport-event {padding:17px 16px 16px;border:1px solid #dfe8e2;border-left:2px solid var(--accent);border-radius:18px;background:var(--paper);box-shadow:0 4px 14px rgba(31,69,47,.025)}
.transport-event .event-title-row>h2 {font-size:18px}
.event-photo {margin-top:14px;border-radius:19px;background:#e8efea}
.event-photo img {aspect-ratio:1.78}
.event-photo>.icon {right:11px;bottom:11px;border-radius:50%;background:rgba(12,42,32,.38)}
.event-actions {gap:7px;margin-top:14px}
.event-actions .action {background:#fbfdfb}
.fallback-action {background:#fcf8ed!important;border-color:#e7dcc1!important;color:#856c3e!important}
.day-end {padding:2px 0 18px;font-size:11px;color:#8d9993}

/* Overview: index-like lists replace competing panels. */
.overview-cover {height:258px;border-radius:25px;box-shadow:0 9px 22px rgba(32,74,58,.06)}
.overview-cover>div {left:22px;bottom:22px}
.overview-cover p {font-size:11px;letter-spacing:.08em}
.overview-cover h2 {font-size:35px;letter-spacing:-1.2px}
.overview-cover span {font-size:11px}
.journey-list,.reservation-list,.todo-list {border:1px solid #e2e7e4;border-radius:20px;background:var(--paper);box-shadow:0 4px 14px rgba(31,64,45,.02)}
.journey-day {gap:14px;padding:16px 17px}
.journey-date {min-width:32px;color:var(--accent)}
.journey-date strong {font-size:24px;font-weight:600}
.journey-date small {font-size:9px;color:#8b9993}
.journey-copy strong {font-size:15px}
.journey-copy small {font-size:11px;color:#7b8985;line-height:1.55}
.journey-day>.icon,.reservation-row>.icon,.source-entry>.icon:last-child {color:#9aa9a1}
.reservation-row {gap:13px;padding:16px 17px}
.reservation-icon,.reservation-thumb {width:40px;height:42px;flex-basis:40px;border-radius:12px;background:#edf3ee}
.reservation-copy strong {font-size:14px}
.reservation-copy>span {font-size:11px;line-height:1.55;color:#7d8985}
.source-entry {margin-top:29px;padding:17px 18px;border:1px solid #e0e8e2;background:var(--paper);border-radius:19px;box-shadow:0 4px 14px rgba(31,64,45,.02)}
.source-entry strong {font-size:14px}
.source-entry small {font-size:11px;color:#7d8985}

/* Todo: one obvious priority, then quiet groups. */
.progress-ring {width:60px;height:60px;flex-basis:60px;background:conic-gradient(var(--accent) var(--progress),#dfe8e1 0)}
.progress-ring:before {background:var(--canvas)}
.progress-ring>span {font-size:17px}
.progress-ring small {font-size:10px}
.todo-priority {padding:18px;border:1px solid #d9e7dc;background:#edf5ee;border-radius:20px;box-shadow:0 4px 14px rgba(39,77,49,.025)}
.priority-icon {width:36px;height:36px;border-radius:12px;color:var(--accent);background:rgba(255,255,255,.63)}
.todo-priority small {font-size:10px;letter-spacing:.06em}
.todo-priority strong {font-size:15px;line-height:1.5}
.todo-item {gap:13px;padding:17px 16px}
.todo-item+.todo-item {border-top-color:#edf1ee}
.check-visual {width:23px;height:23px;flex-basis:23px;border-color:#c8d4cb}
.todo-copy strong {font-size:14px;line-height:1.55}
.todo-copy small {font-size:11px;line-height:1.55;color:#7c8a85}
.local-note {font-size:10px;color:#8c9893}

/* Shared chrome: less decoration{bottom:0;left:50%;transform:translateX(-50%);width:min(600px,100%);height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding:6px 10px env(safe-area-inset-bottom);border-radius:0;border:0;border-top:1px solid rgba(208,218,211,.82);background:rgba(250,251,249,.9);box-shadow:0 -4px 18px rgba(25,55,38,.05);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
.sheet-backdrop.active {background:rgba(12,29,21,.36)}
.bottom-sheet {max-height:82dvh;border-radius:31px 31px 0 0;background:var(--canvas);box-shadow:0 -12px 42px rgba(19,38,27,.15)}
.sheet-handle {width:35px;height:4px;margin-top:10px;background:#bfcac3}
.sheet-header {padding:15px 22px 14px}
.sheet-header h3 {font-size:22px;letter-spacing:-.7px}
.sheet-close {width:38px;height:38px;background:#e7eeea;color:#6f8077}
.sheet-content {padding:0 22px calc(26px + env(safe-area-inset-bottom))}
.detail-section {padding:18px 0;border-top-color:#dfe7e1}
.detail-intro {padding-bottom:20px}
.detail-desc,.detail-copy {font-size:14px;line-height:1.75;color:#536469}
.detail-section h4 {font-size:11px;letter-spacing:.06em;color:#87938f}
.location-address {font-size:12px;line-height:1.65;color:#74837d}
.action-row>.button {border-radius:14px}
.detail-gallery {gap:10px;grid-auto-columns:86%}
.detail-gallery>img {border-radius:20px}
.sheet-code {border:1px solid #e2e9e3;background:var(--paper);border-radius:17px}
.fallback-card {border-top-color:#dfe7e1;padding:18px 0 20px}
.fallback-label {min-width:0;font-size:16px}
.fallback-confidence {flex:0 0 auto;font-size:11px}
.fallback-location {font-size:13px}
.fallback-action-copy {font-size:14px;line-height:1.75;color:#526367}
.fallback-trigger {font-size:12px;color:#846b3e}
.fallback-actions .button {border-radius:14px;background:var(--paper)}
.toast {bottom:calc(108px + env(safe-area-inset-bottom));border-radius:999px;background:#23372c;font-size:12px;box-shadow:0 8px 24px rgba(20,45,30,.18)}

@media(min-width:650px) {
  .module {padding-left:32px;padding-right:32px}
  .topbar {padding-left:32px;padding-right:32px}
  .day-route {margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px}
  .day-header h1 {font-size:41px}
  .overview-cover {height:275px}
}

@media(max-width:360px) {
  .module {padding-left:18px;padding-right:18px}
  .topbar {padding-left:18px;padding-right:18px}
  .day-route {margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}
  .page-head h1 {font-size:34px}
  .day-header h1 {font-size:34px}
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Final iOS light-mode override. Keep this last so the visual system is deterministic. */
:root {--ink:#1c1c1e;--secondary:#636366;--muted:#8e8e93;--line:rgba(60,60,67,.18);--paper:#fff;--canvas:#f2f2f7;--soft:#e5e5ea;--accent:#007aff;--accent-soft:#eaf3ff;--warm:#fff5e6;--warm-ink:#9a6700}
html,body {background:#dfe0e5;color:var(--ink)}
.app {background:var(--canvas);overflow-x:clip;box-shadow:0 0 70px rgba(0,0,0,.08)}
.topbar{background:rgba(242,242,247,.92);border-color:rgba(60,60,67,.16)}
.brand .icon,.focus-kicker,.focus-time,.current-label {color:var(--accent)}
.status-text,.page-context {color:var(--muted)}
.page-context {display:none}
.page-head {padding-top:28px}
.now-head {display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.now-head .countdown-pill {justify-self:start;margin:11px 0 0}
.countdown-pill {background:var(--accent-soft);border-color:#d4e7ff;color:var(--accent)}
.focus-card {background:#fff;border-color:rgba(60,60,67,.15);box-shadow:0 5px 18px rgba(0,0,0,.04)}
.departure-card,.next-event {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.flight-route {display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px}
.flight-route>div {min-width:0}
.flight-route strong,.flight-route b,.flight-route span:not(.flight-line) {overflow-wrap:anywhere}
.flight-line {width:auto}
.date-chip.active {color:var(--accent)}
.date-chip.active:after {background:var(--accent)}
.day-meta span,.day-end,.local-note {display:none}
.day-meta,.section-head>span {color:var(--muted)}
.day-header>p,.day-route>span,.event-desc,.journey-copy small,.reservation-copy>span {color:var(--secondary)}
.day-reminders {background:#fff7e6;border-color:#f3d19b}
.day-reminders summary {color:#9a6700}
.day-reminders summary small {display:none}
.event-top time {color:var(--accent);font-size:12px}
.status-badge {background:#f2f2f7;color:#636366}
.status-badge.booked,.status-badge.issued {background:rgba(52,199,89,.12);color:#248a3d}
.status-badge.plan {display:none}
.status-badge.optional {background:#fff7e6;color:#9a6700;border-color:#f3d19b}
.event-content,.event-title-row,.event-actions {min-width:0;max-width:100%}
.transport-event {border-color:rgba(60,60,67,.15);border-left:2px solid var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.035)}
.fallback-action {background:#fff7e6!important;border-color:#f3d19b!important;color:#9a6700!important}
.destination-caption small {display:none}
.journey-list,.reservation-list,.todo-list,.source-entry {border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.journey-date,.priority-icon,.reservation-icon {color:var(--accent)}
.journey-copy small,.reservation-copy>span {font-size:13px;line-height:1.5}
.progress-ring {background:conic-gradient(var(--accent) var(--progress),#d9d9de 0)}
.todo-priority {background:#fff;border-color:rgba(60,60,67,.15);box-shadow:0 4px 14px rgba(0,0,0,.03)}
.todo-priority small {color:var(--accent)}
.todo-item+.todo-item {border-top-color:rgba(60,60,67,.12)}
.check-visual {border-color:#b8b8bd}
.todo-item input:checked+.check-visual {background:var(--accent);border-color:var(--accent)}
.sheet-backdrop.active {background:rgba(0,0,0,.32)}
.bottom-sheet {background:var(--canvas);box-shadow:0 -10px 36px rgba(0,0,0,.14)}
.sheet-close {background:#e5e5ea;color:#636366}
.detail-section,.fallback-card {border-top-color:rgba(60,60,67,.14)}
.detail-desc,.detail-copy,.fallback-action-copy {color:var(--secondary)}
.detail-section h4,.fallback-confidence {color:var(--muted)}
.sheet-code {border-color:rgba(60,60,67,.14);background:#fff}
.fallback-trigger,.fallback-note {color:#9a6700}
.toast {background:#1c1c1e}

@media(max-width:420px) {
}

/* Frozen compatibility: konsta-theme.css */
/*
 * Konsta-inspired iOS theme layer.
 * This file is intentionally local and additive: the trip runtime and manifest
 * remain unchanged, while the presentation uses one restrained component system.
 */
:root {
  --k-bg: #f2f2f7;
  --k-surface: #ffffff;
  --k-surface-2: #f7f7fa;
  --k-label: #1c1c1e;
  --k-secondary-label: #636366;
  --k-tertiary-label: #8e8e93;
  --k-separator: rgba(60, 60, 67, .18);
  --k-blue: #007aff;
  --k-green: #34c759;
  --k-orange: #ff9500;
  --k-red: #ff3b30;
  --k-radius-sm: 10px;
  --k-radius-md: 14px;
  --k-radius-lg: 16px;
  --k-ease-snappy: cubic-bezier(.34, 1.28, .64, 1);
  --k-ease-gentle: cubic-bezier(.25, .46, .45, .94);
}

html, body { background: #dfe0e5; color: var(--k-label); }
body { line-height: 1.45; }
.app { background: var(--k-bg); box-shadow: 0 0 70px rgba(0,0,0,.08); }

/* System chrome */
.topbar {
  height: calc(44px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
  background: rgba(242,242,247,.88);
  border-bottom: .5px solid var(--k-separator);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.brand { gap: 8px; padding: 8px 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.brand .icon { width: 18px; height: 18px; color: var(--k-blue); stroke-width: 1.8; }
.status-text { font-size: 12px; color: var(--k-tertiary-label); font-variant-numeric: tabular-nums; }
.module { padding-left: 20px; padding-right: 20px; }
.module.active { animation: k-module-in 220ms var(--k-ease-gentle); }
@keyframes k-module-in { from { opacity: .78; } to { opacity: 1; } }

.page-head { padding: 28px 0 20px; }
.page-head h1 { font-size: 34px; line-height: 1.14; letter-spacing: -1.2px; font-weight: 720; }
.section-head { margin: 28px 0 10px; }
.section-head h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.45px; font-weight: 680; }
.section-head > span { font-size: 12px; color: var(--k-tertiary-label); }
.text-button { color: var(--k-blue); font-size: 14px; min-height: 36px; }

/* Buttons follow one iOS hierarchy: filled, tinted, plain. */
.button { min-height: 44px; border-radius: var(--k-radius-sm); padding: 0 16px; font-size: 15px; font-weight: 600; letter-spacing: -.1px; transition: transform 140ms var(--k-ease-snappy), background 140ms ease, opacity 140ms ease; }
.button .icon { width: 17px; height: 17px; }
.button:active { transform: scale(.97); }
.primary { background: var(--k-blue); box-shadow: none; }
.primary:active { background: #006fe6; }
.secondary { background: rgba(0,122,255,.1); color: var(--k-blue); }
.action, .button.small { min-height: 40px; padding: 0 13px; border: 0; border-radius: var(--k-radius-sm); background: #eef0f5; color: var(--k-blue); font-size: 14px; }
.action:active, .button.small:active { background: #e1e4eb; }

/* Now */
.countdown-pill { margin: 10px 0 0; padding: 6px 10px; border: 0; border-radius: 8px; background: rgba(0,122,255,.1); color: var(--k-blue); font-size: 13px; font-weight: 600; }
.focus-card { padding: 20px; border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.focus-kicker { gap: 7px; color: var(--k-blue); font-size: 13px; font-weight: 600; }
.focus-kicker > .icon { width: 17px; height: 17px; }
.focus-card h2 { margin-top: 18px; font-size: 28px; line-height: 1.18; letter-spacing: -.9px; font-weight: 720; }
.focus-description { margin-top: 10px; color: var(--k-secondary-label); font-size: 16px; line-height: 1.5; }
.focus-time { margin-top: 11px; color: var(--k-blue); font-size: 22px; font-weight: 650; }
.focus-note { margin-top: 14px; color: #9a6700; font-size: 13px; }
.focus-actions { gap: 10px; margin-top: 20px; }
.focus-progress { color: var(--k-tertiary-label); font-size: 13px; }
.departure-card, .next-event { border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.departure-card { padding: 18px; }
.departure-top { color: var(--k-secondary-label); font-size: 14px; }
.departure-top > .icon:first-child { color: var(--k-blue); }
.quiet-status { color: var(--k-green); font-size: 12px; }
.flight-route { gap: 10px; margin: 20px 0 15px; }
.flight-route strong { font-size: 28px; font-weight: 650; letter-spacing: -.6px; }
.flight-route b { font-size: 15px; }
.flight-route span:not(.flight-line), .departure-card > p { color: var(--k-tertiary-label); }
.flight-line { color: var(--k-tertiary-label); }
.departure-note { color: var(--k-blue); border-top-color: var(--k-separator); font-size: 13px; }
.destination-preview { height: 216px; margin: 28px 0 8px; border-radius: var(--k-radius-lg); box-shadow: none; }
.destination-preview:after, .overview-cover:after { background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.62)); }
.destination-caption { left: 18px; bottom: 18px; }
.destination-caption strong { font-size: 28px; font-weight: 720; letter-spacing: -1px; }
.photo-arrow { right: 16px; bottom: 16px; width: 38px; height: 38px; border: 0; background: rgba(0,0,0,.25); }
.date-chip { flex-basis: 48px; min-height: 64px; border-radius: 12px; color: var(--k-tertiary-label); gap: 1px; }
.date-chip small { font-size: 11px; font-weight: 500; }
.date-chip strong { font-size: 23px; font-weight: 650; }
.date-chip.active { background: transparent; color: var(--k-blue); box-shadow: none; }
.date-chip.active:after { left: 9px; right: 9px; bottom: 3px; height: 3px; background: var(--k-blue); }
.day-header { padding-top: 26px; }
.day-meta { margin-bottom: 8px; color: var(--k-tertiary-label); font-size: 13px; }
.day-header h1 { font-size: 34px; line-height: 1.14; font-weight: 720; letter-spacing: -1.2px; }
.day-header > p { margin-top: 9px; color: var(--k-secondary-label); font-size: 16px; line-height: 1.5; }
.day-route { margin: 15px -20px 16px; padding: 0 20px 11px; border-bottom: .5px solid var(--k-separator); }
.day-route > span { color: var(--k-secondary-label); font-size: 13px; }
.day-route > span:not(:last-child):after { padding: 0 8px; color: var(--k-tertiary-label); }
.day-reminders { margin-bottom: 22px; border: 0; border-radius: var(--k-radius-md); background: rgba(255,149,0,.12); }
.day-reminders summary { min-height: 44px; padding: 8px 12px; color: #9a6700; font-size: 14px; }
.day-reminders > div { padding: 0 13px 11px; }
.day-reminders p { color: #8a5f00; font-size: 14px; }
.timeline-item { padding-left: 30px; padding-bottom: 22px; }
.timeline-item:before { left: 5px; top: 13px; bottom: -7px; background: var(--k-separator); }
.event-dot { left: 1px; top: 10px; width: 10px; height: 10px; border: 2px solid var(--k-tertiary-label); background: var(--k-bg); box-shadow: 0 0 0 4px var(--k-bg); }
.schedule-current .event-dot { border-color: var(--k-blue); background: var(--k-blue); box-shadow: 0 0 0 4px rgba(0,122,255,.12); animation: k-pulse 2.2s ease infinite; }
@keyframes k-pulse { 50% { box-shadow: 0 0 0 7px rgba(0,122,255,.06); } }
.schedule-past .event-dot { border-color: var(--k-green); background: var(--k-green); }
.event-top { min-height: 24px; margin-bottom: 8px; }
.event-top time { color: var(--k-blue); font-size: 14px; font-weight: 650; }
.status-badge { padding: 3px 8px; border: 0; border-radius: 7px; background: #e5e5ea; color: var(--k-secondary-label); font-size: 12px; font-weight: 600; }
.status-badge.booked, .status-badge.issued { background: rgba(52,199,89,.13); color: #248a3d; }
.status-badge.optional { background: rgba(255,149,0,.13); color: #9a6700; }
.event-content { padding: 16px; border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.035); }
.transport-event { border: 0; border-left: 0; border-radius: var(--k-radius-lg); box-shadow: none; }
.event-title-row > h2, .transport-event .event-title-row > h2 { font-size: 19px; line-height: 1.3; font-weight: 680; letter-spacing: -.35px; }
.event-content { box-shadow: none; }
.event-title-row > .icon { color: var(--k-tertiary-label); }
.event-icon-flight, .reservation-symbol-flight { color: var(--k-blue) !important; }
.event-icon-bus, .reservation-symbol-bus { color: var(--k-orange) !important; }
.event-icon-boat, .reservation-symbol-boat { color: #00a7a0 !important; }
.event-icon-hotel, .reservation-symbol-hotel { color: #af52de !important; }
.event-icon-restaurant, .reservation-symbol-restaurant { color: var(--k-red) !important; }
.event-icon-entry, .reservation-symbol-entry { color: var(--k-indigo, #5856d6) !important; }
.event-desc { margin-top: 6px; color: var(--k-secondary-label); font-size: 14px; line-height: 1.55; }
.event-reminder { color: #8a5f00; border-left-color: rgba(255,149,0,.5); font-size: 13px; }
.event-photo { margin-top: 13px; border-radius: var(--k-radius-md); }
.event-actions { gap: 7px; margin-top: 13px; }

/* Overview and todo use grouped iOS lists. */
.overview-cover { height: 226px; border-radius: var(--k-radius-lg); box-shadow: none; }
.overview-cover > div { left: 18px; bottom: 18px; }
.overview-cover h2 { font-size: 34px; letter-spacing: -1.2px; }
.overview-cover span { font-size: 13px; }
.journey-list, .reservation-list, .todo-list { border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.journey-day { gap: 14px; padding: 15px 16px; }
.journey-day + .journey-day, .reservation-row + .reservation-row, .todo-item + .todo-item { border-top-color: var(--k-separator); }
.journey-date { min-width: 32px; color: var(--k-blue); }
.journey-date strong { font-size: 25px; font-weight: 650; }
.journey-date small { color: var(--k-tertiary-label); font-size: 10px; }
.journey-copy strong { font-size: 16px; font-weight: 650; }
.journey-copy small, .reservation-copy > span { color: var(--k-secondary-label); font-size: 13px; }
.journey-day > .icon, .reservation-row > .icon, .source-entry > .icon:last-child { color: var(--k-tertiary-label); }
.reservation-row { padding: 15px 16px; }
.reservation-icon, .reservation-thumb { width: 40px; height: 40px; flex-basis: 40px; border-radius: var(--k-radius-sm); background: #f2f2f7; color: var(--k-tertiary-label); }
.reservation-icon-flight { background: rgba(0,122,255,.1); }
.reservation-icon-bus { background: rgba(255,149,0,.12); }
.reservation-icon-boat { background: rgba(0,199,190,.12); }
.reservation-icon-hotel { background: rgba(175,82,222,.12); }
.reservation-icon-restaurant { background: rgba(255,59,48,.1); }
.reservation-icon-entry { background: rgba(88,86,214,.1); }
.reservation-copy strong { font-size: 15px; }
.source-entry { margin-top: 26px; padding: 15px 16px; border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.source-entry > .icon:first-child { color: var(--k-blue); }
.progress-ring { width: 58px; height: 58px; flex-basis: 58px; background: conic-gradient(var(--k-blue) var(--progress), #d9d9de 0); }
.progress-ring:before { background: var(--k-bg); }
.todo-priority { border: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.priority-icon { color: var(--k-blue); background: rgba(0,122,255,.1); }
.todo-priority small { color: var(--k-blue); }
.check-visual { border-color: #c7c7cc; }
.todo-item input:checked + .check-visual { background: var(--k-blue); border-color: var(--k-blue); }

/* iOS-style bottom tab bar: quiet, full-width{ bottom: 0; width: min(600px,100%); height: calc(49px + env(safe-area-inset-bottom)); padding: 3px 6px env(safe-area-inset-bottom); border: 0; border-top: .5px solid var(--k-separator); border-radius: 0; background: rgba(249,249,249,.9); box-shadow: 0 -3px 16px rgba(0,0,0,.04); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }

/* Sheet and preview */
.sheet-backdrop.active { background: rgba(0,0,0,.32); }
.bottom-sheet { max-height: 82dvh; border-radius: 20px 20px 0 0; background: var(--k-surface); box-shadow: 0 -10px 30px rgba(0,0,0,.16); }
.sheet-handle { width: 36px; height: 4px; margin-top: 9px; background: #c7c7cc; }
.sheet-header { padding: 13px 20px 14px; border-bottom: .5px solid var(--k-separator); }
.sheet-header h3 { font-size: 20px; font-weight: 700; letter-spacing: -.45px; }
.sheet-close { width: 34px; height: 34px; background: #e5e5ea; color: var(--k-secondary-label); }
.sheet-content { padding-left: 20px; padding-right: 20px; }
.detail-section, .fallback-card { border-top-color: var(--k-separator); }
.detail-desc, .detail-copy, .fallback-action-copy { color: var(--k-secondary-label); }
.detail-section h4, .fallback-confidence { color: var(--k-tertiary-label); }
.location-heading > .icon { color: var(--k-red); }
.fallback-location .icon { color: var(--k-orange); }
.detail-gallery > img { border-radius: var(--k-radius-lg); }
.sheet-code { border: 0; border-radius: var(--k-radius-md); background: var(--k-bg); }
.credential-docs { display: grid; gap: 8px; margin-top: 16px; }
.credential-docs h4 { margin-bottom: 0; }
.credential-docs .button { width: 100%; justify-content: center; }
.credential-gallery {
  grid-auto-columns: 128px;
  grid-template-rows: 128px;
  gap: 10px;
  padding: 2px 1px 4px;
}
.credential-gallery > img,
.credential-gallery > img.ticket-thumb,
.credential-gallery > img:only-child {
  width: 128px;
  height: 128px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--k-separator);
  border-radius: var(--k-radius-md);
  background: var(--k-bg);
  cursor: zoom-in;
}
.toast { background: #1c1c1e; border-radius: 12px; }

@media (max-width: 420px) {
  .module { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .day-route { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/*
 * Consistency pass: keep the iOS hierarchy legible at a glance.
 * This is deliberately additive so it can be removed without touching the
 * runtime templates or the trip manifest.
 */
:root {
  --k-warning: #ff9500;
  --k-warning-ink: #8a4b00;
  --k-warning-fill: rgba(255, 149, 0, .12);
  --k-card-radius: 16px;
  --k-action-radius: 10px;
  --k-action-height: 40px;
  --k-action-label: 14px;
}

/* Every compact action uses the same label metrics, regardless of its card. */
.button.action,
.transport-event .button.action,
.fallback-actions .button.action,
.button.small {
  min-height: var(--k-action-height);
  padding: 0 13px;
  border-radius: var(--k-action-radius);
  font-size: var(--k-action-label);
  font-weight: 600;
  letter-spacing: -.1px;
  line-height: 1.2;
}

.button.action .icon,
.button.small .icon { width: 16px; height: 16px; }
.fallback-actions .button.action { background: #fff; }

/* Cards share one surface rhythm; lists remain grouped, with no floating noise. */
.focus-card,
.departure-card,
.next-event,
.event-content,
.transport-event,
.todo-priority,
.journey-list,
.reservation-list,
.todo-list,
.source-entry { border-radius: var(--k-card-radius); }

.focus-card,
.departure-card,
.next-event,
.event-content,
.transport-event,
.todo-priority,
.journey-list,
.reservation-list,
.todo-list,
.source-entry {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
}

/* Warnings are orange accents on a quiet label, rather than yellow body text. */
.focus-note,
.event-reminder,
.fallback-trigger,
.fallback-note,
.day-reminders p { color: var(--k-secondary-label); }
.focus-note .icon,
.fallback-note .icon,
.day-reminders summary > .icon:first-child { color: var(--k-warning); }
.event-reminder { border-left-color: rgba(255, 149, 0, .55); }
.day-reminders {
  background: var(--k-warning-fill);
  border-color: rgba(255, 149, 0, .26);
}
.day-reminders summary { color: #3a3a3c; }
.status-badge.optional {
  background: var(--k-warning-fill);
  border-color: rgba(255, 149, 0, .3);
  color: var(--k-warning-ink);
}
.fallback-action {
  background: var(--k-warning-fill) !important;
  border-color: rgba(255, 149, 0, .28) !important;
  color: var(--k-warning-ink) !important;
}

/* Keep the timeline's time and state on one baseline without crowding the dot. */
.event-top { align-items: center; gap: 10px; }
.event-top time { line-height: 1.25; }
.event-top .status-badge { line-height: 1.25; }

/* Frozen compatibility: visual-polish.css */
/*
 * Visual polish pass · 2026-10-01
 * One small, reversible layer for mobile rhythm. It sits after the historical
 * theme files so the interface has one final set of typography and spacing
 * decisions without rewriting the runtime templates.
 */
:root {
  --ui-canvas: #f2f2f7;
  --ui-card: #ffffff;
  --ui-label: #1c1c1e;
  --ui-secondary: #636366;
  --ui-tertiary: #8e8e93;
  --ui-separator: rgba(60, 60, 67, .18);
  --ui-blue: #007aff;
  --ui-blue-fill: rgba(0, 122, 255, .10);
  --ui-orange: #ff9500;
  --ui-orange-fill: rgba(255, 149, 0, .11);
  --ui-green: #34c759;
  --ui-radius-card: 16px;
  --ui-radius-control: 10px;
  --ui-ease: cubic-bezier(.22, .75, .18, 1);
}

html, body { background: #d1d1d6; color: var(--ui-label); }
body { line-height: 1.45; }
.app { background: var(--ui-canvas); }
.module { padding-left: 20px; padding-right: 20px; }

/* Keep one readable scale across every module. */
.page-head { padding: 26px 0 18px; }
.page-head h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.25px; font-weight: 700; }
.section-head { margin: 26px 0 10px; }
.section-head h2 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.35px; }
.section-head > span { font-size: 12px; color: var(--ui-tertiary); }

/* Daily header: metadata, title, then one calm reminder surface. */
.day-header { padding: 24px 0 14px; }
.day-meta { margin-bottom: 8px; color: var(--ui-tertiary); font-size: 13px; line-height: 1.3; }
.day-header h1 { max-width: 100%; font-size: 32px; line-height: 1.2; letter-spacing: -.25px; font-weight: 700; overflow-wrap: break-word; word-break: normal; }
.day-reminders { margin: 0 0 24px; border: 1px solid var(--ui-separator); border-radius: var(--ui-radius-card); background: var(--ui-card); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.day-reminders summary { min-height: 46px; padding: 10px 14px; color: var(--ui-label); font-size: 15px; font-weight: 600; line-height: 1.25; }
.day-reminders summary > .icon:first-child { color: var(--ui-orange); }
.day-reminders summary small { color: var(--ui-tertiary); font-size: 12px; }
.day-reminders summary > .icon:last-child { color: var(--ui-tertiary); }
.day-reminders > div { padding: 0 14px 12px; }
.day-reminders p { color: var(--ui-secondary); font-size: 14px; line-height: 1.55; margin: 4px 0 8px; }

/* Timeline: reserve a real gutter for the line, dot and time. */
.timeline-item { padding-left: 56px; padding-bottom: 28px; }
.timeline-item:before { left: 24px; top: 17px; bottom: -5px; width: 1px; background: var(--ui-separator); }
.event-dot { left: 19px; top: 12px; width: 11px; height: 11px; border: 2px solid var(--ui-tertiary); background: var(--ui-canvas); box-shadow: 0 0 0 4px var(--ui-canvas); }
.schedule-current .event-dot { border-color: var(--ui-blue); background: var(--ui-blue); box-shadow: 0 0 0 4px var(--ui-blue-fill); }
.schedule-past .event-dot { border-color: var(--ui-green); background: var(--ui-green); }
.event-top { min-height: 22px; margin-bottom: 10px; justify-content: flex-start; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-top time { color: var(--ui-blue); font-size: 13px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; }
.status-badge { padding: 3px 8px; border: 0; border-radius: 999px; background: #e5e5ea; color: var(--ui-secondary); font-size: 12px; line-height: 1.25; font-weight: 600; }
.status-badge.booked, .status-badge.issued { background: rgba(52, 199, 89, .13); color: #248a3d; }
.status-badge.optional { background: var(--ui-orange-fill); color: #7a4d00; border: 0; }
.status-badge.plan { color: var(--ui-tertiary); background: #e5e5ea; }
.event-content, .transport-event { padding: 16px; border: 1px solid var(--ui-separator); border-left: 1px solid var(--ui-separator); border-radius: var(--ui-radius-card); background: var(--ui-card); box-shadow: 0 1px 2px rgba(0,0,0,.035); }
.event-title-row { gap: 10px; }
.event-title-row > h2, .transport-event .event-title-row > h2 { min-width: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.2px; font-weight: 650; overflow-wrap: break-word; word-break: normal; }
.event-title-row > .icon { width: 18px; height: 18px; margin-top: 2px; }
.event-desc { margin-top: 8px; color: var(--ui-secondary); font-size: 14px; line-height: 1.55; }
.event-reminder { margin-top: 12px; padding-left: 10px; border-left: 2px solid rgba(255,149,0,.55); color: var(--ui-secondary); font-size: 13px; line-height: 1.55; }
.event-reminder::first-letter { color: var(--ui-orange); }
.event-actions { gap: 8px; margin-top: 14px; }
.event-actions .button.action, .fallback-actions .button.action { min-height: 40px; padding: 0 13px; border: 0; border-radius: var(--ui-radius-control); background: var(--ui-blue-fill); color: var(--ui-blue); font-size: 14px; font-weight: 600; line-height: 1.2; }
.event-actions .fallback-action, .fallback-actions .fallback-action { background: var(--ui-orange-fill) !important; color: #7a4d00 !important; }

/* Dates are an index{ top: calc(44px + env(safe-area-inset-top)); margin-left: -20px; margin-right: -20px; padding: 7px 14px 8px; gap: 2px; background: rgba(242,242,247,.94); border-bottom: 1px solid var(--ui-separator); }
.date-chip { flex-basis: 46px; min-height: 58px; border-radius: 12px; color: var(--ui-tertiary); }
.date-chip small { font-size: 11px; font-weight: 500; }
.date-chip strong { font-size: 21px; line-height: 1.2; font-weight: 650; }
.date-chip.active { color: var(--ui-blue); background: transparent; box-shadow: none; }
.date-chip.active:after { left: 8px; right: 8px; bottom: 2px; height: 3px; background: var(--ui-blue); border-radius: 99px; }

/* Lists and controls use the same surface and body copy scale. */
.focus-card, .departure-card, .next-event, .journey-list, .reservation-list, .todo-list, .todo-priority, .source-entry { border-radius: var(--ui-radius-card); box-shadow: 0 1px 2px rgba(0,0,0,.035); }
.focus-card { padding: 20px; background: var(--ui-card); border: 1px solid var(--ui-separator); }
.focus-card h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.7px; }
.focus-description { color: var(--ui-secondary); font-size: 15px; line-height: 1.55; }
.focus-note { color: var(--ui-secondary); font-size: 13px; line-height: 1.55; }
.focus-note .icon { color: var(--ui-orange); }
.button { min-height: 44px; border-radius: var(--ui-radius-control); padding: 0 15px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.primary { background: var(--ui-blue); }
.secondary { background: var(--ui-blue-fill); color: var(--ui-blue); }
.journey-copy strong, .reservation-copy strong { font-size: 15px; line-height: 1.35; }
.journey-copy small, .reservation-copy > span { color: var(--ui-secondary); font-size: 13px; line-height: 1.5; }
.reservation-row { padding: 15px 16px; }
.reservation-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
.todo-priority { background: var(--ui-card); border: 1px solid var(--ui-separator); }
.priority-icon { color: var(--ui-blue); background: var(--ui-blue-fill); }
.todo-priority small { color: var(--ui-blue); }

/* Bottom sheet and detail copy follow the same rhythm as the cards. */
.bottom-sheet { max-height: 84dvh; border-radius: 22px 22px 0 0; background: var(--ui-canvas); }
.sheet-header { padding: 14px 20px 15px; border-bottom: 1px solid var(--ui-separator); }
.sheet-header h3 { font-size: 20px; line-height: 1.25; }
.sheet-content { padding-left: 20px; padding-right: 20px; }
.detail-section { padding: 18px 0; border-top-color: var(--ui-separator); }
.detail-section h4 { margin-bottom: 10px; color: var(--ui-tertiary); font-size: 12px; line-height: 1.3; }
.detail-desc, .detail-copy { color: var(--ui-secondary); font-size: 14px; line-height: 1.6; }
.location-heading strong { font-size: 16px; line-height: 1.35; }
.location-address { color: var(--ui-secondary); font-size: 13px; line-height: 1.55; }
.action-row > .button { border-radius: var(--ui-radius-control); }

@media (max-width: 360px) {
  .module { padding-left: 16px; padding-right: 16px; }
  .day-header h1 { font-size: 30px; }
  .timeline-item { padding-left: 52px; }
  .timeline-item:before { left: 22px; }
  .event-dot { left: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/*
 * apple.css · Dalian handbook · iOS 26 pass
 * ------------------------------------------------------------------
 * One deterministic visual system: Liquid Glass chrome, a horizontal
 * page pager with real swipe physics, SF-style type ramp, 0.5pt
 * hairlines, spring motion, and full light/dark parity.
 */

/* ------------------------------------------------------------- fonts */
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF, U+2190-21BB;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF, U+2190-21BB;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF, U+2190-21BB;
}

/* ------------------------------------------------------------ tokens */
:root {
  --hero-h: clamp(250px, 40vh, 360px);
  color-scheme: light dark;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "MiSans",
    "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI",
    "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f2f2f7;
  --card: #ffffff;
  --card-pressed: #e8e8ed;
  --desk: #d9d9de;

  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.32);
  --label-4: rgba(60, 60, 67, 0.16);

  --sep: rgba(60, 60, 67, 0.29);
  --hairline: rgba(60, 60, 67, 0.12);

  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.18);
  --fill-3: rgba(118, 118, 128, 0.07);

  --blue: #007aff;
  --blue-soft: rgba(0, 122, 255, 0.1);
  --green: #34c759;
  --green-ink: #1f8a3b;
  --green-soft: rgba(52, 199, 89, 0.13);
  --orange: #ff9500;
  --orange-ink: #9a5b00;
  --orange-soft: rgba(255, 149, 0, 0.13);
  --red: #ff3b30;
  --red-ink: #c4271d;
  --red-soft: rgba(255, 59, 48, 0.1);
  --purple: #af52de;
  --teal: #30b0c7;

  /* Liquid Glass */
  --glass-top: rgba(252, 252, 255, 0.5);
  --glass-bottom: rgba(246, 246, 250, 0.42);
  --glass-rim: rgba(60, 60, 67, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: inset 0 -0.5px 0 rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.07), 0 16px 36px -10px rgba(0, 0, 0, 0.26);
  --glass-blur: blur(24px) saturate(200%) brightness(1.04);

  --shadow-card: none;
  /* Shared Settings-style layout tokens. */
  --page-gutter: 16px;
  --page-bottom-space: calc(126px + env(safe-area-inset-bottom));
  --card-inset: 18px;
  --day-disclosure-inset: calc(var(--card-inset) + 8px);
  --group-gap: 32px;
  --row-min: 56px;
  --r-group: 24px;
  --r-card: var(--r-group);
  --r-sheet: 22px;

  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
  --hero-h: clamp(250px, 40vh, 360px);
    --bg: #000000;
    --card: #1c1c1e;
    --card-pressed: #2c2c2e;
    --desk: #000000;

    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.6);
    --label-3: rgba(235, 235, 245, 0.32);
    --label-4: rgba(235, 235, 245, 0.18);

    --sep: rgba(84, 84, 88, 0.65);
    --hairline: rgba(84, 84, 88, 0.4);

    --fill: rgba(120, 120, 128, 0.32);
    --fill-2: rgba(120, 120, 128, 0.4);
    --fill-3: rgba(118, 118, 128, 0.22);

    --blue: #0a84ff;
    --blue-soft: rgba(10, 132, 255, 0.2);
    --green: #30d158;
    --green-ink: #30d158;
    --green-soft: rgba(48, 209, 88, 0.18);
    --orange: #ff9f0a;
    --orange-ink: #ffb64d;
    --orange-soft: rgba(255, 159, 10, 0.16);
    --red: #ff453a;
    --red-ink: #ff6961;
    --red-soft: rgba(255, 69, 58, 0.16);
    --purple: #bf5af2;
    --teal: #40c8e0;

    --glass-top: rgba(62, 62, 68, 0.68);
    --glass-bottom: rgba(34, 34, 38, 0.58);
    --glass-rim: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.05);

    --shadow-card: none;
  }
}

/* ------------------------------------------------------------- shell */
* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
  background: var(--desk);
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--desk);
  color: var(--label);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-synthesis: weight;
}

h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, a, input, label { touch-action: manipulation; }
::selection { background: rgba(0, 122, 255, 0.22); }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(0, 122, 255, 0.32);
  outline-offset: 2px;
  border-radius: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 40px 90px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
  .app { box-shadow: none; }
}

/* ------------------------------------------------------------- pager */
.pager {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pager::-webkit-scrollbar { display: none; }
.pager.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.pager.is-dragging * { user-select: none; }

.module {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0 var(--page-gutter) var(--page-bottom-space);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  animation: none;
  -webkit-overflow-scrolling: touch;
}
.module.active { display: block; animation: none; }
.module::before {
  content: "";
  display: block;
  height: calc(58px + env(safe-area-inset-top));
}
.module::-webkit-scrollbar { display: none; }

/* ------------------------------------------------ top bar (glass) */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 -0.5px 0 transparent;
  transition: background 0.3s var(--ease-ios), box-shadow 0.3s var(--ease-ios);
}
.topbar.is-collapsed {
  background: linear-gradient(
    180deg,
    rgba(242, 242, 247, 0.72),
    rgba(242, 242, 247, 0.58)
  );
  backdrop-filter: blur(24px) saturate(200%) brightness(1.03);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.03);
  box-shadow: inset 0 -0.5px 0 var(--sep);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.045), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease-ios);
  pointer-events: none;
}
.topbar.is-collapsed::after { opacity: 1; }

@media (prefers-color-scheme: dark) {
  .topbar.is-collapsed {
    background: linear-gradient(180deg, rgba(24, 24, 26, 0.72), rgba(12, 12, 14, 0.56));
  }
  .topbar::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--label);
  transition: opacity 0.2s;
}

.brand .icon { width: 19px; height: 19px; color: var(--blue); stroke-width: 1.8; }

.nav-title {
  position: absolute;
  left: 50%;
  max-width: 68%;
  overflow: hidden;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.96);
  transition: opacity 0.24s var(--ease-ios), transform 0.32s var(--ease-ios);
  pointer-events: none;
}
.topbar.is-collapsed .nav-title { opacity: 1; transform: translate(-50%, 0) scale(1); }

.status-text {
  font-size: 13px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.24s var(--ease-ios);
}
.topbar.is-collapsed .status-text { opacity: 0; transform: translateY(-4px); pointer-events: none; }

/* --------------------------------------------------------- typography */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 16px;
}
.page-head h1,
.day-header h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--label);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.page-context { display: none; }

.now-head .countdown-pill { flex: 0 0 auto; margin-top: 8px; }
.countdown-pill {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: var(--group-gap) 0 9px;
  padding: 0 var(--card-inset);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--label-2);
}
.section-head > span {
  font-size: 13px;
  color: var(--label-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.section-head .text-button { margin-bottom: -6px; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0;
  color: var(--blue);
  font-size: 15px;
}
.text-button .icon { width: 13px; height: 13px; stroke-width: 2.2; }


/* ------------------------------------------------------------ buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--motion-press) var(--ease-press), opacity var(--motion-press) var(--ease-press), background var(--motion-press) var(--ease-press);
}
.button .icon { width: 17px; height: 17px; }

.primary { background: var(--blue); color: #fff; }

.secondary {
  color: var(--blue);
  background: var(--fill-3);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.button.small { background: var(--fill); color: var(--label); }

/* ---------------------------------------------------------- now page */
.focus-card {
  position: relative;
  padding: 20px var(--card-inset);
  background: var(--card);
  border-radius: var(--r-group);
  box-shadow: var(--shadow-card);
}
.focus-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.focus-kicker > .icon { width: 15px; height: 15px; stroke-width: 2; }
.focus-kicker .status-badge { margin-left: auto; }
.focus-card h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.focus-time {
  margin-top: 8px;
  color: var(--blue);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.focus-description { margin-top: 8px; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.focus-note {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  color: var(--orange-ink);
  font-size: 13px;
  line-height: 1.5;
}
.focus-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.focus-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.focus-progress { font-size: 13px; color: var(--label-3); font-variant-numeric: tabular-nums; }

.departure-card {
  display: block;
  width: 100%;
  padding: 18px var(--card-inset);
  text-align: left;
  background: var(--card);
  border-radius: var(--r-group);
  box-shadow: var(--shadow-card);
  transition: background var(--motion-press) var(--ease-press), transform var(--motion-press) var(--ease-press);
}

.departure-top { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--label-2); }
.departure-top > .icon:first-child { width: 17px; height: 17px; color: var(--blue); }
.departure-top strong { font-size: 15px; font-weight: 600; color: var(--label); }
.departure-top > .icon:last-child { width: 13px; height: 13px; margin-left: auto; color: var(--label-3); }
.quiet-status { margin-left: auto; color: var(--green-ink); font-size: 13px; }
.quiet-status + .icon { margin-left: 2px; }

/* Each endpoint aligns all its labels to its outside edge. */
.flight-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.flight-leg { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0; background: none; color: var(--label); text-align: left; }
.flight-leg:nth-child(even) { align-items: flex-end; text-align: right; }
.flight-leg > strong, .flight-leg > b, .flight-leg > span { transform: translateX(var(--flight-ink-shift, 0px)); }
.flight-leg strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.flight-leg b { font-size: 15px; font-weight: 600; }
.flight-leg span { font-size: 13px; color: var(--label-2); overflow-wrap: anywhere; }
.flight-empty { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.5; }
.content-placeholder { display: grid; place-items: center; min-height: 110px; padding: 18px; border: 1px dashed var(--sep); border-radius: var(--r-group); color: var(--label-3); background: var(--fill-3); font-size: 13px; text-align: center; }
.story-missing { color: var(--label-3); font-size: 14px; }
.departure-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--sep);
  font-size: 13px;
  line-height: 1.5;
  color: var(--label-2);
}

.next-event {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--row-min); padding: 16px var(--card-inset);
  text-align: left;
  background: var(--card);
  border-radius: var(--r-group);
  transition: background 0.18s;
}

.next-event > time {
  flex: 0 0 auto;
  min-width: 46px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.next-event > span { flex: 1; min-width: 0; }
.next-event strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.2px; }
.next-event small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.next-event > .icon { width: 13px; height: 13px; color: var(--label-3); stroke-width: 2.2; }

.destination-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  margin: 26px 0 8px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-group);
  color: #fff;
  text-align: left;
  background: #8fa6b3;
  transition: transform 0.24s var(--ease-ios);
}

.destination-preview > img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.destination-preview:after,
.overview-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.55) 100%);
}
.destination-caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.destination-caption small { display: none; }
.destination-caption strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}
.photo-arrow {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.photo-arrow .icon { width: 17px; height: 17px; stroke-width: 2; }


.date-chip {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 5px 2px 6px;
  border-radius: 12px;
  color: var(--label-2);
}
.date-chip small {
  font-size: 11px;
  font-weight: 500;
  color: var(--label-3);
  letter-spacing: 0.02em;
}
.date-chip strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  text-indent: 0;
  text-align: center;
  letter-spacing: 0;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background 0.22s var(--ease-ios), color 0.22s var(--ease-ios),
    transform 0.22s var(--ease-spring);
}

.date-chip.active small { color: var(--blue); }
.date-chip.active strong {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.date-chip.active:after { content: none; }
.date-indicator { display: none; }

/* ------------------------------------------------------------ day page */
.day-header { padding: 18px 0 0; }
.day-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--label-2);
  font-size: 13px;
}
.day-meta span { display: none; }
.day-header > p { margin-top: 8px; color: var(--label-2); font-size: 15px; line-height: 1.55; }
.day-route { display: none; }

.day-reminders {
  margin: 14px 0 22px;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--r-group);
  border: 0; box-shadow: none;
}
.day-reminders summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--row-min);
  padding: 12px var(--day-disclosure-inset) 12px var(--card-inset);
  color: var(--label);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.day-reminders summary::-webkit-details-marker { display: none; }
.day-reminders summary > .icon:first-child { width: 17px; height: 17px; color: var(--orange); stroke-width: 2; }
.day-reminders summary small { color: var(--label-3); font-size: 13px; font-weight: 400; }
.day-reminders summary > .icon:last-child {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-left: auto;
  color: var(--label-3);
  transition: transform 0.3s var(--ease-ios);
}
.day-reminders[open] summary > .icon:last-child { transform: rotate(90deg); }
.day-reminders > div { margin: 0 var(--card-inset); padding: 0 0 16px; border-top: 0.5px solid var(--hairline); }
.day-reminders p { margin: 10px 0 2px; color: var(--label-2); font-size: 15px; line-height: 1.55; }

.timeline {
  margin: 4px 0 0;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--r-group);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  padding: 18px var(--day-disclosure-inset) 18px calc(var(--card-inset) - 4px);
}
.timeline-item:before { content: none; }
.timeline-item + .timeline-item { border-top: 0; }
.timeline-item + .timeline-item::after {
  content: ''; position: absolute; top: 0;
  left: calc(var(--card-inset) + 48px); right: calc(var(--card-inset) + 8px);
  height: 0.5px; background: var(--hairline); pointer-events: none;
}
.timeline-item.schedule-current { background: rgba(0, 122, 255, 0.05); }
.event-dot { display: none; }

.event-top {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  margin: 1px 0 0;
}
.event-top time {
  color: var(--label-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.schedule-past .event-top time { color: var(--label-3); }
.schedule-current .event-top time { color: var(--blue); font-weight: 600; }

.status-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.status-badge.booked,
.status-badge.issued { background: var(--green-soft); color: var(--green-ink); }
.status-badge.optional,
.status-badge.pending { background: var(--orange-soft); color: var(--orange-ink); }
.status-badge.plan { display: none; }
.current-label { color: var(--blue); font-size: 12px; font-weight: 600; }

.event-content {
  --event-media-gap: 10px;
  grid-column: 2;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.transport-event { padding: 0; border: 0; }

.event-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.event-title-row > h2 {
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
  overflow-wrap: break-word;
}
.event-title-row > .icon { width: 16px; height: 16px; margin-top: 3px; stroke-width: 1.9; }
.event-desc { margin-top: 5px; color: var(--label-2); font-size: 14px; line-height: 1.55; }
.event-title-row > .event-disclosure { width: 12px; height: 12px; margin-top: 6px; color: var(--label-3); flex: 0 0 12px; }
.timeline .status-badge { padding: 2px 0; border: 0; background: none; font-weight: 500; font-size: 10px; }
.timeline .status-badge.booked, .timeline .status-badge.issued { color: var(--label-2); }
.timeline .status-badge.optional, .timeline .status-badge.pending { color: var(--orange-ink); }
.event-reminder {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-size: 13px;
  line-height: 1.55;
}
.event-photo {
  position: relative;
  display: block;
  width: 100%;
  margin-top: var(--event-media-gap);
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--fill-3);
}
.event-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform 0.4s var(--ease-ios); }

.event-photo > .icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.event-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: var(--event-media-gap); }
.event-actions .button.action,
.fallback-actions .button.action {
  display: inline-flex;
  border: 0;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(120,120,128,.10);
  box-shadow: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--motion-press) var(--ease-press);
}

.event-actions .action .icon,
.fallback-actions .action .icon { width: 14px; height: 14px; stroke-width: 2; }
.event-actions .fallback-action,
.fallback-actions .fallback-action {
  background: var(--orange-soft) !important;
  color: var(--orange-ink) !important;
}
.event-actions .button.action.ride-action,
.fallback-actions .button.action.ride-action,
.location-section .button.action.ride-action,
.focus-actions .button.ride-action {
  background: var(--green-soft);
  color: var(--green-ink);
  box-shadow: none;
}
.day-end { display: none; }

/* ----------------------------------------------------------- overview */
.overview-cover {
  position: relative;
  height: 224px;
  overflow: hidden;
  border-radius: var(--r-group);
  color: #fff;
  background: #8fa6b3;
}
.overview-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.overview-cover > div { position: absolute; z-index: 1; left: 18px; bottom: 16px; }
.overview-cover p { margin-bottom: 3px; font-size: 13px; opacity: 0.85; }
.overview-cover h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}
.overview-cover span { font-size: 15px; opacity: 0.9; }

.journey-list,
.reservation-list,
.todo-list {
  overflow: hidden;
  background: var(--card);
  border-radius: var(--r-group);
}

.journey-day {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--row-min); padding: 16px var(--card-inset);
  text-align: left;
  transition: background var(--motion-press) var(--ease-press);
}

.journey-day + .journey-day { position: relative; }
.journey-day + .journey-day:before {
  content: "";
  position: absolute;
  left: calc(var(--card-inset) + 48px);
  right: var(--card-inset);
  top: 0;
  height: 0.5px;
  background: var(--hairline);
}
.journey-date {
  display: flex;
  flex: 0 0 34px;
  flex-direction: column;
  align-items: center;
  color: var(--label);
}
.journey-date strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.journey-date small { margin-top: 1px; font-size: 10px; font-weight: 500; color: var(--label-3); letter-spacing: 0.04em; }
.journey-copy { flex: 1; min-width: 0; }
.journey-copy strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.2px; }
.journey-copy small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.journey-day > .icon,
.reservation-row > .icon,
.source-entry > .icon:last-child {
  width: 13px;
  height: 13px;
  color: var(--label-3);
  stroke-width: 2.2;
}

.reservation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--row-min); padding: 16px var(--card-inset);
  text-align: left;
  transition: background var(--motion-press) var(--ease-press);
}

.reservation-row + .reservation-row { position: relative; }
.reservation-row + .reservation-row:before {
  content: "";
  position: absolute;
  left: calc(var(--card-inset) + 50px);
  right: var(--card-inset);
  top: 0;
  height: 0.5px;
  background: var(--hairline);
}
.reservation-row.food-row .reservation-icon { display: none; }
.reservation-row.food-row + .reservation-row.food-row:before { left: var(--card-inset); }
.reservation-icon,
.reservation-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--fill-3);
  color: var(--label-2);
  object-fit: contain;
}
.reservation-icon .icon { width: 19px; height: 19px; stroke-width: 1.9; }
.reservation-icon-flight { background: rgba(0, 122, 255, 0.12); }
.reservation-icon-bus { background: rgba(255, 149, 0, 0.14); }
.reservation-icon-boat { background: rgba(48, 176, 199, 0.14); }
.reservation-icon-hotel { background: rgba(175, 82, 222, 0.12); }
.reservation-icon-restaurant { background: rgba(255, 59, 48, 0.12); }
.reservation-icon-entry { background: rgba(88, 86, 214, 0.12); }
.reservation-copy { flex: 1; min-width: 0; }
.reservation-copy strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.2px; }
.reservation-copy > span {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.source-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 13px 16px;
  background: var(--card);
  border-radius: var(--r-group);
}
.source-entry > .icon:first-child { width: 20px; height: 20px; color: var(--blue); }
.source-entry > span { flex: 1; }
.source-entry strong { display: block; font-size: 17px; font-weight: 600; }
.source-entry small { display: block; margin-top: 2px; color: var(--label-2); font-size: 13px; }

.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 20px 0 4px;
  color: var(--label-3);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.local-note .icon { width: 12px; height: 12px; }

/* --------------------------------------------------------------- todo */
.progress-ring {
  --progress: 0%;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--progress), var(--fill-2) 0);
}
.progress-ring:before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); }
.progress-ring > span { position: relative; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-ring small { font-size: 11px; font-weight: 400; color: var(--label-3); }

.todo-priority {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--row-min); padding: 16px var(--card-inset);
  text-align: left;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: background var(--motion-press) var(--ease-press), transform var(--motion-press) var(--ease-press);
}

.priority-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.priority-icon .icon { width: 18px; height: 18px; stroke-width: 2; }
.todo-priority > span:nth-child(2) { flex: 1; min-width: 0; }
.todo-priority small { display: block; margin-bottom: 1px; color: var(--blue); font-size: 13px; }
.todo-priority strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; }
.todo-priority > .icon:last-child { width: 13px; height: 13px; color: var(--label-3); stroke-width: 2.2; }

.todo-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--row-min); padding: 16px var(--card-inset);
  cursor: pointer;
  scroll-margin-top: 120px;
  transition: background var(--motion-press) var(--ease-press);
}

.todo-item + .todo-item { position: relative; }
.todo-item + .todo-item:before {
  content: "";
  position: absolute;
  left: calc(var(--card-inset) + 34px);
  right: var(--card-inset);
  top: 0;
  height: 0.5px;
  background: var(--hairline);
}
.todo-item input { position: absolute; left: var(--card-inset); top: 17px; width: 22px; height: 22px; margin: 0; opacity: 0; }
.check-visual {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--label-3);
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.22s var(--ease-ios), border-color 0.22s var(--ease-ios);
}
.check-visual > .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.24s var(--ease-spring), opacity 0.2s;
}
.todo-item input:checked + .check-visual { background: var(--blue); border-color: var(--blue); }
.todo-item input:checked + .check-visual > .icon { opacity: 1; color: #fff; transform: scale(1); }
.todo-item input:focus-visible + .check-visual { outline: 4px solid rgba(0, 122, 255, 0.32); outline-offset: 2px; }
.todo-copy { flex: 1; min-width: 0; }
.todo-copy strong { display: block; font-size: 17px; font-weight: 400; line-height: 1.4; }
.todo-copy small { display: block; margin-top: 2px; color: var(--label-2); font-size: 13px; line-height: 1.5; }
.todo-item.completed .todo-copy { opacity: 0.42; }
.todo-item.completed .todo-copy strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.todo-groups > section > .section-head { margin-top: var(--group-gap); }

/* Navigation: a quiet floating control plane; no blue material or double blur. */
.bottom-nav {
  position: absolute; bottom: calc(12px + env(safe-area-inset-bottom));
  left: 0; right: 0; margin: 0 auto; z-index: 100;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  width: min(380px, calc(100% - 40px)); height: 64px; padding: 6px;
  border: .5px solid rgba(255,255,255,.65); border-radius: 32px;
  background: rgba(248,248,250,.76);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.65), 0 2px 4px rgba(0,0,0,.18), 0 7px 14px -4px rgba(0,0,0,.27);
  touch-action: none; isolation: isolate;
}
.nav-pill {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / 4); border-radius: 26px;
  background: rgba(30,35,42,.075);
  transform: translateX(calc(var(--nav-index,0) * 100%)) scaleX(var(--nav-stretch,1));
  transform-origin: center; pointer-events: none;
}
.pager.is-gliding ~ .bottom-nav .nav-pill { transition: transform var(--motion-surface) var(--ease-ios); }
.bottom-nav.is-pressed .nav-pill { background: rgba(30,35,42,.12); }
.nav-button {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 26px;
  background: transparent; color: #595b61; font-size: 10px; line-height: 1.1;
  font-weight: 500; letter-spacing: .02em;
  transition: color var(--motion-state) var(--ease-ios), transform var(--motion-state) var(--ease-ios);
  -webkit-tap-highlight-color: transparent;
}
.nav-button > span { white-space: nowrap; }
.nav-button > .icon { width: 23px; height: 23px; stroke-width: 1.8; }
.nav-button.active { color: #006de1; background: transparent; font-weight: 600; }
.nav-button.active > .icon { stroke-width: 2.15; }
.nav-button:active { transform: scale(.96); }
.nav-count {
  position: absolute; top: 0; right: calc(50% - 25px);
  display: grid; place-items: center; min-width: 15px; height: 15px;
  padding: 0 3px; border: 1.5px solid #f3f3f5; border-radius: 999px;
  background: #e93d43; color: #fff; font-size: 9px; font-style: normal;
  font-weight: 600; line-height: 1;
}
.nav-count:empty { display: none; }
@media (prefers-color-scheme: dark) {
  .bottom-nav { background: rgba(30,30,33,.76); border-color: rgba(255,255,255,.14); box-shadow: inset 0 .5px 0 rgba(255,255,255,.20), 0 2px 4px rgba(0,0,0,.31), 0 7px 14px -4px rgba(0,0,0,.50); }
  .nav-pill { background: rgba(255,255,255,.095); }
  .bottom-nav.is-pressed .nav-pill { background: rgba(255,255,255,.15); }
  .nav-button { color: #b7b7bc; }
  .nav-button.active { color: #58aaff; }
  .nav-count { border-color: #303033; }
}

/* ----------------------------------------------------------------- sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  visibility: hidden;
  transition: background 0.4s var(--ease-ios), visibility 0.4s;
}
.sheet-backdrop.active { background: rgba(0, 0, 0, 0.4); pointer-events: auto; visibility: visible; }

.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(100%, 600px);
  max-height: 90dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, 105%);
  background: var(--bg);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.24), 0 -1px 0 var(--sep);
  transition: transform 0.46s var(--ease-ios);
  scrollbar-width: none;
}
.bottom-sheet::-webkit-scrollbar { display: none; }
.sheet-backdrop.active .bottom-sheet { transform: translate(-50%, 0); }

.sheet-handle {
  position: sticky;
  top: 0;
  z-index: 6;
  width: 36px;
  height: 5px;
  margin: 8px auto -13px;
  border-radius: 999px;
  background: var(--label-4);
}

.sheet-header {
  position: sticky;
  border: 0;
  box-shadow: none;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, rgba(242, 242, 247, 0.96), rgba(242, 242, 247, 0.86));
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  touch-action: none;
  cursor: grab;
}
.sheet-header:active { cursor: grabbing; }
.sheet-header:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  background: none;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .sheet-header { background: linear-gradient(180deg, rgba(18, 18, 20, 0.9), rgba(18, 18, 20, 0.72)); }
  .sheet-header:after { background: linear-gradient(180deg, rgba(18, 18, 20, 0.9), rgba(18, 18, 20, 0)); }
}
.sheet-header h3 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  max-width: calc(100% - 46px);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.4px;
  text-wrap: balance;
}
.sheet-close {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--label-2);
  transition: transform var(--motion-press) var(--ease-press);
}

.sheet-close .icon { width: 13px; height: 13px; stroke-width: 2.4; }

.sheet-content { padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }

.detail-section {
  margin: 0 0 12px;
  padding: 18px var(--card-inset);
  background: var(--card);
  border-radius: var(--r-group);
}
.detail-section:last-child { margin-bottom: 0; }
.detail-intro { padding: 18px var(--card-inset); }
.detail-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.detail-meta time { color: var(--label-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.detail-desc,
.detail-copy { color: var(--label-2); font-size: 15px; line-height: 1.6; }
.detail-section h4 { margin-bottom: 8px; color: var(--label-3); font-size: 13px; font-weight: 400; }
.detail-list { margin: 0; padding-left: 18px; }
.detail-list li { margin: 6px 0; color: var(--label-2); font-size: 15px; line-height: 1.6; }

.location-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
.location-copy { min-width: 0; min-height: 94px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.location-copy h4 { margin: 0; font-size: 13px; line-height: 1.4; color: var(--label-3); }
.location-copy strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.location-address { margin: 0; color: var(--label-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.action-row { display: flex; gap: 8px; margin-top: 14px; }
.action-row > .button { flex: 1; min-height: 44px; padding: 0 12px; font-size: 15px; }

.detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.detail-gallery::-webkit-scrollbar { display: none; }
.detail-gallery > img {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 12px;
  object-fit: cover;
  background: var(--fill-3);
  scroll-snap-align: start;
  cursor: zoom-in;
}
.detail-gallery:has(> img:only-child) { grid-auto-columns: 100%; }
.detail-gallery:has(> img:only-child) > img { aspect-ratio: 1.9; }
.detail-gallery > img.ticket-thumb { aspect-ratio: 1; object-fit: contain; padding: 10px; background: var(--card); }
/* Photos share the adjacent cards' outer edges, without a card wrapper. */
.sheet-content .detail-section.photo-section { padding: 0; background: transparent; border: 0; box-shadow: none; }
.photo-section .detail-gallery { grid-auto-columns: 100%; background: transparent; }
.photo-section .detail-gallery > img { background: transparent; border-radius: var(--r-group); }
.detail-photo-caption { margin: 8px 0 0; color: var(--label-2); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.detail-empty-thumb {
  display: grid;
  place-items: center;
  width: 80px;
  height: 68px;
  margin-top: 10px;
  border: 1px dashed var(--label-4);
  border-radius: 10px;
  color: var(--label-3);
  font-size: 11px;
}
.sheet-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--fill-3);
}
.sheet-code-label { width: 100%; color: var(--label-3); font-size: 12px; }
.sheet-code-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.sheet-code > .button { min-height: 32px; margin-left: auto; padding: 0 12px; font-size: 13px; }
.credential-docs { margin-top: 12px; }
.credential-docs h4 { margin: 12px 0 8px; }

.sheet-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; flex: 0 0 auto; padding: 0; color: var(--blue); background: none; font-size: 15px; }
.sheet-back[hidden] { display: none; }
.sheet-back .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.location-section .action-row { display: flex; justify-content: flex-end; gap: 6px; margin: 0; align-self: center; }
.location-section .action-row > .button { flex: 0 1 auto; min-height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(120,120,128,.10); color: var(--blue); font-size: 13px; box-shadow: none; }
.location-section .action-row .icon { width: 14px; height: 14px; stroke-width: 2; }
.fallback-section-label, .fallback-list-label { color: var(--label-3); font-size: 13px; font-weight: 400; }
.fallback-list-label { margin: 20px var(--card-inset) 8px; }
.fallback-place { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 12px 0; background: none; text-align: left; color: var(--label); }
.fallback-place > span { min-width: 0; }
.fallback-place strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.fallback-place small { display: block; margin-top: 4px; color: var(--label-2); font-size: 14px; line-height: 1.5; }
.fallback-place > .icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--label-4); }
.fallback-place:active { opacity: .55; }
.fallback-place:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.fallback-places { margin: 0; }
.fallback-places .fallback-place + .fallback-place { border-top: .5px solid var(--sep); }

.fallback-card {
  margin: 0 0 12px;
  padding: 4px var(--card-inset);
  background: var(--card);
  border-radius: var(--r-group);
}
.fallback-card:last-child { margin-bottom: 0; }
.fallback-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fallback-label { font-size: 17px; font-weight: 600; line-height: 1.4; }
.fallback-confidence { flex: 0 0 auto; color: var(--label-3); font-size: 12px; }
.fallback-trigger { margin-top: 4px; color: var(--orange-ink); font-size: 13px; line-height: 1.5; }
.fallback-action-copy { margin-top: 6px; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.fallback-location {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.5;
}
.fallback-location .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--blue); }
.fallback-meta { margin-top: 6px; color: var(--label-3); font-size: 12px; line-height: 1.5; }
.fallback-note { display: flex; gap: 5px; margin-top: 6px; color: var(--orange-ink); font-size: 13px; line-height: 1.5; }
.fallback-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.fallback-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.fallback-actions .button { min-height: 32px; padding: 0 12px; font-size: 13px; }

@media (prefers-color-scheme: dark) {
  .sheet-content .detail-section,
  .sheet-content .fallback-card { background: #2c2c2e; }
  .sheet-content .sheet-code,
  .sheet-content .detail-gallery > img.ticket-thumb { background: #3a3a3c; }
}

/* ---------------------------------------------------------- image viewer */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-ios), visibility 0.3s;
}
.image-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.image-modal > img { max-width: 94%; max-height: 78dvh; object-fit: contain; }
.modal-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.4);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(10px);
}
.image-caption {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: 88%;
  padding: 10px 16px;
  transform: translate(-50%, 14px) scale(0.96);
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24), inset 0 0.5px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-ios), transform 0.34s var(--ease-spring);
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ---------------------------------------------------------- responsive */
@media (min-width: 600px) {
  :root { --page-gutter: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .day-header h1, .page-head h1 { font-size: 36px; }
  .destination-preview { height: 240px; }
}

@media (max-width: 380px) {
  :root { --page-gutter: 14px; --card-inset: 16px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .page-head h1, .day-header h1 { font-size: 31px; letter-spacing: -0.6px; }
  .focus-card h2 { font-size: 22px; }
  .flight-route strong { font-size: 26px; }
  .journey-copy strong, .reservation-copy strong, .event-title-row > h2, .todo-copy strong { font-size: 16px; }
  .event-desc, .detail-desc, .focus-description { font-size: 14px; }
  .nav-title { max-width: 42%; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   Apple Music style day page
   ================================================================ */
.pager { background: transparent; }

.module[data-module="days"], .ambient { --day-surface: var(--cover-surface-light, #365e72); }
.module[data-module="days"] { background: transparent; }

.ambient {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: var(--day-surface);
  transition: opacity 0.6s var(--ease-ios);
}
.ambient.on { opacity: 1; }

.module[data-module="days"]::before { display: none; }

/* The cover fades into its sampled surface; the title and page share that surface.
   Keep all layers full-height so the fade has no horizontal seam. */
.module[data-module="days"] { --hero-h: clamp(230px, 40vh, 340px); --hero-fade: 124px; }
.day-hero {
  position: relative;
  margin: 0 calc(-1 * var(--page-gutter));
  min-height: calc(var(--hero-h, 300px) + var(--hero-fade, 112px));
  height: auto;
  display: flow-root;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  background: var(--day-surface);
}
.day-hero-tint {
  position: absolute;
  inset: 0;
  background-color: var(--day-surface);
}
/* One photo layer and one continuous mask preserve the source image's color. */
.hero-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}
.hero-layer > i {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.day-hero-bleed, .day-hero-soft { display: none; }
.day-hero-photo > i {
  filter: blur(var(--hero-blur, 0px));
  opacity: calc(1 - var(--hero-p, 0) * 0.3);
}
/* Fade the photo itself to zero; do not rely on an overlay hiding its edge.
   The final 20% contains only the hero's solid base, including fractional pixels. */
.day-hero-photo {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 26%, rgba(0,0,0,.96) 32%, rgba(0,0,0,.90) 40%, rgba(0,0,0,.78) 48%, rgba(0,0,0,.58) 56%, rgba(0,0,0,.30) 64%, rgba(0,0,0,.08) 72%, transparent 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 26%, rgba(0,0,0,.96) 32%, rgba(0,0,0,.90) 40%, rgba(0,0,0,.78) 48%, rgba(0,0,0,.58) 56%, rgba(0,0,0,.30) 64%, rgba(0,0,0,.08) 72%, transparent 80%, transparent 100%);
}
.day-hero-veil { display: none; }
.day-hero-scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 96px, rgba(0, 0, 0, 0) 150px);
}

.day-head {
  position: relative;
  margin: var(--hero-h, 300px) var(--page-gutter) 0;
  z-index: 2;
  padding: 14px 0 8px;
}
.day-hero-date {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.94);
}
.day-head h1 {
  margin-top: 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-wrap: balance;
}
.day-hero-sub {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.94);
}

.day-reminders { margin: 16px 0 0; }
.timeline { margin-top: 12px; }

.topbar.is-collapsed { box-shadow: none; }
.topbar.on-hero .brand,
.topbar.on-hero .status-text,
.topbar.on-hero .nav-title {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.topbar.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.event-reminder { display: none; }

.sheet-sub {
  margin: 0 4px 6px;
  color: color-mix(in srgb, var(--label) 64%, var(--bg));
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sheet-note { margin: 0 4px 14px; }
.detail-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  color: color-mix(in srgb, var(--label) 70%, var(--bg));
  font-size: 14px;
  line-height: 1.55;
}
.detail-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--orange);
}
.price-chip {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  .module[data-module="days"], .ambient { --day-surface: var(--cover-surface-dark, #284759); }
}

/* brand removed from the nav — the tab bar owns navigation */
.topbar .brand { display: none; }

/* ------------------------------------------- day body：左右滑动的两片内容 */
.day-body { position: relative; isolation: isolate; }
.day-pane { position: relative; }
.day-ghost {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
}

/* --------------------------------------------- 时间线：标题、看点、简介分层 */
.event-sub {
  margin-top: 2px;
  color: var(--label-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.event-sub + .event-desc { margin-top: 5px; }

/* --------------------------------------------------- 详情卡：正文三段结构 */
.sheet-key {
  margin: -2px 4px 10px;
  color: var(--label);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.story-card { padding: 18px var(--card-inset); }
.story-block + .story-block {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 0.5px solid var(--sep);
}
.story-block h4 {
  margin: 0 0 6px;
  color: color-mix(in srgb, var(--label) 52%, var(--bg));
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.story-copy {
  margin: 0;
  color: var(--label);
  font-size: 15px;
  line-height: 1.68;
  text-align: justify;
  text-justify: inter-ideograph;
  text-align-last: left;
  text-wrap: wrap;
}
.voice-block .story-copy { color: var(--label); }

/* 时间线图标：只给吃的和航班留颜色，其余退成中性灰 */
.event-icon-restaurant { color: #bf7440 !important; }
.event-icon-flight { color: #3f7fd0 !important; }
.event-icon-bus, .event-icon-boat, .event-icon-hotel, .event-icon-entry, .event-icon-place { color: var(--label-3) !important; }

/* 列表分隔线只留一条：抵消 rethink.css 里的 border（会跟 :before 细线叠成双线） */
.journey-day + .journey-day,
.reservation-row + .reservation-row,
.todo-item + .todo-item { border-top: 0; }

/* One full-width reading sheet; keep the existing content gutters and coordinates. */
.day-pane-list { position: relative; z-index: 2; isolation: isolate; }
.day-pane-list::before {
  content: ""; position: absolute;
  left: calc(-1 * var(--page-gutter)); right: calc(-1 * var(--page-gutter));
  top: 0; bottom: calc(-1 * var(--page-bottom-space));
  z-index: -1; pointer-events: none;
  border-radius: 28px 28px 0 0; background: var(--card);
}
.day-pane-list .timeline, .day-pane-list .day-reminders { background: transparent; }

/* 日期条压在色场上，未选中的日期要压深一点才看得清 */
.date-chip { color: color-mix(in srgb, var(--label) 72%, var(--bg)); }
.date-chip small { color: color-mix(in srgb, var(--label) 52%, var(--bg)); }
.date-chip.active small { color: var(--blue); }


.date-chips { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.date-chips::-webkit-scrollbar { display: none; }
html[data-mod="days"] .date-chips { gap: 4px; }
html[data-mod="days"] .date-chip { min-height: 64px; }



/* The days page owns its hero and sticky date chrome; no duplicate global header. */
html[data-mod="days"] .topbar { display: none; }

/* Original floating date material. */
.module[data-module="days"] {
  --day-safe-top: env(safe-area-inset-top, 0px);
  scroll-padding-top: calc(112px + var(--day-safe-top));
}
.day-pane-head { isolation: isolate; z-index: 1; }
.day-chrome {
  position: sticky; top: 0; z-index: 30;
  margin: 0; padding: calc(10px + var(--day-safe-top)) 0 0;
  background: transparent; border: 0; pointer-events: none;
}
.date-bar, .day-chrome.is-stuck .date-bar {
  position: relative; display: flex; flex-direction: column; pointer-events: auto;
  margin: 0; padding: 8px 14px 10px; border: 0; border-radius: 22px;
  background: rgba(250,250,252,.66);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.65), 0 2px 4px rgba(0,0,0,.18), 0 7px 14px -4px rgba(0,0,0,.27);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .date-bar, .day-chrome.is-stuck .date-bar {
    background: rgba(30,30,34,.66);
    box-shadow: inset 0 .5px 0 rgba(255,255,255,.20), 0 2px 4px rgba(0,0,0,.31), 0 7px 14px -4px rgba(0,0,0,.50);
  }
}

/* One feedback vocabulary: rows tint; small controls dim; scrolling cancels. */
:where(button, a, summary, [role="button"], .todo-item) { -webkit-tap-highlight-color: transparent; }
:where(.departure-card,.next-event,.destination-preview,.journey-day,.reservation-row,.todo-priority,.todo-item,.timeline-item):active { transform: none; }
:is(.departure-card,.next-event,.journey-day,.reservation-row,.todo-priority,.todo-item,.timeline-item).is-pressed { background: var(--card-pressed); }
:where(button,a,summary,.destination-preview,[data-preview-src]).is-pressed { filter: brightness(.90); }
.timeline-item { transition: background-color var(--motion-press) var(--ease-press); }
:where(button,a,summary,[role="button"]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  :where(button,a,summary,.destination-preview,[data-preview-src]).is-pressed { filter: brightness(1.2); }
}

/* Sheet header and body share a 20px axis and a real metadata inset. */
.sheet-header { padding: 20px 20px 12px; background: var(--bg); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet-header:after { display: none; }
.sheet-header h3 { max-width: calc(100% - 56px); }
.sheet-close { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; }
.sheet-content { padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); }
.sheet-sub { margin: 0 0 10px; line-height: 1.5; }
.sheet-key { margin: 0 0 16px; }
.sheet-note { margin: 0 0 20px; }
.bottom-sheet { border: 0; transition: transform 360ms var(--ease-ios); }
.sheet-backdrop { transition: background var(--motion-surface) var(--ease-ios), visibility var(--motion-surface) var(--ease-ios); }
details.is-animating { overflow: hidden; }
.modal-close { width: 44px; height: 44px; }
.date-chip.is-pressed strong { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .bottom-sheet, .sheet-backdrop, .timeline-item { transition-duration: 0ms; }
  details[open] > :not(summary) { animation: none; }
}

/* Unified motion pass: the same iOS deceleration governs every surface.
   Springs are reserved for the nav indicator; content never overshoots. */
:root {
  --motion-enter: 420ms;
  --motion-surface: 360ms;
  --motion-state: 220ms;
  --motion-press: 140ms;
  --motion-curve: cubic-bezier(.32,.72,0,1);
}
.pager { scroll-behavior: auto; }
.bottom-sheet { transition-duration: var(--motion-surface); transition-timing-function: var(--motion-curve); }
.sheet-backdrop { transition-duration: var(--motion-surface); transition-timing-function: var(--motion-curve); }
.image-modal { transition-duration: var(--motion-surface); transition-timing-function: var(--motion-curve); }
.date-chip strong, .date-chip small, .nav-button, .nav-pill {
  transition-duration: var(--motion-state);
  transition-timing-function: var(--motion-curve);
}
.timeline-item, .journey-day, .reservation-row, .todo-item, .departure-card, .next-event {
  transition-duration: var(--motion-press);
  transition-timing-function: var(--motion-curve);
}
.day-reminders summary > .icon:last-child { transition-duration: var(--motion-state); transition-timing-function: var(--motion-curve); }
.event-photo img { transition-duration: var(--motion-surface); transition-timing-function: var(--motion-curve); }
@media (prefers-reduced-motion: reduce) {
  :root { --motion-enter: 0ms; --motion-surface: 0ms; --motion-state: 0ms; --motion-press: 0ms; }
}
