:root {
  color-scheme: light;
  --bg-a: #f8fbff;
  --bg-b: #fff;
  --bg-c: #dceef7;
  --ink: #162033;
  --muted: rgba(22, 32, 51, 0.62);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.62);
  --accent: #d85372;
  --accent-2: #217fa2;
  --deep: #15273a;
}

.service-status {
  padding: 12px 14px;
  border: 1px solid rgba(38, 74, 92, .16);
  border-radius: 8px;
  color: #5d6b7b;
  background: rgba(239, 246, 248, .76);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.service-status.connected {
  color: #176b57;
  border-color: rgba(23, 107, 87, .24);
  background: rgba(223, 247, 239, .82);
}

.route-generation-status {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 106, 128, .18);
  border-radius: 10px;
  padding: 11px 12px;
  color: #17243a;
  background: linear-gradient(120deg, rgba(232, 248, 250, .86), rgba(255, 255, 255, .7));
}

.route-generation-status[hidden] { display: none; }
.route-generation-status.error { border-color: rgba(166, 59, 74, .2); background: rgba(255, 241, 243, .78); }
.route-generation-status.stale { border-color: rgba(183, 125, 37, .22); background: rgba(255, 249, 232, .82); }

.trip-result-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trip-result-state.loading { grid-template-columns: auto minmax(0, 1fr); }
.trip-result-state > div { min-width: 0; }
.trip-result-state > span:not(.trip-result-spinner) {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #176b7f;
  background: rgba(23, 107, 127, .1);
  font-weight: 900;
}
.trip-result-state strong,
.trip-ready-copy strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.trip-result-state p,
.trip-ready-copy p { margin: 3px 0 0; color: #5b6979; font-size: 11px; line-height: 1.45; }
.trip-result-state button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  color: #fff;
  background: #176b7f;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.trip-ready-copy { min-width: 0; }
.trip-ready-copy > span { display: block; margin-bottom: 3px; color: #176b7f; font-size: 10px; font-weight: 900; }
.trip-ready-copy small { display: block; margin-top: 7px; color: #6a7786; font-size: 10px; font-weight: 750; line-height: 1.4; }
.trip-result-spinner { width: 26px; height: 26px; border: 3px solid rgba(24, 120, 148, .16); border-top-color: #187894; border-radius: 50%; animation: triplyra-trip-spin .8s linear infinite; }
@keyframes triplyra-trip-spin { to { transform: rotate(360deg); } }

@media (max-width: 430px) {
  .trip-result-state { grid-template-columns: auto minmax(0, 1fr); }
  .trip-result-state button { grid-column: 2; justify-self: start; }
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  display: grid;
  place-items: center;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 24% 16%, rgba(255,255,255,.18), transparent 18rem),
    linear-gradient(135deg, #171b22, #07080a);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app {
  position: relative;
  width: min(100vw, 440px);
  max-width: 440px;
  height: 100dvh;
  max-height: 956px;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.86), transparent 9rem),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 10rem),
    radial-gradient(circle at 70% 78%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 13rem),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 42%, var(--bg-c));
  box-shadow: 0 26px 80px rgba(0,0,0,.26);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  height: 100%;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.screen.active {
  display: block;
  animation: screenIn 220ms ease both;
}

.glass-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.58),
    0 24px 70px rgba(20,30,42,.16);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  background: rgba(255,255,255,.38);
}
.ambient span:nth-child(1) { width: 160px; height: 160px; left: -40px; top: 86px; }
.ambient span:nth-child(2) { width: 210px; height: 210px; right: -72px; top: 220px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ambient span:nth-child(3) { width: 180px; height: 180px; left: 58px; bottom: -54px; background: color-mix(in srgb, var(--accent-2) 22%, transparent); }

.auth-screen,
.search-screen {
  display: none;
}

.auth-screen.active,
.search-screen.active {
  display: grid;
}

.auth-screen {
  align-content: center;
  padding-top: max(42px, env(safe-area-inset-top));
  padding-bottom: max(42px, env(safe-area-inset-bottom));
}

.search-screen {
  align-content: start;
  padding-top: max(30px, env(safe-area-inset-top));
}

.search-screen,
.country-screen,
.country-trip-screen,
.saved-screen {
  padding-bottom: 92px;
}

.country-screen,
.country-trip-screen {
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: 14px;
  padding-left: 14px;
  padding-bottom: 128px;
  scrollbar-width: none;
}

.country-trip-screen {
  padding-top: max(24px, calc(env(safe-area-inset-top) + 16px));
  padding-right: 20px;
  padding-left: 20px;
}

.country-screen::-webkit-scrollbar,
.country-trip-screen::-webkit-scrollbar {
  display: none;
}

.auth-hero,
.search-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-hero {
  margin-bottom: 18px;
  transform: translateY(-10px);
}

.search-hero {
  margin-top: 62px;
  margin-bottom: 20px;
}

.auth-hero span,
.search-hero span,
.country-header span,
.city-cover span,
.route-head span,
.map-card span,
.sheet-head span {
  font-size: 12px;
  font-weight: 900;
  opacity: .66;
}

.auth-hero strong,
.search-hero strong {
  max-width: 8em;
  font-size: 44px;
  line-height: .98;
  letter-spacing: 0;
}

.search-hero p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-card,
.search-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
}

.travel-engine {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.2)),
    color-mix(in srgb, var(--glass) 66%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 18px 48px rgba(20,30,42,.14);
  backdrop-filter: blur(26px) saturate(1.24);
  -webkit-backdrop-filter: blur(26px) saturate(1.24);
}

.travel-engine::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.3);
  border-left: 0;
  border-bottom: 0;
}

.travel-engine {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 30px;
}

.travel-engine::after {
  display: none;
}

.dynamic-earth-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.3), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--deep) 78%, var(--accent-2)), color-mix(in srgb, var(--accent-2) 64%, #e9fbff));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 18px 34px rgba(20,30,42,.2);
}

.dynamic-earth-icon::after,
.country-route-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.36), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%, rgba(0,0,0,.14));
}

.travel-earth-icon {
  width: 104px;
  height: 104px;
  border-radius: 32px;
}

.dynamic-earth-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.radar-map {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.32), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--deep) 86%, var(--accent-2)), color-mix(in srgb, var(--accent-2) 58%, #dff7ff));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 18px 34px rgba(20,30,42,.2);
}

.radar-map::before,
.radar-map::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
}

.radar-map::before {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 18%),
    radial-gradient(ellipse at 35% 42%, #7fca8b 0 18%, transparent 19%),
    radial-gradient(ellipse at 64% 32%, #79c982 0 14%, transparent 15%),
    radial-gradient(ellipse at 58% 66%, #6db978 0 18%, transparent 19%),
    linear-gradient(135deg, #72d0ff, #2b8fc1 54%, #1e608f);
  box-shadow:
    inset -10px -12px 20px rgba(11,32,54,.32),
    inset 6px 6px 14px rgba(255,255,255,.22),
    0 0 0 1px rgba(255,255,255,.3);
}

.radar-map::after {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.44) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255,255,255,.4) 48% 52%, transparent 53%),
    radial-gradient(ellipse at center, transparent 35%, rgba(255,255,255,.36) 36% 38%, transparent 39%),
    radial-gradient(ellipse at center, transparent 62%, rgba(255,255,255,.3) 63% 65%, transparent 66%);
  transform: rotate(-18deg);
  opacity: .86;
}

.radar-dot {
  position: absolute;
  z-index: 2;
  display: block;
  border: 0;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 18px rgba(255,255,255,.45);
}

.dot-a { left: 28px; top: 24px; width: 10px; height: 10px; border-radius: 50%; }
.dot-b { right: 22px; top: 51px; width: 7px; height: 20px; border-radius: 999px; transform: rotate(22deg); }
.dot-c { left: 48px; bottom: 20px; width: 9px; height: 9px; border-radius: 50%; }

.engine-copy {
  display: grid;
  gap: 8px;
}

.engine-copy span {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.engine-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.22;
}

.auth-card-head {
  display: grid;
  grid-template-columns: 1fr minmax(118px, 42%);
  align-items: center;
  gap: 10px;
  padding: 4px 4px 2px;
}

.auth-card-head span {
  color: color-mix(in srgb, var(--deep) 74%, #fff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-card-head select {
  height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.64);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--deep);
}

.register-method-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  padding: 4px;
  margin-bottom: 2px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 14px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}

.register-method-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.register-method-tabs button.active {
  color: #fff;
  background: var(--deep);
  box-shadow: 0 8px 20px rgba(22,45,57,.18);
}

.register-method-tabs.single-option {
  grid-template-columns: minmax(0, 1fr);
}

#registerEmailFields,
#registerPhoneFields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }

html [hidden] {
  display: none !important;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(22,32,51,.1);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  outline: 0;
}
input, select { height: 48px; padding: 0 14px; }
textarea { resize: none; padding: 12px 14px; line-height: 1.48; }

.register-fields {
  display: grid;
  gap: 14px;
}

.register-fields[hidden] {
  display: none;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.code-row button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.auth-hint {
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 54%, #111827));
  box-shadow: 0 18px 34px rgba(23,32,48,.22);
  font-weight: 900;
}

.top-actions {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: flex-end;
}

.icon-button,
.back-button,
.share-button,
.small-button {
  border: 1px solid rgba(255,255,255,.54);
  color: var(--ink);
  background: rgba(255,255,255,.46);
  box-shadow: 0 12px 30px rgba(20,30,42,.12);
  backdrop-filter: blur(18px);
}

.icon-button,
.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.gear-button {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent-2) 50%, var(--deep)));
  font-size: 19px;
  line-height: 1;
}

.compact-gear {
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.back-button {
  font-size: 30px;
  line-height: 1;
}

.quick-countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quick-countries button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 900;
}

.country-header,
.country-trip-header,
.city-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-screen {
  padding-top: max(28px, calc(env(safe-area-inset-top) + 18px));
  padding-right: 22px;
  padding-left: 22px;
}

.city-screen .city-header {
  min-height: 50px;
  padding: 0 2px 8px;
}

.city-screen .back-button {
  width: 44px;
  height: 44px;
}

.city-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.city-screen .city-actions {
  gap: 10px;
  padding-right: 2px;
}

.city-screen .share-button {
  min-height: 42px;
  padding: 0 17px;
}

.country-header div {
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.country-header strong,
.country-trip-header strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.country-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: start;
  min-height: 76px;
  gap: 8px;
  padding: 14px 12px 10px;
}

.country-header .back-button,
.country-header .gear-button {
  width: 42px;
  height: 42px;
  align-self: start;
}

.country-header .back-button {
  justify-self: start;
}

.country-header .gear-button {
  justify-self: end;
}

.country-header span {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-header strong {
  overflow: hidden;
  font-size: clamp(30px, 7.5vw, 42px);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trip-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 68px;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 10px 12px;
}

.country-trip-header div {
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.country-trip-header span {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--deep) 68%, #fff);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trip-header strong {
  overflow: hidden;
  font-size: clamp(21px, 5.8vw, 25px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trip-header .back-button {
  width: 40px;
  height: 40px;
  align-self: start;
  justify-self: start;
}

.country-trip-header-spacer {
  display: block;
  width: 40px;
  height: 40px;
  justify-self: end;
}

.small-add-button {
  width: 40px;
  height: 40px;
  align-self: start;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.34), transparent 42%),
    linear-gradient(145deg, var(--accent-2), var(--deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    0 14px 28px rgba(20,30,42,.18);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.country-art {
  position: relative;
  height: clamp(86px, 13vh, 116px);
  margin-top: 2px;
  margin-bottom: -8px;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: -36px;
  right: 24px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.88), color-mix(in srgb, var(--accent) 62%, transparent));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 32%, transparent);
}

.tower,
.ridge {
  position: absolute;
  bottom: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.14));
}

.tower {
  left: 34px;
  width: 78px;
  height: 112px;
  border-radius: 90px 90px 16px 16px;
}

.ridge {
  right: 18px;
  width: 160px;
  height: 66px;
  border-radius: 80px 80px 18px 18px;
}

.city-search-card {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 10px;
  border-radius: 22px;
}

.country-screen .city-search-card {
  position: sticky;
  top: 8px;
  z-index: 6;
  border-color: rgba(255,255,255,.68);
  background:
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 4.5rem),
    linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.36));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 14px 36px rgba(20,30,42,.12);
}

.country-screen .city-search-card label {
  gap: 5px;
}

.city-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: stretch;
}

.country-screen .city-search-card input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  font-size: 12px;
}

.city-search-submit,
#citySearchSubmit {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  padding: 0 10px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.28), transparent 44%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 50%, var(--deep)));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--deep) 20%, transparent);
  font-size: 12px;
  font-weight: 950;
}

#citySearchSubmit:disabled {
  cursor: wait;
  opacity: .62;
  box-shadow: none;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  overflow: visible;
  padding-bottom: 28px;
  scrollbar-width: none;
}

.city-grid::-webkit-scrollbar {
  display: none;
}

.top-actions,
#profileButton,
#countrySettings,
#citySettings {
  display: none;
}

.city-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.82), transparent 4.8rem),
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 18px 36px rgba(20,30,42,.12);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.city-empty strong {
  font-size: 18px;
}

.city-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.city-empty button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 46%, var(--deep)));
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--deep) 24%, transparent);
}

.country-plan-card {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border-radius: 24px;
  padding: 12px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.74), transparent 5.5rem),
    radial-gradient(circle at 100% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 6rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.24));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 18px 42px rgba(20,30,42,.12);
}

.start-point-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  border-radius: 22px;
  padding: 11px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.76), transparent 5rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.24));
}

.start-point-card label {
  display: grid;
  gap: 7px;
}

.start-point-card span {
  color: color-mix(in srgb, var(--deep) 70%, #fff);
  font-size: 10px;
  font-weight: 950;
}

.start-point-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 15px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 850;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.country-plan-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.country-plan-title-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.country-plan-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.country-plan-inline-add {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 28% 16%, rgba(255,255,255,.34), transparent 40%),
    linear-gradient(145deg, var(--accent-2), var(--deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    0 10px 22px rgba(18,55,73,.18);
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.country-plan-inline-add:active {
  transform: scale(.94);
}

.country-plan-inline-add:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-2) 24%, transparent);
  outline-offset: 2px;
}

.country-plan-head span,
.country-plan-controls span,
.country-plan-output span {
  color: color-mix(in srgb, var(--deep) 70%, #fff);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
}

.country-plan-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.12;
}

.country-auto-days {
  display: grid;
  min-width: 78px;
  min-height: 84px;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  padding: 8px 9px;
  background:
    radial-gradient(circle at 35% 8%, rgba(255,255,255,.86), transparent 3.6rem),
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 12px 26px rgba(20,30,42,.1);
  color: inherit;
}

.country-route-globe {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.5), transparent 18%),
    linear-gradient(145deg, #8be7ff 0%, #2285b7 48%, #123650 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 10px 20px rgba(15,36,54,.18);
}

.country-route-globe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  pointer-events: none;
}

.country-route-globe i {
  display: none;
}

.country-auto-days small {
  color: color-mix(in srgb, var(--deep) 78%, #000);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes countryGlobeSpin {
  from { transform: translateX(0); }
  to { transform: translateX(-48%); }
}

.country-plan-controls {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.country-plan-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.country-plan-controls input,
.country-plan-controls textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 16px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(255,255,255,.54);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.country-plan-controls input {
  height: 58px;
  text-align: center;
  font-size: 18px;
  font-weight: 950;
}

.country-plan-controls textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 118px;
  line-height: 1.42;
}

#countryTripPlaces {
  display: none;
}

.country-plan-page-card {
  margin-top: 0;
}

.country-plan-controls-rows {
  grid-template-columns: minmax(0, 1fr);
}

.country-places-field {
  grid-column: 1 / -1;
}

.earth-day-control {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  padding: 11px 8px 9px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.72), transparent 4.5rem),
    linear-gradient(150deg, rgba(255,255,255,.58), rgba(255,255,255,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 12px 26px rgba(20,30,42,.08);
}

.earth-orb {
  position: relative;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.86), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(31,148,120,.38), transparent 26%),
    linear-gradient(145deg, #74d3f4, #1e6d9a 52%, #113752);
  box-shadow:
    inset -12px -12px 22px rgba(6,23,38,.4),
    inset 8px 8px 18px rgba(255,255,255,.24),
    0 14px 28px rgba(20,30,42,.16);
}

.earth-orb::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  border-left-color: rgba(255,255,255,.08);
  transform: rotate(-22deg);
}

.earth-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,.3), transparent 42%, rgba(0,0,0,.18));
  pointer-events: none;
}

.earth-map-layer {
  position: absolute;
  inset: 0;
  width: 190%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 16% 44%, rgba(70,138,78,.84) 0 10%, transparent 11%),
    radial-gradient(ellipse at 30% 30%, rgba(70,138,78,.78) 0 12%, transparent 13%),
    radial-gradient(ellipse at 48% 60%, rgba(61,128,76,.82) 0 14%, transparent 15%),
    radial-gradient(ellipse at 66% 38%, rgba(70,138,78,.82) 0 10%, transparent 11%),
    radial-gradient(ellipse at 82% 58%, rgba(61,128,76,.76) 0 13%, transparent 14%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 16px);
  opacity: .92;
  animation: earthSpin 9s linear infinite;
}

.earth-day-control input {
  height: 32px;
  max-width: 58px;
  border-radius: 999px;
  padding: 0 4px;
  font-size: 16px;
  text-align: center;
}

.earth-day-control small {
  color: color-mix(in srgb, var(--deep) 64%, #fff);
  font-size: 10px;
  font-weight: 950;
}

@keyframes earthSpin {
  from { transform: translateX(0); }
  to { transform: translateX(-47%); }
}

.country-plan-rows {
  display: grid;
  max-height: 260px;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.country-plan-rows::-webkit-scrollbar {
  display: none;
}

.country-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 70px 30px;
  min-height: 96px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 17px;
  padding: 7px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.58), transparent 3.5rem),
    linear-gradient(145deg, rgba(255,255,255,.56), rgba(255,255,255,.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.64),
    0 8px 18px rgba(20,30,42,.06);
}

.country-plan-controls .country-plan-row input {
  height: 38px;
  border-radius: 13px;
  padding: 0 10px;
  font-size: 12px;
  text-align: left;
}

.country-plan-controls .country-plan-row input[type="number"] {
  padding: 0 4px;
  text-align: center;
  font-size: 14px;
}

.country-plan-controls .country-plan-row .country-plan-start-input {
  grid-column: 1 / -1;
  height: 34px;
  padding: 0 11px;
  text-align: left;
  font-size: 11px;
}

.country-plan-row > button[data-remove-country-row] {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.34), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 72%, var(--deep)), var(--deep));
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.country-plan-row > button[data-remove-country-row]:disabled {
  color: color-mix(in srgb, var(--deep) 46%, #fff);
  background: rgba(255,255,255,.46);
  box-shadow: none;
  opacity: .7;
}

.country-row-roundtrip {
  width: auto;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  padding: 0 8px;
  color: color-mix(in srgb, var(--deep) 72%, #000);
  background:
    radial-gradient(circle at 28% 14%, rgba(255,255,255,.72), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 8px 16px rgba(20,30,42,.06);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.country-row-roundtrip.active {
  border-color: rgba(255,255,255,.68);
  color: #fff;
  background:
    radial-gradient(circle at 26% 16%, rgba(255,255,255,.38), transparent 42%),
    linear-gradient(145deg, var(--accent-2), var(--deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 12px 22px color-mix(in srgb, var(--deep) 20%, transparent);
}

.travel-profile-card {
  display: grid;
  gap: 11px;
  padding: 13px;
  border-radius: 24px;
}

.travel-profile-head {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.travel-profile-head span {
  color: color-mix(in srgb, var(--deep) 68%, #fff);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
}

.travel-profile-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.travel-profile-grid label {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 17px;
  padding: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.72), transparent 3.8rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.travel-profile-grid span {
  overflow: hidden;
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-profile-grid input,
.travel-profile-grid select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 9px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.travel-profile-wide {
  grid-column: 1 / -1;
}

.city-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.country-mode-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 16px;
  padding: 8px 12px;
  color: color-mix(in srgb, var(--deep) 78%, #000);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.68), transparent 4rem),
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  text-align: left;
}

.country-mode-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.country-mode-toggle.active {
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.32), transparent 4rem),
    linear-gradient(145deg, var(--accent-2), var(--deep));
}

.country-mode-toggle.active::before {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 34%, transparent 36%),
    rgba(255,255,255,.28);
}

.country-mode-toggle span {
  font-size: 13px;
  font-weight: 950;
}

.country-mode-toggle small {
  grid-column: 2;
  margin-top: -5px;
  color: currentColor;
  font-size: 10px;
  font-weight: 850;
  opacity: .78;
}

.country-plan-card .primary-button {
  min-height: 44px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(20,30,42,.16);
}

.country-plan-output {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255,255,255,.42);
}

.country-plan-output[hidden] {
  display: none;
}

.country-plan-output article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.46);
}

.country-plan-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  padding: 10px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 4rem),
    rgba(255,255,255,.42);
}

.country-plan-summary p {
  margin: 0;
  color: color-mix(in srgb, var(--deep) 72%, var(--muted));
  font-size: 12px;
  line-height: 1.42;
  font-weight: 850;
}

.trip-profile-summary {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 18px;
  padding: 11px 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,255,255,.72), transparent 4.5rem),
    linear-gradient(145deg, rgba(255,255,255,.54), rgba(255,255,255,.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.trip-profile-summary span {
  color: color-mix(in srgb, var(--deep) 68%, #fff);
  font-size: 10px;
  font-weight: 950;
}

.trip-profile-summary p {
  margin: 0;
  color: color-mix(in srgb, var(--deep) 76%, var(--muted));
  font-size: 12px;
  line-height: 1.42;
  font-weight: 850;
}

.country-route-board {
  display: grid;
  gap: 8px;
}

.country-map-provider-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.country-map-provider-tabs button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  color: color-mix(in srgb, var(--deep) 76%, #000);
  background:
    radial-gradient(circle at 26% 12%, rgba(255,255,255,.7), transparent 3rem),
    rgba(255,255,255,.38);
  font-size: 11px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.country-map-provider-tabs button.active {
  color: #fff;
  background:
    radial-gradient(circle at 24% 12%, rgba(255,255,255,.28), transparent 3rem),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent-2) 50%, var(--deep)));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--deep) 22%, transparent);
}

.country-route-map-all {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 22px;
  padding: 11px 14px 11px 18px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.34), transparent 4rem),
    radial-gradient(circle at 92% 22%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 4.4rem),
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 88%, #111827), color-mix(in srgb, var(--accent-2) 58%, var(--deep)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 14px 28px rgba(20,30,42,.16);
}

.country-route-map-all span {
  grid-column: 1;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
}

.country-route-map-all strong {
  grid-column: 1;
  color: #fff;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.country-route-map-all b {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.36), transparent 42%),
    rgba(255,255,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 8px 18px rgba(0,0,0,.14);
  font-size: 24px;
}

.country-route-day-list {
  display: grid;
  gap: 8px;
}

.country-plan-output article.country-route-day-card {
  gap: 6px;
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.72), transparent 4.3rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.3));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.66),
    0 8px 18px rgba(20,30,42,.07);
}

.country-plan-output article.country-route-day-card small {
  color: color-mix(in srgb, var(--deep) 66%, var(--muted));
  font-size: 11px;
  font-weight: 850;
  line-height: 1.38;
}

.country-segment-buttons {
  display: grid;
  gap: 6px;
}

.country-segment-buttons button {
  width: 100%;
  min-height: 28px;
  justify-content: flex-start;
  border: 1px solid color-mix(in srgb, var(--accent-2) 18%, rgba(255,255,255,.5));
  border-radius: 999px;
  padding: 6px 10px;
  color: color-mix(in srgb, var(--deep) 80%, #000);
  background:
    radial-gradient(circle at 8% 16%, rgba(255,255,255,.74), transparent 3rem),
    rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.country-plan-output article.country-route-transfer-card {
  border-color: color-mix(in srgb, var(--accent-2) 30%, rgba(255,255,255,.52));
}

.country-plan-leg-list {
  display: grid;
  gap: 8px;
}

.country-plan-output article small {
  color: color-mix(in srgb, var(--deep) 66%, var(--muted));
  font-size: 11px;
  font-weight: 850;
}

.country-plan-output article.country-transfer {
  border-color: color-mix(in srgb, var(--accent-2) 28%, rgba(255,255,255,.5));
  background:
    radial-gradient(circle at 9% 14%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 3.8rem),
    rgba(255,255,255,.42);
}

.country-plan-output article.country-buffer {
  border-style: dashed;
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 4rem),
    rgba(255,255,255,.38);
}

.country-plan-output strong {
  color: var(--ink);
  font-size: 14px;
}

.country-plan-output p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.country-plan-output button {
  width: fit-content;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 48%, var(--deep)));
  font-size: 11px;
  font-weight: 950;
}

.country-plan-output .country-route-map-all {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 22px;
  padding: 11px 14px 11px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.34), transparent 4rem),
    radial-gradient(circle at 92% 22%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 4.4rem),
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 88%, #111827), color-mix(in srgb, var(--accent-2) 58%, var(--deep)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 14px 28px rgba(20,30,42,.16);
}

.country-plan-output .country-route-map-all span {
  color: rgba(255,255,255,.84);
}

.country-plan-output .country-route-map-all strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.country-plan-output .country-route-map-all b {
  width: 44px;
  height: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.36), transparent 42%),
    rgba(255,255,255,.24);
}

.city-card {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  padding: 14px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.52), transparent 4rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #fff), color-mix(in srgb, var(--accent-2) 72%, #111827));
  box-shadow: 0 18px 38px rgba(20,30,42,.16);
}

.city-card span {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  opacity: .78;
}

.city-card em {
  display: inline-grid;
  min-height: 18px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(255,255,255,.22);
  font-style: normal;
  font-size: 10px;
  opacity: .96;
}

.city-card.generated-city {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.62), transparent 4rem),
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 70%, #fff), color-mix(in srgb, var(--accent) 68%, #111827));
}

.city-card strong {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.city-card p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.38;
  opacity: .86;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-screen {
  display: none;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-bottom: 104px;
  scrollbar-width: none;
  scroll-behavior: auto;
  scroll-padding: 22px 0 140px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.city-screen.active {
  display: block;
}

.city-screen::-webkit-scrollbar {
  display: none;
}

.saved-screen {
  display: none;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.saved-screen.active {
  display: block;
}

.saved-screen::-webkit-scrollbar {
  display: none;
}

.saved-page-head {
  position: relative;
  display: grid;
  gap: 8px;
  padding: max(74px, calc(env(safe-area-inset-top) + 58px)) 4px 14px;
}

.saved-back-button {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 18px));
  left: 2px;
  width: 44px;
  height: 44px;
}

.saved-page-head span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: color-mix(in srgb, var(--deep) 68%, #fff);
  background: rgba(255,255,255,.54);
  font-size: 11px;
  font-weight: 900;
}

.saved-page-head strong {
  color: var(--ink);
  font-size: 38px;
  line-height: .98;
}

.saved-page-head p {
  max-width: 30em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.saved-page-list {
  max-height: none;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.78), transparent 7rem),
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 8rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.24));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 20px 48px rgba(20,30,42,.13);
}

.city-screen > :not(:last-child) {
  margin-bottom: 10px;
}

.city-screen .glass-card:active {
  transform: translateY(1px) scale(.992);
}

.share-button,
.small-button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
}

.share-button.saved {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--accent), var(--deep));
}

.city-cover {
  min-height: clamp(120px, 17vh, 158px);
  border-radius: 32px;
  padding: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.7), transparent 5rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #fff), color-mix(in srgb, var(--accent-2) 74%, #111827));
  box-shadow: 0 22px 52px rgba(20,30,42,.18);
}

.city-cover strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: .95;
}

.city-cover p {
  max-width: 26ch;
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: .88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-ai-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 22px;
  overflow: visible !important;
  max-height: none !important;
}

.ai-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-status-row span,
.city-fact-grid span {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 900;
}

.city-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.city-fact-grid article {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  padding: 9px;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.city-fact-grid p,
.live-advice {
  margin: 6px 0 0;
  color: rgba(22,32,51,.7);
  font-size: 11px;
  line-height: 1.32;
}

.city-fact-grid p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-chips,
.food-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.place-chips::-webkit-scrollbar,
.food-chips::-webkit-scrollbar {
  display: none;
}

.place-chips button,
.food-chips button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 900;
}

.food-chips button {
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--deep) 84%, #000);
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.28)),
    color-mix(in srgb, var(--accent) 14%, transparent);
}

.food-chips button.active {
  color: #fff;
  background:
    radial-gradient(circle at 24% 10%, rgba(255,255,255,.28), transparent 44%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 45%, var(--deep)));
}

.food-detail-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 18px;
  padding: 9px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.54), rgba(255,255,255,.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.food-detail-card[hidden] {
  display: none;
}

.food-detail-card span {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 900;
}

.food-detail-card strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.food-detail-card p {
  order: 3;
  margin: 0;
  color: rgba(22,32,51,.72);
  font-size: 11px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.restaurant-list {
  order: 2;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.restaurant-list::-webkit-scrollbar {
  display: none;
}

.restaurant-list button {
  flex: 0 0 auto;
  display: inline-flex;
  min-width: 112px;
  max-width: 150px;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 14px;
  min-height: 36px;
  padding: 5px 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.44);
}

.restaurant-list strong {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-list span {
  color: rgba(22,32,51,.64);
  font-size: 9px;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-advice {
  min-height: 30px;
  margin: 0;
  border-radius: 16px;
  padding: 9px 10px;
  background: rgba(255,255,255,.36);
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px;
  border-radius: 24px;
}

.map-card > div {
  min-width: 0;
  padding-right: 10px;
}

.map-card strong {
  display: block;
  font-size: 18px;
}

.map-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.map-card b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: 26px;
  flex: 0 0 36px;
}

.map-provider-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 20px;
  padding: 6px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.58), transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.22));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.66),
    0 14px 28px rgba(20,30,42,.08);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.map-provider-tabs button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 15px;
  color: color-mix(in srgb, var(--deep) 80%, #111827);
  background: rgba(255,255,255,.38);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.map-provider-tabs button.active {
  color: #fff;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.34), transparent 44%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent-2) 48%, var(--deep)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 10px 22px color-mix(in srgb, var(--deep) 22%, transparent);
}

.map-day-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 7px;
}

.map-day-tabs button {
  display: grid;
  gap: 2px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  padding: 7px 8px;
  color: color-mix(in srgb, var(--deep) 82%, #000);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 950;
}

.map-day-tabs button strong {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.map-day-tabs button span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.map-day-tabs button.active {
  color: #fff;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent-2) 48%, var(--deep)));
}

.map-day-tabs button.active span {
  color: rgba(255,255,255,.76);
}

.map-segment-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  padding: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.62), transparent 6rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.22));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.64),
    0 14px 30px rgba(20,30,42,.08);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.map-segment-card[hidden] {
  display: none;
}

.map-segment-head {
  display: grid;
  gap: 2px;
}

.map-segment-head span {
  color: color-mix(in srgb, var(--deep) 66%, #fff);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-segment-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.map-segment-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.map-segment-list {
  display: grid;
  gap: 6px;
}

.map-segment-list button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 16px;
  padding: 6px 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56);
}

.map-segment-list b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
  font-size: 11px;
}

.map-segment-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
}

.map-segment-list span strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.map-segment-list span small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}

.auto-route-card,
.edit-card,
.settings-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 26px;
}

.auto-route-card {
  min-height: 0;
  overflow: visible;
}

.route-head,
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-head strong,
.sheet-head strong {
  display: block;
  font-size: 20px;
}

.trip-controls {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, .98fr) minmax(0, 1.05fr);
  gap: 7px;
}

.trip-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.trip-controls span,
.route-note,
.route-day-title span,
.route-step em {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 900;
}

.trip-controls input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 8px;
  color: var(--ink);
  background: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.travel-style-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.season-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.travel-style-tabs button,
.season-tabs button,
.route-view-tabs button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  color: color-mix(in srgb, var(--deep) 82%, #000);
  background: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 900;
}

.travel-style-tabs button.active,
.season-tabs button.active,
.route-view-tabs button.active {
  color: #fff;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--accent) 46%, var(--deep)));
}

.season-tabs [data-season="spring"].active {
  background: linear-gradient(135deg, #55a86f, #e27aa0);
}

.season-tabs [data-season="summer"].active {
  background: linear-gradient(135deg, #1f91b9, #e5aa35);
}

.season-tabs [data-season="autumn"].active {
  background: linear-gradient(135deg, #a65b2e, #d89a35);
}

.season-tabs [data-season="winter"].active {
  background: linear-gradient(135deg, #2e6f9f, #d9eef7);
  color: #0d2331;
}

.season-note {
  margin: -2px 0 0;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 17px;
  padding: 9px 10px;
  color: color-mix(in srgb, var(--deep) 74%, #fff);
  background: rgba(255,255,255,.36);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.route-view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 5px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.24));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.76),
    0 12px 26px rgba(20,30,42,.09);
}

.route-view-tabs button {
  min-height: 38px;
  border-color: transparent;
  font-size: 12px;
}

.route-view-tabs button.active {
  box-shadow: 0 12px 24px rgba(20,30,42,.16);
}

.route-note {
  margin: -2px 0 0;
  line-height: 1.35;
}

.route-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: visible;
}

.route-results-card {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 18px;
  overflow: visible;
}

.route-results-card .route-view-tabs,
.route-results-card .route-note,
.route-results-card .route-generation-status,
.route-results-card .route-list {
  min-width: 0;
}

.route-results-card .route-note {
  margin: 0;
}

.route-empty {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed rgba(255,255,255,.62);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.34);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.route-day {
  display: grid;
  gap: 7px;
  border-radius: 20px;
}

.route-day-title {
  padding: 0 2px;
}

.route-day-title button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  width: 100%;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 7px 9px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.36);
}

.route-day-title strong {
  color: var(--ink);
  font-size: 14px;
}

.route-day-title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.route-day.active .route-day-title button {
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 92%, var(--accent-2)), color-mix(in srgb, var(--accent) 42%, var(--deep)));
}

.route-day.active .route-day-title span,
.route-day.active .route-day-title strong,
.route-day.active .route-day-title small {
  color: rgba(255,255,255,.86);
}

.route-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 54px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: default;
  background: rgba(255,255,255,.58);
}

.route-step:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-2) 36%, transparent);
  outline-offset: 2px;
}

.route-step.photo-open {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 14px 32px rgba(20,30,42,.12),
    0 0 0 1px color-mix(in srgb, var(--accent-2) 20%, transparent);
}

.route-step b {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.route-step strong {
  display: block;
  min-width: 0;
  font-size: 14px;
}

.route-step span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-step small {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--accent-2) 80%, var(--deep));
  font-size: 10px;
  font-weight: 900;
  line-height: 1.28;
}

.route-step .hours-note {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: color-mix(in srgb, var(--deep) 74%, #fff);
  background: rgba(255,255,255,.46);
}

.route-step .photo-hint {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
}

.route-photo-card {
  display: grid;
  gap: 9px;
  margin: -2px 0 4px 39px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  padding: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.26)),
    color-mix(in srgb, var(--glass) 76%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 16px 34px rgba(20,30,42,.12);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.route-photo-card img,
.photo-skeleton,
.photo-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  object-fit: cover;
  overflow: hidden;
}

.route-photo-card img {
  display: block;
  background: rgba(255,255,255,.45);
}

.route-photo-card figcaption {
  display: grid;
  gap: 3px;
  padding: 0 4px 2px;
}

.route-photo-card figcaption span {
  color: color-mix(in srgb, var(--deep) 70%, #fff);
  font-size: 10px;
  font-weight: 900;
}

.route-photo-card figcaption strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.route-photo-card figcaption small,
.route-photo-card figcaption a {
  color: color-mix(in srgb, var(--accent-2) 76%, var(--deep));
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
}

.route-photo-card .photo-map-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
  box-shadow: 0 10px 22px rgba(20,30,42,.14);
}

.photo-skeleton {
  position: relative;
  background:
    linear-gradient(100deg, rgba(255,255,255,.35), rgba(255,255,255,.78), rgba(255,255,255,.32)),
    radial-gradient(circle at 20% 24%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 6rem),
    radial-gradient(circle at 82% 70%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 7rem);
  background-size: 220% 100%, auto, auto;
  animation: photoShimmer 1.3s ease-in-out infinite;
}

.photo-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,.86), transparent 4.8rem),
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 7rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 34%, #fff), color-mix(in srgb, var(--deep) 26%, #fff));
}

.photo-fallback b {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 44%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(20,30,42,.16);
  font-size: 20px;
}

@keyframes photoShimmer {
  0% { background-position: 180% 0, center, center; }
  100% { background-position: -80% 0, center, center; }
}

.edit-card textarea {
  min-height: 110px;
}

.route-builder-card {
  display: grid;
  gap: 14px;
}

.route-builder-head,
.route-builder-list,
.route-add-button,
.route-builder-card .primary-button {
  position: relative;
  z-index: 1;
}

.route-builder-head {
  display: grid;
  gap: 5px;
}

.route-builder-head span,
.route-builder-tools span,
.route-builder-row label span {
  color: rgba(22,32,51,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-builder-head strong {
  color: #111c30;
  font-size: 21px;
  line-height: 1.15;
}

.route-builder-head p {
  max-width: 94%;
  color: rgba(22,32,51,.68);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.route-builder-list {
  display: grid;
  gap: 12px;
}

.route-builder-suggestions {
  display: grid;
  gap: 8px;
}

.route-builder-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-builder-tools span {
  margin-right: auto;
}

.route-builder-tools button,
.route-suggestion-rail button,
.route-add-button {
  border: 1px solid rgba(255,255,255,.7);
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38)),
    color-mix(in srgb, var(--glass) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 10px 24px rgba(22,32,51,.1);
  color: #132034;
  font-weight: 900;
}

.route-builder-tools button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.route-suggestion-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.route-suggestion-rail::-webkit-scrollbar {
  display: none;
}

.route-suggestion-rail button {
  flex: 0 0 auto;
  max-width: 172px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  scroll-snap-align: start;
}

.route-builder-rows {
  display: grid;
  gap: 10px;
}

.route-builder-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 102px 34px;
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.75), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.3));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 14px 30px rgba(22,32,51,.08);
}

.route-builder-row > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.38), transparent 42%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
  font-size: 14px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--deep) 18%, transparent);
}

.route-builder-row label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.route-builder-row input,
.route-builder-row select {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 850;
}

.route-builder-row select {
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42)),
    color-mix(in srgb, var(--glass) 70%, transparent);
}

.route-stop-remove {
  width: 34px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  color: rgba(22,32,51,.42);
  font-size: 22px;
  font-weight: 900;
}

.route-stop-remove:disabled {
  opacity: .35;
}

.route-add-button {
  width: fit-content;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.settings-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  padding: 16px 16px 84px;
  background: rgba(16,22,30,0);
  pointer-events: none;
  visibility: hidden;
  transition: background 180ms ease, visibility 0s linear 240ms;
}

.settings-sheet.open {
  background: rgba(16,22,30,.22);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.settings-panel {
  max-height: min(86dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(calc(100% + 140px));
  transition: transform 220ms cubic-bezier(.2,.72,.16,1), opacity 180ms ease;
  scrollbar-width: none;
}

.settings-panel::-webkit-scrollbar {
  display: none;
}

.settings-sheet.open .settings-panel {
  opacity: 1;
  transform: translateY(0);
}

.profile-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,.82), transparent 5.4rem),
    radial-gradient(circle at 10% 86%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.22));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 18px 38px rgba(20,30,42,.12);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 54px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 42%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 28px rgba(20,30,42,.16);
  font-weight: 950;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-avatar.has-avatar {
  color: transparent;
}

.profile-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.profile-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stats div {
  display: grid;
  gap: 2px;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  background: rgba(255,255,255,.4);
}

.profile-stats strong {
  color: var(--ink);
  font-size: 18px;
}

.profile-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.profile-menu {
  display: grid;
  gap: 6px;
}

.profile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 900;
}

.profile-menu b {
  color: color-mix(in srgb, var(--accent-2) 82%, var(--deep));
}

.saved-routes-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  padding: 13px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.72), transparent 5rem),
    linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 16px 34px rgba(20,30,42,.1);
}

.mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mini-head span {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  font-size: 10px;
  font-weight: 900;
}

.mini-head strong {
  color: var(--ink);
  font-size: 16px;
}

.saved-route-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.saved-route-list::-webkit-scrollbar {
  display: none;
}

.saved-empty,
.saved-route-item {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.42);
}

.saved-empty strong,
.saved-route-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.saved-empty p,
.saved-route-item span,
.saved-route-item small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 900;
}

.saved-route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin-top: 9px;
}

.saved-route-actions button {
  min-width: 0;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  color: color-mix(in srgb, var(--deep) 82%, #000);
  background: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 900;
}

.saved-route-actions button[data-use-route] {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(0px, env(safe-area-inset-bottom));
  z-index: 48;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  min-height: 66px;
  border-radius: 26px;
  padding: 7px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.86), transparent 7rem),
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.76),
    0 20px 52px rgba(20,30,42,.2);
}

.app:has(.bottom-nav:not([hidden])) .screen.active {
  bottom: calc(78px + env(safe-area-inset-bottom));
  height: auto;
}

.app:has(.bottom-nav:not([hidden])) .search-screen,
.app:has(.bottom-nav:not([hidden])) .country-screen,
.app:has(.bottom-nav:not([hidden])) .country-trip-screen,
.app:has(.bottom-nav:not([hidden])) .city-screen,
.app:has(.bottom-nav:not([hidden])) .saved-screen {
  padding-bottom: 24px;
  scroll-padding-bottom: 24px;
}

.bottom-nav[hidden] {
  display: none;
}

.bottom-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  background: transparent;
  font-size: 10px;
  font-weight: 950;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bottom-nav button:active {
  transform: translateY(1px) scale(.98);
}

.bottom-nav button.active {
  color: #fff;
  background:
    radial-gradient(circle at 22% 10%, rgba(255,255,255,.34), transparent 42%),
    linear-gradient(145deg, var(--accent-2), var(--deep));
  box-shadow: 0 12px 26px rgba(20,30,42,.18);
}

.bottom-nav i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

.bottom-nav span {
  line-height: 1.1;
  white-space: nowrap;
}

.bottom-nav b {
  position: absolute;
  top: 6px;
  right: 14px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 36%, transparent);
}

.ghost-button {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  color: color-mix(in srgb, var(--deep) 82%, #000);
  background:
    linear-gradient(145deg, rgba(255,255,255,.64), rgba(255,255,255,.26));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 28px rgba(20,30,42,.1);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 34px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20,28,38,.88);
  box-shadow: 0 18px 40px rgba(12,18,26,.24);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

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

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visual upgrade: translucent frosted travel UI with richer depth. */
.app {
  isolation: isolate;
  background:
    linear-gradient(150deg, rgba(255,255,255,.74), rgba(255,255,255,.18) 18%, transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.9), transparent 8.5rem),
    radial-gradient(circle at 80% 16%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 11rem),
    radial-gradient(circle at 14% 76%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 12rem),
    linear-gradient(165deg, var(--bg-a) 0%, var(--bg-b) 43%, color-mix(in srgb, var(--bg-c) 88%, var(--accent-2)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.56),
    inset 0 -28px 80px rgba(20,30,42,.08),
    0 30px 90px rgba(0,0,0,.32);
}

.app::before,
.app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.app::before {
  inset: -18% -28% auto;
  height: 44%;
  background:
    radial-gradient(circle at 16% 68%, rgba(255,255,255,.56) 0 3px, transparent 4px),
    radial-gradient(circle at 42% 48%, rgba(255,255,255,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,.54) 0 3px, transparent 4px),
    repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 1px, transparent 1px 18px),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%);
  transform: rotate(-6deg);
  opacity: .9;
}

.app::after {
  left: -18%;
  right: -18%;
  bottom: -8%;
  height: 31%;
  background:
    radial-gradient(ellipse at 28% 20%, rgba(255,255,255,.48), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent);
  transform: skewY(-5deg);
}

.screen {
  z-index: 1;
}

.glass-card,
.auth-tabs,
.icon-button,
.back-button,
.share-button,
.small-button,
.quick-countries button {
  border-color: rgba(255,255,255,.72);
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.34)),
    color-mix(in srgb, var(--glass) 72%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(255,255,255,.25),
    0 18px 44px rgba(20,30,42,.16),
    0 2px 10px rgba(255,255,255,.18);
  backdrop-filter: blur(30px) saturate(1.28);
  -webkit-backdrop-filter: blur(30px) saturate(1.28);
}

.auth-card,
.search-card,
.city-search-card,
.city-ai-card,
.auto-route-card,
.edit-card,
.map-card,
.settings-panel {
  position: relative;
  overflow: hidden;
}

.auth-card::before,
.search-card::before,
.city-search-card::before,
.city-ai-card::before,
.auto-route-card::before,
.edit-card::before,
.map-card::before,
.settings-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255,255,255,.7), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.42), transparent 6rem);
  pointer-events: none;
}

.auth-hero span,
.search-hero span,
.country-header span,
.city-cover span,
.route-head span,
.map-card span,
.sheet-head span {
  color: color-mix(in srgb, var(--deep) 72%, #fff);
  opacity: .78;
}

.auth-hero strong,
.search-hero strong {
  color: #101827;
  text-shadow: 0 14px 38px rgba(20,30,42,.16);
}

.search-hero p,
.auth-hint {
  color: rgba(22,32,51,.68);
}

input,
select,
textarea {
  border-color: rgba(255,255,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.58));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 10px 22px rgba(20,30,42,.07);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent-2) 46%, white);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.primary-button,
.auth-tabs button.active,
.code-row button {
  background:
    radial-gradient(circle at 24% 0%, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 84%, var(--accent-2)), color-mix(in srgb, var(--accent) 44%, #3a221b));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 18px 36px rgba(20,30,42,.24);
}

.quick-countries button {
  min-height: 48px;
  color: color-mix(in srgb, var(--deep) 82%, #000);
}

.country-art {
  filter: drop-shadow(0 26px 38px rgba(20,30,42,.14));
}

.sun {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), transparent 26%),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 72%, white), color-mix(in srgb, var(--accent) 38%, transparent));
}

.tower,
.ridge {
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.18)),
    color-mix(in srgb, var(--accent-2) 18%, transparent);
  backdrop-filter: blur(8px);
}

.city-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  border-color: rgba(255,255,255,.56);
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.72), transparent 4.5rem),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 76%, #fff), color-mix(in srgb, var(--accent-2) 78%, #152033));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -18px 38px rgba(0,0,0,.08),
    0 18px 36px rgba(20,30,42,.18);
}

.city-card::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -26%;
  height: 52%;
  background:
    repeating-linear-gradient(160deg, rgba(255,255,255,.18) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, rgba(255,255,255,.22), transparent);
  transform: skewY(-8deg);
}

.city-card span,
.city-card strong,
.city-card p {
  position: relative;
  z-index: 1;
}

.city-card em {
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
}

.city-cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.76), transparent 5.5rem),
    radial-gradient(circle at 16% 88%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 8rem),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 78%, #fff), color-mix(in srgb, var(--accent-2) 78%, #101827));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -28px 60px rgba(0,0,0,.12),
    0 24px 58px rgba(20,30,42,.22);
}

.city-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18%;
  height: 42%;
  background:
    repeating-linear-gradient(165deg, rgba(255,255,255,.22) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(255,255,255,.2), transparent);
  transform: skewY(-6deg);
}

.city-cover span,
.city-cover strong,
.city-cover p {
  position: relative;
  z-index: 1;
}

/* Background plate redesign: layered translucent luminous glass. */
.app {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.92), transparent 8.5rem),
    radial-gradient(circle at 86% 6%, rgba(255,178,201,.66), transparent 10rem),
    radial-gradient(circle at 10% 78%, rgba(132,213,225,.58), transparent 12rem),
    radial-gradient(circle at 82% 84%, rgba(175,222,184,.44), transparent 11rem),
    linear-gradient(155deg, #fbfcff 0%, #f4f9fb 34%, #eaf6f8 68%, #f9eff4 100%);
}

.app::before {
  inset: -6% -18% auto;
  height: 54%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.2) 42%, rgba(255,255,255,.06)),
    radial-gradient(circle at 78% 28%, rgba(255,154,186,.38), transparent 7rem),
    radial-gradient(circle at 26% 70%, rgba(106,190,214,.3), transparent 8rem);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 0 0 56px 56px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.84),
    inset 0 -34px 80px rgba(255,255,255,.24),
    0 34px 70px rgba(116,142,156,.16);
  backdrop-filter: blur(28px) saturate(1.24);
  -webkit-backdrop-filter: blur(28px) saturate(1.24);
  transform: rotate(-3deg);
  opacity: .92;
}

.app::after {
  left: -22%;
  right: -22%;
  bottom: -9%;
  height: 43%;
  background:
    linear-gradient(138deg, rgba(255,255,255,.62), rgba(255,255,255,.16) 48%, rgba(255,255,255,.08)),
    radial-gradient(circle at 18% 22%, rgba(120,208,223,.44), transparent 8rem),
    radial-gradient(circle at 72% 38%, rgba(255,190,160,.32), transparent 7rem),
    radial-gradient(circle at 62% 82%, rgba(144,213,159,.28), transparent 8rem);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 58px 58px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.76),
    0 -24px 68px rgba(74,127,143,.12);
  backdrop-filter: blur(32px) saturate(1.24);
  -webkit-backdrop-filter: blur(32px) saturate(1.24);
  transform: rotate(3deg);
  opacity: .88;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.screen::before {
  inset: 16px 12px 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.1) 45%, rgba(255,255,255,.04)),
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.54), transparent 8rem),
    radial-gradient(circle at 82% 74%, rgba(255,176,201,.18), transparent 9rem);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.66),
    inset 0 -24px 70px rgba(255,255,255,.12),
    0 22px 66px rgba(74,112,130,.1);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.screen::after {
  left: 28px;
  right: 24px;
  top: 96px;
  height: 246px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 46px;
  background:
    linear-gradient(138deg, rgba(255,255,255,.56), rgba(255,255,255,.16) 42%, rgba(255,255,255,.06)),
    radial-gradient(circle at 20% 28%, rgba(138,216,231,.34), transparent 7rem),
    radial-gradient(circle at 84% 16%, rgba(255,159,191,.32), transparent 7rem),
    radial-gradient(circle at 70% 90%, rgba(183,223,174,.28), transparent 7rem);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -22px 58px rgba(255,255,255,.12),
    0 28px 58px rgba(74,112,130,.13);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  opacity: .72;
  transform: rotate(-4deg);
}

.screen > * {
  position: relative;
  z-index: 1;
}

.auth-screen::after {
  top: 118px;
  height: 242px;
  opacity: .58;
}

.search-screen::after {
  top: 148px;
  height: 236px;
  opacity: .64;
}

.country-screen::after {
  top: 76px;
  height: 244px;
  opacity: .48;
}

.city-screen::after {
  top: 92px;
  height: 260px;
  opacity: .5;
}

.auth-hero,
.search-hero {
  padding-left: 4px;
}

.auth-card,
.search-card,
.city-search-card,
.city-ai-card,
.auto-route-card,
.edit-card,
.map-card,
.map-provider-tabs,
.map-segment-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.26)),
    color-mix(in srgb, var(--glass) 70%, transparent);
}

.route-step {
  border: 1px solid rgba(255,255,255,.54);
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.66),
    0 10px 24px rgba(20,30,42,.08);
}

.route-step em {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 3px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255,255,255,.56);
  font-style: normal;
}

.route-step.route-restaurant {
  background:
    linear-gradient(145deg, rgba(255,248,244,.82), rgba(255,255,255,.38)),
    color-mix(in srgb, var(--accent) 10%, transparent);
}

.route-step.route-restaurant b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 44%),
    linear-gradient(135deg, #b85748, var(--accent));
}

.route-step.route-experience b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
}

.route-step b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.36), transparent 44%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
}

.route-step.route-restaurant b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 44%),
    linear-gradient(135deg, #b85748, var(--accent));
}

.route-step.route-experience b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 44%),
    linear-gradient(135deg, var(--accent-2), var(--deep));
}

.map-card b {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(135deg, var(--deep), var(--accent-2));
}

.city-screen .city-ai-card,
.city-screen .auto-route-card,
.city-screen .edit-card,
.city-screen .map-card,
.city-screen .map-provider-tabs,
.city-screen .map-segment-card {
  overflow: visible;
}

.city-screen .edit-card {
  margin-bottom: 96px;
}

.settings-sheet .settings-panel {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(86dvh, 760px);
}

.quick-countries {
  max-height: 168px;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.quick-countries::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .city-screen {
    scroll-behavior: auto;
  }

  .city-screen .city-cover,
  .city-screen .glass-card,
  .city-screen .route-step,
  .city-screen::after {
    transition: none;
  }
}

@media (max-width: 390px) {
  .auth-hero strong,
  .search-hero strong { font-size: 39px; }
  .country-art { height: 92px; }
  .country-plan-controls { grid-template-columns: 74px minmax(0, 1fr); }
  .country-plan-controls-rows { grid-template-columns: 96px minmax(0, 1fr); }
  .country-plan-row {
    grid-template-columns: minmax(0, 1fr) 44px 62px 28px;
    gap: 5px;
    min-height: 92px;
    padding: 6px;
  }
  .country-plan-controls .country-plan-row input {
    padding-right: 7px;
    padding-left: 7px;
  }
  .country-row-roundtrip {
    height: 32px;
    padding: 0 5px;
    font-size: 9px;
  }
  .country-plan-row > button[data-remove-country-row] {
    width: 28px;
    height: 28px;
  }
  .travel-profile-grid,
  .city-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .travel-profile-grid input,
  .travel-profile-grid select {
    height: 38px;
  }
  .earth-day-control { min-height: 134px; }
  .earth-orb { width: 58px; height: 58px; }
  .city-cover { min-height: 158px; }
  .city-cover strong { font-size: 36px; }
  .trip-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-controls label:nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 441px) {
  .app {
    border-radius: 34px;
  }
}

/* Release UI polish: clearer hierarchy, richer travel color, calmer glass. */
:root {
  --ui-map: #157f9f;
  --ui-map-deep: #123d56;
  --ui-route: #d95b58;
  --ui-nature: #2f8b68;
  --ui-gold: #c99035;
  --ui-surface: rgba(255,255,255,.72);
  --ui-surface-strong: rgba(255,255,255,.88);
  --ui-border: rgba(255,255,255,.82);
  --ui-shadow: 0 16px 38px rgba(25,43,55,.12);
}

* {
  letter-spacing: 0;
}

.app {
  background:
    linear-gradient(118deg, rgba(255,255,255,.72) 0 16%, transparent 38%),
    linear-gradient(168deg, color-mix(in srgb, var(--bg-a) 82%, #f5fbfc), color-mix(in srgb, var(--bg-b) 88%, #fff) 42%, color-mix(in srgb, var(--bg-c) 72%, #dceff1));
}

.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,.28) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, transparent 0 72%, color-mix(in srgb, var(--accent) 10%, transparent));
}

.screen,
.bottom-nav,
.settings-sheet,
.toast {
  z-index: 2;
}

.ambient {
  display: none;
}

.glass-card,
.travel-engine,
.map-segment-card,
.map-provider-tabs,
.country-plan-output article,
.city-card,
.route-step {
  border-color: var(--ui-border);
  background: linear-gradient(145deg, var(--ui-surface-strong), var(--ui-surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--ui-shadow);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.auth-hero,
.search-hero {
  border-left: 3px solid color-mix(in srgb, var(--accent) 74%, var(--ui-route));
  padding-left: 13px;
}

.auth-hero span,
.search-hero span {
  color: color-mix(in srgb, var(--ui-map-deep) 72%, var(--accent));
  font-size: 12px;
  font-weight: 900;
}

.auth-hero strong,
.search-hero strong {
  max-width: 360px;
  color: #102033;
  font-size: 42px;
  line-height: 1.04;
  text-wrap: balance;
}

.search-hero p {
  max-width: 330px;
  margin-top: 9px;
  color: #506072;
  font-size: 14px;
  line-height: 1.55;
}

.auth-card,
.search-card,
.city-search-card,
.start-point-card,
.travel-profile-card,
.country-plan-card,
.city-ai-card,
.auto-route-card,
.edit-card,
.settings-panel {
  border-radius: 18px;
}

.auth-card,
.search-card {
  border-top: 2px solid rgba(21,127,159,.24);
}

.travel-engine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 124px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(118deg, #102a3c 0%, #176d87 58%, #2f8b68 100%);
  box-shadow: 0 18px 38px rgba(18,61,86,.24), inset 0 1px 0 rgba(255,255,255,.2);
}

.travel-engine::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: 18px;
  z-index: -1;
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 -20px 0 rgba(255,255,255,.14), 0 20px 0 rgba(255,255,255,.14);
  transform: rotate(-13deg);
}

.travel-engine .engine-copy span,
.travel-engine .engine-copy strong {
  color: #fff;
}

.travel-engine .engine-copy span {
  opacity: .68;
}

.dynamic-earth-icon.travel-earth-icon {
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(255,255,255,.1);
  box-shadow: 0 12px 26px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.32);
}

.search-card {
  gap: 12px;
  padding: 15px;
}

.search-card label > span,
.start-point-card label > span,
.country-places-field > span,
.trip-controls span,
.travel-profile-grid span {
  color: #3f5063;
  font-size: 11px;
  font-weight: 950;
}

.search-card input,
.city-search-card input,
.start-point-card input,
.trip-controls input,
.travel-profile-grid input,
.travel-profile-grid select,
.settings-panel input,
.settings-panel select {
  border: 1px solid rgba(25,63,80,.1);
  color: #17273a;
  background: rgba(255,255,255,.84);
  box-shadow: inset 0 1px 2px rgba(19,46,61,.05);
}

.search-card input::placeholder,
.city-search-card input::placeholder,
.start-point-card input::placeholder,
.trip-controls input::placeholder,
.travel-profile-grid input::placeholder,
.settings-panel input::placeholder,
.settings-panel textarea::placeholder {
  color: #536174;
  opacity: 1;
  font-weight: 850;
}

.search-card input:focus,
.city-search-card input:focus,
.start-point-card input:focus,
.trip-controls input:focus,
.travel-profile-grid input:focus,
.travel-profile-grid select:focus,
.settings-panel input:focus,
.settings-panel select:focus {
  border-color: color-mix(in srgb, var(--ui-map) 56%, #fff);
  outline: 3px solid rgba(21,127,159,.12);
}

.primary-button {
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(105deg, var(--ui-map-deep), var(--ui-map) 54%, var(--ui-route));
  box-shadow: 0 12px 24px rgba(18,61,86,.2), inset 0 1px 0 rgba(255,255,255,.24);
}

.primary-button:disabled {
  opacity: .62;
  box-shadow: none;
}

.quick-countries {
  gap: 8px;
}

.quick-countries button {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 14px;
  color: #18283a;
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 18px rgba(31,51,64,.07), inset 0 1px 0 #fff;
}

.quick-countries button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ui-map);
}

.quick-countries button:nth-child(3n+2)::before { background: var(--ui-route); }
.quick-countries button:nth-child(3n+3)::before { background: var(--ui-nature); }

.country-header,
.country-trip-header,
.city-header {
  min-height: 68px;
  border-bottom: 1px solid rgba(24,62,79,.1);
}

.back-button,
.gear-button,
.small-add-button,
.icon-button {
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 8px 18px rgba(27,48,61,.1), inset 0 1px 0 #fff;
}

.country-art {
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 18px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 26%, rgba(255,255,255,.76)), color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.7)));
  box-shadow: 0 14px 30px rgba(24,53,67,.1), inset 0 1px 0 rgba(255,255,255,.72);
}

.city-grid {
  gap: 10px;
}

.city-card {
  min-height: 118px;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}

.city-card::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ui-nature);
  box-shadow: 0 0 0 4px rgba(47,139,104,.1);
}

.city-card strong {
  color: #152438;
}

.city-card span,
.city-card p {
  color: #5c6877;
  opacity: 1;
}

.city-card em {
  border-color: rgba(21,127,159,.2);
  color: var(--ui-map-deep);
  background: rgba(21,127,159,.08);
}

.city-cover {
  min-width: 0;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 18px;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--accent) 76%, #243748), color-mix(in srgb, var(--accent-2) 72%, #173c50));
  box-shadow: 0 20px 42px color-mix(in srgb, var(--deep) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.24);
}

.city-cover::after {
  opacity: .42;
  background:
    repeating-linear-gradient(166deg, rgba(255,255,255,.28) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, transparent, rgba(255,255,255,.12));
}

.city-cover span,
.city-cover strong,
.city-cover p {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.city-cover p {
  max-width: 310px;
  color: rgba(255,255,255,.84);
}

.city-ai-card {
  border-top: 3px solid color-mix(in srgb, var(--ui-route) 66%, #fff);
}

.ai-status-row > span,
.route-head span,
.travel-profile-head span,
.country-plan-head span,
.route-builder-head > span {
  color: var(--ui-map-deep);
  font-weight: 900;
}

.food-chips,
.place-chips {
  gap: 7px;
}

.food-chips button,
.place-chips button {
  min-height: 34px;
  border: 1px solid rgba(25,63,80,.08);
  border-radius: 999px;
  color: #263648;
  background: rgba(255,255,255,.7);
  box-shadow: 0 5px 12px rgba(27,48,61,.06);
}

.food-chips button.active {
  color: #fff;
  background: linear-gradient(105deg, var(--ui-route), #bd764f);
}

.food-detail-card {
  border: 0;
  border-left: 3px solid var(--ui-route);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(217,91,88,.08), transparent 74%);
  box-shadow: none;
}

.city-fact-grid {
  gap: 0;
  border-top: 1px solid rgba(27,64,80,.1);
  border-bottom: 1px solid rgba(27,64,80,.1);
}

.city-fact-grid article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.city-fact-grid article + article {
  border-left: 1px solid rgba(27,64,80,.1);
}

.live-advice,
.season-note,
.route-note {
  border-left: 3px solid var(--ui-nature);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(47,139,104,.1), transparent);
}

.map-card {
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 18px;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px),
    linear-gradient(118deg, var(--ui-map-deep), var(--ui-map) 68%, var(--ui-nature));
  box-shadow: 0 18px 38px rgba(18,61,86,.24), inset 0 1px 0 rgba(255,255,255,.18);
}

.map-card span,
.map-card strong,
.map-card small {
  color: #fff;
}

.map-card span,
.map-card small {
  opacity: .74;
}

.map-card b {
  color: #fff;
  background: var(--ui-route);
  box-shadow: 0 8px 18px rgba(118,36,34,.22);
}

.map-provider-tabs {
  border-radius: 16px;
  padding: 5px;
  background: rgba(255,255,255,.72);
}

.map-provider-tabs button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}

.map-provider-tabs button.active {
  background: linear-gradient(110deg, var(--ui-map-deep), var(--ui-map));
}

.map-day-tabs button {
  border-radius: 12px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 7px 16px rgba(25,48,61,.07), inset 0 1px 0 #fff;
}

.map-day-tabs button.active {
  background: linear-gradient(110deg, var(--ui-map-deep), var(--ui-map));
}

.map-segment-card {
  border-radius: 16px;
  border-left: 3px solid var(--ui-map);
  background: linear-gradient(110deg, rgba(21,127,159,.08), rgba(255,255,255,.72) 45%);
}

.map-segment-list button {
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.66);
  box-shadow: none;
}

.map-segment-list b {
  background: var(--ui-map);
}

.auto-route-card {
  border-top: 3px solid var(--ui-gold);
}

.trip-controls,
.travel-profile-grid {
  gap: 9px;
}

.travel-style-tabs,
.season-tabs,
.route-view-tabs {
  border-radius: 14px;
  padding: 4px;
  background: rgba(19,54,71,.06);
}

.travel-style-tabs button,
.season-tabs button,
.route-view-tabs button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.travel-style-tabs button.active,
.route-view-tabs button.active {
  color: #fff;
  background: linear-gradient(110deg, var(--ui-map-deep), var(--ui-map));
}

.season-tabs [data-season="spring"].active { background: #4b9b68; }
.season-tabs [data-season="summer"].active { background: #e2a13a; }
.season-tabs [data-season="autumn"].active { background: #bc6848; }
.season-tabs [data-season="winter"].active { background: #477b9f; }

.route-day {
  gap: 8px;
}

.route-day-title button {
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(18,61,86,.92), rgba(21,127,159,.84));
}

.route-day-title button span,
.route-day-title button strong,
.route-day-title button small {
  color: #fff;
}

.route-day-title button small {
  opacity: .78;
}

.route-step {
  border: 1px solid rgba(255,255,255,.9);
  border-left: 4px solid var(--ui-route);
  border-radius: 14px;
  padding: 14px 13px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 24px rgba(26,48,61,.08), inset 0 1px 0 #fff;
}

.route-step.route-experience {
  border-left-color: var(--ui-nature);
  background: linear-gradient(110deg, rgba(47,139,104,.08), rgba(255,255,255,.76) 38%);
}

.route-step.route-restaurant {
  border-left-color: var(--ui-route);
  background: linear-gradient(110deg, rgba(217,91,88,.09), rgba(255,255,255,.78) 38%);
}

.route-step > b {
  color: #fff;
  background: var(--ui-map);
}

.route-step.route-experience > b { background: var(--ui-nature); }
.route-step.route-restaurant > b { background: var(--ui-route); }

.route-step em {
  color: color-mix(in srgb, var(--ui-map-deep) 70%, #fff);
}

.route-step strong {
  color: #122337;
}

.route-step .hours-note {
  border-top: 1px solid rgba(25,63,80,.08);
  padding-top: 8px;
}

.route-builder-card {
  border-top: 3px solid var(--ui-nature);
}

.route-builder-row,
.route-suggestion-rail button,
.route-add-button {
  border-radius: 12px;
}

.bottom-nav {
  left: 12px;
  right: 12px;
  min-height: 68px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 18px 18px 0 0;
  background: rgba(250,253,253,.9);
  box-shadow: 0 -10px 28px rgba(24,48,61,.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}

.bottom-nav button {
  border-radius: 12px;
  color: #566577;
}

.bottom-nav button.active {
  background: linear-gradient(110deg, var(--ui-map-deep), var(--ui-map));
}

.settings-sheet {
  background: rgba(12,28,38,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.settings-panel {
  border-top: 3px solid var(--ui-map);
}

.profile-card,
.saved-routes-card {
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(24,48,61,.08);
}

.profile-menu button {
  border-radius: 10px;
}

@media (hover: hover) {
  .quick-countries button:hover,
  .city-card:hover,
  .map-segment-list button:hover,
  .route-suggestion-rail button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(24,48,61,.13);
  }
}

@media (max-width: 390px) {
  .auth-hero strong,
  .search-hero strong {
    font-size: 38px;
  }

  .travel-engine {
    min-height: 116px;
  }

  .city-cover {
    min-height: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-countries button,
  .city-card,
  .map-segment-list button,
  .route-suggestion-rail button {
    transition: none;
  }
}

@media (max-height: 820px) {
  .screen {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .auth-screen {
    align-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .search-screen {
    padding-top: 18px;
  }

  .search-screen,
  .country-screen,
  .country-trip-screen,
  .saved-screen {
    padding-bottom: 88px;
  }

  .country-screen,
  .country-trip-screen {
    padding-top: 10px;
    padding-bottom: 124px;
  }

  .country-trip-screen {
    padding-top: max(22px, calc(env(safe-area-inset-top) + 14px));
    padding-right: 20px;
    padding-left: 20px;
  }

  .city-screen {
    padding-bottom: 100px;
  }

  .auth-hero strong,
  .search-hero strong {
    font-size: 36px;
  }

  .auth-hero,
  .search-hero {
    margin-bottom: 16px;
  }

  .auth-hero {
    transform: translateY(-6px);
  }

  .search-hero {
    margin-top: 54px;
  }

  .country-art {
    height: 82px;
  }

  .city-cover {
    min-height: 108px;
    padding: 14px;
  }

  .city-cover strong {
    font-size: 30px;
  }

  .city-ai-card {
    gap: 6px;
    padding: 9px;
  }

  .city-fact-grid article {
    min-height: 58px;
    padding: 8px;
  }

  .food-detail-card {
    gap: 5px;
    padding: 8px;
  }

  .restaurant-list button {
    min-height: 38px;
    padding: 5px 8px;
  }

  .map-card {
    min-height: 58px;
  }

  .route-step {
    min-height: 48px;
    padding: 8px;
  }

  .edit-card textarea {
    min-height: 82px;
  }

  .route-builder-card {
    gap: 11px;
  }

  .route-builder-head strong {
    font-size: 18px;
  }

  .route-builder-head p {
    max-width: 100%;
    font-size: 12px;
  }

  .route-builder-tools {
    gap: 6px;
  }

  .route-builder-tools button {
    min-height: 32px;
    padding: 0 10px;
  }

  .route-suggestion-rail button {
    max-width: 138px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .route-builder-row {
    grid-template-columns: 30px minmax(0, 1fr) 88px 30px;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
  }

  .route-builder-row > b {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .route-builder-row input,
  .route-builder-row select {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 9px;
    font-size: 12px;
  }

  .route-stop-remove {
    width: 30px;
    height: 40px;
    border-radius: 14px;
    font-size: 20px;
  }

  .route-add-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }
}

/* Pre-release clarity pass: stronger hierarchy and resilient mobile text. */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app {
  background:
    linear-gradient(145deg, rgba(255,255,255,.76) 0 13%, transparent 34%),
    linear-gradient(165deg, #f7fbfc 0%, #edf7f8 34%, #f8f3f7 68%, #eef7f2 100%);
}

.screen {
  scroll-padding-top: 18px;
  scroll-padding-bottom: 104px;
}

button,
input,
select,
textarea,
label,
strong,
span,
small,
p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.glass-card {
  border-color: rgba(255,255,255,.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    0 14px 34px rgba(24,48,61,.1);
}

.city-ai-card,
.auto-route-card,
.route-builder-card,
.country-plan-card,
.travel-profile-card {
  padding: 16px;
}

.map-card {
  min-height: 118px;
  padding: 16px 58px 16px 16px;
}

.map-card strong {
  font-size: 19px;
  line-height: 1.18;
  text-wrap: balance;
}

.map-card small {
  display: block;
  margin-top: 6px;
  line-height: 1.42;
}

.map-card b {
  right: 14px;
  width: 42px;
  height: 42px;
}

.map-provider-tabs,
.map-day-tabs,
.travel-style-tabs,
.season-tabs,
.route-view-tabs {
  gap: 6px;
}

.map-provider-tabs button,
.map-day-tabs button,
.travel-style-tabs button,
.season-tabs button,
.route-view-tabs button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-day-tabs button {
  min-height: 52px;
  padding: 8px 9px;
}

.map-day-tabs strong,
.map-day-tabs span {
  display: block;
  white-space: normal;
  line-height: 1.22;
}

.map-segment-card {
  border-left: 0;
  border-top: 3px solid var(--ui-map);
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(235,248,248,.74));
}

.map-segment-head {
  gap: 4px;
}

.map-segment-head strong {
  font-size: 17px;
  color: #14283a;
}

.map-segment-head small {
  color: #637184;
  line-height: 1.42;
}

.map-route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  margin-bottom: 11px;
}

.map-route-metrics > span {
  position: relative;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(23,74,92,.08);
  border-radius: 10px;
  padding: 12px 8px 8px;
  background: rgba(255,255,255,.74);
}

.map-route-metrics > span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8px;
  left: 8px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ui-map);
}

.map-route-metrics > span:nth-child(2)::before { background: var(--ui-route); }
.map-route-metrics > span:nth-child(3)::before { background: var(--ui-nature); }

.map-route-metrics small,
.map-route-metrics strong {
  display: block;
  text-align: center;
  line-height: 1.18;
}

.map-route-metrics small {
  color: #718092;
  font-size: 9px;
  font-weight: 800;
}

.map-route-metrics strong {
  margin-top: 5px;
  color: #172a3b;
  font-size: 11px;
}

.map-segment-list {
  gap: 7px;
}

.map-route-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 0;
  width: 100%;
  margin: 2px 0 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.map-route-strip::-webkit-scrollbar {
  display: none;
}

.map-route-node {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 0 7px;
  text-align: center;
}

.map-route-node::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 13px);
  width: calc(100% - 26px);
  height: 2px;
  background: linear-gradient(90deg, var(--ui-map), var(--ui-nature));
}

.map-route-node:last-child::after {
  display: none;
}

.map-route-node > b {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid rgba(255,255,255,.94);
  border-radius: 50%;
  color: #fff;
  background: var(--ui-map);
  box-shadow: 0 5px 12px rgba(18,61,86,.2);
  font-size: 10px;
}

.map-route-node > strong {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #405266;
  font-size: 10px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.map-segment-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 9px;
  text-align: left;
}

.map-segment-list button > span,
.map-segment-list button strong,
.map-segment-list button small {
  display: block;
  min-width: 0;
  white-space: normal;
}

.map-segment-list button strong {
  color: #172a3b;
  font-size: 12px;
  line-height: 1.28;
}

.map-segment-list button small {
  margin-top: 3px;
  color: #68778a;
  font-size: 10px;
  line-height: 1.32;
}

.route-day-title button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 9px;
  padding: 9px 11px;
}

.route-day-title button small {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,.16);
  white-space: normal;
  line-height: 1.28;
}

.route-step {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
}

.route-step > b {
  width: 38px;
  height: 38px;
}

.route-step em {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  border-radius: 8px;
  padding: 3px 7px;
  white-space: normal;
  line-height: 1.25;
}

.route-step strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.25;
  text-wrap: balance;
}

.route-step span {
  display: block;
  margin-top: 4px;
  color: #647184;
  font-size: 12px;
  line-height: 1.48;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.route-step small {
  font-size: 11px;
  line-height: 1.42;
}

.route-step .hours-note {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  padding: 8px 9px;
  color: #516173;
  background: rgba(245,249,249,.9);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.trip-controls {
  align-items: end;
}

.trip-controls label,
.travel-profile-grid label {
  display: grid;
  gap: 6px;
}

.trip-controls input,
.trip-controls select,
.travel-profile-grid input,
.travel-profile-grid select {
  width: 100%;
}

.bottom-nav button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 390px) {
  .city-ai-card,
  .auto-route-card,
  .route-builder-card,
  .country-plan-card,
  .travel-profile-card {
    padding: 13px;
  }

  .map-card {
    padding: 14px 54px 14px 14px;
  }

  .map-route-metrics {
    gap: 5px;
  }

  .country-plan-head-actions {
    gap: 7px;
  }

  .country-plan-inline-add {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .map-route-metrics > span {
    min-height: 58px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .route-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 10px;
  }

  .route-step > b {
    width: 34px;
    height: 34px;
  }

  .route-step strong {
    font-size: 16px;
  }
}

/* Release layout guards: keep long translated names and actions inside mobile bounds. */
.country-header strong,
.country-trip-header strong {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.country-header strong {
  font-size: 34px;
  line-height: 1.05;
}

.country-trip-header strong {
  font-size: 24px;
  line-height: 1.12;
}

.country-plan-head,
.country-plan-head > div,
.country-plan-head-actions,
.country-plan-output,
.country-route-day-card,
.route-step > div,
.map-card > div {
  min-width: 0;
}

.country-travel-advice {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--ui-nature, #2f8b68);
  padding: 10px 10px 10px 12px;
  background: linear-gradient(90deg, rgba(47,139,104,.11), transparent 88%);
}

.country-travel-advice > div {
  display: grid;
  gap: 2px;
}

.country-travel-advice span {
  color: color-mix(in srgb, var(--deep) 70%, #fff);
  font-size: 10px;
  font-weight: 950;
}

.country-travel-advice strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.country-travel-advice ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.country-travel-advice li {
  color: #536274;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.country-plan-output article strong,
.country-plan-output article p,
.country-plan-output article small,
.country-plan-output article span,
.country-plan-output button,
.map-card strong,
.map-card small,
.city-card span,
.city-card strong,
.city-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.travel-profile-head strong,
.country-plan-output .country-route-map-all strong,
.map-segment-list span strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.restaurant-list button {
  height: auto;
  min-height: 50px;
}

.restaurant-list strong,
.restaurant-list span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.restaurant-list span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.restaurant-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.restaurant-list button {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 54px;
  padding: 8px 10px;
}

.restaurant-list strong {
  font-size: 12px;
  line-height: 1.25;
}

.restaurant-list span {
  font-size: 10px;
  line-height: 1.3;
}

.route-suggestion-rail button {
  height: auto;
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.must-go-picker {
  display: grid;
  min-width: 0;
  gap: 7px;
  border-left: 3px solid var(--ui-map, #157f9f);
  padding: 9px 0 9px 10px;
  background: linear-gradient(90deg, rgba(21,127,159,.1), transparent 88%);
}

.must-go-picker-head {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-right: 4px;
}

.must-go-picker-head span {
  color: #183246;
  font-size: 11px;
  font-weight: 950;
}

.must-go-picker-head small {
  min-width: 0;
  color: #6b7788;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.must-go-picker-rail {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 10px 4px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.must-go-picker-rail::-webkit-scrollbar {
  display: none;
}

.must-go-picker-rail button {
  flex: 0 0 auto;
  max-width: 190px;
  min-height: 34px;
  border: 1px solid rgba(21,127,159,.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: #234154;
  background: rgba(255,255,255,.76);
  box-shadow: 0 5px 12px rgba(27,48,61,.06);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  scroll-snap-align: start;
}

.must-go-picker-rail button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(115deg, var(--ui-map-deep, #123d56), var(--ui-map, #157f9f));
}

.must-go-picker > p {
  margin: 0;
  padding-right: 6px;
  color: #6a7585;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.must-go-picker > p.must-go-pending {
  color: #9b5d24;
}

.country-plan-output button {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 32px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.25;
  text-align: left;
}

.bottom-nav button span {
  display: -webkit-box;
  min-height: 2.2em;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 390px) {
  .country-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .country-header strong {
    font-size: 30px;
  }

  .country-trip-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .country-trip-header strong {
    font-size: 21px;
  }

  .country-plan-output .country-route-map-all strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .country-travel-advice {
    padding-right: 7px;
    padding-left: 10px;
  }
}

/* App Store membership and generation credits. */
.billing-screen {
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(18px, calc(env(safe-area-inset-top) + 10px)) 16px 132px;
  scrollbar-width: none;
  background:
    linear-gradient(162deg, rgba(255,255,255,.68), transparent 34%),
    linear-gradient(180deg, rgba(226,246,248,.84), rgba(249,241,246,.9) 58%, rgba(239,247,241,.92));
}

.billing-screen::-webkit-scrollbar { display: none; }

.billing-header {
  position: sticky;
  top: -2px;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  margin: -4px -4px 14px;
  padding: 4px;
  background: rgba(244,250,250,.88);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.billing-header > div { min-width: 0; }
.billing-header span,
.billing-header strong { display: block; }
.billing-header span { color: #47606f; font-size: 9px; font-weight: 950; }
.billing-header strong { margin-top: 2px; font-size: 20px; line-height: 1.15; }

.restore-purchases {
  min-height: 38px;
  max-width: 88px;
  border: 1px solid rgba(20,65,82,.14);
  border-radius: 8px;
  padding: 0 10px;
  color: #17465a;
  background: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.billing-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(112deg, rgba(255,255,255,.12), transparent 42%), linear-gradient(135deg, #123f54, #236f7f 52%, #5a3850);
  box-shadow: 0 18px 38px rgba(24,57,69,.2), inset 0 1px 0 rgba(255,255,255,.25);
}

.billing-summary span,
.billing-summary strong,
.billing-summary small { display: block; }
.billing-summary > div:first-child span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 950; }
.billing-summary > div:first-child strong { margin-top: 6px; font-size: 24px; line-height: 1.1; }
.billing-summary > div:first-child small { margin-top: 8px; color: rgba(255,255,255,.76); font-size: 10px; font-weight: 800; line-height: 1.45; }

.usage-orbit {
  display: grid;
  min-width: 72px;
  min-height: 68px;
  place-content: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  text-align: center;
}
.usage-orbit b { font-size: 25px; line-height: 1; }
.usage-orbit span { margin-top: 5px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 900; }

.billing-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.billing-periods button { min-height: 42px; border: 0; border-radius: 6px; padding: 4px 6px; color: #5d6877; background: transparent; font-size: 12px; font-weight: 900; line-height: 1.2; }
.billing-periods button.active { color: #fff; background: #174f65; box-shadow: 0 8px 16px rgba(23,79,101,.2); }

.membership-plans { display: grid; gap: 10px; }
.membership-plan {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  overflow: hidden;
  color: #15283a;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(25,56,70,.09), inset 4px 0 0 #3a8aa2;
}
.membership-plan.advanced { box-shadow: 0 12px 26px rgba(91,45,64,.1), inset 4px 0 0 #d45b77; }
.membership-plan.super { color: #fff; border-color: rgba(255,255,255,.25); background: linear-gradient(135deg, #202a35, #3d3140 62%, #715a32); box-shadow: 0 14px 30px rgba(32,38,49,.2), inset 4px 0 0 #e9c36e; }
.membership-plan.active { outline: 2px solid #1c7b94; outline-offset: -2px; }
.membership-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.membership-plan-head span { font-size: 18px; font-weight: 950; }
.membership-plan-head strong { flex: 0 0 auto; font-size: 20px; white-space: nowrap; }
.membership-plan > b { color: #24788d; font-size: 13px; }
.membership-plan.super > b { color: #f2d78e; }
.membership-plan p { margin: 0; color: #687485; font-size: 11px; font-weight: 750; line-height: 1.45; }
.membership-plan.super p { color: rgba(255,255,255,.7); }
.membership-plan button { width: 100%; min-height: 42px; margin-top: auto; border: 0; border-radius: 7px; color: #fff; background: #174f65; font-size: 12px; font-weight: 950; }
.membership-plan.advanced button { background: #9d3f5a; }
.membership-plan.super button { color: #2e2619; background: #f0cf7b; }
.membership-plan button:disabled { color: #49646e; background: rgba(206,231,234,.92); cursor: default; }

.single-use-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-top: 1px solid rgba(24,70,84,.18);
  border-bottom: 1px solid rgba(24,70,84,.18);
}
.single-use-purchase > div span,
.single-use-purchase > div strong,
.single-use-purchase > div p { display: block; }
.single-use-purchase > div span { color: #a44b63; font-size: 9px; font-weight: 950; }
.single-use-purchase > div strong { margin-top: 4px; font-size: 17px; }
.single-use-purchase > div p { margin: 6px 0 0; color: #677484; font-size: 10px; line-height: 1.4; }
.single-use-purchase > button { display: grid; min-width: 96px; min-height: 58px; place-content: center; border: 0; border-radius: 8px; color: #fff; background: #7f354b; }
.single-use-purchase > button span { font-size: 15px; font-weight: 950; }
.single-use-purchase > button small { margin-top: 3px; font-size: 9px; font-weight: 800; }

.billing-legal { margin: 14px 4px 8px; color: #6d7785; font-size: 9px; font-weight: 750; line-height: 1.55; }
.billing-links { display: flex; gap: 8px; justify-content: center; }
.billing-links button { min-height: 32px; border: 0; padding: 0 8px; color: #245d70; background: transparent; font-size: 10px; font-weight: 900; }

.invite-panel { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(27,74,91,.14); }
.invite-panel[hidden] { display: none; }
.invite-panel > div:first-child span,
.invite-panel > div:first-child strong { display: block; }
.invite-panel > div:first-child span { color: #39748a; font-size: 9px; font-weight: 950; }
.invite-panel > div:first-child strong { margin-top: 3px; font-size: 15px; }
.invite-action-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }
.invite-action-row input,
.admin-invite-grid input { width: 100%; min-height: 42px; border: 1px solid rgba(31,80,98,.14); border-radius: 8px; padding: 0 12px; color: var(--ink); background: rgba(255,255,255,.72); outline: none; }
.invite-action-row button,
.admin-invite-panel > button { min-height: 42px; border: 0; border-radius: 8px; color: #fff; background: #1b6077; font-size: 11px; font-weight: 950; }
.invite-panel > small { color: #707b88; font-size: 9px; font-weight: 750; line-height: 1.4; }
.admin-invite-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(92px, .65fr); gap: 8px; }
.admin-invite-grid label { display: grid; gap: 5px; color: #687483; font-size: 9px; font-weight: 900; }
.admin-invite-list { display: grid; gap: 6px; }
.admin-invite-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border-bottom: 1px solid rgba(28,72,88,.1); font-size: 10px; }
.admin-invite-list > div small { color: #39806f; font-size: 8px; font-weight: 950; }
.admin-invite-list p { margin: 0; color: #74808c; font-size: 10px; }
.admin-service-settings { display: grid; gap: 12px; }
.admin-service-settings[hidden] { display: none; }

/* The first App Store release is free while purchase verification is completed. */
html.app-store-review-mode [data-review-hidden] { display: none !important; }
html.app-store-review-mode .profile-stats { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 374px) {
  .billing-screen { padding-right: 12px; padding-left: 12px; }
  .billing-header { grid-template-columns: 40px minmax(0, 1fr) 72px; }
  .billing-header strong { font-size: 17px; }
  .billing-summary { padding: 16px; }
  .billing-summary > div:first-child strong { font-size: 21px; }
  .membership-plan-head strong { font-size: 18px; }
  .single-use-purchase { grid-template-columns: 1fr; }
  .single-use-purchase > button { width: 100%; }
}

.auth-hero strong,
.search-hero strong,
.city-cover strong {
  line-height: 1.12;
  padding-bottom: 2px;
}

/* Country Walk 2.0: focused editor and a separate, readable itinerary screen. */
html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[lang="en"] body,
html[lang="es"] body,
html[lang="fr"] body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[lang="ja"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}

html[lang="ko"] body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.country-trip-screen,
.country-result-screen {
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(14px, calc(env(safe-area-inset-top) + 8px)) 14px 126px;
  scrollbar-width: none;
  background:
    linear-gradient(155deg, rgba(255,255,255,.56), transparent 32%),
    linear-gradient(180deg, rgba(231,247,248,.82), rgba(249,241,246,.9) 58%, rgba(235,247,242,.88));
}

.country-trip-screen::-webkit-scrollbar,
.country-result-screen::-webkit-scrollbar {
  display: none;
}

.country-trip-header,
.country-result-header {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin: 0 0 12px;
  padding: 4px 2px;
  background: transparent;
}

.country-trip-header > div,
.country-result-header > div {
  min-width: 0;
}

.country-trip-header span,
.country-result-header span,
.country-trip-header strong,
.country-result-header strong {
  display: block;
  overflow-wrap: anywhere;
}

.country-trip-header strong,
.country-result-header strong {
  font-size: 21px;
  line-height: 1.12;
}

.country-result-actions {
  display: flex;
  gap: 6px;
}

.country-result-actions .share-button {
  min-width: 48px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.country-preference-block {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.country-preference-block > span {
  color: #536778;
  font-size: 10px;
  font-weight: 900;
}

.country-preference-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
}

.country-preference-tabs button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 4px;
  color: #586979;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.country-preference-tabs button.active {
  color: #fff;
  background: linear-gradient(130deg, #14516b, #2187a0);
  box-shadow: 0 7px 16px rgba(22,91,113,.22);
}

.country-plan-rows {
  display: grid;
  gap: 10px;
}

.country-plan-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 108px;
  gap: 9px 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 10px 24px rgba(32,64,76,.08), inset 0 1px 0 #fff;
}

.country-row-index {
  display: grid;
  align-self: stretch;
  place-content: center;
  border-right: 1px solid rgba(26,78,95,.12);
  text-align: center;
}

.country-row-index span {
  color: #17627a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.country-row-index small {
  margin-top: 5px;
  color: #7a8793;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
}

.country-row-city-field,
.country-row-start-field,
.country-row-must-field,
.country-row-days-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.country-row-city-field > span,
.country-row-start-field > span,
.country-row-must-field > span,
.country-row-days-field > span {
  color: #617181;
  font-size: 9px;
  font-weight: 900;
}

.country-plan-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(31,79,96,.13);
  border-radius: 7px;
  padding: 0 11px;
  color: #15283a;
  background: rgba(255,255,255,.78);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.country-plan-row input:focus {
  border-color: #278ca5;
  box-shadow: 0 0 0 3px rgba(39,140,165,.12);
}

.country-plan-row input[aria-invalid="true"] {
  border-color: #c64f58;
  box-shadow: 0 0 0 3px rgba(198,79,88,.12);
}

.country-row-field-error {
  color: #a83843;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.country-row-field-error[hidden] {
  display: none;
}

.country-days-stepper {
  display: grid;
  grid-template-columns: 30px minmax(38px, 1fr) 30px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(31,79,96,.13);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
}

.country-days-stepper button {
  min-height: 40px;
  border: 0;
  color: #17627a;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.country-days-stepper button:disabled {
  color: #b8c1c8;
}

.country-days-stepper input {
  min-height: 38px;
  border: 0;
  border-right: 1px solid rgba(31,79,96,.1);
  border-left: 1px solid rgba(31,79,96,.1);
  border-radius: 0;
  padding: 0 2px;
  text-align: center;
  appearance: textfield;
}

.country-row-options {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.country-row-roundtrip {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(31,79,96,.13);
  border-radius: 7px;
  padding: 0 11px;
  color: #536879;
  background: rgba(255,255,255,.66);
}

.country-row-roundtrip span {
  font-size: 11px;
  font-weight: 950;
}

.country-row-roundtrip small {
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.country-row-roundtrip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #176a82, #4198a2);
}

.country-row-remove {
  min-width: 38px;
  min-height: 42px;
  border: 1px solid rgba(169,76,91,.12);
  border-radius: 7px;
  color: #9f5261;
  background: rgba(255,255,255,.7);
  font-size: 18px;
}

.country-row-remove:disabled {
  visibility: hidden;
}

.country-row-start-field {
  grid-column: 2 / -1;
}

.country-row-must-field {
  grid-column: 2 / -1;
  display: grid;
  min-width: 0;
  gap: 5px;
}

.country-row-must-field input {
  border-color: rgba(23, 98, 122, .2);
  background: linear-gradient(135deg, rgba(235, 250, 253, .92), rgba(255, 255, 255, .84));
}

.country-row-roundtrip-time {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 7px;
  align-items: end;
  border: 1px solid rgba(27,113,137,.18);
  border-radius: 7px;
  padding: 9px;
  background: linear-gradient(135deg, rgba(31,133,158,.1), rgba(255,255,255,.72));
}

.country-row-roundtrip-time[hidden] {
  display: none !important;
}

.country-row-roundtrip-time > span {
  grid-column: 1 / -1;
  color: #17627a;
  font-size: 9px;
  font-weight: 950;
}

.country-row-roundtrip-time label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.country-row-roundtrip-time small {
  color: #647687;
  font-size: 8px;
  font-weight: 900;
}

.country-row-roundtrip-time b {
  align-self: center;
  padding-bottom: 11px;
  color: #247c92;
  text-align: center;
}

.country-row-roundtrip-time input {
  min-height: 40px;
  padding: 0 8px;
  color: #17384a;
  background: rgba(255,255,255,.86);
  font-size: 11px;
}

.country-result-hero {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #103e56, #1e7689 58%, #80506a);
  box-shadow: 0 16px 34px rgba(23,64,80,.2);
}

.country-result-hero span,
.country-result-hero strong {
  display: block;
}

.country-result-hero span {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 900;
}

.country-result-hero strong {
  margin-top: 5px;
  font-size: 25px;
  line-height: 1.12;
}

.country-result-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.country-result-view-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(246,251,252,.78);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.country-result-view-tabs button {
  border-radius: 6px;
}

.country-result-view-note {
  margin: 0 2px 10px;
  color: #536577;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.country-result-output {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.country-day-schedule {
  display: grid;
  gap: 0;
  margin: 10px 0;
  border-top: 1px solid rgba(29,75,91,.09);
}

.country-day-schedule-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(29,75,91,.09);
}

.country-day-schedule-row time {
  color: #176d87;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
}

.country-day-schedule-row > div {
  min-width: 0;
}

.country-day-schedule-row small,
.country-day-schedule-row strong,
.country-day-schedule-row p {
  display: block;
  overflow-wrap: anywhere;
}

.country-day-schedule-row small {
  color: #7b8793;
  font-size: 9px;
  font-weight: 900;
}

.country-day-schedule-row strong {
  margin-top: 2px;
  color: #182b3d;
  font-size: 13px;
  line-height: 1.25;
}

.country-day-schedule-row p {
  margin: 3px 0 0;
  color: #667587;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.country-day-schedule-row.meal time {
  color: #a75368;
}

.country-food-overview {
  border-left-color: #bf6179;
  background: linear-gradient(90deg, rgba(191,97,121,.12), transparent 88%);
}

.country-food-overview > p {
  margin: 0;
  color: #536274;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.country-food-city-list {
  display: grid;
  gap: 6px;
}

.country-food-city-list span {
  display: block;
  border: 1px solid rgba(179,92,116,.12);
  border-radius: 7px;
  padding: 8px 10px;
  color: #5f4650;
  background: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.country-must-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(31,126,151,.15);
  border-left: 3px solid #2184a0;
  border-radius: 7px;
  padding: 11px;
  background: linear-gradient(120deg, rgba(34,137,161,.1), rgba(255,255,255,.64));
}

.country-must-summary > div:first-child {
  display: grid;
  gap: 2px;
}

.country-must-summary span,
.country-must-summary strong,
.country-must-summary p,
.country-must-summary small {
  overflow-wrap: anywhere;
}

.country-must-summary > div:first-child span {
  color: #557384;
  font-size: 9px;
  font-weight: 900;
}

.country-must-summary > div:first-child strong {
  color: #17394c;
  font-size: 15px;
  line-height: 1.25;
}

.country-must-summary p,
.country-must-summary > small {
  margin: 0;
  color: #596c7d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.country-must-applied-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.country-must-applied-list span {
  border: 1px solid rgba(31,126,151,.15);
  border-radius: 999px;
  padding: 6px 9px;
  color: #195b70;
  background: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 900;
}

.country-roundtrip-schedule {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid rgba(32,125,146,.16);
  border-radius: 7px;
  padding: 10px;
  background: linear-gradient(125deg, rgba(24,112,137,.1), rgba(255,255,255,.72));
}

.country-roundtrip-schedule > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.country-roundtrip-schedule > div span {
  color: #17647a;
  font-size: 9px;
  font-weight: 950;
}

.country-roundtrip-schedule > div strong {
  min-width: 0;
  color: #17394b;
  font-size: 11px;
  text-align: right;
}

.country-roundtrip-schedule p,
.country-roundtrip-schedule small {
  margin: 0;
  color: #536879;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.country-roundtrip-schedule small {
  color: #71808d;
  font-size: 9px;
}

.country-travel-advice li.country-roundtrip-advice {
  color: #175d72;
  font-weight: 850;
}

.country-day-schedule-row.transfer {
  margin: 6px 0;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(22,93,116,.08);
}

.country-day-schedule-row.transfer time {
  color: #785169;
}

.country-result-empty {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
}

.country-result-empty strong {
  font-size: 17px;
}

.country-result-empty p {
  margin: 7px 0 0;
  color: #657486;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 390px) {
  .country-trip-screen,
  .country-result-screen {
    padding-right: 10px;
    padding-left: 10px;
  }

  .country-plan-row {
    grid-template-columns: 36px minmax(0, 1fr) 102px;
    gap: 8px;
    padding: 10px;
  }

  .country-result-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .country-result-actions .share-button {
    min-width: 42px;
    padding: 0 7px;
  }

  .country-day-schedule-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 350px) {
  .country-plan-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .country-row-days-field {
    grid-column: 2;
  }

  .country-result-header {
    align-items: start;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .country-result-actions {
    grid-column: 2;
    justify-self: start;
  }

  .country-row-roundtrip-time {
    grid-column: 1 / -1;
  }

  .country-roundtrip-schedule > div {
    display: grid;
    justify-content: stretch;
  }

  .country-roundtrip-schedule > div strong {
    text-align: left;
  }
}

/* Structured itinerary v2 */
.trip-ready-copy ul {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0 0 0 17px;
  color: #526274;
  font-size: 11px;
  line-height: 1.45;
}

.structured-trip,
.structured-food-guide,
.structured-trip-days,
.structured-route-panel,
.structured-activities,
.structured-food-items {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.trip-overview-block,
.structured-trip-day,
.structured-food-day,
.trip-extra-block {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 12px 28px rgba(25,63,75,.08), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(125%);
}

.trip-overview-block {
  padding: 16px;
  border-left: 3px solid #2b8ca5;
}

.structured-section-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.structured-section-head span,
.structured-day-head span,
.structured-food-day > header span {
  color: #25788d;
  font-size: 10px;
  font-weight: 900;
}

.structured-section-head strong {
  color: #102035;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.trip-overview-block ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #45566a;
  font-size: 13px;
  line-height: 1.5;
}

.trip-compatibility-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #d3983e;
  border-radius: 6px;
  color: #68583f;
  background: rgba(255,247,226,.78);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}

.structured-trip-day {
  padding: 14px;
}

.structured-trip-day.active {
  border-color: rgba(55,151,176,.42);
  box-shadow: 0 16px 34px rgba(28,102,122,.13), inset 0 1px 0 rgba(255,255,255,.94);
}

.structured-day-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.structured-day-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.structured-day-head strong,
.structured-food-day > header strong {
  color: #122137;
  font-size: 17px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.structured-day-head button {
  min-height: 36px;
  max-width: 112px;
  padding: 7px 11px;
  border: 1px solid rgba(42,133,156,.25);
  border-radius: 999px;
  color: #16677c;
  background: rgba(240,251,253,.82);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
}

.structured-day-summary,
.structured-route-summary,
.trip-period-summary {
  margin: 9px 0 0;
  color: #5a687a;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.day-route-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  margin-top: 13px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px;
  background: rgba(224,233,237,.66);
}

.day-route-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 4px;
  border: 0;
  border-radius: 6px;
  color: #4f6072;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.day-route-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg,#1b6c82,#243a58);
  box-shadow: 0 8px 18px rgba(28,83,105,.2);
}

.structured-route-panel {
  margin-top: 12px;
}

.trip-period-block {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(91,116,132,.15);
}

.trip-period-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.trip-period-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #183047;
}

.trip-period-head span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  color: #fff;
  background: #2b8ca5;
  font-size: 13px;
}

.period-afternoon .trip-period-head span { background: #c48246; }
.period-evening .trip-period-head span { background: #45526f; }

.trip-period-head strong {
  font-size: 14px;
  line-height: 1.3;
}

.structured-activity-card,
.structured-food-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(125,151,164,.18);
  border-radius: 8px;
  background: rgba(250,253,253,.84);
}

.activity-order,
.structured-food-card > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #1a7d95;
  font-size: 11px;
}

.activity-fields,
.structured-food-card dl {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
}

.activity-fields > div,
.structured-food-card dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 8px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(106,132,147,.12);
}

.activity-fields > div:last-child,
.structured-food-card dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-fields dt,
.structured-food-card dt {
  color: #758594;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.45;
}

.activity-fields dd,
.structured-food-card dd {
  min-width: 0;
  margin: 0;
  color: #26394d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.activity-fields dd ul,
.structured-food-card dd ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 15px;
}

.trip-period-empty,
.structured-empty {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px dashed rgba(87,120,137,.25);
  border-radius: 7px;
  color: #778491;
  background: rgba(245,249,250,.65);
  font-size: 11px;
  line-height: 1.45;
}

.structured-food-guide > .structured-section-head {
  padding: 4px 3px;
}

.structured-food-day {
  padding: 14px;
}

.structured-food-day > header {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.structured-food-card > b {
  background: #bf665f;
}

.structured-trip-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.trip-extra-block {
  padding: 14px;
}

.trip-extra-block > strong {
  display: block;
  margin-bottom: 8px;
  color: #173047;
  font-size: 13px;
}

.trip-extra-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  color: #526274;
  font-size: 11px;
  line-height: 1.5;
}

.trip-extra-block li span {
  margin-right: 5px;
  color: #71808f;
}

.trip-extra-block li b {
  color: #33485c;
  overflow-wrap: anywhere;
}

@media (max-width: 390px) {
  .structured-trip-day,
  .structured-food-day,
  .trip-overview-block {
    padding: 12px;
  }

  .structured-day-head {
    align-items: start;
  }

  .structured-day-head button {
    max-width: 86px;
    padding-inline: 8px;
  }

  .activity-fields > div,
  .structured-food-card dl > div {
    grid-template-columns: 62px minmax(0,1fr);
  }
}

@media (max-width: 340px) {
  .structured-day-head {
    grid-template-columns: 1fr;
  }

  .structured-day-head button {
    max-width: none;
    justify-self: start;
  }

  .day-route-tabs button {
    min-height: 44px;
    font-size: 10px;
  }

  .structured-activity-card,
  .structured-food-card {
    grid-template-columns: 1fr;
  }

  .activity-fields > div,
  .structured-food-card dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Supabase country itinerary v2 */
.country-generation-state:empty {
  display: none;
}

.country-generation-state {
  margin-top: 10px;
  min-width: 0;
}

.country-generation-message {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(61,139,157,.22);
  border-radius: 8px;
  color: #274559;
  background: rgba(241,251,252,.74);
}

.country-generation-message > div {
  min-width: 0;
}

.country-generation-message strong,
.country-generation-message p {
  overflow-wrap: anywhere;
}

.country-generation-message strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.country-generation-message p {
  margin: 3px 0 0;
  color: #627487;
  font-size: 10px;
  line-height: 1.5;
}

.country-generation-message.error {
  grid-template-columns: minmax(0,1fr) auto;
  border-color: rgba(181,78,80,.25);
  background: rgba(255,245,245,.8);
}

.country-generation-message button {
  max-width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #234c61;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.country-generation-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(32,113,134,.2);
  border-top-color: #207186;
  border-radius: 50%;
  animation: country-generation-spin .8s linear infinite;
}

@keyframes country-generation-spin { to { transform: rotate(360deg); } }

.country-structured-guide,
.country-guide-days,
.country-transfer-list {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.country-intercity-section {
  min-width: 0;
  padding: 14px;
  border-left: 3px solid #b57845;
  border-radius: 8px;
  background: rgba(255,251,245,.76);
  box-shadow: 0 12px 28px rgba(77,57,37,.08);
}

.country-transfer-list {
  margin-top: 11px;
}

.country-transfer-card {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(145,113,75,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.country-transfer-card > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #9b6638;
  font-size: 11px;
}

.country-transfer-card > div,
.country-transfer-card strong,
.country-transfer-card p,
.country-transfer-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.country-transfer-card strong {
  color: #263a4c;
  font-size: 12px;
  line-height: 1.4;
}

.country-transfer-card p,
.country-transfer-card small {
  display: block;
  margin: 4px 0 0;
  color: #657384;
  font-size: 10px;
  line-height: 1.5;
}

.country-guide-day-head small {
  color: #68798a;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.country-roundtrip-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid rgba(183,124,66,.25);
  border-radius: 8px;
  color: #4e3b2b;
  background: rgba(255,247,232,.82);
}

.country-roundtrip-summary > strong {
  font-size: 12px;
}

.country-roundtrip-summary > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.country-roundtrip-summary > div b {
  color: #7d4d26;
  font-size: 12px;
}

.country-roundtrip-summary p {
  margin: 0;
  color: #675747;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.country-roundtrip-summary p span {
  margin-right: 6px;
  color: #93622e;
  font-weight: 900;
}

.activity-map-status.pending dd,
.country-map-verification.pending span {
  color: #a16729;
}

.activity-map-status.verified dd,
.country-map-verification.verified span {
  color: #24755f;
}

.country-map-verification {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(235,243,245,.72);
}

.country-map-verification span {
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.country-map-verification small {
  color: #687889;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 390px) {
  .country-generation-message {
    grid-template-columns: auto minmax(0,1fr);
  }

  .country-generation-message button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .country-generation-message.error {
    grid-template-columns: minmax(0,1fr);
  }

  .country-guide-day-head {
    grid-template-columns: minmax(0,1fr);
    align-items: start;
  }

  .country-guide-day-head button {
    max-width: none;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .country-generation-spinner { animation: none; }
}
/* Release account and legal controls */
.release-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.release-links a {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 12px;
  color: #29475b;
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.danger-button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(183, 54, 69, .28);
  border-radius: 14px;
  color: #a72639;
  background: rgba(255, 247, 248, .82);
  font: inherit;
  font-weight: 850;
}

.danger-button:disabled {
  opacity: .58;
}

@media (max-width: 390px) {
  .release-links { grid-template-columns: 1fr; }
}

/* Explicit third-party AI processing consent */
.ai-consent-dialog {
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  color: #142238;
  background: rgba(248, 252, 253, .96);
  box-shadow: 0 28px 80px rgba(16, 34, 46, .34);
  overflow: auto;
}

.ai-consent-dialog::backdrop {
  background: rgba(10, 18, 27, .58);
  backdrop-filter: blur(8px);
}

.ai-consent-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.ai-consent-kicker {
  color: #167895;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.ai-consent-card h2,
.ai-consent-card p,
.ai-consent-card ul {
  margin: 0;
  overflow-wrap: anywhere;
}

.ai-consent-card h2 {
  font-size: 22px;
  line-height: 1.25;
}

.ai-consent-card p,
.ai-consent-card li {
  color: #526278;
  font-size: 14px;
  line-height: 1.55;
}

.ai-consent-card ul {
  display: grid;
  gap: 8px;
  padding: 14px 14px 14px 32px;
  border: 1px solid rgba(73, 132, 154, .16);
  border-radius: 14px;
  background: rgba(225, 241, 245, .56);
}

.ai-consent-card .ai-consent-identity {
  color: #274459;
  font-weight: 750;
}

.ai-consent-card > a {
  width: fit-content;
  color: #0b708e;
  font-size: 13px;
  font-weight: 800;
}

.ai-consent-actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.ai-consent-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  white-space: normal;
}

#aiConsentDecline {
  color: #43546a;
  background: #e9eff2;
}

#aiConsentAccept {
  color: #fff;
  background: linear-gradient(135deg, #0e647e, #1689a7 54%, #c65a64);
}

@media (max-width: 390px) {
  .ai-consent-card { padding: 20px; }
  .ai-consent-actions { grid-template-columns: 1fr; }
}
