:root {
  --ink: #29262b;
  --muted: #777177;
  --paper: #fbf8f4;
  --card: #fffdfb;
  --line: #e9e1db;
  --rose: #bc5669;
  --rose-soft: #f3dadd;
  --shadow: 0 18px 45px rgba(72, 49, 45, 0.09);
}

body[data-theme="ocean"] {
  --card: #fbfeff;
  --line: #dbe8ed;
  --rose: #477f9b;
  --rose-soft: #d9eaf1;
  background: radial-gradient(circle at 8% 4%, rgba(160, 205, 222, 0.3), transparent 24rem), linear-gradient(180deg, #f8fcfd, #edf5f7);
}

body[data-theme="sage"] {
  --card: #fffef9;
  --line: #e2e7d9;
  --rose: #6f8b72;
  --rose-soft: #dfe9dd;
  background: radial-gradient(circle at 8% 4%, rgba(190, 209, 178, 0.32), transparent 24rem), linear-gradient(180deg, #fbfcf7, #f1f4ea);
}

body[data-theme="dusk"] {
  --card: #fefcff;
  --line: #e6deeb;
  --rose: #816b9c;
  --rose-soft: #e8dff0;
  background: radial-gradient(circle at 8% 4%, rgba(196, 178, 214, 0.3), transparent 24rem), linear-gradient(180deg, #fcfaff, #f3eef7);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(237, 200, 198, 0.35), transparent 24rem),
    linear-gradient(180deg, #fcfaf7 0%, #f8f4ef 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(81, 65, 61, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--rose);
  border-radius: 50% 50% 46% 54% / 57% 44% 56% 43%;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-6deg);
}

.brand-mark::first-letter {
  transform: rotate(6deg);
}

.topbar-actions,
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c8488;
  font-size: 10px;
  font-weight: 600;
}

.sync-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #aaa1a5;
  border-radius: 50%;
}

.sync-status.connected::before {
  background: #6f9b82;
  box-shadow: 0 0 0 3px rgba(111, 155, 130, 0.12);
}

.sync-status.syncing::before {
  background: #d09554;
}

.sync-status.error::before {
  background: #b24455;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  color: #625c60;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid #ded6d1;
  border-radius: 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--rose);
  border-radius: 50%;
  font-size: 11px;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-ghost {
  color: #5d575b;
  background: rgba(255, 255, 255, 0.6);
  border-color: #ded6d1;
}

.button-dark {
  color: white;
  background: #343036;
  box-shadow: 0 8px 18px rgba(52, 48, 54, 0.16);
}

.button-dark:hover {
  background: #1f1c21;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: center;
  padding: 86px 46px 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9d5a65;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(54px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--rose);
  font-weight: 400;
}

.hero-subtitle {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.countdown-card {
  position: relative;
  overflow: hidden;
  color: #3e3033;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.78), transparent 8rem),
    linear-gradient(145deg, #f8e4e4, #f2d3d6);
  border: 1px solid rgba(176, 101, 110, 0.2);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(154, 94, 99, 0.16);
}

.love-film-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: 0 46px 96px;
}

.love-film-copy h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.love-film-copy > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.love-film-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 8px;
  background: linear-gradient(135deg, rgba(198, 93, 112, 0.28), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(176, 101, 110, 0.22);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(72, 49, 45, 0.14);
}

.love-film-frame video,
.love-photo-wall {
  display: block;
  width: 100%;
  height: 100%;
  background: #1f1c21;
  border-radius: 15px;
}

.love-film-frame video {
  object-fit: contain;
  pointer-events: none;
}

.love-photo-wall {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(145deg, #f7dfe3 0%, #f5ece8 45%, #e8d5e7 100%);
  animation: love-film-reveal 900ms ease both;
}

.love-photo-glow {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 80% 22%, rgba(210, 146, 176, 0.28), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(198, 93, 112, 0.25), transparent 28%);
  filter: blur(12px);
}

.love-photo-cards {
  position: absolute;
  inset: 7% 5% 17%;
  display: grid;
  grid-template-columns: 0.92fr 1.12fr 0.92fr;
  gap: clamp(8px, 1.5vw, 18px);
  align-items: center;
}

.love-photo-card {
  position: relative;
  z-index: 1;
  height: 86%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: clamp(4px, 0.7vw, 8px) solid rgba(255, 255, 255, 0.94);
  border-bottom-width: clamp(12px, 2vw, 24px);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(80, 48, 59, 0.22);
  transition: opacity 550ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.love-photo-card-center {
  z-index: 2;
  height: 100%;
  transform: translateY(-1%) rotate(-0.5deg);
}

.love-photo-card-left {
  transform: translateY(4%) rotate(-4deg);
}

.love-photo-card-right {
  transform: translateY(4%) rotate(4deg);
}

.love-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.love-photo-wall.is-changing .love-photo-card {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}

.love-photo-message {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 4.5%;
  left: 6%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #985363;
  text-align: center;
}

.love-photo-message p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1.55vw, 20px);
  font-style: italic;
  letter-spacing: 0.02em;
}

.love-photo-message span {
  color: #c65d70;
  font-size: clamp(11px, 1.3vw, 17px);
}

@keyframes love-film-reveal {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.countdown-card::before,
.countdown-card::after {
  content: "♥";
  position: absolute;
  color: rgba(181, 91, 103, 0.1);
  font-size: 130px;
  line-height: 1;
  transform: rotate(14deg);
}

.countdown-card::before {
  right: -25px;
  top: -30px;
}

.countdown-card::after {
  left: -50px;
  bottom: -70px;
}

.countdown-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  padding: 38px 38px 30px;
}

.countdown-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.countdown-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.countdown-label {
  margin: 2px 0 9px;
  color: #9d5a65;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.countdown-number-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.countdown-number-row strong {
  font-family: "DM Serif Display", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 0.95;
}

.countdown-number-row span {
  color: #7c656a;
  font-family: "DM Serif Display", serif;
  font-size: 22px;
}

.countdown-location {
  margin: 20px 0 4px;
  font-family: "DM Serif Display", serif;
  font-size: 23px;
}

.countdown-date {
  margin: 0;
  color: #856f73;
  font-size: 13px;
}

.weather-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 11px 0 0;
  padding: 6px 9px;
  color: #725d61;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
}

.weather-line[hidden] {
  display: none;
}

.love-message {
  max-width: 520px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: #8d6870;
  border-left: 2px solid rgba(188, 86, 105, 0.45);
  font-family: "DM Serif Display", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
}

.countdown-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 16px 38px;
  color: #96757b;
  background: rgba(255, 255, 255, 0.26);
  border-top: 1px solid rgba(157, 90, 101, 0.12);
  font-family: "DM Serif Display", serif;
  font-size: 13px;
  font-style: italic;
}

.tiny-hearts {
  color: rgba(188, 86, 105, 0.45);
  font-size: 10px;
  letter-spacing: 6px;
}

.plan-actions,
.home-cities-section,
.calendar-section,
.upcoming-section,
.travel-map-section,
.travel-dashboard-section,
.memories-section {
  padding: 0 46px 96px;
}

.home-cities-section {
  padding-bottom: 72px;
}

.compact-heading {
  margin-bottom: 18px;
}

.home-city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-city-card {
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(135deg, var(--card), var(--rose-soft));
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 9px 25px rgba(72, 49, 45, 0.05);
}

.home-person {
  color: var(--rose);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-city-card h3 {
  margin: 9px 0;
  font-family: "DM Serif Display", serif;
  font-size: 27px;
  font-weight: 400;
}

.location-status {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 8px;
  color: #777177;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
}

.location-status.scheduled {
  color: white;
  background: var(--rose);
}

.local-clock,
.home-weather {
  display: block;
  color: #716a6e;
}

.local-clock {
  font-size: 13px;
}

.home-weather {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
}

.plan-actions {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 45px;
  align-items: center;
}

.plan-actions-copy h2 {
  max-width: 280px;
  font-size: 34px;
  line-height: 1.08;
}

.plan-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-action {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 253, 251, 0.78);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(72, 49, 45, 0.04);
  text-align: left;
}

button.plan-action {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button.plan-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.plan-action-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: white;
  background: var(--action-color);
  border-radius: 11px;
  font-size: 15px;
}

.reunion-action {
  --action-color: #c65d70;
}

.site-action {
  --action-color: #668aaa;
}

.remote-action {
  --action-color: #718f82;
}

.custom-action {
  --action-color: #8876a5;
}

.holiday-action {
  --action-color: #b08159;
}

.plan-action strong,
.plan-action small {
  display: block;
}

.plan-action strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.plan-action small {
  color: #958d91;
  font-size: 10px;
}

.plan-action-arrow,
.holiday-check {
  color: var(--action-color);
  font-size: 20px;
}

.holiday-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  background: var(--action-color);
  border-radius: 50%;
  font-size: 11px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 38px;
  letter-spacing: -0.02em;
}

.icon-button,
.month-button {
  height: 38px;
  border: 1px solid #dfd7d2;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.icon-button {
  width: 38px;
  border-radius: 50%;
}

.month-button {
  min-width: 150px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.calendar-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  padding: 17px 0;
  color: #8e878b;
  background: #faf6f2;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  min-height: 112px;
  padding: 12px 9px;
  background: rgba(255, 255, 255, 0.5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.other-month {
  color: #c2bbbd;
  background: rgba(249, 246, 243, 0.7);
}

.day-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  font-size: 12px;
}

.calendar-day.today .day-number {
  color: white;
  background: var(--rose);
  border-radius: 50%;
  font-weight: 700;
}

.calendar-event {
  width: 100%;
  margin-top: 7px;
  padding: 7px;
  overflow: hidden;
  color: var(--event-text);
  background: var(--event-bg);
  border: 0;
  border-left: 3px solid var(--event-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.calendar-event strong,
.calendar-event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event strong {
  font-size: 10px;
  font-weight: 700;
}

.calendar-event span {
  margin-top: 3px;
  opacity: 0.82;
  font-size: 8px;
  font-weight: 600;
}

.calendar-event:hover {
  filter: saturate(1.2);
}

.calendar-event.holiday-event {
  border-left-style: solid;
  cursor: default;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.remote-work-event {
  border-left-style: dashed;
}

.calendar-event.dallas-site-event {
  border-left-width: 5px;
  font-weight: 700;
}

.calendar-event.travel-site-event {
  background-image: linear-gradient(90deg, rgba(54, 126, 184, 0.08), transparent);
}

.calendar-event.site-flight-event {
  color: #245f8e;
  background: #eef6fc;
  border-left-color: #367eb8;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: #756f73;
  font-size: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  background: var(--dot-color);
  border-radius: 50%;
}

.weather-credit {
  margin: 10px 0 0;
  color: #aaa1a5;
  font-size: 9px;
}

.weather-credit a {
  color: inherit;
}

.upcoming-section {
  padding-top: 10px;
}

.upcoming-heading {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.text-button,
.reset-button {
  padding: 7px 0;
  color: var(--rose);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.text-button span {
  margin-left: 5px;
}

.reunion-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reunion-card {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 9px 25px rgba(72, 49, 45, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reunion-card-body {
  padding: 24px;
}

.city-image-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #eee7e2;
}

.city-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.reunion-card:hover .city-image {
  transform: scale(1.025);
}

.city-image-credit {
  position: absolute;
  right: 8px;
  bottom: 7px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  overflow: hidden;
  color: white;
  background: rgba(36, 31, 33, 0.66);
  border-radius: 4px;
  font-size: 8px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reunion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.reunion-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--card-color);
}

.reunion-date {
  color: #989094;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reunion-card h3 {
  margin: 14px 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 25px;
  font-weight: 400;
}

.plan-location {
  margin: -2px 0 9px;
  color: #8d8589;
  font-size: 11px;
  line-height: 1.4;
}

.reunion-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6f686c;
  font-size: 12px;
}

.reunion-type::before {
  content: "♥";
  color: var(--card-color);
  font-size: 9px;
}

.reunion-card[data-kind="site-visit"] .reunion-type::before {
  content: "⌖";
}

.reunion-card[data-kind="remote-work"] .reunion-type::before {
  content: "⌂";
}

.reunion-card[data-kind="custom"] .reunion-type::before {
  content: "✦";
}

.reunion-card[data-site-type="dallas"] {
  box-shadow: inset 0 0 0 1px rgba(102, 138, 170, 0.24), 0 9px 25px rgba(72, 49, 45, 0.05);
}

.reunion-card[data-site-type="dallas"] .reunion-type {
  font-weight: 700;
}

.site-flight-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  color: #367eb8;
  background: #eef6fc;
  border: 1px solid #d5e8f6;
  border-radius: 10px;
}

.site-flight-route small {
  grid-column: 1 / -1;
  color: #5d8db3;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.site-flight-route > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.site-flight-route > div:last-child {
  justify-content: flex-end;
  text-align: right;
}

.site-flight-route svg {
  flex: 0 0 auto;
  width: 24px;
  height: 20px;
  fill: currentColor;
}

.site-flight-route .plane-body {
  transform-box: fill-box;
  transform-origin: center;
}

.site-flight-route .plane-departure .plane-body {
  transform: rotate(-14deg) translateY(-1px);
}

.site-flight-route .plane-arrival .plane-body {
  transform: rotate(14deg) translateY(1px);
}

.site-flight-route .plane-runway {
  opacity: 0.75;
}

.site-flight-route span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-flight-route i {
  color: #78a9cf;
  font-size: 12px;
  font-style: normal;
}

.site-mission {
  padding: 16px;
  background: #fffaf0;
  border: 1px solid #ead8a7;
  border-radius: 14px;
}

.site-mission-intro {
  margin: 0 0 14px;
  color: #7c705e;
  font-size: 11px;
  line-height: 1.5;
}

.site-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mission-question {
  overflow: hidden;
  background: white;
  border: 1px solid #eadfd6;
  border-radius: 12px;
}

.mission-question img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.mission-question label {
  display: grid;
  gap: 7px;
  padding: 11px;
  font-size: 11px;
}

.site-mission-results {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #d9c78f;
}

.site-mission-result-heading {
  margin: 0 0 10px;
  color: #8a6b22;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-mission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mission-badge {
  padding: 5px 8px;
  color: #765a17;
  background: #fff3c7;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.mission-badge.captured {
  color: #2f7252;
  background: #e3f2e9;
}

.mission-badge.escaped {
  color: #915052;
  background: #f8e4e5;
}

.card-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding: 6px 9px;
  color: #6e686b;
  background: #f8f4f1;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
}

.plan-owner {
  display: block;
  margin-top: 9px;
  color: #a0989c;
  font-size: 9px;
  font-weight: 600;
}

.shared-edit-note {
  margin: 5px 0 0;
  color: #92898e;
  font-size: 10px;
}

.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.edit-plan-button,
.repeat-plan-button {
  margin-top: 0;
}

.edit-plan-button {
  padding: 7px 11px;
  color: white;
  background: var(--card-color);
  border: 1px solid var(--card-color);
  border-radius: 999px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.repeat-plan-button {
  margin-top: 15px;
  padding: 7px 11px;
  color: var(--card-color);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--card-color) 45%, white);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.edit-plan-button:hover {
  filter: brightness(0.92);
}

.repeat-plan-button:hover {
  background: color-mix(in srgb, var(--card-color) 9%, white);
}

.reunion-note {
  margin: 18px 0 0;
  color: #989094;
  font-size: 11px;
}

.travel-dashboard-section,
.memories-section {
  padding-top: 12px;
}

.travel-dashboard-section .section-heading,
.memories-section .section-heading {
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.travel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.travel-stat {
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 9px 25px rgba(72, 49, 45, 0.04);
}

.travel-stat strong,
.travel-stat span {
  display: block;
}

.travel-stat strong {
  color: var(--rose);
  font-family: "DM Serif Display", serif;
  font-size: 38px;
  font-weight: 400;
}

.travel-stat span {
  margin-top: 5px;
  color: #8d8589;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.important-dates-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 44px 0 18px;
}

.important-dates-heading h3 {
  margin: 5px 0 0;
  font-family: "DM Serif Display", serif;
  font-size: 27px;
  font-weight: 400;
}

.important-dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.important-date-card {
  min-height: 145px;
  padding: 22px;
  background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--rose-soft) 24%, white));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.important-date-card span,
.important-date-card strong,
.important-date-card small {
  display: block;
}

.important-date-card span {
  color: #938a8f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.important-date-card strong {
  margin: 19px 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.important-date-card small {
  color: var(--rose);
  font-size: 10px;
  font-weight: 700;
}

.modal-intro {
  margin: -10px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.memory-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 9px 25px rgba(72, 49, 45, 0.05);
}

.memory-card > img,
.memory-placeholder {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.memory-placeholder {
  display: grid;
  place-items: center;
  color: var(--rose);
  background: linear-gradient(135deg, var(--rose-soft), #f8f1ed);
  font-size: 30px;
}

.memory-card-body {
  padding: 22px;
}

.memory-card-body > span {
  color: #989094;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.memory-card h3 {
  margin: 10px 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  font-weight: 400;
}

.memory-note {
  min-height: 45px;
  margin: 15px 0;
  color: #777177;
  font-family: "DM Serif Display", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.memory-edit-button {
  padding: 7px 11px;
  color: var(--rose);
  background: transparent;
  border: 1px solid var(--rose-soft);
  border-radius: 999px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.memory-modal textarea {
  width: 100%;
  resize: vertical;
}

.memory-photo-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 8px 0 15px;
  object-fit: cover;
  border-radius: 10px;
}

.remove-photo-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-photo-label input {
  width: auto;
}

.route-weather {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background: #faf6f3;
  border-radius: 10px;
}

.route-weather > div {
  min-width: 0;
}

.route-weather small,
.route-weather strong,
.route-weather div span {
  display: block;
}

.route-weather small {
  margin-bottom: 3px;
  color: #a39a9e;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.route-weather strong {
  overflow: hidden;
  font-family: "DM Serif Display", serif;
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-weather div span {
  margin-top: 4px;
  color: #827a7e;
  font-size: 8px;
  line-height: 1.35;
}

.route-arrow {
  color: var(--card-color);
  font-size: 17px;
}

.flight-details {
  display: grid;
  gap: 4px;
  margin-top: 13px;
  padding-top: 12px;
  color: #81797d;
  border-top: 1px solid #eee7e3;
  font-size: 10px;
}

.flight-details strong {
  color: #4e474b;
  font-size: 11px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed #d9cfca;
  border-radius: 14px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  font-weight: 400;
}

.travel-map-section {
  padding-top: 10px;
}

.travel-map {
  z-index: 0;
  height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.map-legend {
  display: flex;
  gap: 16px;
  color: #777177;
  font-size: 11px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.map-dot.visited {
  background: #bc5669;
}

.map-dot.future {
  background: #d09554;
}

.map-empty {
  padding: 48px 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed #d9cfca;
  border-radius: 14px;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 46px 38px;
  color: #9a9195;
  border-top: 1px solid var(--line);
  font-family: "DM Serif Display", serif;
  font-size: 12px;
  font-style: italic;
}

footer span {
  color: var(--rose);
}

.reset-button {
  color: #aaa1a5;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-style: normal;
}

.modal {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 0;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(48, 37, 41, 0.25);
}

.access-modal {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(48, 37, 41, 0.3);
}

.access-modal::backdrop {
  background:
    radial-gradient(circle at 50% 30%, rgba(188, 86, 105, 0.2), transparent 30rem),
    rgba(37, 31, 34, 0.66);
  backdrop-filter: blur(7px);
}

.access-modal form {
  padding: 38px;
  text-align: center;
}

.access-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 24px;
  color: white;
  background: var(--rose);
  border-radius: 50% 50% 46% 54% / 57% 44% 56% 43%;
  font-family: "DM Serif Display", serif;
  font-size: 20px;
}

.access-modal h2 {
  font-size: 34px;
  line-height: 1.05;
}

.access-copy {
  margin: 14px auto 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  background: #f4efeb;
  border-radius: 10px;
}

.auth-tab {
  min-height: 36px;
  color: #8b8387;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.auth-tab.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 10px rgba(72, 49, 45, 0.08);
}

.access-modal label {
  text-align: left;
}

.show-code-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -7px;
  font-weight: 500;
}

.show-code-label input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.access-help {
  margin: 3px 0 17px;
  color: #9a9195;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

.access-submit {
  width: 100%;
}

.onboarding-modal {
  width: min(470px, calc(100% - 28px));
}

.profile-modal {
  width: min(540px, calc(100% - 28px));
}

.profile-modal form {
  max-height: calc(100vh - 34px);
  overflow-y: auto;
}

.theme-picker {
  text-align: left;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.theme-option {
  --theme-color: #bc5669;
  position: relative;
  display: block;
  min-height: 67px;
  margin: 0;
  padding: 38px 8px 7px;
  overflow: hidden;
  border: 1px solid #ddd4cf;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
}

.theme-option::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 31px;
  background: var(--theme-color);
}

.theme-option.ocean { --theme-color: #477f9b; }
.theme-option.sage { --theme-color: #6f8b72; }
.theme-option.dusk { --theme-color: #816b9c; }

.theme-option input {
  position: absolute;
  opacity: 0;
}

.theme-option:has(input:checked) {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(129, 107, 156, 0.16);
}

.invite-modal {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(48, 37, 41, 0.25);
}

.invite-modal::backdrop {
  background: rgba(37, 31, 34, 0.48);
  backdrop-filter: blur(4px);
}

.invite-content {
  position: relative;
  padding: 34px;
  text-align: center;
}

.invite-content .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.invite-content h2 {
  font-size: 32px;
}

.invite-content p:not(.eyebrow) {
  margin: 13px auto 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.invite-code {
  display: block;
  margin-bottom: 22px;
  color: var(--rose);
  font-family: "DM Serif Display", serif;
  font-size: 34px;
  letter-spacing: 0.12em;
}

.modal::backdrop {
  background: rgba(37, 31, 34, 0.48);
  backdrop-filter: blur(4px);
}

.modal form {
  padding: 30px;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-heading h2 {
  font-size: 32px;
}

.modal-close {
  align-self: flex-start;
  width: 34px;
  height: 34px;
  color: #827a7e;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

label,
fieldset {
  display: block;
  margin: 0 0 17px;
  color: #5f595c;
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #ddd4cf;
  border-radius: 8px;
  outline: none;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 112px;
  padding-top: 11px;
  padding-bottom: 11px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(188, 86, 105, 0.1);
}

.optional {
  color: #a39b9e;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

fieldset {
  padding: 0;
  border: 0;
}

.travel-details {
  margin-top: 2px;
  padding: 16px;
  background: #faf6f3;
  border: 1px solid #e8dfda;
  border-radius: 11px;
}

.travel-details[hidden] {
  display: none;
}

.travel-details legend {
  padding: 0 6px;
}

legend {
  margin-bottom: 10px;
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-radio {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0;
  background: var(--choice-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ddd4cf;
  cursor: pointer;
}

.color-radio:has(input:checked) {
  box-shadow: 0 0 0 2px var(--choice-color);
}

.color-radio input {
  position: absolute;
  opacity: 0;
}

.color-radio:has(input:checked)::after {
  content: "✓";
  color: white;
  font-size: 12px;
}

.form-error {
  min-height: 18px;
  margin: -4px 0 8px;
  color: #b24455;
  font-size: 12px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.modal-actions > div {
  display: flex;
  gap: 8px;
}

.delete-button {
  padding: 8px 0;
  color: #b24455;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 28px;
  padding: 12px 18px;
  color: white;
  background: #343036;
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(35, 29, 32, 0.22);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 66px 20px 76px;
  }

  .calendar-section,
  .home-cities-section,
  .love-film-section,
  .plan-actions,
  .upcoming-section,
  .travel-map-section,
  .travel-dashboard-section,
  .memories-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .love-film-section {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .love-photo-cards {
    inset: 6% 3% 18%;
    gap: 6px;
  }

  .plan-actions {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .plan-actions-copy h2 {
    max-width: none;
  }

  .reunion-list {
    grid-template-columns: 1fr 1fr;
  }

  .travel-map {
    height: 360px;
  }

  .calendar-day {
    min-height: 94px;
  }
}

@media (max-width: 600px) {
  .site-mission-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 74px;
  }

  .topbar-actions .button-ghost {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions .button-dark {
    padding: 0 13px;
    font-size: 12px;
  }

  .sync-status {
    display: none;
  }

  .account-button > span:last-child {
    display: none;
  }

  .account-button {
    padding-right: 5px;
  }

  .hero {
    padding: 54px 8px 66px;
  }

  h1 {
    font-size: 51px;
  }

  .countdown-content {
    padding: 30px 24px 24px;
  }

  .countdown-footer {
    padding: 14px 24px;
  }

  .calendar-section,
  .home-cities-section,
  .love-film-section,
  .plan-actions,
  .upcoming-section,
  .travel-map-section,
  .travel-dashboard-section,
  .memories-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 70px;
  }

  .plan-action-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .important-dates-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .calendar-controls {
    gap: 5px;
  }

  .month-button {
    min-width: 106px;
    font-size: 11px;
  }

  .calendar-day {
    min-height: 72px;
    padding: 7px 4px;
  }

  .calendar-event {
    padding: 5px 3px;
    border-left-width: 2px;
  }

  .calendar-event strong {
    font-size: 8px;
  }

  .calendar-event span {
    font-size: 7px;
  }

  .weekday-row {
    font-size: 8px;
  }

  .reunion-list {
    grid-template-columns: 1fr;
  }

  .travel-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .important-dates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .home-city-grid {
    grid-template-columns: 1fr;
  }

  .map-legend {
    flex-direction: column;
    gap: 5px;
  }

  .travel-map {
    height: 300px;
  }

  .theme-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .upcoming-heading {
    padding-top: 54px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal form {
    padding: 23px;
  }

  .modal-actions {
    align-items: flex-end;
  }

  .modal-actions > div {
    flex-direction: column-reverse;
  }

  footer {
    padding-left: 8px;
    padding-right: 8px;
  }
}
