/* Modern Kansai travel companion · mobile first */
:root {
  --paper: #f6f5f1;
  --white: #fff;
  --ink: #253b33;
  --muted: #6d7771;
  --line: #e6e8e1;
  --green: #294b3d;
  --red: #c85332;
  --soft: #edf1eb;
  --warm: #fbede6;
  --radius: 18px;
  --shadow: 0 3px 18px rgb(31 49 39 / 4%);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: var(--green); text-underline-offset: 4px; }
a, button, input, select, summary { outline-offset: 4px; }
:is(button, a, input, select, summary):focus-visible { outline: 2px solid var(--red); }
button:disabled { cursor: default; opacity: .5; }
button, a { transition: color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button:active { transform: translateY(1px); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: pretty; }
input { min-width: 0; accent-color: var(--green); }
ul, ol { padding-left: 23px; }
li + li { margin-top: 8px; }
strong { font-weight: 650; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 8px; }
.app-shell { width: 100%; max-width: 850px; margin: 0 auto; min-height: 100vh; }
main { min-width: 0; padding: 0 18px; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-jp { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 35px; border: 1px solid #b45138; border-radius: 6px; color: #b45138; font-size: 19px; letter-spacing: 0; line-height: 1; font-family: serif; }
.brand-name { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: .035em; }
.brand small { display: block; font-size: 8px; line-height: 1.3; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.top-actions { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.icon-text { font-size: 12px; color: #53665c; padding: 9px 7px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 10px; border-radius: 50%; font-size: 26px; line-height: 1; }
.icon-button svg { width: 21px; height: 21px; fill: currentColor; }
.sticky-dates { position: sticky; top: 0; z-index: 25; padding: 0 18px 12px; background: var(--paper); }
.day-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid #e8eae3; border-radius: 15px; background: #eeeee8; }
.day-tab { min-width: 0; min-height: 59px; padding: 8px 2px 7px; border-radius: 11px; line-height: 1.2; text-align: center; color: #718075; }
.tab-date { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tab-city { display: block; font-size: 10px; margin-top: 5px; white-space: nowrap; }
.day-tab[aria-selected="true"] { color: #fff; background: var(--green); box-shadow: 0 3px 8px rgb(37 67 52 / 14%); }
.day-tab[aria-selected="true"] .tab-date { font-weight: 650; }
/* Chapter photograph: the heading belongs on the photograph, not below it. */
.chapter-cover { position: relative; overflow: hidden; margin: 2px 0 0; border-radius: 22px; isolation: isolate; background: #d5ddd2; }
.chapter-cover figure { height: 252px; position: relative; }
.chapter-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.chapter-cover figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 31 23 / 4%) 8%, rgb(15 31 23 / 20%) 39%, rgb(15 31 23 / 78%) 100%); pointer-events: none; }
.cover-text { position: absolute; z-index: 1; left: 22px; right: 20px; bottom: 24px; color: #fff; }
.cover-kicker { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; line-height: 1.5; font-weight: 650; margin-bottom: 10px; opacity: .94; }
.cover-kicker > span { margin-left: auto; padding-left: 10px; font-size: 9px; letter-spacing: .05em; font-weight: 450; white-space: nowrap; opacity: .85; }
.cover-kicker::before { content: ""; width: 16px; height: 1px; background: #fff; margin-right: 8px; opacity: .8; }
.cover-title, .cover-city { display: block; font-size: 32px; line-height: 1.25; font-weight: 650; letter-spacing: -.035em; text-shadow: 0 1px 18px #0b20192b; }
.cover-subtitle { font-size: 12px; line-height: 1.7; margin-top: 11px; max-width: 31em; color: #fff; opacity: .9; }
.cover-caption { position: absolute; z-index: 1; right: 13px; top: 12px; bottom: auto; max-width: 65%; font-size: 9px; line-height: 1.5; text-align: right; color: #fff; text-shadow: 0 1px 5px #183324; opacity: .9; }
.cover-caption small { display: block; font-size: 8px; }
.return-cover { position: relative; min-height: 252px; padding: 30px 24px; overflow: hidden; background: #dfe6d9; color: var(--green); }
.return-kicker { font-size: 10px; letter-spacing: .14em; }
.return-flight { position: relative; z-index: 1; font-size: 58px; font-weight: 500; line-height: 1.3; letter-spacing: -.06em; margin: 22px 0 6px; font-variant-numeric: tabular-nums; }
.return-flight span { font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-right: 12px; }
.return-cover > p { position: relative; z-index: 1; font-size: 13px; }
.return-cover svg { position: absolute; right: -10px; bottom: -7px; width: 210px; height: 150px; opacity: .7; }
/* Legacy headings remain accessible to scripts and screen readers. */
.day-header { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow, .small-label { display: block; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .13em; color: var(--muted); }
.day-dashboard { margin: 15px 0 18px; }
.day-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.day-stats > * { position: relative; min-width: 0; padding: 14px 16px 13px; text-align: left; background: #fff; border: 1px solid #eceee7; border-radius: 15px; box-shadow: var(--shadow); }
.day-stats :is(.stat-label, .day-stat-label, small) { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); font-weight: 450; letter-spacing: .01em; }
.day-stats :is(strong, .stat-value, .day-stat-value) { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.day-stats strong > span { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 400; color: #809176; }
.day-stats strong > em { font-size: 11px; color: #7d8c70; font-weight: 450; font-style: normal; letter-spacing: 0; }
.day-stats :is(p, .stat-note) { font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.progress-track { height: 4px; background: #e8ece6; overflow: hidden; border-radius: 5px; margin-top: 11px; }
.progress-track > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--red); transition: width .28s ease; }
.route-strip { display: flex; align-items: center; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 14px 0 0; max-width: 100%; }
.route-strip::-webkit-scrollbar { display: none; }
.route-chip { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: flex-start; gap: 6px; min-height: 44px; max-width: 160px; padding: 8px 11px 8px 8px; border-radius: 11px; color: #51645a; background: #eeeee8; font-size: 11px; white-space: nowrap; }
.route-chip > :is(span:first-child, small, i, b) { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 21px; height: 21px; border-radius: 7px; background: #fff; color: #6f7c70; font-size: 10px; font-style: normal; font-weight: 600; }
.route-chip[aria-pressed="true"], .route-chip.is-active { color: #fff; background: var(--green); }
.route-chip[aria-pressed="true"] > :is(span:first-child, small, i, b) { background: #ffffff21; color: #fff; }
.journey-focus { position: relative; margin: 0 0 13px; padding: 19px 18px 17px; border: 1px solid #dde4d8; border-radius: var(--radius); background: #eaf0e5; }
.focus-label { display: flex; align-items: center; gap: 7px; color: #63785c; font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .04em; margin-bottom: 7px; }
.focus-label > span:last-child { margin-left: auto; color: #697d61; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; background: var(--red); border-radius: 50%; }
.focus-title { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; font-weight: 650; color: var(--ink); }
.focus-meta { font-size: 13px; line-height: 1.7; margin-top: 6px; color: #60715e; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.focus-actions > :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 15px; border-radius: 11px; font-size: 13px; line-height: 1.4; font-weight: 550; text-decoration: none; }
.focus-actions > :first-child { background: var(--green); color: #fff; box-shadow: 0 3px 6px #294b3d12; }
.focus-actions > :not(:first-child) { border: 1px solid #ccd8c5; color: var(--green); background: #ffffff5c; }
.focus-actions svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 25px; }
.quick-actions > :is(button, a) { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; min-width: 0; padding: 10px 12px; border: 1px solid #e2e6dc; border-radius: 12px; background: #fff; font-size: 12px; font-weight: 550; text-decoration: none; box-shadow: 0 2px 4px #233b2a03; }
.quick-actions svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.notice { padding: 14px 15px; margin: 12px 0 19px; border: 1px solid #edd7c9; border-radius: 13px; font-size: 13px; color: #87513c; background: var(--warm); line-height: 1.8; }
.notice strong { display: block; margin-bottom: 4px; color: #94462b; font-weight: 600; }
.itinerary-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 1px 14px; }
.itinerary-toolbar .small-label { font-size: 8px; letter-spacing: .15em; color: #849083; margin-bottom: 3px; }
.itinerary-toolbar h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 650; }
.itinerary-toolbar h2 > span { margin-left: 6px; font-size: 11px; font-weight: 450; letter-spacing: 0; color: var(--muted); }
.search-toggle { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 8px 3px 8px 10px; color: #637469; font-size: 11px; }
.search-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.reading-controls { border: 1px solid #e5e8df; border-radius: 15px; padding: 12px 12px 1px; margin: 0 0 15px; background: #fdfdf9; }
.reading-tools { display: flex; align-items: center; gap: 8px; }
.search-wrap { flex: 1; min-width: 0; border: 1px solid #dfe5d9; border-radius: 10px; padding: 0 11px; background: #fff; }
.search-wrap input { display: block; width: 100%; padding: 10px 0; min-height: 44px; border: 0; background: transparent; font-size: 14px; color: var(--ink); }
.search-wrap input:focus-visible { outline-offset: 2px; border-radius: 4px; }
.search-wrap:focus-within { border-color: #819c84; box-shadow: 0 0 0 2px #294b3d09; }
.saved-filter { flex-shrink: 0; padding: 8px 11px; min-height: 44px; border: 1px solid #e0e5d9; border-radius: 10px; font-size: 12px; white-space: nowrap; color: #637469; }
.saved-filter[aria-pressed="true"] { background: #ebf0e4; border-color: #bdccb4; color: var(--green); }
.saved-filter span { font-size: 11px; margin-left: 3px; }
.filter-scroll { overflow-x: auto; scrollbar-width: none; margin: 8px -3px 0; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-row { display: flex; gap: 4px; width: max-content; }
.filter-chip { padding: 8px 11px; border-radius: 9px; font-size: 12px; white-space: nowrap; color: #6a776a; }
.filter-chip[aria-pressed="true"] { color: #fff; background: var(--green); }
.list-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 11px; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; font-size: 12px; color: #61755d; }
.list-caption .text-button { font-size: 11px; }
#timeline { display: grid; gap: 13px; }
.phase-card { min-width: 0; overflow: hidden; border: 1px solid #e8ebe3; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.phase-top { padding: 17px 17px 12px; }
.phase-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 7px; line-height: 1.4; }
.phase-time { font-size: 13px; color: var(--red); font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.phase-kind { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border-radius: 6px; font-size: 12px; line-height: 1.3; white-space: nowrap; color: #687b69; background: #f1f3ed; }
.phase-card[data-type="food"] .phase-kind { color: #a15a3c; background: #fbefe8; }
.phase-card[data-type="shopping"] .phase-kind { color: #70634e; background: #f3eee5; }
.phase-card[data-type="transport"] .phase-kind { color: #5d7283; background: #eef3f5; }
.phase-title { font-size: 18px; line-height: 1.5; letter-spacing: -.025em; font-weight: 650; color: var(--ink); }
.phase-title > button { display: block; min-width: 0; width: 100%; padding: 0; min-height: 44px; text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; }
.phase-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.75; color: #5f6f64; margin-top: 5px; }
.transport-summary { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.65; color: #6b7b6d; margin-top: 9px; }
.transport-summary svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; margin-top: 2px; }
.transport-summary > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phase-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; font-size: 12px; line-height: 1.5; font-weight: 550; color: #5c7457; margin-top: 10px; }
.cost-other { font-weight: 400; color: #778270; }
.phase-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 11px 6px 17px; border-top: 1px solid #eef0e9; background: #fdfefa; }
.phase-more { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; min-height: 44px; padding: 7px 0; font-size: 13px; font-weight: 550; color: var(--green); white-space: nowrap; }
.phase-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.chevron { font-size: 17px; line-height: 1; display: inline-block; }
.phase-more[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.phase-actions { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.phase-map { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 8px 7px; font-size: 11px; text-decoration: none; white-space: nowrap; color: #6a7d64; }
.phase-map svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.complete-button, .favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; height: 44px; padding: 8px; border-radius: 10px; font-size: 12px; color: #718068; white-space: nowrap; }
.complete-button svg, .favorite-button svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; }
.complete-button[aria-pressed="true"] { color: var(--green); background: #eaf0e3; }
.complete-button[aria-pressed="true"] svg { fill: #dbe6d3; stroke-width: 1.7; }
.favorite-button[aria-pressed="true"] { color: var(--red); background: #faeee7; }
.favorite-button[aria-pressed="true"] svg { fill: #f2cdbc; }
.phase-card.is-complete { border-color: #d6e1cd; }
.phase-card.is-complete .phase-time { color: #5f7e55; }
.phase-card.is-complete .phase-kind { background: #edf3e8; }
.phase-card.highlight { border-color: #e9d9cd; box-shadow: 0 3px 18px rgb(107 70 40 / 5%); }
.phase-photo { margin: 12px 0 7px; border-radius: 11px; overflow: hidden; }
.phase-photo img { display: block; width: 100%; height: 142px; object-fit: cover; }
.phase-photo figcaption { font-size: 9px; line-height: 1.4; padding: 5px 0 0; background: #fff; color: #7c8874; }
.phase-details { padding: 3px 17px 16px; }
/* Detailed itinerary lives in a bottom sheet. */
.detail-item { padding: 19px 0 22px; border-bottom: 1px solid #e8ece1; }
.detail-item:last-child { border: 0; padding-bottom: 2px; }
.detail-item-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 9px; }
.detail-item time { font-size: 12px; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-item h4 { font-size: 16px; font-weight: 650; line-height: 1.6; }
.detail-item p, .detail-item li { font-size: 15px; line-height: 1.9; color: #536753; }
.detail-item p + p { margin-top: 10px; }
.detail-item .item-place { color: #3c5a3b; font-weight: 600; margin: 0 0 8px; }
.transit-box { padding: 14px 15px; margin: 14px 0; border: 1px solid #e1e8d8; border-radius: 12px; background: #f0f4ea; }
.transit-heading { color: #3e5d38; font-size: 13px; font-weight: 650; }
.transit-duration { font-size: 12px; color: #718567; margin-top: 7px; }
.transit-steps { padding-left: 20px; margin: 10px 0 0; }
.transit-steps li { font-size: 15px; line-height: 1.85; color: #56704b; }
.detail-item .item-address { font-size: 12px; color: #71816c; }
.detail-item .item-price { font-size: 13px; padding-top: 8px; color: #4b6e40; font-weight: 550; }
.item-tips { margin: 13px 0; padding-left: 20px; }
.detail-sources { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.detail-sources a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; line-height: 1.65; color: #67845b; }
.item-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.map-link, .copy-address { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 13px; border: 1px solid #d9e1cf; border-radius: 10px; background: #fff; color: #4c6b40; text-decoration: none; font-size: 12px; }
.copy-address svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.section-sheet-summary { margin-bottom: 17px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.section-sheet-summary > p { color: #5d6f5d; font-size: 14px; line-height: 1.85; }
.section-sheet-summary :is(h2, h3) { font-size: 23px; line-height: 1.45; letter-spacing: -.025em; margin-bottom: 8px; }
.sheet-cost { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 12px; font-size: 12px; color: #5b7750; font-weight: 550; }
.sheet-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0 3px; }
.sheet-primary-actions :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #d6dfcb; border-radius: 11px; text-decoration: none; font-size: 13px; font-weight: 550; color: var(--green); background: #f5f8f0; }
.sheet-primary-actions :first-child { background: var(--green); color: #fff; border-color: var(--green); }
.sheet-primary-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sheet-section-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet-section-nav button { display: flex; align-items: center; gap: 6px; min-height: 44px; max-width: 49%; padding: 7px 0; text-align: left; font-size: 12px; color: #5f7b54; }
.sheet-section-nav button:last-child { text-align: right; margin-left: auto; }
/* Invitations are quiet; the itinerary keeps priority. */
.inspiration-prompt { padding: 23px 22px 13px; margin: 23px 0 20px; border: 1px solid #dedfd0; border-radius: var(--radius); background: #e9eddf; }
.inspiration-prompt .small-label { font-size: 9px; color: #71815f; }
.inspiration-prompt h2 { margin: 7px 0; font-size: 22px; line-height: 1.5; letter-spacing: -.02em; font-weight: 550; color: #3f5934; }
.inspiration-prompt p { font-size: 12px; line-height: 1.9; color: #6d805b; }
.inspiration-prompt button { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; padding: 9px 0; margin-top: 9px; min-height: 44px; font-size: 12px; font-weight: 550; color: #506e3e; }
.inspiration-prompt button span { font-size: 22px; }
.day-footnote { padding: 4px 2px 20px; font-size: 12px; line-height: 1.9; color: #78836e; }
.day-footnote p + p { margin-top: 9px; }
.day-footnote strong { font-weight: 550; color: #5d7751; }
.next-day-nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #e0e5d7; }
.day-step-button { max-width: 47%; min-height: 44px; font-size: 13px; text-align: left; padding: 4px 0; color: #526d43; }
.day-step-button.next { text-align: right; margin-left: auto; }
.day-step-button small { display: block; font-size: 10px; color: #809074; margin-top: 3px; }
.page-footer { padding: 18px 2px calc(112px + env(safe-area-inset-bottom, 0px)); font-size: 10px; color: #84917a; line-height: 1.9; }
.page-footer .text-button { font-size: 11px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 15px calc(7px + env(safe-area-inset-bottom, 0px)); background: #fffffff5; border-top: 1px solid #e7eae1; box-shadow: 0 -3px 20px #263f2b04; }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 3px 0; border-radius: 12px; color: #839079; font-size: 10px; line-height: 1.4; }
.bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.45; }
.bottom-nav button[aria-current="page"] { color: var(--green); font-weight: 650; background: #eef3e8; }
.bottom-nav button[aria-current="page"] svg { stroke-width: 1.8; }
/* Discovery and shopping are browsable app surfaces, not long articles. */
.view-heading { padding: 17px 2px 23px; margin-bottom: 19px; }
.view-heading .eyebrow { font-size: 9px; letter-spacing: .15em; color: #879477; margin-bottom: 7px; }
.view-heading h1 { font-size: 29px; font-weight: 650; letter-spacing: -.035em; line-height: 1.4; color: var(--ink); }
.view-heading > p:last-child, .view-heading > div > p:last-child { margin-top: 9px; max-width: 32em; font-size: 13px; line-height: 1.85; color: #708267; }
.shopping-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shopping-symbol { display: grid; place-items: center; width: 64px; height: 70px; flex-shrink: 0; border-radius: 18px; background: #e8edde; }
.shopping-symbol svg { width: 37px; height: 44px; fill: none; stroke: #71865a; stroke-width: 1.5; }
.shopping-checklist { border: 1px solid #e2e8d8; border-radius: var(--radius); background: #fff; margin-bottom: 28px; padding: 17px 15px 5px; box-shadow: var(--shadow); }
.checklist-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.checklist-header :is(h2, h3) { font-size: 17px; font-weight: 650; line-height: 1.5; }
.checklist-header :is(span, p, small) { font-size: 11px; color: #7d8d70; }
.shopping-check-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-height: 66px; padding: 8px 0; border-top: 1px solid #eef0e8; }
.check-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; grid-row: span 2; padding: 9px; color: #a6b296; }
.check-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.check-toggle[aria-pressed="true"] { color: #5b7c43; }
.check-toggle[aria-pressed="true"] svg { fill: #e8f0df; stroke-width: 1.8; }
.check-name { font-size: 13px; font-weight: 550; line-height: 1.6; min-width: 0; }
.shopping-check-row small { font-size: 10px; line-height: 1.55; color: #839075; }
.shopping-check-row > small { grid-column: 2; }
.check-name small { display: block; font-weight: 400; margin-top: 3px; }
.check-day { align-self: center; grid-column: 3; grid-row: 1 / span 2; font-size: 10px; white-space: nowrap; line-height: 1.4; color: #769065; padding: 5px 7px; border-radius: 6px; background: #eff3e9; }
.shopping-check-row.is-complete .check-name { color: #819075; text-decoration: line-through; text-decoration-color: #b3c1a5; }
.guide-group { margin-bottom: 28px; }
.guide-group > h2 { font-size: 19px; line-height: 1.5; font-weight: 650; color: var(--ink); margin-bottom: 7px; letter-spacing: -.02em; }
.guide-intro { font-size: 12px; color: #78886b; line-height: 1.85; margin-bottom: 13px; }
.guide-card { position: relative; padding: 18px 16px 5px 44px; margin-bottom: 11px; border: 1px solid #e7eadf; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.guide-number { position: absolute; left: 16px; top: 22px; font-size: 11px; color: #8b9a7c; font-variant-numeric: tabular-nums; }
.guide-card h3 { font-size: 17px; font-weight: 650; line-height: 1.5; color: #364e2c; margin-bottom: 6px; }
.guide-card p { font-size: 13px; line-height: 1.85; color: #687b59; }
.guide-card p + p { margin-top: 9px; }
.guide-card .guide-store { font-size: 11px; color: #859775; margin-bottom: 8px; line-height: 1.7; }
.guide-card .guide-extra { font-size: 12px; color: #829471; }
.guide-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #658a48; }
.guide-card details { margin-top: 7px; }
.guide-card summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 11px; color: #789862; list-style: none; }
.guide-card summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.guide-card details[open] summary::after { content: "−"; }
.guide-card details > div { padding: 5px 0 8px; }
summary::-webkit-details-marker { display: none; }
.discovery-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 0 19px; padding-bottom: 1px; }
.discovery-filters button { min-height: 44px; padding: 9px 18px; font-size: 12px; color: #74896a; border: 1px solid #e0e7d6; border-radius: 12px; background: #fafcf7; white-space: nowrap; }
.discovery-filters button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.discovery-card { position: relative; min-width: 0; margin-bottom: 17px; border: 1px solid #e2e8d8; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.discovery-image { display: block; width: 100%; height: 185px; object-fit: cover; background: #e9eddf; }
.discovery-body { padding: 18px 17px 2px; }
.discovery-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 9px; margin-bottom: 8px; font-size: 10px; line-height: 1.5; color: #829373; }
.discovery-tag { font-size: 9px; padding: 3px 6px; border-radius: 5px; background: #edf3e6; color: #7e9765; white-space: nowrap; }
.discovery-card h2 { font-size: 20px; line-height: 1.45; font-weight: 650; letter-spacing: -.025em; margin-bottom: 9px; color: #344d29; }
.discovery-why { font-size: 15px; line-height: 1.85; color: #5b744e; }
.discovery-for, .discovery-slot { font-size: 12px; color: #7b9069; line-height: 1.85; margin-top: 12px; }
.discovery-slot > span { display: block; font-size: 10px; line-height: 1.5; color: #b26440; margin-bottom: 3px; font-weight: 550; }
.discovery-facts { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 12px; font-size: 11px; line-height: 1.65; color: #7f976a; }
.discovery-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; margin-top: 12px; }
.discovery-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 11px; text-decoration: none; color: #77935e; }
.discovery-links .discovery-map { padding: 8px 12px; border: 1px solid #dbe5ce; border-radius: 9px; color: #5d8045; background: #f7faf2; }
.discovery-save { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 8px 10px; border-radius: 9px; color: #7f9470; font-size: 11px; }
.discovery-save svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.discovery-save[aria-pressed="true"] { background: #f9eee7; color: var(--red); }
.discovery-save[aria-pressed="true"] svg { fill: #f0cbb5; }
.discovery-details { margin-top: 9px; border-top: 1px solid #ecf0e4; }
.discovery-details summary { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; cursor: pointer; color: #80976b; list-style: none; }
.discovery-details summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.discovery-details[open] summary::after { content: "−"; }
.discovery-details p { margin: 9px 0; font-size: 12px; line-height: 1.9; color: #81966e; }
.discovery-details p strong { color: #587a42; font-weight: 550; }
.discovery-card.no-image .discovery-body { padding-top: 20px; }
.research-notes { padding: 7px 17px 1px; margin: 27px 0 15px; border: 1px solid #e1e7d7; border-radius: 14px; background: #eeefe5; }
.research-notes > summary { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 12px; color: #637c4f; list-style: none; }
.research-notes > summary > span { font-size: 10px; color: #84996e; }
.research-notes article { padding: 16px 0; border-top: 1px solid #dce5cd; }
.research-notes h3 { font-size: 15px; line-height: 1.7; color: #4d6d38; margin-bottom: 7px; }
.research-notes p { font-size: 12px; line-height: 1.9; color: #7d9368; margin: 8px 0; }
.research-notes p.research-meta { font-size: 10px; color: #839970; }
.research-notes a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #618346; }
.research-method { font-size: 12px; line-height: 1.9; color: #7f946e; margin: 8px 0 17px; }
/* Budget and tools */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.overlay-backdrop { position: absolute; inset: 0; background: #17271e70; backdrop-filter: blur(3px); }
.bottom-sheet { position: relative; width: 100%; max-width: 720px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: #fffefa; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 60px #1a2e182b; padding: 0 21px calc(23px + env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; scrollbar-color: #c5d1b6 transparent; }
.sheet-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 0 13px; margin-bottom: 20px; border-bottom: 1px solid #e5eadc; background: #fffefa; }
.sheet-header::before { content: ""; position: absolute; top: 8px; left: calc(50% - 16px); height: 3px; width: 32px; border-radius: 3px; background: #d3dbc8; }
.sheet-header h2 { font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; color: var(--ink); }
.sheet-header .icon-button { flex-shrink: 0; width: 37px; min-width: 44px; color: #819271; font-weight: 300; }
.body-locked { overflow: hidden; }
.people-switch, .terminal-toggle { display: flex; gap: 4px; padding: 4px; background: #eef2e8; border-radius: 11px; }
.people-switch button, .terminal-toggle button { flex: 1; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: #7b9067; font-size: 13px; }
.people-switch button[aria-pressed="true"], .terminal-toggle button[aria-pressed="true"] { color: #456a32; background: #fff; font-weight: 600; box-shadow: 0 2px 6px #28401508; }
.budget-total { margin-top: 24px; font-size: clamp(27px, 7vw, 39px); font-weight: 650; color: var(--ink); line-height: 1.35; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.budget-subtitle { font-size: 12px; color: #859872; margin: 6px 0 21px; }
.budget-day-row, .budget-grand-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #e4eadb; color: #859775; font-size: 12px; }
.budget-day-row strong, .budget-grand-total strong { font-size: 13px; font-weight: 550; color: #557d3c; text-align: right; font-variant-numeric: tabular-nums; }
.budget-label { display: block; margin: 23px 0 11px; color: #527a39; font-size: 14px; font-weight: 550; }
.budget-label small { margin-left: 7px; color: #8da375; font-size: 10px; font-weight: 400; }
.budget-input-wrap { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 6px 13px; border: 1px solid #dce7cf; border-radius: 11px; background: #fff; color: #90a67a; font-size: 12px; }
.budget-input-wrap input { width: 150px; max-width: 60%; min-height: 44px; padding: 6px 0; border: 0; border-radius: 4px; background: transparent; color: #537b38; font-size: 21px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.allowance-slider { display: block; width: 100%; min-height: 44px; accent-color: #628944; }
.budget-fineprint, .budget-exclusions { font-size: 11px; line-height: 1.9; color: #94a87f; }
.budget-grand-total { margin: 13px 0 18px; padding: 16px 14px; border: 1px solid #dbe6cf; border-radius: 12px; background: #edf3e5; color: #729157; }
.budget-grand-total strong { font-size: 15px; }
.budget-grand-total small { display: block; margin-top: 4px; font-size: 10px; color: #a07550; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid #e4eadb; font-size: 13px; color: #78965e; }
.setting-desc { display: block; margin-top: 4px; font-size: 10px; color: #96aa81; }
.switch { position: relative; display: inline-flex; align-items: center; min-width: 50px; width: 50px; min-height: 44px; padding: 0; flex-shrink: 0; }
.switch::before { content: ""; display: block; width: 46px; height: 27px; border-radius: 16px; background: #d6dfcc; }
.switch::after { content: ""; position: absolute; top: 11px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #3241201a; transition: transform .18s ease; }
.switch[aria-pressed="true"]::before { background: #6f9352; }
.switch[aria-pressed="true"]::after { transform: translateX(19px); }
.terminal-toggle { flex-shrink: 0; min-width: 113px; }
.terminal-toggle button { padding: 7px 10px; font-size: 12px; }
.fx-row { margin: 5px 0 17px; font-size: 12px; color: #8da578; }
.fx-row label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx-row input { width: 90px; min-height: 44px; padding: 8px 10px; border: 1px solid #dce7cd; border-radius: 8px; background: #fff; color: #668848; }
.fx-row p { margin-top: 7px; font-size: 10px; }
.rmb-estimate { color: #a47d55; font-size: 13px; margin-bottom: 15px; }
.budget-exclusions { border-top: 1px solid #e4eadb; padding-top: 17px; margin-top: 17px; }
.tool-list { display: grid; gap: 3px; }
.tool-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 11px 2px; border-bottom: 1px solid #e5ecda; text-align: left; color: #608344; font-size: 14px; }
.tool-list button span { font-size: 10px; text-align: right; color: #98ac83; }
.tools-note { margin: 18px 0 8px; font-size: 12px; line-height: 1.9; color: #91a57c; }
.source-section { margin-bottom: 24px; }
.source-section h3 { font-size: 17px; color: #5c803f; margin-bottom: 12px; }
.source-notices { font-size: 13px; line-height: 1.9; color: #829c69; }
.source-link-list { display: grid; gap: 4px; }
.source-link-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid #e1ead4; font-size: 12px; line-height: 1.7; text-decoration: none; color: #799b5a; }
.empty-state { padding: 35px 19px; border: 1px dashed #d7e3ca; border-radius: 15px; background: #f6f8ef; font-size: 13px; line-height: 1.9; color: #8ba273; text-align: center; }
.empty-title { font-size: 19px; font-weight: 550; color: #6a904a; margin-bottom: 7px; }
.toast { position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); left: 50%; z-index: 90; display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100% - 34px); padding: 5px 9px 5px 16px; min-height: 48px; border-radius: 12px; color: #fff; background: #294b3df5; box-shadow: 0 7px 24px #243e2526; font-size: 12px; line-height: 1.8; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast button { pointer-events: auto; min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; background: #ffffff17; white-space: nowrap; }
.print-content { display: none; }
#exitShareButton { display: none; }
/* New app interactions and their readable secondary labels. */
.return-hero { background: #2d5045; }
.return-art { position: absolute; inset: 0; overflow: hidden; background: #355a4c; }
.return-art::before { content: ""; position: absolute; width: 230px; height: 230px; right: -65px; top: -90px; border: 1px solid #c0d0a845; border-radius: 50%; }
.return-art::after { content: ""; position: absolute; width: 310px; height: 310px; right: -105px; top: -130px; border: 1px solid #c0d0a82b; border-radius: 50%; }
.return-art > span { position: absolute; right: 13px; top: 1px; font-family: serif; font-size: 180px; line-height: 1.3; color: #dce6cf; opacity: .09; }
.return-deadline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-top: 12px; border: 1px solid #e9dbcc; border-radius: 11px; color: #8d6045; background: #fbf1e8; font-size: 12px; }
.return-deadline b { font-weight: 650; color: #9b5735; font-variant-numeric: tabular-nums; }
.return-deadline button { flex-shrink: 0; padding: 5px 8px; min-height: 44px; border-radius: 8px; font-size: 12px; color: #875b3f; background: #ffffff91; }
.sheet-intro { margin: -1px 0 17px; font-size: 14px; line-height: 1.85; color: #6d7d63; }
.section-sheet-summary > p.eyebrow { font-size: 12px; margin-bottom: 9px; color: #9e573b; }
.route-overview { display: grid; gap: 0; }
.route-overview > button { display: grid; grid-template-columns: 35px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 80px; padding: 13px 0; text-align: left; border-top: 1px solid #e7ecde; }
.route-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #79925d; background: #eef3e7; font-variant-numeric: tabular-nums; }
.route-number.done { color: #fff; background: #6b8d4f; }
.route-overview time { display: block; color: #ad5d3d; font-size: 12px; line-height: 1.5; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.route-overview strong { display: block; font-size: 15px; font-weight: 550; color: #49683b; line-height: 1.6; }
.route-overview > button > span:last-child { color: #9bb183; font-size: 24px; font-weight: 300; text-align: right; }
.checklist-header .eyebrow { margin-bottom: 5px; font-size: 9px; }
.checklist-hint { font-size: 12px; color: #718563; line-height: 1.7; margin: 1px 0 13px; }
.check-name { text-align: left; padding: 4px 0; }
.check-name strong { display: block; font-size: 15px; line-height: 1.6; font-weight: 550; color: #456736; }
.check-name small { font-size: 12px; line-height: 1.7; color: #6b825b; }
.shopping-check-row.checked .check-name strong { color: #7d9170; text-decoration: line-through; text-decoration-color: #afbf9e; }
.shopping-check-row.checked .check-name small { color: #899d7a; }
.guide-library > h2 { font-size: 19px; font-weight: 650; line-height: 1.5; color: var(--ink); margin-bottom: 13px; }
details.guide-group { display: block; padding: 0 17px; margin-bottom: 11px; border: 1px solid #e3e9d9; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
details.guide-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; font-size: 15px; font-weight: 550; line-height: 1.7; color: #486b35; list-style: none; cursor: pointer; }
details.guide-group > summary::after { content: "+"; flex-shrink: 0; color: #8fa575; font-size: 22px; font-weight: 300; }
details.guide-group[open] > summary::after { content: "−"; }
details.guide-group[open] > summary { border-bottom: 1px solid #e8edde; }
details.guide-group > .guide-intro { margin: 14px 0; font-size: 13px; color: #728d5c; }
details.guide-group > .guide-card { margin: 12px 0; background: #fafcf6; border: 1px solid #e6eddd; box-shadow: none; }
.guide-card p { font-size: 15px; color: #5b7750; }
.guide-card .guide-store, .guide-card .guide-extra { font-size: 12px; color: #6c845c; }
.related-plan { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; margin: 8px 0 14px; border: 1px solid #d7e2c9; border-radius: 9px; color: #5f8345; background: #f3f7eb; font-size: 13px; }
.copy-fallback { padding: 14px; border: 1px solid #e0e8d7; border-radius: 10px; font-size: 14px; line-height: 1.9; color: #59744a; user-select: text; }
:is(.discovery-meta, .discovery-tag, .discovery-facts, .discovery-links a, .discovery-details summary, .discovery-details p, .research-notes p.research-meta, .research-notes > summary > span, .check-day, .budget-label small, .budget-fineprint, .budget-exclusions, .setting-desc, .tool-list button span, .page-footer) { font-size: 12px; color: #6e8062; }
:is(.budget-subtitle, .budget-day-row, .setting-row, .budget-input-wrap, .tools-note, .budget-exclusions, .fx-row, .research-notes p, .discovery-slot, .guide-card .guide-store) { color: #6d805f; }
.budget-day-row { font-size: 13px; }
.tool-list button { font-size: 15px; }
.discovery-links .discovery-map, .sheet-primary-actions :is(button, a) { font-size: 13px; }
.inspiration-prompt p { font-size: 14px; }
/* Comfortable small phones. Nothing requires a viewport wider than 320px. */
@media (max-width: 374px) {
  main { padding-left: 15px; padding-right: 15px; }
  .topbar { padding-left: 17px; padding-right: 12px; }
  .brand-name { font-size: 17px; }
  .brand small { font-size: 7px; }
  .brand-jp { width: 29px; }
  .icon-text { padding-left: 4px; padding-right: 4px; font-size: 11px; }
  .sticky-dates { padding-left: 15px; padding-right: 15px; }
  .chapter-cover figure { height: 240px; }
  .cover-text { left: 19px; bottom: 22px; }
  .cover-title, .cover-city { font-size: 29px; }
  .cover-subtitle { font-size: 11px; }
  .day-stats { gap: 9px; }
  .day-stats > * { padding: 13px 12px; }
  .day-stats :is(strong, .stat-value, .day-stat-value) { font-size: 15px; }
  .phase-top { padding-left: 15px; padding-right: 15px; }
  .phase-footer { padding-left: 15px; padding-right: 8px; }
  .phase-actions { gap: 0; }
  .complete-button { padding-left: 6px; padding-right: 6px; font-size: 12px; }
  .phase-map { padding-left: 4px; padding-right: 4px; font-size: 10px; }
  .bottom-sheet { padding-left: 18px; padding-right: 18px; }
  .budget-day-row, .budget-grand-total { gap: 8px; font-size: 11px; }
  .budget-day-row strong { font-size: 12px; }
}
@media (min-width: 600px) {
  main { padding-left: 30px; padding-right: 30px; }
  .topbar { height: 85px; padding-left: 31px; padding-right: 31px; }
  .sticky-dates { padding-left: 30px; padding-right: 30px; }
  .day-tab { min-height: 64px; }
  .tab-city { font-size: 11px; }
  .chapter-cover figure { height: 310px; }
  .cover-text { left: 30px; bottom: 29px; }
  .cover-title, .cover-city { font-size: 40px; }
  .cover-subtitle { font-size: 14px; }
  .cover-kicker { font-size: 11px; }
  .cover-caption { right: 20px; top: 17px; font-size: 10px; }
  .cover-caption small { font-size: 9px; }
  .day-dashboard { margin-top: 17px; }
  .day-stats > * { padding: 18px 20px 17px; }
  .day-stats :is(strong, .stat-value, .day-stat-value) { font-size: 21px; }
  .day-stats :is(.stat-label, .day-stat-label, small) { font-size: 12px; }
  .day-stats :is(p, .stat-note) { font-size: 11px; }
  .journey-focus { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 21px 23px; }
  .journey-focus :is(.focus-label, .focus-title, .focus-meta) { grid-column: 1; }
  .focus-title { font-size: 23px; }
  .focus-actions { grid-column: 2; grid-row: 1 / span 3; align-content: center; align-self: center; margin: 0; }
  .focus-actions > :is(button, a) { padding: 11px 16px; }
  .quick-actions { margin-bottom: 29px; }
  .quick-actions > :is(button, a) { font-size: 13px; }
  .bottom-nav { max-width: 790px; left: 50%; right: auto; width: calc(100% - 36px); bottom: 14px; transform: translateX(-50%); padding: 8px; border: 1px solid #e1e8d8; border-radius: 20px; box-shadow: 0 5px 30px #233d2514; }
  .bottom-nav button { min-height: 52px; }
  .bottom-sheet { border-radius: 23px; margin: 24px; padding-left: 28px; padding-right: 28px; }
  .overlay { align-items: center; }
  .sheet-header { padding-top: 18px; }
  .sheet-header::before { display: none; }
  .discovery-image { height: 215px; }
  #discoveriesContent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .discovery-card { margin: 0; }
  .research-notes, #discoveriesContent > .empty-state { grid-column: 1 / -1; }
  .view-heading { padding-top: 26px; }
  .view-heading h1 { font-size: 33px; }
  .view-heading > p:last-child, .view-heading > div > p:last-child { font-size: 14px; }
  .shopping-checklist { padding-left: 22px; padding-right: 22px; }
  .check-name { font-size: 14px; }
  .check-name small, .shopping-check-row small { font-size: 11px; }
  .guide-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .guide-group > :is(h2, .guide-intro) { grid-column: 1 / -1; }
  .guide-group > h2 { margin-bottom: 0; }
  .guide-intro { margin-bottom: 2px; }
  .guide-card { margin: 0; }
  .inspiration-prompt { padding-left: 25px; padding-right: 25px; }
  .inspiration-prompt h2 { font-size: 24px; }
  .return-cover { min-height: 270px; padding: 29px 32px; }
}
@media (min-width: 1050px) {
  html { scroll-padding-top: 96px; }
  .app-shell { max-width: 1120px; padding-left: 150px; }
  .topbar { height: 91px; }
  .brand-jp { width: 33px; height: 38px; }
  .brand-name { font-size: 20px; }
  .brand small { font-size: 9px; }
  .icon-text { font-size: 12px; }
  .sticky-dates { padding-bottom: 15px; }
  .day-tabs { gap: 5px; }
  .day-tab { min-height: 61px; display: flex; align-items: center; justify-content: center; gap: 9px; }
  .tab-date { font-size: 18px; }
  .tab-city { margin: 0; font-size: 11px; }
  .chapter-cover { border-radius: 24px; }
  .chapter-cover figure { height: 310px; }
  .cover-title, .cover-city { font-size: 43px; }
  .cover-subtitle { max-width: 43em; }
  .day-dashboard { display: grid; grid-template-columns: 1fr; }
  .day-stats { gap: 14px; }
  .route-chip { font-size: 12px; }
  .journey-focus { margin-top: 4px; }
  #timeline { grid-template-columns: minmax(0, 1fr); gap: 15px; align-items: start; }
  #timeline > .empty-state { grid-column: 1 / -1; }
  .phase-card { display: grid; grid-template-columns: minmax(0, 1fr) 145px; }
  .phase-top { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 17px; padding: 19px 20px 17px; }
  .phase-meta { grid-column: 1; grid-row: 1 / span 5; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 9px; margin: 10px 0 0; }
  .phase-top > :not(.phase-meta) { grid-column: 2; }
  .phase-title { font-size: 19px; }
  .phase-time { font-size: 13px; }
  .phase-footer { grid-column: 2; grid-row: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 9px; border-top: 0; border-left: 1px solid #edf0e6; background: #fdfefa; }
  .phase-summary { font-size: 15px; }
  .phase-details { grid-column: 1 / -1; padding-left: 20px; padding-right: 20px; border-top: 1px solid var(--line); }
  .phase-photo img { height: 140px; }
  .itinerary-toolbar { padding-bottom: 16px; }
  .bottom-nav { position: fixed; top: 115px; bottom: auto; left: max(14px, calc((100vw - 1120px) / 2 + 7px)); right: auto; display: flex; flex-direction: column; width: 129px; max-width: none; transform: none; padding: 9px; gap: 7px; border: 1px solid #e1e6d9; border-radius: 19px; box-shadow: 0 3px 18px #233d2506; background: #fffefa; }
  .bottom-nav button { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 12px; font-size: 12px; min-height: 49px; }
  .bottom-nav svg { width: 19px; height: 19px; flex-shrink: 0; }
  .page-footer { padding-bottom: 40px; }
  .toast { bottom: 28px; }
  .bottom-sheet { max-width: 740px; }
}
@media (hover: hover) {
  .day-tab:not([aria-selected="true"]):hover { background: #e3e8dc; color: var(--green); }
  .route-chip:hover { background: #e0e8d8; color: #3a6138; }
  .phase-card:hover { box-shadow: 0 7px 25px rgb(37 61 38 / 7%); border-color: #d5e0cb; }
  .phase-title button:hover { color: #5a7945; }
  .phase-more:hover, .text-button:hover, .copy-address:hover { color: var(--red); }
  .icon-button:hover, .complete-button:hover, .favorite-button:hover, .discovery-save:hover { background: #edf2e5; }
  .focus-actions > :first-child:hover { background: #3c6243; }
  .quick-actions > :is(a, button):hover { border-color: #bdcfae; box-shadow: 0 4px 12px #294b3d08; }
  .bottom-nav button:hover { background: #f0f4e9; color: var(--green); }
}
/* Share mode has a visible escape and intentionally only shows summaries. */
.share-mode :is(.topbar, .sticky-dates, .bottom-nav, .reading-controls, .itinerary-toolbar, .list-caption, .phase-footer, .phase-details, .inspiration-prompt, .next-day-nav, .page-footer, .overlay, .toast, .skip-link, .journey-focus, .quick-actions) { display: none !important; }
.share-mode .app-shell { padding-left: 0; max-width: 720px; }
.share-mode main { padding: 16px 18px 20px; }
.share-mode .chapter-cover figure { height: 240px; }
.share-mode .day-dashboard { margin-bottom: 19px; }
.share-mode .route-strip { display: none; }
.share-mode #timeline { grid-template-columns: 1fr; gap: 11px; }
.share-mode .phase-card { display: block; }
.share-mode .phase-top { display: block; padding: 17px; }
.share-mode .phase-meta { flex-direction: row; justify-content: space-between; align-items: center; margin: 0 0 7px; }
.share-mode .phase-summary { -webkit-line-clamp: 3; }
.share-mode .phase-photo { display: none; }
.share-mode .phase-cost { margin-top: 11px; }
.share-mode .day-footnote { padding-top: 20px; }
.share-mode #exitShareButton { display: inline-flex !important; align-items: center; justify-content: center; position: fixed; right: 15px; bottom: calc(15px + env(safe-area-inset-bottom, 0px)); z-index: 55; min-height: 44px; padding: 11px 16px; border: 1px solid #ced9c1; border-radius: 25px; background: #fffefa; box-shadow: 0 4px 24px #233d2526; color: var(--green); font-size: 12px; font-weight: 550; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Complete four-day print document; kept independent of current tab. */
@page{size:A4;margin:15mm 13mm}
@media print{body{font-size:12pt;background:#fff;color:#222}.app-shell,.bottom-nav,.overlay,.toast,.skip-link{display:none!important}.print-content{display:block!important}.print-cover{border-bottom:1px solid #888;padding-bottom:6mm;margin-bottom:6mm}.print-cover h1{font-size:24pt;margin-bottom:3mm}.print-cover p,.print-day-header p{font-size:12pt;line-height:1.7;margin-top:2mm}.print-day{break-before:page}.print-day:first-of-type{break-before:auto}.print-day-header{margin-bottom:6mm}.print-day-header h2{font-size:20pt}.print-section{margin:5mm 0 7mm}.print-section>h3{font-size:15pt;border-bottom:1px solid #aaa;padding-bottom:2mm}.print-section>p{font-size:12pt;line-height:1.8;margin-top:2mm}.print-item{padding:3mm 0;border-bottom:.5pt solid #ddd;break-inside:avoid}.print-item h4{font-size:12pt}.print-item p,.print-item li{font-size:12pt;line-height:1.75;margin-top:2mm}.print-item ol,.print-item ul{margin:2mm 0;padding-left:5mm}.print-item .detail-sources a{font-size:12pt;min-height:0;color:#666}.print-item .item-links{display:none}.print-item .transit-box{padding:3mm;border:.5pt solid #ddd;background:#fff}.print-summary{break-before:page}.print-summary h2{font-size:20pt;margin-bottom:5mm}.print-budget-row{display:flex;justify-content:space-between;border-bottom:.5pt solid #ddd;padding:3mm 0;font-size:12pt}.print-notice{padding:3mm;border:1pt solid #ba5239;margin:4mm 0}.print-content a{color:#555;text-decoration:none}}
@media print{.transit-duration,.detail-sources a{font-size:12pt}#exitShareButton{display:none!important}}
/* Keep saved state distinct and discovery actions beside the title. */
.check-toggle[aria-pressed="false"] svg path,.complete-button[aria-pressed="false"] svg path { visibility: hidden; }
.discovery-body { position: relative; }
.discovery-save { position: absolute; right: 14px; top: 48px; }
.discovery-card h2 { padding-right: 42px; }
/* Directions and real storefront references. */
.travel-preview{margin-top:15px;padding-top:14px;border-top:1px solid var(--line);font-size:14px}
.travel-destination{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 9px;color:var(--ink);font-size:15px;line-height:1.65}
.travel-destination small{color:var(--muted);font-size:12px;flex:none}.travel-destination strong{font-weight:600}
.travel-mode-chain{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:10px 0}
.mode-badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 7px;border-radius:6px;font-size:12px;font-weight:600;line-height:1.5;color:#506251;background:#edf0e7}
.mode-bus{color:#235638;background:#e5f1e8}.mode-subway{color:#2a5275;background:#e7eff7}.mode-train{color:#774824;background:#f6ebdf}.mode-indoor,.mode-stay{color:#6a6255;background:#f0eee8}.mode-arrow{font-size:14px;color:#9b9d91}
.travel-preview-leg{margin-top:8px!important;line-height:1.65}.travel-preview-leg strong{display:block;font-size:14px;font-weight:500;color:var(--ink)}.travel-preview-leg>span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.travel-detail-link{display:block;text-align:left;color:var(--green);padding:5px 0;font-size:13px;min-height:40px}
.travel-instructions{margin:22px 0 28px}.travel-instructions>h3,.storefront-gallery>h3{font-size:19px;margin-bottom:10px}.travel-legs{list-style:none;padding:0;margin:16px 0 0}.travel-leg{position:relative;margin:0!important;padding:15px 15px 16px 43px;border-left:2px solid #d9e2d2;background:#f3f5ef}.travel-leg+.travel-leg{margin-top:5px!important}.travel-leg:first-child{border-radius:10px 10px 0 0}.travel-leg:last-child{border-radius:0 0 10px 10px}
.leg-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.leg-heading>strong{font-size:15px}.leg-number{position:absolute;left:12px;top:18px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.leg-path{font-size:15px;font-weight:550;line-height:1.7;margin-top:9px}.leg-path>span{display:block;color:#8b9788;line-height:1.4}.leg-direction,.leg-meta,.leg-instruction{font-size:14px;line-height:1.75;margin-top:7px}.leg-meta{font-size:13px;color:var(--muted)}.leg-direction strong{color:var(--green)}.leg-map{display:inline-flex;align-items:center;min-height:44px;font-size:13px;text-decoration:none}.travel-note,.storefront-intro{font-size:13px;line-height:1.75;color:var(--muted);margin-top:12px}
.storefront-preview{display:flex;align-items:center;gap:12px;text-align:left;width:100%;margin:13px 0 0;padding:9px;border:1px solid #e3e7dc;border-radius:11px;background:#f9faf6}.storefront-preview>img{width:66px;height:54px;object-fit:cover;border-radius:6px;flex:none}.storefront-preview>span:nth-child(2){min-width:0;flex:1}.storefront-preview strong{display:block;font-size:14px;font-weight:600}.storefront-preview small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--muted);line-height:1.55;margin-top:3px}
.storefront-gallery{margin:28px 0;scroll-margin-top:100px}.storefront-card{margin-top:18px;padding-bottom:22px;border-bottom:1px solid var(--line)}.storefront-card>h4{font-size:17px;line-height:1.6;margin-bottom:10px}.storefront-card figure{background:#eff0ea;border:1px solid #e3e5dc;border-radius:11px;overflow:hidden}.storefront-card figure>a{display:block;background:#e9eae4}.storefront-card figure img{display:block;width:100%;max-height:320px;object-fit:contain}.storefront-card figcaption{padding:10px 12px;font-size:12px;line-height:1.65;color:var(--muted)}.storefront-card figcaption span{display:block;font-weight:650;color:var(--green);margin-bottom:2px}.storefront-recognition{font-size:15px;line-height:1.8;margin-top:12px!important;color:var(--ink)!important}.storefront-links{display:flex;flex-wrap:wrap;gap:8px 18px}.storefront-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}.storefront-card .item-address{font-size:13px!important}
@media(min-width:1050px){.phase-top .travel-preview{margin-top:12px}.travel-preview-leg strong{font-size:15px}.storefront-preview{max-width:560px}.storefront-card figure img{max-height:420px}}
@media print{.storefront-preview,.travel-preview{display:none!important}}
#photoDialog{position:fixed;inset:0;margin:auto;width:min(95vw,1000px);max-height:95vh;max-height:95dvh;padding:55px 12px 18px;border:none;border-radius:15px;background:#f8f8f3;color:var(--ink);overflow:auto}#photoDialog::backdrop{background:#14221beb;backdrop-filter:blur(6px)}#photoClose{position:absolute;right:12px;top:7px;min-height:44px;padding:8px 12px;color:var(--ink);font-size:14px}#photoImage{display:block;max-width:100%;width:auto;max-height:calc(90vh - 140px);max-height:calc(90dvh - 140px);height:auto;object-fit:contain;margin:0 auto}#photoCaption{font-size:14px;line-height:1.7;margin:14px 7px 0}.photo-hint{font-size:12px;color:var(--muted);margin:4px 7px 0}@media print{#photoDialog{display:none!important}}
.route-modes{display:block;margin-top:4px;font-size:12px;color:var(--muted);line-height:1.6}
.share-mode .storefront-preview{display:none!important}
@media print{.travel-instructions{margin:4mm 0}.travel-instructions>h3{font-size:13pt}.travel-leg{break-inside:avoid;background:#fff;padding:3mm 3mm 3mm 8mm}.leg-heading>strong,.leg-path,.leg-direction,.leg-instruction{font-size:12pt}.leg-meta,.travel-note,.mode-badge{font-size:11pt}.leg-map{display:none}.leg-number{font-size:10pt;left:2mm;top:4mm}}

/* v7: both currencies remain visible, with JPY as the purchasing price. */
.money-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; max-width: 100%; font-variant-numeric: tabular-nums; }
.money-jpy { color: var(--ink); overflow-wrap: anywhere; }
.money-cny { color: #6a7c61; font-size: 13px; font-weight: 450; letter-spacing: 0; overflow-wrap: anywhere; }
.money-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.phase-cost .money-pair { column-gap: 9px; }
.phase-cost .money-jpy, .sheet-cost .money-jpy { font-size: 14px; line-height: 1.65; font-weight: 600; }
.phase-cost .money-cny, .sheet-cost .money-cny { font-size: 13px; line-height: 1.65; }
.item-price .money-jpy { font-size: 15px; }
.item-price .money-cny { font-size: 14px; }
.transit-fare { font-size: 14px !important; line-height: 1.75; color: var(--muted); }
.day-stats .stat-jpy { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.45; overflow-wrap: anywhere; letter-spacing: -.025em; }
.day-stats .stat-rmb { display: block; margin-top: 4px; font-size: 12px; line-height: 1.55; color: #657a59; letter-spacing: 0; overflow-wrap: anywhere; }
.dashboard-fx-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; width: 100%; min-height: 44px; padding: 9px 1px 0; text-align: left; font-size: 12px; line-height: 1.55; color: var(--muted); }
.dashboard-fx-note > span { flex-shrink: 0; color: var(--green); }
.dashboard-fx-note + .progress-track { margin-top: 2px; }
.budget-total { font-size: clamp(25px, 6.8vw, 35px); letter-spacing: -.035em; }
.budget-total .money-cny { font-size: 16px; line-height: 1.5; margin-top: 2px; }
.currency-note { margin: 8px 0 18px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.budget-day-row, .budget-grand-total { align-items: center; }
.budget-day-row > span { flex: 0 0 auto; max-width: 35%; }
.budget-day-row > strong, .budget-grand-total > strong { min-width: 0; }
.budget-day-row .money-stack, .budget-grand-total .money-stack { align-items: flex-end; text-align: right; }
.budget-day-row .money-jpy { font-size: 14px; line-height: 1.5; }
.budget-day-row .money-cny { font-size: 12px; }
.budget-grand-total > span { flex: 0 0 auto; max-width: 32%; font-size: 13px; }
.budget-grand-total > span > small { font-size: 12px; margin-top: 4px; color: var(--muted); }
.budget-grand-total .money-jpy { font-size: 15px; line-height: 1.6; }
.budget-grand-total .money-cny { font-size: 13px; }
.allowance-cny { margin-top: 6px; font-size: 13px; line-height: 1.7; color: #657a59; }
.fx-row label { font-size: 14px; line-height: 1.7; }
.fx-row p { font-size: 12px; line-height: 1.8; }
.night-alternative { margin: 26px 0; padding: 20px 18px; border: 1px solid #dedfce; border-radius: 14px; background: #f5f3e9; }
.night-alternative > .eyebrow { color: #9a6349; font-size: 12px; margin: 0 0 7px; }
.night-alternative > h3 { font-size: 18px; line-height: 1.6; margin-bottom: 11px; color: var(--ink); }
.night-alternative > p, .night-alternative li { font-size: 15px; line-height: 1.85; color: #53634d; }
.night-alternative ol { padding-left: 22px; margin: 14px 0; }
.night-alternative li + li { margin-top: 8px; }
.night-alternative .night-alternative-cost { border-top: 1px solid #e1e1d3; margin-top: 14px; padding-top: 12px; font-size: 14px; }
.night-alternative .detail-sources { margin-top: 8px; }
.storefront-card[data-photo-kind="hotel-exterior"] figure img, .storefront-card[data-photo-kind="bath"] figure img { height: auto; object-fit: contain; }
@media (max-width: 374px) {
  .day-stats .stat-jpy { font-size: 15px; }
  .day-stats .stat-rmb { font-size: 12px; }
  .budget-day-row { gap: 8px; }
  .budget-day-row .money-jpy { font-size: 13px; }
  .budget-grand-total { padding: 14px 11px; }
  .budget-grand-total .money-jpy { font-size: 14px; }
}
@media (min-width: 600px) {
  .day-stats .stat-jpy { font-size: 21px; }
  .day-stats .stat-rmb { font-size: 13px; }
}
@media print {
  .money-pair, .money-stack { display: inline; }
  .money-cny { display: inline; font-size: 11pt; color: #555; margin-left: 3mm; }
  .money-jpy { color: #222; font-size: 12pt; }
  .print-budget-row > strong { max-width: 72%; text-align: right; }
  .print-budget-row .money-stack { display: flex; align-items: flex-end; }
  .print-budget-row .money-cny { margin-left: 0; }
  .print-summary .currency-note { font-size: 11pt; line-height: 1.7; }
  .night-alternative { background: #fff; border: .5pt solid #aaa; padding: 4mm; margin: 5mm 0; }
  .night-alternative > h3 { font-size: 13pt; }
  .night-alternative > p, .night-alternative li { font-size: 12pt; }
  .night-alternative .map-link { display: none; }
}

.stat-rmb > span, .stat-rmb > b { display: block; }
.stat-rmb > b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
