:root {
  color-scheme: light;
  --font-sans: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #1968d4;
  --blue-strong: #1254b2;
  --warm: #f65b37;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --ink: #24344b;
  --muted: #626f80;
  --line: #cdd7e3;
  --soft-line: #e5ebf2;
  --surface: #ffffff;
  --wash: #f8f8fc;
  --chip: #f1f3f4;
  --shadow: 0 4px 20px rgba(36, 53, 75, 0.05);
  --radius: 16px;
  --radius-button: 999px;
  --radius-input: 30px;
  --radius-multiline: 24px;
  --radius-dialog: 28px;
}


* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: #fff;
}

.app-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: block;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.app-transitioning .app-transition {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.app-transitioning .onboarding-dialog {
  visibility: hidden;
}

.app-transition-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.workspace.workspace-entering {
  animation: workspace-content-in 360ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes workspace-content-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 500;
}

h1,
h2,
h3,
.trip-home-card strong,
.place-card h3,
.timeline-title {
  font-family: var(--font-display);
  font-weight: 600;
}

input::placeholder,
textarea::placeholder {
  color: #80868b;
  font-weight: 400;
  opacity: 1;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  border: 1px solid #cbd4df;
  border-radius: 5px;
  background-color: #f1f3f6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  box-shadow: 0 2px 5px rgba(22, 34, 52, .08);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"]:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12 5 5L20 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 2px 7px rgba(25, 104, 212, .18);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input[type="checkbox"]:disabled { border-color: #dce2e9; background-color: #e9edf2; box-shadow: none; cursor: not-allowed; }
input[type="checkbox"]:disabled:checked { background-color: #9aa8b9; border-color: #9aa8b9; }

button:hover {
  background: #f8fafd;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

button.primary,
.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.18);
}

button.primary:hover,
.primary:hover {
  background: var(--blue-strong);
}

button.primary {
  border-color: transparent;
  border-radius: 12px;
  background: linear-gradient(110deg, #1968d4, #2477dc);
  box-shadow: 0 5px 14px rgba(23, 105, 255, 0.2);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

button.primary:hover {
  background: linear-gradient(110deg, #1254b2, #1765c6);
  box-shadow: 0 7px 18px rgba(23, 105, 255, 0.25);
}

button.primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(23, 105, 255, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  grid-template-columns: 210px minmax(280px, 760px) auto;
  gap: 24px;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.share-trigger { position: relative; display: inline-flex; align-items: center; }

#shareTrip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 2px 9px rgba(25, 104, 212, .18);
}

#shareTrip .share-trip-icon { width: 17px; height: 17px; fill: currentColor; transition: transform .3s ease; }
#shareTrip:hover:not(:disabled), .share-trigger:focus-within #shareTrip:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(25, 104, 212, .22); }
#shareTrip:hover:not(:disabled) .share-trip-icon, .share-trigger:focus-within #shareTrip:not(:disabled) .share-trip-icon { transform: rotate(24deg); }
#shareTrip:active:not(:disabled) { transform: translateY(0); }
#shareTrip:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.share-quick-actions {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(22, 34, 52, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.share-quick-actions::before { content: ""; position: absolute; top: -7px; right: 22px; width: 12px; height: 12px; border-top: 1px solid var(--soft-line); border-left: 1px solid var(--soft-line); background: var(--surface); transform: rotate(45deg); }
.share-trigger::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 10px; }
.share-trigger:hover .share-quick-actions, .share-trigger:focus-within .share-quick-actions { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.share-trigger:has(#shareTrip:disabled) .share-quick-actions { display: none; }
.share-quick-actions button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; padding: 8px; border: 0; border-radius: 11px; background: var(--chip); color: var(--blue); box-shadow: none; }
.share-quick-actions button:hover { background: #edf4ff; color: var(--blue-strong); transform: translateY(-1px); }
.share-quick-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.share-quick-actions :is(svg, .share-quick-symbol) { width: 24px; height: 24px; }
.share-quick-symbol { display: block; background: currentColor; mask: center / contain no-repeat; }
.share-quick-wechat { mask-image: url("/assets/wechat-logo.svg?v=1"); }
.share-quick-whatsapp { mask-image: url("/assets/whatsapp-logo.svg?v=1"); }
@media (max-width: 768px) { .share-quick-actions { display: none; } }
@media (prefers-reduced-motion: reduce) { #shareTrip, #shareTrip .share-trip-icon, .share-quick-actions, .share-quick-actions button { transition: none; } }

.language-switch {
  height: 40px;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.language-switch:hover { border-color: #aecbfa; background: var(--blue-wash); }
.language-switch-symbol { width: 29px; height: 29px; display: block; }

.top-account-button {
  max-width: 170px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border-radius: 999px;
}

.top-account-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-account-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f0fe;
  color: #174ea6;
  font-size: 11px;
  font-weight: 700;
}

.top-account-avatar img,
.account-avatar img,
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-account-avatar img {
  transition: filter 180ms ease, opacity 180ms ease;
}

.top-account-button:not(.is-authenticated) .top-account-avatar img {
  filter: grayscale(1);
  opacity: .76;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

#tripMenuButton {
  border-radius: 999px;
}

.trip-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: max-content;
  min-width: 176px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.18);
}

.trip-menu.hidden {
  display: none;
}

.trip-menu button,
.trip-menu a {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 0;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}

.trip-menu button:hover,
.trip-menu a:hover {
  background: var(--wash);
}

.trip-menu-separator {
  height: 1px;
  margin: 5px 6px;
  background: var(--soft-line);
}

.trip-menu button.danger {
  color: #b3261e;
}

.save-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.save-status[data-tone="saved"] {
  color: #137333;
}

.save-status[data-tone="error"] {
  color: #b3261e;
}

.shared-banner {
  position: relative;
  width: min(1424px, calc(100% - 56px));
  margin: 14px auto -8px;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #c4d7f8;
  border-radius: 8px;
  background: #f3f7fe;
  color: #174ea6;
  font-size: 13px;
  overflow: hidden;
  transition: min-height 260ms cubic-bezier(.2, .8, .2, 1), background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.shared-banner.hidden {
  display: none;
}

.shared-banner-content {
  min-width: 0;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-left: 8px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition: max-height 260ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1), padding 260ms ease;
}

#sharedBannerText {
  min-width: 0;
  flex: 1 1 auto;
}

.shared-banner-toggle {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #174ea6;
  border-radius: 50%;
}

.shared-banner-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.shared-banner.collapsed {
  height: 30px;
  min-height: 30px;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
  border-width: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.shared-banner.collapsed .shared-banner-content {
  max-height: 0;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.shared-banner.collapsed .shared-banner-toggle {
  position: static;
  grid-column: 2;
  justify-self: end;
  z-index: 8;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border-color: #c4d7f8;
  background: #f3f7fe;
}

.shared-banner.collapsed .shared-banner-toggle svg {
  width: 15px;
  height: 15px;
}

.shared-banner.collapsed .shared-banner-toggle svg {
  transform: rotate(180deg);
}

.shared-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.shared-banner-actions button {
  min-height: 34px;
  white-space: nowrap;
}

body.trip-home-active .search-box,
body.trip-home-active .save-status,
body.trip-home-active .share-trigger,
body.trip-home-active .shared-banner {
  display: none !important;
}

body.trip-home-active .topbar {
  grid-template-columns: auto 1fr;
}

body.trip-home-active .top-actions {
  grid-column: 2;
}

.trip-home {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 52px 28px 72px;
  background:
    radial-gradient(circle at 18% 8%, rgba(67, 166, 255, 0.16), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(118, 200, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #fff 52%);
}

.trip-home-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trip-home-hero {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 58px);
  padding: clamp(38px, 4.5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(180, 205, 232, 0.72);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px rgba(49, 92, 137, 0.12);
}

.trip-home-hero-copy {
  position: relative;
  z-index: 2;
}

.trip-home-hero-copy h1,
.trip-home-hero-copy p {
  margin: 0;
}

.trip-home-hero-copy h1 {
  max-width: 560px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.trip-home-hero-copy h1 > span {
  display: block;
}

.trip-home-hero-copy h1 > span + span {
  margin-top: 7px;
}

.trip-home-brand {
  white-space: nowrap;
}

.trip-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trip-home-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
}

.trip-home-lead {
  max-width: 560px;
  margin-top: 18px !important;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.trip-home-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.trip-home-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #425466;
  font-size: 14px;
  font-weight: 600;
}

.trip-home-features svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trip-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.trip-home-guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.trip-home-guest button {
  min-height: 44px;
  padding: 0 10px;
  border-color: transparent;
  color: var(--blue-strong);
  background: transparent;
  font-weight: 650;
}

.trip-home-visual {
  min-width: 0;
  transform: rotate(1.5deg);
}

.trip-home-visual-frame {
  position: relative;
  aspect-ratio: 1.3;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: linear-gradient(145deg, #dceeff, #f5fbff 58%, #dff5ff);
  box-shadow: 0 22px 52px rgba(36, 88, 139, 0.18);
}

.trip-home-visual-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: contain;
}

.trip-home-visual-chip {
  position: absolute;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(204, 219, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #324256;
  box-shadow: 0 12px 28px rgba(45, 83, 120, 0.15);
  font-size: 13px;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.trip-home-visual-chip b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.trip-home-visual-chip.chip-one { left: -24px; top: 18%; }
.trip-home-visual-chip.chip-two { right: -26px; top: 46%; }
.trip-home-visual-chip.chip-three { left: 8%; bottom: -18px; }

.trip-home-inspirations {
  margin-top: 32px;
  padding: 30px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 46px rgba(60, 64, 67, 0.07);
}

.trip-home-inspiration-head h2,
.trip-home-inspiration-head p {
  margin: 0;
}

.trip-home-inspiration-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.trip-home-inspiration-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.trip-home-inspiration-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.trip-home-inspiration-filters::-webkit-scrollbar { display: none; }

.trip-home-inspiration-filters button {
  min-width: max-content;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #5f6d7f;
  background: #f1f4f8;
  box-shadow: none;
  font-weight: 700;
}

.trip-home-inspiration-filters button.active {
  color: #fff;
  background: var(--blue);
}

.trip-home-inspiration-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.trip-home-inspiration-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: #214b76;
  box-shadow: 0 12px 30px rgba(26, 59, 92, 0.13);
  text-align: left;
  cursor: pointer;
}

.trip-home-inspiration-card img,
.trip-home-inspiration-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trip-home-inspiration-card img { object-fit: cover; }

.trip-home-inspiration-card::after {
  content: "";
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.04) 20%, rgba(9, 22, 34, 0.9) 100%);
}

.trip-home-inspiration-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 22px;
}

.trip-home-inspiration-copy strong { font-size: 21px; line-height: 1.25; }
.trip-home-inspiration-copy > span { color: rgba(255, 255, 255, 0.84); font-size: 13px; }

.trip-home-inspiration-route {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.45;
}

.trip-home-inspiration-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 16px;
  color: var(--muted);
  background: #f6f9fc;
  text-align: center;
}

.trip-home-import {
  margin-top: 32px;
  padding: 30px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 46px rgba(60, 64, 67, 0.07);
}

.trip-home-import[data-expanded="false"] .trip-import-panels,
.trip-home-import[data-expanded="false"] .trip-import-status {
  display: none;
}

.trip-home-import[data-expanded="false"] {
  padding-top: 22px;
  padding-bottom: 22px;
}

.trip-home-import-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.trip-home-import-head h2,
.trip-home-import-head p {
  margin: 0;
}

.trip-home-import-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.trip-home-import-head p {
  max-width: 650px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.trip-import-tabs {
  min-width: max-content;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #f4f7fb;
}

.trip-import-tabs button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-button);
  color: #627084;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.trip-import-tabs button.active {
  color: var(--blue-strong);
  background: #fff;
  box-shadow: 0 5px 16px rgba(37, 70, 104, 0.1);
}

.trip-import-tabs svg,
.trip-import-file-picker svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trip-import-panels {
  margin-top: 22px;
}

.trip-import-panel {
  display: grid;
  gap: 10px;
}

.trip-import-panel > label:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.trip-import-panel textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-multiline);
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.trip-import-file-picker:focus-within,
#homeImportImage:focus-visible + .trip-import-file-picker {
  border-color: rgba(26, 115, 232, 0.75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.trip-import-panel textarea:focus {
  border-color: var(--blue);
  background: #fff;
  outline: none;
  box-shadow: none;
}

.trip-import-file-picker {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed #a9c5e5;
  border-radius: var(--radius-multiline);
  color: var(--blue-strong);
  background: #f7fbff;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.trip-import-file-picker:hover {
  border-color: var(--blue);
  background: #f0f7ff;
}

.trip-import-file-picker > svg {
  width: 30px;
  height: 30px;
}

.trip-import-file-picker span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.trip-import-file-picker strong {
  overflow-wrap: anywhere;
}

.trip-import-file-picker small,
.trip-import-panel-footer small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trip-import-panel-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.trip-import-panel-footer .primary {
  min-width: 150px;
  min-height: 48px;
  border-radius: var(--radius-button);
  font-weight: 700;
}

.trip-import-panel-footer .primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.trip-import-status {
  min-height: 94px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d9e8f9;
  border-radius: 14px;
  color: #35516f;
  background: #f5faff;
}

.trip-import-status[data-tone="error"] {
  border-color: #f2b8b5;
  color: #a8241a;
  background: #fff7f6;
}

.trip-import-status[data-tone="success"] {
  border-color: #b8ddca;
  color: #176b42;
  background: #f3fbf7;
}

.trip-import-status[data-tone="error"] .trip-import-progress {
  display: none;
}

.trip-import-loading {
  min-height: 76px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.trip-import-status .brand-loading {
  width: 84px;
  height: 76px;
  min-height: 76px;
}

.trip-import-status .choosej-inline-loader-frame {
  width: 84px;
  height: 76px;
}

.trip-import-status-message {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-size: 14px;
  font-weight: 650;
}

.trip-import-progress {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dceafb;
}

.trip-import-progress > span {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #87baff, var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}

.trip-home-library {
  margin-top: 48px;
  padding: 30px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 46px rgba(60, 64, 67, 0.07);
}

.trip-home:not(.has-trips) .trip-home-library {
  display: none;
}

.trip-home-head h2,
.trip-home-head p {
  margin: 0;
}

.trip-home-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.trip-home-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.trip-home-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.trip-home-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 10px 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.trip-home-card:hover {
  border-color: #aecbfa;
  background: #f8fbff;
  box-shadow: 0 6px 18px rgba(60, 64, 67, 0.09);
  transform: translateY(-1px);
}

.trip-home-card.current {
  border-color: #8ab4f8;
  background: linear-gradient(145deg, #f1f7ff, #fff);
}

.trip-home-card-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.trip-home-card-copy > strong,
.trip-home-card-copy > span {
  display: block;
  grid-column: auto;
}

.trip-home-card-actions {
  display: grid;
  align-content: center;
  gap: 7px;
}

.trip-home-card-actions button {
  min-width: 126px;
  min-height: 38px;
  border-radius: 10px;
  white-space: nowrap;
}

.trip-home-card .trip-home-card-actions small {
  display: inline;
  grid-column: auto;
  grid-row: auto;
  margin-left: 4px;
  color: inherit;
  font-size: 11px;
}

.trip-home-card strong,
.trip-home-card span {
  min-width: 0;
}

.trip-home-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-home-card span {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}

.trip-home-card small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 600;
}

.trip-home-card .trip-home-card-actions small {
  display: inline;
  grid-column: auto;
  grid-row: auto;
  margin-left: 4px;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
}

.trip-creator-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  color: #5f6368 !important;
  font-size: 12px !important;
  line-height: 1.25;
}

.trip-home-card > .trip-creator-badge {
  grid-column: 1;
  margin-top: 2px;
}

.trip-creator-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e8f0fe;
  color: #174ea6 !important;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.22);
  font-size: 11px !important;
  font-weight: 700;
}

.trip-creator-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trip-creator-badge > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-home-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.trip-home-list > .trip-home-empty {
  grid-column: 1 / -1;
  margin-top: 0;
}

.trip-home-empty strong {
  color: var(--ink);
}

.trip-home-empty button {
  margin-top: 8px;
}

.trip-home-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.trip-home-resources a {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.trip-home-resources a:hover {
  border-color: #aecbfa;
  background: #f8fbff;
  transform: translateY(-1px);
}

.trip-home-resources svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-home-resources span,
.trip-home-resources strong,
.trip-home-resources small {
  min-width: 0;
  display: block;
}

.trip-home-resources strong {
  font-size: 15px;
}

.trip-home-resources small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #3c4043;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.brand:hover {
  background: transparent;
}

.brand-wordmark {
  display: block;
  width: auto;
  max-width: 176px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand-wordmark-en { display: none; }
html[lang^="en"] .brand-wordmark-zh { display: none; }
html[lang^="en"] .brand-wordmark-en { display: block; }

@media (min-width: 761px) {
  .topbar { grid-template-columns: 196px minmax(320px, 680px) minmax(250px, 1fr); }
}

@media (max-width: 1180px) {
  .brand-wordmark { max-width: 158px; height: 38px; }
}

@media (max-width: 430px) {
  .brand-wordmark { max-width: 145px; height: 35px; }
}

.search-box {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
  overflow: hidden;
}

.search-box:focus-within {
  border-color: transparent;
  box-shadow: 0 1px 8px rgba(32, 33, 36, 0.2);
}

.search-box input {
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 20px;
  min-width: 0;
  font-size: 16px;
}

.search-box button {
  height: 36px;
  margin-right: 5px;
  border-radius: 20px;
}

.workspace {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px 28px 18px;
  display: grid;
  grid-template-columns: 340px minmax(380px, 1fr) 460px;
  gap: 20px;
  align-items: start;
}

.controls-panel,
.recommend-panel,
.plan-panel {
  background: var(--surface);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls-panel {
  padding: 18px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

.recommend-panel,
.plan-panel {
  min-height: 620px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.recommend-panel {
  display: flex;
  flex-direction: column;
}

.plan-panel {
  display: flex;
  flex-direction: column;
}

.section-head,
.panel-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-head h2 {
  font-size: 24px;
}

.panel-toolbar {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.plan-panel > .panel-toolbar {
  flex: 0 0 auto;
  max-height: 260px;
  overflow: hidden;
  transition: max-height 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease,
    padding 220ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.8,.2,1),
    border-color 180ms ease;
}

.plan-panel.itinerary-browsing > .panel-toolbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  border-bottom-color: transparent;
  pointer-events: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.panel-toolbar p,
.card-meta,
.small-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.city-badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 16px;
  background: #e8f0fe;
  color: #174ea6;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.form-grid,
.meal-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.trip-builder {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--soft-line);
}

.builder-labels,
.city-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 34px;
  gap: 8px;
  align-items: center;
}

.builder-labels {
  color: var(--muted);
  font-size: 12px;
}

.builder-labels span:nth-child(2) {
  text-align: center;
}

.city-plan-rows {
  display: grid;
  gap: 8px;
}

.city-plan-row input,
.city-plan-row select {
  min-width: 0;
}

.city-plan-row .city-days-input {
  width: 100%;
  padding: 0 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.city-days-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.city-days-control span {
  display: none;
}

.remove-city-row {
  width: 34px;
  min-width: 34px;
  padding: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.add-trip-city {
  width: 100%;
  border-style: dashed;
  color: var(--blue);
}

.add-trip-city:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.inline-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hotel-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.hotel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.hotel-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.day-tabs {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  --selection-background: #e8f0fe;
  --selection-border: 1px solid rgba(26, 115, 232, .45);
  --selection-radius: 8px;
}

.add-day {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border-style: dashed;
  color: var(--blue);
  background: #fff;
}

.add-day:hover {
  background: #f8fbff;
  border-color: var(--blue);
}

.day-tab {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 78px 8px 10px;
  text-align: left;
  border-radius: 8px;
}

.day-tab-shell {
  position: relative;
  min-width: 0;
}

.day-drag-handle,
.remove-day {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 30px;
  min-width: 30px;
  height: 30px;
  transform: translateY(-50%);
}

.day-drag-handle {
  right: 42px;
  padding: 6px;
  border: 0;
  color: #5f6368;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.day-drag-handle:active { cursor: grabbing; }
.day-drag-handle svg { width: 18px; height: 18px; }
.day-drag-handle:hover:not(:disabled) { color: var(--blue); background: #e8f0fe; }
.day-drag-handle:disabled { opacity: .25; cursor: not-allowed; }

.remove-day {
  right: 8px;
  padding: 0;
  border: 0;
  color: #6f767d;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.day-drag-ghost { opacity: .28; }
.day-drag-chosen { box-shadow: 0 8px 22px rgba(32, 33, 36, .14); }
.day-dragging { cursor: grabbing; }

.remove-day:hover:not(:disabled) {
  color: #d93025;
  background: #fce8e6;
}

.remove-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.day-tab.active {
  border-color: rgba(26, 115, 232, 0.45);
  background: #e8f0fe;
  color: #174ea6;
}

.day-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chip);
  color: #3c4043;
  font-size: 13px;
  font-weight: 600;
}

.day-tab.active .day-number {
  background: #fff;
  color: var(--blue);
}

.day-name {
  min-width: 0;
}

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

.day-name strong {
  font-size: 14px;
}

.day-name span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  width: 100%;
}

textarea {
  min-height: 88px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(26, 115, 232, 0.18);
  border-color: var(--blue);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.metric-row div {
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 10px 8px;
  background: var(--wash);
}

.metric-row strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.recommend-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.select-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c4043;
  cursor: pointer;
}

.select-toggle input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.recommend-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.recommend-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.recommend-action-buttons button {
  border-radius: 999px;
  white-space: nowrap;
}

.city-auto-plan-status {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--soft-line);
  background: #e8f0fe;
  color: #174ea6;
  font-size: 13px;
  line-height: 1.45;
}

.city-auto-plan-status.warning {
  background: #fef7e0;
  color: #8d4e00;
}

.transport-options {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transport-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--chip);
  color: #3c4043;
  font-size: 12px;
  white-space: nowrap;
}

.transport-pill.recommended {
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 600;
}

.tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  background: var(--chip);
  border-radius: 8px;
  --selection-background: #fff;
  --selection-border: 0;
  --selection-radius: 6px;
  --selection-shadow: 0 1px 2px rgba(60, 64, 67, .14);
}

.selection-slider-host {
  position: relative;
  isolation: isolate;
}

.selection-slider-host > button,
.selection-slider-host > .day-tab-shell,
.day-tab {
  position: relative;
  z-index: 1;
}

.selection-slider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--selection-width);
  height: var(--selection-height);
  border: var(--selection-border, 0);
  border-radius: var(--selection-radius, 8px);
  background: var(--selection-background, #fff);
  box-shadow: var(--selection-shadow, none);
  pointer-events: none;
  transform: translate3d(var(--selection-x), var(--selection-y), 0);
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1), width 300ms cubic-bezier(.2, .8, .2, 1), height 300ms cubic-bezier(.2, .8, .2, 1), border-radius 220ms ease;
}

.selection-slider.selection-slider-instant { transition: none; }
.selection-slider.selection-slider-instant::before { transition: none !important; }

.tabs.selection-slider-ready .tab.active,
.nearby-restaurant-tabs.selection-slider-ready button.active,
.account-tabs.selection-slider-ready button.active,
.packing-tabs.selection-slider-ready button.active,
.mobile-navigation.selection-slider-ready .mobile-nav-tab.active,
.day-tabs.selection-slider-ready .day-tab.active {
  background: transparent;
  box-shadow: none;
}

.selection-slider-line .selection-slider {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.selection-slider-line .selection-slider::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: #25b9ee;
}

.selection-slider-line.selection-slider-ready .active::after { opacity: 0; }

.mobile-navigation.selection-slider-mobile .selection-slider::before {
  content: "";
  position: absolute;
  left: var(--selection-accent-x);
  top: var(--selection-accent-y);
  width: var(--selection-accent-width);
  height: var(--selection-accent-height);
  border-radius: 50%;
  background: var(--blue);
  transition: left 300ms cubic-bezier(.2, .8, .2, 1), top 300ms cubic-bezier(.2, .8, .2, 1), width 300ms cubic-bezier(.2, .8, .2, 1), height 300ms cubic-bezier(.2, .8, .2, 1);
}

.mobile-navigation.selection-slider-mobile .selection-slider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #25b9ee;
  transform: translateX(-50%);
}

.mobile-navigation.selection-slider-ready .mobile-nav-tab.active::after { opacity: 0; }

.mobile-navigation.selection-slider-ready .mobile-nav-tab.active .mobile-nav-symbol {
  background: transparent;
  transform: none;
}

.choice-content-forward { animation: choice-content-forward 280ms cubic-bezier(.2, .8, .2, 1) both; }
.choice-content-back { animation: choice-content-back 280ms cubic-bezier(.2, .8, .2, 1) both; }

@keyframes choice-content-forward {
  from { opacity: .35; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes choice-content-back {
  from { opacity: .35; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.tab {
  border: 0;
  min-height: 32px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.14);
}

/* One search field; the existing filter control reveals secondary controls. */
#recommendPanel .place-search { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; padding:12px 16px; border:0; background:transparent; }
#placeSearchForm #placeSearchInput { grid-column:1; grid-row:1; width:100%; min-width:0; min-height:46px; padding:10px 16px; border:1px solid #d6e1ed; border-radius:var(--radius-input); background:white; font-size:14px; }
#placeSearchForm #mobileFilterToggle { grid-column:2; grid-row:1; display:grid; place-items:center; min-width:44px; width:44px; height:46px; padding:0; border:1px solid #d6e1ed; border-radius:50%; color:var(--muted); background:white; }
#mobileFilterToggle > span { display:none; }
#mobileFilterToggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
#placeSearchForm #mobileFilterToggle[aria-expanded="true"] { color:var(--blue); background:#edf4ff; }
#recommendPanel:not(.mobile-filters-open) :is(#recommendFilters,#placeSearchKind,#placeSearchForm > button[type="submit"],#autoPlanCity) { display:none; }
#recommendPanel.mobile-filters-open #placeSearchKind { grid-column:1; grid-row:2; width:100%; min-width:0; min-height:44px; border-radius:var(--radius-input); font-size:14px; }
#recommendPanel.mobile-filters-open #placeSearchForm > button[type="submit"] { grid-column:1 / -1; grid-row:3; min-height:44px; border-radius:var(--radius-button); }
#recommendPanel.mobile-filters-open #recommendFilters { display:flex; flex-wrap:wrap; padding:8px 0 0; gap:6px; background:transparent; border-radius:0; }
#recommendPanel #recommendFilters .selection-slider { display:none; }
#recommendPanel #recommendFilters .tab { flex:none; padding:6px 12px; min-height:44px; border-radius:var(--radius-button); box-shadow:none; }
#recommendPanel #recommendFilters .tab.active { background:#e6f0ff; color:var(--blue); }
#recommendPanel:not(.mobile-filters-open) .place-workflow-tools:has(>label[hidden]) { display:none; }

#sourceStatus.loading::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: source-status-pulse 700ms ease-in-out infinite alternate;
}

@keyframes source-status-pulse {
  to { opacity: .3; transform: scale(.78); }
}

.card-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: auto;
  flex: 1 1 auto;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
}

.card-list.results-entering > .place-card,
.card-list.results-entering > .empty-state {
  animation: recommendation-content-in 300ms cubic-bezier(.2, .8, .2, 1) both;
}

.card-list.results-entering > .place-card:nth-child(2) { animation-delay: 24ms; }
.card-list.results-entering > .place-card:nth-child(3) { animation-delay: 48ms; }
.card-list.results-entering > .place-card:nth-child(4) { animation-delay: 72ms; }
.card-list.results-entering > .place-card:nth-child(n + 5) { animation-delay: 88ms; }

.card-list.results-entering.results-forward > .place-card,
.card-list.results-entering.results-forward > .empty-state { animation-name: recommendation-content-forward; }
.card-list.results-entering.results-back > .place-card,
.card-list.results-entering.results-back > .empty-state { animation-name: recommendation-content-back; }

.recommendation-loading {
  min-height: clamp(280px, 56vh, 560px);
  display: grid;
  place-items: center;
}

.recommendation-loading-label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.recommendation-loading-label strong {
  font-weight: 500;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dce6f5;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loading-spin 700ms linear infinite;
}

.brand-loading {
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  background: #fff;
}

.choosej-inline-loader-frame {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  background: #fff;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: #fbfcfd;
  backdrop-filter: none;
  opacity: 1;
  transition: opacity 220ms ease, visibility 0s;
}

.map-loading.hiding {
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.choosej-map-loader-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fbfcfd;
}

.timeline .brand-loading {
  min-height: 260px;
}

.timeline .choosej-inline-loader-frame {
  height: 260px;
}

.recommendation-skeleton {
  min-height: 126px;
  display: grid;
  grid-template-columns: 28px 128px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.recommendation-skeleton::before,
.skeleton-image,
.skeleton-copy i {
  content: "";
  display: block;
  border-radius: 5px;
  background: #edf1f5;
  animation: skeleton-pulse 850ms ease-in-out infinite alternate;
}

.recommendation-skeleton::before {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.skeleton-image {
  width: 128px;
  height: 96px;
}

.skeleton-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 3px;
}

.skeleton-copy i {
  width: 80%;
  height: 15px;
}

.skeleton-copy i:first-child { width: 46%; height: 20px; }
.skeleton-copy i:last-child { width: 62%; }

@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes skeleton-pulse { to { background: #f7f9fb; } }

@keyframes recommendation-content-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes recommendation-content-forward {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes recommendation-content-back {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.recommend-panel.browsing .panel-toolbar .tabs,
.recommend-panel.browsing .recommend-actions {
  animation: compact-controls-in 220ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes compact-controls-in {
  from { opacity: .58; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.recommend-panel.browsing .panel-toolbar {
  padding-top: 8px;
  padding-bottom: 8px;
  align-items: center;
}

.recommend-panel.browsing .panel-toolbar > div:first-child,
.recommend-panel.browsing .place-search {
  display: none;
}

.recommend-panel.browsing .panel-toolbar .tabs {
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.recommend-panel.browsing .recommend-actions {
  padding-top: 4px;
  padding-bottom: 4px;
}

@media (max-width: 720px) {
  .recommend-action-buttons {
    flex-wrap: wrap;
  }
}

.place-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
}

/* Place browsing: photos and facts lead; explicit actions share one footer. */
.place-views { display:flex; gap:24px; padding:0; border-bottom:1px solid var(--soft-line); background:transparent; }
.place-views > button { position:relative; flex:0 0 auto; min-width:0; min-height:44px; padding:0 1px; border:0; border-radius:0; color:var(--muted); background:transparent; box-shadow:none; font-size:14px; white-space:nowrap; }
.place-views > button.active { color:var(--blue); background:transparent; font-weight:600; }
.place-views > button.active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; border-radius:2px; background:var(--blue); }
.place-view-count { font-size:12px; margin-left:4px; font-variant-numeric:tabular-nums; }
.recommend-title-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }
#recommendResultCount { color:var(--muted); font-size:12px; }
#togglePlaceBatch { flex:none; min-height:44px; padding:0 4px; border:0; border-radius:var(--radius-button); box-shadow:none; background:transparent; color:var(--blue); font-size:13px; }
.place-workflow-tools, .place-batch-selection { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; padding:0 20px 8px; }
.place-workflow-tools:has(>label[hidden]):has(>button[hidden]) { display:none; }
.place-workflow-tools > button, .place-batch-selection > button { min-height:44px; padding:4px 0; border:0; border-radius:var(--radius-button); background:transparent; font-size:12px; color:var(--muted); box-shadow:none; }
.place-workflow-tools > label { display:flex; align-items:center; gap:8px; min-width:0; flex:1; font-size:13px; }
.place-workflow-tools > label > span { flex-shrink:0; white-space:nowrap; }
.place-workflow-tools select { min-width:0; width:100%; min-height:44px; border-radius:var(--radius-button); }
.place-batch-bar { padding-top:4px; background:#edf4ff; }
.place-batch-selection > span { font-size:13px; color:var(--muted); }
.place-batch-selection .select-toggle { min-height:44px; }
.place-batch-check { position:absolute; left:12px; top:12px; z-index:2; display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:8px; background:white; }
.place-batch-check > input { width:23px; height:23px; min-height:23px; margin:0; border-radius:5px; }
#recommendations .place-card.place-workflow-card, #recommendations.batch-selecting .place-card.place-workflow-card { position:relative; display:block; min-height:0; padding:12px; border:1px solid var(--soft-line); border-radius:16px; background:white; box-shadow:none; transform:none; }
#recommendations .place-card.place-workflow-card:hover { border-color:#bdcfe6; }
#recommendations .place-card.place-workflow-card > .place-card-content { display:grid; grid-template-columns:160px minmax(0,1fr); grid-auto-rows:max-content; gap:10px 17px; align-items:start; }
.place-photo-button { display:block; grid-column:1; grid-row:1 / 3; width:160px; height:150px; min-height:0; padding:0; border:0; border-radius:11px; overflow:hidden; background:var(--chip); box-shadow:none; }
#recommendations .place-photo-button > .place-image { display:block; width:100%; height:100%; margin:0; border-radius:inherit; object-fit:cover; }
.place-card-copy { grid-column:2; grid-row:1; min-width:0; overflow-wrap:anywhere; }
.place-card-topline { display:flex; align-items:flex-start; gap:8px; }
#recommendations .place-card-copy h3 { margin:0; font-size:18px; font-weight:600; line-height:1.45; }
#recommendations .place-card-copy .place-title-button { padding:0; min-height:44px; font-size:inherit; line-height:inherit; text-align:left; white-space:normal; overflow-wrap:anywhere; border:0; background:transparent; box-shadow:none; color:var(--ink); }
#recommendations .place-card-copy .place-title-button:hover { color:var(--blue); }
.place-rating { flex:none; margin-left:auto; color:var(--blue); font-size:13px; font-weight:600; line-height:26px; white-space:nowrap; }
.place-rating > span { font-size:11px; font-weight:400; color:var(--muted); margin-left:3px; }
#recommendations .place-card-copy .card-meta { margin:6px 0 0; font-size:12px; line-height:1.6; }
.place-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:8px 0 0; color:#4e5d70; font-size:14px; line-height:1.6; }
.place-card-bottom { grid-column:2; grid-row:2; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 8px; min-width:0; align-self:end; }
.place-assigned-label { margin:0; color:var(--blue); font-size:12px; line-height:1.5; }
#recommendations .place-card.place-workflow-card .place-card-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 10px; margin-left:auto; }
.place-card-actions > button, .place-card-more > summary { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; max-width:100%; padding:6px 4px; border:0; border-radius:var(--radius-button); color:var(--muted); background:transparent; box-shadow:none; font-size:13px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.place-card-actions > button.place-action-primary { padding:6px 16px; color:white; background:var(--blue); }
.place-card-actions > button.place-action-primary:hover { background:var(--blue-strong); }
.place-card-actions > button[data-place-action="remove"]:hover { color:#b8403b; }
.place-card-more { position:relative; margin:0; border:0; }
.place-card-more > summary { cursor:pointer; list-style:none; }
.place-card-more > summary::-webkit-details-marker { display:none; }
.place-card-more > div { display:flex; flex-wrap:wrap; gap:4px; padding:4px 0; }
.place-card-more button { min-height:44px; padding:6px 10px; color:var(--muted); background:var(--chip); border:0; border-radius:var(--radius-button); font-size:12px; }
.place-card-more[open] { flex-basis:100%; }
.place-card-more[open] > summary { justify-content:flex-end; width:100%; }
.batch-selecting .place-card-actions { pointer-events:none; opacity:.6; }
#recommendations .place-card-more[open] > div { justify-content:flex-end; }
#recommendations .place-card:not(:has(.place-assigned-label)) .place-card-actions { width:100%; justify-content:space-between; }
#recommendations .place-card:not(:has(.place-assigned-label)) .place-card-actions > button.place-action-primary { order:1; }
@media (max-width:1180px) {
  #recommendations .place-card.place-workflow-card > .place-card-content { grid-template-columns:120px minmax(0,1fr); gap:10px 14px; }
  #recommendations .place-photo-button { width:120px; height:132px; }
  #recommendations .place-card-bottom { grid-column:1 / -1; grid-row:3; }
  #recommendations .place-card-copy h3 { font-size:17px; }
}
@media (max-width:680px) {
  #recommendPanel .place-views { gap:18px; }
  #recommendPanel .place-views > button { font-size:13px; }
  #recommendations .place-card.place-workflow-card > .place-card-content { grid-template-columns:110px minmax(0,1fr); gap:10px 12px; }
  #recommendations .place-photo-button { width:110px; height:120px; grid-row:1; }
  #recommendations .place-card-copy h3 { font-size:16px; }
  #recommendations .place-card-topline { flex-wrap:wrap; gap:1px 8px; }
  #recommendations .place-rating { margin-left:0; line-height:22px; }
  #recommendations .place-card-copy .card-meta { margin-top:3px; font-size:12px; }
  #recommendations .place-description { margin-top:5px; font-size:13px; }
  #recommendations .place-card-actions { gap:0 8px; }
  #recommendations .place-card-bottom { grid-row:2; }
}
@media (max-width:360px) {
  #recommendations .place-card.place-workflow-card > .place-card-content { grid-template-columns:96px minmax(0,1fr); gap:8px 10px; }
  #recommendations .place-photo-button { width:96px; height:116px; }
  #recommendPanel .place-views { gap:12px; }
}
.pending-city-group { display: grid; grid-auto-rows: max-content; gap: 8px; min-width: 0; }
.pending-city-group > h3 { margin: 8px 0 0; font-size: 14px; }
.pending-city-group > h3 small { margin-left: 6px; font-weight: 400; color: var(--muted); }
.manual-plan-conflict { display: grid; gap: 6px; font-size: 13px; width: 100%; }
.manual-plan-conflict select { width: 100%; min-width: 0; min-height: 44px; }
.manual-plan-item:has(.manual-plan-conflict) { flex-direction: column; align-items: stretch; }
.timeline-item-actions .timeline-remove-place { min-height: 44px; min-width: 44px; padding: 4px 8px; border: 0; border-radius: var(--radius-button); background: transparent; box-shadow: none; color: var(--muted); font-size: 13px; }
.scenic-route-stop-copy { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.scenic-route-stop > button { min-width: 44px; min-height: 44px; border-radius: var(--radius-button); }
.place-operation-notice {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.place-operation-notice > span { min-width: 0; overflow-wrap: anywhere; }
.place-operation-notice > button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: var(--radius-button); background: #eaf2ff; color: var(--blue); box-shadow: none; }
.place-operation-notice > button:last-child { border-radius: 50%; background: transparent; color: var(--muted); }
@media (max-width: 680px) {
  .place-operation-notice { bottom: calc(76px + env(safe-area-inset-bottom)); }
}


.place-card > div {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .place-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(32, 33, 36, 0.08);
  }

  .tab:hover {
    color: var(--ink);
    transform: translateY(-1px);
  }
}

.place-card.selected {
  border-color: rgba(26, 115, 232, 0.45);
  background: #f8fbff;
}

.place-card.manual-pending {
  border-color: #8ab4f8;
  background: #f4f8ff;
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.08);
}

.manual-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.manual-day-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #2457a6;
  font-size: 12px;
  line-height: 1.2;
}

.recommend-heading,
.recommend-heading-copy {
  min-width: 0;
}

.recommend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recommend-panel .panel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.recommend-panel .tabs,
.recommend-panel.browsing .panel-toolbar .tabs {
  width: 100%;
  grid-auto-flow: row;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.recommend-panel .tab {
  min-width: 0;
  padding-right: 5px;
  padding-left: 5px;
  font-size: 12px;
}




.place-card.scheduled-elsewhere {
  border-style: dashed;
  background: #fafcff;
}

.place-card.scheduled-elsewhere > input {
  opacity: 0.45;
  cursor: not-allowed;
}

.place-card.scenic-child-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  margin-left: 22px;
  padding: 8px 10px;
  border-left: 3px solid #b6cff5;
  background: #fbfdff;
}

.place-card.scenic-child-card > input[type="checkbox"] {
  position: static;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  filter: none;
}

.place-card.scenic-child-card > div {
  display: block;
  min-width: 0;
}

.place-card.scenic-child-card .card-title-row,
.place-card.scenic-child-card .card-meta {
  grid-column: auto;
}

.place-card.scenic-child-card h3 {
  font-size: 14px;
}

.place-card.scenic-child-card .card-meta {
  margin-top: 2px;
  font-size: 12px;
}

.place-card.scenic-child-card > input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.scenic-child-context {
  margin: 3px 0 0;
  color: #2457a6;
  font-size: 12px;
  line-height: 1.4;
}

.scheduled-places-group {
  min-width: 0;
  border: 1px solid #d7e3f5;
  border-radius: var(--radius);
  background: #f8fafd;
}

.scheduled-places-group > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #2457a6;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.scheduled-places-group > summary::-webkit-details-marker {
  display: none;
}

.scheduled-places-group > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.scheduled-places-group > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.scheduled-places-group[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.scheduled-places-list {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.scheduled-place-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #edf4ff;
  color: #2457a6;
  font-size: 13px;
}

.repeat-place-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #9bbcf5;
  border-radius: 6px;
  background: #fff;
  color: #0b63ce;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .repeat-place-button:hover {
    background: #e7f0ff;
  }
}

.place-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.card-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: flex-start;
}

.place-card h3 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.place-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--soft-line);
  background: var(--wash);
  margin-bottom: 11px;
  transition: opacity 160ms ease;
}

.place-image.image-retrying,
.picker-result img.image-retrying {
  opacity: 0.62;
}

.score {
  min-width: 0;
  justify-self: end;
  text-align: right;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.place-detail {
  margin: 7px 0 0;
  color: #3c4043;
  font-size: 13px;
  line-height: 1.55;
}

.tag-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--chip);
  color: #3c4043;
  font-size: 12px;
}

.tag.must {
  color: #a50e0e;
  background: #fce8e6;
}

.tag.food {
  color: #0d652d;
  background: #e6f4ea;
}

.tag.nightmarket {
  color: #681da8;
  background: #f3e8fd;
}

.tag.shopping {
  color: #8d4e00;
  background: #fff3e0;
}

.link-row a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

.link-row a:hover {
  text-decoration: underline;
}

.route-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  padding: 3px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  background: #f3f5f7;
}

.route-actions .hotel-shortcut-button {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #174ea6;
  background: #e8f0fe;
  font-size: 12px;
  font-weight: 600;
}

.route-actions .hotel-shortcut-button:hover:not(:disabled) {
  color: #fff;
  background: var(--blue);
}

.route-actions .hotel-shortcut-button img {
  width: 18px;
  height: 18px;
}

.route-actions .hotel-shortcut-button:hover:not(:disabled) img {
  filter: brightness(0) invert(1);
}

.route-icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #3c4043;
  background: transparent;
  display: inline-grid;
  place-items: center;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.route-icon-button:hover:not(:disabled),
.route-icon-button[aria-pressed="true"] {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.route-icon-button:active:not(:disabled) {
  transform: scale(0.94);
}

.route-icon-button:focus-visible {
  outline: 2px solid rgba(26, 115, 232, 0.42);
  outline-offset: 1px;
}

.route-icon-button svg,
.timeline-drag-handle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-actions .route-edit-button {
  width: auto;
  min-width: 34px;
  padding: 0 9px;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.plan-panel > .panel-toolbar {
  align-items: center;
}

@media (min-width: 600px) {
  .plan-panel > .panel-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .plan-panel > .panel-toolbar #routeSummary {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .plan-panel > .panel-toolbar .route-actions {
    max-width: none;
    overflow: visible;
  }
}

.route-actions {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.route-actions::-webkit-scrollbar {
  display: none;
}

.provider-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.provider-logo.amap {
  object-fit: contain;
}

.provider-button .provider-logo.amap,
.provider-nav-link .provider-logo.amap {
  width: 22px;
}

.map-preview {
  margin: 14px;
  height: 310px;
  min-width: 0;
  max-width: calc(100% - 28px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(218, 220, 224, 0.5) 1px, transparent 1px),
    linear-gradient(0deg, rgba(218, 220, 224, 0.5) 1px, transparent 1px), #fbfcff;
  background-size: 42px 42px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  contain: layout paint;
  flex: 0 0 auto;
  transition: height 180ms ease, margin 180ms ease;
}

.plan-panel.map-compact .map-preview {
  height: 150px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.map-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.amap-map,
.map-fallback {
  position: absolute;
  inset: 0;
}

.amap-map {
  z-index: 3;
}

.map-fallback {
  z-index: 0;
}

.amap-map.hidden,
.map-fallback.hidden {
  display: none;
}

.marker-label {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.35);
  font-weight: 700;
  font-size: 12px;
}

.marker-label.meal {
  background: var(--green);
}

.marker-label.scenic-child {
  width: 24px;
  height: 24px;
  background: #00a8d8;
  font-size: 10px;
}

.marker-label.hotel,
.timeline-dot.hotel {
  background: #7b4fb3;
}

.marker-label.start {
  background: #5f6368;
}

.marker-label.start svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marker-label.focused {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2), 0 3px 10px rgba(60, 64, 67, 0.42);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.timeline {
  display: block;
  padding: 0 14px 16px;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  flex: 1 1 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 18px 1fr;
  gap: 10px;
  min-height: 64px;
}

.timeline-item .timeline-title,
.timeline-item .timeline-dot {
  transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.timeline-item.map-focused .timeline-title {
  color: var(--blue);
}

.timeline-item.map-focused .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.16);
}

.timeline-time {
  color: var(--muted);
  font-size: 13px;
  padding-top: 3px;
}

.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -16px;
  left: 8px;
  width: 2px;
  background: var(--soft-line);
}

.timeline-item:last-child .timeline-line::before {
  display: none;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.35);
  position: relative;
  z-index: 1;
}

.timeline-dot.meal {
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(52, 168, 83, 0.35);
}

.timeline-dot.travel {
  background: #9aa0a6;
  box-shadow: 0 0 0 1px rgba(154, 160, 166, 0.35);
}

.timeline-hotel-start .timeline-title {
  color: #67419a;
}

.timeline-body {
  min-width: 0;
  padding-bottom: 14px;
}

.timeline-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.timeline-title {
  display: flex;
  min-width: 0;
  gap: 6px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.timeline-order {
  flex: 0 0 auto;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.timeline-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.scenic-internal-route {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #edf4ff;
  color: #174ea6;
  font-size: 12px;
  line-height: 1.45;
}

.scenic-internal-route > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.scenic-internal-route > summary small {
  color: #5b78a5;
  font-weight: 500;
  white-space: nowrap;
}

.scenic-route-reference {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.scenic-route-reference span {
  width: 100%;
  color: #5b78a5;
}

.scenic-route-reference b {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #7b9bc8;
  font-weight: 500;
}

.scenic-route-editor {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.scenic-route-stop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
}

.scenic-route-stop.selected {
  border-color: #b6cff5;
  background: #fff;
}

.scenic-route-stop label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.scenic-route-stop label > span:last-child {
  min-width: 0;
}

.scenic-route-stop strong,
.scenic-route-stop small {
  display: block;
}

.scenic-route-stop strong {
  color: #174ea6;
  overflow-wrap: anywhere;
}

.scenic-route-stop small {
  color: #5b78a5;
}

.scenic-route-order {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce9fd;
  font-weight: 700;
}

.scenic-route-moves {
  display: flex;
  gap: 3px;
}

.scenic-route-moves button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-color: #cbdcf6;
  background: #fff;
}

.scenic-route-empty {
  margin: 8px 0 0;
  color: #5b78a5;
}

.timeline-edit-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-item-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nearby-food-button {
  width: 32px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #0d652d;
  background: #fff;
}

.nearby-food-button:hover {
  background: #e6f4ea;
  border-color: #b7dfc1;
}

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

.timeline-drag-handle {
  width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #5f6368;
  background: #fff;
  cursor: grab;
  touch-action: none;
}

.timeline-drag-handle:active {
  cursor: grabbing;
}

.timeline-item.route-drag-chosen {
  background: #f8fbff;
}

.timeline-item.route-drag-ghost {
  opacity: 0.22;
}

.timeline-item.route-dragging {
  z-index: 20;
  opacity: 0.96;
  background: #fff;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.2);
  transform: scale(0.99);
}

.timeline-move-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3c4043;
  background: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.timeline-move-button:disabled {
  color: #bdc1c6;
  background: #f8f9fa;
  cursor: default;
}

.timeline-day-select {
  width: 120px;
  height: 30px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3c4043;
  background-color: #fff;
  font: inherit;
  font-size: 12px;
}

.route-edit-hint {
  margin: 8px 0 4px 74px;
  padding: 8px 10px;
  border: 1px solid #d2e3fc;
  border-radius: 7px;
  color: #174ea6;
  background: #f4f8ff;
  font-size: 12px;
  line-height: 1.45;
}

.segment-navigation {
  margin-top: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

.segment-navigation > span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.segment-navigation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment-nav-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3c4043;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.segment-nav-link.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.provider-nav-link {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.provider-nav-link.primary {
  background: #fff;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.illustrated-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state__art {
  display: block;
  width: min(100%, 320px);
  max-height: 150px;
  object-fit: contain;
}

.empty-state__title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
}

.empty-state__description {
  max-width: 420px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.map-fallback .illustrated-empty-state {
  min-height: 100%;
  padding: 8px 20px;
}

.map-fallback .empty-state__art {
  width: min(80%, 260px);
  max-height: 108px;
}

.share-dialog,
.start-point-dialog,
.hotel-search-dialog,
.hotel-scope-dialog,
.transport-dialog,
.train-station-dialog,
.place-picker-dialog,
.nearby-restaurant-dialog,
.restaurant-detail-dialog,
.manual-plan-dialog,
.account-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius-dialog);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(32, 33, 36, 0.24);
}

.share-dialog::backdrop,
.start-point-dialog::backdrop,
.hotel-search-dialog::backdrop,
.hotel-scope-dialog::backdrop,
.transport-dialog::backdrop,
.train-station-dialog::backdrop,
.place-picker-dialog::backdrop,
.nearby-restaurant-dialog::backdrop,
.restaurant-detail-dialog::backdrop,
.manual-plan-dialog::backdrop,
.account-dialog::backdrop {
  background: rgba(32, 33, 36, 0.38);
}

.manual-plan-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: min(84vh, 720px);
  overflow: hidden;
}

.manual-plan-dialog[open] {
  display: flex;
  flex-direction: column;
}

.manual-plan-body {
  min-height: 0;
  padding: 16px 18px;
}

.manual-plan-day-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.manual-plan-day-field span {
  color: var(--muted);
  font-size: 13px;
}

.manual-plan-day-field select {
  width: 100%;
  min-height: 42px;
}

.manual-plan-items {
  max-height: min(44vh, 390px);
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.manual-plan-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.manual-plan-item > label {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.manual-plan-item > label > input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
}

.manual-plan-item:last-child {
  border-bottom: 0;
}

.manual-plan-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.manual-plan-item strong,
.manual-plan-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-plan-item small {
  color: var(--muted);
  font-size: 12px;
}

.manual-plan-item button {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.transport-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(90vh, 820px);
  overflow: auto;
}

.train-station-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: min(84vh, 720px);
  overflow: auto;
}

.train-station-choices { padding: 8px 18px 18px; }

.train-station-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-line);
}

.train-station-group:last-child { border-bottom: 0; }
.train-station-group h3 { margin: 0 0 10px; font-size: 15px; }
.train-station-search {
  width: 100%;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.train-station-search:focus { border-color: var(--blue); outline: 2px solid #dbeafe; }
.train-station-options { display: grid; gap: 8px; }
.train-station-empty { margin: 12px 0 2px; color: var(--muted); text-align: center; }

.train-station-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  cursor: pointer;
}

.train-station-option:has(input:checked) {
  border-color: var(--blue);
  background: #eef4ff;
}

.train-station-option input { width: 18px; height: 18px; min-height: 18px; margin: 0; }
.train-station-option strong { display: block; }
.train-station-option span { color: var(--muted); font-size: 12px; }

.train-station-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--soft-line);
  background: #fff;
}

.transport-form-body { padding: 18px; }

.transport-route-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.transport-route-context > span { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.transport-route-context > button { flex: none; min-height: 44px; padding: 0 8px; color: var(--blue); border: 0; background: transparent; }

.transport-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.transport-form-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.transport-form label,
.transport-form label > span {
  display: grid;
  gap: 6px;
}

.transport-form label > span {
  color: var(--muted);
  font-size: 12px;
}

.transport-form input,
.transport-form select,
.transport-form textarea { width: 100%; }

.transport-lookup-action {
  display: flex;
  align-items: end;
}

.transport-lookup-action button { width: 100%; }

.transport-lookup-status {
  min-height: 20px;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.transport-lookup-status[data-tone="error"] { color: #b3261e; }
.transport-lookup-status[data-tone="success"] { color: #137333; }

.transport-note { margin-top: 2px; }

.transport-provider-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.transport-provider-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}

.transport-provider-link img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

.transport-form-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--soft-line);
  background: #fff;
}

.transport-form-footer .danger { color: #b3261e; }

.timeline-item.explicit-transport {
  margin: 4px 0 10px;
  padding-top: 8px;
}

.timeline-item.explicit-transport .timeline-dot {
  display: grid;
  place-items: center;
  background: #f9ab00;
  box-shadow: 0 0 0 1px rgba(249, 171, 0, 0.4);
}

.timeline-item.explicit-transport .timeline-title { color: #8d4e00; }
.timeline-item.explicit-transport .timeline-body { padding: 10px 12px 12px; border-radius: 7px; background: #fff8e1; }
.transport-record-title span { display: block; }
html[lang="en"] .transport-record-title { flex-direction: column; gap: 3px; }
html[lang="en"] .transport-record-route { color: #744000; font-size: 14px; }
.transport-record-actions { display: flex; gap: 5px; }
.transport-record-actions button { width: 32px; min-width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.transport-record-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.transport-record-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.transport-record-meta span { padding: 4px 8px; border-radius: 999px; color: #5f6368; background: rgba(255,255,255,.75); font-size: 12px; }
.transport-record-warning { margin-top: 8px; color: #b06000; font-size: 12px; }

.nearby-restaurant-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  overflow: hidden;
}

.nearby-restaurant-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--soft-line);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  --selection-background: #edf4ff;
  --selection-border: 1px solid #a9c8f5;
  --selection-radius: 999px;
}

.nearby-restaurant-tabs::-webkit-scrollbar { display: none; }

.nearby-restaurant-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.nearby-restaurant-tabs button.active {
  color: #174ea6;
  background: #edf4ff;
  font-weight: 600;
}

.nearby-restaurant-notice {
  margin: 10px 16px 0;
  padding: 9px 12px;
  border-radius: 6px;
  color: #5f6368;
  background: #f1f3f4;
  font-size: 13px;
}

.nearby-restaurant-results {
  position: relative;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 8px 16px 18px;
}

.nearby-restaurant-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(2px);
}

.nearby-restaurant-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--soft-line);
}

.nearby-restaurant-open {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.nearby-restaurant-open:hover .nearby-restaurant-title > strong { color: var(--blue-strong); }
.nearby-restaurant-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.nearby-restaurant-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  aspect-ratio: 3.15 / 1;
  overflow: hidden;
  border-radius: 7px;
  background: var(--chip);
}

.nearby-restaurant-photos[data-photo-count="1"] {
  grid-template-columns: 1fr;
}

.nearby-restaurant-photo {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  background: var(--chip);
}

.nearby-restaurant-score {
  margin-left: auto;
  color: var(--blue);
  white-space: nowrap;
  font-size: 12px;
}

.nearby-restaurant-score strong { font-size: 20px; }
.nearby-restaurant-score.unavailable { color: #80868b; font-size: 11px; }
.nearby-restaurant-copy { min-width: 0; display: block; }
.nearby-restaurant-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.nearby-restaurant-title > strong { overflow-wrap: anywhere; font-size: 18px; }
.nearby-restaurant-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nearby-restaurant-facts > span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  color: #174ea6;
  background: #e8f0fe;
  font-size: 11px;
  line-height: 1.35;
}

.nearby-restaurant-facts .cost {
  color: #8d4e00;
  background: #fff4e5;
}

.nearby-restaurant-facts .hours {
  color: #5f6368;
  background: #f1f3f4;
}

.nearby-restaurant-facts .hours.open {
  color: #0d652d;
  background: #e6f4ea;
}

.nearby-restaurant-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.nearby-restaurant-specialties i {
  padding: 3px 7px;
  border: 1px solid #f6d8b0;
  border-radius: 5px;
  color: #9a4c00;
  background: #fffaf3;
  font-size: 11px;
  font-style: normal;
}

.nearby-restaurant-summary,
.nearby-restaurant-address { display: block; }

.nearby-restaurant-summary {
  margin-top: 8px;
  color: #3c4043;
  font-size: 12px;
  line-height: 1.55;
}

.nearby-restaurant-address {
  margin-top: 5px;
  overflow: hidden;
  color: #80868b;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-restaurant-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.nearby-restaurant-add { min-height: 38px; }

.nearby-restaurant-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  color: #a50e0e;
  font-size: 11px;
  font-weight: 500;
}

.nearby-restaurant-loading {
  min-height: min(48vh, 420px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.nearby-meal-conflict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.nearby-meal-conflict > div { display: grid; gap: 2px; }
.nearby-meal-conflict span { color: var(--muted); font-size: 12px; }

.restaurant-detail-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: min(92vh, 880px);
  overflow: auto;
  background: #fff;
}

.restaurant-detail-close {
  position: sticky;
  top: 12px;
  z-index: 3;
  height: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0 12px;
  pointer-events: none;
}

.restaurant-detail-close button {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(32, 33, 36, 0.16);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.restaurant-detail-content { min-width: 0; }

.restaurant-detail-gallery {
  height: 270px;
  display: flex;
  gap: 6px;
  padding: 0;
  overflow-x: auto;
  background: #eef2f3;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.restaurant-detail-gallery .restaurant-detail-photo {
  flex: 0 0 min(40%, 300px);
  scroll-snap-align: start;
}

.restaurant-detail-gallery .restaurant-detail-photo:first-child { flex-basis: min(58%, 440px); }

.place-detail-gallery[data-photo-count="1"] .restaurant-detail-photo,
.place-detail-gallery[data-photo-count="1"] .restaurant-detail-photo:first-child {
  flex: 0 0 100%;
}

.place-detail-gallery[data-photo-count="2"] .restaurant-detail-photo,
.place-detail-gallery[data-photo-count="2"] .restaurant-detail-photo:first-child {
  flex: 0 0 calc((100% - 6px) / 2);
}

.restaurant-detail-header { padding: 22px 24px 16px; }
.restaurant-detail-kicker { width: max-content; margin-bottom: 9px; padding: 4px 9px; border-radius: 5px; color: #a50e0e; background: #fce8e6; font-size: 12px; font-weight: 650; }
.restaurant-detail-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.restaurant-detail-title-row h2 { font-size: 26px; line-height: 1.25; }
.restaurant-detail-title-row p { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.restaurant-detail-rating { min-width: 82px; display: grid; justify-items: end; color: var(--blue); }
.restaurant-detail-rating strong { font-size: 32px; line-height: 1; }
.restaurant-detail-rating span { margin-top: 5px; font-size: 11px; }
.restaurant-detail-rating.unavailable { color: #80868b; }
.restaurant-detail-rating.unavailable strong { font-size: 18px; line-height: 1.25; }

.restaurant-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 24px 18px;
  overflow: hidden;
  border-radius: 7px;
  background: #dfe7ef;
}

.restaurant-detail-facts > div { min-width: 0; display: grid; gap: 5px; padding: 13px 12px; background: #f5f9ff; }
.restaurant-detail-facts span { color: #5f6368; font-size: 11px; }
.restaurant-detail-facts strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }

.restaurant-detail-section { margin: 0 24px; padding: 18px 0; border-top: 1px solid var(--soft-line); }
.restaurant-detail-section h3 { margin: 0 0 10px; font-size: 15px; }
.restaurant-detail-section p { color: #3c4043; font-size: 14px; line-height: 1.7; }
.restaurant-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.restaurant-detail-tags span { padding: 6px 9px; border-radius: 5px; color: #8d4e00; background: #fff4e5; font-size: 12px; }
.restaurant-detail-reason h3::before { content: "★"; margin-right: 7px; color: #f9ab00; }
.restaurant-detail-address h3::before { content: "●"; margin-right: 7px; color: var(--green); }
.restaurant-detail-source h3::before { content: "i"; width: 18px; height: 18px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: #174ea6; background: #e8f0fe; font-size: 11px; font-weight: 700; }
.restaurant-detail-source a { color: var(--blue); font-size: 13px; text-decoration: none; }

.restaurant-detail-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 24px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.restaurant-platforms { display: flex; gap: 9px; }
.restaurant-platform { width: 42px; min-width: 42px; height: 42px; min-height: 42px; display: grid; place-items: center; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.restaurant-platform img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; box-shadow: 0 1px 4px rgba(32, 33, 36, 0.18); }
.restaurant-platform span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 750; }
.restaurant-platform-dianping span { background: #ff6633; }
.restaurant-platform-dianping { background: #ff6435; }
.restaurant-platform-dianping img { width: 34px; height: 34px; box-shadow: none; }
.restaurant-detail-add { min-width: 112px; min-height: 42px; }

.place-title-button {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.place-title-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.place-title-button:focus-visible { outline: 2px solid rgba(26, 115, 232, 0.45); outline-offset: 3px; border-radius: 3px; }
.place-detail-kicker { color: #174ea6; background: #e8f0fe; }
.place-detail-loading { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #5f6368; font-size: 12px; }
.place-detail-loading span { width: 12px; height: 12px; border: 2px solid #d2e3fc; border-top-color: var(--blue); border-radius: 50%; animation: spin 800ms linear infinite; }
.place-detail-facts a { color: inherit; text-decoration: none; }
.place-detail-tags span:nth-child(3n + 1) { color: #174ea6; background: #e8f0fe; }
.place-detail-tags span:nth-child(3n + 2) { color: #0d652d; background: #e6f4ea; }
.place-platforms { display: flex; flex-wrap: wrap; gap: 14px; }
.place-platform { min-width: 48px; min-height: 52px; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #5f6368; font-size: 10px; }
.place-platform img,
.place-platform i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(32, 33, 36, 0.18); }
.place-detail-footer { position: static; flex-direction: column; align-items: stretch; }
.place-detail-footer .place-platforms { flex: none; justify-content: space-between; gap: 8px; }
.place-ticket-note { display: flex; align-items: center; gap: 12px; color: #80868b; font-size: 11px; line-height: 1.6; text-align: left; }
.place-ticket-note span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.place-ticket-note button { flex: none; min-height: 44px; font-size: 12px; }

@media (min-width: 1181px) {
  .nearby-restaurant-dialog {
    width: min(1080px, calc(100% - 48px));
    max-height: min(88vh, 820px);
  }

  .nearby-restaurant-results {
    max-height: min(66vh, 650px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    padding: 12px 16px 18px;
  }

  .nearby-restaurant-card {
    min-width: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    background: #fff;
  }

  .nearby-restaurant-photos {
    height: 118px;
    aspect-ratio: auto;
  }

  .nearby-restaurant-photos[data-photo-count="1"] { height: 128px; }

  .nearby-restaurant-title > strong { font-size: 16px; }
  .nearby-restaurant-score strong { font-size: 18px; }
  .nearby-restaurant-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nearby-restaurant-loading,
  .nearby-restaurant-results > .empty-state,
  .nearby-restaurant-notice {
    grid-column: 1 / -1;
  }

  .nearby-restaurant-actions {
    margin-top: auto;
    padding-top: 9px;
  }

  .nearby-restaurant-add {
    min-height: 34px;
    padding: 0 12px;
  }

  .restaurant-detail-gallery { height: 190px; }
  .restaurant-detail-gallery .restaurant-detail-photo { flex-basis: min(32%, 240px); }
  .restaurant-detail-gallery .restaurant-detail-photo:first-child { flex-basis: min(42%, 330px); }
}

@media (max-width: 599px), (max-height: 479px) {
  .trip-home-card {
    grid-template-columns: 1fr;
  }

  .trip-home-card-actions {
    grid-column: 1;
  }

  .trip-home-card-actions button {
    width: 100%;
  }

  .packing-dialog {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .packing-dialog .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: calc(14px + env(safe-area-inset-top)) 14px 12px;
    background: #fff;
  }

  .packing-dialog .dialog-head button {
    max-width: 118px;
    white-space: normal;
  }

  .packing-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .packing-add-form select {
    grid-column: 1 / -1;
  }

  .packing-footer { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .packing-footer button { min-width: 0; padding: 0 9px; }
  .recommend-actions { flex-wrap: wrap; }
  .recommend-action-buttons { flex: 0 0 auto; margin-left: auto; }
}

.account-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
}

.account-auth-view,
.account-home-view {
  padding: 18px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 8px;
  background: var(--chip);
  --selection-background: #fff;
  --selection-border: 0;
  --selection-radius: 6px;
  --selection-shadow: var(--shadow);
}

.account-tabs button {
  border: 0;
  background: transparent;
}

.account-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.turnstile-box {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-help,
.account-error,
.account-trips-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-error {
  min-height: 18px;
  color: #b3261e;
}

.account-summary,
.account-trips-head,
.account-trip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-summary {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.account-summary > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.account-identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-summary span,
.account-summary strong {
  display: block;
}

.account-summary span {
  color: var(--muted);
  font-size: 12px;
}

.account-summary strong {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 700;
  overflow: hidden;
}

.account-summary-actions {
  display: flex;
  gap: 7px;
}

.account-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}

.account-profile-form > label:last-of-type,
.profile-avatar-editor,
.avatar-preset-picker,
.profile-form-actions,
.account-profile-form .account-error {
  grid-column: 1 / -1;
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f0fe;
  color: #174ea6;
  font-size: 22px;
  font-weight: 700;
}

.profile-avatar-controls {
  display: grid;
  gap: 8px;
}

.profile-avatar-controls > div,
.profile-form-actions {
  display: flex;
  gap: 8px;
}

.profile-avatar-controls button {
  min-height: 32px;
  padding: 0 10px;
}

.avatar-preset-picker {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
}

.avatar-preset-picker summary {
  padding: 11px 13px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.avatar-preset-grid {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  padding: 2px 12px 12px;
}

.avatar-preset-option {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 2px;
  overflow: hidden;
  background: #fff;
}

.avatar-preset-option:hover { border-color: #aecbfa; }
.avatar-preset-option[aria-pressed="true"] { border-color: var(--blue-strong); box-shadow: 0 0 0 2px var(--blue-wash); }
.avatar-preset-option img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }

.profile-form-actions {
  justify-content: flex-end;
}

.account-trips-head {
  justify-content: space-between;
  margin-top: 20px;
}

.account-trips-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.account-trip-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.account-trip-row {
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.account-trip-copy {
  min-width: 0;
  flex: 1;
}

.account-trip-copy strong,
.account-trip-copy span {
  display: block;
}

.account-trip-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trip-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.account-trip-copy .trip-creator-badge {
  margin-top: 7px;
}

.account-trip-copy .trip-creator-badge > span:last-child {
  display: block;
}

.account-trip-actions {
  display: flex;
  gap: 6px;
}

.account-trip-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.account-trip-actions .danger {
  color: #b3261e;
}

.city-suggestions {
  position: fixed;
  z-index: 100;
  max-height: min(560px, 68vh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.2);
}

.city-suggestions.browse-hot {
  overflow-y: auto;
}

.city-suggestion-index {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.98);
  scrollbar-width: none;
}

.city-suggestion-index::-webkit-scrollbar {
  display: none;
}

.city-suggestion-index button {
  flex: 1 1 0;
  width: auto;
  min-width: 88px;
  height: 42px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--soft-line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 42px;
}

.city-suggestion-index button:hover,
.city-suggestion-index button:focus-visible,
.city-suggestion-index button.active {
  background: #f8fafd;
  color: var(--ink);
}

.city-suggestion-index button.active {
  box-shadow: inset 0 -2px var(--blue);
}

.city-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px 8px;
  min-width: 0;
}

.city-suggestion-hot {
  padding: 12px 16px 14px;
}

.city-suggestion-compact {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  padding: 0 8px;
  border: 0;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

.city-suggestion-compact:hover,
.city-suggestion-compact:focus-visible,
.city-suggestion-compact.active {
  background: #f1f5fb;
  color: var(--blue-strong);
}

.city-alpha-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--line);
}

.city-alpha-section > strong {
  padding-top: 5px;
  color: #9aa0a6;
  font-size: 22px;
  line-height: 1;
}

.start-point-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(82vh, 700px);
  overflow: hidden;
}

.hotel-search-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(86vh, 780px);
  overflow: hidden;
}

.hotel-search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.hotel-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--soft-line);
}

.hotel-search-form input {
  min-width: 0;
}

.hotel-search-results {
  flex: 1 1 auto;
  min-height: 168px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 8px 18px;
  overscroll-behavior-y: contain;
}

.hotel-search-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.hotel-search-result {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  background: #fff;
  text-align: left;
}

.hotel-search-result:last-child {
  border-bottom: 0;
}

.hotel-search-result:hover,
.hotel-search-result:focus-visible,
.hotel-search-result[aria-selected="true"] {
  background: #f4f8ff;
}

.hotel-search-result[aria-selected="true"] {
  box-shadow: inset 3px 0 var(--blue);
}

.hotel-result-image {
  width: 112px;
  height: 82px;
  border-radius: 7px;
  object-fit: cover;
  background: #eef4ff;
}

.hotel-result-copy {
  min-width: 0;
}

.hotel-result-copy strong,
.hotel-result-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.hotel-result-copy strong {
  font-size: 15px;
  line-height: 1.4;
}

.hotel-result-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hotel-result-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #b8c3d1;
  border-radius: 50%;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
}

.hotel-search-result[aria-selected="true"] .hotel-result-check {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.hotel-scope-dialog {
  width: min(440px, calc(100% - 32px));
}

.hotel-scope-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.hotel-scope-actions button {
  width: 100%;
}

.start-point-results {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 4px 18px 14px;
}

.start-point-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  text-align: left;
}

.start-point-result:last-child {
  border-bottom: 0;
}

.start-point-result:hover,
.start-point-result:focus-visible {
  background: #f8fafd;
}

.start-point-result-copy {
  min-width: 0;
}

.start-point-result-copy strong,
.start-point-result-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.start-point-result-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.start-point-result-type {
  color: #174ea6;
  font-size: 12px;
  white-space: nowrap;
}

.city-suggestion-group {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: #f8fafd;
  color: var(--muted);
  font-size: 11px;
}

.city-suggestions.browsing .city-suggestion-group {
  top: 41px;
}

.city-suggestion-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--soft-line);
  cursor: pointer;
}

.city-suggestion-item:last-child {
  border-bottom: 0;
}

.city-suggestion-item:hover,
.city-suggestion-item.active {
  background: #e8f0fe;
}

.city-suggestion-main strong,
.city-suggestion-main span {
  display: block;
  overflow-wrap: anywhere;
}

.city-suggestion-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.city-suggestion-type {
  color: #174ea6;
  font-size: 12px;
}

.place-picker-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  overflow: hidden;
}

.place-picker-dialog[open] {
  display: flex;
  flex-direction: column;
}

.place-picker-dialog > .dialog-head,
.place-picker-dialog > .picker-toolbar,
.place-picker-dialog > .picker-footer {
  flex: 0 0 auto;
}

.picker-toolbar,
.picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 13px;
}

.picker-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 4px 18px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.picker-result {
  display: grid;
  grid-template-columns: 22px 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  cursor: pointer;
}

.picker-result:last-child {
  border-bottom: 0;
}

.picker-result.already-added {
  opacity: 0.55;
  cursor: default;
}

.picker-result input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.picker-result img {
  width: 72px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--chip);
}

.picker-result-copy {
  min-width: 0;
}

.picker-result-copy strong,
.picker-result-copy span {
  display: block;
}

.picker-result-copy strong {
  overflow-wrap: anywhere;
}

.picker-result-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.picker-kind {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--chip);
  color: #3c4043;
  font-size: 12px;
  white-space: nowrap;
}

.picker-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--soft-line);
  border-bottom: 0;
}

.picker-footer form {
  margin: 0;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--soft-line);
}

.dialog-head > button { min-height: 44px; border-radius: var(--radius-button); }
.picker-footer button,
.hotel-scope-actions button,
.manual-plan-dialog button,
.share-dialog button,
.packing-footer button { min-height: 44px; border-radius: var(--radius-button); }
.hotel-search-form input,
.train-station-search,
.account-form input { border-radius: var(--radius-input); }

.dialog-head p,
.dialog-message {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.share-dialog-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.share-dialog-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.share-section {
  padding: 18px;
}

.share-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 20px; align-items: start; }

.share-inspiration-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  margin: 0 24px 22px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: #f7fbff;
}

.share-inspiration-submit h3,
.share-inspiration-submit p { margin: 0; }
.share-inspiration-submit h3 { margin-top: 3px; font-size: 18px; }
.share-inspiration-submit > div > p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.share-inspiration-submit > button { min-height: 44px; color: #fff; border-color: var(--blue); background: var(--blue); }
.share-inspiration-submit > .dialog-message { grid-column: 1 / -1; }
.share-qr-wrap { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.share-qr-code { width: 168px; height: 168px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--soft-line); border-radius: 8px; background: #fff; }
.share-qr-code svg { width: 100%; height: 100%; display: block; }
.share-options { min-width: 0; }

.field-label {
  color: var(--muted);
  font-size: 13px;
}

.share-permission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--chip);
}

.share-permission legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.share-permission label {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  color: #3c4043;
  cursor: pointer;
}

.share-permission label:has(input:checked) {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
}

.share-permission input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}
.share-link-row > .field-label { grid-column: 1 / -1; }
.share-link-row > input { min-width: 0; }
.share-link-row #copyShareLink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 44px; padding-inline: 8px; white-space: nowrap; }
.share-link-row #copyShareLink svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }


.share-channels { display: flex; gap: 10px; margin-top: 14px; }
.share-channel { min-width: 72px; min-height: 68px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 7px; border-color: var(--soft-line); background: #fff; transition: transform .2s ease, background-color .2s ease; }
.share-channel:hover { transform: translateY(-2px); background: #edf4ff; border-color: #b8d2f8; }
.share-channel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.share-channel > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 750; }
.share-channel > span img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.share-channel small { color: #3c4043; font-size: 11px; }
.share-channel-system > span { color: #174ea6; background: #e8f0fe; font-size: 20px; }
.share-channel-system > span svg { width: 22px; height: 22px; }
.share-channel-wechat > span,
.share-channel-whatsapp > span { overflow: hidden; padding: 5px; background: var(--blue); }
.share-channel-wechat > span img,
.share-channel-whatsapp > span img { object-fit: contain; }

.dialog-message {
  min-height: 28px;
  padding: 0 18px 16px;
}

.packing-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: min(92vh, 860px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-dialog);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(32, 33, 36, 0.24);
  overflow: auto;
}

.packing-dialog::backdrop { background: rgba(32, 33, 36, 0.38); }
.packing-kicker { display: block; margin-bottom: 4px; color: var(--blue-strong); font-size: 12px; font-weight: 700; }
.packing-progress { display: grid; gap: 8px; padding: 18px; border-bottom: 1px solid var(--soft-line); }
.packing-progress > span { height: 9px; overflow: hidden; border-radius: 9px; background: var(--chip); }
.packing-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width 180ms ease; }
.packing-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 18px 0; padding: 4px; border-radius: var(--radius-button); background: var(--chip); --selection-background: #fff; --selection-border: 0; --selection-radius: 999px; --selection-shadow: none; }
.packing-tabs button { border: 0; background: transparent; }
.packing-tabs button.active { color: var(--blue-strong); background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.16); }
.packing-items { padding: 8px 18px 18px; }
.packing-group { margin-top: 14px; }
.packing-group h3 { display: flex; justify-content: space-between; margin: 0 0 7px; font-size: 15px; }
.packing-group h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.packing-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; align-items: center; gap: 10px; min-height: 56px; padding: 8px 6px; border-bottom: 1px solid var(--soft-line); color: var(--ink); cursor: pointer; }
.packing-item > input { width: 19px; height: 19px; min-height: 19px; margin: 0; accent-color: var(--blue); }
.packing-item > span { min-width: 0; }
.packing-item strong, .packing-item small { display: block; overflow-wrap: anywhere; }
.packing-item small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.packing-item.packed strong { color: var(--muted); text-decoration: line-through; }
.packing-item > button { min-width: 30px; min-height: 30px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 20px; }
.packing-add-form { position: sticky; bottom: 58px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--soft-line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.packing-footer { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--soft-line); background: #fff; }

@media (max-width: 599px), (max-height: 479px) {
  .packing-dialog {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}

.site-footer {
  border-top: 1px solid var(--soft-line);
  padding: 16px 28px 20px;
  background: #f5f5f7;
}

.footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #6e6e73;
  font-size: 12px;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-legal nav span {
  width: 1px;
  height: 14px;
  background: #c7c7cc;
}

.footer-legal a {
  color: #424245;
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.onboarding-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.onboarding-dialog::backdrop {
  background: transparent;
}

.onboarding-dialog:is(.is-unanchored, .is-target-scrolling)::backdrop {
  background: rgba(18, 24, 33, .62);
}

.onboarding-spotlight {
  position: fixed;
  z-index: 1;
  border: 2px solid #7fb0ff;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(18, 24, 33, .72), 0 0 0 5px rgba(255, 255, 255, .2);
  opacity: 1;
  transition: left 280ms cubic-bezier(.2, .8, .2, 1), top 280ms cubic-bezier(.2, .8, .2, 1), width 280ms cubic-bezier(.2, .8, .2, 1), height 280ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease;
}

.onboarding-card {
  position: fixed;
  z-index: 2;
  width: min(380px, calc(100vw - 24px));
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(20, 27, 38, .3);
  pointer-events: auto;
  overflow: auto;
  overscroll-behavior: contain;
  transition: left 280ms cubic-bezier(.2, .8, .2, 1), top 280ms cubic-bezier(.2, .8, .2, 1);
}

.onboarding-dialog[open] .onboarding-spotlight {
  animation: onboarding-mask-in 240ms ease-out both;
}

.onboarding-dialog[open] .onboarding-card {
  animation: onboarding-card-in 280ms cubic-bezier(.2, .8, .2, 1) both;
}

.onboarding-dialog.is-target-scrolling .onboarding-spotlight {
  animation: none;
  opacity: 0;
}

.onboarding-dialog.is-closing .onboarding-spotlight {
  animation: onboarding-mask-out 180ms ease-in both;
}

.onboarding-dialog.is-closing .onboarding-card {
  animation: onboarding-card-out 180ms ease-in both;
}

.onboarding-card.is-step-changing > * {
  animation: onboarding-content-next 260ms cubic-bezier(.2, .8, .2, 1) both;
}

.onboarding-card.is-step-changing[data-direction="back"] > * {
  animation-name: onboarding-content-back;
}

.onboarding-card.is-step-changing > :nth-child(2) { animation-delay: 20ms; }
.onboarding-card.is-step-changing > :nth-child(3) { animation-delay: 35ms; }
.onboarding-card.is-step-changing > :nth-child(4) { animation-delay: 50ms; }
.onboarding-card.is-step-changing > :nth-child(5) { animation-delay: 65ms; }

.onboarding-card::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 9px solid transparent;
}

.onboarding-dialog[data-placement="below"] .onboarding-card::before {
  top: -18px;
  left: calc(var(--onboarding-arrow-x, 50%) - 9px);
  border-bottom-color: #fff;
}

.onboarding-dialog[data-placement="above"] .onboarding-card::before {
  bottom: -18px;
  left: calc(var(--onboarding-arrow-x, 50%) - 9px);
  border-top-color: #fff;
}

.onboarding-dialog[data-placement="right"] .onboarding-card::before {
  left: -18px;
  top: calc(var(--onboarding-arrow-y, 50%) - 9px);
  border-right-color: #fff;
}

.onboarding-dialog[data-placement="left"] .onboarding-card::before {
  right: -18px;
  top: calc(var(--onboarding-arrow-y, 50%) - 9px);
  border-left-color: #fff;
}

.onboarding-dialog[data-placement="center"] .onboarding-card::before {
  display: none;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 22px;
}

.onboarding-progress i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf6;
}

.onboarding-progress i.active,
.onboarding-progress i.complete {
  background: var(--blue);
}

.onboarding-progress i.active {
  transform-origin: left;
  animation: onboarding-progress-fill 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.onboarding-progress i.complete {
  opacity: .48;
}

.onboarding-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 700;
}

.onboarding-card h2 {
  font-size: 24px;
  line-height: 1.25;
}

.onboarding-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.onboarding-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.onboarding-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.onboarding-actions button {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-dialog .onboarding-spotlight,
  .onboarding-dialog .onboarding-card,
  .onboarding-dialog .onboarding-card > *,
  .onboarding-dialog .onboarding-progress i {
    animation: none !important;
    transition: none !important;
  }
}

#skipOnboarding {
  border-color: transparent;
  color: var(--blue);
  background: transparent;
}

@keyframes onboarding-mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes onboarding-mask-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes onboarding-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes onboarding-card-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(.985); }
}

@keyframes onboarding-content-next {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes onboarding-content-back {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes onboarding-progress-fill {
  from { transform: scaleX(.18); opacity: .45; }
  to { transform: scaleX(1); opacity: 1; }
}

.mobile-navigation,
.mobile-settings-toggle,
.mobile-page-intro,
.itinerary-day-tabs {
  display: none;
}

.recommend-controls { display:contents; }
.planner-heading #cityBadge { display:none; }
.planner-heading #mobileSettingsToggle { display:flex; align-items:center; justify-content:center; gap:5px; flex:none; width:auto; min-width:44px; min-height:44px; margin:0 0 0 auto; padding:0 4px; border:0; border-radius:var(--radius-button); color:var(--muted); background:transparent; box-shadow:none; }
.planner-heading #mobileSettingsToggle::after { content:none; }
.planner-heading #mobileSettingsToggle span { font-size:12px; font-weight:400; }
.planner-heading #mobileSettingsToggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.planner-preferences-dialog { width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--soft-line); border-radius:var(--radius-dialog); background:white; color:var(--ink); overflow:auto; }
.planner-preferences-dialog::backdrop { background:#24344b66; }
.planner-preferences-dialog > header { position:sticky; top:0; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--soft-line); background:white; }
.planner-preferences-dialog h2 { margin:0; font-size:20px; line-height:1.4; }
.planner-preferences-dialog header p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
#closePlannerPreferences { flex:none; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:var(--chip); color:var(--muted); font-size:26px; }
#plannerPreferencesDialog #daySettingsWrap { display:block; max-height:none; opacity:1; transform:none; transition:none; overflow:visible; padding:8px 24px 24px; }
#plannerPreferencesDialog .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#plannerPreferencesDialog .form-grid > label:first-child, #plannerPreferencesDialog .start-point-field, #plannerPreferencesDialog .hotel-field { grid-column:1 / -1; }
#plannerPreferencesDialog .inline-control { display:flex; gap:8px; }
#plannerPreferencesDialog :is(input,select) { min-width:0; min-height:44px; border-radius:var(--radius-input); }
#plannerPreferencesDialog .inline-control > input { flex:1; }
#plannerPreferencesDialog .inline-control > button { flex:none; min-height:44px; }
#plannerPreferencesDialog .metric-row { display:none; }
@media (max-width:430px) { #plannerPreferencesDialog .form-grid { grid-template-columns:minmax(0,1fr); } #plannerPreferencesDialog .form-grid > label { grid-column:1; } #plannerPreferencesDialog :is(header,#daySettingsWrap) { padding-inline:18px; } }


@media (min-width: 761px) {
  .topbar {
    height: 64px;
    grid-template-columns: 150px minmax(320px, 680px) minmax(250px, 1fr);
    gap: 16px;
    padding: 0 20px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .search-box {
    width: min(100%, 520px);
    height: 38px;
    justify-self: center;
    border-color: #e1e4e8;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.08);
  }

  .search-box input {
    padding: 0 14px;
    font-size: 14px;
  }

  .search-box button {
    height: 30px;
    min-height: 30px;
    padding: 0 16px;
    margin-right: 4px;
    border-radius: 15px;
    font-size: 13px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-account-button {
    max-width: 132px;
    font-size: 14px;
  }

  #shareTrip,
  .place-search button,
  .recommend-actions button {
    font-size: 14px;
    font-weight: 500;
  }

  .place-search input,
  .place-search select,
  .recommend-actions {
    font-size: 14px;
  }

  .workspace {
    width: 100%;
    margin: 0;
    padding: 16px 20px 18px;
    grid-template-columns: 300px minmax(390px, 1fr) minmax(430px, 1.12fr);
    gap: 0;
    align-items: stretch;
    transition: grid-template-columns 320ms cubic-bezier(.2, .8, .2, 1);
  }

  .workspace[data-mobile-view="places"],
  .workspace[data-mobile-view="itinerary"] {
    grid-template-columns: 226px minmax(390px, .94fr) minmax(430px, 1.2fr);
  }

  .controls-panel,
  .recommend-panel,
  .plan-panel {
    border: 0;
    border-right: 1px solid var(--soft-line);
    border-radius: 0;
    box-shadow: none;
  }

  .controls-panel {
    top: 80px;
    max-height: calc(100vh - 98px);
    padding: 16px;
    transition: padding 260ms cubic-bezier(.2, .8, .2, 1);
  }

  .workspace[data-mobile-view="places"] > .controls-panel,
  .workspace[data-mobile-view="itinerary"] > .controls-panel {
    padding: 14px 12px;
  }

  .workspace[data-mobile-view="places"] .city-plan-row,
  .workspace[data-mobile-view="itinerary"] .city-plan-row {
    grid-template-columns: minmax(0, 1fr) 76px 30px;
    gap: 5px;
  }

  .workspace[data-mobile-view="places"] .builder-labels,
  .workspace[data-mobile-view="itinerary"] .builder-labels {
    display: none;
  }

  .workspace[data-mobile-view="places"] .trip-builder,
  .workspace[data-mobile-view="itinerary"] .trip-builder {
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 10px;
  }

  .workspace[data-mobile-view="places"] .city-plan-row input,
  .workspace[data-mobile-view="places"] .city-days-control,
  .workspace[data-mobile-view="itinerary"] .city-plan-row input,
  .workspace[data-mobile-view="itinerary"] .city-days-control {
    min-height: 36px;
    padding-left: 8px;
    padding-right: 6px;
    font-size: 12px;
  }

  .workspace[data-mobile-view="places"] .city-days-control span,
  .workspace[data-mobile-view="itinerary"] .city-days-control span {
    display: none;
  }

  .workspace[data-mobile-view="places"] #buildTrip,
  .workspace[data-mobile-view="places"] .add-trip-city,
  .workspace[data-mobile-view="itinerary"] #buildTrip,
  .workspace[data-mobile-view="itinerary"] .add-trip-city {
    min-height: 36px;
    font-size: 12px;
  }

  .workspace[data-mobile-view="places"] .day-tab,
  .workspace[data-mobile-view="itinerary"] .day-tab {
    min-height: 38px;
    padding: 5px 72px 5px 6px;
  }

  .workspace[data-mobile-view="places"] .day-number,
  .workspace[data-mobile-view="itinerary"] .day-number {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .workspace[data-mobile-view="places"] .day-name,
  .workspace[data-mobile-view="itinerary"] .day-name {
    font-size: 11px;
  }

  .recommend-panel,
  .plan-panel {
    min-height: 680px;
    max-height: calc(100vh - 98px);
  }

  .plan-panel {
    border-right: 0;
  }

  .section-head {
    align-items: center;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .trip-builder {
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 14px;
  }

  .city-plan-rows,
  .day-tabs {
    gap: 6px;
  }

  .day-tabs {
    margin-top: 14px;
  }

  .day-tab {
    min-height: 42px;
    padding: 6px 72px 6px 8px;
  }

  .add-day {
    margin-top: 6px;
  }

  .mobile-settings-toggle {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-top: 1px solid var(--soft-line);
    border-radius: 0;
    color: var(--ink);
    text-align: left;
  }

  .mobile-settings-toggle::after {
    content: "⌄";
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
    transition: transform 160ms ease;
  }

  .mobile-settings-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .mobile-settings-toggle span {
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-settings-toggle small {
    color: var(--muted);
    font-size: 11px;
  }

  .day-settings-wrap {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 260ms ease, opacity 160ms ease, transform 200ms ease;
  }

  .day-settings-wrap.open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
  }

  .day-settings-wrap .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 12px;
  }

  .day-settings-wrap .form-grid > label:first-child,
  .day-settings-wrap .form-grid > .start-point-field,
  .day-settings-wrap .form-grid > .hotel-field {
    grid-column: 1 / -1;
  }

  .day-settings-wrap .meal-grid {
    gap: 9px;
    margin-top: 9px;
  }

  .metric-row {
    gap: 6px;
    margin-top: 10px;
  }

  .metric-row div {
    border: 0;
    padding: 8px 6px;
  }

  .metric-row strong {
    font-size: 15px;
  }

  .panel-toolbar {
    min-height: 58px;
    padding: 12px 14px;
    align-items: center;
  }

  .panel-toolbar > div:first-child {
    min-width: 0;
  }

  .panel-toolbar p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs {
    gap: 1px;
    padding: 2px;
  }

  .tab {
    min-height: 30px;
    padding: 0 8px;
    font-size: 13px;
  }

  .place-search {
    grid-template-columns: minmax(0, 1fr) 88px auto;
    padding: 9px 14px;
  }

  .recommend-actions {
    min-height: 46px;
    padding: 6px 14px;
  }

  .card-list {
    gap: 8px;
    padding: 10px;
  }

  .place-card {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-color: #edf0f2;
  }

  .place-card > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-auto-rows: min-content;
    column-gap: 12px;
  }

  .place-image {
    grid-column: 1;
    grid-row: 1 / span 7;
    height: 112px;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 6px;
  }

  .place-card .card-title-row,
  .place-card .card-meta,
  .place-card .place-detail,
  .place-card .small-text,
  .place-card .tag-row,
  .place-card .link-row {
    grid-column: 2;
  }

  .place-card .place-detail {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .place-card .small-text {
    margin-top: 4px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .place-card .tag-row {
    margin-top: 6px;
  }

  .place-card .link-row {
    margin-top: 6px;
  }

  .map-preview {
    height: 280px;
    margin: 12px;
  }

  .timeline {
    padding: 0 12px 14px;
  }
}

@media (min-width: 600px) and (min-height: 480px) and (max-width: 1180px) {
  .workspace {
    grid-template-columns: 290px minmax(430px, 1fr);
  }

  .plan-panel {
    grid-column: 1 / -1;
    min-height: 720px;
    border-top: 1px solid var(--soft-line);
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 300px minmax(360px, 1fr);
  }

  .plan-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .app-transition {
    background: #fff;
    transition-duration: 260ms;
  }

  .workspace.workspace-entering {
    animation: mobile-workspace-in 420ms cubic-bezier(.16, 1, .3, 1) both;
  }

  @keyframes mobile-workspace-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  :root {
    --mobile-topbar-height: 64px;
    --mobile-nav-height: 82px;
  }

  html {
    scroll-padding-top: var(--mobile-topbar-height);
  }

  body {
    background: #fff;
    overscroll-behavior-y: auto;
  }

  button,
  input,
  select {
    min-height: 44px;
  }

  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  body.trip-home-active .app-shell {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .trip-home {
    min-height: calc(100dvh - var(--mobile-topbar-height));
    padding: 24px 16px calc(40px + env(safe-area-inset-bottom));
  }

  .trip-home-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 20px;
  }

  .trip-home-head h1 {
    font-size: 28px;
  }

  .trip-home-head > button {
    width: 100%;
  }

  .trip-home-list {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .trip-home-card {
    min-height: 100px;
    padding: 16px;
  }

  .trip-home-empty {
    min-height: 170px;
    margin-top: 16px;
  }

  .topbar {
    height: var(--mobile-topbar-height);
    min-height: var(--mobile-topbar-height);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    gap: 10px;
    padding: 8px 14px;
    align-items: center;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .brand {
    grid-area: brand;
    gap: 7px;
    font-size: 18px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .search-box {
    display: none;
  }

  .top-actions {
    grid-area: actions;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .top-actions .save-status,
  .top-account-button > span:last-child {
    display: none;
  }

  .language-switch {
    width: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 999px;
  }

  .language-switch [data-language-label] { display: none; }

  .top-account-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
  }

  .top-account-button .top-account-avatar {
    display: grid;
    width: 100%;
    height: 100%;
  }

  #shareTrip {
    min-width: 60px;
    padding: 0 12px;
  }

  #shareTrip:disabled {
    display: none;
  }

  .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .shared-banner {
    width: calc(100% - 24px);
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
  }

  .shared-banner-content {
    max-height: 132px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .shared-banner.collapsed .shared-banner-content {
    max-height: 0;
  }

  .shared-banner-actions {
    display: flex;
  }

  .workspace {
    display: block;
    width: 100%;
    min-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-nav-height));
    padding: 0;
  }

  .workspace > section {
    display: none !important;
  }

  .workspace > .mobile-active {
    display: block !important;
  }

  .workspace > .recommend-panel.mobile-active,
  .workspace > .plan-panel.mobile-active {
    display: flex !important;
  }

  .workspace.mobile-page-transitioning {
    position: relative;
    overflow-x: clip;
  }

  .workspace.mobile-page-transitioning > .mobile-page-leaving {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    display: block !important;
  }

  .workspace.mobile-page-transitioning > .recommend-panel.mobile-page-leaving,
  .workspace.mobile-page-transitioning > .plan-panel.mobile-page-leaving {
    display: flex !important;
  }

  .workspace.mobile-page-transitioning > .mobile-active {
    position: relative;
    z-index: 1;
  }

  .controls-panel,
  .recommend-panel,
  .plan-panel {
    position: static;
    min-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-nav-height));
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .controls-panel {
    padding: 18px 18px 34px;
  }

  .controls-panel > .section-head {
    display: none;
  }

  .mobile-page-intro {
    display: block;
    padding: 8px 0 18px;
  }

  .mobile-page-intro > span {
    color: #168fbe;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-page-intro h2 {
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.2;
  }

  .mobile-page-intro p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }

  .trip-builder {
    margin-top: 0;
    gap: 12px;
    padding-bottom: 20px;
  }

  .builder-labels {
    display: none;
  }

  .city-plan-row {
    grid-template-columns: minmax(0, 1fr) 88px 40px;
    gap: 8px;
  }

  .city-plan-row input,
  .city-days-control {
    min-height: 50px;
  }

  .city-plan-row input {
    border-color: #e2e6ea;
    border-radius: 8px;
    background: #f8fafc;
  }

  .city-days-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    background: #f8fafc;
  }

  .city-days-control .city-days-input {
    min-height: 48px;
    border: 0;
    background: transparent;
    outline: 0;
  }

  .city-days-control span {
    display: block;
    padding-right: 10px;
    color: var(--muted);
    font-size: 13px;
  }

  .remove-city-row {
    min-height: 40px;
    border: 0;
    background: transparent;
  }

  .add-trip-city {
    min-height: 46px;
    border-color: #d7e8ef;
    background: #f4fbfd;
    color: #087fae;
  }

  #buildTrip {
    min-height: 50px;
    border-color: #20aee3;
    border-radius: 8px;
    background: #20aee3;
    font-weight: 700;
  }

  .day-tabs {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .controls-panel:not(.mobile-ready) .day-tabs,
  .controls-panel:not(.mobile-ready) .add-day,
  .controls-panel:not(.mobile-ready) .mobile-settings-toggle,
  .controls-panel:not(.mobile-ready) .day-settings-wrap {
    display: none;
  }

  .day-tabs::-webkit-scrollbar,
  .tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    min-height: 56px;
  }

  .day-tab-shell {
    scroll-snap-align: none;
  }

  .mobile-settings-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin-top: 12px;
    padding: 0 14px;
    border-color: #e4e8eb;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    box-shadow: 0 4px 16px rgba(32, 33, 36, 0.06);
  }

  .mobile-settings-toggle::after {
    content: "⌄";
    color: var(--muted);
    font-size: 20px;
    transition: transform 160ms ease;
  }

  .mobile-settings-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .mobile-settings-toggle span,
  .mobile-settings-toggle small {
    display: block;
  }

  .mobile-settings-toggle span {
    color: var(--ink);
    font-weight: 600;
  }

  .mobile-settings-toggle small {
    margin-left: auto;
    margin-right: 10px;
    color: var(--muted);
    font-size: 12px;
  }

  .day-settings-wrap {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 280ms ease, opacity 180ms ease, transform 220ms ease;
  }

  .day-settings-wrap.open {
    max-height: 1100px;
    opacity: 1;
    transform: translateY(0);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .form-grid > label:first-child,
  .form-grid > .start-point-field,
  .form-grid > .hotel-field {
    grid-column: 1 / -1;
  }

  .meal-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .metric-row div {
    padding: 9px 7px;
  }

  .metric-row strong {
    font-size: 15px;
  }

  .recommend-panel,
  .plan-panel {
    flex-direction: column;
  }

  .recommend-controls {
    display: block;
    position: sticky;
    top: var(--mobile-topbar-height);
    z-index: 8;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
  }

  .panel-toolbar {
    display: block;
    padding: 12px 12px 8px;
  }

  .panel-toolbar > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
  }

  .recommend-panel .panel-toolbar > div:first-child {
    margin-bottom: 6px;
  }

  .recommend-panel .panel-toolbar p {
    display: none;
  }

  .panel-toolbar p {
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }

  .tabs {
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 3px;
    scrollbar-width: none;
  }

  .tab {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .place-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 12px;
  }

  .place-search input {
    grid-column: auto;
    min-width: 0;
  }

  .place-search button {
    padding: 0 10px;
  }

  #placeSearchKind {
    display: none;
  }

  .recommend-actions {
    min-height: 50px;
    flex-wrap: wrap;
    padding: 6px 12px;
  }

  .recommend-action-buttons {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
  }

  .recommend-actions button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 13px;
  }

  .recommend-panel.browsing .recommend-controls .panel-toolbar {
    padding: 6px 10px;
  }

  .recommend-panel.browsing .recommend-controls .panel-toolbar > div:first-child,
  .recommend-panel.browsing .recommend-controls .place-search {
    display: none;
  }

  .recommend-panel.browsing .recommend-controls .recommend-actions {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .card-list {
    display: grid;
    flex: none;
    overflow: visible;
    padding: 12px 10px 24px;
  }

  .recommendation-loading {
    gap: 12px;
  }

  .recommendation-loading-label {
    padding: 2px 4px;
  }

  .recommendation-skeleton {
    min-height: 260px;
    display: block;
    position: relative;
    padding: 10px;
  }

  .recommendation-skeleton::before {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    width: 24px;
    height: 24px;
  }

  .skeleton-image {
    width: 100%;
    height: 154px;
    margin-bottom: 14px;
  }

  .skeleton-copy {
    gap: 10px;
  }

  .skeleton-copy i:first-child { width: 54%; }

  .place-card {
    display: block;
    position: relative;
    padding: 10px;
  }

  .place-card > input[type="checkbox"] {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    filter: drop-shadow(0 1px 2px rgba(32, 33, 36, 0.3));
  }

  .place-image {
    height: 148px;
    aspect-ratio: auto;
    margin-bottom: 10px;
  }

  .link-row {
    gap: 12px;
  }

  .plan-panel > .panel-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 7;
    padding: 11px 10px;
    background: #fff;
  }

  .plan-panel > .panel-toolbar > div:first-child {
    min-width: 0;
    display: block;
    margin: 0;
  }

  .plan-panel > .panel-toolbar h2 {
    margin-bottom: 2px;
  }

  .plan-panel > .panel-toolbar p {
    max-width: 100%;
    text-align: left;
  }

  .itinerary-day-tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 18px;
    min-height: 52px;
    padding: 0 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--soft-line);
    background: #fff;
    scrollbar-width: none;
    --selection-background: transparent;
    --selection-border: 0;
    --selection-shadow: none;
  }

  .itinerary-day-tabs::-webkit-scrollbar {
    display: none;
  }

  .itinerary-day-tab {
    position: relative;
    min-width: max-content;
    min-height: 51px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 2px;
    border: 0;
    color: #9aa0a6;
    background: transparent;
  }

  .itinerary-day-tab strong {
    font-size: 13px;
  }

  .itinerary-day-tab.active {
    color: #111;
  }

  .itinerary-day-tab.active::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: #25b9ee;
  }

  .route-actions {
    display: inline-flex;
    width: auto;
    gap: 1px;
    justify-self: end;
  }

  .route-actions button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
  }

  .route-actions .route-edit-button {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .route-actions .route-edit-button span {
    display: none;
  }

  .route-actions .hotel-shortcut-button {
    width: auto;
    min-width: max-content;
    padding: 0 8px;
    font-size: 12px;
  }

  .map-preview {
    position: sticky;
    top: var(--mobile-topbar-height);
    z-index: 6;
    height: min(42dvh, 330px);
    margin: 10px;
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.16);
    contain: layout paint;
    overflow-anchor: none;
    transition: height 160ms cubic-bezier(.2,.8,.2,1);
  }

  .map-preview .amap-map {
    pointer-events: auto;
    touch-action: none;
  }

  .plan-panel.map-compact .map-preview {
    height: 150px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .timeline {
    flex: none;
    overflow: visible;
    padding: 2px 10px 28px;
  }

  .timeline-item {
    grid-template-columns: 56px 18px minmax(0, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .timeline-time,
  .timeline-note {
    font-size: 12px;
  }

  .timeline-title {
    font-size: 15px;
  }

  .timeline-heading-row {
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
  }

  .timeline-item-actions {
    margin-left: auto;
  }

  .nearby-food-button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-color: transparent;
    background: #f1f3f4;
  }

  .route-editing .timeline-heading-row {
    flex-wrap: wrap;
  }

  .route-editing .timeline-item-actions {
    width: 100%;
  }

  .timeline-edit-controls { flex: 1 1 auto; }

  .timeline-day-select {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .route-edit-hint {
    margin: 8px 10px 4px;
  }

  .segment-navigation {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .segment-navigation > div {
    width: 100%;
  }

  .segment-nav-link {
    min-height: 36px;
    flex: 1 1 0;
  }

  .mobile-navigation {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    width: min(354px, calc(100% - 32px));
    height: 64px;
    padding: 7px;
    display: flex;
    gap: 2px;
    border: 1px solid rgba(218, 220, 224, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.18);
    transform: translateX(-50%);
    --selection-background: rgba(248, 250, 252, .94);
    --selection-border: 0;
    --selection-radius: 18px;
  }

  .mobile-nav-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 18px;
    padding: 4px 7px;
    color: var(--muted);
    background: transparent;
    transition: color 180ms ease, background 180ms ease, transform 160ms ease;
  }

  .mobile-nav-tab.active {
    color: var(--blue-strong);
    background: rgba(248, 250, 252, 0.94);
    box-shadow: none;
  }

  .mobile-nav-symbol {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef1f3;
    color: #7a8087;
    font-size: 12px;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  .mobile-nav-tab.active .mobile-nav-symbol {
    background: var(--blue);
    color: #fff;
    transform: scale(1.06);
  }

  .mobile-nav-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: #25b9ee;
    transform: translateX(-50%);
  }

  .mobile-nav-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
  }

  .mobile-nav-copy strong {
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-nav-copy small {
    display: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .mobile-nav-tab:active {
    transform: scale(0.96);
  }

  .workspace > .mobile-active.mobile-forward {
    transform: translateX(14px);
    opacity: 0;
  }

  .workspace > .mobile-active.mobile-back {
    transform: translateX(-14px);
    opacity: 0;
  }

  .workspace > .mobile-active.mobile-entering {
    transform: translateX(0);
    opacity: 1;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
  }

  .mobile-entering .place-card,
  .mobile-entering .timeline-item,
  .mobile-entering .day-tab {
    animation: mobile-content-in 300ms cubic-bezier(.2,.8,.2,1) both;
  }

  @keyframes mobile-content-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-footer {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-legal nav {
    gap: 10px;
  }

  .share-link-row {
    grid-template-columns: 1fr;
  }

  .share-layout { grid-template-columns: 1fr; gap: 16px; }
  .share-inspiration-submit { grid-template-columns: 1fr; margin-inline: 16px; }
  .share-inspiration-submit > button { width: 100%; }
  .share-qr-code { width: 150px; height: 150px; }
  .share-channels { display: grid; grid-template-columns: repeat(3, 1fr); }
  .share-channel { min-width: 0; }

  .share-dialog,
  .start-point-dialog,
  .hotel-search-dialog,
  .hotel-scope-dialog,
  .transport-dialog,
  .train-station-dialog,
  .place-picker-dialog,
  .nearby-restaurant-dialog,
  .restaurant-detail-dialog,
  .manual-plan-dialog,
  .account-dialog {
    width: calc(100% - 24px);
    max-width: none;
    max-height: min(85dvh, 820px);
    margin: auto 12px max(12px, env(safe-area-inset-bottom));
    border-radius: var(--radius-dialog);
  }

  .manual-plan-dialog {
    max-height: min(84dvh, 720px);
  }

  .hotel-search-dialog {
    height: min(85dvh, 760px);
  }

  .hotel-search-results {
    max-height: none;
    padding-inline: 12px;
  }

  .hotel-search-result {
    grid-template-columns: 92px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .hotel-result-image {
    width: 92px;
    height: 70px;
  }

  .place-picker-dialog {
    height: min(85dvh, 820px);
    max-height: min(85dvh, calc(100dvh - env(safe-area-inset-top) - 8px));
  }

  .place-picker-dialog .picker-results {
    max-height: none;
    padding-bottom: 18px;
  }

  .place-picker-dialog .picker-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid var(--soft-line);
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 -6px 18px rgba(32, 33, 36, 0.08);
  }

  .nearby-restaurant-dialog {
    max-height: min(88dvh, 760px);
    overflow: hidden;
    border-radius: var(--radius-dialog);
  }

  .transport-form-grid,
  .transport-form-grid.compact { grid-template-columns: 1fr; gap: 10px; }
  .transport-form-body { padding: 14px 16px; }
  .transport-provider-links { overflow-x: auto; }
  .transport-provider-link { flex: 0 0 auto; }

  .nearby-restaurant-dialog .dialog-head {
    align-items: center;
    padding: 16px 18px 12px;
    border-bottom: 0;
  }

  .nearby-restaurant-dialog .dialog-head h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .nearby-restaurant-dialog .dialog-head p {
    margin-top: 3px;
    font-size: 12px;
  }

  .nearby-restaurant-dialog .dialog-head > button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #5f6368;
    background: #f1f3f4;
    font-size: 0;
  }

  .nearby-restaurant-dialog .dialog-head > button::after {
    content: "×";
    font-size: 23px;
    line-height: 1;
  }

  .nearby-restaurant-tabs {
    gap: 6px;
    padding: 7px 16px 12px;
    border-bottom: 1px solid var(--soft-line);
  }

  .nearby-restaurant-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nearby-restaurant-results {
    max-height: calc(88dvh - 150px - env(safe-area-inset-bottom));
    padding: 4px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .nearby-restaurant-card {
    padding: 14px 0;
  }

  .nearby-restaurant-photos {
    aspect-ratio: 2.8 / 1;
  }

  .nearby-restaurant-add { min-height: 36px; }

  .nearby-restaurant-title > strong { font-size: 16px; }
  .nearby-restaurant-score strong { font-size: 18px; }

  .restaurant-detail-dialog { max-height: min(94dvh, 860px); }
  .restaurant-detail-gallery { height: 230px; }
  .restaurant-detail-header { padding: 18px 16px 14px; }
  .restaurant-detail-title-row { gap: 10px; }
  .restaurant-detail-title-row h2 { font-size: 22px; }
  .restaurant-detail-rating { min-width: 64px; }
  .restaurant-detail-rating strong { font-size: 28px; }
  .restaurant-detail-facts { grid-template-columns: 1fr 1fr; margin: 0 16px 14px; }
  .restaurant-detail-section { margin: 0 16px; }
  .restaurant-detail-footer { padding-left: 16px; padding-right: 16px; }

  .nearby-meal-conflict {
    grid-template-columns: 1fr 1fr;
  }

  .nearby-meal-conflict > div {
    grid-column: 1 / -1;
  }

  .picker-footer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .city-suggestions {
    max-width: calc(100vw - 24px);
    max-height: 62dvh;
  }

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

  .city-suggestion-index button {
    min-width: 0;
    font-size: 11px;
  }

  .city-alpha-section {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 10px;
  }

  .picker-result {
    grid-template-columns: 22px 56px minmax(0, 1fr);
  }

  .picker-result img {
    width: 56px;
    height: 52px;
  }

  .picker-kind {
    grid-column: 3;
    justify-self: start;
  }

  .account-trip-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-trips-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-trips-actions {
    width: 100%;
  }

  .account-trips-actions button {
    flex: 1;
  }

  .account-trip-actions {
    width: 100%;
  }

  .account-trip-actions button {
    flex: 1;
  }

  .account-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-summary-actions {
    width: 100%;
    padding-left: 60px;
  }

  .account-summary-actions button {
    flex: 1;
  }

  .account-profile-form {
    grid-template-columns: 1fr;
  }

  .account-profile-form > * {
    grid-column: 1;
  }
}

@media (min-width: 600px) and (min-height: 480px) and (max-width: 1180px) {
  .app-shell { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }

  .workspace {
    display: grid;
    grid-template-columns: minmax(270px, 32%) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    align-items: start;
  }

  .workspace > section { display: none !important; }

  .workspace > .controls-panel {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: calc(var(--mobile-topbar-height) + 12px);
    max-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-nav-height) - 24px);
    overflow: auto;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .workspace[data-mobile-view="planner"] > .controls-panel {
    grid-column: 1 / -1;
    width: min(560px, 100%);
    justify-self: center;
  }

  .workspace[data-mobile-view="planner"] > .recommend-panel,
  .workspace[data-mobile-view="planner"] > .plan-panel { display: none !important; }

  .workspace[data-mobile-view="places"],
  .workspace[data-mobile-view="itinerary"] {
    grid-template-columns: minmax(330px, .95fr) minmax(0, 1.45fr);
  }

  .workspace[data-mobile-view="places"] > .controls-panel,
  .workspace[data-mobile-view="itinerary"] > .controls-panel { display: none !important; }

  .workspace[data-mobile-view="places"] > .recommend-panel,
  .workspace[data-mobile-view="places"] > .plan-panel,
  .workspace[data-mobile-view="itinerary"] > .recommend-panel,
  .workspace[data-mobile-view="itinerary"] > .plan-panel {
    display: flex !important;
    grid-row: 1;
    min-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-nav-height) - 24px);
    max-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-nav-height) - 24px);
    overflow: hidden;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .workspace[data-mobile-view="places"] > .recommend-panel,
  .workspace[data-mobile-view="itinerary"] > .recommend-panel { grid-column: 1; }
  .workspace[data-mobile-view="places"] > .plan-panel,
  .workspace[data-mobile-view="itinerary"] > .plan-panel { grid-column: 2; }

  .workspace[data-mobile-view="planner"] > .controls-panel.mobile-active { grid-column: 1 / -1; }
  .recommend-panel .card-list,
  .plan-panel .timeline {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .timeline > .illustrated-empty-state {
    min-height: 100%;
    padding: 6px 12px 10px;
  }

  .timeline > .illustrated-empty-state .empty-state__art {
    width: min(100%, 180px);
    max-height: 56px;
  }

  .timeline > .illustrated-empty-state .empty-state__title {
    margin-top: 2px;
    font-size: 14px;
  }

  .timeline > .illustrated-empty-state .empty-state__description {
    margin-top: 0;
    font-size: 11px;
  }
  .recommend-controls { top: 0; }
  .plan-panel > .panel-toolbar { position: static; }
  .map-preview { flex: 0 0 290px; height: 290px; }

  .plan-panel.map-compact .map-preview {
    flex-basis: 150px;
    height: 150px;
  }

  .nearby-restaurant-dialog,
  .restaurant-detail-dialog {
    width: min(860px, calc(100% - 40px));
    max-height: min(88dvh, 820px);
    margin: auto;
    border-radius: 8px;
  }

  .nearby-restaurant-results { max-height: min(66dvh, 610px); }

  .nearby-restaurant-open {
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;
  }

  .nearby-restaurant-photos {
    height: 154px;
    aspect-ratio: auto;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .nearby-restaurant-photo:first-child { grid-row: 1 / -1; }
  .nearby-restaurant-actions { margin-top: 8px; }
  .restaurant-detail-gallery { height: 250px; }

  .mobile-navigation { width: min(284px, calc(100% - 32px)); }
  .mobile-nav-tab[data-mobile-view="itinerary"] { display: none; }
  .mobile-nav-tab[data-mobile-view="places"] .mobile-nav-copy strong { font-size: 0; }
  .mobile-nav-tab[data-mobile-view="places"] .mobile-nav-copy strong::after { content: "景点与行程"; font-size: 14px; }
}

@media (min-width: 600px) and (max-width: 1180px) and (max-height: 700px) {
  :root {
    --mobile-topbar-height: 48px;
    --mobile-nav-height: 58px;
  }

  .mobile-navigation {
    bottom: max(4px, env(safe-area-inset-bottom));
    height: 50px;
    padding: 4px;
    border-radius: 18px;
  }

  .mobile-nav-tab {
    min-height: 40px;
  }

  body:not(.trip-home-active) .site-footer {
    display: none;
  }
}

@media (max-width: 599px), (max-height: 479px) {
  .mobile-navigation { width: min(360px, calc(100% - 32px)); }
  .mobile-nav-tab[data-mobile-view="itinerary"] { display: flex; }
  .mobile-nav-tab[data-mobile-view="places"] .mobile-nav-copy strong { font-size: 14px; }
  .mobile-nav-tab[data-mobile-view="places"] .mobile-nav-copy strong::after { content: none; }

  .place-card .card-title-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .place-card .card-title-row h3 {
    min-width: 0;
  }

  .place-card .place-title-button {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
  }

  .place-card .score {
    min-width: 0;
    max-width: 92px;
    justify-self: end;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .empty-state__art {
    width: min(100%, 220px);
    max-height: 90px;
  }

  .empty-state__title {
    margin-top: 4px;
    font-size: 14px;
  }

  .empty-state__description {
    margin-top: 2px;
    font-size: 12px;
  }

  .map-fallback .empty-state__art {
    max-height: 72px;
  }
}

@media (max-width: 599px) {
  html[lang="en"] .plan-panel > .panel-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  html[lang="en"] .plan-panel > .panel-toolbar > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  html[lang="en"] .plan-panel > .panel-toolbar .route-actions {
    width: 100%;
    justify-self: stretch;
  }

  html[lang="en"] .route-actions .hotel-shortcut-button {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  html[lang="en"] .route-actions .hotel-shortcut-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .recommend-panel .tab {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }



  .manual-plan-body {
    padding: 14px 16px;
  }

  .manual-plan-items {
    max-height: 46dvh;
  }

  .shared-banner-content {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .shared-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .onboarding-card {
    padding: 22px 18px 18px;
  }

  .onboarding-card h2 {
    font-size: 21px;
  }

  .onboarding-actions {
    grid-template-columns: 1fr auto auto auto;
    gap: 6px;
  }

  .onboarding-actions button {
    padding: 8px 10px;
    font-size: 13px;
  }

  #previousOnboarding, #skipOnboarding, #nextOnboarding {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (orientation: landscape) and (max-height: 479px) and (max-width: 1180px) {
  :root {
    --mobile-topbar-height: 48px;
    --mobile-nav-height: 58px;
  }

  button,
  input,
  select {
    min-height: 36px;
  }

  .topbar {
    gap: 8px;
    padding: 4px 12px;
  }

  .brand-wordmark {
    max-width: 132px;
    height: 32px;
  }

  .top-actions {
    gap: 5px;
  }

  .language-switch,
  .top-account-button,
  .icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  #shareTrip {
    min-width: 52px;
    min-height: 36px;
    padding: 0 10px;
  }

  .controls-panel {
    padding: 10px 14px 22px;
  }

  .mobile-page-intro {
    padding: 2px 0 10px;
  }

  .mobile-page-intro > span,
  .mobile-page-intro p {
    display: none;
  }

  .mobile-page-intro h2 {
    margin-top: 0;
    font-size: 21px;
  }

  .panel-toolbar {
    padding: 8px 12px 6px;
  }

  .place-search {
    padding: 6px 12px;
  }

  .recommend-actions {
    min-height: 44px;
    padding: 4px 12px;
  }

  .card-list {
    padding: 8px 10px 18px;
  }

  .place-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .place-card > input[type="checkbox"] {
    position: static;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 2px;
    filter: none;
  }

  .place-card > div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-auto-rows: min-content;
    column-gap: 12px;
  }

  .place-image {
    grid-column: 1;
    grid-row: 1 / span 7;
    height: 112px;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 6px;
  }

  .place-card .card-title-row,
  .place-card .card-meta,
  .place-card .place-detail,
  .place-card .small-text,
  .place-card .tag-row,
  .place-card .scheduled-place-note,
  .place-card .link-row {
    grid-column: 2;
  }

  .place-card .place-detail {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .place-card .small-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .map-preview {
    height: min(46dvh, 190px);
    margin: 8px 10px;
  }

  .plan-panel.map-compact .map-preview {
    height: 116px;
  }

  .mobile-navigation {
    bottom: max(4px, env(safe-area-inset-bottom));
    width: min(330px, calc(100% - 24px));
    height: 50px;
    padding: 4px;
    border-radius: 18px;
  }

  .mobile-nav-tab {
    min-height: 40px;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 14px;
  }

  .mobile-nav-symbol {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .mobile-nav-copy strong {
    font-size: 12px;
  }

  .mobile-nav-tab.active::after {
    bottom: 0;
  }

  .site-footer {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
}

@keyframes combined-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (min-width: 1181px) and (max-width: 1360px) {
  .save-status {
    display: none;
  }

  .language-switch,
  .top-account-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
  }

  .language-switch [data-language-label],
  .top-account-button > span:last-child {
    display: none;
  }

  .top-account-button .top-account-avatar {
    display: grid;
    width: 100%;
    height: 100%;
  }

  .plan-panel > .panel-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }

  .plan-panel > .panel-toolbar .route-actions {
    max-width: none;
    overflow: visible;
  }
}

@media (min-width: 1181px) {
  html[lang="en"] .workspace {
    grid-template-columns: 270px minmax(400px, 1.06fr) minmax(440px, 1.18fr);
  }

  html[lang="en"] .workspace[data-mobile-view="places"],
  html[lang="en"] .workspace[data-mobile-view="itinerary"] {
    grid-template-columns: 238px minmax(430px, 1.04fr) minmax(450px, 1.2fr);
  }

  html[lang="en"] .recommend-panel .panel-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  html[lang="en"] .recommend-panel .panel-toolbar > div:first-child {
    display: block;
    min-width: 0;
  }

  html[lang="en"] .recommend-panel .panel-toolbar h2 {
    overflow: visible;
    white-space: normal;
  }

html[lang="en"] .recommend-panel .tabs,
  html[lang="en"] .recommend-panel.browsing .panel-toolbar .tabs {
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html[lang="en"] .recommend-panel .tab {
    min-width: 0;
    padding: 0 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  html[lang="en"] .recommend-panel.browsing .panel-toolbar {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  html[lang="en"] .recommend-panel.browsing .panel-toolbar p {
    display: none;
  }

  html[lang="en"] .mobile-settings-toggle {
    min-height: 40px;
  }

  html[lang="en"] .mobile-settings-toggle span {
    white-space: nowrap;
  }

  html[lang="en"] .mobile-settings-toggle small {
    display: none;
  }

html[lang="en"] .place-card h3 {
    font-size: 15px;
  }
}

/* Refined trip home and account entry. Business logic remains unchanged. */
.account-dialog {
  width: min(980px, calc(100% - 48px));
  max-height: min(88vh, 780px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(204, 219, 235, 0.88);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(32, 56, 85, 0.24);
}

.account-dialog[open] {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
}

.account-dialog::backdrop {
  background: rgba(24, 38, 56, 0.42);
  backdrop-filter: blur(8px);
}

.account-auth-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 42px;
  overflow: hidden;
  border-right: 1px solid rgba(204, 219, 235, 0.74);
  background:
    radial-gradient(circle at 20% 0%, rgba(41, 140, 255, 0.2), transparent 42%),
    linear-gradient(160deg, #f7fbff, #eaf5ff 70%, #f6fcff);
}

.account-intro-logo {
  width: 48px;
  height: 48px;
  display: block;
}

.account-auth-intro > div {
  margin-top: 54px;
}

.account-auth-intro > div > span {
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 750;
}

.account-auth-intro h2 {
  max-width: 360px;
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.account-auth-intro p {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.account-auth-intro ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #425466;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.account-auth-intro li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-auth-intro li > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-strong);
  background: #fff;
  box-shadow: 0 5px 14px rgba(26, 115, 232, 0.12);
}

.account-intro-art {
  width: calc(100% + 84px);
  height: 160px;
  display: block;
  margin: auto -42px -42px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.92;
  filter: drop-shadow(0 14px 24px rgba(26, 115, 232, 0.12));
}

.account-dialog-panel {
  min-width: 0;
  max-height: min(88vh, 780px);
  overflow: auto;
  background: #fff;
}

.account-dialog .dialog-head {
  align-items: flex-start;
  padding: 36px 42px 12px;
  border-bottom: 0;
}

.account-dialog .dialog-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.account-dialog .dialog-head p {
  margin-top: 8px;
}

.account-dialog-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  color: #697586;
  background: transparent;
  font-size: 27px;
  font-weight: 350;
  line-height: 1;
}

.account-dialog-close:hover {
  background: #f1f5f9;
}

.account-dialog .account-auth-view {
  padding: 20px 42px 42px;
}

.account-dialog .account-tabs {
  padding: 4px;
  border-radius: var(--radius-button);
  background: #f1f5f9;
}

.account-dialog .account-tabs button {
  min-height: 46px;
  border-radius: var(--radius-button);
}

.account-dialog .account-tabs button.active {
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(37, 57, 79, 0.11);
}

.account-dialog .account-form {
  gap: 16px;
  margin-top: 24px;
}

.account-dialog .account-form label {
  display: grid;
  gap: 8px;
  color: #425466;
  font-size: 13px;
  font-weight: 650;
}

.account-dialog .account-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cbd7e4;
  border-radius: 14px;
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-dialog .account-form input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: none;
}

.account-dialog .account-form > button.primary {
  min-height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.account-dialog :is(button, textarea, select):focus-visible,
.trip-home :is(button, a):focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.28);
  outline-offset: 3px;
}

.account-dialog.is-authenticated {
  width: min(760px, calc(100% - 48px));
  overflow: auto;
}

.account-dialog.is-authenticated[open] {
  grid-template-columns: 1fr;
}

.account-dialog.is-authenticated .account-auth-intro {
  display: none;
}

.account-dialog.is-authenticated .account-dialog-panel {
  max-height: min(88vh, 780px);
}

.account-dialog.is-authenticated .account-home-view {
  padding: 20px 42px 42px;
}

@media (max-width: 900px) {
  .trip-home {
    padding: 32px 22px 56px;
  }

  .trip-home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px;
  }

  .trip-home-hero-copy h1 {
    max-width: 620px;
  }

  .trip-home-visual {
    width: min(620px, 92%);
    margin: 0 auto;
  }

  .trip-home-head {
    align-items: flex-start;
    flex-direction: row;
    padding-bottom: 0;
  }

  .trip-home-import-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-dialog[open] {
    grid-template-columns: minmax(250px, 0.76fr) minmax(390px, 1.24fr);
  }

  .account-auth-intro {
    padding: 34px 28px;
  }

  .account-auth-intro > div {
    margin-top: 42px;
  }

  .account-auth-intro h2 {
    font-size: 28px;
  }
}

@media (max-width: 680px), (max-height: 560px) {
  .trip-home {
    min-height: calc(100dvh - var(--mobile-topbar-height, 64px));
    padding: 16px 12px calc(36px + env(safe-area-inset-bottom));
  }

  .trip-home-hero {
    gap: 20px;
    padding: 22px 18px 26px;
    border-radius: 24px;
  }

  .trip-home-hero-copy h1 {
    font-size: clamp(23px, 6.2vw, 26px);
    line-height: 1.14;
  }

  .trip-home-hero-copy h1 > span + span {
    margin-top: 4px;
  }

  .trip-home-lead {
    margin-top: 14px !important;
    font-size: 14px;
    line-height: 1.58;
  }

  .trip-home-features {
    gap: 10px 14px;
    margin-top: 22px;
  }

  .trip-home-features span {
    font-size: 12.5px;
  }

  .trip-home-actions,
  .trip-home-actions > .primary {
    width: 100%;
  }

  .trip-home-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .trip-home-guest {
    justify-content: center;
  }

  .trip-home-visual {
    width: 100%;
    transform: none;
  }

  .trip-home-visual-frame {
    padding: 14px;
    border-radius: 20px;
  }

  .trip-home-visual-frame img {
    border-radius: 14px;
  }

  .trip-home-visual-chip {
    min-height: 38px;
    font-size: 12px;
  }

  .trip-home-visual-chip b {
    width: 26px;
    height: 26px;
  }

  .trip-home-visual-chip.chip-one { left: -8px; top: 12%; }
  .trip-home-visual-chip.chip-two { right: -8px; top: 44%; }
  .trip-home-visual-chip.chip-three { left: 7%; bottom: -14px; }

  .trip-home-library {
    margin-top: 26px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .trip-home-inspirations {
    margin-top: 20px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .trip-home-inspiration-head h2 { font-size: 24px; }

  .trip-home-inspiration-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-home-inspiration-card { min-height: 270px; }

  .trip-home-import {
    margin-top: 20px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .trip-home-import-head {
    gap: 18px;
  }

  .trip-home-import-head h2 {
    font-size: 24px;
  }

  .trip-import-tabs,
  .trip-import-tabs button {
    width: 100%;
  }

  .trip-import-tabs button {
    padding: 0 10px;
  }

  .trip-import-panel textarea,
  .trip-import-file-picker {
    min-height: 116px;
  }

  .trip-import-panel-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .trip-import-panel-footer .primary {
    width: 100%;
  }

  .trip-home-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
    padding-bottom: 0;
  }

  .trip-home-head h2 {
    font-size: 24px;
  }

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

  .account-dialog,
  .account-dialog.is-authenticated {
    width: calc(100% - 24px);
    height: fit-content;
    max-width: 430px;
    max-height: calc(100dvh - 24px);
    margin: auto;
    border: 1px solid rgba(204, 219, 235, 0.9);
    border-radius: 34px 34px 28px 28px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(32, 56, 85, 0.28);
  }

  .account-dialog[open],
  .account-dialog.is-authenticated[open] {
    display: flex;
    flex-direction: column;
  }

  .account-auth-intro {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    min-height: 86px;
    padding: 18px 20px 24px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 0;
    border-radius: 34px 34px 22px 22px;
  }

  .account-intro-logo {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
  }

  .account-auth-intro > div {
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  .account-auth-intro h2 {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .account-auth-intro p,
  .account-auth-intro ul {
    display: none;
  }

  .account-intro-art {
    position: absolute;
    right: -14px;
    bottom: -4px;
    width: 190px;
    height: 72px;
    display: block;
    margin: 0;
    opacity: 0.13;
    filter: none;
    pointer-events: none;
  }

  .account-dialog-panel {
    flex: 0 1 auto;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    margin-top: -12px;
    border-radius: 30px 30px 28px 28px;
    box-shadow: 0 -12px 32px rgba(40, 72, 108, 0.08);
  }

  .account-dialog .dialog-head {
    position: relative;
    z-index: 2;
    padding: 18px 20px 7px;
    background: #fff;
  }

  .account-dialog .dialog-head h2 {
    font-size: 20px;
  }

  .account-dialog .dialog-head p {
    margin-top: 6px;
    font-size: 13px;
  }

  .account-dialog-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    background: #f4f8fd;
    border-color: #dbe6f3;
  }

  .account-dialog .account-auth-view,
  .account-dialog.is-authenticated .account-home-view {
    padding: 11px 20px calc(22px + env(safe-area-inset-bottom));
  }

  .account-dialog .account-tabs {
    border-radius: 999px;
    background: #edf3fa;
  }

  .account-dialog .account-tabs button {
    min-height: 44px;
    border-radius: 999px;
    font-size: 15px;
  }

  .account-dialog .account-form {
    gap: 14px;
    margin-top: 18px;
  }

  .account-dialog .account-form input {
    min-height: 48px;
    border-radius: var(--radius-input);
    background: #f9fbfe;
  }

  .account-dialog .account-form > button.primary {
    min-height: 48px;
    border-radius: 999px;
    font-size: 15px;
  }

  .account-dialog.is-authenticated .account-dialog-panel {
    max-height: none;
  }
}

/* Public product links stay compact while giving people a stable path to product pages. */
.footer-discover {
  max-width: 1280px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-discover a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #34445a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-discover a:hover {
  color: var(--blue-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px), (max-height: 560px) {
  .footer-discover {
    margin-bottom: 10px;
    gap: 4px 14px;
  }

  .footer-discover a {
    min-height: 34px;
    font-size: 12px;
  }
}

/* Shared visual rhythm across the homepage, planner and dialogs. */
body { background: var(--wash); }
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--blue-strong);
  outline-offset: 3px;
}
:where(button, a) { -webkit-tap-highlight-color: transparent; }
button:active:not(:disabled) { filter: brightness(.96); }
input, select, textarea { accent-color: var(--blue); }
.trip-home { background: linear-gradient(180deg, #edf6ff 0, #f8fafd 460px); }
.trip-home-hero { border-color: #dbe7f4; box-shadow: none; }
.trip-home-visual { transform: none; }
.trip-home-visual-frame { border: 0; background: transparent; padding: 0; aspect-ratio: auto; max-height: none; }
.trip-home-visual-frame img { width: 100%; height: auto; }
.trip-home-inspiration-filters button { font-weight: 500; }
.trip-home-library { margin-top: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.trip-home-head h2 { font-size: 26px; }
.trip-home-list { gap: 16px; margin-top: 20px; }
.trip-home-card { padding: 20px; border-color: var(--soft-line); box-shadow: none; }
.trip-home-card.current { border-color: #a7c6ec; background: #f3f8ff; }
.trip-home-card-actions button { min-height: 44px; }
.trip-home-card strong { white-space: normal; overflow-wrap: anywhere; font-size: 18px; }
.trip-home-resources { margin-top: 32px; gap: 16px; }
.trip-home-resources a { border-color: var(--soft-line); box-shadow: none; border-radius: 16px; }
.trip-home-resources small { line-height: 1.6; }
.account-dialog { border-radius: var(--radius-dialog); }
.account-dialog::backdrop { backdrop-filter: blur(4px); }
.controls-panel :is(input:not([type="checkbox"]), select) { border-radius: var(--radius-input); border-color: var(--line); }
.trip-import-panel textarea { border-radius: var(--radius-multiline); border-color: var(--line); }
.place-card { border-radius: 14px; }
#buildTrip { border-color: transparent; border-radius: var(--radius-button); background: var(--blue); color: #fff; }
.mobile-page-intro > span { color: var(--blue-strong); }
.mobile-settings-toggle { border-radius: 12px; box-shadow: none; }
.add-trip-city { border-color: #b9d1ef; border-radius: var(--radius-button); color: var(--blue-strong); background: #f3f8ff; }

@media (max-width: 1180px) {
  .workspace { background: var(--surface); }
  .controls-panel :is(input:not([type="checkbox"]), select),
  .account-form input, .trip-import-panel textarea { font-size: 16px; }
  .remove-city-row { min-width: 44px; min-height: 44px; }
  .city-plan-row { grid-template-columns: minmax(0, 1fr) 88px 44px; }
}

@media (max-width: 680px) {
  body.trip-home-active .trip-home { background: linear-gradient(180deg, #f0f8ff, #f8fafd 480px); }
  body.trip-home-active .brand-wordmark { height: 36px; max-width: 128px; }
  .trip-home-head h2 { font-size: 24px; }
  .trip-home-card { grid-template-columns: 1fr; gap: 16px; border-radius: 16px; }
  .trip-home-card-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .trip-home-card-actions button { min-width: 0; padding: 0 8px; font-size: 14px; }
  .trip-home-resources { margin-top: 28px; gap: 12px; }
  .trip-home-resources a { padding: 16px; }
  .trip-home-inspiration-pagination { gap: 0; flex-wrap: wrap; }
  .trip-home-inspiration-pagination button { width: 44px; min-width: 44px; }
}

/* Editorial journey: open composition, contour artwork and quiet utility controls. */
body.trip-home-active .trip-home {
  --home-gutter: clamp(24px, 5vw, 72px);
  padding: 0 var(--home-gutter) 64px;
  overflow: clip;
  background: #fff;
}
.trip-home-inner { width: 100%; max-width: 1200px; }
body.trip-home-active .topbar { background: rgba(255,255,255,.96); box-shadow: none; border-bottom: 0; }
body.trip-home-active .trip-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
  min-height: 580px;
  padding: 56px 0 64px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.trip-home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 230px;
  left: -290px;
  bottom: -75px;
  border-radius: 46% 54% 70% 30% / 30% 50% 50% 70%;
  background: #f3f4fa;
  transform: rotate(-25deg);
  pointer-events: none;
}
body.trip-home-active .trip-home-hero-copy { position: relative; z-index: 2; display: block; text-align: left; }
body.trip-home-active .trip-home-label {
  padding: 0;
  min-height: 24px;
  border-radius: 0;
  color: var(--blue-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
body.trip-home-active .trip-home-hero .trip-home-label { display: inline-flex; margin-bottom: 22px; }
body.trip-home-active .trip-home-hero-copy h1 {
  max-width: 570px;
  color: var(--ink);
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -.045em;
}
body.trip-home-active .trip-home-hero-copy h1 > span:not(.trip-home-title-mobile) { display: none !important; }
body.trip-home-active .trip-home-title-mobile { display: block !important; }
.trip-home-title-mobile > span { display: block; }
.trip-home-title-mobile > span:last-child { color: var(--blue); }
body.trip-home-active .trip-home-lead { max-width: 420px; margin-top: 24px !important; color: var(--muted); font-size: 16px; line-height: 1.8; }
body.trip-home-active .trip-home-actions { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
/* A quiet blue wave marks the three route-creation actions without changing their size. */
:is(#copySharedTrip, #autoPlanCity) { position: relative; isolation: isolate; overflow: hidden; }
:is(#copySharedTrip, #autoPlanCity)::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -92px;
  bottom: -106px;
  width: 120px;
  height: 120px;
  border-radius: 42% 58% 54% 46%;
  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  transform: scale(.75);
  transition: transform .55s cubic-bezier(.2,.75,.25,1), right .55s cubic-bezier(.2,.75,.25,1), bottom .55s cubic-bezier(.2,.75,.25,1);
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(#copySharedTrip, #autoPlanCity):is(:hover, :focus-visible):not(:disabled)::before {
    right: -28px;
    bottom: -58px;
    transform: scale(2.3) rotate(45deg);
  }
}
@media (hover: none) {
  :is(#copySharedTrip, #autoPlanCity):active:not(:disabled) { background: var(--blue-strong); }
}
@media (prefers-reduced-motion: reduce) {
  :is(#copySharedTrip, #autoPlanCity)::before { transition: none; }
}
body.trip-home-active .trip-home-visual { position: relative; display: block; width: 125%; height: 480px; max-width: none; margin-left: -4%; transform: none; pointer-events: none; }
.trip-home-visual-frame { display: block; width: 100%; height: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; aspect-ratio: auto; background: transparent; box-shadow: none; }
.trip-home-visual-frame img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
body.trip-home-active .trip-home-hero > .trip-home-import { grid-column: 1 / -1; width: 100%; max-width: 760px; margin: 0; padding: 24px; border: 1px solid var(--soft-line); border-radius: 18px; background: #fafaff; box-shadow: none; }
.trip-home-hero > .trip-home-import[data-expanded="false"] { display: none; }
.trip-home-hero > .trip-home-import .trip-import-panels { margin: 0; }
.trip-home-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding: 28px 0 36px; margin: 0; border-bottom: 1px solid var(--soft-line); list-style: none; }
.trip-home-path li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; }
.trip-home-path b { color: #a4a6bb; font-size: 12px; font-weight: 400; padding-top: 5px; font-variant-numeric: tabular-nums; }
.trip-home-path strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; }
.trip-home-path p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
body.trip-home-active .trip-home-inspirations { position: relative; margin-top: 64px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.trip-home-active .trip-home-inspiration-head .trip-home-label { margin: 0 0 12px; }
body.trip-home-active .trip-home-inspiration-head h2 { max-width: 700px; margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 36px); line-height: 1.45; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.trip-home-inspiration-head p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.trip-home-inspiration-filters { display: flex; gap: 24px; flex-wrap: nowrap; margin-top: 24px; padding: 0 0 2px; overflow-x: auto; scrollbar-width: none; }
.trip-home-inspiration-filters button { flex: 0 0 auto; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 400; }
.trip-home-inspiration-filters button.active { color: var(--blue-strong); background: transparent; box-shadow: inset 0 -2px var(--blue); }
.trip-home-inspiration-filters button:hover { color: var(--blue); background: transparent; }
.trip-home-inspiration-list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; margin-top: 24px; padding: 4px 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.trip-home-inspiration-list::-webkit-scrollbar, .trip-home-inspiration-filters::-webkit-scrollbar { display: none; }
.trip-home-inspiration-list:has(.trip-home-inspiration-empty) { display: block; }
.trip-home-inspiration-empty { min-height: 200px; display: grid; place-items: center; background: #f7f7fb; }
body.trip-home-active .trip-home-inspiration-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; border: 0; border-radius: 28px 28px 8px 8px; color: var(--ink); background: transparent; box-shadow: none; text-align: left; scroll-snap-align: start; scroll-snap-stop: always; }
.trip-home-inspiration-card::after { display: none; }
.trip-home-inspiration-card img { position: static; flex-shrink: 0; display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 28px; }
.trip-home-inspiration-copy { flex: 1; display: grid; gap: 8px; padding: 20px 0 8px; }
.trip-home-inspiration-copy strong { font-size: 19px; color: var(--ink); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.trip-home-inspiration-copy > span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.trip-home-inspiration-route { display: none; }
.trip-home-inspiration-card.cover-missing { min-height: 230px; background: #f7f7fb; border-radius: 24px; }
.trip-home-inspiration-card.cover-missing .trip-home-inspiration-copy { padding: 24px; }
@media (hover: hover) and (pointer: fine) { .trip-home-inspiration-card:hover strong { color: var(--blue); } }
.trip-home-inspiration-pagination { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 12px; }
.trip-home-inspiration-pagination[hidden] { display: none; }
.trip-home-inspiration-pagination button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; }
.trip-home-inspiration-pagination button::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #c4d8f2; transition: width 200ms ease, background-color 200ms ease; }
.trip-home-inspiration-pagination button.active::before { width: 20px; background: var(--blue); }
.trip-home-inspiration-pagination button:hover::before { background: var(--blue); }
body.trip-home-active .trip-home-library { margin-top: 56px; padding: 36px 0 0; border: 0; border-top: 1px solid var(--soft-line); border-radius: 0; background: transparent; box-shadow: none; }
.trip-home-head h2 { font-size: 30px; font-weight: 500; }
.trip-home-list { margin-top: 24px; gap: 20px; }
.trip-home-card { padding: 24px; border: 1px solid var(--soft-line); border-radius: 18px; box-shadow: none; background: #fff; }
.trip-home-card.current { border-color: #d8daf0; background: #f7f7fd; }
.trip-home-card:hover { box-shadow: none; transform: none; }
.trip-home-card-actions button { border-radius: 999px; }
.trip-home-resources { margin-top: 64px; gap: 48px; }
.trip-home-resources a { border: 0; border-radius: 0; padding: 24px 0; background: transparent; box-shadow: none; border-top: 1px solid var(--soft-line); }
.trip-home-resources a:hover { box-shadow: none; transform: none; background: transparent; }
.trip-home-resources svg { color: var(--blue); }
.trip-home-resources strong { font-weight: 500; }
body.trip-home-active .site-footer { background: #f7f7fb; }

@media (max-width: 1000px) and (min-width: 681px) {
  body.trip-home-active .trip-home-hero { min-height: 460px; padding: 40px 0; gap: 12px; }
  body.trip-home-active .trip-home-hero-copy h1 { font-size: 48px; }
  body.trip-home-active .trip-home-visual { width: 145%; height: 360px; margin-left: -15%; }
  .trip-home-inspiration-list { grid-auto-columns: calc((100% - 24px)/2); }
  .trip-home-path { gap: 20px; }
}
@media (max-width: 680px) {
  body.trip-home-active .trip-home { --home-gutter: 24px; padding: 0 var(--home-gutter) calc(32px + env(safe-area-inset-bottom)); }
  body.trip-home-active .topbar { padding-inline: 16px; }
  body.trip-home-active .trip-home-hero { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 32px 0 8px; }
  body.trip-home-active .trip-home-hero .trip-home-label { margin-bottom: 16px; }
  body.trip-home-active .trip-home-hero-copy h1 { max-width: 100%; font-size: clamp(42px, 11vw, 54px); line-height: 1.2; }
  body.trip-home-active .trip-home-lead { max-width: 100%; margin-top: 18px !important; font-size: 14px; }
  body.trip-home-active .trip-home-actions { gap: 10px; margin-top: 24px; }
  body.trip-home-active .trip-home-visual { z-index: -1; width: 104%; height: 220px; max-width: 390px; margin: -24px -16px -12px auto; grid-row: 2; justify-self: end; }
  .trip-home-visual-frame { max-width: none; }
  body.trip-home-active .trip-home-hero > .trip-home-import { margin-top: 16px; padding: 18px; }
  .trip-home-hero::before { width: 190px; height: 190px; left: -175px; bottom: 24px; }
  .trip-home-path { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px 0 24px; gap: 12px; }
  .trip-home-path li { display: block; }
  .trip-home-path b { display: block; margin-bottom: 8px; padding: 0; }
  .trip-home-path strong { font-size: 12px; line-height: 1.6; }
  .trip-home-path p { display: none; }
  body.trip-home-active .trip-home-inspirations { margin-top: 32px; }
  body.trip-home-active .trip-home-inspiration-head h2 { max-width: 340px; font-size: 24px; line-height: 1.5; letter-spacing: -.035em; }
  .trip-home-inspiration-head p { display: none; }
  .trip-home-inspiration-filters { gap: 24px; margin-top: 16px; }
  body.trip-home-active .trip-home-inspiration-list { grid-auto-columns: 80%; gap: 20px; margin: 16px calc(-1 * var(--home-gutter)) 0; padding: 4px var(--home-gutter); scroll-padding-inline: var(--home-gutter); }
  body.trip-home-active .trip-home-inspiration-card { border-radius: 22px 22px 0 0; }
  .trip-home-inspiration-card img { height: 220px; border-radius: 22px; }
  .trip-home-inspiration-copy { padding: 16px 0 4px; }
  .trip-home-inspiration-copy strong { font-size: 17px; }
  .trip-home-inspiration-copy > span { font-size: 12px; }
  .trip-home-inspiration-pagination { margin-top: 16px; }
  body.trip-home-active .trip-home-library { margin-top: 32px; padding-top: 28px; }
  .trip-home-head h2 { font-size: 24px; }
  .trip-home-card { padding: 20px; }
  .trip-home-resources { margin-top: 32px; gap: 12px; }
  .trip-home-resources a { padding: 20px 0; }
}
@media (max-width: 400px) {
  body.trip-home-active .trip-home { --home-gutter: 20px; }
  body.trip-home-active .trip-home-visual { width: 94%; margin-top: -16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.trip-home-active .trip-home-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 0; gap: 12px; padding: 24px 0; }
  body.trip-home-active .trip-home-hero-copy h1 { font-size: 36px; }
  body.trip-home-active .trip-home-visual { grid-row: auto; width: 120%; margin: 0; }
}

body.trip-home-active :is(.language-switch, .top-account-button, .icon-button) { border-color: transparent; background: transparent; box-shadow: none; }
body.trip-home-active :is(.language-switch, .top-account-button, .icon-button):hover { background: #f5f5fc; }
.account-auth-intro { background: #f5f5fc url('/assets/journey-contours.svg?v=20260906-editorial-2') right -140px bottom -100px / 460px auto no-repeat; }
.account-intro-art { display: none; }
body:not(.trip-home-active) .mobile-page-intro { position: relative; isolation: isolate; overflow: hidden; }
body:not(.trip-home-active) .mobile-page-intro::after { content: ""; position: absolute; z-index: -1; right: -48px; top: -48px; width: 130px; height: 130px; border: 22px solid #eef0fc; border-radius: 36% 64% 60% 40%; transform: rotate(-30deg); pointer-events: none; }
@media (max-width: 680px) {
  body.trip-home-active :is(.language-switch, .top-account-button, .icon-button) { min-width: 44px; width: 44px; min-height: 44px; height: 44px; padding: 0; }
  body.trip-home-active .top-actions { gap: 2px; }
  .account-auth-intro { background-size: 220px; background-position: right -100px top -85px; }
}

/* Small screens prioritize planning and routes over decorative artwork. */
@media (max-width: 680px), (max-height: 500px) and (orientation: landscape) {
  body.trip-home-active .trip-home-visual,
  .trip-home-hero::before,
  .trip-home-path,
  body:not(.trip-home-active) .mobile-page-intro::after { display: none; }
  body.trip-home-active .trip-home-hero { grid-template-columns: minmax(0,1fr); padding: clamp(24px, 4svh, 36px) 0 20px; }
  body.trip-home-active .trip-home-inspirations { margin-top: 16px; }
  .account-auth-intro { background-image: none; }
}

/* Keep the complete introduction within a laptop viewport. */
@media (min-width: 1001px) {
  body.trip-home-active .trip-home-hero { min-height: 0; padding: clamp(24px, 4svh, 40px) 0; }
  body.trip-home-active .trip-home-visual { height: clamp(300px, 53svh, 460px); }
  body.trip-home-active .trip-home-hero-copy h1 { font-size: clamp(44px, 8svh, 68px); }
  body.trip-home-active .trip-home-hero .trip-home-label { margin-bottom: 16px; }
  body.trip-home-active .trip-home-lead { margin-top: 18px !important; }
  body.trip-home-active .trip-home-actions { margin-top: 24px; gap: 12px; }
  .trip-home-path { padding: 20px 0 24px; }
}
.trip-home-inspiration-navigation { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.trip-home-inspiration-navigation .trip-home-inspiration-pagination { margin: 0; }
.inspiration-arrow { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid #dce7f5; border-radius: 50%; background: white; color: var(--blue); box-shadow: none; }
.inspiration-arrow[hidden] { display: none; }
.inspiration-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inspiration-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .inspiration-arrow:hover:not(:disabled) { background: #edf5ff; border-color: #9abfe9; } }
@media (max-width: 380px) {
  .trip-home-inspiration-navigation { gap: 4px; }
  .trip-home-inspiration-pagination button { width: 36px; min-width: 36px; }
}

/* The moving indicator owns the selected outline; the button retains keyboard focus. */
.day-tabs.selection-slider-ready .day-tab.active { border-color: transparent; }

/* Reveal planning tools as soon as a city is available. */
.workspace.is-empty .recommend-controls :is(.tabs, .place-search, .recommend-actions, .place-views, .place-workflow-tools),
.workspace.is-empty .plan-panel :is(.route-actions, .map-preview),
.workspace.is-empty .controls-panel :is(.add-day, .mobile-settings-toggle) { display: none; }
.workspace.is-empty .illustrated-empty-state { min-height: 260px; padding: 32px 20px; }
.workspace.is-empty .empty-state__art { width: 160px; max-height: 88px; }
.workspace.is-empty .empty-state__title { margin-top: 14px; font-size: 16px; font-weight: 500; }
.workspace.is-empty .empty-state__description { max-width: 260px; font-size: 13px; line-height: 1.7; }

@media (min-width: 1181px) {
  .workspace, .workspace[data-mobile-view="places"], .workspace[data-mobile-view="itinerary"] {
    grid-template-columns: 260px minmax(350px, 1fr) minmax(390px, 1.12fr);
    padding: 12px 20px 16px;
  }
  .controls-panel { padding: 16px; top: 76px; }
  .recommend-panel, .plan-panel { min-height: 0; height: calc(100dvh - 92px); max-height: calc(100dvh - 92px); }
  .controls-panel { max-height: calc(100dvh - 92px); }
  .workspace .section-head h2, .workspace .panel-toolbar h2 { font-size: 17px; font-weight: 600; }
  .workspace .panel-toolbar p { font-size: 12px; }
  .workspace :is(.panel-toolbar, .place-search, .recommend-actions) { flex-shrink: 0; }
  .workspace .card-list { min-height: 0; }
  .workspace :is(.city-plan-row input, .city-days-control, .add-trip-city, #buildTrip, .add-day) { min-height: 44px; font-size: 13px; border-radius: var(--radius-button); box-shadow: none; }
  .workspace .city-plan-row { grid-template-columns: minmax(0, 1fr) 72px 30px; gap: 6px; }
  .workspace .city-days-control { padding: 0; }
  .workspace .city-days-input { min-height: 44px; font-size: 13px; }
  .workspace .city-days-control span { display: none; }
  .workspace .remove-city-row { min-height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; }
  .workspace .add-trip-city, .workspace .add-day { border: 0; background: #f4f8fe; }
  .workspace .day-tabs { --selection-radius: 10px; --selection-border: 1px solid #bad2f3; }
  .workspace .day-tab { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; min-height: 52px; padding: 8px 62px 8px 8px; border-radius: 10px; }
  .workspace .day-number { width: 26px; height: 26px; font-size: 12px; }
  .workspace .day-name strong { font-size: 13px; }
  .workspace .day-name > span { font-size: 11px; }
  .workspace .mobile-settings-toggle { border: 0; border-top: 1px solid var(--soft-line); border-radius: 0; padding: 10px 0; }
  .workspace .mobile-settings-toggle small { display: none; }
  .workspace .tabs { border: 0; background: #f4f6f9; border-radius: var(--radius-button); padding: 3px; }
  .workspace .tab { min-height: 44px; border-radius: var(--radius-button); }
  .workspace .place-search { gap: 6px; grid-template-columns: minmax(0, 1fr) 70px auto; }
  .workspace .place-search :is(input, select, button) { min-height: 44px; padding: 6px 12px; font-size: 13px; border-radius: var(--radius-button); box-shadow: none; }
  .workspace .recommend-actions button { min-height: 44px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-button); box-shadow: none; }
  .workspace .card-list { gap: 0; padding: 0 14px 16px; }
  .workspace .place-card { padding: 14px 8px; border: 0; border-bottom: 1px solid var(--soft-line); border-radius: 0; box-shadow: none; }
  .workspace .place-card.selected { background: #f5f9ff; }
  .workspace .place-card > div { grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; }
  .workspace .place-image { width: 96px; height: 88px; border-radius: 8px; }
  .workspace .place-card h3 { font-size: 15px; }
  .workspace .place-card :is(.card-meta, .place-detail, .small-text, .link-row) { font-size: 12px; line-height: 1.6; }
  .workspace .place-card .tag { font-size: 11px; padding: 2px 6px; }
  .workspace .route-actions { gap: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .workspace .route-actions button { min-height: 44px; height: 44px; border-radius: var(--radius-button); box-shadow: none; }
  .workspace .hotel-shortcut-button span { display: none; }
  .workspace .map-preview { height: clamp(180px, 30dvh, 260px); flex-basis: clamp(180px, 30dvh, 260px); border-radius: 12px; margin: 10px 14px; }
}

/* Keep the introduction, actions and steps together as one composition. */
@media (min-width: 1001px) {
  .trip-home-inner { max-width: 1120px; }
  body.trip-home-active .trip-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    height: auto;
    padding: 24px 0 20px;
    gap: 64px;
  }
  body.trip-home-active .trip-home-hero-copy { padding: 0; }
  body.trip-home-active .trip-home-hero-copy h1 { max-width: 520px; font-size: clamp(46px, 6.8svh, 64px); line-height: 1.16; }
  body.trip-home-active .trip-home-lead { margin-top: 16px !important; }
  body.trip-home-active .trip-home-actions { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 20px; gap: 12px 20px; }
  body.trip-home-active .trip-home-visual { width: 100%; height: 320px; margin-left: 0; justify-self: start; }
  .trip-home-visual-frame img { object-position: left center; }
  .trip-home-hero::before { display: none; }
  .trip-home-path { gap: 12px; padding: 14px 0 0; margin-top: 16px; border: 0; border-top: 1px solid #e9eef5; }
  .trip-home-path li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .trip-home-path b { padding: 0; font-size: 10px; color: #7896bd; }
  .trip-home-path strong { font-size: 12px; font-weight: 400; }
  .trip-home-path p { display: none; }
  body.trip-home-active .trip-home-inspirations { margin-top: 20px; }
  body.trip-home-active .trip-home-inspiration-head h2 { font-size: 28px; }
  body.trip-home-active .trip-home-inspiration-head .trip-home-label { margin-bottom: 6px; }
  .trip-home-inspiration-head p { margin-top: 6px; }
  .trip-home-inspiration-filters { margin-top: 12px; }
  .trip-home-inspiration-list { margin-top: 16px; }
}
@media (min-width: 1001px) and (max-height: 760px) {
  body.trip-home-active .trip-home-hero { padding-top: 20px; }
  body.trip-home-active .trip-home-hero .trip-home-label { margin-bottom: 10px; }
  body.trip-home-active .trip-home-lead { margin-top: 12px !important; }
  body.trip-home-active .trip-home-actions { margin-top: 16px; }
}

/* Scenic children share their parent's surface instead of floating behind a partial rule. */
.scenic-place-group { min-width: 0; min-height: min-content; align-self: start; border-radius: 16px; background: #f7faff; overflow: hidden; }
.scenic-place-group:has(> .place-card.selected) { background: #eef5ff; }
.workspace .scenic-place-group > .place-card { border: 0; border-radius: 0; background: transparent; }
.scenic-place-children { padding: 0 14px 14px 38px; }
.scenic-place-details > summary { padding: 12px 16px; min-height: 44px; box-sizing: border-box; cursor: pointer; color: var(--primary, #2698df); font-size: 13px; }
.scenic-place-details > summary:focus-visible { outline: 2px solid var(--primary, #2698df); outline-offset: -3px; border-radius: 8px; }
.workspace .scenic-place-children .place-card.scenic-child-card { margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; }
.workspace .scenic-place-children .place-card.scenic-child-card > div { display: block; }
.workspace .scenic-place-children .scenic-child-context { color: #627a99; font-size: 11px; }
@media (min-width: 1181px) {
  .workspace, .workspace[data-mobile-view="places"], .workspace[data-mobile-view="itinerary"] {
    grid-template-columns: 244px minmax(350px, 1fr) minmax(380px, 1.1fr);
    gap: 16px; background: #f5f7fb; align-items: start;
  }
  .workspace > :is(.controls-panel, .recommend-panel, .plan-panel) { border: 0; border-radius: 18px; box-shadow: 0 2px 14px rgba(30,60,95,.035); }
  .workspace .panel-toolbar { border: 0; padding: 16px; }
  .workspace .place-search { border: 0; padding-top: 0; }
  .workspace .recommend-actions { border: 0; padding-bottom: 12px; }
  .workspace .card-list { gap: 10px; }
  .workspace .place-card { border: 0; border-radius: 14px; background: #fafbfd; }
  .workspace .place-card.selected { background: #eef5ff; }
  /* A new itinerary starts with a focused form and two compact previews. */
  .workspace.is-empty {
    width: min(100% - 64px, 1000px); margin: auto;
    padding: 0; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: stretch;
  }
  .workspace.is-empty > .controls-panel { grid-column: 1; grid-row: 1 / 3; position: static; padding: 28px 32px; max-height: none; }
  .workspace.is-empty .mobile-page-intro { display: block; margin: 0 0 24px; padding: 0; }
  .workspace.is-empty .mobile-page-intro::after, .workspace.is-empty .mobile-page-intro > span,
  .workspace.is-empty .section-head { display: none; }
  .workspace.is-empty .mobile-page-intro h2 { margin: 0 0 10px; font-size: 26px; font-weight: 600; }
  .workspace.is-empty .mobile-page-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
  .workspace.is-empty .trip-builder { margin: 0; padding: 0; gap: 12px; border: 0; }
  .workspace.is-empty :is(.city-plan-row, .builder-labels) { grid-template-columns: minmax(0, 1fr) 96px 30px; gap: 10px; }
  .workspace.is-empty :is(.city-plan-input, .city-days-input, .add-trip-city, #buildTrip) { min-height: 44px; font-size: 14px; }
  .workspace.is-empty > :is(.recommend-panel, .plan-panel) { grid-column: 2; height: auto; min-height: 0; max-height: none; }
  .workspace.is-empty > .recommend-panel { grid-row: 1; }
  .workspace.is-empty > .plan-panel { grid-row: 2; }
  .workspace.is-empty .panel-toolbar { min-height: 0; padding: 20px 24px 0; }
  .workspace.is-empty .panel-toolbar p, .workspace.is-empty #routeSummary { display: none; }
  .workspace.is-empty :is(.card-list, .timeline) { padding: 0; overflow: visible; }
  .workspace.is-empty .illustrated-empty-state {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "art title" "art description";
    align-content: center; align-items: center; gap: 4px 16px; min-height: 118px; padding: 16px 24px 20px; text-align: left;
  }
  .workspace.is-empty .empty-state__art { grid-area: art; width: 76px; max-height: 68px; margin: 0; }
  .workspace.is-empty .empty-state__title { grid-area: title; margin: 0; font-size: 14px; text-align: left; justify-self: start; }
  .workspace.is-empty .empty-state__description { grid-area: description; margin: 0; max-width: none; font-size: 12px; text-align: left; justify-self: start; }
}

/* The inspiration catalog currently has no English editorial fields. */
html[lang^="en"] #tripHomeInspirations { display: none; }

.nearby-restaurant-photo.image-pending,
.nearby-restaurant-photo.image-retrying { opacity: 0; }

#meituanDesktopHelp { max-width: min(480px, calc(100vw - 40px)); padding: 24px; border: 1px solid #dce4f2; border-radius: 18px; color: #334155; }
#meituanDesktopHelp::backdrop { background: #0f172a66; }
#meituanDesktopHelp p { line-height: 1.7; margin: 16px 0; }
/* Use the unmodified official lockup, displaying its left-hand app emblem. */
.place-platform[data-place-platform="dianping"] img,
.restaurant-platform-dianping img { object-fit: cover; object-position: left; border-radius: 8px; }

/* City suggestions follow the visual viewport; never lock the document. */
.city-suggestions { touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior-y: auto; }
.day-tab-shell .remove-day { margin-left: 10px; }
.day-drag-handle:focus-visible, .timeline-drag-handle:focus-visible { outline: 2px solid #174ea6; outline-offset: 2px; }
@media (min-width: 1025px) and (max-width: 1350px) {
  .workspace { grid-template-columns: minmax(260px, .85fr) minmax(310px, 1fr) minmax(0, 1.35fr); gap: 12px; }
}
.controls-panel h2, .day-settings h3 { word-break: normal; }
.day-tab-shell { min-width: 0; }
.day-name { min-width: 0; }
.filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
.filter-tabs button { flex-shrink: 0; white-space: nowrap; }
