:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f8faff;
  --text: #101828;
  --text-soft: #526176;
  --text-muted: #71809a;
  --border: #e2e9f2;
  --border-soft: #ecf0f6;
  --blue: #2468e8;
  --blue-dark: #1552c0;
  --blue-pale: #eaf1ff;
  --green: #22a879;
  --orange: #f47a1f;
  --shadow: 0 12px 32px rgba(31, 54, 94, .07);
  --sans: "Manrope", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(36, 104, 232, .08), transparent 32rem),
    linear-gradient(rgba(91, 137, 202, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 137, 202, .035) 1px, transparent 1px),
    linear-gradient(180deg, #f8faff 0%, #f4f7fb 46rem);
  background-size: auto, 56px 56px, 56px 56px, auto;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:hover { color: var(--blue); }
[hidden] { display: none !important; }
::selection { background: #caddff; color: var(--text); }
:focus-visible { outline: 3px solid rgba(36, 104, 232, .36); outline-offset: 3px; }

.site-shell { max-width: 1510px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 62px); }
main, .home-view, .japan-view, .trip-heading-main, .program-column, .currency-card { min-width: 0; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 104px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: var(--blue); }
.brand-mark svg { width: 38px; height: 38px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-type strong { display: block; color: var(--text); font-size: 22px; line-height: 1.13; font-weight: 800; letter-spacing: -.06em; }
.brand-type small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.pdf-button { margin-left: auto; min-height: 39px; padding: 9px 15px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pdf-button:hover { background: var(--blue-dark); }

.eyebrow, .rail-kicker { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.eyebrow-line { display: none; }
.title-period { color: var(--blue); }
.home-view { padding: 66px 0 96px; }
.home-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.home-heading h1 { margin: 17px 0 16px; max-width: 800px; font-size: clamp(46px, 5vw, 76px); font-weight: 800; letter-spacing: -.07em; line-height: 1.08; }
.home-intro { max-width: 650px; margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.atlas-counter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 0 0 min(445px, 38%); }
.atlas-stat { position: relative; min-width: 0; min-height: 108px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.atlas-stat > span:not(.stat-dot) { display: block; padding-left: 18px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.atlas-stat strong { display: block; margin: 15px 0 3px; color: var(--blue); font-size: 34px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.atlas-stat:nth-child(2) strong { color: var(--green); }
.atlas-stat:nth-child(3) strong { color: var(--orange); }
.stat-dot { position: absolute; top: 22px; left: 18px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(36, 104, 232, .1); }
.stat-dot.blue { background: var(--blue); }
.stat-dot.green { background: var(--green); box-shadow: 0 0 0 5px rgba(34, 168, 121, .11); }
.stat-dot.orange { background: var(--orange); box-shadow: 0 0 0 5px rgba(244, 122, 31, .11); }

.map-panel { position: relative; overflow: hidden; margin-top: 38px; padding: 25px 28px 18px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.map-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.map-meta strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.map-meta small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.map-count { padding: 7px 11px; border-radius: 99px; background: var(--blue-pale); color: var(--blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.world-map { position: relative; max-width: 1240px; margin: 12px auto 0; }
.world-map img { display: block; width: 100%; height: auto; user-select: none; }
.map-pin { position: absolute; top: 34%; left: 88.6%; z-index: 2; display: flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--text); }
.pin-dot { position: relative; width: 15px; height: 15px; border: 3px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(36, 104, 232, .15), 0 2px 10px rgba(36, 104, 232, .3); }
.pin-dot::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(36, 104, 232, .25); border-radius: 50%; animation: pin-pulse 3s ease-out infinite; }
.pin-label { position: absolute; right: 28px; top: -10px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #cadefb; border-radius: 8px; background: #fff; box-shadow: 0 7px 20px rgba(38, 75, 130, .13); color: var(--text); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pin-label small { color: var(--blue); font-size: 10px; }
.map-scale { display: flex; justify-content: space-between; margin-top: -5px; color: #9cacbf; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.destination-card { display: grid; grid-template-columns: 100px minmax(160px, .7fr) minmax(260px, 1fr) auto; align-items: center; gap: 22px; width: 100%; margin-top: 17px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.destination-card:hover { border-color: #9dc0fa; transform: translateY(-2px); box-shadow: 0 17px 36px rgba(31, 54, 94, .12); }
.destination-number { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.destination-name { font-size: 26px; font-weight: 800; letter-spacing: -.06em; }
.destination-name span { margin-left: 3px; color: var(--blue); font-size: 21px; }
.destination-meta { color: var(--text-muted); font-size: 12px; }
.destination-meta i { display: inline-block; width: 4px; height: 4px; margin: 0 7px 2px; border-radius: 50%; background: var(--blue); }
.destination-action { padding: 10px 13px; border-radius: 9px; background: var(--blue-pale); color: var(--blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.home-footnote { margin: 22px 0 0; color: #97a4b7; font-size: 12px; }

.japan-view { padding: 31px 0 96px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #99a7ba; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.trip-heading { display: grid; grid-template-columns: minmax(0, 1fr) 366px; align-items: center; gap: 52px; padding: 48px 0 55px; border-bottom: 1px solid var(--border); }
.trip-heading h1 { margin: 14px 0 12px; font-size: clamp(62px, 7vw, 100px); font-weight: 800; letter-spacing: -.075em; line-height: 1.04; }
.trip-description { max-width: 680px; margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.trip-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.trip-facts span { padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.trip-facts strong { margin-right: 5px; color: var(--blue); font-size: 14px; font-weight: 800; }
.currency-card { width: 100%; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.currency-head { display: flex; align-items: start; justify-content: space-between; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.currency-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-pale); font-size: 23px; letter-spacing: 0; }
.currency-card h2 { margin: 0 0 23px; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.currency-input-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.currency-input-row label, .rate-row label { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.currency-input-row input { width: 55%; padding: 5px 0; border: 0; background: transparent; color: var(--text); text-align: right; font-size: 23px; font-weight: 800; outline: none; }
.currency-result { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 19px; }
.currency-result span { color: var(--text-muted); font-size: 12px; }
.currency-result output { color: var(--blue); font-size: 30px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.rate-row { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text-muted); }
.rate-row input { width: 69px; border: 0; border-bottom: 1px solid #b7c7de; border-radius: 0; background: transparent; color: var(--text); text-align: right; font-size: 12px; }
.rate-row button { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: var(--blue); font-size: 18px; }
.rate-row button:hover { background: var(--blue-pale); }
.rate-status, .rate-note { margin: 8px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.6; }
.rate-note { margin-top: 13px; }
.rate-note a { color: var(--blue); text-decoration: underline; text-decoration-color: #b5cbf5; }

.content-layout { padding-top: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.section-heading > span { color: #9aa8ba; font-size: 10px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.section-lead { max-width: 770px; margin: 14px 0 24px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.day-jump { display: flex; gap: 7px; overflow-x: auto; padding: 0 1px 17px; scrollbar-color: #bbc9dc transparent; }
.day-jump button { flex: 0 0 auto; min-width: 48px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-muted); font-size: 11px; font-weight: 700; }
.day-jump button:hover, .day-jump button.is-active { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }
.day-list { display: grid; gap: 11px; }
.day-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; scroll-margin-top: 24px; }
.day-card:hover, .day-card[open] { border-color: #a8c5f6; }
.day-card[open] { box-shadow: 0 14px 33px rgba(28, 70, 144, .09); }
.day-card > summary { display: grid; grid-template-columns: 61px minmax(0, 1fr) 70px; align-items: center; gap: 18px; min-height: 96px; padding: 17px 20px; list-style: none; cursor: pointer; }
.day-card > summary::-webkit-details-marker { display: none; }
.date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 59px; height: 59px; border-radius: 12px; background: var(--blue-pale); color: var(--blue); }
.date-box strong { font-size: 25px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.date-box small { margin-top: 3px; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.day-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.day-preview { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.day-chevron { display: grid; justify-self: end; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-soft); color: var(--blue); font-size: 20px; line-height: 1; transition: transform .2s; }
.day-card[open] .day-chevron { transform: rotate(45deg); }
.day-edit { position: absolute; top: 34px; right: 56px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--blue); }
.day-edit:hover { border-color: #a8c5f6; background: var(--blue-pale); }
.day-edit svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.day-body { padding: 1px 25px 26px 99px; border-top: 1px solid var(--border-soft); }
.day-prose { max-width: 750px; color: var(--text-soft); font-size: 13px; line-height: 1.85; }
.day-prose p { margin: 18px 0; }
.day-prose strong { color: var(--text); font-weight: 800; }
.day-prose em { color: var(--blue-dark); }
.day-prose ol { padding-left: 22px; }
.day-prose li { margin: 11px 0; }
.day-links { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.subheading { margin: 0 0 12px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.place-item { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.place-name { flex: 1 1 100%; color: var(--text); font-size: 11px; font-weight: 800; }
.place-address { flex: 1 1 100%; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.place-item.optional .place-name { color: var(--text-soft); }
.place-item a { color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.place-item a:hover { text-decoration: underline; }
.optional-tag { margin-left: auto; color: var(--orange); font-size: 9px; font-weight: 800; }
.empty-places { color: var(--text-muted); font-size: 12px; }
.day-note { display: block; margin-top: 25px; }
.day-note span { display: block; margin-bottom: 9px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.day-note textarea { display: block; width: 100%; min-height: 92px; padding: 13px 14px; resize: vertical; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); color: var(--text); font-size: 12px; line-height: 1.6; }
.day-note textarea::placeholder { color: #9aa8ba; }
.note-state { display: block; margin-top: 7px; color: #91a0b5; font-size: 10px; }

.memories-section, .resources-section { margin-top: 79px; padding-top: 38px; border-top: 1px solid var(--border); }
.memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.memory-card { position: relative; overflow: hidden; min-height: 180px; padding: 23px; border: 1px dashed #cbd7e9; border-radius: 16px; background: var(--surface); }
.memory-card::after { content: ""; position: absolute; right: -32px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: #eaf1ff; }
.memory-card:nth-child(2)::after { background: #e8f7f0; }
.memory-card span, .memory-card h3, .memory-card p { position: relative; z-index: 1; }
.memory-card span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.memory-card:nth-child(2) span { color: var(--green); }
.memory-card h3 { margin: 29px 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.memory-card p { max-width: 340px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.resource-grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 56px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-soft); text-decoration: none; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.resource-grid a:hover { border-color: #a8c5f6; color: var(--blue); }
.resource-grid a span { flex: 0 0 auto; color: var(--blue); }
.section-edit { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border: 1px solid #b8cef4; border-radius: 10px; background: var(--surface); color: var(--blue); font-size: 11px; font-weight: 800; }
.section-edit:hover { background: var(--blue-pale); }

@media (max-width: 1180px) {
  .home-heading { align-items: start; flex-direction: column; }
  .atlas-counter { flex: auto; width: min(470px, 100%); }
  .destination-card { grid-template-columns: 85px minmax(140px, .6fr) 1fr; }
  .destination-action { display: none; }
}
@media (max-width: 900px) {
  .trip-heading { grid-template-columns: 1fr; gap: 26px; }
  .currency-card { max-width: 460px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-shell { padding: 0 18px; }
  .site-header { min-height: 78px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-type strong { font-size: 16px; }
  .brand-type small { font-size: 9px; }
  .pdf-button { min-height: 34px; padding: 7px 9px; font-size: 10px; }
  .home-view { padding: 40px 0 70px; }
  .home-heading { gap: 26px; }
  .home-heading h1 { margin: 12px 0 12px; font-size: clamp(40px, 11vw, 54px); }
  .home-intro { font-size: 13px; }
  .atlas-counter { gap: 7px; width: 100%; }
  .atlas-stat { min-height: 88px; padding: 13px 10px; border-radius: 12px; }
  .atlas-stat > span:not(.stat-dot) { padding-left: 14px; font-size: 9px; }
  .atlas-stat strong { margin-top: 16px; font-size: 27px; }
  .stat-dot { top: 16px; left: 10px; width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(36, 104, 232, .1); }
  .map-panel { margin-top: 25px; padding: 17px 12px 13px; border-radius: 13px; }
  .map-meta strong { font-size: 13px; }
  .map-meta small { font-size: 9px; }
  .map-count { padding: 5px 7px; font-size: 8px; }
  .world-map { margin-top: 11px; }
  .pin-dot { width: 11px; height: 11px; border-width: 2px; box-shadow: 0 0 0 4px rgba(36, 104, 232, .16); }
  .pin-label { top: -11px; right: 18px; gap: 4px; padding: 5px 6px; font-size: 8px; }
  .pin-label small { font-size: 7px; }
  .map-scale { font-size: 7px; }
  .destination-card { display: block; padding: 18px; }
  .destination-number, .destination-name, .destination-meta { display: block; }
  .destination-number { margin-bottom: 7px; }
  .destination-name { font-size: 25px; }
  .destination-meta { margin-top: 8px; font-size: 11px; }
  .home-footnote { font-size: 11px; }
  .japan-view { padding-top: 24px; }
  .trip-heading { padding: 33px 0 45px; }
  .trip-heading h1 { font-size: clamp(66px, 17vw, 91px); }
  .trip-description { font-size: 13px; }
  .trip-facts { gap: 7px; }
  .trip-facts span { padding: 8px 10px; font-size: 10px; }
  .currency-card { padding: 20px; }
  .currency-result output { font-size: 27px; }
  .rate-note { overflow-wrap: anywhere; }
  .content-layout { padding-top: 40px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading > span { font-size: 8px; }
  .section-lead { font-size: 12px; }
  .day-card > summary { grid-template-columns: 50px minmax(0, 1fr) 62px; gap: 11px; min-height: 82px; padding: 12px; }
  .day-edit { top: 27px; right: 46px; }
  .date-box { width: 48px; height: 52px; }
  .date-box strong { font-size: 22px; }
  .day-card h3 { font-size: 14px; }
  .day-preview { font-size: 10px; }
  .day-body { padding: 1px 15px 21px; }
  .day-prose { font-size: 12px; }
  .place-list { grid-template-columns: 1fr; }
  .memories-section, .resources-section { margin-top: 67px; }
  .memory-grid, .resource-grid { grid-template-columns: 1fr; }
  .memory-card { min-height: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap:18px; margin: 3px 0 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.plan-toolbar p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-actions { margin: 13px 0 0; }
.plan-toolbar button, .plan-actions button, .plan-dialog button { min-height: 36px; padding: 8px 11px; border: 1px solid #cddbf1; border-radius: 9px; background: #f2f6fd; color: var(--blue-dark); font: 800 11px var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.plan-toolbar button:hover, .plan-actions button:hover, .plan-dialog button:hover { border-color: #a4c2f6; background: var(--blue-pale); }
.plan-toolbar #reset-plan { color: var(--text-muted); background: var(--surface); }
.plan-dialog { width: min(720px, calc(100% - 24px)); max-height: 91vh; overflow: auto; border: 1px solid #dce4f0; border-radius: 18px; padding: 26px; color: var(--text); background: var(--surface); box-shadow: 0 25px 80px rgba(17, 34, 64, .28); }
.plan-dialog::backdrop { background: rgba(19, 38, 72, .55); }
.plan-dialog h2 { margin: 0 0 7px; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.plan-dialog h3 { margin: 26px 0 11px; font-size: 15px; font-weight: 800; }
.plan-dialog label { display: grid; gap: 6px; margin: 13px 0; color: var(--text-soft); font-size: 11px; font-weight: 800; }
.plan-dialog input, .plan-dialog textarea, .plan-dialog select { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #cdd9ed; border-radius: 9px; padding: 10px 11px; font: 500 12px var(--sans); background: var(--surface-soft); color: var(--text); }
.plan-dialog textarea { resize: vertical; line-height: 1.6; }
.plan-dialog [name="body"] { min-height: 190px; }
.editor-hint { margin: 8px 0 16px; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.editor-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-section, .editor-advanced { margin-top: 25px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.editor-section h3 { margin-top: 0; }
.editor-advanced summary { color: var(--blue-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-advanced .editor-hint { margin-top: 12px; }
.place-editor, .resource-editor { min-width: 0; margin: 10px 0; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.place-editor legend, .resource-editor legend { padding: 0 6px; color: var(--text-muted); font-size: 10px; font-weight: 800; }
.place-editor label, .resource-editor label { margin: 9px 0; }
.plan-dialog .optional-check { display: flex; align-items: center; }
.plan-dialog .optional-check input { width: auto; }
.editor-footer { position: sticky; z-index: 1; bottom: -26px; margin: 25px -26px -26px; padding: 14px 26px; border-top: 1px solid var(--border); background: var(--surface); }
.editor-footer button[type="submit"] { border-color: var(--blue); background: var(--blue); color: white; }
.editor-footer button[type="submit"]:hover { background: var(--blue-dark); }
#editor-status { color: var(--orange); font-size: 11px; line-height: 1.5; }
@media (max-width: 760px) {
  .plan-toolbar { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .plan-dialog { padding: 16px; }
  .editor-two-col { grid-template-columns: 1fr; gap: 0; }
  .editor-footer { bottom: -16px; margin: 20px -16px -16px; padding: 12px 16px; }
}

#print-view { display: none; }
@page { size: A4; margin: 16mm 17mm; }
@media print {
  body.print-itinerary { min-width: 0; background: #fff; color: #172238; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-itinerary .site-shell { display: none !important; }
  .print-itinerary #print-view { display: block; font: 10pt/1.5 var(--sans); }
  .print-heading { padding-bottom: 12mm; border-bottom: 1px solid #c8d6eb; }
  .print-heading p { margin: 0 0 4mm; color: #2468e8; font-size: 8pt; font-weight: 800; letter-spacing: .13em; }
  .print-heading h1 { margin: 0 0 2mm; font-size: 32pt; line-height: 1.1; letter-spacing: -.05em; }
  .print-heading span { color: #526176; font-size: 10pt; }
  .print-day { margin-top: 9mm; padding-top: 5mm; border-top: 1px solid #dce5f1; }
  .print-day header { break-after: avoid; }
  .print-day header > span { color: #2468e8; font-size: 8pt; font-weight: 800; text-transform: uppercase; }
  .print-day h2 { margin: 1mm 0 1mm; font-size: 18pt; line-height: 1.25; }
  .print-day header p { margin: 0 0 5mm; color: #71809a; font-size: 9pt; }
  .print-prose p, .print-prose ol { margin: 0 0 3mm; }
  .print-prose ol { padding-left: 6mm; }
  .print-day h3 { margin: 6mm 0 2mm; color: #526176; font-size: 8pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; break-after: avoid; }
  .print-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm 4mm; margin: 0; padding: 0; list-style: none; }
  .print-places li { padding: 2mm 3mm; border: 1px solid #e2e9f2; border-radius: 2mm; font-size: 8pt; break-inside: avoid; }
  .print-places strong, .print-places span, .print-places small { display: block; }
  .print-places em { color: #a35418; font-size: 7pt; }
  .print-places span { color: #71809a; }
  .print-places small { margin-top: 1mm; font-size: 7pt; }
  .print-note { break-inside: avoid; }
  .print-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .print-itinerary a { color: #1552c0; text-decoration: none; }
  .print-resources { margin-top: 10mm; padding-top: 5mm; border-top: 1px solid #c8d6eb; }
  .print-resources h2 { margin: 0 0 4mm; font-size: 18pt; }
  .print-resources ul { columns: 2; column-gap: 8mm; margin: 0; padding-left: 5mm; }
  .print-resources li { margin-bottom: 2mm; font-size: 8pt; break-inside: avoid; overflow-wrap: anywhere; }
}
