:root {
  --ink: #10283f;
  --ink-2: #173a57;
  --paper: #f4f0e6;
  --card: #fffdf8;
  --yellow: #f1b91f;
  --orange: #e45b37;
  --blue: #4e86ae;
  --line: rgba(16, 40, 63, 0.18);
  --muted: #64727b;
  --shadow: 0 20px 55px rgba(25, 38, 49, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(rgba(16, 40, 63, 0.028) 1px, transparent 1px), var(--paper);
  background-size: 100% 34px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.install-tip {
  width: min(1220px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto -26px;
  padding: 13px 15px 13px 18px;
  color: var(--ink);
  background: #fff4c9;
  border: 1px solid #ead490;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(25, 38, 49, 0.08);
}
.install-tip[hidden] { display: none; }
.install-tip div { display: grid; }
.install-tip strong { font-size: 14px; }
.install-tip span { color: #5e5439; font-size: 13px; }
.install-tip button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(241, 185, 31, 0.78);
  outline-offset: 3px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 64px);
  color: #fff;
  background: var(--ink);
  border-bottom: 5px solid var(--yellow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50% 50% 46% 54%;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  transform: rotate(-4deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0.13em; }
.brand small { color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.08em; }
.weather-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  cursor: pointer;
}
.weather-toggle[aria-pressed="true"] { color: var(--ink); background: #c9e8f3; border-color: #c9e8f3; }

main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.planner-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
}
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h1 em { color: var(--orange); font-weight: 400; }
.intro { max-width: 620px; margin-bottom: 0; color: #435564; font-size: clamp(17px, 2vw, 20px); }
.settings-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 3px 3px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.settings-heading { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; font-weight: 800; }
.saved-note { color: var(--muted); font-size: 12px; font-weight: 600; }
.settings-card label,
.setting-static {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.settings-card label > span,
.setting-static > span { color: var(--muted); font-size: 14px; font-weight: 700; }
.setting-static p { margin: 0; line-height: 1.4; }
.setting-static strong,
.setting-static small,
.setting-static a { display: block; }
.setting-static strong { font-size: 15px; }
.setting-static small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.setting-static a { width: fit-content; margin-top: 5px; color: var(--ink-2); font-size: 13px; font-weight: 800; }
.hotel-setting { align-items: start; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.trip-rule { display: flex; gap: 10px; margin-top: 14px; padding: 13px 14px; background: #edf4f1; border-radius: 12px; }
.trip-rule > span { color: #2d7765; font-size: 11px; }
.trip-rule p { margin: 0; color: #38544d; font-size: 13px; line-height: 1.5; }
.journey-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.journey-band > p {
  grid-column: 1 / -1;
  margin: -3px 2px 0;
  color: var(--muted);
  font-size: 12px;
}
.flight-card {
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(260px, 1.15fr);
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(25, 38, 49, .11);
}
.flight-card.inbound { background: var(--ink-2); }
.flight-label { display: block; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.flight-card strong { display: block; margin-top: 2px; font-size: 14px; }
.flight-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flight-route span { display: grid; font-size: 13px; }
.flight-route b { color: var(--yellow); font-family: Georgia, serif; font-size: 22px; line-height: 1.05; }
.flight-route i { color: rgba(255,255,255,.5); font-style: normal; }
.season-alert { margin-top: 24px; padding: 14px 18px; color: #60331d; background: #fff2d3; border: 1px solid #efce80; border-radius: 14px; }
.season-alert ul { margin: 7px 0 0; padding-left: 20px; }
.season-alert li + li { margin-top: 5px; }

.live-ribbon {
  margin-top: 24px;
  overflow: hidden;
  color: #fff;
  background: var(--ink-2);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(25, 38, 49, .11);
}
.live-ribbon button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.live-ribbon-dot { color: var(--yellow); font-size: 13px; }
.live-ribbon[data-state="ok"] .live-ribbon-dot { color: #70d0a4; }
.live-ribbon[data-state="warn"] .live-ribbon-dot { color: #ffd95f; }
.live-ribbon[data-state="danger"] .live-ribbon-dot { color: #ff8567; }
.live-ribbon[data-state="offline"] .live-ribbon-dot { color: #bbc4ca; }
.live-ribbon-copy { display: grid; line-height: 1.35; }
.live-ribbon-copy strong { font-size: 14px; }
.live-ribbon-copy small { color: rgba(255,255,255,.68); font-size: 12px; }
.live-ribbon-action { color: var(--yellow); font-size: 12px; font-weight: 900; white-space: nowrap; }
.live-tab-dot { color: #3c956f; font-size: 10px; }
.view-tab.active .live-tab-dot { color: var(--yellow); }

.live-heading { align-items: center; }
.live-refresh {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 11px;
  font-weight: 850;
  cursor: pointer;
}
.live-refresh:disabled { opacity: .58; cursor: wait; }
.live-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 15px;
  padding: 22px;
  background: #eaf1f4;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 16px;
}
.live-overview[data-state="ok"] { background: #e8f4ee; border-left-color: #2d7765; }
.live-overview[data-state="warn"] { background: #fff3ce; border-left-color: var(--yellow); }
.live-overview[data-state="danger"] { background: #ffe5dc; border-left-color: var(--orange); }
.live-overview[data-state="offline"] { background: #edf0f1; border-left-color: #7f8b93; }
.live-overview h3 { margin: 4px 0 2px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 34px); }
.live-overview p { margin: 0; color: #455a68; }
.live-mode-badge {
  display: inline-flex;
  padding: 3px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.live-overview[data-state="ok"] .live-mode-badge { background: #2d7765; }
.live-overview[data-state="warn"] .live-mode-badge { color: #553e00; background: var(--yellow); }
.live-overview[data-state="danger"] .live-mode-badge { background: var(--orange); }
.live-overview[data-state="offline"] .live-mode-badge { background: #6c7880; }
.live-updated { text-align: right; font-size: 12px; white-space: nowrap; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.live-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 21px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(25,38,49,.07);
}
.live-card[data-state="ok"] { border-top-color: rgba(45,119,101,.28); border-top-color: #2d7765; }
.live-card[data-state="warn"] { border-top-color: var(--yellow); }
.live-card[data-state="danger"] { border-top-color: var(--orange); }
.live-card[data-state="offline"] { border-top-color: #8a959c; }
.live-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}
.live-card-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #eaf1f4;
  border-radius: 11px;
  font-size: 19px;
  font-weight: 900;
}
.live-card-head > div { min-width: 0; }
.live-card-head div > span { display: block; color: var(--muted); font-size: 11px; font-weight: 850; }
.live-card-head h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; line-height: 1.2; }
.live-state-label {
  padding: 4px 8px;
  color: #42545f;
  background: #edf1f2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.live-card[data-state="ok"] .live-state-label { color: #235843; background: #dcece4; }
.live-card[data-state="warn"] .live-state-label { color: #684c00; background: #fff0bd; }
.live-card[data-state="danger"] .live-state-label { color: #7b2c18; background: #ffe0d7; }
.live-card[data-state="offline"] .live-state-label { color: #4d5b63; background: #e1e6e8; }
.live-summary { margin-bottom: 12px; color: #334d5f; font-weight: 750; }
.live-list { margin: 0 0 15px; padding: 0; list-style: none; }
.live-list:empty { display: none; }
.live-list li { padding: 10px 0; color: #4f606b; border-top: 1px dashed var(--line); font-size: 13px; }
.live-list li strong { display: block; color: var(--ink); }
.live-source-time { margin-top: auto; margin-bottom: 7px; padding-top: 4px; color: var(--muted); font-size: 11px; }
.live-source-link, .live-link-row a { width: fit-content; color: var(--ink-2); font-size: 13px; font-weight: 850; }
.live-link-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.live-safety-note {
  margin-top: 15px;
  padding: 20px 22px;
  color: #4c3d1c;
  background: #fff3c9;
  border: 1px solid #ead490;
  border-radius: 16px;
}
.live-safety-note > strong { display: block; margin-bottom: 3px; color: var(--ink); }
.live-safety-note p { margin-bottom: 12px; }

.view-tabs { display: flex; gap: 8px; margin-top: 52px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.view-tab {
  min-height: 44px;
  padding: 10px 17px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.view-tab.active { color: #fff; background: var(--ink); }
.app-view { margin-top: 24px; }
.day-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(84px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding: 5px 3px 16px;
  scrollbar-width: thin;
}
.day-button {
  min-width: 84px;
  min-height: 92px;
  padding: 10px 7px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.day-button:hover { transform: translateY(-2px); }
.day-button.active { color: #fff; background: var(--orange); border-color: var(--orange); box-shadow: 0 10px 24px rgba(228, 91, 55, 0.22); }
.day-button .day-num, .day-button .day-date, .day-button .day-icon { display: block; }
.day-button .day-num { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; }
.day-button .day-date { font-size: 13px; }
.day-button .day-icon { margin-top: 5px; font-size: 22px; line-height: 1; }

.day-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  min-height: 600px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.day-story { display: flex; flex-direction: column; padding: clamp(28px, 5vw, 62px); }
.day-index { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; }
.day-index::after { content: ""; width: 80px; height: 1px; background: var(--line); }
.day-story h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.day-deck { max-width: 660px; margin-bottom: 24px; color: #405463; font-size: 18px; }
.date-conflict {
  display: grid;
  gap: 2px;
  margin: -6px 0 22px;
  padding: 12px 14px;
  color: #6e2a19;
  background: #ffe5dc;
  border-left: 5px solid var(--orange);
  border-radius: 9px;
  font-size: 14px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.badge { padding: 5px 10px; color: var(--ink-2); background: #edf2f4; border-radius: 999px; font-size: 13px; font-weight: 750; }
.badge.energy-low { background: #dcece4; color: #245844; }
.badge.energy-medium { background: #fff0bd; color: #684c00; }
.badge.energy-high { background: #ffe0d7; color: #7b2c18; }
.schedule { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: 76px 1fr; gap: 17px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.schedule time, .schedule .time-label { color: var(--orange); font-size: 14px; font-weight: 900; }
.schedule strong { display: block; margin-bottom: 3px; line-height: 1.3; }
.schedule p { margin: 0; color: var(--muted); font-size: 14px; }

.day-side { display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.day-image {
  min-height: 235px;
  background-image: linear-gradient(135deg, rgba(241, 185, 31, 0.92), rgba(228, 91, 55, 0.82));
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
}
.side-content { display: grid; align-content: start; gap: 22px; padding: clamp(25px, 4vw, 42px); }
.mission { display: flex; gap: 11px; align-items: flex-start; padding: 15px; color: var(--ink); background: #fff4c9; border-radius: 13px; }
.mission > span { color: var(--orange); font-size: 18px; }
.mission p { margin: 0; font-size: 14px; }
.mission strong { display: block; margin-bottom: 2px; }
.side-stat { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.side-stat span { color: rgba(255, 255, 255, 0.58); font-size: 13px; font-weight: 800; }
.side-stat strong { font-size: 15px; }
.parent-note, .rain-note { padding: 16px; color: var(--ink); background: var(--yellow); border-radius: 13px; font-size: 14px; }
.rain-note { background: #cae8f4; }
.parent-note strong, .rain-note strong { display: block; margin-bottom: 3px; }
.rain-note small { display: block; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(16,40,63,.2); font-size: 12px; line-height: 1.45; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.action-link.primary { color: var(--ink); background: #fff; border-color: #fff; }
.credit { margin: -10px 0 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.4; }
.credit a { color: rgba(255,255,255,.72); }
.commute-note { margin: -15px 0 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.45; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; }
.section-heading > p { max-width: 440px; margin-bottom: 6px; color: var(--muted); }
.route-list { display: grid; gap: 10px; }
.route-card {
  display: grid;
  grid-template-columns: 100px minmax(220px, 0.75fr) minmax(320px, 1.25fr) 120px;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  color: var(--ink);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
}
.route-card:hover { border-color: var(--blue); }
.route-day { color: var(--orange); font-size: 13px; font-weight: 900; }
.route-card h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; line-height: 1.2; }
.route-card p { margin: 0; color: var(--muted); font-size: 14px; }
.route-energy { justify-self: end; padding: 5px 10px; background: #eef2f2; border-radius: 999px; font-size: 13px; font-weight: 800; }

.booking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.booking-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.booking-card.done { background: #eaf3ee; }
.booking-card input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: #287056; }
.booking-card h3 { margin-bottom: 4px; font-size: 18px; }
.booking-card p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.booking-card a { color: var(--ink-2); font-size: 14px; font-weight: 850; }
.booking-when { display: inline-block; margin-bottom: 9px; padding: 3px 8px; color: #743317; background: #ffe1c9; border-radius: 6px; font-size: 12px; font-weight: 850; }
.truth-box { display: flex; gap: 14px; margin-top: 20px; padding: 20px 22px; color: #4c3d1c; background: #fff3c9; border: 1px solid #ead490; border-radius: 16px; }
.truth-box > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font-weight: 900; }
.truth-box p { margin: 0; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px clamp(20px, 4vw, 64px); color: rgba(255, 255, 255, 0.66); background: var(--ink); font-size: 13px; }
footer p { margin: 0; }

@media (max-width: 920px) {
  .planner-head, .day-detail { grid-template-columns: 1fr; }
  .settings-card { max-width: 620px; }
  .day-side { min-height: auto; }
  .route-card { grid-template-columns: 82px 1fr 100px; }
  .route-card p { grid-column: 2 / -1; }
  .journey-band { grid-template-columns: 1fr; }
  .journey-band > p { grid-column: 1; }
}

@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 11px 16px; }
  .brand strong { font-size: 12px; }
  .brand small { display: none; }
  .weather-toggle { padding-inline: 11px; font-size: 14px; }
  main { width: min(100% - 28px, 1220px); padding-top: 36px; }
  h1 { font-size: clamp(46px, 14vw, 64px); }
  .planner-head { gap: 28px; }
  .flight-card { grid-template-columns: 1fr; gap: 12px; }
  .view-tabs { margin-top: 36px; }
  .day-strip { margin-right: -14px; padding-right: 14px; }
  .day-detail { min-height: 0; }
  .day-story { padding: 28px 22px 34px; }
  .day-story h2 { font-size: 42px; }
  .schedule li { grid-template-columns: 62px 1fr; gap: 11px; }
  .day-image { min-height: 190px; }
  .side-content { padding: 25px 22px 30px; }
  .side-stat { grid-template-columns: 96px 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .route-card { grid-template-columns: 1fr auto; gap: 5px 12px; padding: 17px; }
  .route-day { grid-column: 1 / -1; }
  .route-card p { grid-column: 1 / -1; }
  .route-energy { grid-column: 2; grid-row: 2; }
  .booking-list { grid-template-columns: 1fr; }
  .live-ribbon button { grid-template-columns: auto 1fr; }
  .live-ribbon-action { display: none; }
  .live-overview { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .live-updated { text-align: left; white-space: normal; }
  .live-grid { grid-template-columns: 1fr; }
  .live-card { padding: 18px; }
  .live-card-head { grid-template-columns: auto 1fr; }
  .live-state-label { grid-column: 2; justify-self: start; }
  .live-heading { display: flex; align-items: flex-end; }
  .live-heading h2 { font-size: 38px; }
  footer { display: block; }
  footer p + p { margin-top: 8px; }
  .install-tip {
    width: calc(100% - 28px);
    margin-top: 14px;
    margin-bottom: -20px;
  }
}

@media (display-mode: standalone) {
  .topbar {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  main { padding-bottom: max(80px, env(safe-area-inset-bottom)); }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

@media (display-mode: standalone) and (max-width: 680px) {
  .title-block { display: none; }
  .planner-head { gap: 0; }
  main { padding-top: 16px; }
  .journey-band { margin-top: 14px; }
  .view-tabs { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
