:root {
  color-scheme: light;
  --navy: #12365b;
  --navy-deep: #082846;
  --green: #13875f;
  --green-bright: #35b97d;
  --pink: #be2969;
  --sun: #f4b938;
  --ink: #142538;
  --muted: #5f6e7b;
  --line: #dce5e7;
  --paper: #f4f7f4;
  --panel: #ffffff;
  --mist: #e9f5ef;
  --shadow: 0 18px 54px rgba(8, 40, 70, 0.13);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(53, 185, 125, 0.10), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.mobile-header, .mobile-tabs, .route-backdrop, .close-button { display: none; }

.app-shell {
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  min-height: 100vh;
}

.route-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 34px 24px;
  background:
    radial-gradient(circle at 20% 5%, rgba(53,185,125,.22), transparent 18rem),
    var(--navy-deep);
  color: white;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}

.brand-block h1, .hero-copy h2, .panel h3 { margin: 0; }

.brand-block h1 {
  max-width: 9ch;
  color: white;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: .88;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.brand-block h1 span { color: var(--green-bright); }

.brand-block p:last-child {
  max-width: 28ch;
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: .94rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-panel .eyebrow { color: #7de0af; }

.progress-box {
  margin: 26px 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.progress-box > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.84);
  font-size: .82rem;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-bright), #9de6bd);
  transition: width .3s ease;
}

.day-list { display: grid; gap: 7px; }

.day-button {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background .16s ease, transform .16s ease;
}

.day-button:hover { background: rgba(255,255,255,.07); }
.day-button.active {
  border-color: rgba(125,224,175,.34);
  background: rgba(53,185,125,.16);
  transform: translateX(3px);
}

.day-number {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: white !important;
  font-size: .83rem !important;
  font-weight: 900;
}

.day-button.active .day-number { background: var(--green-bright); color: var(--navy-deep) !important; }
.day-button strong, .day-button span { display: block; }
.day-button strong { color: white; font-size: .88rem; line-height: 1.2; }
.day-button span span { margin-top: 3px; color: rgba(255,255,255,.54); font-size: .7rem; line-height: 1.25; }

.done-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.day-button.done .done-dot { background: var(--sun); box-shadow: 0 0 0 4px rgba(244,185,56,.12); }

.journal-area {
  min-width: 0;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 44px);
}

.sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); }
.sync-bar > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sync-bar > div > span:last-child { display: grid; gap: 2px; }
.sync-bar small { color: var(--muted); font-size: .75rem; }
.sync-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(244,185,56,.14); }
.sync-bar.connected .sync-dot { background: var(--green-bright); box-shadow: 0 0 0 5px rgba(53,185,125,.14); }

.hero {
  position: relative;
  min-height: clamp(360px, 46vw, 590px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8,40,70,.92) 0%, rgba(8,40,70,.64) 42%, rgba(8,40,70,.1) 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  max-width: 720px;
  padding: clamp(32px, 5vw, 70px);
  color: white;
}

.hero-kicker {
  align-self: flex-start;
  margin: 0 0 15px !important;
  padding: 8px 13px;
  border-radius: 99px;
  background: var(--pink);
  color: white !important;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .91;
  text-wrap: balance;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 55ch;
  margin: 20px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.62;
}

.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 25px; }
.hero-actions button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 1.2rem;
}
.hero-actions button:disabled { opacity: .34; cursor: default; }
.hero-actions span { min-width: 58px; color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-align: center; }

.context-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.context-strip div {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
}

.context-strip span { display: block; margin-bottom: 5px; color: var(--green); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.context-strip strong { display: block; overflow-wrap: anywhere; font-size: .92rem; }

.travel-help {
  margin: 0 0 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(19,135,95,.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f9fffb, #e8f6ef);
  box-shadow: 0 9px 30px rgba(8,40,70,.05);
}
.travel-help-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.travel-help-heading h3 { margin: 0; color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 900; letter-spacing: -.035em; }
.help-badge { padding: 7px 10px; border-radius: 99px; background: var(--green); color: white; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.travel-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.travel-note { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 15px; border: 1px solid rgba(19,135,95,.14); border-radius: 15px; background: rgba(255,255,255,.88); }
.travel-note > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-bright); color: var(--navy-deep); font-size: .72rem; font-weight: 950; }
.travel-note small, .travel-note strong { display: block; }
.travel-note small { margin-bottom: 3px; color: var(--green); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.travel-note strong { color: var(--navy); }
.travel-note p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.emergency-details { margin-top: 12px; border: 1px solid rgba(8,40,70,.13); border-radius: 15px; background: white; }
.emergency-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 16px; color: var(--navy); cursor: pointer; list-style: none; }
.emergency-details summary::-webkit-details-marker { display: none; }
.emergency-details summary span:first-child { display: grid; gap: 2px; }
.emergency-details summary small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.emergency-details summary span:last-child { font-size: 1.5rem; transition: transform .18s ease; }
.emergency-details[open] summary span:last-child { transform: rotate(45deg); }
.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 12px; }
.emergency-card { display: grid; align-content: space-between; gap: 13px; padding: 14px; border-radius: 13px; background: #f4f7f7; }
.emergency-card strong { color: var(--navy); }
.emergency-card p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.contact-actions a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 11px; background: var(--navy); color: white; font-size: .76rem; font-weight: 850; text-decoration: none; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr); gap: 18px; align-items: start; }
.panel {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 9px 30px rgba(8,40,70,.055);
  scroll-margin-top: 90px;
}
.briefing-panel { border-top: 5px solid var(--green-bright); }
.hotel-panel { border-top: 5px solid var(--navy); }
.journal-panel { border-top: 5px solid var(--pink); }
.output-panel { border-top: 5px solid var(--sun); }
.journal-panel { grid-row: span 2; }

.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel h3 { color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 900; letter-spacing: -.035em; }
.ghost-button, .primary-button, .danger-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: .84rem;
  font-weight: 850;
}
.ghost-button { border: 1px solid var(--line); background: white; color: var(--navy); }
.primary-button { border: 0; background: var(--green); color: white; box-shadow: 0 8px 20px rgba(19,135,95,.22); }
.danger-button { border:1px solid #e6b7b7; background:#fff5f5; color:#9f2f2f; }
.danger-button[hidden] { display:none; }
.button-row, .hotel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rich-content, .choice-list { display: grid; gap: 11px; }
.hotel-panel[hidden] { display: none; }
.hotel-summary { display: grid; gap: 13px; }
.hotel-summary p { margin: 0; color: var(--muted); line-height: 1.55; }
.hotel-summary p:first-child { color: var(--navy); font-size: 1.08rem; }
.hotel-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.info-card { position: relative; padding: 16px 17px 16px 21px; border-radius: 15px; background: var(--mist); }
.info-card::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 5px; border-radius: 0 6px 6px 0; background: var(--green); content: ""; }
.info-card strong { display: block; margin-bottom: 6px; color: var(--navy); }
.info-card p, .info-card ul { margin: 0; color: var(--muted); line-height: 1.55; }
.info-card ul { padding-left: 18px; }
.info-card li + li { margin-top: 5px; }

.choice-item { position: relative; padding: 16px 16px 16px 55px; border: 1px solid #f0e0b8; border-radius: 15px; background: #fffaf0; }
.choice-item::before { position: absolute; top: 15px; left: 15px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--sun); color: var(--navy-deep); content: "\2713"; font-size: .8rem; font-weight: 900; }
.choice-item strong { display: block; margin-bottom: 4px; color: var(--navy); }
.choice-item p { margin: 0; color: var(--muted); line-height: 1.5; }

.journal-form { display: grid; gap: 16px; }
.journal-form label { display: grid; gap: 8px; color: var(--navy); font-size: .86rem; font-weight: 850; }
.journal-form label > small { color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.45; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; color: var(--ink); font-size: 16px; }
input { height: 48px; padding: 0 13px; }
textarea { min-height: 96px; resize: vertical; padding: 13px; line-height: 1.5; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(53,185,125,.3); outline-offset: 2px; border-color: var(--green); }
.family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sharing-explainer { padding: 17px; border-radius: 15px; background: #fff8e7; }
.sharing-explainer strong { display: block; margin-bottom: 5px; color: var(--navy); }
.sharing-explainer p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.photo-uploader { display: grid; gap: 12px; padding: 15px; border: 1px dashed rgba(19,135,95,.38); border-radius: 16px; background: #f7fcf9; }
.photo-uploader > div:first-child { display: grid; gap: 3px; }
.photo-uploader small { color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.4; }
.photo-picker { position: relative; display: grid !important; place-items: center; min-height: 50px; overflow: hidden; border: 1px solid rgba(19,135,95,.24); border-radius: 13px; background: var(--mist); color: var(--green) !important; text-align: center; }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.photo-preview:empty { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(8,40,70,.88); color: white; font-size: 1.1rem; }
.photo-thumb .upload-mark { position: absolute; bottom: 5px; left: 5px; padding: 4px 7px; border-radius: 99px; background: rgba(8,40,70,.82); color: white; font-size: .62rem; font-weight: 850; }
.publish-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.publish-status > span { padding: 6px 9px; border-radius: 99px; background: #eef1f2; color: var(--muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.publish-status > span.live { background: var(--mist); color: var(--green); }
.publish-status p { flex: 1; min-width: 180px; margin: 0; color: var(--muted); font-size: .8rem; }
.cloud-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 24px 70px rgba(8,40,70,.3); }
.cloud-dialog::backdrop { background: rgba(3,19,34,.68); backdrop-filter: blur(4px); }
.cloud-dialog form { position: relative; display: grid; gap: 15px; padding: 28px; }
.cloud-dialog h2 { margin: 0; color: var(--navy); font-size: 1.7rem; }
.cloud-dialog p { margin: 0; color: var(--muted); line-height: 1.5; }
.cloud-dialog label { display: grid; gap: 7px; color: var(--navy); font-size: .84rem; font-weight: 850; }
.dialog-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--navy); font-size: 1.8rem; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.cloud-feedback { min-height: 1.3em; font-size: .8rem; }

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 17px;
  border-radius: 14px;
  background: var(--navy-deep);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.install-tip {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  padding: 18px 44px 18px 18px;
  border: 1px solid rgba(53,185,125,.28);
  border-radius: 18px;
  background: var(--navy-deep);
  color: white;
  box-shadow: var(--shadow);
}
.install-tip[hidden], .offline-status[hidden] { display: none; }
.install-tip button { position: absolute; top: 6px; right: 7px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; color: white; font-size: 1.55rem; }
.install-tip strong { display: block; color: #7de0af; }
.install-tip p { margin: 6px 0 0; color: rgba(255,255,255,.78); font-size: .84rem; line-height: 1.45; }
.offline-status { position: fixed; z-index: 85; top: 12px; left: 50%; padding: 8px 13px; border-radius: 99px; background: var(--sun); color: var(--navy-deep); font-size: .74rem; font-weight: 900; box-shadow: 0 8px 20px rgba(8,40,70,.16); transform: translateX(-50%); }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 1fr; }
  .route-panel { position: static; height: auto; }
  .day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .journal-panel { grid-row: auto; }
}

@media (max-width: 700px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--paper); }

  .mobile-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: 48px 1fr 42px;
    align-items: center;
    min-height: calc(62px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(8,40,70,.96);
    color: white;
    backdrop-filter: blur(18px);
  }

  .icon-button { display: grid; align-content: center; justify-content: start; gap: 4px; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; }
  .icon-button span { width: 22px; height: 2px; border-radius: 9px; background: white; }
  .mobile-brand { color: white; font-size: .86rem; font-weight: 950; letter-spacing: -.02em; text-align: center; text-decoration: none; }
  .mobile-brand span { color: var(--green-bright); }
  .mobile-day-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-bright); color: var(--navy-deep); font-size: .75rem; font-weight: 950; }

  .route-panel {
    position: fixed;
    z-index: 70;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 380px);
    height: auto;
    padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 18px 0 50px rgba(0,0,0,.25);
  }
  .route-panel.open { transform: translateX(0); }
  .close-button { position: absolute; top: calc(13px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: white; font-size: 2rem; }
  .brand-block { padding-right: 42px; }
  .brand-block h1 { font-size: 2.35rem; }
  .day-list { grid-template-columns: 1fr; }

  .route-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(3,19,34,.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .route-backdrop.show { display: block; opacity: 1; pointer-events: auto; }

  .journal-area { padding: 12px 12px 22px; }
  .sync-bar { align-items: stretch; flex-direction: column; }
  .sync-bar > button { width: 100%; }
  .hero { min-height: 520px; border-radius: 22px; }
  .hero img { object-position: 53% center; }
  .hero::after { background: linear-gradient(0deg, rgba(8,40,70,.96) 0%, rgba(8,40,70,.74) 47%, rgba(8,40,70,.08) 82%); }
  .hero-copy { justify-content: flex-end; padding: 26px 22px 28px; }
  .hero-copy h2 { max-width: 10ch; font-size: clamp(2.65rem, 13vw, 4.3rem); }
  .hero-copy > p:not(.hero-kicker) { font-size: .94rem; line-height: 1.52; }
  .hero-actions { margin-top: 19px; }
  .hero-actions button { width: 48px; height: 48px; }

  .context-strip { grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
  .context-strip div { padding: 14px; border-radius: 14px; }
  .context-strip div:first-child { grid-column: 1 / -1; }

  .travel-help { margin-bottom: 12px; padding: 19px 16px; border-radius: 19px; }
  .travel-help-heading { align-items: flex-start; }
  .help-badge { margin-top: 2px; }
  .travel-notes, .emergency-grid { grid-template-columns: 1fr; }
  .travel-note { padding: 14px 13px; }
  .emergency-details summary { min-height: 68px; }
  .emergency-details summary small { max-width: 27ch; }
  .contact-actions a { flex: 1; justify-content: center; min-height: 46px; }

  .content-grid { gap: 12px; }
  .panel { padding: 20px 17px; border-radius: 19px; scroll-margin-top: 76px; }
  .panel-heading { margin-bottom: 17px; }
  .panel-heading .eyebrow { margin-bottom: 5px; }
  .panel h3 { font-size: 1.35rem; }
  .ghost-button, .primary-button, .danger-button { min-width: 78px; min-height: 46px; }
  .family-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cloud-dialog form { padding: 25px 18px 20px; }
  .dialog-actions > button { flex: 1; }
  .button-row { flex-wrap: nowrap; }
  .hotel-links a { flex: 1; justify-content: center; }

  .mobile-tabs {
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(8,40,70,.96);
    box-shadow: 0 14px 34px rgba(8,40,70,.28);
    backdrop-filter: blur(18px);
  }
  .mobile-tabs a, .mobile-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: 0; border: 0; border-radius: 14px; background: transparent; color: rgba(255,255,255,.74); font-size: .66rem; font-weight: 800; text-decoration: none; }
  .mobile-tabs span { color: var(--green-bright); font-size: 1.1rem; line-height: 1; }
  .mobile-tabs a:active, .mobile-tabs button:active { background: rgba(255,255,255,.1); }

  .toast { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); left: 14px; max-width: none; text-align: center; }
  .install-tip { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; width: auto; }
  .offline-status { top: calc(68px + env(safe-area-inset-top)); white-space: nowrap; }
}

@media (max-width: 390px) {
  .hero { min-height: 500px; }
  .hero-copy h2 { font-size: 2.55rem; }
  .family-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
