:root {
  --ink: #17372f;
  --forest: #153f35;
  --forest-deep: #0c2c26;
  --moss: #60786d;
  --paper: #f3efe6;
  --paper-deep: #e8e1d5;
  --cream: #fffdf8;
  --sun: #d69a4c;
  --line: #d9d3c7;
  --danger: #9d2f2f;
  --shadow: 0 18px 50px rgba(25, 47, 39, 0.12);
  --soft-shadow: 0 8px 24px rgba(25, 47, 39, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d69a4c; outline-offset: 3px; }

.topbar {
  min-height: 64px;
  padding: 0 max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(217, 211, 199, 0.75);
  position: relative;
  z-index: 30;
}
.brand { font-weight: 850; letter-spacing: -0.05em; font-size: 1.25rem; }
.brand span { color: var(--sun); }
.topbar-actions { display: flex; align-items: center; gap: 16px; color: var(--moss); font-size: 0.88rem; font-weight: 700; }
.topbar-actions form { margin: 0; }
.link-button { border: 0; background: none; color: inherit; padding: 12px 0; cursor: pointer; }

.page-head, .journey-grid, .trip-overview, .public-timeline, .form-page, .upload-page, .map-head {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 56px 0 28px; }
.page-head h1, .form-page h1, .upload-page h1, .map-head h1 {
  font: clamp(2.55rem, 7vw, 5.1rem) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
  margin: 0.12em 0;
}
.page-intro { margin: 12px 0 0; color: var(--moss); font-size: 1rem; line-height: 1.6; }
.eyebrow, .section-label, .destination-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 850;
  color: var(--moss);
}
.muted { color: var(--moss); line-height: 1.6; }
.button, button.primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.quiet-button { background: transparent; color: var(--forest); }
.secondary { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--moss); font-weight: 750; }
.light { color: white; }

/* Journey index */
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 90px; }
.journey-card {
  --journey-cover: linear-gradient(145deg, #416c62 0%, #21483f 48%, #102f28 100%);
  isolation: isolate;
  position: relative;
  min-height: 460px;
  display: flex;
  overflow: hidden;
  border-radius: 28px;
  color: white;
  background-image: var(--journey-cover);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.journey-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 21, 18, 0.12) 8%, rgba(5, 21, 18, 0.32) 46%, rgba(5, 21, 18, 0.93) 100%); }
.journey-card-content { width: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; }
.journey-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.privacy-badge { display: inline-flex; align-items: center; min-height: 30px; width: max-content; padding: 0 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(14, 42, 35, .56); color: white; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.open-cue { font-size: .8rem; font-weight: 800; opacity: .9; }
.journey-story { margin-top: auto; }
.journey-story .destination-kicker { color: rgba(255,255,255,.78); }
.journey-story h2 { max-width: 650px; margin: 8px 0; font: clamp(2rem, 4.2vw, 3.5rem) / .98 Georgia, serif; letter-spacing: -.045em; }
.journey-dates { margin: 0; font-weight: 750; }
.journey-description { max-width: 560px; margin: 12px 0 0; color: rgba(255,255,255,.8); line-height: 1.5; }
.journey-meta { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 22px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.journey-meta div { display: grid; gap: 2px; }
.journey-meta strong { font-size: 1rem; }
.journey-meta span { font-size: .71rem; color: rgba(255,255,255,.68); }
.journey-meta .journey-crew { text-align: right; }
.journey-meta .journey-crew strong { overflow-wrap: anywhere; }
.journey-card:hover { box-shadow: 0 24px 66px rgba(20, 45, 36, .2); }

/* Destination hero */
.destination-hero {
  --cover: linear-gradient(145deg, #52766d 0%, #244d43 48%, #102f28 100%);
  min-height: 490px;
  display: flex;
  align-items: end;
  color: white;
  background-image: linear-gradient(180deg, rgba(6, 22, 19, .18) 5%, rgba(6, 22, 19, .35) 48%, rgba(6, 22, 19, .92) 100%), var(--cover);
  background-size: cover;
  background-position: center;
}
.hero-inner { width: min(100% - 36px, 1120px); margin: 0 auto; padding: 46px 0; }
.hero-badges { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: rgba(255,255,255,.76); font-size: .8rem; }
.destination-hero .destination-kicker { color: rgba(255,255,255,.78); }
.destination-hero h1 { max-width: 850px; margin: 7px 0 10px; font: clamp(3rem, 8vw, 6.2rem) / .9 Georgia, serif; letter-spacing: -.06em; }
.hero-dates { margin: 0; font-size: 1rem; font-weight: 780; }
.hero-description { max-width: 630px; margin: 14px 0; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; }
.hero-crew { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.crew-avatars .crew-person { display: grid; justify-items: center; gap: 5px; padding: 0; background: transparent; }
.crew-person b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dfe9e2; color: var(--forest); font-size: .86rem; font-style: normal; font-weight: 900; }
.crew-person small { color: var(--moss); font-size: .68rem; font-weight: 750; }
.hero-crew .crew-person b { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.16); color: white; backdrop-filter: blur(10px); }
.hero-crew .crew-person small { color: rgba(255,255,255,.86); }
.hero-journey-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.continue-button { min-height: 54px; display: inline-flex; align-items: center; gap: 11px; padding: 0 21px; border-radius: 999px; background: var(--cream); color: var(--forest); font-weight: 900; box-shadow: var(--soft-shadow); }
.continue-button span { font-size: 1.1rem; }
.manage-link { min-height: 44px; display: inline-flex; align-items: center; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 760; text-decoration: underline; text-underline-offset: 4px; }

/* Trip overview and actions */
.trip-overview { padding: 28px 0 120px; }
.overview-grid { display: grid; grid-template-columns: .8fr 1.7fr; gap: 14px; }
.crew-panel, .stat-panel { background: rgba(255,253,248,.78); border: 1px solid rgba(217,211,199,.8); border-radius: 20px; padding: 20px; }
.crew-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.crew-list > span:not(.crew-person) { padding: 9px 13px; border-radius: 999px; background: #e5ece7; font-size: .82rem; font-weight: 800; }
.solo-label { color: rgba(255,255,255,.88); font-size: .86rem; font-weight: 800; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel-heading > div { display: grid; gap: 5px; }
.panel-heading > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest); font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.party-type-form { display: flex; align-items: end; gap: 8px; margin-top: 14px; }
.party-type-form label { flex: 1; display: grid; gap: 4px; color: var(--moss); font-size: .72rem; font-weight: 750; }
.party-type-form select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.party-type-form button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--forest); color: white; font-weight: 800; }
.crew-member-actions { display: flex; gap: 7px; }
.crew-member-actions a, .crew-member-actions button { min-height: 32px; padding: 5px 2px; border: 0; background: transparent; color: var(--moss); font-size: .65rem; text-decoration: underline; cursor: pointer; }
.crew-member-actions form { margin: 0; }
.stat-panel { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.stat-panel div { min-width: 0; padding: 3px 12px; border-left: 1px solid var(--line); }
.stat-panel div:first-child { border-left: 0; }
.stat-panel strong, .stat-panel span, .stat-panel i { display: block; }
.stat-panel i { margin-bottom: 5px; color: var(--sun); font-size: .9rem; font-style: normal; }
.stat-panel strong { font: 2rem Georgia, serif; }
.stat-panel span { margin-top: 3px; color: var(--moss); font-size: .72rem; overflow-wrap: anywhere; }
.trip-actions { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 10px; margin: 18px 0 54px; }
.trip-actions > a, .trip-actions form, .trip-actions button { min-width: 0; }
.trip-actions > a, .trip-actions button { width: 100%; min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--soft-shadow); }
.trip-actions .action-primary { flex-direction: row; align-items: center; justify-content: center; gap: 8px; background: var(--forest); color: white; border-color: var(--forest); }
.trip-actions .action-primary span { font-size: 1.6rem; font-weight: 300; }
.trip-actions strong { font-size: .93rem; }
.trip-actions small { color: var(--moss); font-size: .7rem; line-height: 1.2; }
.trip-actions .action-primary small { color: rgba(255,255,255,.7); }
.continue-admin { margin: -36px 0 48px; }
.archived-alert { margin-bottom: 18px; }
.trip-settings-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.72); }
.trip-settings-panel h2 { margin: 5px 0 7px; font: 2rem Georgia, serif; }
.trip-settings-panel p { margin: 0; color: var(--moss); line-height: 1.5; }
.trip-settings-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
.trip-settings-actions a, .trip-settings-actions button { width: 100%; min-height: 48px; display: grid; place-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--forest); font-size: .78rem; font-weight: 800; text-align: center; cursor: pointer; }
.trip-settings-actions form { margin: 0; }
.trip-settings-actions button:disabled { cursor: default; opacity: .55; }
.trip-settings-actions .danger-link { color: var(--danger); border-color: #d8adad; }
.danger-page { padding-bottom: 70px; }
.danger-explanation { margin: 22px 0; padding: 18px; border: 1px solid #d8adad; border-radius: 14px; background: #fff5f3; line-height: 1.5; }
.danger-explanation p { margin: 8px 0 0; }
.danger-button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--danger); color: white; font-weight: 850; cursor: pointer; }
.journey-notice, .archived-journeys { width: min(100% - 32px, 1120px); margin-inline: auto; }
.archived-journeys { padding: 0 0 70px; }
.archived-journeys h2 { margin: 5px 0 16px; font: 2rem Georgia, serif; }
.archived-list { display: grid; gap: 8px; }
.archived-list article { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.72); }
.archived-list article > div:first-child { display: grid; gap: 4px; }
.archived-list article span { color: var(--moss); font-size: .78rem; }
.archived-actions { display: flex; align-items: center; gap: 8px; }
.archived-actions form { margin: 0; }
.archived-actions a, .archived-actions button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--forest); font-size: .75rem; font-weight: 800; cursor: pointer; }
.success { padding: 18px; border-radius: 16px; margin: 0 0 18px; background: #deeee3; }
.success p { margin: .35rem 0 .8rem; }
.success input { width: 100%; padding: 12px; border: 1px solid #9eb6a6; border-radius: 9px; background: white; }
.timeline-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.timeline-heading h2 { margin: 5px 0 0; font: clamp(2rem, 5vw, 3.4rem) / 1 Georgia, serif; letter-spacing: -.04em; }
.timeline-heading > a { color: var(--moss); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* Timeline chapters */
.chapter { margin: 0 0 22px; padding: 22px; border: 1px solid rgba(217,211,199,.9); border-radius: 24px; background: rgba(255,253,248,.82); box-shadow: var(--soft-shadow); }
.chapter-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.chapter-head > div:first-child > span { color: var(--sun); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 850; }
.chapter-head h2, .chapter-head h3 { margin: 3px 0 0; font: 2rem Georgia, serif; letter-spacing: -.035em; }
.chapter-head p { margin: 2px 0 0; color: var(--moss); font-size: .8rem; }
.chapter-counts { display: flex; gap: 6px; }
.chapter-counts span { padding: 7px 10px; border-radius: 999px; background: var(--paper); color: var(--moss); font-size: .7rem; white-space: nowrap; }
.place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.place-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.place-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.category { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; background: #e4ebe6; color: var(--forest); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.place-card time { color: var(--moss); font-size: .75rem; font-weight: 700; }
.place-card h3, .place-card h4 { margin: 12px 0 6px; font: 1.35rem Georgia, serif; }
.place-card p { margin: 0; color: #425b51; line-height: 1.5; font-size: .9rem; }
.place-card blockquote { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--sun); color: var(--moss); font-size: .85rem; font-style: italic; }
.place-card footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ebe5d9; color: var(--moss); font-size: .69rem; }
.visit-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.visit-card-actions a { min-width: 58px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--moss); font-size: .78rem; font-weight: 800; }
.visit-card-actions .danger-link { color: var(--danger); border-color: #d8adad; }
.visit-location-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 9px 0 12px; padding: 9px 11px; border-radius: 10px; background: #f1ede3; color: var(--moss); font-size: .78rem; font-weight: 750; }
.visit-location-state a { min-height: 36px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--forest); font-weight: 850; text-decoration: underline; }
.page-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.visit-location-editor { display: grid; gap: 15px; margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #f7f3e9; }
.visit-location-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.visit-location-heading h2 { margin: 3px 0 0; color: var(--forest); font: 1.55rem Georgia, serif; }
.location-status { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: #eee8db; color: var(--moss); font-size: .76rem; font-weight: 850; white-space: nowrap; }
.location-status-confirmed { background: #dcecdf; color: var(--forest); }
.location-status-suggested { background: #fbebbd; color: #75550d; }
.location-search-row, .saved-location-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.location-search-row button, .saved-location-row button { min-height: 50px; }
.location-search-results { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .82rem; }
.location-result { min-height: 44px; padding: 0 13px; border: 1px solid #91aa9f; border-radius: 999px; background: white; color: var(--forest); font-weight: 800; cursor: pointer; }
#visit-location-map { width: 100%; height: 285px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-deep); }
.visit-location-editor .map-credit { margin: -8px 0 0; }
.suggestion-confirmation { padding: 12px; border: 1px solid #dfc06d; border-radius: 12px; background: #fff7db; }
.map-add-location { display: inline-flex; min-height: 44px; align-items: center; color: var(--forest); font-weight: 800; text-decoration: underline; }
.historical-locations { margin: 28px 0; }
.historical-locations > h2 { margin: 4px 0 12px; color: var(--forest); font: 1.8rem Georgia, serif; }
.historical-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rating { color: #a76d20; letter-spacing: .08em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 16px; }
.gallery figure { min-width: 0; margin: 0; }
.gallery img, .photo img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; border-radius: 12px; }
.gallery figcaption { margin: 6px 2px; color: var(--moss); font-size: .7rem; }
.photo { padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-tools { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.tiny, .photo-tools summary { min-height: 38px; padding: 8px 2px; border: 0; background: none; color: var(--forest); font-size: .72rem; text-decoration: underline; cursor: pointer; }
.mini-form { position: absolute; z-index: 8; width: min(280px, 82vw); display: grid; gap: 8px; padding: 13px; border-radius: 12px; background: var(--cream); box-shadow: var(--shadow); }
.mini-form label { display: grid; gap: 4px; font-size: .7rem; }
.mini-form input, .mini-form textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.mini-form button { min-height: 40px; border: 0; border-radius: 8px; background: var(--forest); color: white; }
.photo-fab { display: none; }

/* Shared public journal */
.journal-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: 5px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(12px); }
.journal-tabs a { min-height: 47px; display: grid; place-items: center; border-radius: 999px; font-weight: 820; }
.journal-tabs a.active { background: var(--forest); color: white; }
.public-timeline { padding: 28px 0 100px; }
.public-chapter { margin-bottom: 24px; }
.public-gallery { grid-template-columns: repeat(4, 1fr); }
.journal-dashboard { width: min(100% - 32px, 1120px); margin: 22px auto; }
.journal-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.8); box-shadow: var(--soft-shadow); }
.journal-stats div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 8px 14px; border-left: 1px solid var(--line); }
.journal-stats div:first-child { border-left: 0; }
.journal-stats .stat-icon { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; color: var(--forest); font-size: .8rem; }
.journal-stats strong { font: 1.65rem/1 Georgia, serif; }
.journal-stats small { color: var(--moss); font-size: .7rem; font-weight: 720; }
.journal-actions { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.journal-actions > a, .journal-actions form, .journal-actions button { min-width: 0; }
.journal-actions > a, .journal-actions button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); color: var(--forest); font-weight: 850; cursor: pointer; box-shadow: var(--soft-shadow); }
.journal-actions .journal-action-primary { background: var(--forest); border-color: var(--forest); color: white; }
.journal-actions .journal-action-primary span { font-size: 1.5rem; font-weight: 300; }
.mobile-add-photos { display: none; }

/* Upload and forms */
.upload-page { max-width: 680px; padding: 28px 0 110px; }
.upload-intro { margin: 22px 0 28px; }
.upload-intro > p:not(.eyebrow):not(.upload-trip-count) { max-width: 620px; color: var(--moss); line-height: 1.65; }
.upload-intro .upload-trip-count { width: max-content; display: flex; align-items: baseline; gap: 6px; margin: 18px 0 0; padding: 8px 13px; border-radius: 999px; background: #e4ebe6; color: var(--forest); line-height: 1; }
.upload-trip-count strong { font: 1.35rem/1 Georgia, serif; }
.upload-trip-count span { font-size: .78rem; font-weight: 760; }
.stack { display: grid; gap: 18px; margin-top: 26px; }
.stack label { display: grid; gap: 8px; font-size: .9rem; font-weight: 760; }
.stack input, .stack textarea, .stack select { width: 100%; padding: 14px 15px; border: 1px solid #bfc9c1; border-radius: 12px; background: var(--cream); color: var(--ink); }
.stack input:focus, .stack textarea:focus, .stack select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(21,63,53,.12); outline: none; }
.photo-picker { min-height: 310px; place-content: center; justify-items: center; padding: 30px; border: 2px dashed #91a79b; border-radius: 24px; background: var(--cream); text-align: center; cursor: pointer; box-shadow: var(--soft-shadow); }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 2rem; font-weight: 300; }
.photo-picker strong { margin-top: 10px; font-size: 1.45rem; }
.photo-picker > span:not(.picker-mark) { color: var(--moss); font-weight: 600; }
.photo-picker small { color: #75887f; font-size: .75rem; font-weight: 500; line-height: 1.65; }
.photo-source-picker { min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); box-shadow: var(--soft-shadow); }
.photo-source-picker legend { padding: 0 8px; color: var(--forest); font-size: 1rem; font-weight: 850; }
.photo-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-source-option { position: relative; min-height: 170px; place-content: center; justify-items: center; padding: 20px; border: 2px solid #91a79b; border-radius: 18px; background: var(--cream); text-align: center; cursor: pointer; }
.photo-source-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-source-option:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.photo-source-option strong { margin-top: 8px; font-size: 1.15rem; }
.photo-source-option small { max-width: 210px; color: var(--moss); font-size: .73rem; font-weight: 550; line-height: 1.4; }
.photo-source-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; color: var(--forest); font-size: 1.45rem; }
.photo-source-primary { border-color: var(--forest); background: var(--forest); color: white; }
.photo-source-primary .photo-source-icon { background: white; }
.photo-source-primary small { color: rgba(255,255,255,.78); }
.photo-source-picker > p { margin: 15px 0 5px; color: var(--moss); font-size: .8rem; line-height: 1.5; text-align: center; }
.photo-format-note { display: block; color: #75887f; font-size: .7rem; font-weight: 550; text-align: center; }
.selected-photo-panel { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); box-shadow: var(--soft-shadow); }
.selected-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selected-photo-heading h2 { margin: 4px 0 0; font: 1.55rem/1.1 Georgia, serif; }
.selected-photo-heading > span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; font-weight: 850; }
.selected-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.selected-photo-grid figure { min-width: 0; margin: 0; }
.selected-photo-grid img, .selected-file-placeholder { width: 100%; aspect-ratio: 1; display: grid; place-items: center; object-fit: cover; border-radius: 11px; background: var(--paper-deep); color: var(--moss); font-size: .72rem; font-weight: 850; }
.selected-photo-grid figcaption { margin-top: 5px; overflow: hidden; color: var(--moss); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.selected-photo-note { margin: 14px 0 0; color: var(--moss); font-size: .78rem; line-height: 1.5; }
.upload-progress { padding: 17px; border-radius: 16px; background: var(--cream); }
.upload-progress > div { display: flex; justify-content: space-between; gap: 15px; }
.upload-progress progress { width: 100%; height: 15px; accent-color: var(--sun); }
.upload-progress p { margin: .5rem 0 0; color: var(--moss); font-size: .82rem; }
.upload-live-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 15px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.upload-live-details div { min-width: 0; padding: 11px; background: var(--cream); }
.upload-live-details dt { color: var(--moss); font-size: .67rem; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
.upload-live-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 800; }
.upload-summary { padding: 28px 21px 21px; border: 2px solid #a9c5b2; border-radius: 22px; background: #e5f0e8; text-align: center; box-shadow: var(--shadow); }
.upload-summary.has-only-failures { border-color: #d8aaa5; background: #fff5f3; }
.upload-summary.has-only-failures .upload-complete-icon { background: var(--danger); }
.upload-complete-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: var(--forest); color: white; font-size: 1.8rem; font-weight: 850; }
.upload-summary h2 { margin: 6px 0 8px; font: clamp(2.25rem, 8vw, 3.4rem)/1 Georgia, serif; letter-spacing: -.04em; }
.upload-summary-lead { margin: 0 0 20px; color: var(--moss); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.summary-grid div { display: grid; gap: 3px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.7); text-align: left; }
.summary-grid strong { font: 1.6rem Georgia, serif; }
.summary-grid span { color: var(--moss); font-size: .68rem; }
.summary-grid .has-failures { background: #f8dede; color: var(--danger); }
.failed-upload-details { margin-top: 13px; padding: 13px; border-radius: 12px; background: #fff5f3; color: var(--danger); text-align: left; font-size: .78rem; line-height: 1.5; }
.failed-upload-details ul { margin: 5px 0 0; padding-left: 19px; }
.upload-summary-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.upload-summary-actions .button { min-width: 0; min-height: 56px; padding-inline: 12px; }
.upload-button { min-height: 64px !important; font-size: 1.04rem; }
.upload-button:disabled { opacity: .65; }
.form-page { max-width: 650px; padding: 30px 0 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: start; }
.check input { width: 22px; }
.check span { display: grid; gap: 3px; }
.check small { color: var(--moss); font-weight: 400; }
.alert { padding: 16px; border-radius: 12px; background: #f8dede; color: var(--danger); }

/* Login, empty, map and lightbox */
.center-card { width: min(100% - 32px, 430px); margin: 9vh auto; padding: 32px; border-radius: 24px; background: var(--cream); box-shadow: var(--shadow); }
.center-card h1 { margin: .2em 0; font: 2.5rem Georgia, serif; }
.empty { grid-column: 1 / -1; padding: 54px 22px; border-radius: 20px; background: rgba(255,255,255,.42); color: var(--moss); text-align: center; }
.empty h2 { margin: 8px 0; color: var(--ink); font: 1.8rem Georgia, serif; }
.empty .button { margin-top: 12px; }
.map-head { padding: 30px 0 20px; }
.map-head h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.map-location-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-location-controls .button { min-width: 148px; min-height: 56px; }
.map-location-primary span { font-size: 1.25rem; }
.map-location-controls button:disabled { cursor: wait; opacity: .68; }
.map-location-status { max-width: 720px; min-height: 24px; margin: 13px 0 0; color: var(--moss); font-size: .86rem; font-weight: 650; line-height: 1.5; }
#map { width: 100%; max-width: 100%; height: calc(100vh - 232px); min-height: 440px; overflow: hidden; }
#map.map-unavailable { display: grid; place-items: center; padding: 24px; background: var(--paper-deep); color: var(--moss); font-weight: 800; }
.leaflet-container { max-width: 100%; overflow: hidden; }
.current-location-marker { filter: drop-shadow(0 2px 5px rgba(12,44,38,.35)); }
.popup-image { width: 180px; height: 110px; display: block; margin-bottom: 8px; object-fit: cover; border-radius: 8px; }
.leaflet-popup-content strong, .leaflet-popup-content small { display: block; margin: 4px 0; }
.map-credit { color: var(--moss); font-size: .7rem; text-align: center; }
.health-card { width: min(100% - 32px, 650px); margin: 15vh auto; display: flex; gap: 18px; align-items: center; padding: 28px; border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); }
.health-card h1 { margin: .1em 0; font: 2.5rem Georgia, serif; }
.health-dot { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; }
.health-dot.ok { background: #2e9d62; box-shadow: 0 0 0 7px #dff3e7; }
.health-dot.bad { background: var(--danger); box-shadow: 0 0 0 7px #f8dede; }
dialog { width: min(94vw, 1100px); height: min(90vh, 900px); padding: 12px; border: 0; border-radius: 15px; background: #101916; color: white; }
dialog::backdrop { background: rgba(0,0,0,.85); }
dialog img { width: 100%; height: calc(100% - 50px); object-fit: contain; }
dialog button { position: absolute; right: 18px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.6rem; }
dialog p { margin: 7px; text-align: center; }

/* Traveller experience: deliberately lightweight, private, and phone first. */
.experience-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 22px 0 80px; }
.experience-shell.narrow { max-width: 680px; }
.experience-nav { position: sticky; top: 0; z-index: 18; display: flex; gap: 6px; margin: 0 0 34px; padding: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.96); box-shadow: var(--soft-shadow); scrollbar-width: none; }
.experience-nav::-webkit-scrollbar { display: none; }
.experience-nav a { min-height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 11px; color: var(--moss); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.experience-nav a[aria-current="page"] { background: var(--forest); color: white; }
.experience-privacy-banner { margin: -22px 0 30px; color: var(--moss); font-size: .78rem; line-height: 1.45; text-align: center; }
.artefact-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 44px; }
.experience-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.experience-head h1 { margin: 0; font: clamp(2.4rem, 7vw, 4.5rem)/.98 Georgia, serif; color: var(--forest); }
.experience-progress, .profile-count { flex: 0 0 auto; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--cream); color: var(--moss); font-size: .82rem; }
.experience-progress strong, .profile-count strong { font-size: 1.5rem; color: var(--forest); }
.experience-progress span { margin: 0 3px; color: var(--muted); }
.notice, .quiet-status { margin: 0 0 18px; padding: 14px 17px; border: 1px solid #b8d7c9; border-radius: 13px; background: #e9f5ef; color: var(--forest); font-weight: 750; }
.privacy-note { margin: 0; padding: 13px 15px; border-left: 3px solid #9bb9ae; background: #f2eee3; color: #50635d; font-size: .88rem; line-height: 1.5; }
.profile-privacy { margin-bottom: 28px; }
.experience-sign-in { margin-top: 8vh; }
.experience-sign-in .privacy-note { margin-top: 20px; text-align: left; }
.interview-card { padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: var(--cream); box-shadow: var(--shadow); }
.interview-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.scope-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 99px; background: #dceae3; color: var(--forest); font-size: .72rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.interview-card h2 { max-width: 760px; margin: 22px 0 13px; font: clamp(2rem, 5vw, 3.3rem)/1.08 Georgia, serif; color: var(--forest); }
.interview-time { margin: 10px 0 0; color: var(--muted); font-weight: 750; }
.why-question { max-width: 720px; color: var(--moss); line-height: 1.55; }
.interview-card .privacy-note { margin: 22px 0; }
.one-tap-answer { margin: 24px 0; }
.scope-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f3efe5; }
.scope-picker legend { padding: 0 6px; color: var(--forest); font-size: .78rem; font-weight: 900; }
.scope-picker label { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 13px; border-radius: 11px; background: white; color: var(--forest); font-size: .86rem; font-weight: 800; }
.scope-picker input { width: 19px; height: 19px; margin: 0; accent-color: var(--forest); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 16px 0 0; }
.choice-grid button { width: 100%; }
.choice-grid button { min-height: 58px; padding: 12px 16px; border: 1px solid #91aa9f; border-radius: 14px; background: white; color: var(--forest); font-size: 1rem; font-weight: 800; }
.choice-grid button span { margin-right: 9px; font-size: 1.25rem; }
.choice-grid button:hover, .choice-grid button:focus-visible { border-color: var(--forest); background: #e8f2ed; }
.open-answer { display: grid; gap: 7px; margin-top: 16px; color: var(--forest); font-weight: 850; }
.open-answer small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.interview-secondary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.interview-secondary form { margin: 0; }
.interview-secondary button { min-height: 44px; }
.text-danger { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--danger); font-weight: 800; }
.text-danger:hover, .text-danger:focus-visible { background: #fae8e5; }
.experience-empty { padding: 48px 24px; border: 1px dashed #aac0b6; border-radius: 24px; background: var(--cream); text-align: center; }
.experience-empty > span { display: inline-grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #dcecdf; color: var(--forest); font-size: 1.8rem; }
.experience-empty h2 { margin: 18px 0 7px; font: 2rem Georgia, serif; color: var(--forest); }
.preference-group { margin: 0 0 28px; }
.preference-group > h2, .sharing-history > h2 { margin: 0 0 12px; font: 1.65rem Georgia, serif; color: var(--forest); }
.preference-list { display: grid; gap: 9px; }
.preference-row, .share-row, .notification-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.preference-row h3 { margin: 0 0 5px; font-size: 1.05rem; color: var(--forest); }
.preference-row p { margin: 2px 0; color: var(--muted); font-size: .8rem; }
.preference-row .preference-trust { margin-top: 7px; color: var(--moss); }
.confidence-meter { width: min(220px, 100%); height: 6px; display: block; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #d8dfda; }
.confidence-meter i { height: 100%; display: block; border-radius: inherit; background: var(--forest); }
.preference-empty { margin: 0; padding: 16px 18px; border: 1px dashed #b8c7c0; border-radius: 14px; color: var(--muted); font-size: .86rem; }
.row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.row-actions form { margin: 0; }
.row-actions .button, .row-actions button { min-height: 44px; }
.preference-edit-card, .sharing-card, .safety-summary { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); box-shadow: var(--soft-shadow); }
.preference-edit-card fieldset, .sharing-card fieldset { display: grid; gap: 8px; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.preference-edit-card legend, .sharing-card legend { padding: 0 7px; color: var(--forest); font-weight: 850; }
.radio-row, .check-row { min-height: 44px; display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.radio-row input, .check-row input { width: 20px; height: 20px; margin: 0; }
.form-actions { display: flex; gap: 10px; }
.safety-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; }
.safety-summary h2, .sharing-card h2 { margin-top: 0; font: 1.8rem Georgia, serif; color: var(--forest); }
.safety-summary dl { display: grid; gap: 0; margin: 0 0 20px; }
.safety-summary dl div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.safety-summary dt { margin-bottom: 3px; color: var(--muted); font-size: .74rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.safety-summary dd { margin: 0; color: var(--forest); line-height: 1.4; }
.sharing-card > p { color: var(--moss); line-height: 1.5; }
.sharing-history { margin-top: 28px; }
.share-row { align-items: start; margin-bottom: 9px; }
.share-row p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.allergy-card-page { min-height: calc(100dvh - 70px); width: min(100% - 28px, 820px); display: flex; flex-direction: column; justify-content: center; gap: 13px; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); }
.safety-card-tools { display: flex; justify-content: space-between; gap: 10px; }
.safety-card-tools > * { min-height: 48px; }
.safety-card-tools > div { display: flex; gap: 8px; }
.full-screen-button { min-height: 48px; }
.allergy-card { padding: clamp(25px, 6vw, 58px); border: 2px solid #b54135; border-radius: 25px; background: #fffdf8; box-shadow: var(--shadow); }
.allergy-card h1 { margin: 5px 0; font: clamp(2.7rem, 9vw, 5.5rem)/1 Georgia, serif; color: #80281f; }
.card-destination { margin: 0 0 25px; color: var(--muted); font-weight: 800; }
.language-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.allergy-card section { padding: 20px 0; border-top: 1px solid #ddb9b4; }
.allergy-card section h2 { margin: 0 0 8px; color: #80281f; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.allergy-card section p { margin: 0; color: #271817; font: clamp(1.45rem, 4vw, 2.4rem)/1.35 Georgia, serif; }
.card-warning { margin-bottom: 0; color: #664641; font-size: .8rem; line-height: 1.5; }
.card-privacy { padding: 12px 16px; border-radius: 12px; background: #eee8dc; color: #55645e; font-size: .78rem; }
.large-safety-text .allergy-card section p { font-size: clamp(2rem, 6.5vw, 3.5rem); }
.allergy-card-page:fullscreen, .allergy-card-page.full-screen-fallback { width: 100%; max-width: none; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: #162720; overflow-y: auto; }
.allergy-card-page:fullscreen .allergy-card, .allergy-card-page.full-screen-fallback .allergy-card { width: min(100%, 1180px); margin: auto; }
.group-safety-list { display: grid; gap: 10px; }
.group-safety-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.group-safety-list h2 { margin: 0 0 3px; color: var(--forest); font-size: 1.05rem; }
.group-safety-list p { margin: 0; color: var(--muted); font-size: .85rem; }
.crew-initial { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #dceae3; color: var(--forest); font-weight: 900; }
.notification-list { display: grid; gap: 10px; }
.notification-row { align-items: start; }
.notification-row.is-read { opacity: .72; }
.notification-row h2 { margin: 7px 0 5px; color: var(--forest); font-size: 1.12rem; }
.notification-row p { margin: 0; color: var(--moss); line-height: 1.45; }
.notification-type { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #e3eee8; color: var(--forest); font-size: .67rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.notification-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: end; gap: 5px; }
.notification-actions form { margin: 0; }
.notification-actions button { min-height: 44px; }
.dev-tools-link { display: inline-flex; margin-top: 22px; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.sample-list { display: grid; gap: 10px; }
.sample-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); }
.sample-row p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.sample-row button { flex: 0 0 auto; min-height: 44px; }
.safety-quick-link { background: #8b2f28 !important; color: #fff !important; }
.safety-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 14px; border: 1px solid #d9c7bd; border-radius: 18px; background: #f7eee7; }
.safety-quick-actions form { margin: 0; }
.safety-quick-actions > * { min-height: 48px; }
.emergency-call { background: #8b2f28; color: #fff; }
.confirmed-safety-list { margin: 24px 0; }
.confirmed-safety-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.confirmed-safety-item.is-inactive { opacity: .62; }
.confirmed-safety-item h3 { margin: 8px 0 4px; color: var(--forest); font: 1.35rem/1.15 Georgia, serif; }
.confirmed-safety-item p { margin: 4px 0 0; line-height: 1.45; }
.confirmed-safety-item .row-actions { justify-content: flex-end; }
.card-template { margin: 22px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.card-approval-action { display: flex; justify-content: center; }
.card-approval-action button { min-height: 52px; }
.recommendation-context { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.recommendation-context span { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 10px; border-radius: 999px; background: #e6eee9; color: var(--forest); font-size: .74rem; font-weight: 850; }
.recommendation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recommendation-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: var(--soft-shadow); }
.recommendation-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.recommendation-card h2 { margin: 5px 0 0; color: var(--forest); font: 1.45rem/1.15 Georgia, serif; overflow-wrap: anywhere; }
.recommendation-category { color: var(--muted); font-size: .69rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recommendation-confidence { flex: 0 0 auto; min-width: 52px; min-height: 52px; display: grid; place-items: center; border-radius: 50%; background: #dcebe3; color: var(--forest); font-weight: 900; }
.recommendation-distance { margin: 14px 0 0; color: var(--moss); font-weight: 850; }
.recommendation-reason { margin: 12px 0; color: var(--ink); line-height: 1.55; }
.recommendation-safety { margin: 14px 0; padding: 13px; border-left: 4px solid #a54a3f; border-radius: 10px; background: #f7ebe7; color: #6d2b25; }
.recommendation-safety p { margin: 5px 0 0; line-height: 1.45; }
.recommendation-feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.recommendation-feedback form { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.recommendation-feedback button { min-width: 46px; min-height: 46px; padding: 0 13px; }
.recommendation-feedback .never-again-button { color: #7a332e; font-size: .78rem; }
.recommendation-feedback a { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest); font-size: .78rem; font-weight: 850; text-decoration: underline; }
.recommendation-simulator-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.recommendation-simulator-form label { min-width: 0; }
.recommendation-simulator-form input, .recommendation-simulator-form select { width: 100%; }
.recommendation-simulator-form .recommendation-checkbox { display: flex; align-items: center; gap: 9px; }
.recommendation-simulator-form .recommendation-checkbox input { width: 22px; height: 22px; flex: 0 0 auto; }
.recommendation-simulator-form button { align-self: end; min-height: 50px; }
.companion-shell { max-width: 900px; }
.companion-check { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 12px; padding: 20px; border: 1px solid #cfdcd4; border-radius: 20px; background: #e9f1ec; }
.companion-check h2 { margin: 0 0 5px; color: var(--forest); font: 1.45rem/1.2 Georgia, serif; }
.companion-check p { max-width: 620px; margin: 0; color: var(--moss); line-height: 1.5; }
.companion-check button { min-width: 190px; min-height: 52px; flex: 0 0 auto; }
.companion-status { min-height: 28px; margin: 0 5px 16px; color: var(--moss); font-size: .85rem; }
.companion-status.is-error { color: #8b2f28; }
.companion-prompts { display: grid; gap: 14px; }
.companion-card { padding: clamp(19px, 4vw, 27px); border: 1px solid var(--line); border-radius: 22px; background: var(--cream); box-shadow: var(--soft-shadow); }
.companion-card h2 { margin: 4px 0 8px; color: var(--forest); font: clamp(1.55rem, 4vw, 2rem)/1.15 Georgia, serif; }
.companion-kind { margin: 0; color: var(--muted); font-size: .69rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.companion-message { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.companion-reason { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--moss); font-size: .83rem; line-height: 1.5; }
.companion-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.companion-details li { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: #e6eee9; color: var(--forest); font-size: .78rem; font-weight: 800; }
.companion-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.companion-actions > * { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.companion-airport_arrival { border-color: #91aa9c; background: linear-gradient(145deg, #fdfbf5, #e5eee8); }
.companion-walking_tolerance, .companion-late_arrival { border-left: 5px solid #b87238; }
.companion-wrong_direction { border-left: 5px solid #456e7d; }
.companion-family_placeholder, .companion-flight_placeholder { background: #f0eee8; box-shadow: none; }
.companion-privacy { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: #1d382f; color: #f7f1e5; }
.companion-privacy p { margin: 5px 0 0; color: #d6e3dc; font-size: .82rem; line-height: 1.55; }
.journey-simulator-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.journey-simulator-form select { width: 100%; }
.journey-simulator-form button { min-height: 50px; }
.memory-shell { max-width: 980px; }
.memory-head { align-items: center; }
.memory-proposal-section, .future-trip-card { margin-bottom: 26px; padding: clamp(19px, 4vw, 28px); border: 1px solid #c8d8cf; border-radius: 22px; background: #e8f0eb; }
.memory-proposal-section > h2, .future-trip-card h2 { margin: 4px 0 18px; color: var(--forest); font: clamp(1.65rem, 4vw, 2.25rem)/1.15 Georgia, serif; }
.memory-proposal-card { margin-top: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.memory-proposal-card h2, .memory-proposal-card h3 { margin: 4px 0 8px; color: var(--forest); font: 1.55rem/1.2 Georgia, serif; }
.memory-proposal-card > p { color: var(--moss); line-height: 1.5; }
.memory-proposal-actions, .future-trip-card form { display: flex; flex-wrap: wrap; gap: 8px; }
.memory-proposal-actions button, .future-trip-card button { min-height: 46px; }
.memory-scope-inline { display: flex; flex-wrap: wrap; gap: 13px; margin: 14px 0; }
.memory-scope-inline label { min-height: 44px; display: flex; align-items: center; gap: 8px; margin: 0; }
.memory-scope-inline input { width: 20px; height: 20px; margin: 0; }
.memory-inspiration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -10px 0 30px; }
.memory-inspiration-grid article { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.memory-placeholder-image { height: 100px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 12px; background: linear-gradient(145deg, #254b40, #789184); color: #fff; font: 3rem Georgia, serif; }
.memory-inspiration-grid h3 { margin: 3px 0 7px; color: var(--forest); font: 1.25rem Georgia, serif; }
.memory-inspiration-grid p { color: var(--moss); font-size: .84rem; line-height: 1.45; }
.memory-inspiration-grid small { color: var(--muted); font-size: .67rem; line-height: 1.3; }
.memory-group { margin: 31px 0; }
.memory-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.memory-group > header h2 { margin: 0; color: var(--forest); font: 1.8rem Georgia, serif; }
.memory-group > header span { min-width: 34px; min-height: 34px; display: grid; place-items: center; border-radius: 999px; background: #e3ece7; color: var(--forest); font-weight: 900; }
.memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.memory-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: var(--cream); box-shadow: var(--soft-shadow); }
.memory-card.is-archived, .memory-card.is-completed { opacity: .72; box-shadow: none; }
.memory-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.memory-card h3 { margin: 3px 0 0; color: var(--forest); font: 1.45rem/1.15 Georgia, serif; overflow-wrap: anywhere; }
.memory-category { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.memory-scope { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e3ece7; color: var(--forest); font-size: .68rem; font-weight: 850; text-transform: capitalize; }
.memory-card > p { color: var(--moss); line-height: 1.5; }
.memory-destination { font-weight: 850; }
.memory-provenance { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.memory-provenance summary { min-height: 38px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
.memory-provenance pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.memory-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.memory-card-actions form { margin: 0; }
.memory-card-actions > *, .memory-card-actions button { min-height: 44px; }
.memory-connect-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin-top: 14px; }
.memory-connect-form label, .memory-connect-form select { width: 100%; }
.memory-connect-form small { grid-column: 1 / -1; color: var(--muted); }
.memory-privacy { margin-top: 28px; padding: 17px 19px; border-radius: 17px; background: #1d382f; color: #f7f1e5; }
.memory-privacy p { margin: 5px 0 0; color: #d6e3dc; line-height: 1.5; }
.memory-form { display: grid; gap: 15px; padding: clamp(18px, 4vw, 27px); border: 1px solid var(--line); border-radius: 22px; background: var(--cream); box-shadow: var(--soft-shadow); }
.memory-form input, .memory-form textarea, .memory-form select { width: 100%; }
.memory-form fieldset { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.memory-form fieldset > label { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.memory-form fieldset > label:last-child { display: grid; }
.memory-form fieldset input[type="radio"] { width: 20px; height: 20px; }
.memory-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.memory-delete-zone { margin-top: 25px; padding: 19px; border: 1px solid #dfbbb5; border-radius: 18px; background: #f8efec; }
.memory-delete-zone h2 { margin-top: 0; color: #7a332e; font: 1.45rem Georgia, serif; }
.reflection-trip-picker { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-bottom: 19px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.reflection-trip-picker select { width: 100%; }
.reflection-card { padding: clamp(20px, 5vw, 34px); border: 1px solid #c8d8cf; border-radius: 23px; background: #e8f0eb; }
.reflection-card h2 { margin: 6px 0 20px; color: var(--forest); font: clamp(1.8rem, 5vw, 2.7rem)/1.15 Georgia, serif; }
.reflection-card textarea { width: 100%; }
.reflection-secondary { display: flex; gap: 8px; margin-top: 12px; }
.reflection-secondary form { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.memory-head-actions { display: flex; align-items: center; gap: 9px; }
.historical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.historical-card { position: relative; min-width: 0; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, #fffdf8, #edf2ed); color: var(--ink); text-decoration: none; box-shadow: var(--soft-shadow); }
.historical-card:hover, .historical-card:focus-visible { border-color: var(--forest); transform: translateY(-1px); }
.historical-card .memory-scope { position: absolute; top: 16px; right: 16px; }
.historical-card h2 { margin: 5px 72px 7px 0; color: var(--forest); font: 1.65rem/1.15 Georgia, serif; }
.historical-card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 17px; color: var(--muted); font-size: .78rem; }
.historical-hero { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: clamp(22px, 5vw, 42px); border-radius: 25px; background: linear-gradient(145deg, #163e34, #26594b); color: white; }
.historical-hero h1 { margin: 5px 0 8px; font: clamp(2.4rem, 6vw, 4.4rem)/.98 Georgia, serif; }
.historical-hero .eyebrow, .historical-hero p { color: rgba(255,255,255,.82); }
.historical-hero .quiet-button { border-color: rgba(255,255,255,.42); color: white; }
.historical-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.historical-summary div { display: grid; justify-items: center; gap: 3px; padding: 8px; border-left: 1px solid var(--line); }
.historical-summary div:first-child { border-left: 0; }
.historical-summary strong { color: var(--forest); font: 1.7rem Georgia, serif; }
.historical-summary span { color: var(--muted); font-size: .75rem; }
.historical-choice-grid { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.historical-choice-grid label { display: flex; align-items: center; gap: 7px; }
.historical-choice-grid input { width: 20px; height: 20px; }
.historical-form { display: grid; gap: 15px; }
.historical-form label { display: grid; gap: 7px; }
.historical-form label small { color: var(--muted); font-weight: 500; }
.historical-cost { display: grid; grid-template-columns: 82px 1fr; gap: 7px; }
.historical-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.historical-form-actions { display: flex; gap: 9px; }
.historical-question { margin-bottom: 18px; }
.historical-question form:first-of-type { display: grid; gap: 10px; }
.historical-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.historical-detail-grid article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.historical-detail-grid h2 { margin: 0 0 10px; color: var(--forest); font: 1.35rem Georgia, serif; }
.historical-detail-grid ul { margin: 0; padding-left: 20px; }
.historical-detail-grid li + li { margin-top: 6px; }
.historical-sharing { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--cream); }
.historical-sharing h2 { margin: 2px 0 5px; color: var(--forest); font: 1.35rem Georgia, serif; }
.historical-sharing p { margin: 0; }
.historical-sharing form { display: flex; gap: 8px; flex: 0 0 auto; }
.artefact-timeline-list { display: grid; gap: 9px; margin: 13px 0; }
.artefact-timeline-card { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid #cbd8d0; border-radius: 15px; background: #edf3ef; }
.artefact-timeline-card > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--forest); color: white; font-size: 1.25rem; }
.artefact-timeline-card h3, .artefact-timeline-card h4 { margin: 2px 0; color: var(--forest); font: 1.15rem Georgia, serif; }
.artefact-timeline-card p, .artefact-timeline-card small { margin: 0; color: var(--muted); font-size: .75rem; }
.historical-artefacts { margin: 18px 0; }
.historical-artefacts h2 { margin: 4px 0 10px; color: var(--forest); font: 1.55rem Georgia, serif; }
.life-timeline-shell { max-width: 1060px; }
.life-timeline-head { align-items: end; }
.timeline-private-mark { display: grid; gap: 2px; min-width: 150px; padding: 13px 16px; border: 1px solid #c7d6ce; border-radius: 16px; background: #edf3ef; text-align: right; }
.timeline-private-mark strong { color: var(--forest); }
.timeline-private-mark span { color: var(--muted); font-size: .76rem; }
.life-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--soft-shadow); }
.life-stats div { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 9px 6px; border-left: 1px solid var(--line); text-align: center; }
.life-stats div:first-child { border-left: 0; }
.life-stats strong { color: var(--forest); font: 1.65rem Georgia, serif; }
.life-stats span { color: var(--muted); font-size: .69rem; }
.life-timeline-filters { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 19px; background: var(--cream); }
.life-timeline-filters > summary, .milestone-create > summary { min-height: 52px; display: flex; align-items: center; padding: 0 17px; color: var(--forest); cursor: pointer; font-weight: 850; }
.life-timeline-filters form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 17px 17px; }
.life-timeline-filters label, .milestone-create label, .timeline-simulator-form label { display: grid; gap: 6px; min-width: 0; font-size: .78rem; font-weight: 750; }
.life-timeline-filters input, .life-timeline-filters select, .milestone-create input, .milestone-create select, .milestone-create textarea, .timeline-simulator-form input { width: 100%; }
.timeline-search { grid-column: span 2; }
.timeline-filter-actions { display: flex; align-items: end; gap: 8px; }
.timeline-filter-actions > * { flex: 1; text-align: center; }
.life-story { position: relative; margin: 8px 0 34px; }
.life-story::before { position: absolute; top: 18px; bottom: 20px; left: 29px; width: 2px; background: #c7d5cd; content: ""; }
.life-year { position: relative; margin-bottom: 28px; }
.life-year > header { position: relative; z-index: 1; display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.life-year > header > span { width: 18px; height: 18px; margin-left: 21px; border: 4px solid var(--warm); border-radius: 50%; background: var(--forest); transform: translateX(-50%); }
.life-year > header h2 { margin: 0; color: var(--forest); font: 2.25rem Georgia, serif; }
.life-year > header small { color: var(--muted); }
.life-year-items { display: grid; gap: 11px; margin-left: 60px; }
.life-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 8px 24px rgba(32,55,47,.06); }
.life-card-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #e8f0eb; color: var(--forest); font-size: 1.35rem; }
.life-card-historical_journey .life-card-icon { background: #efe7d8; color: #725b36; }
.life-card-artefact .life-card-icon { background: #e6ecf2; color: #284a66; }
.life-card-milestone .life-card-icon { background: #f6e9bd; color: #71550a; }
.life-card-future_wish .life-card-icon { background: #ebe5f3; color: #55406d; }
.life-card-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.life-card h3 { margin: 4px 0 3px; color: var(--forest); font: 1.5rem/1.15 Georgia, serif; }
.life-card p { margin: 5px 0 0; }
.life-card-subtitle { color: var(--muted); font-weight: 750; }
.life-card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.life-card-facts span { padding: 4px 8px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .68rem; }
.life-card-link { display: inline-flex; margin-top: 10px; color: var(--forest); font-weight: 800; }
.country-history-section, .continuity-section { margin: 32px 0; }
.country-history-section > h2, .continuity-section > h2, .milestone-review > h2, .places-been-foundation h2 { margin: 4px 0 14px; color: var(--forest); font: 1.8rem Georgia, serif; }
.country-history-grid, .continuity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.country-history-grid article, .continuity-grid article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.country-history-grid h3, .continuity-grid h3 { margin: 0 0 5px; color: var(--forest); font: 1.45rem Georgia, serif; }
.country-years { color: #8a6731; font-weight: 850; letter-spacing: .04em; }
.country-history-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.country-history-grid dl div { display: grid; gap: 2px; }
.country-history-grid dt { color: var(--muted); font-size: .69rem; }
.country-history-grid dd { margin: 0; font-weight: 850; }
.country-wishes { color: var(--muted); font-size: .75rem; }
.continuity-grid ul { display: grid; gap: 9px; margin: 10px 0; padding: 0; list-style: none; }
.continuity-grid li { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.continuity-grid li:last-child { padding-bottom: 0; border-bottom: 0; }
.continuity-grid li strong { color: var(--forest); font-size: .74rem; }
.continuity-grid small { color: var(--muted); }
.places-been-foundation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; padding: 20px; border: 1px solid #c4d5cc; border-radius: 21px; background: linear-gradient(145deg, #edf4ef, #fffdf8); }
.places-been-foundation h2, .places-been-foundation p { margin-bottom: 3px; }
.places-been-foundation > span { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 18px; background: var(--forest); color: white; font-size: 1.8rem; }
.milestone-review { margin: 30px 0; }
.milestone-review article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid #dfcf94; border-radius: 18px; background: #fbf5df; }
.milestone-review article + article { margin-top: 9px; }
.milestone-review h3 { margin: 3px 0; color: #5f4a12; font: 1.3rem Georgia, serif; }
.milestone-review p { margin: 0; }
.milestone-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.milestone-actions form { margin: 0; }
.milestone-create { margin: 24px 0; border: 1px solid var(--line); border-radius: 19px; background: white; }
.milestone-create > p { margin: 0; padding: 0 17px 12px; color: var(--muted); }
.milestone-create form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 17px 17px; }
.milestone-description { grid-column: 1 / -1; }
.milestone-create button { justify-self: start; }
.life-timeline-privacy { margin-top: 30px; }
.timeline-simulator-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-bottom: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.simulated-life-story { display: grid; gap: 9px; margin-bottom: 22px; }
.simulated-life-story article { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.simulated-life-story article > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #e8f0eb; color: var(--forest); font-size: 1.25rem; }
.simulated-life-story h2 { margin: 2px 0 0; color: var(--forest); font: 1.3rem Georgia, serif; }
.simulated-life-story small { color: var(--muted); text-transform: capitalize; }

@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .trip-actions { grid-template-columns: repeat(3, 1fr); }
  .trip-actions .action-primary { grid-row: span 1; }
  .stat-panel { min-height: 120px; }
  .journal-stats { grid-template-columns: repeat(3, 1fr); gap: 10px 0; }
  .journal-stats div { border-left: 1px solid var(--line); }
  .journal-stats div:nth-child(1), .journal-stats div:nth-child(4) { border-left: 0; }
  .journal-actions { grid-template-columns: repeat(3, 1fr); }
  .trip-settings-panel { grid-template-columns: 1fr; }
  .memory-inspiration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .historical-grid { grid-template-columns: 1fr; }
  .life-stats { grid-template-columns: repeat(3, 1fr); }
  .life-stats div:nth-child(4) { border-left: 0; }
}

@media (max-width: 600px) {
  .topbar { min-height: 58px; }
  .topbar-actions > a { display: none; }
  .page-head, .journey-grid, .trip-overview, .public-timeline, .form-page, .upload-page, .map-head { width: min(100% - 24px, 1120px); }
  .page-head { align-items: start; padding: 32px 0 20px; }
  .page-head h1 { font-size: 2.8rem; }
  .page-head .quiet-button { min-height: 46px; padding: 0 15px; font-size: .8rem; }
  .page-intro { max-width: 260px; font-size: .9rem; }
  .journey-grid { gap: 14px; padding-bottom: 55px; }
  .journey-card { min-height: 485px; border-radius: 22px; background-position: 56% center; }
  .journey-card-content { padding: 20px; }
  .journey-story h2 { font-size: 2.35rem; }
  .journey-description { font-size: .9rem; }
  .journey-meta { grid-template-columns: auto auto; gap: 16px 24px; }
  .journey-meta .journey-crew { grid-column: 1 / -1; text-align: left; }
  .destination-hero { min-height: 520px; background-position: 58% center; }
  .admin-hero { min-height: 480px; }
  .hero-inner { width: calc(100% - 28px); padding: 28px 0; }
  .destination-hero h1 { font-size: 3.35rem; }
  .hero-description { font-size: .9rem; }
  .hero-crew { gap: 9px; }
  .crew-person b { width: 40px; height: 40px; }
  .hero-journey-links { gap: 14px; margin-top: 21px; }
  .continue-button { min-height: 52px; }
  .trip-overview { padding-top: 14px; padding-bottom: 135px; }
  .crew-panel, .stat-panel { padding: 16px; }
  .party-type-form { align-items: stretch; flex-direction: column; }
  .party-type-form button { width: 100%; }
  .stat-panel { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .stat-panel div, .stat-panel div:first-child { padding: 0 9px; border-left: 1px solid var(--line); }
  .stat-panel div:nth-child(1), .stat-panel div:nth-child(4) { border-left: 0; }
  .stat-panel strong { font-size: 1.65rem; }
  .continue-admin { margin: -34px 0 44px; }
  .trip-settings-actions { grid-template-columns: 1fr; }
  .archived-list article { align-items: stretch; flex-direction: column; }
  .archived-actions { width: 100%; }
  .archived-actions a, .archived-actions form, .archived-actions button { flex: 1; width: 100%; }
  .trip-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 7px 7px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -10px 30px rgba(25,47,39,.12); backdrop-filter: blur(14px); }
  .trip-actions .action-primary { display: none; }
  .trip-actions > a, .trip-actions button { min-height: 58px; align-items: center; padding: 6px 3px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; text-align: center; }
  .trip-actions strong { font-size: .75rem; }
  .trip-actions small { display: none; }
  .photo-fab { position: fixed; right: 16px; bottom: calc(79px + env(safe-area-inset-bottom)); z-index: 26; min-height: 58px; display: inline-flex; align-items: center; gap: 7px; padding: 0 20px; border-radius: 999px; background: var(--forest); color: white; font-weight: 850; box-shadow: 0 14px 36px rgba(12,44,38,.32); }
  .journal-dashboard { width: min(100% - 24px, 1120px); margin: 12px auto 18px; }
  .journal-stats { grid-template-columns: repeat(3, 1fr); padding: 10px 6px; border-radius: 18px; }
  .journal-stats div { grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 8px 4px; text-align: center; }
  .journal-stats .stat-icon { grid-row: auto; width: 28px; height: 28px; }
  .journal-stats strong { font-size: 1.4rem; }
  .journal-stats small { font-size: .63rem; }
  .journal-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 7px 7px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -10px 30px rgba(25,47,39,.12); backdrop-filter: blur(14px); }
  .journal-actions .journal-action-primary { display: none; }
  .journal-actions > a, .journal-actions button { min-height: 58px; padding: 5px 2px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; font-size: .72rem; text-align: center; }
  .mobile-add-photos { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border-radius: 999px; background: var(--forest); color: white; font-weight: 900; box-shadow: var(--soft-shadow); }
  .mobile-add-photos span { font-size: 1.45rem; font-weight: 300; }
  .timeline-heading { align-items: start; margin-top: 35px; }
  .timeline-heading h2 { font-size: 2.25rem; }
  .timeline-heading > a { margin-top: 5px; }
  .chapter { padding: 16px; border-radius: 19px; }
  .chapter-head { gap: 12px; }
  .chapter-head h2, .chapter-head h3 { font-size: 1.7rem; }
  .chapter-counts { display: grid; gap: 4px; }
  .place-list { grid-template-columns: 1fr; }
  .place-card { padding: 16px; }
  .place-card h3, .place-card h4 { font-size: 1.4rem; }
  .visit-location-editor { padding: 14px; }
  .visit-location-heading { display: grid; }
  .location-status { justify-self: start; white-space: normal; }
  .location-search-row, .saved-location-row { grid-template-columns: 1fr; }
  .location-search-row button, .saved-location-row button { width: 100%; }
  .historical-location-grid { grid-template-columns: 1fr; }
  .gallery, .public-gallery { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .journal-tabs { grid-template-columns: repeat(2, 1fr); }
  .public-timeline { padding-top: 14px; padding-bottom: 145px; }
  .two-col { grid-template-columns: 1fr; }
  .upload-page { padding-bottom: 128px; }
  .upload-page h1 { font-size: 3.2rem; }
  .photo-picker { min-height: 330px; padding: 24px; }
  .photo-source-picker { padding: 17px; }
  .photo-source-grid { grid-template-columns: 1fr; }
  .photo-source-option { min-height: 142px; }
  .upload-button { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 26; width: calc(100% - 24px); box-shadow: 0 12px 30px rgba(12,44,38,.28); }
  .upload-progress { margin-bottom: 12px; }
  .upload-live-details { grid-template-columns: 1fr; }
  .selected-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .upload-summary-actions { grid-template-columns: 1fr; }
  .upload-summary-actions .button { width: 100%; }
  .map-location-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .map-location-controls .button { min-width: 0; width: 100%; padding-inline: 12px; }
  #map { height: calc(100vh - 260px); min-height: 480px; }
  .experience-shell { width: min(100% - 20px, 980px); padding-top: 10px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .experience-nav { top: 4px; gap: 3px; margin-bottom: 25px; padding: 5px; border-radius: 14px; }
  .experience-privacy-banner { margin: -17px 6px 22px; text-align: left; }
  .experience-nav a { min-height: 46px; padding: 0 13px; font-size: .76rem; }
  .artefact-library { grid-template-columns: 1fr; }
  .experience-head { align-items: start; margin-bottom: 18px; }
  .experience-head h1 { font-size: 2.65rem; }
  .experience-progress, .profile-count { padding: 9px 11px; text-align: right; }
  .experience-progress span { display: none; }
  .experience-progress { max-width: 90px; }
  .experience-progress strong, .profile-count strong { display: block; line-height: 1; }
  .interview-card { padding: 21px 16px; border-radius: 21px; }
  .interview-card h2 { margin-top: 17px; font-size: 2.05rem; }
  .choice-grid { grid-template-columns: 1fr; margin: 21px 0; }
  .scope-picker { display: grid; grid-template-columns: 1fr; }
  .choice-grid button { min-height: 56px; }
  .interview-secondary { display: grid; grid-template-columns: 1fr 1fr; }
  .interview-secondary form, .interview-secondary button { width: 100%; }
  .interview-secondary form:last-child { grid-column: 1 / -1; }
  .preference-row, .notification-row { align-items: stretch; flex-direction: column; gap: 13px; padding: 15px; }
  .row-actions, .notification-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .row-actions form, .row-actions a, .row-actions button, .notification-actions form, .notification-actions button { width: 100%; }
  .notification-actions { grid-template-columns: 1fr 1fr; }
  .safety-overview { grid-template-columns: 1fr; }
  .safety-summary, .sharing-card, .preference-edit-card { padding: 18px; }
  .share-row { align-items: stretch; flex-direction: column; }
  .share-row button { width: 100%; }
  .group-safety-list article { grid-template-columns: auto 1fr; }
  .group-safety-list article > a { grid-column: 1 / -1; width: 100%; }
  .allergy-card-page { width: min(100% - 18px, 820px); justify-content: start; }
  .allergy-card { padding: 25px 19px; border-radius: 19px; }
  .allergy-card section p { font-size: 1.55rem; }
  .language-columns { grid-template-columns: 1fr; gap: 0; }
  .safety-card-tools { align-items: stretch; flex-direction: column; }
  .safety-card-tools > div { display: grid; grid-template-columns: 1fr 1fr; }
  .sample-row { align-items: stretch; flex-direction: column; }
  .sample-row button { width: 100%; }
  .safety-quick-actions { display: grid; grid-template-columns: 1fr; }
  .safety-quick-actions > *, .safety-quick-actions form button { width: 100%; }
  .confirmed-safety-item { flex-direction: column; }
  .confirmed-safety-item .row-actions { width: 100%; justify-content: stretch; }
  .confirmed-safety-item .row-actions > * { flex: 1 1 44%; }
  .confirmed-safety-item .row-actions button, .confirmed-safety-item .row-actions a { width: 100%; }
  .recommendation-list { grid-template-columns: 1fr; }
  .recommendation-card { padding: 17px; }
  .recommendation-feedback { align-items: stretch; flex-direction: column; }
  .recommendation-feedback form { display: grid; grid-template-columns: 52px 52px 1fr; width: 100%; }
  .recommendation-feedback button { width: 100%; }
  .recommendation-feedback a { justify-content: center; }
  .recommendation-simulator-form { grid-template-columns: 1fr; padding: 16px; }
  .companion-check { align-items: stretch; flex-direction: column; padding: 17px; }
  .companion-check button { width: 100%; min-width: 0; }
  .companion-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .companion-actions > * { width: 100%; padding-inline: 9px; text-align: center; }
  .journey-simulator-form { grid-template-columns: 1fr; padding: 16px; }
  .memory-head { align-items: stretch; }
  .memory-head > a { width: 100%; text-align: center; }
  .memory-head-actions { display: grid; grid-template-columns: 1fr; }
  .memory-head-actions > a { width: 100%; text-align: center; }
  .memory-grid, .memory-form-grid, .memory-inspiration-grid { grid-template-columns: 1fr; }
  .memory-proposal-actions, .future-trip-card form { display: grid; grid-template-columns: 1fr 1fr; }
  .memory-proposal-actions button, .future-trip-card button { width: 100%; }
  .memory-card { padding: 16px; }
  .memory-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .memory-card-actions > *, .memory-card-actions button { width: 100%; }
  .memory-connect-form, .reflection-trip-picker { grid-template-columns: 1fr; }
  .reflection-secondary { display: grid; grid-template-columns: 1fr 1fr; }
  .reflection-secondary form, .reflection-secondary button { width: 100%; }
  .historical-hero { align-items: stretch; flex-direction: column; padding: 22px 18px; }
  .historical-hero .quiet-button { width: 100%; text-align: center; }
  .historical-summary { grid-template-columns: repeat(2, 1fr); }
  .historical-summary div:nth-child(3) { border-left: 0; }
  .historical-sections, .historical-detail-grid { grid-template-columns: 1fr; }
  .historical-choice-grid { display: grid; grid-template-columns: 1fr; }
  .historical-form-actions { display: grid; grid-template-columns: 1fr; }
  .historical-form-actions > * { width: 100%; text-align: center; }
  .historical-sharing { align-items: stretch; flex-direction: column; }
  .historical-sharing form { display: grid; grid-template-columns: 1fr; }
  .historical-sharing form > * { width: 100%; text-align: center; }
  .life-timeline-head { align-items: stretch; }
  .timeline-private-mark { width: 100%; text-align: left; }
  .life-stats { grid-template-columns: repeat(2, 1fr); padding: 8px; }
  .life-stats div:nth-child(odd) { border-left: 0; }
  .life-stats div:nth-child(4) { border-left: 1px solid var(--line); }
  .life-timeline-filters form { grid-template-columns: 1fr; }
  .timeline-search { grid-column: auto; }
  .timeline-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .life-story::before { left: 17px; }
  .life-year > header { grid-template-columns: 16px auto 1fr; gap: 8px; }
  .life-year > header > span { width: 16px; height: 16px; margin-left: 9px; }
  .life-year > header h2 { font-size: 1.9rem; }
  .life-year > header small { text-align: right; }
  .life-year-items { margin-left: 34px; }
  .life-card { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
  .life-card-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
  .life-card h3 { font-size: 1.28rem; }
  .life-card-label { align-items: start; flex-direction: column; gap: 2px; }
  .country-history-grid, .continuity-grid { grid-template-columns: 1fr; }
  .places-been-foundation { padding: 17px; }
  .milestone-review article { align-items: stretch; flex-direction: column; }
  .milestone-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .milestone-actions button, .milestone-actions form { width: 100%; }
  .milestone-create form, .timeline-simulator-form { grid-template-columns: 1fr; }
  .milestone-description { grid-column: auto; }
  .milestone-create button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
