:root {
  color-scheme: light;
  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --text: #0b1628;
  --secondary: #707078;
  --page: #f5f5f8;
  --sheet: #f2f2f7;
  --surface: rgba(255, 255, 255, .92);
  --line: rgba(60, 60, 67, .16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--page); }

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

html:has(body[data-app-ready="false"]),
body[data-app-ready="false"] {
  background: linear-gradient(180deg, #159bf0 0%, #65d8ef 58%, #b9eff8 100%);
}

.app-splash {
  position: fixed;
  z-index: 100;
  top: calc(-1 * env(safe-area-inset-top));
  right: calc(-1 * env(safe-area-inset-right));
  bottom: calc(-1 * env(safe-area-inset-bottom));
  left: calc(-1 * env(safe-area-inset-left));
  display: grid;
  overflow: hidden;
  place-items: center;
  color: white;
  background: linear-gradient(180deg, #159bf0 0%, #65d8ef 58%, #b9eff8 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease, visibility 0s linear .65s;
}
body[data-app-ready="true"] .app-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  position: relative;
  z-index: 2;
  width: min(86vw, 440px);
  text-align: center;
  text-shadow: 0 3px 18px rgba(17,83,130,.28);
}
.splash-plane {
  display: block;
  width: min(78vw, 360px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 22px rgba(21,74,116,.24));
  animation: splash-plane-flight 3.8s ease-in-out infinite alternate;
}
.splash-content h1 { margin: 0; font-size: clamp(46px, 13vw, 72px); line-height: 1; letter-spacing: -.055em; }
.splash-content p { max-width: 330px; margin: 13px auto 0; font-size: clamp(16px, 4.5vw, 20px); font-weight: 600; line-height: 1.3; }
.splash-cloud {
  position: absolute;
  z-index: 1;
  left: 110vw;
  width: 180px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  filter: blur(.2px);
  box-shadow: 0 10px 28px rgba(40,126,174,.12);
  animation: splash-cloud-pass 13s linear infinite;
}
.splash-cloud::before,
.splash-cloud::after {
  position: absolute;
  bottom: 13px;
  border-radius: 50%;
  background: inherit;
  content: "";
}
.splash-cloud::before { left: 28px; width: 76px; height: 76px; }
.splash-cloud::after { right: 25px; width: 98px; height: 98px; }
.splash-cloud-one { top: 18%; animation-duration: 12s; }
.splash-cloud-two { top: 58%; width: 230px; opacity: .68; animation-delay: -7s; animation-duration: 17s; transform: scale(.75); }
.splash-cloud-three { top: 78%; width: 145px; opacity: .58; animation-delay: -3s; animation-duration: 14s; transform: scale(.58); }
@keyframes splash-cloud-pass {
  from { translate: 0 0; }
  to { translate: -155vw 0; }
}
@keyframes splash-plane-flight {
  from { transform: translateY(-9px) rotate(-1deg); }
  to { transform: translateY(11px) rotate(1deg); }
}

#auth_view,
#user_home { transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
body[data-session="loading"] #auth_view,
body[data-session="loading"] #user_home,
body[data-session="authenticated"] #auth_view,
body[data-session="anonymous"] #user_home {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.98);
}
body[data-session="authenticated"] #user_home,
body[data-session="anonymous"] #auth_view {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.home {
  position: relative;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(36px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.home::before,
.home::after {
  position: fixed;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  content: "";
  filter: blur(80px);
  opacity: .2;
  pointer-events: none;
}

.home::before { top: 4%; left: -24%; background: #27b8ff; }
.home::after { top: 17%; right: -30%; background: #b8e8ff; }

.home-header,
.trip-list,
.home-empty { width: min(100%, 760px); margin-inline: auto; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.header-buttons { display: flex; align-items: center; gap: 10px; }

.profile-button,
.circle-button {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .1);
}

.profile-button { background: #d7e7f3; }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.profile-button img { object-position: 50% 46%; }
.profile-fallback { display: grid; place-items: center; height: 100%; color: #fff; background: #3c789c; font-weight: 600; }

.circle-button {
  display: grid;
  transition: width .3s ease, flex-basis .3s ease, opacity .2s ease, transform .3s ease;
  place-items: center;
  color: white;
  background: var(--ios-blue);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.glass-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(60, 60, 67, .2);
  border-radius: 999px;
  color: #09090b;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(24px) saturate(150%);
  font-weight: 600;
}

.trip-heading { position: relative; margin: 32px 2px 22px; }
.home-context { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.session-reference { margin: 2px 0 10px; color: var(--secondary); font-size: 11px; opacity: .8; }
.home-title {
  margin: 0;
  font-size: clamp(42px, 11vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
}
.home-title button {
  display: inline-flex;
  align-items: center;
  gap: .14em;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
}
.home-title button:hover,
.home-title button:focus,
.home-title button:focus-visible,
.home-title button:active {
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.year-chevron {
  position: relative;
  display: inline-block;
  width: .42em;
  height: .42em;
  flex: 0 0 .42em;
  align-self: center;
  overflow: visible;
  background: transparent !important;
  font-size: inherit;
  line-height: 0;
}
.year-chevron::before {
  position: absolute;
  top: 5%;
  left: 15%;
  width: 56%;
  height: 56%;
  border-right: .055em solid currentColor;
  border-bottom: .055em solid currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform .25s ease;
}
body[data-year-menu="open"] .year-chevron::before { transform: rotate(225deg); }
.year-menu { --year-menu-radius: 2rem; --year-menu-padding: 1rem; position: absolute; z-index: 8; top: calc(100% - 2px); left: 0; min-width: 150px; padding: var(--year-menu-padding); border: 1px solid rgba(0,0,0,.2); border-radius: var(--year-menu-radius); background: rgba(255,255,255,.78); box-shadow: 0 14px 35px rgba(0,0,0,.14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.96); transform-origin: top left; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; backdrop-filter: blur(40px) saturate(150%); }
body[data-year-menu="open"] .year-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.year-menu ol { margin: 0; padding: 0; list-style: none; }
.year-menu button { width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: calc(var(--year-menu-radius) - var(--year-menu-padding)); color: var(--text); background: transparent; text-align: left; font-size: 17px; transition: color .3s ease, background-color .3s ease; }
.year-menu button[aria-current="true"] { color: var(--ios-blue); background: transparent; font-weight: 600; }
.year-menu button:active { background: rgba(0,0,0,.2); }

body[data-editing="true"] #new_trip_button {
  width: 0;
  flex-basis: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.6);
}
body[data-editing="true"] .home {
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.trip-list { display: grid; gap: 18px; margin-block: 0; padding: 0; background: transparent; list-style-position: inside; }
.trip-list > li { background: transparent; }
.trip-list::marker, .trip-list > li::marker { color: transparent; font-size: 0; }

.trip-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 5px solid var(--card-accent, #4775d1);
  border-radius: 30px;
  color: white;
  background: #5f7380 center / cover no-repeat;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--card-accent, #4775d1) 42%, transparent);
  transform: scale(1);
  transition: transform .3s ease, box-shadow .3s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.trip-card[data-pressed="true"],
.trip-card:active,
.trip-card:has(.trip-card-button:active) {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--card-accent, #4775d1) 28%, transparent);
  transform: scale(.9);
}

.trip-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    to top,
    var(--card-accent, #4775d1) 0%,
    color-mix(in srgb, var(--card-accent, #4775d1) 58%, transparent) 25%,
    transparent 50%
  );
}

.trip-card-button {
  position: absolute;
  z-index: 3;
  inset: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  padding: 27px;
  border: 0;
  color: inherit;
  background: transparent !important;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.trip-card-button:hover,
.trip-card-button:focus,
.trip-card-button:focus-visible,
.trip-card-button:active {
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.trip-selection-control {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  color: white;
  background: rgba(25,25,28,.28);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s ease, transform .3s ease, background-color .25s ease;
  backdrop-filter: blur(14px);
}
.trip-selection-control::after { content: ""; font-size: 23px; font-weight: 800; line-height: 1; }
.trip-selection-control[data-selected="true"] { background: var(--ios-blue); }
.trip-selection-control[data-selected="true"]::after { content: "✓"; }
body[data-editing="true"] .trip-selection-control { opacity: 1; transform: scale(1); }
body[data-editing="true"] .trip-status { opacity: 0; }

.trip-card *,
.trip-card-button * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.trip-status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--card-accent, #4775d1);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--card-accent, #4775d1) 38%, transparent);
  backdrop-filter: blur(18px);
  font-size: 12px;
}

.trip-owner-flag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 15px 9px;
  border-radius: 26px 0 18px 0;
  color: white;
  background: var(--card-accent, #4775d1);
  box-shadow: 7px 8px 20px color-mix(in srgb, var(--card-accent, #4775d1) 38%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.trip-copy { position: absolute; right: 20px; bottom: 20px; left: 20px; }
.trip-copy { text-shadow: 0 2px 10px color-mix(in srgb, var(--card-accent, #4775d1) 45%, #07101d 55%); }
.trip-copy h2 { margin: 0 0 5px; font-size: clamp(30px, 8vw, 42px); line-height: 1; letter-spacing: -.04em; }
.trip-dates { display: block; margin-bottom: 17px; font-size: 15px; }
.trip-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.passenger-stack { display: flex; align-items: center; }
.passenger-photo {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  place-items: center;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #6385a0;
  font-size: 12px;
  font-weight: 700;
}
.passenger-photo img { width: 100%; height: 100%; object-fit: cover; }
.passenger-count { margin-left: 14px; font-size: 13px; opacity: .92; }

.trip-edit-footer {
  position: fixed;
  z-index: 19;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(245,245,248,.72);
  transform: translateY(110%);
  transition: transform .36s cubic-bezier(.22,.8,.25,1);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
body[data-editing="true"] .trip-edit-footer { transform: translateY(0); }
.trip-edit-footer button {
  display: block;
  width: min(100%, 724px);
  min-height: 52px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--ios-red);
  font-weight: 700;
}
.trip-edit-footer button:disabled { opacity: .35; }

.home-empty { padding: 48px 24px; border-radius: 28px; background: rgba(255,255,255,.72); text-align: center; backdrop-filter: blur(24px); }
.home-empty p { color: var(--secondary); }
.trip-list[aria-hidden="true"],
.home-empty[aria-hidden="true"] { display: none; }

.trip-page {
  --trip-page-color: #4775d1;
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: white;
  background: var(--trip-page-color);
  box-shadow: -22px 0 48px rgba(0,0,0,.28);
  visibility: hidden;
  transform: translateX(105%);
  transition: transform .3s ease-in-out, visibility 0s linear .3s;
  overscroll-behavior: contain;
}
body[data-trip-page="open"] { overflow: hidden; }
body[data-trip-page="open"] .trip-page {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
.trip-page-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 5px solid var(--trip-page-color);
  background: #5f7380 center / cover no-repeat;
  box-shadow: 0 22px 44px color-mix(in srgb, var(--trip-page-color) 72%, rgba(0,0,0,.35));
}
.trip-page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, color-mix(in srgb, var(--trip-page-color) 78%, transparent) 0%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.28) 100%);
}
.trip-page-nav {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 0;
  padding: 0 18px;
  pointer-events: none;
}
.trip-page-control {
  position: relative;
  transform: translateY(calc(max(18px, env(safe-area-inset-top)) + 1rem));
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: white;
  background: rgba(20,20,24,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  line-height: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
}
.trip-page-back { padding: 0 3px 3px 0; font-size: 42px; }
.trip-page-edit svg { width: 25px; height: 25px; fill: currentColor; }
.trip-page-hero-copy {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 26px;
  left: 24px;
  text-shadow: 0 3px 14px rgba(0,0,0,.42);
}
.trip-page-hero-copy h1 { margin: 0 0 7px; font-size: clamp(38px, 10vw, 58px); line-height: .96; letter-spacing: -.045em; }
.trip-page-hero-copy p { margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.trip-page-passengers { min-height: 36px; }
.trip-page-content {
  width: min(100%, 796px);
  min-height: calc(100svh - 390px);
  margin: 0 auto;
  padding: 28px 18px calc(42px + env(safe-area-inset-bottom));
}
.trip-day-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trip-day-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 28px;
  color: var(--text);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--trip-page-color) 58%, rgba(0,0,0,.2));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: scale(1);
  transition: transform .3s ease, box-shadow .3s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.trip-day-card[data-pressed="true"],
.trip-day-card:active,
.trip-day-card:has(.trip-day-card-button:active) {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--trip-page-color) 38%, rgba(0,0,0,.16));
  transform: scale(.9);
}
.trip-day-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.trip-day-card-button:hover,
.trip-day-card-button:focus,
.trip-day-card-button:focus-visible,
.trip-day-card-button:active { outline: 0; background: transparent; box-shadow: none; }
.trip-day-image {
  position: relative;
  min-height: 210px;
  background: color-mix(in srgb, var(--trip-page-color) 72%, #23364b) center / cover no-repeat;
}
.trip-day-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0,0,0,.28), transparent 58%);
}
.trip-day-timing {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: white;
  background: var(--trip-page-color);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--trip-page-color) 58%, rgba(0,0,0,.25));
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.trip-day-timing[data-today="true"] { letter-spacing: .04em; }

.trip-day-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  min-width: 84px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  color: white;
  background: rgba(20,20,24,.24);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.trip-day-label { display: block; color: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-transform: lowercase; }
.trip-day-number { display: block; margin-top: 2px; font-size: 60px; line-height: .86; letter-spacing: -.06em; }
.trip-day-body { padding: 20px 20px 22px; }
.trip-day-body h2 { margin: 0; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; }
.trip-day-date { display: block; margin-top: 7px; color: var(--secondary); font-size: 14px; font-weight: 600; }
.trip-day-agenda { margin-top: 18px; border-top: 1px solid var(--line); }
.trip-day-period {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.trip-day-period:last-child { padding-bottom: 0; border-bottom: 0; }
.trip-day-period h3 { margin: 2px 0 0; color: var(--secondary); font-size: 13px; text-transform: lowercase; }
.trip-day-period ol { margin: 0; padding: 0; list-style: none; }
.trip-day-period li { display: flex; gap: 8px; align-items: baseline; line-height: 1.35; }
.trip-day-period li + li { margin-top: 6px; }
.trip-day-period time { flex: 0 0 auto; color: var(--secondary); font-size: 12px; font-weight: 700; }
.trip-day-period li > span { font-size: 14px; font-weight: 600; }
.trip-day-message { margin: 24px 4px; color: rgba(255,255,255,.86); text-align: center; }
.trip-day-message:empty { display: none; }

@media (min-width: 720px) {
  .trip-day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.day-page {
  position: fixed;
  z-index: 70;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: #f2f2f7;
  box-shadow: -22px 0 48px rgba(0,0,0,.25);
  visibility: hidden;
  transform: translateX(105%);
  transition: transform .3s ease-in-out, visibility 0s linear .3s;
  overscroll-behavior: contain;
}
body[data-day-page="open"] { overflow: hidden; }
body[data-day-page="open"] .day-page {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
.day-page-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: white;
  background: color-mix(in srgb, var(--trip-page-color, #4775d1) 72%, #23364b) center / cover no-repeat;
}
.day-page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,.2) 52%, rgba(0,0,0,.32) 100%);
}
.day-page-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(20,20,24,.24);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.day-page-content {
  width: min(100%, 796px);
  min-height: calc(100svh - 390px);
  margin: 0 auto;
  padding: 26px 18px calc(38px + env(safe-area-inset-bottom));
}
.day-view-section + .day-view-section { margin-top: 30px; }
.day-view-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.035em;
}
.day-view-agenda {
  margin: 0;
  padding: 0;
  list-style: none;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}
.day-view-agenda-item {
  display: grid;
  grid-template-columns: 58px 24px minmax(0, 1fr) 92px;
  align-items: start;
  gap: 10px;
  min-height: 112px;
  padding: 16px 12px;
  border-bottom: 1px solid #d7d7dc;
}
.day-view-agenda-item[data-has-photo="false"] { grid-template-columns: 58px 24px minmax(0, 1fr); }
.day-view-agenda-item:last-child { border-bottom: 0; }
.day-view-agenda-item time {
  padding-top: 2px;
  color: var(--ios-blue);
  font-size: 15px;
  font-weight: 800;
}
.day-view-pin {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ios-blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-top: 1px;
}
.day-view-pin::after {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 50%;
  background: var(--ios-blue);
}
.day-view-agenda-copy {
  min-width: 0;
}
.day-view-agenda-copy strong,
.day-view-agenda-copy span {
  display: block;
}
.day-view-agenda-copy strong {
  font-size: 17px;
  line-height: 1.22;
}
.day-view-agenda-copy span {
  margin-top: 5px;
  color: #6f6f75;
  font-size: 13px;
  font-weight: 600;
}
.day-view-agenda-description {
  margin: 11px 0 0;
  color: #3f3f45;
  font-size: 14px;
  line-height: 1.48;
}
.day-view-place-photo {
  display: block;
  width: 92px;
  height: 82px;
  border-radius: 14px;
  background: #e5e5ea center / cover no-repeat;
}
.day-view-empty {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  color: #6f6f75;
  background: white;
  text-align: center;
}
.day-view-empty:empty { display: none; }
.day-view-map {
  height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #6f6f75;
  background: #e5e5ea;
  font-weight: 600;
}
.day-view-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.day-view-directions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.day-view-map-pins {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}
.day-view-map-pins li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 8px 11px 8px 8px;
  border-radius: 999px;
  background: white;
}
.day-view-map-pins span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ios-blue);
  font-size: 12px;
  font-weight: 900;
}
.day-view-map-pins strong {
  overflow: hidden;
  color: #303036;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-view-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: var(--ios-blue);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 620px) {
  .day-page-hero { min-height: 360px; }
  .day-page-content { min-height: calc(100svh - 360px); }
  .day-view-agenda-item {
    grid-template-columns: 50px 22px minmax(0, 1fr);
    gap: 8px;
    padding: 15px 10px;
  }
  .day-view-agenda-item[data-has-photo="false"] { grid-template-columns: 50px 22px minmax(0, 1fr); }
  .day-view-place-photo {
    grid-column: 3;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 4px;
  }
  .day-view-agenda-copy strong { font-size: 16px; }
  .day-view-agenda-description { font-size: 13px; line-height: 1.45; }
  .day-view-map { height: 250px; }
}

.day-sheet-scrim {
  position: fixed;
  z-index: 90;
  inset: 0;
  border: 0;
  background: rgba(20,20,24,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.day-edit-sheet {
  position: fixed;
  z-index: 91;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(100svh - max(18px, env(safe-area-inset-top)));
  overflow: auto;
  padding: 13px 14px calc(26px + env(safe-area-inset-bottom));
  border-radius: 36px 36px 0 0;
  color: var(--text);
  background: var(--sheet);
  box-shadow: 0 -20px 52px rgba(0,0,0,.2);
  visibility: hidden;
  transform: translateY(105%);
  transition: transform .46s cubic-bezier(.22,.8,.25,1), visibility 0s linear .46s;
  overscroll-behavior: contain;
}
body[data-day-sheet="open"] { overflow: hidden; }
body[data-day-sheet="open"] .day-sheet-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
body[data-day-sheet="open"] .day-edit-sheet { visibility: visible; transform: translateY(0); transition-delay: 0s; }
.day-edit-heading { min-width: 0; text-align: center; }
.day-edit-heading h2 { margin: 0; font-size: 20px; }
.day-edit-heading span { display: block; margin-top: 2px; color: var(--secondary); font-size: 11px; font-weight: 600; }
.day-locations-editor { padding-left: 16px; }
.day-location-row {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 38px;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.day-location-photo {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  color: var(--ios-blue);
  background: #e5e5ea;
  cursor: pointer;
  font-size: 25px;
}
.day-location-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-location-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.day-location-search { min-width: 0; padding: 9px 0; }
.day-location-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.day-location-search-line > input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 600;
}
.day-location-search-button {
  min-width: 66px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ios-blue);
  background: rgba(0,122,255,.1);
  font-size: 13px;
  font-weight: 700;
}
.day-location-search-button:disabled { opacity: .55; }
.day-location-search-status {
  display: block;
  min-height: 15px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.day-location-search-status[data-kind="error"] { color: var(--ios-red); }
.day-location-search-status[data-kind="selected"] { color: #3a7554; }
.day-location-results {
  margin: 7px 0 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246,246,248,.88);
}
.day-location-result {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
}
.day-location-result:last-child { border-bottom: 0; }
.day-location-result strong,
.day-location-result span { display: block; }
.day-location-result strong { font-size: 13px; }
.day-location-result span { margin-top: 2px; color: var(--secondary); font-size: 10px; line-height: 1.3; }
.map-attribution { margin: 5px 14px 0; color: #8e8e93; font-size: 10px; }
.map-attribution a { color: inherit; }
.place-search-scrim {
  position: fixed;
  z-index: 92;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity .3s ease-in-out, visibility 0s linear .3s;
}
.place-search-sheet {
  position: fixed;
  z-index: 93;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: min(78svh, 720px);
  max-height: calc(100svh - max(18px, env(safe-area-inset-top)));
  overflow: auto;
  padding: 13px 14px calc(26px + env(safe-area-inset-bottom));
  border-radius: 36px 36px 0 0;
  color: var(--text);
  background: var(--sheet);
  box-shadow: 0 -22px 58px rgba(0,0,0,.22);
  visibility: hidden;
  transform: translateY(105%);
  transition: transform .3s ease-in-out, visibility 0s linear .3s;
  overscroll-behavior: contain;
}
body[data-place-search="open"] { overflow: hidden; }
body[data-place-search="open"] .place-search-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
body[data-place-search="open"] .place-search-sheet { visibility: visible; transform: translateY(0); transition-delay: 0s; }
.place-search-header { top: -13px; }
.place-search-field {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 660px);
  min-height: 56px;
  margin: 4px auto 0;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}
.place-search-field > span {
  position: relative;
  width: 18px;
  height: 18px;
  border: 3px solid var(--text);
  border-radius: 50%;
}
.place-search-field > span::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  content: '';
  transform: rotate(45deg);
}
.place-search-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 600;
}
.place-search-field button {
  min-width: 64px;
  height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 12px;
  color: var(--ios-blue);
  background: rgba(0,122,255,.1);
  font-size: 13px;
  font-weight: 700;
}
.place-search-field button:disabled { opacity: .5; }
.place-search-message { width: min(calc(100% - 28px), 632px); min-height: 18px; margin: 9px auto 4px; color: var(--secondary); font-size: 12px; }
.place-search-message[data-kind="error"] { color: var(--ios-red); }
.place-search-results {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  list-style: none;
}
.place-search-result {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  width: calc(100% - 16px);
  min-height: 72px;
  margin-left: 16px;
  padding: 10px 14px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
}
.place-search-results li:last-child .place-search-result { border-bottom: 0; }
.place-search-result-marker { width: 22px; height: 22px; border: 2px solid #c7c7cc; border-radius: 50%; }
.place-search-result[aria-pressed="true"] .place-search-result-marker { border: 7px solid var(--ios-blue); }
.place-search-result strong,
.place-search-result small { display: block; }
.place-search-result strong { font-size: 15px; line-height: 1.25; }
.place-search-result small { margin-top: 4px; color: var(--secondary); font-size: 11px; line-height: 1.35; }
.place-search-attribution { width: min(calc(100% - 28px), 632px); margin: 10px auto 0; }
.place-photo-section { width: min(100%, 660px); margin: 20px auto 0; }
.place-photo-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 14px 8px; }
.place-photo-heading h3 { margin: 0; font-size: 15px; }
.place-photo-heading span { color: var(--secondary); font-size: 11px; font-weight: 600; }
.place-photo-section .place-search-message { width: auto; margin-inline: 14px; }
.place-photo-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.place-photo-option {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 17px;
  background: #d9d9de;
}
.place-photo-option[aria-pressed="true"] { border-color: var(--ios-blue); box-shadow: 0 0 0 2px var(--surface); }
.place-photo-option img { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-photo-option span { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 7px 6px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.68)); font-size: 9px; font-weight: 700; text-align: left; }
.trip-day-photo-credit { position: absolute; z-index: 2; right: 10px; bottom: 8px; padding: 4px 7px; border-radius: 8px; color: white; background: rgba(0,0,0,.45); font-size: 8px; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); }
.day-agenda-editor { padding-left: 16px; }
.day-agenda-row {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) 38px;
  gap: 6px 10px;
  align-items: center;
  min-height: 88px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.day-agenda-row input {
  width: 100%;
  min-width: 0;
  height: 55px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 600;
}
.day-agenda-row input[type="time"] { color: var(--ios-blue); }
.day-activity-location {
  grid-column: 2 / 4;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 28px 0 0;
  border: 0;
  outline: 0;
  color: var(--secondary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.day-notes-input {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 16px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  line-height: 1.4;
}

.scrim {
  position: fixed;
  z-index: 20;
  inset: 0;
  border: 0;
  background: rgba(25, 25, 28, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
  backdrop-filter: blur(0);
}

.profile-sheet { z-index: 22; }
.profile-photo-section { display: flex; width: min(100%, 660px); margin: 12px auto 28px; flex-direction: column; align-items: center; }
.profile-photo-section > strong { margin-top: 11px; font-size: 21px; }
.profile-photo-section > span { margin-top: 3px; color: var(--secondary); font-size: 13px; }
.profile-photo-editor { position: relative; display: block; width: 112px; height: 112px; cursor: pointer; }
.profile-photo-editor img { width: 100%; height: 100%; border: 3px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.profile-photo-editor span { position: absolute; right: -10px; bottom: -2px; padding: 6px 9px; border-radius: 999px; color: white; background: var(--ios-blue); font-size: 11px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,122,255,.3); }
.profile-photo-editor input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-sheet .form-row label,
.profile-sheet .form-row > span { font-weight: 700; }
.profile-sheet .form-row input,
.profile-sheet .form-row output {
  color: #77746f;
  opacity: .72;
  font-weight: 700;
}
.profile-sheet .form-row input[type="date"] {
  padding-right: 16px;
  text-align: right;
}
.profile-sheet .form-row input[type="date"]::-webkit-date-and-time-value {
  width: 100%;
  margin: 0;
  text-align: right;
}
.static-row output { padding-right: 16px; text-align: right; }
.account-actions { margin-top: 12px; }
.account-row { width: 100%; min-height: 56px; padding: 0 16px; border: 0; color: var(--ios-blue); background: transparent; text-align: center; }
.account-row.destructive { color: var(--ios-red); }
.danger-section { margin-top: 34px; }

.new-trip-sheet {
  position: fixed;
  z-index: 21;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(100svh - max(18px, env(safe-area-inset-top)));
  overflow: auto;
  padding: 13px 14px calc(26px + env(safe-area-inset-bottom));
  border-radius: 36px 36px 0 0;
  background: var(--sheet);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .15);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .46s cubic-bezier(.22,.8,.25,1), visibility 0s linear .46s;
  overscroll-behavior: contain;
}
body[data-trip-page="open"] .scrim { z-index: 80; }
body[data-trip-page="open"] #home_new_trip { z-index: 81; }

body:not([data-active-sheet="none"]) { overflow: hidden; }
body:not([data-active-sheet="none"]) .scrim { opacity: 1; pointer-events: auto; backdrop-filter: blur(4px); }
body[data-active-sheet="new-trip"] #home_new_trip,
body[data-active-sheet="profile"] #profile-sheet { transform: translateY(0); visibility: visible; transition-delay: 0s; }

.sheet-header {
  position: sticky;
  z-index: 2;
  top: -13px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  padding: 8px 0 16px;
  background: rgba(242, 242, 247, .9);
  backdrop-filter: blur(24px);
}
.sheet-header h2 { margin: 0; text-align: center; font-size: 20px; }
.sheet-control { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: rgba(255,255,255,.65); font-size: 34px; line-height: 1; box-shadow: 0 5px 15px rgba(0,0,0,.06); }
.sheet-control.confirm { color: var(--ios-blue); font-size: 31px; font-weight: 700; }
.sheet-control:disabled { opacity: .4; }
.sheet-control.confirm[data-loading="true"] { opacity: 1; }
.confirm-spinner { display: none; width: 19px; height: 19px; border: 2.5px solid rgba(0,122,255,.24); border-top-color: var(--ios-blue); border-radius: 50%; animation: confirm-spin .75s linear infinite; }
.sheet-control.confirm[data-loading="true"] .confirm-check { display: none; }
.sheet-control.confirm[data-loading="true"] .confirm-spinner { display: block; margin: auto; }
@keyframes confirm-spin { to { transform: rotate(1turn); } }
.profile-save-message { width: min(calc(100% - 28px), 632px); min-height: 18px; margin: -6px auto 8px; padding: 8px 12px; border-radius: 12px; color: var(--secondary); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; text-align: center; }
.profile-save-message:empty { padding-block: 0; }
.profile-save-message[data-kind="error"] { color: #9f1c18; background: rgba(255,59,48,.1); }

.form-section { margin: 18px auto 0; width: min(100%, 660px); }
.form-section > h3 { margin: 0 14px 8px; color: #8e8e93; font-size: 15px; }
.form-group { overflow: hidden; border-radius: 22px; background: var(--surface); }
.form-row {
  display: grid;
  grid-template-columns: minmax(105px, 38%) 1fr;
  align-items: center;
  min-height: 56px;
  margin-left: 16px;
  border-bottom: 1px solid var(--line);
}
.form-row:last-child { border-bottom: 0; }
.form-row label { padding-right: 12px; }
.form-row input, .form-row select {
  width: 100%;
  min-width: 0;
  height: 55px;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  color: var(--secondary);
  background: transparent;
  text-align: right;
}
.form-row input:focus, .form-row select:focus { color: var(--text); }
.form-row input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.upload-row { grid-template-columns: 1fr auto; min-height: 76px; cursor: pointer; }
.upload-copy small { display: block; margin-top: 3px; color: var(--secondary); }
.upload-preview { width: 58px; height: 58px; margin-right: 10px; overflow: hidden; border-radius: 14px; background: #e5e5ea; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview[data-has-image="false"] img { display: none; }
.upload-preview[data-has-image="true"] .upload-placeholder { display: none; }
.upload-placeholder { display: grid; height: 100%; place-items: center; color: var(--ios-blue); font-size: 25px; }
.trip-color-group { padding: 15px; }
.trip-color-palette { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.trip-color-option,
.trip-color-custom {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0;
  padding: 0;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
  appearance: none;
  -webkit-appearance: none;
}
.trip-color-option[aria-pressed="true"],
.trip-color-custom[data-selected="true"] {
  box-shadow: 0 0 0 3px var(--ios-blue);
}
.trip-color-custom { display: block; overflow: hidden; cursor: pointer; }
.trip-color-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.trip-color-custom span { display: block; width: 100%; height: 100%; border-radius: inherit; background: conic-gradient(#f44, #fc0, #3c6, #18f, #a4e, #f44); }

.new-trip-passenger-list { padding-left: 16px; }
.new-trip-passenger-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  gap: 11px;
  align-items: center;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}
.new-trip-passenger-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: white;
  background: #6385a0;
  box-shadow: 0 0 0 2px white, 0 3px 10px rgba(0,0,0,.12);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.new-trip-passenger-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.new-trip-passenger-avatar input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.new-trip-passenger-fields { min-width: 0; }
.new-trip-passenger-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
}
.new-trip-passenger-field + .new-trip-passenger-field { border-top: 1px solid var(--line); }
.new-trip-passenger-field > span { font-size: 13px; font-weight: 700; }
.new-trip-passenger-field input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--secondary);
  background: transparent;
  text-align: right;
  font-weight: 600;
}
.new-trip-passenger-field input[type="date"]::-webkit-date-and-time-value {
  width: 100%;
  margin: 0;
  text-align: right;
}
.new-trip-passenger-remove {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--secondary);
  background: transparent;
  font-size: 24px;
}
.new-trip-passenger-session-mark { color: var(--ios-blue); text-align: center; font-size: 21px; font-weight: 700; }
.add-trip-passenger {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  color: var(--ios-blue);
  background: transparent;
  text-align: left;
  font-weight: 600;
}
.add-trip-passenger span { margin-right: 8px; font-size: 23px; vertical-align: -1px; }

.form-note, .form-message { margin: 8px 14px 0; color: #8e8e93; font-size: 13px; line-height: 1.35; }
.form-message { min-height: 18px; color: var(--ios-red); }

.auth { display: grid; min-height: 100svh; padding: 28px; place-items: center; background: var(--page); }
.auth-card { width: min(100%, 420px); padding: 24px; border-radius: 28px; background: white; }
.auth-card h1 { margin-top: 0; }
.auth-card input { width: 100%; height: 50px; margin-bottom: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; }
.auth-card button { width: 100%; height: 50px; border: 0; border-radius: 13px; color: white; background: var(--ios-blue); font-weight: 600; }

@media (min-width: 720px) {
  .trip-list { grid-template-columns: repeat(2, 1fr); }
  .trip-card { min-height: 390px; }
}

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