* { box-sizing: border-box; }

html {
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font: 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.is-home {
  --sidebar-width: 164px;
  background: linear-gradient(180deg, #e8f7ff 0, #f3faff 250px, #f7fbfd 100%);
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus { top: 12px; }

.sidebar { display: none; }
.sidebar-visual { display: none; }
.app-frame { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 248, 251, .96);
  backdrop-filter: blur(14px);
}

.mobile-page-title { min-width: 0; }
.mobile-page-kicker {
  display: block;
  overflow: hidden;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.topbar-search {
  display: none;
  align-items: center;
  min-width: 220px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 3px 12px rgba(18, 52, 77, .04);
}

.topbar-search:focus-within {
  border-color: var(--blue-500);
  outline: 3px solid rgba(39, 139, 203, .14);
}

.topbar-search-icon {
  width: 19px;
  height: 19px;
  margin: 0 9px 0 13px;
  fill: none;
  stroke: var(--navy-700);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.topbar-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
}

.topbar-search input::placeholder { color: var(--text-muted); }

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

.build-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(49, 182, 163, .14);
}

.build-status.is-error .status-dot {
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 100, 112, .14);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--navy-700);
  cursor: pointer;
}

.icon-button:hover { border-color: var(--line); background: var(--card-bg); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 4px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.user-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
}

.user-name { display: none; }

main {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 18px 14px calc(94px + var(--safe-bottom));
}

.loading-panel { padding-top: 10px; }
.loading-line, .loading-card { background: #e6f0f6; animation: pulse 1.4s ease-in-out infinite alternate; }
.loading-line { width: 48%; height: 15px; margin: 10px 0; border-radius: 999px; }
.loading-line-wide { width: 78%; height: 34px; border-radius: 12px; }
.loading-grid { display: grid; gap: 14px; margin-top: 24px; }
.loading-card { min-height: 160px; border-radius: var(--radius-lg); }
@keyframes pulse { to { opacity: .52; } }

.page-intro { margin: 8px 0 18px; }
.page-intro h2 { margin: 0; color: var(--navy-900); font-size: clamp(26px, 6vw, 34px); line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.page-intro p { max-width: 760px; margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; }

.data-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #cde8e2;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--navy-700);
}

.data-banner strong { display: block; color: var(--navy-900); font-size: 13px; }
.data-banner p { margin: 2px 0 0; color: var(--text-secondary); font-size: 12px; }

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.panel-body { padding: 18px; }
.panel-kicker { margin: 0 0 5px; color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.panel h3 { margin: 0; color: var(--navy-900); font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.panel p { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; }

.home-hero {
  position: relative;
  min-height: 198px;
  overflow: hidden;
  border-radius: 17px;
  background: #c9e8f8;
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 198px;
  max-width: 58%;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
}

.hero-copy h2 { max-width: 590px; margin: 0; color: var(--navy-900); font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy p { margin: 8px 0 0; color: var(--navy-700); font-size: 14px; }
.hero-tagline { font-size: 15px !important; }
.hero-route { display: flex; align-items: center; gap: 7px; margin-top: 8px !important; color: var(--blue-600) !important; font-size: 16px !important; font-weight: 800; }
.hero-route svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 13px !important; color: var(--navy-700) !important; font-size: 12px !important; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(110deg, #c9ebfb 0%, #eaf7fd 48%, #98d1ed 100%);
}

.hero-art::before {
  position: absolute;
  right: -4%;
  bottom: 26px;
  width: 66%;
  height: 94px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(179,222,240,.8));
  box-shadow: 0 24px 0 rgba(70, 155, 197, .2);
  content: "";
  transform: skewX(-16deg);
}

.hero-art::after {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 76%;
  height: 42px;
  background: linear-gradient(180deg, rgba(28, 141, 194, .35), rgba(18, 106, 164, .48));
  clip-path: polygon(0 45%, 9% 28%, 18% 54%, 26% 20%, 37% 48%, 50% 19%, 64% 58%, 75% 25%, 88% 52%, 100% 18%, 100% 100%, 0 100%);
  content: "";
}

.hero-sun { position: absolute; top: 26px; right: 27%; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.54); box-shadow: 0 0 0 18px rgba(255,255,255,.18); }
.hero-mt { position: absolute; right: 6%; bottom: 42px; width: 240px; height: 112px; background: linear-gradient(145deg, transparent 37%, rgba(82, 151, 187, .35) 38%, rgba(226, 245, 252, .7) 53%, rgba(101, 169, 201, .35) 54%, transparent 55%); clip-path: polygon(0 100%, 42% 7%, 54% 28%, 70% 5%, 100% 100%); }
.hero-city { position: absolute; right: 3%; bottom: 22px; display: flex; align-items: flex-end; gap: 5px; opacity: .64; }
.hero-city span { display: block; width: 14px; background: #5e9fc0; }
.hero-city span:nth-child(1) { height: 34px; }
.hero-city span:nth-child(2) { height: 54px; width: 22px; }
.hero-city span:nth-child(3) { height: 28px; }
.hero-city span:nth-child(4) { height: 72px; width: 16px; }
.hero-city span:nth-child(5) { height: 42px; }
.hero-city span:nth-child(6) { height: 62px; width: 26px; }
.hero-ship { position: absolute; z-index: 1; right: 13%; bottom: 34px; width: 180px; height: 74px; fill: rgba(255,255,255,.96); stroke: #277fa8; stroke-linejoin: round; stroke-width: 1.3; filter: drop-shadow(0 10px 5px rgba(35, 99, 137, .14)); }
.hero-blossoms { position: absolute; right: -8px; bottom: -8px; width: 190px; height: 80px; opacity: .58; background: radial-gradient(circle at 18% 50%, #fff 0 5px, transparent 6px), radial-gradient(circle at 50% 28%, #f4a9ba 0 6px, transparent 7px), radial-gradient(circle at 76% 60%, #fff 0 5px, transparent 6px), radial-gradient(circle at 25% 85%, #efa1b6 0 5px, transparent 6px); }

.hero-art.has-hero-photo {
  background-position: center 46%;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.hero-art.has-hero-photo::before {
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, .12) 36%, transparent 45%);
  box-shadow: none;
  content: "";
  transform: none;
}

.hero-art.has-hero-photo::after {
  right: 0;
  bottom: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(22, 115, 184, .28));
  clip-path: none;
}

.hero-art.has-hero-photo .hero-sun,
.hero-art.has-hero-photo .hero-mt,
.hero-art.has-hero-photo .hero-city,
.hero-art.has-hero-photo .hero-ship,
.hero-art.has-hero-photo .hero-blossoms { display: none; }

.hero-visual-note { position: absolute; z-index: 3; right: 12px; bottom: 9px; padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--navy-700); font-size: 9px; line-height: 1.3; }

.hero-countdown {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  width: 150px;
  min-height: 112px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 24px rgba(20,70,110,.10);
  color: var(--navy-700);
}

.hero-countdown small { display: block; font-size: 11px; font-weight: 700; }
.hero-countdown strong { display: inline-block; margin-top: 3px; color: var(--navy-900); font-size: 44px; font-weight: 800; line-height: 1; }
.hero-countdown span { margin-left: 4px; font-size: 12px; }
.hero-countdown em { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 10px; font-style: normal; }

.quickbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.quick-features { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-feature { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px 12px; border-right: 1px solid var(--line); }
.quick-feature:last-child { border-right: 0; }
.quick-feature-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.quick-feature .quick-feature-icon { background: #edf8ff; color: #006bb5; }
.quick-feature-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.quick-feature-copy { display: block; min-width: 0; }
.quick-feature-copy strong { display: block; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.quick-feature-copy > span { display: block; overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quick-actions { display: flex; align-items: center; gap: 7px; }
.outline-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.outline-button { border: 1px solid var(--blue-500); background: var(--card-bg); color: var(--blue-600); }
.outline-button:hover { background: var(--blue-100); }
.primary-button { border: 1px solid var(--blue-600); background: var(--blue-600); color: #fff; box-shadow: 0 5px 12px rgba(22, 115, 184, .18); }
.primary-button:hover { background: var(--navy-900); }
.quick-actions .outline-button, .quick-actions .primary-button { min-height: 39px; }
.quick-actions svg { width: 16px; height: 16px; margin-right: 6px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.quick-action-share { border-color: #acd3f1; background: #f4faff; color: #116baa; }
.quick-action-export { border-color: #f0d6b8; background: #fff8ef; color: #a86124; }
.quick-actions .primary-button { border-color: #0d3a60; background: #0d3a60; color: #fff; }

.home-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.home-column { min-width: 0; }
.dashboard-panel { height: 100%; }
body.is-home .home-column-side { display: grid; align-content: start; align-items: start; gap: 10px; }
body.is-home .home-column-side > .dashboard-panel { height: auto; }
.dashboard-panel > .panel-body { padding: 15px; }
.dashboard-panel .section-heading { margin-bottom: 11px; }
.dashboard-panel .section-heading h3 { font-size: 19px; }
.home-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.home-section-heading-copy { min-width: 0; }
.home-section-heading h3 { margin: 0; color: var(--navy-900); font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.home-section-heading span { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 10px; line-height: 1.35; }
.home-section-heading > .text-link { flex: 0 0 auto; padding-top: 3px; font-size: 10px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h3 { margin: 0; color: var(--navy-900); }
.section-description { margin-top: 4px !important; color: var(--text-secondary) !important; font-size: 12px !important; }
.text-link { color: var(--blue-600); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.day-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 13px; }
.day-strip-item { min-width: 0; padding: 8px 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft-blue); color: var(--navy-700); text-align: center; }
.day-strip-item strong, .day-strip-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-strip-item strong { font-size: 12px; }
.day-strip-item span { margin-top: 2px; color: var(--text-secondary); font-size: 10px; }
.day-strip-item.is-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.day-strip-item.is-active span { color: rgba(255,255,255,.82); }

.home-timeline { position: relative; display: grid; gap: 0; }
.home-timeline::before { position: absolute; top: 15px; bottom: 18px; left: 6px; width: 2px; background: #70bde7; content: ""; }
.home-timeline-item { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 90px; gap: 8px; min-height: 78px; padding: 8px 0 11px; border-bottom: 1px solid var(--line); }
.home-timeline-item:last-child { border-bottom: 0; }
.home-timeline-item::before { position: absolute; top: 10px; left: 0; width: 12px; height: 12px; border: 3px solid var(--card-bg); border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-500); content: ""; }
.home-time { padding-left: 21px; color: var(--navy-900); font-size: 12px; font-weight: 800; white-space: nowrap; }
.home-timeline-copy { min-width: 0; }
.home-timeline-copy h4 { overflow: hidden; margin: 0; color: var(--navy-900); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-timeline-copy p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-timeline-image { position: relative; width: 90px; height: 60px; align-self: center; overflow: hidden; border-radius: 9px; background: var(--soft-blue); }
.home-timeline-image img { width: 100%; height: 100%; object-fit: cover; }
.home-timeline-visual-label { position: absolute; right: 4px; bottom: 4px; max-width: calc(100% - 8px); overflow: hidden; padding: 2px 4px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--navy-700); font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.timeline-state { display: inline-flex; margin-top: 5px; padding: 2px 7px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: 10px; font-weight: 700; }

.recommend-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: -2px 0 11px; }
.recommend-tab { min-height: 33px; padding: 6px 4px; border: 0; border-radius: 9px; background: var(--soft-blue); color: var(--navy-700); cursor: pointer; font-size: 11px; font-weight: 700; }
.recommend-tab.is-active { background: var(--blue-600); color: #fff; }
.recommend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recommend-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); }
.recommend-card-media { position: relative; height: 102px; overflow: hidden; background: var(--soft-blue); }
.recommend-card-media img { width: 100%; height: 100%; object-fit: cover; }
.recommend-favorite { position: absolute; top: 7px; right: 7px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.82); color: var(--blue-600); font-size: 13px; }
.recommend-favorite svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.recommend-visual-note { position: absolute; right: 7px; bottom: 7px; padding: 3px 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy-700); font-size: 9px; font-weight: 700; }
.recommend-card-body { padding: 8px 9px 9px; }
.recommend-card h4 { overflow: hidden; margin: 0; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body.is-home .recommend-card h4 { display: -webkit-box; min-height: 36px; line-height: 1.4; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recommend-meta { margin: 3px 0 0 !important; color: var(--text-secondary) !important; font-size: 10px !important; }
.recommend-evidence { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; color: var(--orange-500); font-size: 12px; }
.recommend-evidence strong { font-weight: 800; }
.recommend-evidence span { color: var(--text-secondary); font-size: 10px; font-weight: 600; }
.recommend-card .chip-row { gap: 4px; margin-top: 6px; }
.recommend-card .chip { min-height: 20px; padding: 2px 6px; font-size: 9px; }
.recommend-category-chip { border-color: #f7dcc4; background: #fff4e9; color: #a95a29; }
.recommend-card .recommend-area-chip { border-color: #f3d7e3; background: #fff1f6; color: #a23e68; }
.recommend-card .recommend-backup-chip { border-color: #c9e1f3; background: #eaf5fc; color: #21648f; }
.recommend-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.recommend-source { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
.recommend-source-mark { display: inline-flex; min-height: 23px; align-items: center; padding: 3px 5px; border-radius: 6px; background: var(--blue-100); color: var(--blue-600); font-size: 9px; font-weight: 800; }
.recommend-source--xiaohongshu .recommend-source-mark { background: #e62f51; color: #fff; }
.recommend-footer .text-link { font-size: 10px; }
.cruise-gallery { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.cruise-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.cruise-gallery-heading strong { color: var(--navy-900); font-size: 12px; }
.cruise-gallery-heading span { color: var(--text-muted); font-size: 9px; }
.cruise-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cruise-gallery-item { position: relative; min-width: 0; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--card-bg); }
.cruise-gallery-item img { display: block; width: 100%; height: 58px; object-fit: cover; }
.cruise-gallery-item figcaption { overflow: hidden; padding: 4px 6px 0; color: var(--navy-900); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cruise-gallery-item > span { display: block; overflow: hidden; padding: 0 6px 5px; color: var(--text-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.packing-progress { margin-top: 4px; padding: 11px 12px; border: 1px solid #deedf6; border-radius: 13px; background: linear-gradient(135deg, #e9f6fc, #f3fbff); }
.packing-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.packing-progress-head strong { color: var(--navy-900); font-size: 15px; }
.packing-progress-head span { color: var(--teal-500); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.progress-track { height: 10px; margin: 10px 0 7px; overflow: hidden; border-radius: 999px; background: #dfeaf1; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fae9d, #62cdb5); transition: width .25s ease-out; }
.packing-progress p { margin: 0; color: var(--text-secondary); font-size: 11px; }
.packing-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.packing-category-card { min-width: 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; background: var(--card-bg); text-align: left; }
.packing-category-card strong, .packing-category-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.packing-category-card strong { color: var(--blue-600); font-size: 11px; font-weight: 800; }
.packing-category-card span { margin-top: 1px; color: var(--text-secondary); font-size: 9px; font-variant-numeric: tabular-nums; }
.packing-category-card--documents { border-color: #d7e9fa; background: #f0f7ff; }
.packing-category-card--documents strong { color: #1d75b7; }
.packing-category-card--clothes { border-color: #f4dce8; background: #fff3f8; }
.packing-category-card--clothes strong { color: #b64c78; }
.packing-category-card--medicine { border-color: #f3dada; background: #fff3f2; }
.packing-category-card--medicine strong { color: #bd4e52; }
.packing-category-card--electronics { border-color: #d4e9e7; background: #eff9f8; }
.packing-category-card--electronics strong { color: #247d79; }
.packing-category-card--daily { border-color: #f4e4cc; background: #fff8ec; }
.packing-category-card--daily strong { color: #a66626; }
.packing-category-card--other { border-color: #e5dcf3; background: #f7f3fc; }
.packing-category-card--other strong { color: #765a9f; }

.todo-list { display: grid; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.todo-list li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo-list li:last-child { border-bottom: 0; }
.todo-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--orange-100); color: var(--orange-500); }
.todo-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.todo-copy { min-width: 0; }
.todo-copy strong { display: block; color: var(--navy-900); font-size: 12px; line-height: 1.4; }
.todo-copy span { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 10px; }
.todo-status { margin-left: auto; padding: 4px 7px; border-radius: 999px; background: var(--orange-100); color: #b56a23; font-size: 10px; font-weight: 800; white-space: nowrap; }
.todo-status--todo { border: 1px solid #f4ddc1; background: #fff5e9; color: #a35d21; }
.todo-status--done { border: 1px solid #c8eadd; background: #ebf8f1; color: #218261; }
.home-travel-tools { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 8px; }
.home-weather-card, .home-port-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--card-bg); box-shadow: 0 3px 12px rgba(31,73,105,.045); }
.home-weather-card { padding: 9px; background: linear-gradient(150deg, #f6fbff, #edf7fc); }
.home-mini-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.home-mini-heading h4, .home-port-copy h4 { margin: 0; color: var(--navy-900); font-size: 12px; font-weight: 800; line-height: 1.25; }
.home-mini-heading .text-link, .home-port-copy .text-link { font-size: 9px; }
.weather-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 7px; }
.weather-day { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 5px 1px; border-radius: 8px; background: rgba(255,255,255,.86); color: var(--navy-700); }
.weather-day strong { color: var(--navy-700); font-size: 8px; font-weight: 700; white-space: nowrap; }
.weather-day svg { width: 14px; height: 14px; fill: none; stroke: #4b94c5; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.weather-day span { color: var(--text-secondary); font-size: 8px; }
.weather-note { margin: 6px 0 0; color: var(--text-secondary); font-size: 8px; line-height: 1.35; }
.home-port-visual { position: relative; height: 48px; overflow: hidden; background: #dceffa; }
.home-port-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.home-port-visual-note { position: absolute; right: 5px; bottom: 4px; padding: 2px 4px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--navy-700); font-size: 8px; font-weight: 700; }
.home-port-copy { display: grid; gap: 3px; padding: 7px 8px 8px; }
.home-port-copy p { overflow: hidden; margin: 0; color: var(--text-secondary); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.home-port-note { color: #a35d21; font-size: 8px; line-height: 1.3; }
.home-inspiration-banner { position: relative; height: 86px; overflow: hidden; margin-top: 9px; border: 1px solid rgba(255,255,255,.84); border-radius: 12px; background: #d9e9f4; box-shadow: 0 3px 11px rgba(31,73,105,.08); }
.home-inspiration-banner::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,39,65,.65), rgba(10,39,65,.18) 62%, rgba(10,39,65,0)); content: ""; }
.home-inspiration-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.home-inspiration-copy { position: absolute; z-index: 1; inset: auto 10px 8px; display: grid; gap: 3px; color: #fff; }
.home-inspiration-copy strong { font-size: 13px; line-height: 1.2; text-shadow: 0 1px 4px rgba(4,24,40,.25); }
.home-inspiration-copy span { color: rgba(255,255,255,.9); font-size: 8px; }

.metrics-row, .summary-grid, .home-grid { display: grid; gap: 12px; margin-top: 12px; }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 15px; }
.metric strong { color: var(--navy-900); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { color: var(--text-secondary); font-size: 11px; }
.trip-hero { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.trip-hero .panel-body { min-height: 194px; display: flex; flex-direction: column; justify-content: space-between; }
.trip-hero .panel-kicker, .trip-hero h3 { color: #fff; }
.trip-lead { color: rgba(255,255,255,.83) !important; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); color: var(--text-secondary); font-size: 10px; font-weight: 700; line-height: 1.2; }
.muted-chip { border-color: transparent; background: var(--soft-blue); color: var(--navy-700); font-weight: 600; }
.teal-chip { border-color: #c4e9e0; background: var(--teal-100); color: #177d70; }
.draft-chip { border-color: #f6d6ad; background: var(--orange-100); color: #b56a23; }
.review-note { margin-top: 12px; border-color: #f4d4d8; background: #fff7f8; }
.review-note .panel-kicker, .review-note h3 { color: #c24c58; }
.empty-panel { margin-top: 12px; border-style: dashed; box-shadow: none; }
.empty-panel .panel-body { min-height: 134px; display: flex; flex-direction: column; justify-content: center; }
.route-list { display: grid; gap: 1px; margin: 16px -18px -18px; background: var(--line); }
.route-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; background: var(--card-bg); color: var(--blue-600); font-weight: 700; text-decoration: none; }
.route-list a:hover { background: var(--blue-100); }
.route-list a small { color: var(--text-secondary); font-size: 11px; font-weight: 500; }

.timeline { position: relative; display: grid; gap: 0; margin-top: 8px; }
.timeline::before { position: absolute; top: 11px; bottom: 22px; left: 5px; width: 2px; background: #70bde7; content: ""; }
.timeline-item { position: relative; padding: 0 0 22px 28px; }
.timeline-item:last-child { padding-bottom: 2px; }
.timeline-item::before { position: absolute; top: 7px; left: 0; width: 11px; height: 11px; border: 3px solid var(--card-bg); border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-500); content: ""; }
.timeline-header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.timeline-date { color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.timeline-item h4 { margin: 7px 0 0; color: var(--navy-900); font-size: 16px; line-height: 1.35; letter-spacing: -.015em; }
.timeline-note { margin: 5px 0 8px !important; font-size: 12px !important; line-height: 1.65; }
.compact-timeline .timeline-item { padding-bottom: 17px; }
.compact-timeline .timeline-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.panel-footer { display: flex; justify-content: flex-end; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }

.explore-hero {
  position: relative;
  display: flex;
  min-height: 188px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
}
.explore-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 43, 70, .84) 0%, rgba(13, 43, 70, .57) 42%, rgba(13, 43, 70, .1) 100%);
  content: "";
}
.explore-hero-copy, .explore-hero-search { position: relative; z-index: 1; }
.explore-hero-copy { max-width: 600px; }
.explore-hero-kicker { margin: 0 0 4px; color: #c4f4ef !important; font-size: 10px !important; font-weight: 900; letter-spacing: .14em; }
.explore-hero h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; }
.explore-hero-copy > p:last-child { margin: 7px 0 0; color: rgba(255, 255, 255, .84); font-size: 13px; }
.explore-hero-search { display: flex; width: min(390px, 40%); min-height: 46px; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 13px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); }
.explore-search-icon { color: var(--blue-600); font-size: 24px; line-height: 1; transform: translateY(-1px); }
.explore-hero-search .explore-search { min-height: 36px; padding: 4px 0; border: 0; outline: 0; background: transparent; box-shadow: none; }
.explore-hero-search .explore-search:focus { outline: 0; }
.explore-shell, .packing-shell, .sources-shell { margin-top: 12px; }
.explore-toolbar { display: grid; gap: 10px; margin: 16px 0 12px; }
.explore-tabs, .packing-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.explore-tab, .packing-filter { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-bg); color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.explore-tab:hover, .packing-filter:hover { border-color: var(--blue-500); color: var(--blue-600); }
.explore-tab[aria-selected="true"], .packing-filter[aria-pressed="true"] { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-600); font-weight: 800; }
.explore-search, .packing-search, .packing-category, .source-search { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); color: var(--text-main); }
.explore-search:focus, .packing-search:focus, .packing-category:focus, .source-search:focus { border-color: var(--blue-500); outline: 3px solid rgba(39, 139, 203, .14); }
.explore-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; padding: 9px 0 1px; border-top: 1px solid var(--line); }
.explore-filter-group, .explore-sort { display: flex; align-items: center; gap: 6px; min-width: 0; }
.explore-filter-label { flex: 0 0 auto; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.explore-chip { min-height: 29px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); color: var(--text-secondary); cursor: pointer; font-size: 11px; white-space: nowrap; }
.explore-chip:hover, .explore-chip.is-active { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-600); font-weight: 800; }
.explore-sort-select { min-height: 31px; padding: 4px 26px 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-bg); color: var(--navy-700); font-size: 11px; }
.candidate-grid, .source-grid { display: grid; gap: 12px; }
.candidate-card, .source-card { display: flex; min-width: 0; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.candidate-header, .source-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.candidate-labels { margin: 0; }
.candidate-card h3, .source-card h3 { margin: 12px 0 0; color: var(--navy-900); font-size: 17px; line-height: 1.35; text-wrap: balance; }
.candidate-meta { margin: 5px 0 0 !important; color: var(--blue-600) !important; font-size: 12px !important; font-weight: 700; }
.candidate-details, .source-evidence { margin-top: 13px; border-top: 1px solid var(--line); }
.candidate-details summary, .source-evidence summary { padding: 10px 0 2px; color: var(--blue-600); cursor: pointer; font-size: 12px; font-weight: 800; }
.candidate-detail-body p { font-size: 12px; line-height: 1.65; white-space: pre-line; }
.candidate-detail-body .candidate-risk { color: #b44a56; }
.candidate-detail-body .candidate-uncertainty { color: var(--text-secondary); }
.candidate-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 13px; }
.wanted-chip { border-color: #bfe6dc; background: var(--teal-100); color: #177d70; }
.backup-chip { border-color: #f4d6aa; background: var(--orange-100); color: #b56a23; }
.not_interested-chip { border-color: var(--line); background: var(--soft-blue); color: var(--text-secondary); }

/* Explore density pass: visual hierarchy, semantic colors, and evidence-first detail. */
.explore-results-layout { display: grid; gap: 14px; align-items: start; }
.explore-results-layout > .candidate-grid { min-width: 0; grid-template-columns: 1fr; }
.explore-insight-rail { display: grid; gap: 10px; min-width: 0; align-content: start; }
.explore-insight-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.insight-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--navy-700); font-size: 12px; font-weight: 900; }
.insight-card-heading::before { display: block; width: 4px; height: 17px; border-radius: 999px; background: var(--teal-500); content: ""; }
.explore-insight-card h3 { margin: 11px 0 0; color: var(--navy-900); font-size: 19px; letter-spacing: -.03em; }
.explore-insight-card > p { margin: 5px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.insight-region-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 9px; border-radius: 10px; background: var(--soft-blue); color: var(--blue-600); font-size: 11px; font-weight: 800; }
.insight-region-bar strong { color: var(--navy-900); font-size: 12px; }
.insight-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.insight-stat { display: grid; gap: 1px; min-width: 0; padding: 8px 7px; border: 1px solid var(--line); border-radius: 10px; }
.insight-stat strong { color: var(--navy-900); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.insight-stat span { color: var(--text-secondary); font-size: 10px; font-weight: 800; }
.insight-stat.insight-blue { border-color: #c7e2f3; background: var(--blue-100); }
.insight-stat.insight-teal { border-color: #c7e9e2; background: var(--teal-100); }
.insight-stat.insight-orange { border-color: #f1ddbe; background: var(--orange-100); }
.insight-ranking { display: grid; gap: 3px; margin: 11px 0 0; padding: 0; list-style: none; }
.insight-ranking li { display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 31px; border-bottom: 1px solid rgba(226, 235, 242, .78); color: var(--text-secondary); font-size: 11px; }
.insight-ranking li:last-child { border-bottom: 0; }
.insight-ranking b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; background: var(--soft-blue); color: var(--blue-600); font-size: 10px; }
.insight-ranking li:first-child b { background: var(--orange-100); color: #b56a23; }
.insight-ranking span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-ranking strong { color: var(--navy-900); font-size: 12px; }

.explore-results-layout .candidate-card { padding: 0 15px 15px; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.explore-results-layout .candidate-card:hover { border-color: #9bcbed; box-shadow: 0 9px 25px rgba(22, 115, 184, .11); transform: translateY(-1px); }
.explore-results-layout .candidate-card:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(39, 139, 203, .13); }
.candidate-visual { position: relative; min-height: 124px; margin: 0 -15px; overflow: hidden; background-position: center; background-size: cover; }
.candidate-visual::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13, 43, 70, .1), rgba(13, 43, 70, .68)); content: ""; }
.candidate-visual-overlay { position: absolute; right: 11px; bottom: 10px; left: 11px; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .92); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.candidate-visual-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.candidate-header { margin-top: 13px; }
.candidate-labels { margin-top: 0; }
.candidate-category-chip { border-color: #c7e2f3; background: var(--blue-100); color: var(--blue-600); }
.candidate-card h3 { margin-top: 9px; }
.candidate-meta { display: flex; align-items: center; gap: 4px; }
.candidate-meta-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.candidate-summary { display: -webkit-box; overflow: hidden; min-height: 38px; margin: 8px 0 0 !important; color: var(--text-secondary) !important; font-size: 12px !important; line-height: 1.6 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.candidate-stat-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.candidate-stat-row .chip { min-height: 22px; padding: 3px 7px; font-size: 10px; }
.evidence-chip { border-color: #c7e9e2; background: var(--teal-100); color: #177d70; }
.source-chip { border-color: #c7e2f3; background: var(--blue-100); color: var(--blue-600); }
.platform-chip { border-color: #f1ddbe; background: var(--orange-100); color: #a96527; }
.candidate-details { margin-top: 10px; }
.candidate-details summary { padding: 8px 0 2px; }
.candidate-detail-body p { margin: 7px 0 0; }
.candidate-footer { gap: 7px; margin-top: 12px; }
.candidate-primary-action, .candidate-secondary-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.candidate-primary-action { flex: 1 1 130px; border: 1px solid var(--blue-600); background: var(--blue-600); color: #fff; }
.candidate-primary-action:hover { border-color: var(--navy-900); background: var(--navy-900); }
.candidate-secondary-action { flex: 0 0 auto; border: 1px solid #c7e9e2; background: var(--teal-100); color: #177d70; }
.candidate-secondary-action:hover { border-color: var(--teal-500); background: #d7f4ee; }

.explore-detail-host { position: fixed; z-index: 90; inset: 0; pointer-events: none; }
.explore-detail-host.is-open { pointer-events: auto; }
.explore-detail-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13, 43, 70, .42); opacity: 0; cursor: default; transition: opacity .18s ease; }
.explore-detail-host.is-open .explore-detail-scrim { opacity: 1; cursor: pointer; }
.explore-detail-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: min(520px, 100%); flex-direction: column; overflow-y: auto; padding: 20px 21px 28px; border-left: 1px solid rgba(226, 235, 242, .9); background: var(--card-bg); box-shadow: -18px 0 45px rgba(13, 43, 70, .18); transform: translateX(103%); transition: transform .2s ease; }
.explore-detail-host.is-open .explore-detail-drawer { transform: translateX(0); }
.explore-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.explore-detail-top .panel-kicker { margin: 0; }
.explore-detail-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); color: var(--navy-700); cursor: pointer; font-size: 24px; line-height: 1; }
.explore-detail-close:hover { border-color: var(--blue-500); color: var(--blue-600); }
.explore-detail-drawer > .candidate-visual { min-height: 150px; margin: 14px 0 14px; border-radius: 14px; }
.explore-detail-drawer h2 { margin: 0; color: var(--navy-900); font-size: 25px; line-height: 1.25; letter-spacing: -.04em; }
.explore-detail-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.explore-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.explore-detail-stat { display: grid; gap: 2px; padding: 9px 8px; border-radius: 11px; background: var(--soft-blue); }
.explore-detail-stat strong { color: var(--navy-900); font-size: 18px; line-height: 1; }
.explore-detail-stat span { color: var(--text-secondary); font-size: 10px; font-weight: 800; }
.explore-detail-block { margin-top: 18px; }
.explore-detail-block h3 { margin: 0; color: var(--navy-900); font-size: 14px; }
.explore-detail-block > p { margin: 6px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.explore-detail-caution { margin-top: 15px; padding: 11px 12px; border: 1px solid #f1ddbe; border-radius: 11px; background: var(--orange-100); }
.explore-detail-caution strong { color: #a96527; font-size: 12px; }
.explore-detail-caution p { margin: 4px 0 0; color: #795d3e; font-size: 11px; line-height: 1.6; }
.explore-evidence-list { display: grid; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.explore-evidence-item { display: grid; gap: 4px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.explore-evidence-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.explore-evidence-head > span { color: var(--text-muted); font-size: 10px; }
.explore-evidence-item > strong { color: var(--navy-700); font-size: 11px; line-height: 1.4; }
.explore-evidence-item > p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.explore-evidence-item .text-link { margin-top: 2px; font-size: 10px; }
.explore-evidence-empty { padding: 10px; border-radius: 10px; background: var(--soft-blue); color: var(--text-secondary); font-size: 11px; }
.packing-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 13px; border-radius: 12px; background: var(--teal-100); color: #177d70; }
.packing-summary strong { color: var(--navy-900); font-size: 24px; font-variant-numeric: tabular-nums; }
.packing-controls { display: grid; gap: 9px; margin: 13px 0 17px; }
.packing-groups { display: grid; gap: 19px; }
.packing-group { display: grid; gap: 8px; }
.packing-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.packing-group-heading > div { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.packing-group-heading small { color: var(--text-secondary); font-size: 11px; }
.category-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: var(--blue-100); color: var(--blue-600); font-size: 14px; }
.category-description { margin: 0 !important; color: var(--text-secondary); font-size: 11px !important; }
.packing-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(226, 235, 242, .75); }
.packing-item-main { min-width: 0; flex: 1; }
.packing-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; }
.packing-check input { width: 19px; height: 19px; flex: 0 0 19px; margin: 2px 0 0; accent-color: var(--blue-600); }
.packing-copy { min-width: 0; }
.packing-copy strong { display: block; color: var(--navy-900); font-size: 13px; line-height: 1.4; }
.packing-copy p { margin: 4px 0 0 !important; color: var(--text-secondary); font-size: 11px !important; line-height: 1.55; }
.packing-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.packing-tags .chip { min-height: 22px; padding: 2px 7px; font-size: 10px; }
.must-chip { border-color: #f2c9ce; background: #fff1f3; color: #bf4a57; }
.discard-button { min-height: 36px; flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); color: var(--text-secondary); cursor: pointer; font-size: 11px; }
.discard-button:hover { border-color: #efb9bf; color: #bf4a57; }
.packing-packed .packing-copy strong { color: #24876a; text-decoration: line-through; text-decoration-thickness: 1px; }
.packing-not_bringing .packing-copy strong { color: var(--text-secondary); text-decoration: line-through; }
.source-search { margin: 16px 0 18px; }
.source-card h3 { font-size: 16px; }
.source-meta { margin: 5px 0 0 !important; color: var(--text-secondary); font-size: 11px !important; }
.evidence-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; gap: 2px; padding: 8px 9px; border-radius: 9px; background: var(--soft-blue); }
.evidence-list strong { color: var(--blue-600); font-size: 10px; }
.evidence-list span { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.source-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.warning-panel { border-color: #f2c9ce; background: #fff7f8; }
.error-title { color: #bf4a57; }
.retry-button { margin-top: 16px; min-height: 42px; padding: 9px 15px; border: 0; border-radius: 11px; background: var(--blue-600); color: #fff; cursor: pointer; }

/* Sources center: list-first evidence review with a desktop detail rail. */
.sources-hero { position: relative; display: flex; min-height: 174px; align-items: flex-end; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 14px; padding: 23px 26px; border-radius: var(--radius-lg); background-position: center; background-size: cover; box-shadow: var(--shadow-sm); }
.sources-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 43, 70, .87), rgba(13, 43, 70, .58) 45%, rgba(13, 43, 70, .12)); content: ""; }
.sources-hero-copy, .sources-hero-search { position: relative; z-index: 1; }
.sources-hero-kicker { margin: 0 0 4px; color: #c4f4ef !important; font-size: 10px !important; font-weight: 900; letter-spacing: .14em; }
.sources-hero h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.05em; }
.sources-hero-copy > p:last-child { max-width: 560px; margin: 6px 0 0; color: rgba(255, 255, 255, .85); font-size: 13px; }
.sources-hero-search { display: flex; width: min(420px, 42%); min-height: 46px; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 13px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); }
.source-search-icon { color: var(--blue-600); font-size: 24px; line-height: 1; transform: translateY(-1px); }
.sources-hero-search .source-search { min-height: 36px; padding: 4px 0; border: 0; outline: 0; background: transparent; box-shadow: none; }
.sources-hero-search .source-search:focus { outline: 0; }
.source-controls { display: flex; align-items: center; gap: 8px; margin: 16px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.source-filter { min-height: 36px; padding: 6px 28px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); color: var(--navy-700); font-size: 11px; }
.source-filter:focus { border-color: var(--blue-500); outline: 3px solid rgba(39, 139, 203, .14); }
.source-count { margin-left: auto; color: var(--text-secondary); font-size: 11px; font-weight: 800; }
.sources-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr); gap: 14px; align-items: start; }
.source-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.source-row { position: relative; min-height: 176px; padding-left: 126px; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.source-row:hover { border-color: #9bcbed; transform: translateY(-1px); }
.source-row.is-selected { border-color: var(--blue-500); box-shadow: 0 8px 26px rgba(22, 115, 184, .12); }
.source-row:focus-visible { outline: 3px solid rgba(39, 139, 203, .28); outline-offset: 2px; }
.source-row .source-thumb { position: absolute; top: 15px; left: 15px; }
.source-thumb { display: flex; width: 95px; height: 95px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #d9f0fb, #a7d8ef); color: var(--blue-700); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.source-thumb strong { font-size: 20px; letter-spacing: -.04em; }
.source-thumb span { margin-top: 4px; color: rgba(13, 43, 70, .58); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.source-thumb.source-xhs { background: linear-gradient(145deg, #ffe1e1, #ffb6bd); color: #c24c58; }
.source-thumb.source-bilibili { background: linear-gradient(145deg, #e0e7ff, #b5c8f6); color: #4869bb; }
.source-thumb.source-project { background: linear-gradient(145deg, #dff4ee, #9edbcb); color: #177d70; }
.source-card-header { min-height: 24px; }
.source-platform-chip { border-color: #bedcf1; background: var(--blue-100); color: var(--blue-600); }
.source-preview { display: -webkit-box; overflow: hidden; margin: 8px 0 0 !important; color: var(--text-secondary); font-size: 11px !important; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.source-row .source-evidence { margin-top: 8px; }
.source-row .source-evidence summary { padding-top: 7px; }
.source-row .source-footer { padding-top: 8px; }
.source-detail-host { position: sticky; top: 84px; min-width: 0; }
.source-detail-drawer { overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.source-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source-detail-top .panel-kicker { margin: 0; }
.source-detail-close { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card-bg); color: var(--navy-700); cursor: pointer; font-size: 21px; line-height: 1; }
.source-detail-close:hover { border-color: var(--blue-500); color: var(--blue-600); }
.source-detail-drawer > .source-thumb { width: 100%; height: 118px; margin: 9px 0 12px; }
.source-detail-drawer h3 { margin: 0; color: var(--navy-900); font-size: 18px; line-height: 1.4; }
.source-detail-author { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.source-detail-author strong { color: var(--navy-700); font-size: 12px; }
.source-detail-meta { margin: 4px 0 0; color: var(--text-secondary); font-size: 11px; }
.source-original-link { width: 100%; margin-top: 12px; text-align: center; text-decoration: none; }
.source-detail-heading { margin: 18px 0 8px; color: var(--navy-900); font-size: 14px; }
.source-detail-evidence { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.source-detail-evidence li { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: var(--soft-blue); }
.source-detail-evidence strong { color: var(--blue-600); font-size: 10px; }
.source-detail-evidence span { color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.source-detail-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: #24876a; font-size: 11px; font-weight: 800; }
.source-detail-host.is-collapsed .source-detail-drawer { display: none; }

.more-shell { margin-top: 12px; }
.more-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.more-link-card { display: flex; min-height: 154px; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft-blue); }
.more-link-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--blue-600); color: #fff; font-size: 13px; font-weight: 900; }
.more-link-card h3 { margin: 11px 0 0; color: var(--navy-900); font-size: 15px; }
.more-link-card p { min-height: 37px; margin: 5px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.more-link-card .text-link { margin-top: auto; font-size: 11px; }
.offline-status-card { margin-top: 12px; padding: 14px; border: 1px solid #c4e9e0; border-radius: 14px; background: var(--teal-100); }
.offline-status-head { display: flex; align-items: flex-start; gap: 10px; }
.offline-status-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 50%; background: var(--teal-500); color: #fff; font-weight: 900; }
.offline-status-head strong { display: block; color: var(--navy-900); font-size: 14px; }
.offline-status-head p { margin: 3px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.offline-status-card .chip-row { margin-top: 10px; }

/* V2 itinerary: full-width day strip, timeline, and evidence-aware summary rail. */
.itinerary-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 12px; }
.itinerary-header h2 { margin: 0; color: var(--navy-900); font-size: 32px; letter-spacing: -.04em; }
.itinerary-header p { margin: 4px 0 0; color: var(--text-secondary); font-size: 13px; }
.itinerary-day-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: thin; }
.itinerary-day { min-width: 112px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); color: var(--navy-700); text-align: center; }
.itinerary-day strong, .itinerary-day span, .itinerary-day small { display: block; }
.itinerary-day strong { font-size: 14px; }
.itinerary-day span { font-size: 11px; }
.itinerary-day small { margin-top: 3px; color: var(--text-secondary); font-size: 10px; }
.itinerary-day.is-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.itinerary-day.is-active small { color: rgba(255, 255, 255, .8); }
.itinerary-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); gap: 12px; align-items: start; }
.itinerary-main-panel > .panel-body { padding: 16px; }
.itinerary-timeline { position: relative; display: grid; gap: 0; margin-top: 10px; }
.itinerary-timeline::before { position: absolute; top: 20px; bottom: 28px; left: 8px; width: 2px; background: #70bde7; content: ""; }
.itinerary-event { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 170px; gap: 11px; padding: 14px 0 17px; border-bottom: 1px solid var(--line); }
.itinerary-event:last-child { border-bottom: 0; }
.itinerary-marker { position: absolute; top: 20px; left: 2px; width: 14px; height: 14px; border: 3px solid var(--card-bg); border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-500); }
.itinerary-time { padding-left: 26px; color: var(--navy-900); font-size: 14px; font-weight: 900; }
.itinerary-event-body h3 { margin: 0; color: var(--navy-900); font-size: 16px; line-height: 1.35; }
.itinerary-event-body p { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.transport-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: 10px; font-weight: 800; }
.transport-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.itinerary-event-media { width: 170px; height: 104px; overflow: hidden; border-radius: 12px; background: var(--soft-blue); }
.itinerary-event-media img { width: 100%; height: 100%; object-fit: cover; }
.itinerary-event-actions { display: flex; grid-column: 3; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.itinerary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 8px; border: 1px solid var(--blue-500); border-radius: 10px; color: var(--blue-600); font-size: 10px; font-weight: 800; text-decoration: none; }
.itinerary-action:hover { background: var(--blue-100); }
.itinerary-aside { display: grid; gap: 12px; }
.itinerary-side-card > .panel-body { padding: 15px; }
.itinerary-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.itinerary-stat { padding: 10px 7px; border-radius: 11px; background: var(--soft-blue); text-align: center; }
.itinerary-stat strong { display: block; color: var(--blue-600); font-size: 18px; }
.itinerary-stat span { display: block; color: var(--text-secondary); font-size: 10px; }
.offline-note { display: grid; gap: 2px; margin-top: 9px; padding: 11px; border-radius: 11px; background: var(--soft-warm); }
.offline-note strong { color: #b56a23; font-size: 12px; }
.offline-note span { color: var(--text-secondary); font-size: 11px; }
.itinerary-reminders { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.itinerary-reminders li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-secondary); font-size: 11px; }
.reminder-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: var(--orange-500); }
.itinerary-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 11px; border: 1px solid #f4d4d8; border-radius: 11px; background: #fff7f8; color: #bf4a57; font-size: 11px; }
.itinerary-note strong { white-space: nowrap; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 7px calc(6px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -10px 28px rgba(18, 52, 77, .08);
  backdrop-filter: blur(16px);
}

.bottom-nav a { display: grid; min-height: 51px; place-items: center; gap: 1px; border-radius: 11px; color: var(--text-secondary); font-size: 10px; font-weight: 700; text-decoration: none; }
.bottom-icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.bottom-nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-600); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(39, 139, 203, .28); outline-offset: 2px; }

@media (min-width: 700px) {
  main { padding: 25px 24px calc(56px + var(--safe-bottom)); }
  .metrics-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .candidate-grid, .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packing-controls { grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr); align-items: start; }
  .packing-controls .packing-filters { grid-column: 1 / -1; grid-row: 1; }
  .packing-controls .packing-search { grid-column: 1; grid-row: 2; }
  .packing-controls .packing-category { grid-column: 2; grid-row: 2; }
  .loading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 700px) {
  .explore-results-layout > .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .explore-results-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, .36fr); }
  .explore-insight-rail { position: sticky; top: 84px; }
}

@media (min-width: 1200px) {
  .explore-results-layout > .candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 20px 13px 17px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #f6fbfe 72%, #eaf6fc 100%);
  }
  /* Branding extends into the header; its transparent padding must not block topic tabs. */
  .brand-block { display: flex; align-items: center; gap: 7px; padding: 0 5px 22px; pointer-events: none; }
  .brand-mark { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; color: var(--blue-600); }
  .brand-icon { width: 39px; height: 32px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 2.1; }
  .brand-title { margin: 0; color: var(--navy-900); font-size: 15px; font-weight: 900; letter-spacing: -.045em; white-space: nowrap; }
  .brand-subtitle { margin: 2px 0 0; color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
  .desktop-nav { display: grid; gap: 3px; }
  .desktop-nav a { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 8px 12px; border-radius: 11px; color: var(--navy-700); font-size: 14px; font-weight: 700; text-decoration: none; }
  .desktop-nav a:hover { background: var(--blue-100); color: var(--blue-600); }
  .desktop-nav a[aria-current="page"] { background: #dff1fc; color: var(--blue-600); font-weight: 800; }
  .nav-icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .sidebar-rule { height: 1px; margin: 19px 8px 13px; background: var(--line); }
  .sidebar-note { padding: 0 9px; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
  .sidebar-visual {
    position: relative;
    display: flex;
    height: clamp(180px, 28vh, 280px);
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    margin: 16px 6px 0;
    padding: 14px 11px 10px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 15px;
    background-image: linear-gradient(180deg, rgba(13, 43, 70, .05) 18%, rgba(13, 43, 70, .18) 47%, rgba(13, 43, 70, .88) 100%), url("../assets/images/hero-tokyo-cruise.png");
    background-position: 66% center;
    background-size: cover;
    box-shadow: var(--shadow-sm);
  }
  .sidebar-visual::before { position: absolute; top: 12px; left: 12px; width: 24px; height: 3px; border-radius: 999px; background: #bfeee8; content: ""; }
  .sidebar-visual-copy, .sidebar-visual figcaption { position: relative; z-index: 1; }
  .sidebar-visual-copy { display: grid; gap: 3px; color: #fff; }
  .sidebar-visual-copy span { color: #bfeee8; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
  .sidebar-visual-copy strong { font-size: 17px; line-height: 1.25; letter-spacing: -.04em; }
  .sidebar-visual figcaption { margin-top: 7px; color: rgba(255, 255, 255, .76); font-size: 9px; line-height: 1.4; }
  .sidebar-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 9px 1px; color: var(--text-secondary); font-size: 10px; }
  .app-frame { margin-left: var(--sidebar-width); }
  .topbar { min-height: 70px; padding: 12px 30px; }
  .topbar-search { display: flex; width: min(360px, 34vw); margin-left: auto; }
  .mobile-page-title { display: none; }
  .user-name { display: inline; padding-right: 7px; }
  main { padding: 20px 27px 56px; }
  .home-dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr) minmax(260px, .82fr); }
  .home-column-side { display: grid; align-content: start; gap: 12px; }
  .home-hero, .hero-copy { min-height: 225px; }
  .recommend-card-media { height: 102px; }
  .bottom-nav { display: none; }
  .loading-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .sidebar { width: var(--sidebar-width); }
  .app-frame { margin-left: var(--sidebar-width); }
  main { padding-right: 30px; padding-left: 30px; }
  .topbar { padding-right: 34px; padding-left: 34px; }
}

@media (min-width: 960px) {
  body:is(.is-home, .is-guide) .sidebar { padding-right: 10px; padding-left: 10px; background: linear-gradient(180deg, #fafdff 0%, #f0f9fe 70%, #e5f4fc 100%); }
  body:is(.is-home, .is-guide) .brand-block { gap: 6px; padding-right: 2px; padding-left: 2px; }
  body:is(.is-home, .is-guide) .brand-block > div { min-width: 0; }
  body:is(.is-home, .is-guide) .brand-mark { width: 40px; height: 40px; flex-basis: 40px; color: var(--navy-900); }
  body:is(.is-home, .is-guide) .brand-icon { width: 40px; height: 32px; }
  body:is(.is-home, .is-guide) .brand-title { font-size: 14px; letter-spacing: -.035em; white-space: normal; }
  body:is(.is-home, .is-guide) .brand-subtitle { font-size: 9px; }
  body.is-home .desktop-nav a { gap: 10px; min-height: 46px; padding-right: 10px; padding-left: 10px; }
  body:is(.is-home, .is-guide) .sidebar-visual {
    flex: 1 1 auto;
    min-height: 220px;
    max-height: 430px;
    height: auto;
    margin: 14px -10px 0;
    padding: 16px 12px 15px;
    border: 0;
    border-radius: 0;
    background-image: linear-gradient(180deg, transparent 65%, rgba(243,250,255,.75) 82%, rgba(243,250,255,.94) 100%), url("../assets/images/sidebar-tokyo-cruise-v2.png");
    background-position: center bottom;
    box-shadow: none;
  }
  body:is(.is-home, .is-guide) .sidebar-visual::before { display: none; }
  body:is(.is-home, .is-guide) .sidebar-visual-copy { color: var(--navy-900); }
  body:is(.is-home, .is-guide) .sidebar-visual-copy span { color: var(--blue-600); }
  body:is(.is-home, .is-guide) .sidebar-visual-copy strong { font-size: 17px; letter-spacing: -.035em; }
  body:is(.is-home, .is-guide) .sidebar-visual figcaption { color: var(--navy-700); }
  body:is(.is-home, .is-guide) .topbar { min-height: 60px; padding: 8px 18px; }
  body:is(.is-home, .is-guide) main { padding: 8px 16px 48px; }
  body.is-home .quickbar { margin-top: 8px; }
  body.is-home .quick-feature { gap: 11px; padding: 0 8px; }
  body.is-home .quick-feature-icon { width: 50px; height: 50px; flex-basis: 50px; }
  body.is-home .quick-feature-icon svg { width: 25px; height: 25px; }
  body.is-home .quick-feature-copy strong { font-size: 15px; }
  body.is-home .quick-feature-copy > span { font-size: 12px; }
  body.is-home .hero-meta { gap: 4px 8px; margin-top: 7px !important; }
  body.is-home .hero-meta > span { padding: 2px 8px; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(255,255,255,.78); }
  body.is-home .hero-copy { max-width: 36%; }
  body.is-home .home-hero, body.is-home .hero-copy { min-height: 208px; }
  body.is-home .hero-copy { padding-top: 16px; padding-bottom: 16px; }
  body.is-home .hero-copy h2 { font-size: 44px; }
  body.is-home .hero-tagline { font-size: 14px !important; }
  body.is-home .hero-route { margin-top: 6px !important; font-size: 20px !important; }
  body.is-home .hero-meta > span:first-child { flex-basis: 100%; max-width: max-content; }
  body.is-home .recommend-card { border-color: #e1ebf3; box-shadow: 0 3px 11px rgba(31,73,105,.055); transition: transform .18s ease, box-shadow .18s ease; }
  body.is-home .recommend-card-media { height: 122px; }
  body.is-home .recommend-card-media img { object-position: center 46%; }
  body.is-home .recommend-card-body { display: flex; min-height: 156px; flex-direction: column; padding: 8px; }
  body.is-home .recommend-card h4 { display: -webkit-box; min-height: 38px; font-size: 14px; font-weight: 800; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  body.is-home .recommend-meta { color: var(--navy-700) !important; font-size: 11px !important; }
  body.is-home .recommend-evidence { margin-top: 5px; color: #a85a1b; }
  body.is-home .recommend-card .chip-row { margin-top: 6px; }
  body.is-home .recommend-card .chip { min-height: 23px; border-radius: 6px; font-size: 10px; }
  body.is-home .recommend-card .recommend-category-chip { border-color: #f7dcc4; background: #fff4e9; color: #a95a29; }
  body.is-home .recommend-footer { margin-top: auto; padding-top: 6px; }
  body.is-home .recommend-card:hover { box-shadow: 0 7px 18px rgba(31,73,105,.11); transform: translateY(-2px); }
  body.is-home .recommend-footer .text-link { padding: 5px 8px; border-radius: 8px; background: #1476b7; color: #fff; font-size: 9px; text-decoration: none; }
  body.is-home .recommend-footer .text-link:hover { background: #0d3a60; }
  body.is-home .home-dashboard { grid-template-columns: minmax(0, .94fr) minmax(0, 1.1fr) minmax(292px, .98fr); gap: 11px; margin-top: 10px; }
  body.is-home .home-column-side { gap: 10px; }
  body.is-home .dashboard-panel > .panel-body { padding: 12px; }
  body.is-home .home-section-heading { margin-bottom: 9px; }
  body.is-home .home-section-heading h3 { font-size: 17px; }
  body.is-home .packing-progress { padding: 8px 10px; }
  body.is-home .progress-track { height: 8px; margin: 7px 0 5px; }
  body.is-home .packing-progress p { font-size: 10px; }
  body.is-home .packing-category-grid { gap: 4px; margin-top: 7px; }
  body.is-home .packing-category-card { padding: 5px 6px; }
  body.is-home .packing-category-card span { font-size: 8px; }
  body.is-home .todo-list li { padding: 8px 0; }
  body.is-home .todo-copy strong { font-size: 11px; }
  body.is-home .home-inspiration-banner { height: 68px; }
}

@media (min-width: 1200px) {
  .sidebar { width: var(--sidebar-width); }
  .app-frame { margin-left: var(--sidebar-width); }
  body:is(.is-home, .is-guide) .brand-block { width: 310px; gap: 8px; }
  body:is(.is-home, .is-guide) .brand-mark { width: 48px; flex-basis: 48px; }
  body:is(.is-home, .is-guide) .brand-icon { width: 48px; height: 36px; }
  body:is(.is-home, .is-guide) .brand-title { font-size: 21px; white-space: nowrap; }
  body.is-home .home-column-primary .panel-body { display: flex; height: 100%; flex-direction: column; }
  body.is-home .home-column-primary .home-section-heading-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  body.is-home .home-column-primary .home-section-heading-copy span { margin-top: 0; }
  body.is-home .home-column-recommend .home-section-heading-copy,
  body.is-home .home-column-side > .dashboard-panel:first-child .home-section-heading-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  body.is-home .home-column-recommend .home-section-heading-copy span,
  body.is-home .home-column-side > .dashboard-panel:first-child .home-section-heading-copy span { margin-top: 0; }
  body.is-home .cruise-gallery { margin-top: 9px; padding-top: 7px; }
  body.is-home .cruise-gallery-heading { margin-bottom: 6px; }
  body.is-home .home-column-primary .home-timeline { order: 1; flex: 1; }
  body.is-home .home-timeline-item { min-height: 102px; grid-template-columns: 46px minmax(0, 1fr) 104px; }
  body.is-home .home-timeline-image { width: 104px; height: 64px; }
  body.is-home .home-timeline-copy p { -webkit-line-clamp: 3; }
  body.is-home .home-column-primary .day-strip { order: 2; margin-top: 12px; margin-bottom: 0; }
  body.is-home .home-column-primary .panel-footer { order: 3; margin-top: 10px; padding-top: 10px; font-size: 10px; }
}

@media (min-width: 700px) and (max-width: 1199px) {
  body.is-home .home-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-home .home-column-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-home .home-travel-tools { grid-column: 1 / -1; }
  body.is-home .quickbar { flex-wrap: wrap; }
  body.is-home .quick-features { flex-basis: 100%; }
  body.is-home .quick-actions { margin-left: auto; }
  body.is-home .hero-copy { max-width: 34%; }
  body.is-home .hero-copy h2 { font-size: 30px; }
  body.is-home .hero-route { font-size: 16px !important; }
  body.is-home .hero-meta { font-size: 10px !important; }
}

@media (max-width: 959px) and (min-width: 700px) {
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 72px; flex-direction: column; align-items: center; padding: 16px 8px; border-right: 1px solid var(--line); background: var(--card-bg); }
  .brand-block { display: grid; place-items: center; }
  .brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue-600); }
  .brand-icon { width: 42px; height: 32px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 2; }
  .brand-block > div, .sidebar-note, .sidebar-rule, .sidebar-foot span:last-child { display: none; }
  .desktop-nav { display: grid; gap: 8px; margin-top: 22px; }
  .desktop-nav a { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: var(--navy-700); text-decoration: none; }
  .desktop-nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-600); }
  .desktop-nav a span { display: none; }
  .nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .sidebar-foot { margin-top: auto; }
  .app-frame { margin-left: 72px; }
}

@media (max-width: 699px) {
  .topbar { min-height: 61px; padding: 10px 14px; }
  .topbar-actions { gap: 3px; }
  .build-status { max-width: 36px; padding: 6px 8px; }
  .build-status span:last-child { display: none; }
  .icon-button { display: none; }
  main { padding-top: 14px; }
  .hero-copy { max-width: 100%; min-height: 252px; padding: 24px 17px; justify-content: flex-start; }
  .home-hero { min-height: 252px; }
  .hero-copy h2 { max-width: calc(100% - 94px); font-size: 29px; }
  .hero-tagline { max-width: calc(100% - 94px); font-size: 13px !important; }
  .hero-route { font-size: 15px !important; }
  .hero-meta { max-width: 225px; margin-top: 10px !important; font-size: 11px !important; }
  .hero-art::before { right: -22%; bottom: 36px; width: 108%; height: 95px; }
  .hero-ship { right: 4%; bottom: 39px; width: 160px; height: 66px; }
  .hero-mt { right: -5%; bottom: 43px; width: 220px; }
  .hero-city { right: -2%; }
  .hero-art.has-hero-photo { background-position: 55% center; background-size: cover; }
  .hero-countdown { top: 14px; right: 12px; bottom: auto; width: 82px; min-width: 0; min-height: 88px; padding: 8px; }
  .hero-countdown strong { font-size: 24px; }
  .hero-countdown small { font-size: 9px; }
  .hero-countdown em { font-size: 8px; }
  body.is-home .home-hero { background: linear-gradient(180deg, #eef7fd 0%, #e7f4fd 55%, #d8effe 100%); }
  body.is-home .hero-copy { min-height: 0; padding-bottom: 156px; }
  body.is-home .hero-art.has-hero-photo {
    top: auto;
    height: 184px;
    background-position: center 46%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 12%, rgba(0,0,0,.6) 27%, #000 44%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 12%, rgba(0,0,0,.6) 27%, #000 44%);
  }
  body.is-home .hero-art.has-hero-photo::before { display: none; }
  body.is-home .hero-meta { max-width: 100%; }
  .quickbar { display: block; padding: 8px; }
  .quick-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-feature { display: grid; justify-items: center; gap: 4px; padding: 3px 2px; border-right: 0; text-align: center; }
  .quick-feature-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .quick-feature-copy { width: 100%; }
  .quick-feature-copy strong { width: 100%; font-size: 10px; }
  .quick-feature-copy > span { width: 100%; font-size: 9px; }
  .quick-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .quick-actions .outline-button, .quick-actions .primary-button { min-height: 34px; padding: 6px 7px; font-size: 11px; }
  .explore-hero { min-height: 238px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 20px 17px 17px; background-position: 68% center; }
  .explore-hero::before { background: linear-gradient(180deg, rgba(13, 43, 70, .08) 0%, rgba(13, 43, 70, .78) 62%, rgba(13, 43, 70, .9) 100%); }
  .explore-hero-copy > p:last-child { font-size: 12px; }
  .explore-hero-search { width: 100%; }
  .explore-filter-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .explore-filter-group { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .explore-sort { width: 100%; justify-content: space-between; }
  .explore-sort-select { flex: 1; }
  .home-dashboard { gap: 10px; }
  .home-dashboard .home-column-recommend { order: 2; }
  .home-dashboard .home-column-side { order: 3; }
  .home-timeline-item { grid-template-columns: 42px minmax(0, 1fr) 76px; }
  .home-timeline-image { width: 76px; height: 53px; }
  .day-strip { gap: 4px; }
  .day-strip-item { padding: 7px 2px; }
  .day-strip-item strong { font-size: 11px; }
  .day-strip-item span { font-size: 9px; }
  .recommend-card-media { height: 78px; }
  .recommend-card h4 { font-size: 12px; }
  .recommend-grid { gap: 7px; }
  .metrics-row, .summary-grid, .home-grid { grid-template-columns: 1fr; }
  .page-intro h2 { font-size: 26px; }
  .page-intro p { font-size: 13px; }
}

@media (max-width: 380px) {
  .hero-copy { max-width: 100%; }
  .hero-copy h2 { font-size: 26px; }
  .hero-countdown { width: 78px; min-width: 0; }
  .home-timeline-item { grid-template-columns: 40px minmax(0, 1fr); }
  .home-timeline-image { display: none; }
}

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

@media (max-width: 959px) {
  body.is-home .home-travel-tools { grid-template-columns: 1fr; }
  .itinerary-layout { grid-template-columns: 1fr; }
  .itinerary-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itinerary-aside .itinerary-side-card:last-child { grid-column: 1 / -1; }
  .sources-workspace { grid-template-columns: 1fr; }
  .source-detail-host { position: static; }
  .explore-results-layout { grid-template-columns: 1fr; }
  .explore-insight-rail { position: static; }
  .more-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .itinerary-header h2 { font-size: 26px; }
  .itinerary-header .outline-button { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .itinerary-day { min-width: 82px; padding: 8px 6px; }
  .itinerary-event { grid-template-columns: 42px minmax(0, 1fr) 96px; gap: 8px; }
  .itinerary-time { padding-left: 21px; font-size: 12px; }
  .itinerary-event-body h3 { font-size: 14px; }
  .itinerary-event-body p { font-size: 11px; }
  .itinerary-event-media { width: 96px; height: 70px; }
  .itinerary-event-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .itinerary-action { min-height: 29px; }
  .itinerary-aside { grid-template-columns: 1fr; }
  .itinerary-aside .itinerary-side-card:last-child { grid-column: auto; }
  .sources-hero { min-height: 230px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 20px 17px 17px; background-position: 68% center; }
  .sources-hero::before { background: linear-gradient(180deg, rgba(13, 43, 70, .1), rgba(13, 43, 70, .88) 72%); }
  .sources-hero-copy > p:last-child { font-size: 12px; }
  .sources-hero-search { width: 100%; }
  .source-controls { align-items: stretch; flex-wrap: wrap; }
  .source-filter { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .source-count { width: 100%; margin-left: 0; }
  .source-row { min-height: 0; padding: 15px; }
  .source-row .source-thumb { position: static; width: 100%; height: 86px; margin-bottom: 11px; }
  .source-row .source-thumb strong { font-size: 18px; }
  .source-detail-drawer { padding: 15px; }
  .explore-detail-drawer { top: auto; right: 0; bottom: 0; width: 100%; max-height: min(86vh, 720px); padding: 17px 16px calc(22px + var(--safe-bottom)); border-top: 1px solid var(--line); border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(103%); }
  .explore-detail-host.is-open .explore-detail-drawer { transform: translateY(0); }
  .explore-detail-drawer > .candidate-visual { min-height: 126px; }
  .more-link-grid { grid-template-columns: 1fr; gap: 8px; }
  .more-link-card { min-height: 112px; }
  .more-link-card p { min-height: 0; }
}

@media (max-width: 380px) {
  .itinerary-event { grid-template-columns: 40px minmax(0, 1fr); }
  .itinerary-event-media { display: none; }
  .itinerary-event-actions { grid-column: 2; }
}

