@charset "UTF-8";
/*
 * 一起去玩 (Together Travel) — Refined Design System
 * - 统一色板：柔和纸面中性阶 + 品牌蓝(#2D52D4) + 青松绿(#15756A) + 赤陶暖(#A8562A)
 * - 统一放大字号：正文 16px，辅助文字 14px，面板标题 24px，目的地/主标题 44–54px
 * - 统一圆角与留白：面板 16px/28px，卡片 12px/24px，控件 10px/48px；图标 15px 略小于 16px 文字
 * - 组间比组内更松：组内 12–16px，组间 32px
 */

:root {
  /* Tinted neutral ramp */
  --paper: #f4f6f8;
  --surface: #ffffff;
  --raised: #edf1f5;
  --subtle: #f8fafc;
  --ink: #162936;
  --secondary: #485e6e;
  --muted: #5d7382;
  --line: rgba(22, 41, 54, 0.09);
  --line-strong: rgba(22, 41, 54, 0.16);

  /* Brand & semantic accents */
  --blue: #2d52d4;
  --blue-hover: #2343b5;
  --blue-soft: #eef2fd;
  --blue-border: rgba(45, 82, 212, 0.22);

  --teal: #15756a;
  --teal-soft: #e9f5f2;
  --teal-border: rgba(21, 117, 106, 0.24);

  --warm: #a8562a;
  --warm-soft: #fdf3ea;
  --warm-border: rgba(168, 86, 42, 0.24);

  --danger: #b53b2f;
  --white: #ffffff;

  /* Typography */
  --art: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
  --display: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --data: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 4px Spacing Scale (组内 12–16px，组间 32px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Unified Radii */
  --r-tag: 8px;
  --r-ctrl: 10px;
  --r-card: 12px;
  --r-panel: 16px;

  /* Elevation & Motion */
  --shadow-sm: 0 1px 2px rgba(22, 41, 54, 0.05);
  --shadow-md: 0 8px 24px rgba(22, 41, 54, 0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;

  /* Layout */
  --max-app: 1280px;
  --topbar-h: 72px;
  --subbar-h: 56px;
}

/* ==========================================================================
   1. Base Reset & Enlarged Unified Typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.7 var(--body);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); }
h1 { font-size: 40px; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; }
h3 { font-size: 19px; line-height: 1.45; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Tabular numerals */
.plan-costs strong, .option-total strong, .flight strong, .flight b,
.hotel-row > strong, .order-title > strong, .order-total strong,
.overview-price strong, .watch-facts strong, .entry-number,
.events time, .kbd-hint, .ai-day-num, .ai-stop-time {
  font-variant-numeric: tabular-nums;
}

/* Icons strictly slightly smaller than 16px text */
.icon { width: 15px; height: 15px; flex-shrink: 0; vertical-align: middle; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   2. Buttons, Pills & Labels (Generous Tap Targets & Consistent Padding)
   ========================================================================== */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--r-ctrl);
  padding: 0 var(--sp-5);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
button:hover, .button:hover { text-decoration: none; }
button:active:not(:disabled), .button:active { transform: scale(0.98); }

.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }

.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.secondary:hover:not(:disabled) { background: var(--subtle); border-color: rgba(22, 41, 54, 0.28); }

.text {
  color: var(--blue);
  padding: 0 var(--sp-3);
  min-height: 42px;
}
.text:hover:not(:disabled) { background: var(--blue-soft); }
.danger { color: var(--danger); }
.danger:hover:not(:disabled) { background: rgba(181, 59, 47, 0.08); }
.full { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-tag);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--raised);
  color: var(--secondary);
  white-space: nowrap;
}
.pill.good { background: var(--teal-soft); color: var(--teal); }
.pill.warm { background: var(--warm-soft); color: var(--warm); }

.eyebrow, .section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--sp-2);
  display: block;
}
.caption { font-size: 14px; color: var(--muted); line-height: 1.7; margin: var(--sp-2) 0 var(--sp-4); }
.lead { font-size: 17px; line-height: 1.8; color: var(--secondary); margin-top: var(--sp-3); }

.kbd-hint {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font: 500 12px/1.2 var(--data);
  color: var(--muted);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.avatar.color-1 { background: var(--teal-soft); color: var(--teal); }
.avatar.color-2 { background: var(--warm-soft); color: var(--warm); }
.avatar.color-3 { background: #efebf8; color: #674ea7; }
.avatar.color-4 { background: #e5f1f5; color: #2f6f82; }
.avatar.color-5 { background: #f6e9ed; color: #9c4362; }

/* ==========================================================================
   3. Top Unified Header, Artistic Wordmark & Sticky Top Navigation Bar
   ========================================================================== */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: var(--max-app);
  height: var(--topbar-h);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.top-left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-width: 0;
}

/* Kept beloved logo mark (scaled cleanly) + Artistic Wordmark「一起去玩」 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  position: relative;
  width: 30px;
  height: 32px;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.brand-mark i {
  position: absolute;
  display: block;
  width: 6.5px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  left: 5px;
  top: 1px;
  transform: rotate(28deg);
}
.brand-mark i:nth-child(2) {
  left: 15px;
  height: 23px;
  background: var(--teal);
  top: 6px;
  transform: rotate(-28deg);
}
.brand-mark i:nth-child(3) {
  height: 6.5px;
  width: 6.5px;
  left: 21px;
  top: 0;
  background: #b5c7d4;
  transform: none;
}

.brand-wordmark {
  font-family: var(--art);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  position: relative;
}
.brand-wordmark span {
  color: var(--teal);
  font-weight: 600;
  margin-left: 1px;
}

.top-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.top-trip-meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  min-width: 0;
}
.top-trip-dest {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.top-trip-sub {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.top-note { font-size: 15px; color: var(--muted); }
.top-right > .secondary { min-height: 40px; padding: 0 var(--sp-4); font-size: 15px; }

.identity {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 14px 4px 5px;
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  background: var(--surface);
}
.identity:hover { background: var(--subtle); }
.identity strong { font-weight: 500; }

/* Interactive Top Companion Switcher */
.top-members {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--raised);
  border-radius: var(--r-ctrl);
}
.top-member-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-tag);
  color: var(--secondary);
  gap: 6px;
}
.top-member-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.top-member-btn.selected {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}
.top-member-btn .member-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6c5d0;
  flex-shrink: 0;
}
.top-member-btn .member-status-dot.confirmed { background: var(--teal); }

/* Row 2: Sticky Top Navigation Bar */
.workspace-subbar {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.workspace-subbar-inner {
  max-width: var(--max-app);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  min-height: var(--subbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.top-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav button {
  min-height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-ctrl);
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  gap: 8px;
}
.top-nav button:hover { background: var(--raised); color: var(--ink); }
.top-nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.top-nav button .nav-badge {
  font: 500 12px/1 var(--data);
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
}
.top-nav button.active .nav-badge { background: rgba(45, 82, 212, 0.14); color: var(--blue); }
.top-nav button .nav-badge.warm { background: var(--warm-soft); color: var(--warm); }

.subbar-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--raised);
  color: var(--secondary);
  white-space: nowrap;
}
.stage-chip.good { background: var(--teal-soft); color: var(--teal); }
.stage-chip.warm { background: var(--warm-soft); color: var(--warm); }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); flex-shrink: 0; }
.state-dot.live { background: var(--teal); }

/* ==========================================================================
   4. Main Workspace Canvas & Uniform Panels (组间 32px，面板统一 16px 圆角 / 28px 留白)
   ========================================================================== */
.app-layout {
  max-width: var(--max-app);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-12);
}
.main { min-width: 0; width: 100%; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-7);
  margin-bottom: var(--sp-8);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.panel-title .section-label { margin-bottom: var(--sp-1); }
.panel > h2 { margin-bottom: var(--sp-5); }
.panel-title h2 { margin-bottom: 0; }

.section-head { margin: 0 0 var(--sp-8); }
.section-head .lead { max-width: 720px; }

/* Notices & Decision Banner */
.note {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-card);
  font-size: 15px;
  line-height: 1.7;
  color: #264085;
  margin: var(--sp-5) 0;
}
.note.warm { background: var(--warm-soft); color: #7d3f1d; border-color: var(--warm-border); }
.note.good { background: var(--teal-soft); color: var(--teal); border-color: var(--teal-border); }
.note button { font-size: 15px; min-height: 36px; }

.decision-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
  border-radius: var(--r-panel);
  background: var(--warm-soft);
  border: 1px solid var(--warm-border);
}
.decision-banner-copy { flex: 1; min-width: 260px; }
.decision-banner-copy strong {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 17px;
  color: var(--warm);
  margin-bottom: 6px;
}
.decision-banner-copy p { font-size: 15px; color: #7d3f1d; line-height: 1.65; }

/* ==========================================================================
   5. Forms & Controls (48px height, generous padding)
   ========================================================================== */
.field { display: block; margin-bottom: var(--sp-5); min-width: 0; }
.field > span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}
.field input, .field select, .field textarea, .invite-row input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 82, 212, 0.12);
  outline: none;
}
.field textarea { resize: vertical; line-height: 1.75; min-height: 112px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-size: 15px; font-weight: 500; color: var(--secondary); margin-bottom: var(--sp-2); padding: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-6); }
.form-section-title {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-6);
  margin: var(--sp-8) 0 var(--sp-5);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: 44px;
  font-size: 15px;
  color: var(--secondary);
  padding: 8px 0;
  cursor: pointer;
}
.check input { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }
.checks, .destination-checks { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-4); }

.form-actions {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.form-actions > span { font-size: 14px; color: var(--muted); }
.form-actions .primary { min-width: 200px; }

.page-actions {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: var(--sp-6) 0;
}
.inline-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-top: var(--sp-4); }
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-6);
  margin-top: var(--sp-5);
}
.inline-form > .field { flex: 1; margin-bottom: 0; }
.inline-form > button { height: 48px; white-space: nowrap; }

/* ==========================================================================
   6. Clean Landing Page (Direct Creation + Quiet Sample Shelf)
   ========================================================================== */
.conversation-landing {
  max-width: var(--max-app);
  margin: var(--sp-10) auto var(--sp-10);
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--sp-12);
  align-items: start;
}
.conversation-intro { padding-top: var(--sp-2); }
.landing-hero-title {
  font-size: clamp(38px, 4.2vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: var(--sp-3) 0 var(--sp-5);
}
.landing-hero-title span { color: var(--teal); }

.conversation-steps {
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  font-size: 16px;
  color: var(--ink);
  margin: var(--sp-8) 0;
}
.conversation-steps b {
  font: 600 14px var(--data);
  color: var(--teal);
  background: var(--teal-soft);
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: var(--sp-3);
}

.conversation-main { min-width: 0; }
.conversation-panel {
  padding: var(--sp-7);
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.conversation-mode { border-bottom: 1px solid var(--line); margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4); }
.conversation-mode label { margin: 0; }
.conversation-heading { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-5); }
.conversation-heading strong { font-size: 19px; font-family: var(--display); font-weight: 600; display: block; }
.conversation-heading small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.conversation-mark {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  border-radius: var(--r-ctrl);
  color: var(--teal);
  font-size: 20px;
  flex-shrink: 0;
}
.chat-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 0 var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.chat-checklist span {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--subtle);
  border: 1px solid var(--line);
}
.chat-checklist .done { color: var(--teal); background: var(--teal-soft); border-color: var(--teal-border); }

.conversation-log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 4px var(--sp-4) 0;
  scrollbar-width: thin;
}
.chat-message { font-size: 16px; line-height: 1.75; max-width: 92%; overflow-wrap: anywhere; }
.chat-message.assistant {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 6px 14px 14px 14px;
  padding: 12px 16px;
  color: var(--ink);
}
.chat-message.user {
  align-self: flex-end;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 14px 14px 6px 14px;
  padding: 12px 16px;
  color: #1f3982;
}
.conversation-examples { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-4); }
.conversation-examples button {
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  min-height: 40px;
  background: var(--surface);
  color: var(--secondary);
}
.conversation-examples button:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.conversation-composer {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: var(--sp-3);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.conversation-composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 82, 212, 0.12); }
.conversation-composer textarea {
  border: 0;
  background: transparent !important;
  display: block;
  box-shadow: none;
  resize: vertical;
  width: 100%;
  min-height: 96px;
  padding: 14px 16px 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  outline: 0 !important;
  margin: 0;
}
.conversation-composer textarea::placeholder { color: var(--muted); }
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 8px 14px 12px;
}
.composer-bottom > span { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.composer-bottom button { padding: 0 var(--sp-5); min-height: 42px; }

.conversation-draft {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-ctrl) var(--r-ctrl) 0;
}
.conversation-draft ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--ink); }
.conversation-next { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.conversation-next > span { font-size: 14px; color: var(--muted); }
.chat-error { color: var(--danger); background: #fdf0ef; border: 1px solid rgba(181, 59, 47, 0.2); padding: 12px 16px; font-size: 14px; border-radius: var(--r-ctrl); margin-top: var(--sp-3); }

.intake-review { margin-top: var(--sp-6); scroll-margin-top: 140px; }
.recent { margin-top: var(--sp-8); }
.recent h3 { margin-bottom: var(--sp-3); }
.recent a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.recent a:last-child { border-bottom: 0; }
.recent small { font-size: 14px; font-weight: 400; display: flex; align-items: center; gap: 6px; color: var(--muted); }

/* Clean Sample Shelf (示范例子) */
.sample-shelf {
  max-width: var(--max-app);
  margin: 0 auto var(--sp-12);
  padding: var(--sp-8) var(--sp-6) 0;
  border-top: 1px solid var(--line);
}
.sample-shelf-head { margin-bottom: var(--sp-6); }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.sample-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-panel);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  min-height: auto;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.sample-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.entry-number { font: 600 13px/1 var(--data); color: var(--teal); display: block; margin-bottom: var(--sp-3); }
.sample-card h3 { font-size: 19px; margin-bottom: var(--sp-2); }
.sample-card p { font-size: 15px; color: var(--secondary); line-height: 1.65; margin-bottom: var(--sp-5); font-weight: 400; }
.entry-link { color: var(--blue); font-size: 15px; font-weight: 500; margin-top: auto; }

.welcome-footer {
  max-width: var(--max-app);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   7. Overview View (Prominent Destination Focus + Spacious Cards)
   ========================================================================== */
.trip-cover {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.cover-copy { position: relative; z-index: 1; min-width: 0; }
.cover-copy h1 { font-size: 52px; line-height: 1.15; letter-spacing: -0.025em; margin: var(--sp-2) 0 var(--sp-4); }
.cover-copy h1 > span { font-size: 32px; font-weight: 400; color: var(--secondary); }
.cover-copy > p:last-of-type { font-size: 16px; color: var(--secondary); }
.cover-divider { padding: 0 var(--sp-2); color: var(--muted); }
.cover-origins { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.cover-origins > span {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--line);
  background: var(--subtle);
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
}
.cover-origins .avatar { width: 28px; height: 28px; font-size: 13px; }
.cover-map { width: 34%; max-width: 360px; flex-shrink: 0; align-self: center; }
.cover-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.cover-map path { fill: none; stroke-width: 2; stroke: var(--blue); }
.cover-map .route-two { stroke: var(--teal); }
.cover-map .route-three { stroke: var(--warm); }
.cover-map circle { fill: var(--blue); }
.cover-map .destination-halo { fill: rgba(21, 117, 106, 0.1); stroke: rgba(21, 117, 106, 0.28); }
.cover-map .destination-dot { fill: var(--teal); }
.cover-map text { font: 500 13px var(--body); fill: var(--teal); }
.route-caption { font-size: 14px; color: var(--muted); display: block; text-align: center; margin-top: var(--sp-2); }

.journey-progress {
  list-style: none;
  margin: var(--sp-8) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.journey-progress li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
  font-size: 15px;
  color: var(--muted);
}
.journey-progress li::after { content: ''; height: 1px; background: var(--line-strong); flex: 1; margin: 0 var(--sp-3); }
.journey-progress li:last-child::after { display: none; }
.journey-progress li > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  font: 600 13px var(--data);
  flex-shrink: 0;
}
.journey-progress strong { font-weight: 500; white-space: nowrap; }
.journey-progress .done { color: var(--teal); }
.journey-progress .done > span { background: var(--teal-soft); border-color: var(--teal-border); }
.journey-progress .current { color: var(--blue); }
.journey-progress .current > span { background: var(--blue); color: var(--white); border-color: var(--blue); }

.next-action {
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  padding: var(--sp-6);
  border-radius: var(--r-panel);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-5);
  margin: 0 0 var(--sp-8);
}
.next-action .action-symbol {
  height: 44px;
  width: 44px;
  border-radius: var(--r-ctrl);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.next-action h2 { font-size: 21px; margin: 4px 0 6px; }
.next-action p { font-size: 15px; line-height: 1.7; color: var(--secondary); max-width: 680px; }
.next-action .section-label { color: var(--blue); margin-bottom: 2px; }
.next-action.good { background: var(--teal-soft); border-color: var(--teal-border); }
.next-action.good .section-label, .next-action.good .action-symbol { color: var(--teal); }
.next-action.warm { background: var(--warm-soft); border-color: var(--warm-border); }
.next-action.warm .section-label, .next-action.warm .action-symbol { color: var(--warm); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr); gap: var(--sp-8); align-items: start; }
.companions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.companion { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--subtle); min-width: 0; }
.companion:last-child:nth-child(odd) { grid-column: 1 / -1; }
.companion-person { display: flex; gap: var(--sp-3); align-items: center; }
.companion-person > div { min-width: 0; flex: 1; }
.companion-person strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.companion-person strong small { font-size: 14px; color: var(--blue); margin-left: 6px; font-weight: 500; }
.companion-person > div > span { display: block; font-size: 14px; color: var(--muted); }
.member-dot { width: 9px; height: 9px; flex-shrink: 0; background: #bdcbd4; border-radius: 50%; }
.member-dot.confirmed { background: var(--teal); }
.companion-details { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-3); }
.companion-details > span { font-size: 14px; color: var(--muted); }
.companion-details strong { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; color: var(--ink); }
.companion-note { font-size: 14px; color: var(--secondary); line-height: 1.65; }
.companion .text { font-size: 15px; margin-top: var(--sp-2); padding: 0; min-height: 36px; }
.panel-bottom { border-top: 1px solid var(--line); margin-top: var(--sp-5); padding-top: var(--sp-4); display: flex; justify-content: flex-end; }

.agreement-card dl { padding: 0; margin: 0; }
.agreement-card dl > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.agreement-card dt { font-size: 15px; color: var(--muted); white-space: nowrap; }
.agreement-card dd { font-size: 15px; font-weight: 500; text-align: right; margin: 0; }
.overview-price { padding: var(--sp-5) 0 var(--sp-4); }
.overview-price > span, .overview-price small { display: block; font-size: 14px; color: var(--muted); }
.overview-price strong { font: 600 32px/1.2 var(--display); display: block; margin: 6px 0; }

.wish-preview > div { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.wish-preview > div > div { flex: 1; min-width: 0; }
.wish-preview strong { font-size: 16px; font-weight: 600; }
.wish-preview p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.wish-dot { height: 9px; width: 9px; flex-shrink: 0; background: var(--teal); border-radius: 50%; }
.quiet-empty { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; }
.quiet-empty > span { height: 48px; width: 48px; display: grid; place-items: center; border-radius: var(--r-card); background: var(--raised); color: var(--teal); flex-shrink: 0; }
.quiet-empty p { font-size: 15px; line-height: 1.7; color: var(--secondary); flex: 1; }

/* ==========================================================================
   8. AI Itinerary Route Map & Clear Daily Schedule (NEW)
   ========================================================================== */
.ai-route-panel { border-color: var(--teal-border); }
.ai-route-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.ai-route-header h2 { font-size: 28px; margin-bottom: 4px; }
.ai-route-header .caption { margin: 0; }

.ai-style-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--raised);
  border-radius: var(--r-ctrl);
}
.ai-style-tabs button {
  min-height: 40px;
  padding: 0 var(--sp-4);
  font-size: 15px;
  border-radius: var(--r-tag);
  color: var(--secondary);
}
.ai-style-tabs button.selected {
  background: var(--surface);
  color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.ai-map-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--subtle);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.ai-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--secondary);
}
.ai-map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ai-map-city { margin-left: auto; font-weight: 600; color: var(--ink); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.hub { background: var(--teal); }
.legend-dot.spot { background: var(--blue); }
.legend-dot.food { background: var(--warm); }
.legend-dot.end { background: var(--secondary); }

.ai-map-canvas { padding: var(--sp-4); background: #f7fafc; overflow-x: auto; }
.ai-map-canvas svg { width: 100%; min-width: 680px; height: auto; display: block; }
.ai-map-node { cursor: pointer; }
.ai-map-node:focus-visible { outline: none; }
.ai-map-node:hover circle { stroke-width: 3.5; }

.ai-map-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ai-map-focus-badge {
  font: 600 14px/1.3 var(--data);
  padding: 6px 12px;
  border-radius: var(--r-tag);
  background: var(--blue-soft);
  color: var(--blue);
  white-space: nowrap;
}
.ai-map-focus-body { flex: 1; min-width: 240px; }
.ai-map-focus-body strong { font-size: 18px; color: var(--ink); margin-right: var(--sp-3); }
.ai-map-focus-body span { font-size: 14px; color: var(--teal); font-weight: 500; }
.ai-map-focus-body p { font-size: 15px; color: var(--secondary); margin-top: 4px; }

.ai-days-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.ai-day-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--subtle);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.ai-day-head { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.ai-day-num { font: 600 13px/1 var(--data); color: var(--teal); display: block; margin-bottom: 4px; }
.ai-day-head h3 { font-size: 18px; }
.ai-day-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }

.ai-stop-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  text-align: left;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: var(--surface);
}
.ai-stop-btn:hover { border-color: var(--blue-border); background: #fafcff; }
.ai-stop-btn.is-active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.ai-stop-time { font: 600 14px/1.6 var(--data); color: var(--blue); }
.ai-stop-info strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ai-stop-info small { display: block; font-size: 14px; color: var(--teal); margin: 3px 0 4px; font-weight: 400; }
.ai-stop-info p { font-size: 14px; color: var(--secondary); line-height: 1.6; font-weight: 400; }
.ai-wish-tag {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-left: 4px;
}

/* ==========================================================================
   9. Personal Desk, Team Wishes, Plans, Watch & Orders
   ========================================================================== */
.personal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin: 0 0 var(--sp-6); }
.personal-heading h1 { font-size: 34px; }
.personal-heading p:last-child { color: var(--secondary); font-size: 16px; margin-top: 6px; }
.personal-desk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); align-items: start; }
.personal-column { min-width: 0; }
.desk-switch { display: none; }

.help-organize { font-size: 15px; color: var(--secondary); margin: 0 0 var(--sp-4); }
.help-organize summary { cursor: pointer; padding: 8px 0; font-weight: 500; }
.member-editor-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.member-editor-tabs .selected { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

.profile-review { margin: var(--sp-5) 0; scroll-margin-top: 140px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-panel); }
.profile-review > summary { padding: var(--sp-5) var(--sp-6); font-size: 17px; font-weight: 600; cursor: pointer; }
.profile-review > summary span { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: var(--sp-3); }
.profile-review > .panel { border: 0; box-shadow: none; margin: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-panel) var(--r-panel); }

#shared-brief {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + var(--subbar-h) + var(--sp-4));
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.shared-title { padding: var(--sp-6); border-bottom: 1px solid var(--line); background: var(--subtle); }
.shared-title h2 { font-size: 26px; }
.shared-title p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.shared-people { padding: 0 var(--sp-6); }
.shared-people article { display: flex; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.shared-people article > div { min-width: 0; }
.shared-people strong { font-size: 16px; display: block; }
.shared-people span:not(.avatar) { font-size: 14px; color: var(--teal); font-weight: 500; }
.shared-people p { font-size: 14px; color: var(--secondary); line-height: 1.65; margin-top: 4px; overflow-wrap: anywhere; }
.shared-next { padding: var(--sp-6); }
.shared-next h3 { font-size: 17px; }
.shared-next p { font-size: 15px; color: var(--secondary); line-height: 1.65; margin: 6px 0 var(--sp-4); }
.shared-privacy { font-size: 14px; padding: 0 var(--sp-6) var(--sp-6); color: var(--muted); line-height: 1.65; }

.delegation-box { padding: var(--sp-6); background: var(--teal-soft); border: 1px solid var(--teal-border); border-radius: var(--r-card); margin: var(--sp-6) 0; }
.delegation-box h3 { margin-bottom: var(--sp-3); }
.invite-row { border-top: 1px solid var(--line); padding: var(--sp-5) 0; }
.invite-row strong { font-size: 16px; display: block; margin-bottom: var(--sp-2); }
.invite-row input { font: 14px var(--data); color: var(--secondary); background: var(--subtle); }

.idea-tabs { display: none; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.facts span { font-size: 14px; color: var(--muted); }
.facts strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 4px; }

.idea { border-top: 1px solid var(--line); padding: var(--sp-6) 0; }
.vote-summary { display: flex; flex-wrap: wrap; gap: 8px var(--sp-5); font-size: 14px; color: var(--secondary); margin: var(--sp-3) 0; }
.vote-buttons { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.vote-buttons button { border: 1px solid var(--line-strong); font-size: 15px; min-height: 44px; padding: 0 16px; background: var(--surface); }
.vote-buttons .selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.activity-ready { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }

/* Plans Grid */
.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin: var(--sp-6) 0 var(--sp-8); }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.plan-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.plan-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), var(--shadow-sm); background: #fafcff; }
.plan-card h2 { font-size: 21px; }
.plan-card > p { font-size: 15px; color: var(--secondary); margin: 8px 0 var(--sp-5); }
.plan-card > small { font-size: 14px; color: var(--muted); margin: var(--sp-4) 0; }
.plan-card > button { margin-top: auto; }

.option-total { display: flex; flex-direction: column; gap: 4px; margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.option-total > span { font-size: 14px; color: var(--muted); }
.option-total > strong { font: 600 32px/1.2 var(--display); }

.plan-costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.plan-costs span, .plan-costs small { display: block; font-size: 14px; color: var(--muted); }
.plan-costs strong { font: 600 21px/1.25 var(--display); display: block; margin: 2px 0; }
.over { color: var(--warm); }

.wish-line { list-style: none; margin: var(--sp-4) 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.wish-line li { display: flex; gap: 8px; align-items: baseline; }
.wish-line b { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--teal-soft); color: var(--teal); }
.wish-line li.pending { color: var(--warm); }
.wish-line li.pending b { background: var(--warm-soft); color: var(--warm); }

.confirmation-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-bottom: var(--sp-5); }
.journeys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.journey { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--subtle); }
.journey:last-child:nth-child(odd) { grid-column: 1 / -1; }
.journey h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: 17px; }
.journey h3 > span:last-child:not(.avatar) { margin-left: auto; font: 600 20px var(--display); }

.flight { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-2); }
.flight-kind { font-size: 14px; font-weight: 500; color: var(--muted); width: 22px; }
.flight > div:not(.flight-track) { min-width: 76px; }
.flight strong { font: 600 22px/1.2 var(--display); display: block; }
.flight small { font-size: 14px; color: var(--muted); display: block; margin-top: 2px; }
.flight-track { flex: 1; max-width: 160px; text-align: center; }
.flight-track span { font-size: 13px; color: var(--muted); }
.flight-track i { display: block; height: 1px; background: var(--line-strong); margin: 5px 0; }
.flight > b { font: 600 17px var(--display); margin-left: auto; }

.hotel-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--line); margin-top: var(--sp-5); }
.hotel-row > strong { font: 600 26px var(--display); }
.hotel-row p { font-size: 15px; color: var(--secondary); margin-top: 4px; }

.meeting { display: grid; grid-template-columns: 1fr 1fr; background: var(--subtle); border: 1px solid var(--line); padding: var(--sp-5); border-radius: var(--r-card); gap: var(--sp-5); }
.meeting span { font-size: 14px; color: var(--muted); }
.meeting strong { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; }

.cash-summary { margin: var(--sp-6) 0; padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--subtle); }
.cash-summary > h3 { margin-bottom: var(--sp-4); }
.cash-summary > div { display: grid; grid-template-columns: 110px 1fr 1.4fr 1fr; gap: var(--sp-3); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cash-summary > div:last-child { border-bottom: 0; }

.itinerary { border-top: 1px solid var(--line); margin-top: var(--sp-6); padding-top: var(--sp-5); }
summary { cursor: pointer; font-size: 16px; font-weight: 500; }
.day { border-left: 2px solid var(--teal-border); padding-left: var(--sp-4); margin: var(--sp-4) 0; }
.day > strong { font-size: 16px; display: block; margin-bottom: 4px; }
.day p { font-size: 15px; color: var(--secondary); }
.day small { font-size: 14px; color: var(--muted); }

/* Watch & Orders */
.agreement { padding: var(--sp-5); background: var(--subtle); border: 1px solid var(--line); border-radius: var(--r-card); margin-top: var(--sp-5); }
.watch-heading { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.watch-orbit { height: 52px; width: 52px; border-radius: var(--r-card); display: grid; place-items: center; background: var(--teal-soft); border: 1px solid var(--teal-border); color: var(--teal); flex-shrink: 0; }
.watch-orbit .icon { height: 22px; width: 22px; }
.watch-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.watch-facts span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.watch-facts strong { font-size: 17px; font-weight: 600; }
.watch-costs { margin: var(--sp-6) 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.watch-costs strong { font-size: 26px; }
.scenario summary { display: flex; align-items: center; justify-content: space-between; }
.scenario summary span { font-size: 14px; color: var(--muted); font-weight: 400; }
.scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }

.events { list-style: none; padding: 0; margin: 0 0 0 6px; }
.events li { border-left: 1px solid var(--line-strong); padding: 0 0 var(--sp-5) var(--sp-5); position: relative; }
.events li:last-child { padding-bottom: 0; }
.events li::before { content: ""; height: 9px; width: 9px; background: #a8b9c5; border-radius: 50%; position: absolute; left: -5px; top: 6px; border: 2px solid var(--surface); box-sizing: content-box; }
.events li.ready::before { background: var(--teal); }
.events li.decision::before, .events li.warning::before { background: var(--warm); }
.events time { font: 14px var(--data); color: var(--muted); }
.events p { font-size: 15px; color: var(--secondary); margin-top: 4px; }

.repair-banner { padding: var(--sp-6); border: 1px solid var(--teal-border); border-radius: var(--r-panel); background: var(--teal-soft); margin-bottom: var(--sp-8); }
.repair-banner p { margin: var(--sp-2) 0 var(--sp-5); font-size: 16px; color: var(--secondary); }
.order-item { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.kept-order { border-left: 3px solid var(--teal); padding-left: var(--sp-5) !important; }
.order-title { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.order-symbol { display: grid; place-items: center; background: var(--raised); border-radius: var(--r-ctrl); width: 42px; height: 42px; color: var(--secondary); flex-shrink: 0; }
.order-title > div { flex: 1; min-width: 0; }
.order-title h3 { font-size: 17px; }
.order-title p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.order-title > strong { font: 600 24px var(--display); }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-6) 0 var(--sp-2); }
.order-total strong { font: 600 32px var(--display); }
.booking-sequence { padding: var(--sp-3) 0 var(--sp-5); border-bottom: 1px solid var(--line); font-size: 15px; }
.booking-sequence p { margin-top: 6px; color: var(--secondary); }

.ai-actions { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin: var(--sp-4) 0; }
.quote-preview, .source-evidence { margin: var(--sp-4) 0; font-size: 15px; line-height: 1.75; }
.quote-preview summary, .source-evidence summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.source-evidence { background: var(--subtle); padding: var(--sp-5); border-radius: var(--r-card); border: 1px solid var(--line); }
.source-row { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.source-row a { color: var(--blue); text-decoration: underline; }

.member-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.member-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--subtle);
  min-width: 0;
}
.member-row > div { min-width: 0; flex: 1; }
.member-row strong { font-size: 16px; font-weight: 600; display: block; }
.member-row span:not(.avatar) { font-size: 14px; color: var(--muted); }
.member-row > .icon { color: var(--teal); }

.empty { text-align: center; padding: var(--sp-12) var(--sp-6); color: var(--secondary); }
.empty > .icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: var(--sp-4); }
.empty h2, .empty h3 { margin-bottom: var(--sp-2); }
.empty p { font-size: 16px; max-width: 500px; margin: 0 auto var(--sp-6); }
.join-wrap { max-width: 560px; margin: var(--sp-12) auto; padding: 0 var(--sp-5); }
.join-wrap form { margin-top: var(--sp-5); }
.guide { max-width: 840px; margin: var(--sp-10) auto; padding: 0 var(--sp-6); }
.guide h1 { margin: var(--sp-4) 0; }
.guide section { margin: var(--sp-8) 0; }
.guide p, .guide li { font-size: 16px; line-height: 1.85; color: var(--secondary); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  color: var(--muted);
  font-size: 14px;
  padding: var(--sp-6) 0 var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-8);
}
.footer .offline { color: var(--warm); }
.loading { margin: 80px auto; text-align: center; color: var(--muted); font-size: 16px; }

#toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 100;
  padding: 14px 24px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--r-card);
  max-width: calc(100vw - 32px);
  width: max-content;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 0; width: min(480px, calc(100vw - 32px)); color: var(--ink); box-shadow: var(--shadow-md); }
dialog::backdrop { background: rgba(22, 41, 54, 0.42); backdrop-filter: blur(4px); }
.dialog-content { padding: var(--sp-7); }
.dialog-content h2 { font-size: 22px; }
.dialog-content p { font-size: 15px; line-height: 1.75; color: var(--secondary); margin: var(--sp-4) 0 var(--sp-6); }
.dialog-content .inline-actions { justify-content: flex-end; }
.busy button[type=submit] { opacity: 0.6; pointer-events: none; }

.mobile-nav { display: none; }

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .overview-grid, .personal-desk, .conversation-landing { grid-template-columns: 1fr; gap: var(--sp-8); }
  #shared-brief { position: static; }
  .plan-options, .sample-grid, .ai-days-grid, .member-list { grid-template-columns: 1fr; }
  .journeys { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .topbar { padding: 0 var(--sp-4); height: 64px; }
  .brand-wordmark { font-size: 22px; }
  .top-divider, .top-trip-sub, .top-note, .identity strong, .top-members { display: none; }
  .top-trip-dest { font-size: 18px; }
  .workspace-subbar-inner { padding: 0 var(--sp-4); min-height: 48px; }
  .subbar-right { display: none; }
  .app-layout { padding: var(--sp-5) var(--sp-4) 96px; }
  .panel { padding: var(--sp-5); margin-bottom: var(--sp-6); }
  .trip-cover { flex-direction: column; padding: var(--sp-6); }
  .cover-map { width: 100%; max-width: 300px; }
  .cover-copy h1 { font-size: 38px; }
  .cover-copy h1 > span { font-size: 24px; }
  .journey-progress li { flex-direction: column; text-align: center; gap: 6px; font-size: 13px; }
  .journey-progress li::after { display: none; }
  .next-action { grid-template-columns: 40px minmax(0, 1fr); padding: var(--sp-5); }
  .next-action .primary { grid-column: 1 / -1; width: 100%; }
  .companions, .form-grid, .facts, .meeting, .watch-facts, .watch-costs { grid-template-columns: 1fr; }
  .cash-summary > div { grid-template-columns: 1fr 1fr; }
  .cash-summary > div > strong { grid-column: 1 / -1; }
  .conversation-landing, .sample-shelf { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .desk-switch { display: flex; gap: 4px; background: var(--raised); padding: 4px; border-radius: var(--r-ctrl); margin-bottom: var(--sp-5); }
  .desk-switch button { flex: 1; min-height: 42px; font-size: 15px; color: var(--secondary); }
  .desk-switch button.selected { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }
  .personal-desk[data-pane=chat] > #shared-brief { display: none; }
  .personal-desk[data-pane=shared] > .personal-column { display: none; }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
    min-height: 52px;
    font-size: 12px;
    color: var(--secondary);
    border-radius: var(--r-ctrl);
  }
  .mobile-nav button.active { color: var(--blue); background: var(--blue-soft); font-weight: 600; }
  #toast { bottom: 84px; }
  .footer, .welcome-footer { flex-direction: column; text-align: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   11. Direct Minimal Workspace, Secondary Bar, Compact Progress & Share Strip
   ========================================================================== */
.sub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--raised);
  border-radius: var(--r-ctrl);
  margin-bottom: var(--sp-6);
}
.sub-tabs button {
  min-height: 40px;
  padding: 0 var(--sp-5);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-tag);
  color: var(--secondary);
}
.sub-tabs button:hover { color: var(--ink); }
.sub-tabs button.selected {
  background: var(--surface);
  color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.create-workspace {
  max-width: 680px;
  margin: var(--sp-10) auto var(--sp-12);
  padding: 0 var(--sp-6);
}
.create-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}
.create-card h1 { font-size: 38px; margin-bottom: var(--sp-2); }
.create-card > .caption { margin-bottom: var(--sp-6); }
.dest-input-lg { font-size: 20px !important; font-weight: 600; min-height: 54px !important; }
.dest-picks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-6);
}
.dest-picks button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--subtle);
  color: var(--secondary);
}
.dest-picks button:hover, .dest-picks button.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.progress-track {
  flex: 1;
  height: 8px;
  background: var(--raised);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 300ms var(--ease);
}
.progress-label { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.progress-step-text { font-size: 14px; color: var(--muted); white-space: nowrap; }

.share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-card);
}
.share-strip strong { font-size: 16px; color: var(--ink); display: block; }
.share-strip span { font-size: 14px; color: var(--secondary); }

/* ==========================================================================
   12. Rounded Harmonious UI (圆满柔和几何) & Fluid Modern Animations
   ========================================================================== */
:root {
  --r-tag: 999px;
  --r-ctrl: 14px;
  --r-card: 18px;
  --r-panel: 24px;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Softer, more sculptural pill buttons & navigation */
.primary, .secondary, .top-nav button, .sub-tabs button, .ai-style-tabs button, .top-member-btn {
  border-radius: 999px;
}
.sub-tabs, .top-members, .ai-style-tabs {
  border-radius: 999px;
  padding: 5px;
}
.trip-cover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fb 100%);
  border-radius: var(--r-panel);
  align-items: center;
}
.create-card {
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
}

/* Circular Orbital Globe Medallion (圆满汇合图) */
.cover-orb {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  animation: orbPop 520ms var(--spring) both;
}
.cover-orb svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(22, 41, 54, 0.06));
}
.cover-orb .orb-spin-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbSpin 42s linear infinite;
}
.cover-orb .orb-arc-base {
  fill: none;
  stroke-width: 2;
  stroke-opacity: 0.2;
  stroke-linecap: round;
}
.cover-orb .orb-arc-flow {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  animation: routeFlow 2.4s linear infinite;
}
.cover-orb .orb-route {
  opacity: 0;
  animation: mapFadeIn 480ms var(--spring) forwards;
  animation-delay: var(--d, 0ms);
}
.cover-orb .orb-route:hover .orb-arc-base {
  stroke-opacity: 0.55;
  stroke-width: 2.8;
}
.cover-orb .dest-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: destRipple 3s var(--spring) infinite;
}

/* AI Itinerary map animated route dash */
.ai-map-canvas svg path[stroke-dasharray] {
  animation: routeFlow 3s linear infinite;
}

/* Choreographed fluid card & page transitions */
.main > *, .create-card {
  animation: cardRise 440ms var(--spring) both;
}
.main > *:nth-child(2) { animation-delay: 45ms; }
.main > *:nth-child(3) { animation-delay: 90ms; }
.main > *:nth-child(4) { animation-delay: 135ms; }
.main > *:nth-child(5) { animation-delay: 180ms; }

.panel, .plan-card, .companion, .ai-day-card, .progress-bar-wrap, .share-strip {
  transition: transform 240ms var(--spring), border-color 200ms var(--ease), box-shadow 240ms var(--spring);
}
.plan-card:hover, .companion:hover, .ai-day-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(22, 41, 54, 0.08);
}
button, .button {
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--spring), box-shadow 200ms var(--ease);
}
.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 82, 212, 0.22);
}
.primary:active:not(:disabled), .secondary:active:not(:disabled), .top-nav button:active, .sub-tabs button:active {
  transform: scale(0.97);
}
.dest-picks button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 82, 212, 0.12);
}

@keyframes routeFlow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes destRipple {
  0% { transform: scale(1); opacity: 0.55; }
  75% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
@keyframes mapFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .cover-orb { width: 240px; height: 240px; margin: 0 auto; }
}

/* ==========================================================================
   13. Scenic Backgrounds, Rich Hero Stage & Enlarged Budget / Time Focus
   ========================================================================== */
.hero-stage {
  min-height: calc(100dvh - var(--topbar-h));
  background:
    linear-gradient(100deg, rgba(246, 249, 251, 0.92) 0%, rgba(244, 248, 250, 0.72) 52%, rgba(235, 244, 244, 0.45) 100%),
    url('./assets/ink-hero-bg.svg') center / cover no-repeat;
  padding: var(--sp-10) var(--sp-6) var(--sp-12);
  display: flex;
  align-items: center;
}
.hero-stage-inner {
  width: 100%;
  max-width: var(--max-app);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-12);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.hero-copy h1 {
  font-size: clamp(44px, 4.8vw, 62px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.hero-copy h1 span { color: var(--teal); }
.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--secondary);
  max-width: 540px;
  margin-bottom: var(--sp-7);
}
.hero-highlights {
  display: grid;
  gap: var(--sp-3);
  max-width: 520px;
}
.hero-hl {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-4) var(--sp-5);
}
.hero-hl strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.hero-hl span { font-size: 14px; color: var(--secondary); }
.hero-recent {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hero-recent > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-recent > div { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero-recent a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero-recent a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.hero-stage .create-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(22, 41, 54, 0.1);
}
.hero-stage .create-card h2 { font-size: 28px; margin-bottom: 6px; }

/* Scenic Trip Overview Cover Banner */
.trip-cover {
  background:
    linear-gradient(92deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.36) 32%, rgba(255, 255, 255, 0.12) 66%, rgba(242, 249, 248, 0.32) 100%),
    url('./assets/ink-cover-bg.svg') center / cover no-repeat;
  border: 1px solid var(--line);
  padding: var(--sp-8) var(--sp-8);
}
.cover-copy h1 { font-size: 56px; line-height: 1.12; }
.cover-dates {
  font-size: 22px !important;
  font-weight: 600;
  color: var(--ink) !important;
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* 3 BIG KPI Cards (Dates / Budget / Progress) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: var(--sp-6) 0 var(--sp-8);
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.kpi-card > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.kpi-card > small { font-size: 14px; color: var(--secondary); line-height: 1.5; }
.kpi-date { font: 600 26px/1.25 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-amount { font: 700 38px/1.15 var(--display); color: var(--blue); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-count { font: 600 26px/1.25 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
.kpi-card .progress-track { margin-top: var(--sp-2); }

/* ENLARGED Budget Amounts & Dates across EVERY view */
.companion-details .val-date { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.companion-details .val-money { font-size: 24px; font-weight: 700; color: var(--blue); margin-top: 2px; font-variant-numeric: tabular-nums; }

.option-total > strong { font-size: 40px !important; color: var(--ink); letter-spacing: -0.02em; }
.plan-costs strong { font-size: 28px !important; font-weight: 700; color: var(--blue); }
.plan-costs strong.over { color: var(--warm); }
.plan-card > p { font-size: 17px !important; font-weight: 500; color: var(--ink); }

.overview-price strong { font-size: 38px !important; color: var(--blue); }
.flight strong { font-size: 26px !important; }
.flight > b { font-size: 20px !important; color: var(--blue); }
.hotel-row > strong { font-size: 32px !important; color: var(--blue); }
.meeting strong { font-size: 21px !important; }
.order-title > strong { font-size: 28px !important; color: var(--blue); }
.order-total strong { font-size: 38px !important; color: var(--blue); }
.watch-costs strong { font-size: 32px !important; color: var(--blue); }

@media (max-width: 1024px) {
  .hero-stage-inner, .kpi-strip { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero-stage { padding: var(--sp-6) var(--sp-4) var(--sp-8); }
  .cover-copy h1 { font-size: 40px; }
  .cover-dates { font-size: 18px !important; }
  .kpi-amount, .option-total > strong, .order-total strong { font-size: 32px !important; }
}

/* ==========================================================================
   14. Ink-Wash Converging Route Art (水墨山水汇合图)
   ========================================================================== */
.cover-ink-map {
  width: 440px;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid rgba(22, 41, 54, 0.08);
  background: #fbfdfd;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 41, 54, 0.06);
  animation: orbPop 480ms var(--spring) both;
}
.hero-copy .cover-ink-map {
  width: 460px;
  margin-top: var(--sp-6);
}
.cover-ink-map svg { width: 100%; height: auto; display: block; }
.cover-ink-map .ink-line-base {
  fill: none;
  stroke-width: 2;
  stroke-opacity: 0.25;
  stroke-linecap: round;
}
.cover-ink-map .ink-line-flow {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  animation: routeFlow 2.5s linear infinite;
}
.cover-ink-map .ink-route-g {
  opacity: 0;
  animation: mapFadeIn 450ms var(--spring) forwards;
  animation-delay: var(--d, 0ms);
}
.cover-ink-map .ink-route-g:hover .ink-line-base {
  stroke-opacity: 0.6;
  stroke-width: 2.8;
}
.cover-ink-map .dest-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: destRipple 3s var(--spring) infinite;
}
.section-head .eyebrow:empty { display: none; }
.section-head { margin-bottom: var(--sp-5); }

@media (max-width: 800px) {
  .cover-ink-map, .hero-copy .cover-ink-map { width: 100%; }
}

/* ==========================================================================
   15. Holistic Visual Balance, Tactile Depth & Full-App Consistency
   ========================================================================== */
html {
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 117, 106, 0.05), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(45, 82, 212, 0.045), transparent 34%),
    #eef3f6;
}
.panel, .kpi-card, .plan-card, .create-card, #shared-brief {
  box-shadow: 0 2px 6px rgba(22, 41, 54, 0.035), 0 12px 32px rgba(22, 41, 54, 0.045);
}

/* Home Hero Preview Strip (visual self-explanation without text clutter) */
.hero-copy .cover-ink-map {
  width: 520px;
  max-width: 100%;
  margin: var(--sp-5) 0 var(--sp-5);
}
.hero-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  max-width: 520px;
}
.hp-item {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--sp-4);
}
.hp-item span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hp-item strong { font: 700 20px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-item:nth-child(2) strong { color: var(--blue); }
.hp-item:nth-child(3) strong { color: var(--teal); }

/* Visual Vote Progress Bar on Wishes */
.wish-bar {
  height: 6px;
  background: var(--raised);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 6px;
  max-width: 240px;
}
.wish-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 999px;
  transition: width 320ms var(--spring);
}

/* Team 2-Column Balanced Workspace */
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: var(--sp-8);
  align-items: start;
}
.idea-quick-form {
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.idea-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.compact-dl { margin: 0; }
.compact-dl > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compact-dl dt { color: var(--muted); }
.compact-dl dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Purposeful Action Hero & 3-Step Flow Cards (replacing hollow empty states) */
.action-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f1f6f9 100%);
  border-color: var(--blue-border);
}
.action-hero-card h2 { font-size: 24px; margin-bottom: 6px; }
.action-hero-card p { font-size: 15px; color: var(--secondary); }

.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none !important;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: 0 2px 6px rgba(22, 41, 54, 0.035), 0 12px 32px rgba(22, 41, 54, 0.045);
}
.flow-step b { font: 600 13px/1 var(--data); color: var(--teal); margin-bottom: 4px; }
.flow-step strong { font-size: 20px; color: var(--ink); }
.flow-step span { font-size: 15px; color: var(--secondary); margin-bottom: var(--sp-4); }
.flow-step button { margin-top: auto; width: 100%; }

@media (max-width: 1024px) {
  .team-grid, .flow-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-preview-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   16. Clean Layout Polish: Overview 3-Day Route Preview & Compact Chat Bar
   ========================================================================== */
.route-preview-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}
.rp-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: var(--sp-4);
  min-height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--subtle);
}
.rp-day:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateY(-2px);
}
.rp-day b { font: 600 12px/1 var(--data); color: var(--teal); }
.rp-day strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.rp-day span { font-size: 13px; color: var(--secondary); font-weight: 400; }

.conversation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.conversation-heading .chat-checklist {
  border: 0;
  padding: 0;
  margin: 0;
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}
.conversation-examples { margin: 0; }
.shared-money {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--blue) !important;
  font-variant-numeric: tabular-nums;
}
.profile-card { margin-top: var(--sp-5); }

@media (max-width: 720px) {
  .route-preview-days { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. Tighter Proportions (1060px cap), Unified Summary Strip & No-Wrap Dates
   ========================================================================== */
:root {
  --max-app: 1060px;
}
.panel {
  padding: 22px 24px;
  margin-bottom: 20px;
}
.trip-cover {
  padding: 28px 30px;
  gap: 24px;
}
.cover-ink-map { width: 380px; }

/* Unified Compact Horizontal Summary Strip (replaces 3 wide empty KPI boxes) */
.summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  margin: 20px 0 24px;
  box-shadow: 0 2px 6px rgba(22, 41, 54, 0.035), 0 10px 26px rgba(22, 41, 54, 0.04);
  overflow: hidden;
}
.sum-cell {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.sum-cell + .sum-cell {
  border-left: 1px solid var(--line);
}
.sum-cell > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.sum-cell > .text {
  align-self: flex-start;
  padding: 0;
  min-height: 32px;
  font-size: 16px;
  font-weight: 600;
}
.sum-date {
  font: 600 24px/1.2 var(--display);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sum-money {
  font: 700 32px/1.15 var(--display);
  color: var(--blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sum-prog {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sum-prog strong {
  font: 600 22px/1 var(--display);
  color: var(--teal);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sum-prog .progress-track { flex: 1; margin: 0; }

/* Fix companion card date wrapping — strictly single-line nowrap! */
.overview-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 24px;
}
.companion { padding: 18px 20px; }
.companion-details {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 12px;
  margin: 14px 0 10px;
}
.companion-details .val-date {
  font-size: 17px !important;
  white-space: nowrap;
}
.companion-details .val-money {
  font-size: 21px !important;
  white-space: nowrap;
}
.handoff-val {
  font: 700 22px/1 var(--display);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  .summary-strip { grid-template-columns: 1fr; }
  .sum-cell + .sum-cell { border-left: 0; border-top: 1px solid var(--line); }
  .cover-ink-map { width: 100%; }
}

/* ==========================================================================
   18. Ambient Full-Page Ink Backdrop & Equal-Height Balanced Grids (1-10)
   ========================================================================== */
html {
  background: #edf3f5 url('./assets/page-ink-bg.svg') center bottom / cover no-repeat fixed;
}

.overview-grid {
  align-items: stretch;
  margin-bottom: 20px;
}
.overview-primary, .team-primary {
  display: flex;
  flex-direction: column;
}
.overview-primary > .panel, .team-primary > .panel {
  flex: 1;
  margin-bottom: 0;
}
.overview-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.overview-aside > .panel {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.overview-aside > .panel:first-child {
  flex: 1;
}
.overview-aside .agreement-card > button {
  margin-top: auto;
}
.team-grid {
  align-items: stretch;
}
.team-aside > .panel {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.team-aside .panel-bottom {
  margin-top: auto;
}

.route-preview-panel {
  margin-top: 4px;
}

.quick-wish-section {
  margin-top: 4px;
}
.quick-wish-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.quick-wish-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-wish-bar button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--subtle);
  color: var(--ink);
}
.quick-wish-bar button:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.shared-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shared-title button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}
.shared-people {
  max-height: 62vh;
  overflow-y: auto;
}

/* ==========================================================================
   19. Enhanced Entrance Choreography & Clean My-First Plan Detail
   ========================================================================== */
@keyframes heroGlide {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes panelGlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * {
  animation: heroGlide 620ms var(--spring) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.hero-copy > *:nth-child(3) { animation-delay: 240ms; }
.hero-stage .create-card {
  animation: heroGlide 680ms var(--spring) 120ms both;
}
.main > * {
  animation: panelGlide 500ms var(--spring) both;
}

/* Plan card clean hierarchy */
.option-total > small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* My-First Journey & Budget Split */
.journey-mine {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
  border-color: var(--blue-border);
}
.journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.journey-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.journey-head h3 small {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}
.journey-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey-head-right > strong {
  font: 700 22px/1 var(--display);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.journey-head-right > .text {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.budget-split {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 4px;
}
.bs-item {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
}
.bs-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bs-item strong {
  font: 700 22px/1.2 var(--display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bs-item.is-remain {
  background: var(--teal-soft);
  border-color: var(--teal-border);
}
.bs-item.is-remain strong { color: var(--teal); }
.bs-item.is-over {
  background: var(--warm-soft);
  border-color: var(--warm-border);
}
.bs-item.is-over strong { color: var(--warm); }

/* Hotel Icon Badge */
.hotel-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hotel-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hotel-badge .icon { width: 22px; height: 22px; }

/* Concise 3-number Cost Overview Strip */
.cost-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
  margin-top: 12px;
  border-radius: var(--r-card);
  background: var(--subtle);
  border: 1px solid var(--line);
}
.cost-overview-strip span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.cost-overview-strip strong {
  font: 700 24px/1.25 var(--display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cost-overview-strip > div:first-child strong { color: var(--blue); }

/* Collapsible Others Toggle */
.others-toggle {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.others-toggle > summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 6px 0;
}
.others-toggle .journeys {
  margin-top: 14px;
}

@media (max-width: 800px) {
  .budget-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-overview-strip { grid-template-columns: 1fr; }
}
