: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 {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--page);
}

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

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

#app { min-height: 100dvh; }

.app-splash {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  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-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 22px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.96);
  font-size: 13px;
  font-weight: 650;
  text-shadow: 0 2px 10px rgba(17,83,130,.22);
}
.splash-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(255,255,255,.36);
  border-top-color: white;
  border-radius: 50%;
  animation: splash-spin .8s linear infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
.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: none;
  transition-delay: 0s;
}

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

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

.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;
}
.profile-with-integration { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }

.header-buttons { display: flex; align-items: center; gap: 10px; }
.chatgpt-header-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-inline: 13px;
  white-space: nowrap;
}
.chatgpt-header-button img { display: block; width: 20px; height: 20px; }
.home[data-chatgpt-connected="true"] .chatgpt-header-button {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 2px;
  border: 1.5px solid var(--page);
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 9px rgba(0,0,0,.18);
}
.home[data-chatgpt-connected="true"] .chatgpt-header-button img { width: 17px; height: 17px; }
.home[data-chatgpt-connected="true"] .chatgpt-header-button span { display: none; }
.home[data-chatgpt-connected="true"] .profile-with-integration { flex: 0 0 52px; }

.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 { display: block; }
.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; }
.profile-button [hidden], .passenger-photo [hidden] { display: none !important; }

.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;
}
.header-actions .glass-button {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 390px) {
  .chatgpt-header-button { padding-inline: 10px; gap: 5px; }
  .profile-with-integration { gap: 8px; }
  .chatgpt-header-button img { width: 17px; height: 17px; }
  .header-buttons { gap: 7px; }
  .header-buttons .glass-button { padding-inline: 15px; }
}

.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 4px; color: var(--secondary); font-size: 11px; opacity: .8; }
.sync-status {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  opacity: .82;
}
.sync-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.sync-status[data-kind="pending"] { color: #9a6a00; }
.sync-status[data-kind="offline"] { color: #6e6e73; }
.sync-status[data-kind="synced"] { color: #2c7a3f; }
.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-section { min-width: 0; margin-top: 18px; }
.trip-section:first-child { margin-top: 0; }
.trip-section-title { margin: 0 2px 6px; }
.trip-section-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
}
.trip-section-toggle:focus-visible { border-radius: 8px; outline: 2px solid var(--ios-blue); outline-offset: 3px; }
.trip-section-count {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #0066d6;
  background: rgba(0, 122, 255, .1);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}
.trip-section-divider {
  height: 1px;
  flex: 1;
  background: rgba(60,60,67,.18);
}
.trip-section-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(225deg);
  transition: transform .38s ease;
}
.trip-section[data-collapsed="true"] .trip-section-chevron { transform: rotate(45deg); }
.trip-section-content {
  display: grid;
  grid-template-rows: 1fr;
  margin-inline: -18px;
  opacity: 1;
  transition: grid-template-rows .42s cubic-bezier(.2,.7,.2,1), opacity .28s ease;
}
.trip-section[data-collapsed="true"] .trip-section-content {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.trip-section-clip { min-height: 0; overflow: hidden; }
.trip-section-cards {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 4px 18px 58px;
  list-style: none;
}

.trip-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 5px solid var(--card-accent, #4775d1);
  border-radius: 30px;
  color: white;
  background: linear-gradient(160deg, #7dc3e9 0%, #b9dded 54%, #dfc59c 100%) 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-create-message { width: min(100%, 760px); margin: 12px auto; color: #a32832; font-weight: 600; text-align: center; }
.trip-create-message:empty { 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: linear-gradient(160deg, #7dc3e9 0%, #b9dded 54%, #dfc59c 100%) 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:has(.trip-page-date-editor:not([hidden])) { min-height: 480px; transition: min-height .3s ease; }
.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-nav-actions { display: flex; gap: 10px; pointer-events: none; }
.trip-page-nav-actions > button { pointer-events: auto; }
.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 svg, .day-page-add svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trip-page-share svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trip-page-pdf svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trip-page-share[hidden] { display: none; }
.trip-pdf-dialog { position: fixed; top: auto; bottom: 0; width: min(100%, 540px); max-width: none; margin: 0 auto; padding: 26px 24px max(26px, env(safe-area-inset-bottom)); border: 0; border-radius: 30px 30px 0 0; background: #f5f5f9; color: #101c2c; box-shadow: 0 -14px 48px rgba(2,16,32,.25); font: inherit; }
.trip-pdf-dialog::backdrop { background: rgba(8,20,40,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trip-pdf-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trip-pdf-dialog-header h2 { margin: 0; font-size: 23px; }
.trip-pdf-dialog-header button { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #d8dbe1; border-radius: 50%; background: white; color: #152238; font-size: 28px; line-height: 1; }
.trip-pdf-dialog p { margin: 20px 0 0; color: #555e6c; line-height: 1.45; }
.trip-pdf-actions { display: grid; gap: 10px; margin-top: 24px; }
.trip-pdf-actions[hidden], .trip-pdf-actions button[hidden] { display: none; }
.trip-pdf-actions button { min-height: 50px; padding: 10px 18px; border: 0; border-radius: 14px; background: #087aff; color: white; font: inherit; font-weight: 700; }
.trip-pdf-actions button + button { background: white; color: #087aff; border: 1px solid #d1d8e2; }
.trip-page-cover-control svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trip-page-cover-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.trip-page-cover-inline { position: relative; display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(20,20,24,.2); cursor: pointer; }
.trip-page-cover-inline svg { width: 29px; height: 29px; stroke-width: 2.2; }
.trip-page-cover-control:focus-within { outline: 3px solid rgba(255,255,255,.65); outline-offset: 3px; }
.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-inline-title, .trip-page-duration, .trip-page-dates-button { display: block; max-width: 100%; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; text-shadow: inherit; cursor: pointer; }
.trip-page-inline-title { line-height: inherit; letter-spacing: inherit; overflow-wrap: anywhere; }
.trip-page-inline-title[hidden] { display: none; }
.trip-page-title-input { width: 100%; padding: 0 0 3px; border: 0; border-bottom: 2px solid rgba(255,255,255,.8); border-radius: 0; outline: none; color: white; background: transparent; font: inherit; line-height: 1; letter-spacing: inherit; text-shadow: inherit; }
.trip-page-title-input[hidden] { display: none; }
.trip-page-duration { margin: 9px 0 3px; font-size: clamp(22px, 6vw, 30px); font-weight: 750; line-height: 1.1; }
.trip-page-dates-button { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.trip-page-date-editor { position: absolute; z-index: 4; bottom: calc(100% + 12px); left: 0; display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 11px; width: min(100%, 365px); padding: 17px; border: 1px solid rgba(255,255,255,.65); border-radius: 21px; background: rgba(27,38,51,.86); box-shadow: 0 14px 32px rgba(0,0,0,.3); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); text-shadow: none; }
.trip-page-date-editor[hidden] { display: none; }
.trip-page-date-editor label { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.trip-page-date-editor input { width: 100%; min-width: 0; height: 42px; padding: 0 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #172331; background: white; font-size: 15px; }
.trip-page-date-editor button { grid-column: 1 / -1; justify-self: end; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.2); font: inherit; font-size: 14px; }
.trip-page-hero-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trip-page-passengers { flex: 0 1 auto; min-width: 0; min-height: 42px; padding: 0; border: 0; color: inherit; background: transparent; text-shadow: inherit; cursor: pointer; }
@media (max-width: 390px) { .trip-page-passengers { flex-wrap: wrap; } .trip-page-passengers .passenger-count { flex-basis: 100%; margin: 3px 0 0; text-align: left; } }
.trip-page-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: auto; }
.trip-page-color-control { position: relative; display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 2px solid white; border-radius: 50%; background: var(--trip-control-color, #4775d1); box-shadow: 0 2px 9px rgba(0,0,0,.3); cursor: pointer; }
.trip-page-color-control input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.trip-page-color-control:focus-within { outline: 3px solid rgba(255,255,255,.65); outline-offset: 3px; }
.trip-page-save-status { display: block; min-height: 0; margin-top: 8px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.trip-page-save-status:empty { display: none; }
.trip-page-save-status[data-kind="error"] { color: #fff3bb; }
.trip-passenger-sheet { z-index: 81; }
.trip-passenger-message { min-height: 16px; margin: 0 8px 12px; color: #666; font-size: 13px; }
.trip-passenger-message[data-kind="error"] { color: #b7312e; }
.trip-passenger-self { display: flex; align-items: center; gap: 12px; min-height: 66px; margin: 0 0 14px; padding: 7px 12px; border-radius: 17px; background: white; }
.trip-passenger-self[hidden] { display: none; }
.trip-passenger-self img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.trip-passenger-self span:nth-child(2) { display: grid; flex: 1; gap: 2px; }
.trip-passenger-self strong { color: var(--text); font-size: 15px; }
.trip-passenger-self small { color: var(--secondary); font-size: 12px; }
.trip-passenger-self > span:last-child { color: #34c759; font-size: 19px; font-weight: 700; }
.trip-page-content {
  width: min(100%, 796px);
  min-height: calc(100svh - 390px);
  margin: 0 auto;
  padding: 28px 18px calc(142px + env(safe-area-inset-bottom));
}
.trip-page-content[hidden] { display: none !important; }
.trip-tabs { position: fixed; z-index: 61; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(calc(100% - 32px), 480px); min-height: 76px; padding: 5px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(248,250,253,.68); box-shadow: 0 13px 34px rgba(20,30,45,.23), inset 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(30px) saturate(185%); -webkit-backdrop-filter: blur(30px) saturate(185%); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 110%); transition: opacity .27s ease, transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s linear .38s; }
body[data-trip-page="open"][data-day-page="closed"][data-budget-page="closed"] .trip-tabs { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.trip-tab-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: rgba(221,227,233,.88); box-shadow: inset 0 1px 1px rgba(255,255,255,.85); transform: translateX(calc(var(--active-index, 0) * 100%)); transition: transform .44s cubic-bezier(.22,1.22,.36,1); pointer-events: none; }
.trip-tab { position: relative; z-index: 1; display: flex; min-width: 0; min-height: 64px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 999px; color: #233347; background: transparent; font-size: clamp(11px, 3vw, 13px); font-weight: 650; cursor: pointer; transition: color .28s ease, transform .25s ease; }
.trip-tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trip-tab[aria-selected="true"] { color: #087afa; }
.trip-tab:active { transform: scale(.94); }
.trip-tab:focus-visible { outline: 2px solid #087afa; outline-offset: -3px; }
.trip-page-content[data-enter="next"] { animation: trip-panel-next .28s ease; }
.trip-page-content[data-enter="previous"] { animation: trip-panel-previous .28s ease; }
@keyframes trip-panel-next { from { opacity: .4; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes trip-panel-previous { from { opacity: .4; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
.trip-detail-panel { color: #17253a; }
.trip-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; color: white; }
.trip-panel-heading h2 { margin: 0; font-size: clamp(27px, 7vw, 36px); letter-spacing: -.04em; }
.trip-panel-add, .trip-files-pick { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #0b65c9; background: white; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.trip-panel-status { margin: 0 0 12px; color: white; font-size: 13px; }
.trip-panel-status:empty { display: none; }
.trip-panel-status[data-kind="error"] { color: #fff0b1; }
.budget-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.budget-summary-card { display: grid; gap: 4px; padding: 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(255,255,255,.93); }
.budget-summary-card small { color: #647187; font-size: 12px; font-weight: 650; }
.budget-summary-card strong { color: #16243c; font-size: clamp(18px, 5vw, 23px); line-height: 1.1; }
.budget-list { display: grid; gap: 20px; }
.budget-group h3 { margin: 0 0 10px 4px; color: white; font-size: 18px; }
.budget-group-list { overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 10px 25px rgba(0,0,0,.09); }
.budget-item { display: flex; align-items: stretch; width: 100%; min-height: 72px; border: 0; border-radius: 0; color: #15243b; background: transparent; }
.budget-item:not(:last-child) { border-bottom: 1px solid #e3e3e6; }
.budget-item-check { display: grid; flex: 0 0 58px; width: 58px; min-height: 58px; margin-left: 3px; padding: 9px; place-items: center; align-self: center; border: 0; color: #a0a8b4; background: transparent; }
button.budget-item-check { cursor: pointer; touch-action: manipulation; }
button.budget-item-check:focus-visible { outline: 2px solid #087afa; outline-offset: -3px; border-radius: 50%; }
.budget-item-check-circle { display: grid; width: 40px; height: 40px; place-items: center; border: 2.5px solid currentColor; border-radius: 50%; background: white; transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.budget-item-check-circle svg { width: 25px; height: 25px; fill: none; stroke: white; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.budget-item-check[data-checked="true"] { color: #087afa; }
.budget-item-check[data-checked="true"] .budget-item-check-circle { background: #087afa; }
.budget-item-check[data-checked="true"] svg { opacity: 1; transform: scale(1); }
.budget-item-check[data-saving="true"] .budget-item-check-circle { box-shadow: 0 0 0 4px rgba(8,122,250,.12); }
.budget-item-detail { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 72px; padding: 13px 16px 13px 1px; border: 0; color: inherit; background: transparent; text-align: left; font: inherit; }
button.budget-item-detail { cursor: pointer; }
button.budget-item-detail:active { background: rgba(10,100,201,.07); }
button.budget-item-detail:focus-visible { outline: 2px solid #087afa; outline-offset: -2px; }
.budget-item-main { display: grid; flex: 1; min-width: 0; gap: 5px; }
.budget-item strong { overflow-wrap: anywhere; font-size: 16px; font-weight: 700; line-height: 1.28; }
.budget-item-meta { color: #657183; font-size: 13px; line-height: 1.2; }
.budget-item-meta[data-purchased="true"] { color: #268352; }
.budget-item-meta[data-error="true"] { color: #b93737; }
.budget-item-right { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; max-width: 50%; }
.budget-item-value { color: #18263c; font-size: clamp(17px, 4.7vw, 21px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; text-align: right; }
.budget-item-chevron { display: block; flex: 0 0 9px; width: 9px; height: 9px; border-top: 2px solid #a9adb5; border-right: 2px solid #a9adb5; transform: rotate(45deg); }
.budget-item-page { position: fixed; z-index: 65; inset: 0; overflow: auto; overscroll-behavior: contain; color: #15243b; background: #f2f2f7; visibility: hidden; pointer-events: none; transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
body[data-budget-page="open"] .budget-item-page { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.budget-item-page-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; gap: 14px; min-height: calc(62px + env(safe-area-inset-top)); padding: calc(env(safe-area-inset-top) + 8px) max(18px, calc((100vw - 660px) / 2)) 8px; background: rgba(242,242,247,.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.budget-item-page-header h2 { margin: 0; font-size: clamp(20px, 5vw, 25px); line-height: 1.15; }
.budget-item-page-back { display: grid; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #dedee3; border-radius: 50%; color: #087afa; background: white; box-shadow: 0 3px 10px rgba(0,0,0,.06); cursor: pointer; }
.budget-item-page-back svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.budget-editor { width: min(calc(100% - 36px), 624px); margin: 24px auto 0; padding: 18px; border-radius: 22px; background: white; }
.budget-editor form { display: grid; gap: 15px; }
.budget-editor label { display: grid; gap: 6px; color: #566378; font-size: 14px; font-weight: 650; }
.budget-editor input, .budget-editor select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #ccd3df; border-radius: 12px; color: #17253a; background: white; font: inherit; font-size: 16px; }
.trip-files-upload select { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #ccd3df; border-radius: 12px; color: #17253a; background: white; font: inherit; font-size: 15px; }
.budget-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.budget-editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.budget-editor-actions button { min-height: 46px; padding: 10px 16px; border: 0; border-radius: 12px; color: #1478df; background: #eaf3ff; font: inherit; font-weight: 700; cursor: pointer; }
.budget-editor-actions button[type="submit"] { color: white; background: #087afa; }
.budget-editor-actions button[data-action="delete"] { margin-left: auto; color: #b93737; background: #ffeded; }
.budget-item-message { width: min(calc(100% - 36px), 624px); margin: 12px auto calc(24px + env(safe-area-inset-bottom)); color: #b93737; font-size: 14px; }
.budget-item-message:empty { display: none; }
.trip-files-upload { display: grid; gap: 10px; margin: 0 0 18px; padding: 17px; border-radius: 20px; background: white; }
.trip-files-upload > label:first-child { color: #59677a; font-size: 13px; font-weight: 700; }
.trip-files-pick { position: relative; overflow: hidden; border-radius: 13px; color: white; background: #087afa; }
.trip-files-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.trip-files-pick[hidden] { display: none; }
.trip-files-pick[data-busy="true"] { opacity: .5; pointer-events: none; }
.trip-files-list { display: grid; gap: 15px; }
.trip-files-group { min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.65); border-radius: 24px; background: rgba(255,255,255,.95); }
.trip-files-general { padding: 0; border: 0; background: transparent; }
.trip-files-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trip-files-day { min-width: 0; padding: 0; border: 0; color: #16243c; background: none; font: inherit; font-size: 17px; font-weight: 750; text-align: left; cursor: pointer; }
.trip-files-group-count { flex: 0 0 auto; color: #6c7484; font-size: 12px; white-space: nowrap; }
.trip-files-general .trip-files-day { margin: 0; color: white; cursor: default; }
.trip-files-general .trip-files-group-count { color: rgba(255,255,255,.88); }
.trip-files-deck { position: relative; width: min(calc(100% - 32px), 310px); aspect-ratio: 3 / 4; margin: 18px auto 12px; touch-action: pan-y; }
.trip-files-deck:focus-visible { outline: 3px solid #087afa; outline-offset: 5px; border-radius: 22px; }
.trip-file-card { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; background: #e5f0fa; box-shadow: 0 12px 24px rgba(15,36,65,.22); opacity: 1; transform: translate3d(var(--stack-x, 0px), var(--stack-y, 0px), 0) scale(var(--stack-scale, 1)); transform-origin: center bottom; transition: transform .34s cubic-bezier(.2,.82,.22,1), opacity .27s ease; }
.trip-file-card[data-position="discarding"] { opacity: 0; transform: translate3d(var(--discard-x, -88%), -5%, 0) rotate(var(--discard-angle, -9deg)) scale(.92); pointer-events: none; }
.trip-file-card[data-position="hidden"] { opacity: 0; transform: translate3d(36px, 18px, 0) scale(.84); pointer-events: none; }
.trip-file-card[data-position="queued"] { pointer-events: none; }
.trip-file-card-link { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; color: #15243b; background: transparent; text-align: left; cursor: zoom-in; }
.trip-file-card-visual { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; color: #087afa; background: linear-gradient(145deg, #eaf4ff, #cbdff2); font-size: clamp(48px, 12vw, 70px); font-weight: 850; letter-spacing: -.06em; }
.trip-file-card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.trip-file-card-caption { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 3px; padding: 38px 16px 16px; color: white; background: linear-gradient(transparent, rgba(4,15,30,.83)); text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.trip-file-card-caption strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.trip-file-card-caption small { font-size: 12px; }
.trip-file-card[data-kind="document"] .trip-file-card-caption { color: #16243c; background: linear-gradient(transparent, rgba(231,241,251,.98)); text-shadow: none; }
.trip-files-deck-controls { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 22px; }
.trip-files-deck-controls[hidden] { display: none; }
.trip-files-deck-controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #d8e0eb; border-radius: 50%; color: #087afa; background: #f3f7fc; font-size: 30px; line-height: 1; cursor: pointer; }
.trip-files-deck-controls button:disabled { opacity: .35; cursor: default; }
.trip-files-deck-position { min-width: 52px; color: #536275; font-size: 13px; font-weight: 700; text-align: center; }
.trip-files-empty { padding: 22px; border-radius: 18px; color: #566378; background: white; }
body[data-trip-permission="viewer"] #budget_add, body[data-trip-permission="viewer"] .trip-files-upload, body[data-trip-permission="viewer"] .trip-file-viewer-delete { display: none !important; }
.trip-file-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: white; background: #07111f; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1); }
.trip-file-viewer[data-visible="true"] { opacity: 1; transform: translateY(0) scale(1); }
.trip-file-viewer::backdrop { background: rgba(3,9,18,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.trip-file-viewer-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100%; }
.trip-file-viewer-header { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: max(12px, env(safe-area-inset-top)) 16px 10px; }
.trip-file-viewer-header h2 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 650; text-align: center; }
.trip-file-viewer-header button, .trip-file-viewer-navigation button { display: grid; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: white; background: rgba(255,255,255,.13); font: inherit; font-size: 32px; cursor: pointer; }
.trip-file-viewer-header button:focus-visible, .trip-file-viewer-navigation button:focus-visible { outline: 2px solid #84c4ff; outline-offset: 3px; }
.trip-file-viewer-header .trip-file-viewer-delete { color: #ffb7b5; }
.trip-file-viewer-delete[hidden], .trip-file-viewer-navigation[hidden] { display: none; }
.trip-file-viewer-delete svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trip-file-viewer-media { display: grid; min-height: 0; place-items: center; overflow: auto; padding: 8px 16px; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.trip-file-viewer-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.trip-file-viewer-media iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; background: white; }
.trip-file-viewer-fallback { display: grid; justify-items: center; gap: 16px; max-width: 320px; color: #e8f0fa; text-align: center; }
.trip-file-viewer-fallback strong { font-size: 48px; }
.trip-file-viewer-fallback p { margin: 0; line-height: 1.4; }
.trip-file-viewer-fallback button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; color: white; background: #087afa; font: inherit; font-weight: 700; cursor: pointer; }
.trip-file-viewer-footer { padding: 8px 16px max(18px, env(safe-area-inset-bottom)); text-align: center; }
.trip-file-viewer-footer p { min-height: 20px; margin: 0 0 8px; color: #c9d8e6; font-size: 13px; }
.trip-file-viewer-navigation { display: flex; align-items: center; justify-content: center; gap: 20px; }
.trip-file-viewer-navigation button:disabled { opacity: .3; cursor: default; }
.trip-file-viewer-navigation span { min-width: 56px; font-size: 14px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .trip-file-viewer { transition: none; } }
.trip-day-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trip-day-card {
  position: relative;
  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-recently-moved="true"] {
  animation: moved-day-highlight 1.15s ease both;
}
@keyframes moved-day-highlight {
  0%, 100% { box-shadow: 0 16px 34px color-mix(in srgb, var(--trip-page-color) 58%, rgba(0,0,0,.2)); }
  35% { box-shadow: 0 0 0 5px rgba(255,255,255,.78), 0 20px 42px color-mix(in srgb, var(--trip-page-color) 76%, rgba(0,0,0,.28)); }
}

.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; }

.trip-day-card[data-restorable="true"] {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--trip-page-color) 34%, rgba(0,0,0,.16));
}
.trip-day-card[data-restorable="true"] .trip-day-card-button {
  opacity: .5;
  cursor: default;
}
.trip-day-card[data-restorable="true"]:active,
.trip-day-card[data-restorable="true"]:has(.trip-day-card-button:active) {
  transform: none;
}
.trip-day-recovery {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}
.trip-day-recovery span {
  flex: 1;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.trip-day-recover {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ios-blue);
  font-size: 13px;
  font-weight: 800;
}
.trip-day-recover:disabled { opacity: .45; }
.trip-day-remove {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #b42318;
  background: rgba(255,59,48,.1);
  font-size: 13px;
  font-weight: 800;
}
.trip-day-remove:disabled { opacity: .45; }
.trip-day-order-controls {
  position: absolute;
  z-index: 5;
  right: 13px;
  bottom: 13px;
  display: flex;
  gap: 6px;
}
.trip-day-order-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(118,118,128,.14);
  border-radius: 50%;
  color: #6e6e73;
  background: rgba(242,242,247,.9);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  appearance: none;
  -webkit-appearance: none;
}
.trip-day-order-button:active:not(:disabled) {
  transform: scale(.92);
  background: rgba(229,229,234,.96);
}
.trip-day-order-button:disabled {
  opacity: .28;
}

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

.day-page {
  position: fixed;
  z-index: 70;
  inset: 0;
  pointer-events: none;
  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;
  pointer-events: auto;
  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: 0 0 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-hero-copy {
  right: 110px;
}

.day-page-badge {
  transform: translateY(-2px);
}

.day-page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.day-inline-heading {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 7px;
  padding: 2px 5px 3px 0;
  border: 0;
  border-radius: 10px;
  color: white;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.045em;
  text-shadow: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.day-inline-heading:active {
  background: rgba(255,255,255,.08);
}
.day-inline-heading-input {
  display: block;
  width: min(100%, 680px);
  margin: 0 0 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 12px;
  outline: 0;
  color: white;
  background: rgba(20,20,24,.28);
  font: inherit;
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  text-shadow: inherit;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.day-hero-save-status {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  margin: 0 0 5px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.day-hero-save-status[data-state="saving"] {
  opacity: 1;
  background: #f4b942;
  animation: agenda-save-pulse .72s ease-in-out infinite alternate;
}
.day-hero-save-status[data-state="saved"] {
  opacity: 1;
  background: #34c759;
  transform: scale(1);
  animation: none;
}
.day-hero-save-status[data-state="error"] {
  opacity: 1;
  background: #ff3b30;
  transform: scale(1);
  animation: none;
}
.day-hero-save-status[data-state="idle"] {
  opacity: 0;
  transform: scale(.55);
  animation: none;
}
.day-hero-camera {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: calc(max(18px, env(safe-area-inset-top)) + 5rem);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--ios-blue);
  background: rgba(238,246,255,.76);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  cursor: pointer;
  line-height: 1;
}
.day-photo-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.day-hero-camera:active { transform: scale(.96); background: rgba(220,237,255,.98); }
.day-hero-camera[data-loading="true"] { opacity: .55; pointer-events: none; }
.day-hero-camera input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.day-hero-attachments {
  position: absolute;
  z-index: 3;
  top: calc(max(18px, env(safe-area-inset-top)) + 1rem);
  right: 22px;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: white;
  background: rgba(20,20,24,.26);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.day-hero-attachments svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-attachments-count { display: grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; border-radius: 50%; color: var(--ios-blue); background: white; font-size: 10px; }
.day-attachments-count[hidden] { display: none; }
.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-agenda-sticky-marker { display: block; height: 0; }
.day-page-add {
  position: sticky;
  z-index: 5;
  top: calc(max(18px, env(safe-area-inset-top)) + 1rem);
  float: right;
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ios-blue);
  background: rgba(205,230,255,.7);
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  transition: color .2s ease, background .2s ease, border-color .2s ease, border-radius .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}
.day-page-add[data-stuck="true"] {
  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);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.day-page-add:active { background: rgba(0,122,255,.14); }
.day-page-add[data-stuck="true"]:active { background: rgba(20,20,24,.4); }
.day-view-section:first-of-type h2 { padding-top: 11px; }
.day-view-section:first-of-type .day-view-agenda,
.day-view-section:first-of-type .day-view-empty { clear: both; }
.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-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.day-map-heading h2 { margin: 0; }
.day-map-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--ios-blue); background: rgba(0,122,255,.1); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.day-map-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-map-toggle:focus-visible { outline: 3px solid var(--ios-blue); outline-offset: 2px; }
.day-page[data-map-expanded="true"] { overflow: hidden; }
.day-map-section[data-expanded="true"] { position: fixed; z-index: 25; inset: 0; display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; margin: 0; padding: max(16px, calc(env(safe-area-inset-top) + 16px)) 12px max(16px, calc(env(safe-area-inset-bottom) + 16px)); overflow: hidden; background: #f2f2f7; }
.day-map-section[data-expanded="true"] .day-view-map { flex: 1 1 auto; min-height: 0; height: auto; }
.day-map-section[data-expanded="true"] .day-view-directions { flex: 0 1 auto; max-height: min(25svh, 200px); overflow-y: auto; overscroll-behavior: contain; }
.day-view-agenda {
  margin: 0;
  padding: 0;
  list-style: none;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}
.day-view-agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 104px;
  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: 64px minmax(0, 1fr) 38px; }
.day-view-agenda-item:last-child { border-bottom: 0; }
.day-inline-time {
  grid-column: 1;
  grid-row: 1;
  width: 58px;
  min-width: 58px;
  min-height: 34px;
  margin: -5px 0 0 -6px;
  padding: 5px 7px;
  border: 0;
  border-radius: 10px;
  color: var(--ios-blue);
  background: rgba(0,122,255,.06);
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.day-inline-time:active { background: rgba(0,122,255,.14); }
.day-inline-time-input {
  width: 76px;
  min-height: 36px;
  margin: -6px 0 0 -6px;
  padding: 4px 5px;
  border: 1px solid rgba(0,122,255,.35);
  border-radius: 10px;
  outline: 0;
  color: var(--ios-blue);
  background: rgba(0,122,255,.06);
  font-size: 14px;
  font-weight: 800;
}
.day-view-pin {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  width: 50px;
  height: 50px;
  margin: 7px 0 0 -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ios-blue);
  background: rgba(205,230,255,.65);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  appearance: none;
  -webkit-appearance: none;
}
.day-inline-location:active {
  background: rgba(0,122,255,.14);
}
.day-view-pin::before {
  position: absolute;
  top: 16px;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ios-blue);
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}
.day-view-pin::after {
  position: absolute;
  top: 21px;
  left: 22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ios-blue);
  content: "";
}
.day-inline-google-maps { display: grid; grid-column: 1; grid-row: 3; align-self: start; width: 44px; height: 44px; margin: 3px 0 0 -3px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.day-inline-google-maps img { display: block; width: 28px; height: 28px; object-fit: contain; }
.day-inline-google-maps:focus-visible { outline: 3px solid var(--ios-blue); outline-offset: 2px; }
.day-view-agenda-item[data-has-google-maps="true"] .day-inline-save-status { grid-row: 4; }
.day-view-agenda-item[data-has-google-maps="true"] .day-view-agenda-copy,
.day-view-agenda-item[data-has-google-maps="true"] .day-view-photo-shell { grid-row-end: span 4; }

.day-inline-save-status {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
  width: 11px;
  height: 11px;
  margin: 10px 6px 0 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.day-inline-save-status[data-state="saving"] {
  opacity: 1;
  background: #f4b942;
  animation: agenda-save-pulse .72s ease-in-out infinite alternate;
}
.day-inline-save-status[data-state="saved"] {
  opacity: 1;
  background: #34c759;
  transform: scale(1);
  animation: none;
}
.day-inline-save-status[data-state="error"] {
  opacity: 1;
  background: #ff3b30;
  transform: scale(1);
  animation: none;
}
.day-inline-save-status[data-state="idle"] {
  opacity: 0;
  transform: scale(.55);
  animation: none;
}
@keyframes agenda-save-pulse {
  from { transform: scale(.72); }
  to { transform: scale(1.18); }
}
.day-view-agenda-copy {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}
.day-inline-title,
.day-inline-place-name,
.day-inline-description {
  display: block;
  width: 100%;
  margin: 0;
  padding: 3px 5px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.day-inline-title {
  margin: -3px 0 0 -5px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.22;
}
.day-inline-place-name {
  margin: 2px 0 0 -5px;
  color: #6f6f75;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.day-inline-description {
  margin: 7px 0 0 -5px;
  color: #3f3f45;
  font-size: 14px;
  line-height: 1.48;
}
.day-inline-description[data-empty="true"] {
  color: #8e8e93;
  font-size: 12px;
  font-weight: 600;
}
.day-inline-title:active,
.day-inline-place-name:active,
.day-inline-description:active {
  background: rgba(118,118,128,.08);
}
.day-inline-text-input,
.day-inline-textarea {
  display: block;
  width: 100%;
  margin: -2px 0 3px -2px;
  padding: 7px 8px;
  border: 1px solid rgba(0,122,255,.28);
  border-radius: 10px;
  outline: 0;
  color: #0b1628;
  background: rgba(0,122,255,.045);
  font: inherit;
}
.day-inline-text-input {
  font-size: 17px;
  font-weight: 750;
}
.day-inline-textarea {
  min-height: 74px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.45;
}
.day-view-photo-shell {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 3;
  width: 104px;
  height: 92px;
}
.day-view-place-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #e5e5ea center / cover no-repeat;
}
.day-inline-camera {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--ios-blue);
  background: rgba(238,246,255,.76);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  cursor: pointer;
  line-height: 1;
}
.day-inline-camera .day-photo-icon {
  width: 18px;
  height: 18px;
}
.day-inline-camera:active { transform: scale(.96); background: rgba(220,237,255,.98); }
.day-inline-camera[data-loading="true"] { opacity: .5; pointer-events: none; }
.day-inline-camera-empty {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  right: auto;
  bottom: auto;
  align-self: start;
  margin-top: -5px;
  color: var(--ios-blue);
  background: rgba(0,122,255,.06);
  box-shadow: none;
}
.day-inline-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.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-map.leaflet-container {
  display: block;
  font-weight: 400;
}
.day-map-numbered-marker {
  width: 34px !important;
  height: 40px !important;
  overflow: visible !important;
  border: 0;
  background: transparent;
}
.day-map-numbered-marker > span {
  display: grid;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  color: white;
  background: var(--ios-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-45deg);
}
.day-map-numbered-marker b {
  font: inherit;
  line-height: 1;
  transform: rotate(45deg);
}
.day-map-numbered-marker i {
  position: absolute;
  right: -9px;
  bottom: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #243c69;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
  transform: rotate(45deg);
}
.day-view-map .leaflet-control-zoom {
  display: grid;
  gap: 5px;
  border: 0;
  box-shadow: none;
}
.day-view-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ios-blue);
  background: rgba(238,246,255,.76);
  line-height: 34px;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}
.day-view-directions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.day-view-map-pins {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-view-map-pins li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 16px;
  background: white;
}
.day-view-map-pins li[data-mapped="false"] { background: rgba(255,255,255,.68); }
.day-view-map-pins span {
  display: grid;
  flex: 0 0 22px;
  box-sizing: border-box;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-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 {
  display: block;
  color: #303036;
  font-size: 13px;
  line-height: 1.3;
}
.day-view-map-pins small { display: block; margin-top: 2px; color: var(--secondary); font-size: 11px; }
.day-view-map-pins button {
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--ios-blue);
  background: rgba(205,230,255,.72);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.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: 54px minmax(0, 1fr);
    gap: 8px;
    padding: 15px 10px;
  }
  .day-view-agenda-item[data-has-photo="false"] { grid-template-columns: 54px minmax(0, 1fr) 38px; }
  .day-inline-time {
    grid-column: 1;
    grid-row: 1;
    width: 50px;
    min-width: 50px;
    margin-left: -4px;
    padding-inline: 4px;
    font-size: 14px;
  }
  .day-inline-location {
    grid-column: 1;
    grid-row: 2;
    width: 50px;
    margin-left: -4px;
  }
  .day-inline-google-maps { margin-left: -1px; }
  .day-inline-save-status {
    grid-column: 1;
    grid-row: 3;
    margin: 9px 4px 0 0;
  }
  .day-view-pin::before { left: 17px; }
  .day-view-pin::after { left: 22px; }
  .day-inline-time-input { width: 70px; margin-left: -4px; }
  .day-view-agenda-copy {
    grid-column: 2 / -1;
    grid-row: 1 / span 2;
  }
  .day-view-photo-shell {
    grid-column: 2 / -1;
    grid-row: 3;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 5px;
  }
  .day-view-agenda-item[data-has-google-maps="true"] .day-view-agenda-copy { grid-row: 1 / span 2; }
  .day-view-agenda-item[data-has-google-maps="true"] .day-view-photo-shell { grid-row: 3; }
  .day-view-place-photo {
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .day-inline-camera { width: 38px; height: 38px; font-size: 18px; }
  .day-inline-camera-empty { grid-column: 3; grid-row: 1; }
  .day-inline-title { font-size: 16px; }
  .day-inline-description { font-size: 13px; line-height: 1.45; }
  .day-view-map { height: 250px; }
}

.day-attachments-scrim {
  position: fixed;
  z-index: 94;
  inset: 0;
  border: 0;
  background: rgba(20,20,24,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.day-attachments-sheet {
  position: fixed;
  z-index: 95;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(85svh - env(safe-area-inset-top));
  min-height: min(45svh, 330px);
  overflow: auto;
  padding: 13px 18px calc(28px + 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 .35s ease, visibility 0s linear .35s;
  overscroll-behavior: contain;
}
body[data-day-attachments="open"] { overflow: hidden; }
body[data-day-attachments="open"] .day-attachments-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
body[data-day-attachments="open"] .day-attachments-sheet { visibility: visible; transform: translateY(0); transition-delay: 0s; }
.day-attachments-header-spacer { width: 48px; }
.day-attachments-intro, .day-attachments-status { width: min(100%, 640px); margin: 8px auto 14px; color: var(--secondary); font-size: 13px; line-height: 1.4; }
.day-attachments-status { min-height: 18px; margin-top: 10px; }
.day-attachments-status[data-kind="error"] { color: var(--ios-red); }
.day-attachments-upload {
  display: grid;
  width: min(100%, 640px);
  min-height: 48px;
  margin: 0 auto;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--ios-blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.day-attachments-upload[data-busy="true"] { opacity: .55; pointer-events: none; }
.day-attachments-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.day-attachments-list { display: grid; width: min(100%, 640px); gap: 9px; margin: 0 auto; padding: 0; list-style: none; }
.day-attachment { min-height: 58px; border-radius: 16px; background: white; }
.day-attachment-open { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: inherit; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.day-attachment-preview { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 12px; color: var(--ios-blue); background: rgba(0,122,255,.09); font-size: 11px; font-weight: 800; }
.day-attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.day-attachment-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.day-attachment-name small { display: block; margin-top: 3px; color: var(--secondary); font-size: 11px; font-weight: 400; }
.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; }
.chatgpt-sheet { z-index: 23; }
.change-log-sheet { z-index: 24; }
.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"] {
  width: calc(100% - 18px);
  margin-right: 18px;
  padding-right: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: right;
}
.profile-sheet .form-row input[type="date"]::-webkit-date-and-time-value {
  width: auto;
  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 + .account-row { border-top: 1px solid var(--line); }
.account-row-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.account-row-detail span:last-child {
  color: #8e8e93;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.integration-row > span:first-child {
  display: grid;
  gap: 2px;
}
.integration-row strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.integration-row small {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
}
.chatgpt-integration-card {
  width: min(100%, 660px);
  margin: 6px auto 0;
  padding: 22px;
  border: 1px solid rgba(60,60,67,.12);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.chatgpt-integration-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #111;
  background: #f1f1f3;
  font-size: 26px;
}
.chatgpt-integration-mark img { width: 30px; height: 30px; }
.chatgpt-integration-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.chatgpt-integration-card p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}
.chatgpt-integration-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.chatgpt-integration-card li {
  position: relative;
  padding-left: 26px;
  color: #3c3c43;
  font-size: 13px;
  line-height: 1.4;
}
.chatgpt-integration-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #34c759;
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}
.chatgpt-connect-button,
.chatgpt-copy-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-weight: 750;
}
.chatgpt-connect-button {
  color: #fff;
  background: #111;
}
.chatgpt-copy-button {
  margin-top: 9px;
  color: var(--ios-blue);
  background: rgba(0,122,255,.08);
}
.chatgpt-connect-button:active,
.chatgpt-copy-button:active {
  transform: scale(.985);
}
.chatgpt-message {
  min-height: 18px;
  margin: 12px 2px 0 !important;
  color: var(--secondary) !important;
  font-size: 12px !important;
}
.chatgpt-endpoint {
  display: block;
  margin-top: 12px;
  padding: 10px 11px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  color: #626269;
  background: rgba(118,118,128,.08);
  font-size: 10px;
  line-height: 1.4;
}
.account-row.destructive { color: var(--ios-red); }
.danger-section { margin-top: 34px; }

.sheet-header-spacer {
  display: block;
  width: 48px;
  height: 48px;
}
.change-log-back {
  padding: 0 3px 3px 0;
  font-size: 39px;
}
.change-log-intro {
  width: min(100%, 660px);
  margin: 4px auto 16px;
  padding: 0 14px;
}
.change-log-intro p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
}
.change-log-list {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  list-style: none;
}
.change-log-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 64px;
  margin-left: 16px;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
}
.change-log-item:last-child { border-bottom: 0; }
.change-log-marker {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ios-blue);
}
.change-log-marker[data-action="delete"] { background: var(--ios-red); }
.change-log-marker[data-action="reorder"] { background: #af52de; }
.change-log-marker[data-action="create"] { background: #34c759; }
.change-log-copy {
  min-width: 0;
}
.change-log-copy strong,
.change-log-copy span {
  display: block;
}
.change-log-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
}
.change-log-copy span {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}
.change-log-message {
  min-height: 18px;
  margin-top: 8px !important;
  color: var(--secondary);
  font-size: 12px !important;
  font-weight: 600;
}
.change-log-snapshot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.change-log-snapshot-id,
.change-log-restore {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}
.change-log-snapshot-id {
  max-width: 170px;
  overflow: hidden;
  color: #6e6e73;
  background: rgba(118,118,128,.1);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.change-log-restore {
  color: var(--ios-blue);
  background: rgba(0,122,255,.09);
}
.change-log-restore:active:not(:disabled),
.change-log-snapshot-id:active {
  transform: scale(.96);
}
.change-log-restore:disabled {
  opacity: .4;
}
.change-log-marker[data-action="restore"],
.change-log-marker[data-action="checkpoint"] {
  background: #ff9f0a;
}
.change-log-empty {
  width: min(100%, 660px);
  margin: 28px auto;
  color: var(--secondary);
  text-align: center;
}
.change-log-empty[hidden] { display: none; }

.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[data-trip-page="open"] #trip_passenger_sheet { 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="trip-passengers"] #trip_passenger_sheet,
body[data-active-sheet="profile"] #profile-sheet,
body[data-active-sheet="chatgpt"] #chatgpt_sheet,
body[data-active-sheet="change-log"] #change_log_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;
  box-sizing: border-box;
  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; }
.profile-saved-passenger-list { padding-left: 16px; }
.profile-saved-passenger-list:empty { display: none; }
.profile-saved-passenger-row { min-height: 98px; }
.profile-saved-passenger-row .new-trip-passenger-field input[type="date"] {
  box-sizing: border-box;
  width: calc(100% - 12px);
  margin-right: 12px;
  padding-right: 0;
  appearance: none;
  -webkit-appearance: none;
}
.profile-add-saved-passenger { transition: background-color .2s ease; }
.profile-add-saved-passenger:active { background: rgba(0,122,255,.08); }

.saved-trip-passengers { padding: 13px 16px 5px; border-bottom: 1px solid var(--line); }
.saved-trip-passengers[hidden] { display: none; }
.saved-trip-heading { margin: 0 0 10px; color: var(--secondary); font-size: 13px; font-weight: 650; }
.saved-trip-passenger-list { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.saved-trip-passenger {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 43px;
  padding: 4px 12px 4px 5px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--primary); background: #f7f8fb; font: inherit; font-size: 14px; font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.saved-trip-passenger:active { transform: scale(.96); }
.saved-trip-passenger[aria-pressed="true"] { background: #e6f3ff; border-color: var(--ios-blue); color: var(--ios-blue); }
.saved-trip-passenger-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 50%; color: white; background: #6385a0; }
.saved-trip-passenger-avatar img { width: 100%; height: 100%; object-fit: cover; }
.saved-trip-passenger > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }
.new-trip-passenger-save { display: flex; align-items: center; gap: 5px; margin: 6px 0 9px; color: var(--secondary); font-size: 12px; }
.new-trip-passenger-save input { accent-color: var(--ios-blue); }
.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 {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #58baf1 0%, #8cddf3 42%, #c9f2ee 77%, #b6ece9 100%);
}
.auth::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle 145px at 82% 8%, rgba(255,250,214,.35), transparent 82%);
  content: "";
  pointer-events: none;
}
.auth::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(190px, 28svh, 340px);
  background: url("assets/auth-shore.svg") center bottom / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
.auth .splash-cloud { animation-duration: 18s; }
.auth .splash-cloud-one { animation-delay: -3s; }
.auth .splash-cloud-two { animation-delay: -9s; }
.auth .splash-cloud-three { top: 31%; animation-delay: -15s; }
.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  padding: 30px 26px 24px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 32px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 22px 68px rgba(11,84,125,.18), 0 2px 12px rgba(11,84,125,.08);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.auth-brand { display: flex; align-items: center; gap: 8px; }
.auth-brand h1 { margin: 0; font-size: clamp(34px, 9vw, 44px); line-height: 1.12; letter-spacing: -.055em; }
.auth-brand img { display: block; width: 84px; height: 53px; object-fit: contain; animation: auth-plane-float 3.8s ease-in-out infinite alternate; }
@keyframes auth-plane-float { to { transform: translateY(-5px) rotate(-2deg); } }
.auth-intro { margin: 13px 0 24px; color: #3c5266; font-size: 16px; line-height: 1.4; }
.signup-photo-picker { display: flex; align-items: center; gap: 13px; margin: -4px 0 17px; color: #006ed6; font-size: 15px; font-weight: 700; cursor: pointer; }
.signup-photo-picker small { display: block; margin-top: 3px; color: #597082; font-size: 12px; font-weight: 400; line-height: 1.25; }
.signup-photo-preview { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; overflow: hidden; border: 1px dashed #7caed1; border-radius: 50%; background: #e2f4fa; color: #007aff; font-size: 30px; font-weight: 400; }
.signup-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.signup-photo-preview img[hidden] { display: none; }
.signup-photo-picker:has(+ input:focus-visible) .signup-photo-preview { outline: 3px solid rgba(0,122,255,.4); outline-offset: 3px; }
.auth-form { max-height: 580px; opacity: 1; visibility: visible; transform: translateY(0); transition: max-height .38s ease, opacity .26s ease, transform .38s ease, visibility 0s; overflow: hidden; }
.auth-form[aria-hidden="true"] { max-height: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: max-height .38s ease, opacity .2s ease, transform .38s ease, visibility 0s linear .38s; }
.auth-form input:not([type="file"]) { display: block; width: 100%; height: 52px; margin: 0 0 11px; padding: 0 15px; border: 1px solid rgba(18,76,112,.18); border-radius: 14px; outline: 0; color: var(--text); background: rgba(255,255,255,.9); font-size: 16px; }
.auth-form input:not([type="file"]):focus { border-color: #168ce2; box-shadow: 0 0 0 3px rgba(0,122,255,.13); }
.auth-form .auth-submit { width: 100%; min-height: 53px; margin-top: 4px; border: 0; border-radius: 14px; color: white; background: #087df4; font: inherit; font-weight: 700; }
.auth-submit:disabled { opacity: .6; }
.auth-message { margin: 12px 0 0; color: #b7312e; font-size: 13px; line-height: 1.4; }
.auth-message:empty { display: none; }
.auth-message[data-kind="success"] { color: #176b52; }
.auth-switch { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(18,76,112,.12); color: #456176; font-size: 14px; text-align: center; }
.auth-switch button { padding: 5px 2px; border: 0; color: #006ed6; background: transparent; font: inherit; font-weight: 700; }
.auth-switch button:focus-visible, .auth-submit:focus-visible { outline: 3px solid rgba(0,122,255,.4); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 720px) {
  .trip-section-cards { grid-template-columns: repeat(2, minmax(0, 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; }
}

.trip-member-row{min-height:58px;padding:9px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(60,60,67,.18)}.trip-member-row>span:first-child{min-width:0;display:flex;flex-direction:column}.trip-member-row small,.trip-member-role{color:rgba(60,60,67,.62);font-size:14px}.trip-share-entry{display:flex;align-items:center;min-height:58px;padding-left:16px;gap:8px}.trip-share-entry input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;outline:none}.trip-share-entry button{align-self:stretch;border:0;background:transparent;color:#007aff;font:inherit;font-weight:600;padding:0 16px}.trip-share-entry button:disabled{opacity:.45}

/* Compartilhamento e permissões da viagem. */
.trip-page-share svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.profile-saved-passenger-row .new-trip-passenger-field input[type="date"]::-webkit-date-and-time-value { width: auto; }
.trip-share-scrim { position: fixed; z-index: 80; inset: 0; border: 0; background: rgba(20,20,24,.28); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .3s, visibility 0s linear .3s; }
body[data-active-sheet="trip-share"] .trip-share-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.trip-share-sheet { z-index: 82; }
body[data-active-sheet="trip-share"] #trip_share_sheet { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.trip-share-intro { max-width: 660px; margin: 12px auto 22px; color: var(--secondary); font-size: 14px; line-height: 1.45; }
.trip-share-form, .trip-share-list, .trip-share-status, .trip-share-list-title { width: min(100%, 660px); margin-inline: auto; }
.trip-share-form { display: grid; gap: 10px; }
.trip-share-form > label, .trip-share-permission legend, .trip-share-list-title { color: var(--secondary); font-size: 14px; font-weight: 700; }
.trip-share-form > input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; outline-color: var(--ios-blue); background: white; font: inherit; }
.trip-share-permission { display: flex; gap: 10px; margin: 8px 0 3px; padding: 0; border: 0; }
.trip-share-permission legend { margin-bottom: 10px; }
.trip-share-permission label { flex: 1; cursor: pointer; }
.trip-share-permission input { position: absolute; opacity: 0; }
.trip-share-permission span { display: grid; min-height: 48px; padding: 7px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: 13px; font-weight: 650; text-align: center; }
.trip-share-permission input:checked + span { border-color: var(--ios-blue); color: var(--ios-blue); background: #eaf3ff; }
.trip-share-permission input:focus-visible + span { outline: 3px solid var(--ios-blue); outline-offset: 2px; }
.trip-share-submit { min-height: 51px; border: 0; border-radius: 15px; color: white; background: var(--ios-blue); font: inherit; font-weight: 700; }
.trip-share-submit:disabled { opacity: .55; }
.trip-share-status { min-height: 20px; margin-block: 11px 20px; color: var(--secondary); font-size: 13px; }
.trip-share-status[data-kind="error"] { color: #ad2b2b; }
.trip-share-list-title { margin-block: 12px 8px; }
.trip-share-list { display: grid; gap: 7px; }
.trip-share-row { display: flex; align-items: center; gap: 12px; min-height: 59px; padding: 9px 13px; border-radius: 15px; background: white; }
.trip-share-row-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.trip-share-row-copy strong, .trip-share-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-share-row-copy small { color: var(--secondary); font-size: 11px; }
.trip-share-row-role { color: var(--secondary); font-size: 12px; white-space: nowrap; }
.trip-share-row-remove { border: 0; color: #c03b35; background: transparent; font-size: 20px; }
.trip-owner-avatar { display: inline-flex; flex: 0 0 23px; width: 23px; height: 23px; align-items: center; justify-content: center; overflow: hidden; margin-right: 5px; border: 2px solid white; border-radius: 50%; vertical-align: middle; color: white; background: var(--card-accent, #4775d1); font-size: 11px; }
.trip-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
body[data-trip-permission="viewer"] #trip_page_title, body[data-trip-permission="viewer"] #trip_page_duration, body[data-trip-permission="viewer"] #trip_page_dates, body[data-trip-permission="viewer"] #day_page_title { cursor: default; }
body[data-trip-permission="viewer"] .trip-page-color-control, body[data-trip-permission="viewer"] .trip-page-cover-inline, body[data-trip-permission="viewer"] #add_day_page_activity, body[data-trip-permission="viewer"] #day_page_camera, body[data-trip-permission="viewer"] .day-inline-camera, body[data-trip-permission="viewer"] .day-inline-camera-empty, body[data-trip-permission="viewer"] .trip-day-recovery button, body[data-trip-permission="viewer"] .day-attachments-upload { display: none !important; }
body[data-trip-permission="viewer"] .day-view-agenda-item button { pointer-events: none; }
body[data-trip-permission="viewer"] .day-view-agenda-item .day-inline-description[data-empty="true"] { display: none; }

/* Neon storage: Apple Watch-inspired rings for Bank and Files.
   No personal quota is assumed if the Data API only provides bytes used. */
.chatgpt-header-button[hidden],.legacy-chatgpt-profile[hidden],.home-usage-popover[hidden]{display:none!important}
.header-buttons{margin-left:auto;min-width:0;gap:8px}
.header-buttons #edit_trips_button{min-height:48px;padding-inline:13px;font-size:14px}
.home-usage-container{position:relative;flex:0 1 auto;min-width:0;isolation:isolate}
.home-usage-summary{display:flex;align-items:center;gap:8px;width:165px;min-height:60px;padding:6px 9px;border:1px solid rgba(60,60,67,.12);border-radius:19px;background:rgba(255,255,255,.92);color:var(--text);box-shadow:0 5px 20px rgba(25,46,65,.07);text-align:left;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.home-usage-summary:active{transform:scale(.96)}
.home-usage-summary:focus-visible{outline:2px solid var(--ios-blue);outline-offset:2px}
.home-quota-rings{display:block;overflow:visible;flex:0 0 auto}
.home-quota-rings--small{width:49px;height:49px}
.home-quota-track,.home-quota-progress{fill:none;stroke-width:11}
.home-quota-track{stroke:#e7edf5}
.home-quota-progress{stroke-linecap:round;transform:rotate(-90deg);transform-origin:60px 60px;stroke-dasharray:276.46;stroke-dashoffset:276.46;opacity:0;transition:stroke-dashoffset .65s cubic-bezier(.2,.8,.25,1),opacity .2s}
.home-quota-progress--database{stroke:#2187f4;filter:drop-shadow(0 1px 2px rgba(33,135,244,.25))}
.home-quota-progress--files{stroke:#34c98f;filter:drop-shadow(0 1px 2px rgba(52,201,143,.25))}
.home-usage-summary-values{display:grid;gap:3px;flex:1;min-width:0}
.home-usage-row{display:flex;align-items:center;justify-content:space-between;gap:5px;line-height:1.25;white-space:nowrap}
.home-usage-row>span{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--secondary);font-weight:650}
.home-usage-row strong{font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-usage-dot{display:inline-block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#2187f4}
.home-usage-dot--files{background:#34c98f}
.home-usage-popover{position:absolute;z-index:35;right:0;top:calc(100% + 10px);width:min(326px,calc(100vw - 24px));padding:18px 18px 15px;border:1px solid rgba(60,60,67,.10);border-radius:23px;background:#fff;color:var(--text);box-shadow:0 19px 52px rgba(25,45,72,.19);animation:viaggio-usage-pop .23s ease both}
@keyframes viaggio-usage-pop{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.home-usage-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.home-usage-heading>strong{font-size:16px;font-weight:770;letter-spacing:-.025em}
.home-usage-heading>span{font-size:11px;color:var(--secondary)}
.home-usage-chart{position:relative;display:grid;place-items:center;margin:9px auto 7px;width:182px;height:182px}
.home-quota-rings--large{width:174px;height:174px}
.home-usage-chart-center{position:absolute;display:grid;justify-items:center;gap:1px;pointer-events:none}
.home-usage-chart-center small{font-size:11px;color:var(--secondary)}
.home-usage-chart-center strong{font-size:23px;letter-spacing:-.035em;font-weight:780;font-variant-numeric:tabular-nums}
.home-usage-legend{display:grid;gap:6px}
.home-usage-legend p{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:9px 10px;background:#f6f9fc;border-radius:13px;font-size:13px}
.home-usage-legend p>span:first-child{display:flex;align-items:center;gap:8px;font-weight:650}
.home-usage-legend .home-usage-dot{width:9px;height:9px;flex-basis:9px}
.home-usage-legend-values{display:grid;justify-items:end}
.home-usage-legend-values b{font-weight:760;font-variant-numeric:tabular-nums}
.home-usage-legend-values small{font-size:10px;color:var(--secondary)}
.home-usage-breakdown{border-top:1px solid #e9eef5;margin-top:12px;padding-top:6px}
.home-usage-breakdown p{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0;font-size:12px;color:var(--secondary)}
.home-usage-breakdown b{font-weight:650;color:var(--text);font-variant-numeric:tabular-nums}
.home-usage-popover #home_usage_note{display:block;margin-top:10px;font-size:10px;line-height:1.45;color:var(--secondary)}
@media(max-width:420px){.home-usage-popover{right:-63px}}
@media(max-width:370px){.home-usage-summary{width:142px;padding:6px;gap:5px}.home-quota-rings--small{width:42px;height:42px}.home-usage-row>span{font-size:9px}.home-usage-row strong{font-size:10px}.header-buttons{gap:6px}.header-buttons #edit_trips_button{padding-inline:9px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.home-usage-summary,.home-usage-popover,.home-quota-progress{animation:none;transition:none}}
.home{padding-bottom:calc(125px + env(safe-area-inset-bottom))}
.home-create-fab{position:fixed;z-index:20;right:max(22px,calc((100vw - 760px)/2 + 22px));bottom:calc(22px + env(safe-area-inset-bottom));width:62px;height:62px;flex-basis:62px;font-size:42px;box-shadow:0 10px 25px rgba(0,95,180,.27),0 4px 12px rgba(0,0,0,.09);transition:transform .22s cubic-bezier(.18,.8,.32,1.2),box-shadow .22s ease,opacity .2s ease}
.home-create-fab:active{transform:scale(.92)}
.home-create-fab:focus-visible{outline:3px solid #1863b6;outline-offset:3px}
body[data-editing="true"] .home-create-fab{opacity:0;pointer-events:none;transform:translateY(24px) scale(.84)}
@media(prefers-reduced-motion:reduce){.home-create-fab{animation:none;transition:none}}

/* Home: prominent title, year control and horizontal storage meters. */
.home-title { overflow-wrap: normal; }
.trip-heading .sync-status { margin-top: 12px; }
.header-actions { flex-wrap: wrap; gap: 12px; }
.header-buttons { flex-wrap: wrap; justify-content: flex-end; }
.home-year-control { position: relative; }
#year_selector_button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding-inline: 13px; font-size: 14px; }
.home-year-control .year-menu { left: auto; right: 0; transform-origin: top right; }
.home-usage-summary { width: 174px; min-height: 48px; padding: 8px 10px; }
.home-usage-summary-values { width: 100%; gap: 6px; }
.home-usage-row { display: grid; grid-template-columns: 48px minmax(25px,1fr) 36px; gap: 6px; }
.home-usage-row .home-usage-dot { display: none; }
.home-usage-row strong { text-align: right; font-size: 10px; }
.home-usage-bar { display: block; min-width: 0; height: 6px; overflow: hidden; border-radius: 99px; background: #e7edf4; }
.home-usage-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #2187f4; transition: width .3s ease; }
.home-usage-bar i[data-usage-bar="files"] { background: #34c98f; }
.home-usage-chart { width: auto; height: auto; display: block; margin: 16px 0; }
.home-usage-chart-center { position: static; justify-items: start; }
.home-usage-legend p { display: grid; grid-template-columns: 69px minmax(30px,1fr) auto; }
@media(max-width: 480px) {
  .header-actions { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .header-buttons { display: grid; grid-template-columns: auto auto; gap: 8px; }
  .home-usage-container { grid-column: 1 / -1; grid-row: 2; }
  .home-usage-summary { width: 100%; }
  .home-usage-popover { right: 0; }
}
@media(prefers-reduced-motion:reduce) { .home-usage-bar i { transition: none; } }

/* Home navigation: iOS-style large title to compact sticky title. */
.home { overflow: clip; }
.home-header { --home-safe-top: env(safe-area-inset-top, 0px); --home-collapse: 180px; position: sticky; top: calc(-1 * var(--home-collapse)); z-index: 12; padding-bottom: 10px; }
.home-profile-area { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.home-profile-area .sync-status { max-width: 145px; margin: 0; font-size: 10px; line-height: 1.4; }
.home-profile-area .sync-status::before { flex-shrink: 0; }
.home-header .header-actions { display: grid; grid-template-columns: minmax(100px,1fr) auto; align-items: start; gap: 14px; }
.home-header .header-buttons { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.home-header .home-usage-summary { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 164px; padding: 11px 12px; }
.home-usage-label { font-size: 11px; font-weight: 650; color: var(--text); }
.home-header .home-usage-row { grid-template-columns: 18px minmax(40px,1fr) 38px; gap: 8px; }
.home-header .home-usage-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.home-header .home-usage-row:first-child .home-usage-icon { color: #2187f4; }
.home-header .home-usage-row:last-child .home-usage-icon { color: #249f77; }
.home-header .trip-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 26px 0 12px; }
.home-header .trip-heading .home-year-control .year-menu { left: 0; right: auto; transform-origin: top left; }
.home-compact-title { position: absolute; left: -18px; right: -18px; bottom: 0; height: calc(44px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: grid; place-items: center; font-size: 17px; font-weight: 650; letter-spacing: -.02em; background: rgba(242,242,247,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(60,60,67,.12); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.home-header[data-compact="true"] .home-compact-title { opacity: 1; }
.home-header[data-compact="true"] .header-actions, .home-header[data-compact="true"] .trip-heading { visibility: hidden; pointer-events: none; }
.home-header .home-usage-popover { right: 0; }
.trip-section-title { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.trip-section-title .trip-section-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 44px; min-width: 0; }
.trip-section-title .trip-section-chevron { justify-self: center; margin-right: 0; }
.trip-section-title .trip-edit-text { justify-self: end; min-width: 44px; padding: 0; text-align: center; }
.trip-edit-text { flex: 0 0 auto; border: 0; background: none; box-shadow: none; color: var(--ios-blue); font-size: 13px; font-weight: 500; padding: 10px 0 10px 6px; min-height: 44px; cursor: pointer; }
.trip-edit-text[hidden] { display: none; }
@media(max-width:370px) { .home-header .home-usage-summary { width: 150px; } .home-profile-area .sync-status { max-width: 120px; } .trip-section-toggle { gap: 8px; font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { .home-compact-title { transition: none; } }

/* Approved home: compact tools, discovery and five destinations. */
.home { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.home-header .header-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; }
.home-brand-plane { width:76px; height:60px; object-fit:contain; }
.home-header .header-buttons { align-items:center; gap:9px; }
.home-header .home-create-fab { position:static; width:48px; height:48px; flex-basis:48px; font-size:34px; box-shadow:0 5px 16px #007aff22; }
.home-header #year_selector_button { min-height:44px; border-radius:30px; padding:10px 17px; font-size:16px; }
.home-header .trip-heading { margin:20px 0 6px; }
.home-header .home-title { font-size:clamp(29px,8.3vw,38px); line-height:1.14; letter-spacing:-.045em; margin:0; }
.home-discovery, #home_tab_content { width:min(100%,760px); margin:0 auto; }
.home-search { display:flex; gap:10px; align-items:center; padding:0 14px; height:46px; background:#e9e9ee; border-radius:28px; }
.home-search svg { width:21px; height:21px; fill:none; stroke:#777; stroke-width:1.8; flex-shrink:0; }
.home-search input { width:100%; min-width:0; border:0; outline:none; background:transparent; font:inherit; font-size:17px; color:var(--text); }
.home-search:focus-within { outline:2px solid var(--ios-blue); outline-offset:2px; }
.home-filters { display:flex; gap:5px; overflow-x:auto; scrollbar-width:none; padding:13px 0 5px; }
.home-filters button { white-space:nowrap; flex:0 0 auto; border:1px solid #d5d5df; border-radius:22px; background:transparent; color:var(--text); padding:7px 10px; font:inherit; font-size:10px; min-height:30px; }
.home-filters button[aria-pressed="true"] { color:#007aff; background:#e0edff; border-color:#accafa; }
#home_filter_status { font-size:12px; color:var(--secondary); }
#home_filter_status:empty { display:none; }
.home .trip-list { margin-top:22px; }
.home .trip-list[hidden], #home_tab_content[hidden] { display:none!important; }
.home-bottom { position:fixed; z-index:25; bottom:max(8px, calc(env(safe-area-inset-bottom) - 14px)); left:50%; transform:translateX(-50%); width:min(calc(100% - 36px),740px); display:grid; justify-items:center; gap:10px; }
.home-bottom .sync-status { margin:0; padding:5px 10px; font-size:11px; max-width:100%; border-radius:20px; background:rgba(242,242,247,.94); }
.home-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:relative; isolation:isolate; width:100%; padding:3px; border:1px solid rgba(110,116,128,.19); border-radius:999px; background:linear-gradient(165deg,rgba(255,255,255,.78),rgba(255,255,255,.3) 42%,rgba(255,255,255,.52)); box-shadow:inset 0 1px 1px #fff, inset 0 -1px 1px rgba(255,255,255,.85), 0 4px 14px rgba(40,48,64,.055); backdrop-filter:blur(25px) saturate(180%); -webkit-backdrop-filter:blur(25px) saturate(180%); }
.home-tabs .home-nav-item { border:0; border-radius:999px; background:none; color:#777781; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:3px; width:auto; height:52px; min-width:0; padding:5px 0; overflow:visible; cursor:pointer; box-shadow:none; }
.home-nav-item svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home-nav-label { font-size:10px; font-weight:500; letter-spacing:-.3px; }
.home-tabs .home-nav-item[aria-current="true"] { color:#007aff; background:rgba(202,223,248,.42); }
.home-tabs #profile_button img, .home-tabs #header_profile_fallback { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.home-tabs #header_profile_fallback { display:grid; place-items:center; font-size:15px; background:#d7e7f3; }
body:not([data-session="authenticated"]) .home-bottom, body[data-trip-page="open"] .home-bottom, body:not([data-active-sheet="none"]) .home-bottom, body[data-editing="true"] .home-bottom { display:none; }
.profile-storage .home-usage-summary { width:100%; display:flex; flex-direction:column; align-items:stretch; padding:14px; }
.profile-storage .home-usage-row { grid-template-columns:24px 1fr 50px; }
.profile-storage .home-usage-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; }
.profile-storage .home-usage-popover { position:static; width:100%; margin-top:10px; box-shadow:none; }
.home-tab-intro { color:var(--secondary); font-size:14px; margin:20px 0; }
.home-trip-shortcut { display:flex; flex-direction:column; gap:8px; width:100%; text-align:left; padding:18px; margin:10px 0; border:1px solid #e4e4ec; border-radius:20px; background:#ffffffbe; color:var(--text); font:inherit; }
.home-trip-shortcut span { color:var(--secondary); font-size:13px; }
.home-calendar { padding:15px; border-radius:22px; background:#ffffffbd; }
.home-calendar-heading { display:flex; justify-content:space-between; align-items:center; text-transform:capitalize; }
.home-calendar-heading button { width:44px; height:44px; border:0; background:none; color:#007aff; font-size:28px; }
.home-calendar-heading button:disabled { opacity:.3; }
.home-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; }
.home-calendar-grid>* { display:grid; place-items:center; min-height:34px; font-size:13px; border-radius:10px; }
.home-calendar-grid .has-trip { background:#dcecff; color:#0058b8; }
.home-calendar-grid [aria-current="date"] { box-shadow:inset 0 0 0 2px #007aff; font-weight:700; }
@media(min-width:600px) { .home-filters button { font-size:13px; padding-inline:14px; } .home-nav-label { font-size:12px; } }

.home-header .home-create-fab svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }

/* Subtle glass rim catches light without a thick white border. */
.home-tabs::before { content:""; position:absolute; inset:1px; border-radius:inherit; pointer-events:none; border:1px solid rgba(255,255,255,.65); z-index:-1; }
.home-search-reveal { max-height:0; opacity:0; overflow:hidden; visibility:hidden; transition:max-height .24s ease,opacity .2s ease,visibility .24s; }
.home-search-reveal[data-open="true"] { max-height:54px; opacity:1; visibility:visible; padding:3px; margin-inline:-3px; }
.home-search-access { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.home-search-access:focus-visible { position:relative; width:auto; height:36px; padding:6px 12px; clip-path:none; border:1px solid var(--ios-blue); border-radius:18px; background:var(--page); color:var(--ios-blue); }
@media(prefers-reduced-motion:reduce) { .home-search-reveal { transition:none; } }

/* A single glass selection travels between destinations and softly settles. */
.home-tab-indicator { position:absolute; top:3px; bottom:3px; left:3px; width:calc((100% - 6px) / 5); border-radius:999px; background:rgba(202,223,248,.42); box-shadow:inset 0 1px 1px rgba(255,255,255,.65); transform:translateX(calc(var(--active-index,0) * 100%)); transition:transform .44s cubic-bezier(.22,1.22,.36,1); pointer-events:none; }
.home-tabs .home-nav-item { position:relative; z-index:1; transition:color .18s ease; }
.home-tabs .home-nav-item[aria-current="true"] { background:transparent; }
@media(prefers-reduced-motion:reduce) { .home-tab-indicator, .home-tabs .home-nav-item, .trip-tab-indicator { transition:none; } }

/* Immersive calendar: one trip per vertical page. */
.calendar-toolbar, .calendar-menu-scrim { display:none; }
body[data-home-tab="calendar"] .home-header { display:none; }
body[data-home-tab="calendar"] .home-discovery { display:none; }
body[data-home-tab="calendar"] .calendar-toolbar { position:fixed; z-index:22; top:0; left:0; right:0; display:flex; align-items:center; gap:12px; padding:calc(env(safe-area-inset-top) + 12px) 20px 10px; color:#fff; background:linear-gradient(#101e345e,transparent); }
.calendar-toolbar img { width:65px; height:48px; object-fit:contain; }
.calendar-toolbar h1 { margin:0; font-size:20px; font-weight:650; letter-spacing:-.025em; }
.calendar-toolbar button { margin-left:auto; width:44px; height:44px; border-radius:50%; border:1px solid #ffffff70; background:#ffffff20; color:white; letter-spacing:2px; backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); }
body[data-home-tab="calendar"] #home_tab_content { position:fixed; inset:0; z-index:18; width:100%; max-width:none; height:100dvh; overflow-y:auto; overscroll-behavior-y:contain; scroll-snap-type:y mandatory; scrollbar-width:none; background:#233e59; }
.calendar-trip { position:relative; isolation:isolate; min-height:100dvh; scroll-snap-align:start; scroll-snap-stop:always; padding:calc(env(safe-area-inset-top) + 82px) 18px calc(env(safe-area-inset-bottom) + 114px); color:white; }
.calendar-backdrop { position:absolute; inset:0; overflow:hidden; z-index:-1; background:linear-gradient(155deg,#34516b,#708e9b 45%,#243b55); }
.calendar-backdrop img { width:100%; height:100%; object-fit:cover; filter:blur(3px); transform:scale(1.035); }
.calendar-backdrop::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,#0b172b55,#10233c22 45%,#081b38a8); }
.calendar-trip-content { max-width:480px; margin:auto; display:flex; flex-direction:column; gap:12px; }
.calendar-trip-content>h2 { font-size:clamp(28px,8vw,38px); line-height:1.1; letter-spacing:-.035em; margin:4px 0 0; text-shadow:0 2px 12px #10233833; }
.calendar-trip-dates { font-size:14px; margin:-4px 0 5px; }
.calendar-countdown { align-self:center; display:flex; flex-direction:column; align-items:center; justify-content:center; width:min(220px,66vw,25svh); min-height:0; height:auto; aspect-ratio:1; padding:16px; border:1px solid #ffffffa0; border-radius:30px; background:linear-gradient(140deg,#ffffff20,#ffffff08); box-shadow:inset 0 1px 1px #ffffffe0,0 8px 24px #071b3526; backdrop-filter:blur(8px) saturate(115%); -webkit-backdrop-filter:blur(8px) saturate(115%); }
.calendar-countdown small { font-size:9px; letter-spacing:.17em; }
.calendar-countdown strong { font-family:Georgia,serif; font-size:clamp(56px,9svh,88px); font-weight:400; line-height:1.1; font-variant-numeric:tabular-nums; }
.calendar-countdown>span:not(.calendar-route) { font-family:Georgia,serif; font-size:clamp(15px,4vw,18px); white-space:nowrap; }
.calendar-route { font-size:18px; opacity:.7; margin-top:8px; letter-spacing:8px; }
.calendar-trip .home-calendar { align-self:center; width:min(100%,300px,33svh); aspect-ratio:1; display:flex; flex-direction:column; margin-top:5px; padding:10px 14px 14px; border:1px solid #ffffffa0; border-radius:25px; background:linear-gradient(145deg,#ffffff24,#ffffff0c); box-shadow:inset 0 1px 1px #ffffffdf,0 5px 20px #0c18301a; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:#fff; }
.calendar-trip .home-calendar-heading strong { font-size:14px; white-space:nowrap; }
.calendar-trip .home-calendar-heading button { width:32px; flex-shrink:0; }
.calendar-trip .home-calendar-grid { gap:3px 0; flex:1; }
.calendar-trip .home-calendar-grid>* { min-height:24px; font-size:13px; }
.calendar-trip .home-calendar-grid .has-trip { background:#a8d0f6b8; border-radius:0; }
.calendar-trip .home-calendar-grid [aria-current="date"] { background-image:radial-gradient(circle,#007aff 0 69%,transparent 71%); background-size:30px 30px; background-position:center; background-repeat:no-repeat; box-shadow:none; color:white; }
.calendar-next { align-self:center; background:none; border:0; color:white; font:inherit; font-size:11px; padding:8px; opacity:.9; }
.calendar-empty { max-width:400px; margin:150px auto; padding:30px; color:white; text-align:center; }
body[data-home-tab="calendar"] .home-tabs { background:linear-gradient(150deg,#ffffff72,#ffffff38); border-color:#ffffffb0; }
body[data-home-tab="calendar"] .home-nav-item { color:#f2f6ff; }
body[data-home-tab="calendar"] .home-nav-item[aria-current="true"] { color:#55baff; }
body[data-home-tab="calendar"] .home-bottom .sync-status { background:#10223b55; color:#b4e6c7; border:1px solid #ffffff45; font-weight:500; }
body[data-home-tab="calendar"][data-calendar-menu="open"] .home-discovery { position:fixed; display:block; z-index:24; top:calc(env(safe-area-inset-top) + 76px); right:16px; width:min(calc(100% - 32px),420px); margin:0; padding:16px; border:1px solid #ffffffbc; border-radius:24px; background:#f5f7fbf0; box-shadow:0 12px 35px #071b3540; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
body[data-home-tab="calendar"] .home-discovery .home-filters { flex-wrap:wrap; }
body[data-home-tab="calendar"] .home-discovery .home-filters button { min-height:36px; font-size:12px; }
body[data-home-tab="calendar"][data-calendar-menu="open"] .calendar-menu-scrim:not([hidden]) { display:block; position:fixed; inset:0; z-index:23; background:#0002; border:0; }
body:not([data-session="authenticated"]) .calendar-toolbar, body:not([data-session="authenticated"]) #home_tab_content.calendar-feed { display:none; }
@media(prefers-reduced-motion:reduce) { .calendar-feed { scroll-behavior:auto; } }

@media(max-width:359px) { .calendar-trip .home-calendar-heading strong { font-size:14px; } .calendar-countdown { padding:10px; } .calendar-countdown small { font-size:8px; letter-spacing:.1em; } }

/* Horizontal milestones share one trip backdrop and a full-width calendar. */
body[data-home-tab="calendar"] #home_tab_content { scroll-snap-type:none; }
.calendar-trip { scroll-snap-align:none; }
.calendar-trip-content { max-width:760px; }
.calendar-milestones { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.calendar-milestone-slide { flex:0 0 100%; display:flex; justify-content:center; scroll-snap-align:center; scroll-snap-stop:always; }
.calendar-milestone-name { font:12px/1.3 system-ui!important; white-space:normal!important; text-align:center; margin-top:8px; max-width:100%; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.calendar-carousel-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:-8px; font-size:11px; }
.calendar-carousel-controls button { background:transparent; color:white; border:0; width:40px; height:30px; font-size:24px; }
.calendar-carousel-controls button:disabled { opacity:.25; }
.calendar-month-holder { width:100%; }
.calendar-trip .home-calendar { width:100%; aspect-ratio:auto; background:linear-gradient(145deg,#102339b8,#10233985); }
.calendar-trip .home-calendar-grid>* { min-height:32px; }
.calendar-trip .home-calendar-heading strong { font-size:16px; }
.day-agenda-heading { display:flex; align-items:flex-start; }
.day-agenda-heading .day-inline-title { flex:1; min-width:0; }
.activity-favorite { flex:0 0 44px; border:0; background:transparent; color:#777; font-size:25px; width:44px; height:44px; padding:0; }
.activity-favorite[aria-pressed="true"] { color:#e4a900; }


/* Tickets share the light iOS shell; attached documents are the source of truth. */
body[data-home-tab="tickets"] .home-header,
body[data-home-tab="tickets"] .home-discovery { display:none; }
body[data-home-tab="tickets"] #home_tab_content { width:min(100%,760px); }
.tickets-screen { padding-bottom:24px; }
.tickets-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:20px; min-height:58px; }
.tickets-toolbar img { width:76px; height:58px; object-fit:contain; }
.tickets-toolbar>span { font-size:19px; font-weight:650; letter-spacing:-.025em; }
.tickets-add { margin-left:auto; border:0; border-radius:50%; width:48px; height:48px; display:grid; place-items:center; background:#007aff; color:white; font-size:32px; font-weight:300; box-shadow:0 6px 16px #007aff2b; }
.tickets-screen>h1 { margin:0 0 7px; font-size:clamp(30px,8vw,38px); line-height:1.1; letter-spacing:-.044em; }
.tickets-caption { margin:0 0 18px; color:#738196; font-size:14px; line-height:1.35; }
.tickets-trip-picker { display:flex; align-items:center; gap:8px; width:max-content; max-width:100%; padding:8px 12px; border:1px solid #dde4ed; border-radius:22px; background:#ffffffde; color:#718198; font-size:12px; margin-bottom:16px; }
.tickets-trip-picker span:first-child { font-weight:650; }
.tickets-trip-picker select { min-width:0; max-width:200px; border:0; background:transparent; appearance:none; -webkit-appearance:none; outline-offset:5px; font-size:12px; font-weight:700; color:#1b3656; }
.tickets-trip-picker span:last-child { color:#287cef; font-size:17px; }
.home-trip-shortcut.tickets-feature { margin:0; position:relative; isolation:isolate; width:100%; min-height:176px; border:1px solid #8fcbff88; border-radius:22px; background:linear-gradient(125deg,#0756a1,#2f8bd8); box-shadow:0 11px 23px #146abb22; overflow:hidden; display:flex; flex-direction:row; align-items:stretch; padding:0; color:white; }
.tickets-feature-cover { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.tickets-feature-cover[hidden] { display:none; }
.tickets-feature-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,24,48,.82),rgba(8,39,73,.48) 64%,rgba(11,53,91,.16)); z-index:-1; }
.tickets-feature-copy { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; padding:21px 15px 16px 19px; gap:7px; text-align:left; }
.tickets-feature-copy small { color:#dcf5ff; font-size:10px; letter-spacing:.13em; font-weight:700; }
.tickets-feature-name { font-size:25px; line-height:1.09; letter-spacing:-.037em; margin-top:6px; max-width:100%; overflow-wrap:anywhere; }
.tickets-feature-date { font-size:11px; line-height:1.4; color:#eef7ff; }
.tickets-feature-action { margin-top:auto; padding:8px 12px; background:#ffffff36; border:1px solid #ffffff66; border-radius:999px; font-size:11px; font-weight:650; }
.tickets-feature-stub { align-self:center; display:grid; place-items:center; width:64px; height:98px; margin-right:20px; flex:0 0 64px; border:1px dashed #ffffffab; background:#ffffff25; border-radius:14px; transform:rotate(9deg); font-size:40px; color:white; }
.tickets-filter-row { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:20px 0 21px; }
.tickets-filter-row button { flex:0 0 auto; min-height:34px; background:#fff; color:#61738b; border:1px solid #e3e8f0; border-radius:999px; padding:8px 13px; font-size:12px; }
.tickets-filter-row button[aria-pressed="true"] { background:#203c5e; color:#fff; border-color:#203c5e; font-weight:650; }
.tickets-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:14px; }
.tickets-section-heading h2 { margin:0; font-size:18px; letter-spacing:-.025em; }
.tickets-counter { flex:0 0 auto; color:#8594a7; font-size:11px; }
.tickets-message { font-size:12px; line-height:1.6; color:#718298; margin:8px 0 16px; }
.tickets-message:empty { display:none; }
.tickets-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.tickets-item { border:1px solid #e7edf5; border-radius:18px; overflow:hidden; padding:0; background:#fff; min-width:0; color:#1a344f; text-align:left; box-shadow:0 3px 11px #2444630c; }
.tickets-item-art { height:108px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.tickets-item-art.blue { background:linear-gradient(135deg,#d9ecff,#a2ceff); }
.tickets-item-art.peach { background:linear-gradient(135deg,#fff0db,#edc9ad); }
.tickets-item-art.lilac { background:linear-gradient(135deg,#f0eaff,#cfc6f9); }
.tickets-item-icon { font-size:40px; font-weight:300; }
.tickets-item-tag { position:absolute; top:9px; left:9px; padding:5px 7px; border-radius:7px; color:#456079; background:#ffffffc9; font-size:9px; font-weight:700; }
.tickets-item-info { display:flex; flex-direction:column; padding:11px 10px 12px; min-height:108px; }
.tickets-item-info strong { font-size:13px; line-height:1.24; overflow-wrap:anywhere; }
.tickets-item-info>span:not(.tickets-item-link) { color:#8390a2; font-size:10px; margin-top:7px; line-height:1.4; }
.tickets-item-link { color:#1373da; margin-top:auto; padding-top:12px; font-size:10px; font-weight:650; }
.tickets-empty { font-size:14px; color:#7b8a9d; }
/* Keep journey spans continuous, with rounded caps at each week boundary. */
.calendar-trip .home-calendar-grid .has-trip { border-radius:0; }
.calendar-trip .home-calendar-grid .has-trip.range-start { border-radius:11px 0 0 11px; }
.calendar-trip .home-calendar-grid .has-trip.range-end { border-radius:0 11px 11px 0; }
.calendar-trip .home-calendar-grid .has-trip.range-start.range-end { border-radius:11px; }
@media(max-width:359px) { .tickets-feature-stub { width:48px; flex-basis:48px; margin-right:12px; } .tickets-feature-name { font-size:22px; } .tickets-item-info strong { font-size:12px; } }


/* Tickets hero must not inherit the gray shortcut-label styles. */
.home-trip-shortcut.tickets-feature .tickets-feature-copy,
.home-trip-shortcut.tickets-feature .tickets-feature-copy > strong,
.home-trip-shortcut.tickets-feature .tickets-feature-copy > span { color:#fff; }
.home-trip-shortcut.tickets-feature .tickets-feature-copy > small { color:#e4f3ff; }
.home-trip-shortcut.tickets-feature .tickets-feature-date { color:#f2f7ff; font-size:12px; }
.home-trip-shortcut.tickets-feature .tickets-feature-action {
  color:#fff; font-size:12px; text-shadow:0 1px 2px rgba(0,0,0,.17);
  background:rgba(255,255,255,.22);
}
.home-trip-shortcut.tickets-feature .tickets-feature-name { text-shadow:0 2px 12px rgba(0,0,0,.22); }
.tickets-item-art .tickets-item-thumbnail { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.tickets-item-art .tickets-item-thumbnail[hidden] { display:none; }
.tickets-item-art:has(.tickets-item-thumbnail:not([hidden])) .tickets-item-icon { display:none; }
.tickets-item-art:has(.tickets-item-thumbnail:not([hidden])) .tickets-item-tag { background:rgba(255,255,255,.91); color:#253e56; }
.tickets-item-art .tickets-item-tag { z-index:2; }
.tickets-item-art .tickets-item-icon { opacity:.75; }
/* A smaller measured gap: avoid counting the iPhone's bottom inset twice. */
.home-bottom { bottom:max(6px,calc(env(safe-area-inset-bottom,0px) - 28px)); transform:translate3d(-50%,0,0); }


/* Ticket identity: actual category glyphs remain legible over file thumbnails. */
.home-trip-shortcut.tickets-feature .tickets-feature-stub { color:#fff; background:rgba(255,255,255,.19); border:1.5px solid rgba(255,255,255,.78); }
.tickets-feature-stub svg { display:block; width:48px; height:48px; stroke:#fff; filter:drop-shadow(0 2px 5px rgba(0,0,0,.22)); }
.tickets-item-main { width:100%; padding:0; border:0; display:block; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.tickets-item-info { min-height:90px; gap:1px; }
.tickets-item-info>span:not(.tickets-item-link) { min-height:25px; }
.tickets-item-art .tickets-item-icon { position:absolute; right:8px; bottom:8px; z-index:2; display:grid; place-items:center; width:33px; height:33px; border:1px solid #ffffff9e; border-radius:11px; background:#fffffff0; box-shadow:0 2px 9px #14263b24; font-size:23px; color:#1874db; }
.tickets-item-art:has(.tickets-item-thumbnail:not([hidden])) .tickets-item-icon { display:grid; }
.tickets-item-art.peach .tickets-item-icon { color:#a86b32; }
.tickets-item-art.lilac .tickets-item-icon { color:#6753bc; }
.tickets-item-info strong { font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.tickets-item-actions { display:flex; align-items:center; justify-content:space-between; gap:2px; padding:6px 9px 9px; border-top:1px solid #ebeff5; }
.tickets-item-actions button { border:0; border-radius:8px; padding:7px 4px; background:none; color:#176dc3; font-size:11px; font-weight:650; white-space:nowrap; }
.tickets-item-actions button:first-child { color:#58708a; }
.tickets-item-actions button[hidden] { display:none; }
/* Keep a visible comfortable clearance from the bottom iPhone gesture area. */
.home-bottom { bottom:max(11px,calc(env(safe-area-inset-bottom,0px) - 21px)); }

.ticket-metadata-dialog { position:fixed; inset:auto 0 0; margin:0 auto; padding:0; width:min(100%,600px); max-width:600px; max-height:calc(100dvh - 25px); overflow-y:auto; overscroll-behavior:contain; border:0; border-radius:26px 26px 0 0; background:#f6f8fc; color:#10243c; box-shadow:0 -12px 35px #081f424d; }
.ticket-metadata-dialog::backdrop { background:rgba(9,24,44,.52); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.ticket-metadata-form { display:flex; flex-direction:column; gap:14px; padding:12px 20px max(26px,env(safe-area-inset-bottom,0px)); }
.ticket-metadata-handle { align-self:center; width:42px; height:5px; border-radius:99px; background:#c8d0db; margin-bottom:4px; }
.ticket-metadata-header { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.ticket-metadata-header h2 { font-size:20px; letter-spacing:-.025em; line-height:1.2; margin:0; }
.ticket-metadata-header button { width:36px; height:36px; flex:0 0 36px; background:#e7ebf2; border:0; border-radius:50%; font-size:23px; color:#526579; }
.ticket-metadata-original { margin:0; font-size:11px; color:#8290a1; overflow-wrap:anywhere; }
.ticket-metadata-form label { display:flex; flex-direction:column; gap:7px; color:#334960; font-size:12px; font-weight:650; min-width:0; }
.ticket-metadata-form input,.ticket-metadata-form select { display:block; width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #dbe3ed; border-radius:12px; background:#fff; color:#152b45; font-size:16px; font-weight:450; outline-offset:2px; }
.ticket-metadata-form input:focus-visible,.ticket-metadata-form select:focus-visible { outline:2px solid #087cff; }
.ticket-metadata-inline { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:11px; }
.ticket-metadata-hint { margin:-6px 0 0; font-size:11px; color:#6f7e90; line-height:1.5; }
.ticket-metadata-error { margin:0; font-size:12px; color:#bc373c; line-height:1.4; }
.ticket-metadata-error:empty { display:none; }
.ticket-metadata-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding-top:3px; }
.ticket-metadata-actions button { border-radius:13px; border:1px solid #dbe2eb; min-height:46px; font-size:14px; font-weight:700; background:#fff; color:#52667f; }
.ticket-metadata-actions button[type=submit] { background:#007aff; color:#fff; border-color:#007aff; }
.ticket-metadata-actions button:disabled { opacity:.55; }
/* Give expanded mobile forms headroom for the on-screen keyboard. */
@media(max-width:359px) { .ticket-metadata-form { padding-inline:14px; } .tickets-item-actions button { font-size:10px; } }


/* Compact ticket metadata sheet — title, colorful category icons, optional date/time. */
.ticket-metadata-simple .ticket-metadata-form { gap:15px; padding:12px 18px max(24px,env(safe-area-inset-bottom,0px)); }
.ticket-metadata-simple .ticket-metadata-header { margin-bottom:2px; }
.ticket-metadata-simple .ticket-metadata-header h2 { font-size:20px; }
.ticket-metadata-simple .ticket-metadata-form label { gap:7px; font-size:13px; color:#34516c; }
.ticket-metadata-simple .ticket-metadata-form label small { display:inline; font-size:10px; font-weight:500; color:#8a98a9; }
.ticket-metadata-simple .ticket-metadata-form label input { margin-top:0; }
.ticket-metadata-simple .ticket-category-options { min-width:0; margin:0; padding:0; border:none; }
.ticket-metadata-simple .ticket-category-options legend { margin:0 0 9px; padding:0; font-size:13px; font-weight:650; color:#34516c; }
.ticket-metadata-simple .ticket-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.ticket-metadata-simple .ticket-category-option { --category-color:#747f98; --category-soft:#f0f2f6; min-width:0; min-height:77px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:7px; padding:9px 3px; border:1.5px solid #e5eaf1; border-radius:15px; background:#fff; color:#607086; font-size:10px; line-height:1.2; font-weight:650; white-space:normal; text-align:center; cursor:pointer; transition:border-color .16s,background .16s,transform .16s; }
.ticket-metadata-simple .ticket-category-symbol { display:grid; place-items:center; width:35px; height:35px; border-radius:11px; background:var(--category-soft); color:var(--category-color); font-size:23px; line-height:1; font-weight:600; }
.ticket-metadata-simple .ticket-category-option[aria-pressed="true"] { border:2px solid var(--category-color); background:var(--category-soft); color:#203249; box-shadow:0 2px 9px #17375c0d; }
.ticket-metadata-simple .ticket-category-option:focus-visible { outline:2px solid var(--category-color); outline-offset:2px; }
.ticket-metadata-simple .ticket-category-option[aria-pressed="true"] .ticket-category-symbol { color:#fff; background:var(--category-color); }
.ticket-category-option[data-ticket-category="flight"],.tickets-item-art.flight { --category-color:#1879f2; --category-soft:#ddecff; }
.ticket-category-option[data-ticket-category="hotel"],.tickets-item-art.hotel { --category-color:#7663d8; --category-soft:#ede7ff; }
.ticket-category-option[data-ticket-category="restaurant"],.tickets-item-art.restaurant { --category-color:#df822e; --category-soft:#ffebd8; }
.ticket-category-option[data-ticket-category="show"],.tickets-item-art.show { --category-color:#bc4dad; --category-soft:#fbe5f5; }
.ticket-category-option[data-ticket-category="sport"],.tickets-item-art.sport { --category-color:#199b6f; --category-soft:#ddf7e9; }
.ticket-category-option[data-ticket-category="attraction"],.tickets-item-art.attraction { --category-color:#bd8b18; --category-soft:#fff5d2; }
.ticket-category-option[data-ticket-category="transport"],.tickets-item-art.transport { --category-color:#149ca4; --category-soft:#ddf6f6; }
.ticket-category-option[data-ticket-category="other"],.tickets-item-art.other { --category-color:#728096; --category-soft:#edf1f6; }
.tickets-item-art.flight,.tickets-item-art.hotel,.tickets-item-art.restaurant,.tickets-item-art.show,.tickets-item-art.sport,.tickets-item-art.attraction,.tickets-item-art.transport,.tickets-item-art.other { background:var(--category-soft); }
.tickets-item-art.flight .tickets-item-icon,.tickets-item-art.hotel .tickets-item-icon,.tickets-item-art.restaurant .tickets-item-icon,.tickets-item-art.show .tickets-item-icon,.tickets-item-art.sport .tickets-item-icon,.tickets-item-art.attraction .tickets-item-icon,.tickets-item-art.transport .tickets-item-icon,.tickets-item-art.other .tickets-item-icon { color:var(--category-color); }
.ticket-metadata-simple .ticket-metadata-inline { gap:10px; }
.ticket-metadata-simple .ticket-metadata-inline label { min-width:0; }
.ticket-metadata-simple .ticket-metadata-inline input { font-size:14px; padding-inline:7px; }
.ticket-metadata-simple .ticket-metadata-error:empty { display:none; }
.ticket-metadata-simple .ticket-metadata-actions { padding-top:3px; }
@media(max-width:360px) { .ticket-metadata-simple .ticket-category-grid { gap:6px; } .ticket-metadata-simple .ticket-category-option { font-size:9px; min-height:73px; padding-inline:1px; } }


/* Tickets are surfaced on their scheduled day without creating duplicate agenda activities. */
.day-ticket-reservations { display:grid; gap:8px; margin:10px 0 18px; }
.day-ticket-reservations[hidden] { display:none!important; }
.day-ticket-reservations h3 { margin:0 0 2px; color:#59718b; font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:750; }
.day-ticket-entry { --category-color:#728096; --category-soft:#edf1f6; width:100%; min-height:59px; border:1px solid #e1e9f2; border-radius:14px; display:flex; align-items:center; gap:11px; padding:9px 12px; background:rgba(255,255,255,.9); text-align:left; color:#152b43; }
.day-ticket-entry.flight { --category-color:#1879f2; --category-soft:#ddecff; }
.day-ticket-entry.hotel { --category-color:#7663d8; --category-soft:#ede7ff; }
.day-ticket-entry.restaurant { --category-color:#df822e; --category-soft:#ffebd8; }
.day-ticket-entry.show { --category-color:#bc4dad; --category-soft:#fbe5f5; }
.day-ticket-entry.sport { --category-color:#199b6f; --category-soft:#ddf7e9; }
.day-ticket-entry.attraction { --category-color:#bd8b18; --category-soft:#fff5d2; }
.day-ticket-entry.transport { --category-color:#149ca4; --category-soft:#ddf6f6; }
.day-ticket-entry.other { --category-color:#728096; --category-soft:#edf1f6; }
.day-ticket-entry-icon { flex:0 0 39px; display:grid; place-items:center; height:39px; border-radius:11px; background:var(--category-soft); color:var(--category-color); font-size:24px; }
.day-ticket-entry-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }
.day-ticket-entry-copy strong { font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.day-ticket-entry-copy small { font-size:11px; color:#7a8b9e; }
.day-ticket-entry-arrow { color:#8eaccc; font-size:22px; }


/* Ticket preview is the original uploaded image, not a guessed cover photo. */
.ticket-metadata-simple .ticket-editor-preview { position:relative; min-width:0; min-height:132px; max-height:187px; border:1px solid #dce4ee; border-radius:15px; background:#ffffffeb; overflow:hidden; }
.ticket-metadata-simple .ticket-editor-preview-open { width:100%; height:174px; display:block; padding:0; border:0; background:#fff; color:#2c4866; cursor:zoom-in; position:relative; }
.ticket-metadata-simple .ticket-editor-preview-open[hidden],.ticket-metadata-simple .ticket-editor-preview-fallback[hidden] { display:none!important; }
.ticket-metadata-simple .ticket-editor-preview-open img { display:block; width:100%; height:100%; object-fit:contain; background:#fff; }
.ticket-metadata-simple .ticket-editor-preview-caption { position:absolute; inset:auto 0 0; display:flex; justify-content:space-between; align-items:center; gap:10px; background:linear-gradient(transparent,rgba(9,33,59,.78)); color:#fff; min-height:44px; padding:15px 12px 7px; font-size:11px; font-weight:650; text-shadow:0 1px 2px #1429457d; }
.ticket-metadata-simple #ticket_editor_preview_filename { min-width:0; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ticket-metadata-simple .ticket-editor-preview-caption > span:last-child { flex:0 0 auto; }
.ticket-metadata-simple .ticket-editor-preview-fallback { min-height:132px; display:flex; justify-content:center; align-items:center; gap:12px; padding:16px; color:#66788f; font-size:12px; line-height:1.4; }
.ticket-metadata-simple .ticket-editor-preview-symbol { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:#e6edf8; color:#337dce; font-size:26px; }
.ticket-metadata-simple .ticket-metadata-actions { position:sticky; bottom:calc(-1 * max(24px,env(safe-area-inset-bottom,0px))); z-index:2; padding:10px 0 max(9px,env(safe-area-inset-bottom,0px)); margin-bottom:calc(-1 * max(24px,env(safe-area-inset-bottom,0px))); background:linear-gradient(to bottom,rgba(246,248,252,.85),#f6f8fc 12px); }
.ticket-image-dialog { position:fixed; inset:0; width:100%; height:100%; max-width:100vw; max-height:100dvh; padding:0; border:0; background:#0b1525; color:white; overflow:hidden; }
.ticket-image-dialog::backdrop { background:rgba(0,0,0,.9); }
.ticket-image-toolbar { position:absolute; left:0; right:0; top:0; z-index:3; display:flex; align-items:center; justify-content:space-between; padding:max(18px,env(safe-area-inset-top)) 18px 14px; background:linear-gradient(#0b1525f0,#0b152500); font-size:14px; font-weight:650; }
.ticket-image-toolbar div { display:flex; gap:8px; }
.ticket-image-toolbar button { border:1px solid #ffffff60; border-radius:18px; background:#ffffff24; color:#fff; padding:9px 12px; font-size:12px; font-weight:650; }
.ticket-image-scroller { position:absolute; inset:60px 0 0; display:flex; align-items:center; justify-content:center; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; padding:12px; }
.ticket-image-scroller img { display:block; max-width:100%; max-height:calc(100dvh - 100px); width:auto; height:auto; object-fit:contain; margin:auto; }
.ticket-image-dialog.is-zoomed .ticket-image-scroller { justify-content:flex-start; align-items:flex-start; }
.ticket-image-dialog.is-zoomed .ticket-image-scroller img { width:200%; max-width:none; max-height:none; height:auto; object-fit:initial; }
/* Native date/time controls in iOS have a large intrinsic min-content size.
   Stack rather than letting two 50% cells overlap. */
@media(max-width:600px) {
  .ticket-metadata-simple .ticket-metadata-inline { display:flex; flex-direction:column; gap:12px; width:100%; min-width:0; }
  .ticket-metadata-simple .ticket-metadata-inline > label { display:flex; width:100%; min-width:0; max-width:100%; }
  .ticket-metadata-simple .ticket-metadata-inline input[type="date"],
  .ticket-metadata-simple .ticket-metadata-inline input[type="time"] { display:block; width:100%; max-width:100%; min-width:0; min-height:43px; box-sizing:border-box; padding:9px 12px; font-size:16px; }
  .ticket-metadata-simple .ticket-metadata-inline input::-webkit-date-and-time-value { min-width:0; text-align:left; }
  .ticket-metadata-simple .ticket-metadata-inline input::-webkit-calendar-picker-indicator { flex-shrink:0; }
}


/* FINAL ticket gallery: card artwork and receipt are independent entities. */
.tickets-grid { gap:14px; align-items:stretch; }
.tickets-item { border-radius:23px; background:#fff; border:1px solid #e9edf4; box-shadow:0 7px 16px rgba(36,61,90,.08); overflow:hidden; display:flex; flex-direction:column; }
.tickets-item-main { display:flex; flex-direction:column; flex:1; }
.tickets-item-art { --category-color:#7e90a6; --category-soft:#e7eef8; position:relative; width:100%; height:145px; flex:0 0 145px; overflow:visible; isolation:isolate; background:linear-gradient(145deg,var(--category-soft),#f8fafd); }
.tickets-item-art.no-cover:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 79% 19%,rgba(255,255,255,.9) 0 20%,transparent 21%),radial-gradient(circle at 15% 95%,rgba(255,255,255,.65) 0 35%,transparent 36%),linear-gradient(120deg,transparent,rgba(255,255,255,.5)); z-index:-1; }
.tickets-item-art.no-cover:after { content:""; position:absolute; inset:auto -26px -15px auto; width:135px; height:135px; border-radius:50%; border:1px solid rgba(255,255,255,.75); z-index:-1; }
.tickets-item-art .tickets-item-cover { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; z-index:-1; }
.tickets-item-art .tickets-item-cover[hidden] { display:none; }
.tickets-item-art .tickets-item-status { position:absolute; top:12px; right:10px; max-width:calc(100% - 18px); padding:7px 11px; border-radius:999px; z-index:2; background:rgba(255,255,255,.97); box-shadow:0 2px 8px rgba(10,25,44,.09); color:#172b42; font-size:11px; font-weight:750; letter-spacing:-.01em; white-space:nowrap; }
.tickets-item-art .tickets-item-icon,.tickets-item-art:has(.tickets-item-thumbnail:not([hidden])) .tickets-item-icon { position:absolute; left:13px; right:auto; top:auto; bottom:-26px; width:57px; height:57px; border-radius:50%; border:4px solid #fff; padding:6px; display:grid; place-items:center; color:var(--category-color); background:#fff; box-shadow:0 4px 11px rgba(10,27,45,.15); z-index:3; font-size:29px; opacity:1; }
.tickets-item-art .tickets-item-icon svg { width:30px; height:30px; stroke:currentColor; }
.tickets-item-art.restaurant .tickets-item-icon { color:#0fb3c7; }
.tickets-item-art.no-cover .tickets-item-icon { background:#fff; }
.tickets-item .tickets-item-info { display:flex; flex-direction:column; flex:1; gap:0; padding:34px 14px 12px; min-height:112px; }
.tickets-item .tickets-item-info strong { font-size:clamp(15px,3.3vw,19px); font-weight:760; color:#142c47; line-height:1.17; min-height:40px; overflow-wrap:anywhere; letter-spacing:-.02em; }
.tickets-item .tickets-item-info>span { font-size:12px; color:#7d8b9a; margin-top:8px; min-height:24px; line-height:1.4; }
.tickets-item .tickets-item-actions { margin-top:auto; padding:10px 11px 12px; border-top:1px solid #edf1f5; gap:7px; }
.tickets-item .tickets-item-actions button { color:#1473d9; padding:6px 1px; font-size:11px; font-weight:650; }
.tickets-item .tickets-item-actions button:first-child { color:#687c90; }
.tickets-item-art.no-cover .tickets-item-status { border:1px solid rgba(255,255,255,.95); }
.tickets-item-art .tickets-item-thumbnail { display:none!important; }

/* Independent artwork picker inside the booking sheet. */
.ticket-card-cover-editor { display:flex; flex-direction:column; min-width:0; gap:9px; }
.ticket-card-cover-heading { display:flex; flex-direction:column; gap:3px; color:#344d67; }
.ticket-card-cover-heading strong { font-size:13px; font-weight:700; }
.ticket-card-cover-heading span { font-size:11px; color:#7b8c9d; font-weight:450; }
.ticket-card-cover-preview { height:130px; width:100%; min-width:0; border:1px solid #dce5ef; border-radius:16px; overflow:hidden; background:linear-gradient(125deg,#e4f0fb,#d9e3f5); position:relative; }
.ticket-card-cover-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.ticket-card-cover-preview img[hidden],.ticket-card-cover-empty[hidden] { display:none!important; }
.ticket-card-cover-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; gap:6px; color:#6c8197; font-size:12px; }
.ticket-card-cover-empty>span { font-size:32px; opacity:.7; }
.ticket-card-cover-empty small { font-size:11px; }
.ticket-card-cover-actions { display:flex; gap:12px; align-items:center; }
.ticket-metadata-simple .ticket-card-cover-pick { flex:0 0 auto; min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:9px 14px; border:1px solid #bcd5f4; border-radius:11px; background:#e9f2ff; color:#176ec6; font-size:12px; font-weight:750; cursor:pointer; }
.ticket-card-cover-actions button { border:0; background:none; color:#697b90; font-size:12px; font-weight:650; padding:8px; }
.ticket-card-cover-actions button[hidden] { display:none; }
@media(max-width:360px) {
  .tickets-item-art { height:125px; flex-basis:125px; }
  .tickets-item .tickets-item-info { padding-left:10px; padding-right:10px; }
  .tickets-item .tickets-item-info strong { font-size:14px; }
  .tickets-item .tickets-item-actions button { font-size:10px; }
}

.ticket-metadata-simple .ticket-metadata-form label.ticket-card-cover-pick { display:inline-flex; flex-direction:row; width:max-content; min-width:0; }
.ticket-metadata-simple .ticket-category-symbol svg { width:24px; height:24px; stroke:currentColor; display:block; }


/* iOS ticket sheet containment. Native file controls must NEVER expand a sheet. */
.ticket-metadata-dialog.ticket-metadata-simple {
  box-sizing:border-box;
  width:100%;
  max-width:min(100vw,600px);
  max-width:min(100dvw,600px);
  min-width:0;
  overflow-x:hidden;
  overscroll-behavior-x:none;
}
.ticket-metadata-simple .ticket-metadata-form,
.ticket-metadata-simple .ticket-metadata-form *,
.ticket-metadata-simple .ticket-metadata-form *::before,
.ticket-metadata-simple .ticket-metadata-form *::after {
  box-sizing:border-box;
}
.ticket-metadata-simple .ticket-metadata-form {
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:clip;
  padding-inline:clamp(12px,4vw,20px);
}
.ticket-metadata-simple .ticket-metadata-form > *,
.ticket-metadata-simple .ticket-metadata-form > label,
.ticket-metadata-simple .ticket-category-options,
.ticket-metadata-simple .ticket-card-cover-editor,
.ticket-metadata-simple .ticket-metadata-inline {
  min-width:0;
  max-width:100%;
}
.ticket-metadata-simple .ticket-category-grid { width:100%; min-width:0; grid-template-columns:repeat(4,minmax(0,1fr)); }
.ticket-metadata-simple .ticket-category-option { max-width:100%; min-width:0; overflow:hidden; }
.ticket-metadata-simple .ticket-category-option span { min-width:0; max-width:100%; }
.ticket-metadata-simple .ticket-card-cover-preview,
.ticket-metadata-simple .ticket-metadata-form label.ticket-card-cover-preview {
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  height:160px;
  flex:0 0 160px;
  padding:0;
  border-radius:16px;
  border:1px solid #d9e4f1;
  background:#e4eefb;
  display:block;
  overflow:hidden;
  cursor:pointer;
}
.ticket-metadata-simple .ticket-card-cover-preview img {
  width:100%;height:100%;display:block;object-fit:cover;
}
.ticket-metadata-simple .ticket-card-cover-empty {
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
}
.ticket-card-cover-tap-hint {
  position:absolute;
  bottom:0;left:0;right:0;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 14px 9px;
  background:linear-gradient(transparent,rgba(12,33,61,.75));
  color:white;font-size:12px;font-weight:680;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.ticket-card-cover-tap-hint span {flex:0 0 auto;}
/* Overrides .ticket-metadata-form input { display:block } and native Safari sizing. */
#ticket_card_cover_input,
.ticket-metadata-simple .ticket-card-cover-file-input,
.ticket-metadata-simple input[type="file"][hidden] {
  display:none!important;
  position:absolute!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  opacity:0!important;
  overflow:hidden!important;
}
.ticket-metadata-simple .ticket-card-cover-remove {
  width:max-content;
  max-width:100%;
  border:0;background:none;
  color:#637e98;font-size:12px;font-weight:650;
  padding:4px 2px;
}
.ticket-metadata-simple .ticket-card-cover-remove[hidden]{display:none!important;}
.ticket-metadata-simple .ticket-metadata-inline {width:100%;}
@media (max-width:600px){
  .ticket-metadata-simple .ticket-metadata-inline,
  .ticket-metadata-simple .ticket-metadata-inline > label {
    width:100%;min-width:0;max-width:100%;
  }
  .ticket-metadata-simple .ticket-metadata-inline input[type="date"],
  .ticket-metadata-simple .ticket-metadata-inline input[type="time"] {
    width:100%;min-width:0;max-width:100%;
  }
}


/* Make the picker itself the hit target. Safari cannot reliably activate an
   input hidden with display:none from a separate label in Home Screen mode. */
.ticket-metadata-simple #ticket_card_cover_preview { position:relative; }
.ticket-metadata-simple #ticket_card_cover_input.ticket-card-cover-file-input,
.ticket-metadata-simple .ticket-metadata-form #ticket_card_cover_input,
.ticket-metadata-simple input#ticket_card_cover_input[type="file"] {
  appearance:none;
  -webkit-appearance:none;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  opacity:0!important;
  z-index:5!important;
  font-size:16px;
  cursor:pointer;
  overflow:hidden;
}
.ticket-metadata-simple #ticket_card_cover_preview:focus-within { outline:2px solid #2183ea; outline-offset:2px; }
.ticket-metadata-simple .ticket-card-cover-feedback { margin:-5px 0 0; padding:0 2px; min-height:0; font-size:12px; line-height:1.45; color:#57738e; }
.ticket-metadata-simple .ticket-card-cover-feedback[data-kind="error"] { color:#b8373b; }
.ticket-metadata-simple .ticket-card-cover-feedback:empty { display:none; }
.ticket-metadata-simple .ticket-card-cover-tap-hint { pointer-events:none; }
.ticket-metadata-simple .ticket-card-cover-empty { pointer-events:none; }

/* Viaggio ticket icon system: one circular motif, one stable category color.
   Never put a colored square inside the floating white circle. */
.ticket-metadata-simple .ticket-category-option .ticket-category-symbol,
.ticket-metadata-simple .ticket-category-option[aria-pressed="true"] .ticket-category-symbol {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  border-radius:50%!important;
  background:var(--category-soft)!important;
  color:var(--category-color)!important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:25px;
  font-weight:400;
  line-height:1;
}
.ticket-metadata-simple .ticket-category-symbol svg {
  width:25px;
  height:25px;
  display:block;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:2;
}
.ticket-metadata-simple .ticket-category-option[aria-pressed="true"] {
  border:2px solid var(--category-color);
  background:var(--category-soft);
}
.tickets-item-art .tickets-item-icon,
.tickets-item-art:has(.tickets-item-thumbnail:not([hidden])) .tickets-item-icon {
  width:62px;
  height:62px;
  left:12px;
  bottom:-31px;
  padding:0!important;
  border:5px solid white;
  border-radius:50%!important;
  background:white!important;
  display:grid;
  place-items:center;
  box-shadow:0 5px 13px rgba(13,32,51,.16);
  color:var(--category-color)!important;
}
.tickets-item-art .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.flight .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.hotel .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.restaurant .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.show .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.sport .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.attraction .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.transport .tickets-item-icon .ticket-category-symbol,
.tickets-item-art.other .tickets-item-icon .ticket-category-symbol {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  border:0;
  border-radius:50%!important;
  background:transparent!important;
  color:var(--category-color)!important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:28px;
  font-weight:400;
  line-height:1;
}
.tickets-item-art .tickets-item-icon .ticket-category-symbol svg {
  width:30px;
  height:30px;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2;
}

/* Agenda: per-card controls. Keep camera at lower left and destructive action
   at upper right, independently of whether the activity has a cover photo. */
.day-view-agenda-item { padding-bottom: 64px; }
.day-view-agenda-item > .day-inline-camera {
  position: absolute; left: 14px; bottom: 12px; right: auto; top: auto;
  grid-column: auto; grid-row: auto; margin: 0;
  width: 42px; height: 42px; z-index: 2;
  background: rgba(238,246,255,.94);
}
.day-view-agenda-item > .day-inline-camera .day-photo-icon { width: 21px; height: 21px; }
.day-view-agenda-item > .day-inline-delete {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; color: #b54242;
  background: rgba(255,238,238,.94); cursor: pointer;
}
.day-view-agenda-item > .day-inline-delete:active { background: #ffdad8; }
.day-view-agenda-item > .day-inline-delete:focus-visible,
.day-view-agenda-item > .day-inline-camera:focus-within { outline: 3px solid #007aff; outline-offset: 2px; }
.day-view-agenda-item .day-view-photo-shell { margin-top: 48px; }
.day-view-agenda-item[data-has-photo="false"] .day-view-agenda-copy { padding-right: 8px; }
.agenda-delete-backdrop {
  position: fixed; inset: 0; z-index: 100000; display: flex;
  align-items: flex-end; justify-content: center;
  background: rgba(12,20,33,.48); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.agenda-delete-sheet {
  width: 100%; max-width: 640px; box-sizing: border-box;
  padding: 24px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; background: #f2f2f7;
  box-shadow: 0 -14px 40px rgba(0,0,0,.17);
  animation: agenda-delete-rise .28s cubic-bezier(.22,.61,.36,1) both;
}
.agenda-delete-sheet h2 { margin: 0 0 10px; text-align: center; font-size: 20px; color: #1c1c1e; }
.agenda-delete-sheet p { margin: 0 0 24px; color: #63636a; text-align: center; font-size: 15px; line-height: 1.5; }
.agenda-delete-sheet button { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 14px; font: inherit; font-weight: 700; }
.agenda-delete-confirm { background: #ff3b30; color: white; margin-bottom: 10px; }
.agenda-delete-cancel { background: white; color: #007aff; }
@keyframes agenda-delete-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .agenda-delete-sheet { animation: none; } }

/* Agenda controls (2026-11-06): camera over the image; favorite in left rail. */
.day-view-agenda-item .day-view-photo-shell { position: relative; overflow: hidden; }
.day-view-agenda-item .day-view-photo-shell > .day-inline-camera {
  position: absolute; right: 10px; bottom: 10px; left: auto; top: auto;
  z-index: 2; width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #007aff; background: rgba(248,250,255,.57);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(15px) saturate(165%);
  -webkit-backdrop-filter: blur(15px) saturate(165%);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.day-view-agenda-item > .day-inline-favorite-rail {
  grid-column: 1; grid-row: 4; justify-self: start; align-self: start;
  width: 46px; height: 46px; margin: 8px 0 0 -4px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(245,245,250,.92); font-size: 30px;
}
.day-view-agenda-item[data-has-google-maps="false"] > .day-inline-favorite-rail { grid-row: 3; }
.day-view-agenda-item > .day-inline-save-status { grid-row: 5; }
.day-view-agenda-item[data-has-photo="true"] > .day-inline-camera { display: none; }

/* 2026-11-06: stable icon spacing, independent of card description/photo height. */
.day-view-agenda-item { align-content: start; }
.day-view-agenda-item > .day-inline-icon-rail {
  grid-column: 1; grid-row: 2 / span 4;
  align-self: start; justify-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; margin: 7px 0 0 -4px;
  width: 58px; min-height: 0;
}
.day-view-agenda-item > .day-inline-icon-rail > .day-view-pin,
.day-view-agenda-item > .day-inline-icon-rail > .day-inline-google-maps,
.day-view-agenda-item > .day-inline-icon-rail > .day-inline-favorite-rail {
  position: relative; grid-column: auto; grid-row: auto;
  align-self: auto; justify-self: auto; flex: 0 0 auto;
  margin: 0; left: auto; right: auto; top: auto; bottom: auto;
}
.day-view-agenda-item > .day-inline-icon-rail > .day-inline-favorite-rail {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: rgba(245,245,250,.92); border-radius: 50%; font-size: 30px;
}
.day-view-agenda-item > .day-inline-icon-rail > .day-view-pin { width: 50px; height: 50px; }
.day-view-agenda-item > .day-inline-icon-rail > .day-inline-google-maps { width: 46px; height: 46px; }
.day-view-agenda-item > .day-view-agenda-copy { grid-column: 2; grid-row: 1 / span 5; }
.day-view-agenda-item .day-view-agenda-copy > .day-inline-camera-no-photo {
  position: relative; display: grid; place-items: center;
  left: auto; right: auto; top: auto; bottom: auto;
  width: 44px; height: 44px; margin: 16px 0 0 0;
  background: rgba(238,246,255,.92); border-radius: 50%;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}

@media (max-width: 600px) {
  .day-view-agenda-item > .day-view-agenda-copy,
  .day-view-agenda-item[data-has-google-maps="true"] > .day-view-agenda-copy {
    grid-column: 2 / -1; grid-row: 1 / span 2;
  }
  .day-view-agenda-item > .day-view-photo-shell,
  .day-view-agenda-item[data-has-google-maps="true"] > .day-view-photo-shell {
    grid-column: 2 / -1; grid-row: 3;
  }
}

/* Ticket zoom: explicit dimensions create real scrollable bounds in both axes. */
.trip-file-viewer-media[data-image-zoom="true"] { display: block; touch-action: pan-x pan-y pinch-zoom; }
.trip-file-viewer-media[data-image-zoom="true"] img { max-width: none; max-height: none; height: auto; margin: 0 auto; }
.ticket-image-zoom { display: flex; justify-content: center; gap: 12px; margin-bottom: 8px; }
.ticket-image-zoom button { min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid #64748b; border-radius: 12px; color: white; background: #1e293b; font: inherit; font-size: 20px; }
.ticket-image-zoom button:disabled { opacity: .35; }
.ticket-image-zoom button:focus-visible { outline: 2px solid #84c4ff; outline-offset: 3px; }
