:root {
  color-scheme: light;
  --forest: #1f654a;
  --forest-dark: #164733;
  --mint: #dff1e7;
  --paper: #ffffff;
  --canvas: #f4f8f5;
  --ink: #173b2d;
  --muted: #68786f;
  --line: #dfe8e3;
  --danger: #a94d43;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--canvas); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.page-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
.home-body { background: linear-gradient(180deg, #eef8f2 0%, #f9faf9 100%); }
.home-shell { display: grid; align-items: center; }
.hero-card { text-align: center; }
.eyebrow, .step-label { display: inline-block; color: var(--forest); font-size: 12px; font-weight: 750; letter-spacing: .15em; }
.eyebrow { padding: 7px 13px; border-radius: 999px; background: var(--mint); }
.hero-card h1 { margin: 20px 0 0; font-size: clamp(38px, 10.5vw, 58px); line-height: 1.16; letter-spacing: -.04em; }
.lead { max-width: 480px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.travel-visual { position: relative; height: min(42vh, 320px); min-height: 220px; margin: 28px 0 26px; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, #ccebdd, #edf7f1); }
.visual-sun { position: absolute; top: 38px; right: 15%; width: 62px; height: 62px; border-radius: 50%; background: #ffd77b; }
.visual-mountain { position: absolute; bottom: -80px; width: 280px; height: 250px; border-radius: 34px; transform: rotate(45deg); }
.visual-mountain-back { right: -30px; background: #81bca2; }
.visual-mountain-front { left: -60px; bottom: -120px; width: 350px; height: 310px; background: #3e8668; }
.visual-route { position: absolute; left: 35%; bottom: 44px; width: 44%; height: 82px; border-top: 3px dashed rgba(255,255,255,.9); border-radius: 50%; transform: rotate(-10deg); }
.visual-pin { position: absolute; top: 42%; right: 18%; width: 38px; height: 38px; border: 6px solid #fff; border-radius: 50% 50% 50% 0; background: #ed7864; transform: rotate(-45deg); box-shadow: 0 8px 22px rgba(32,73,56,.22); }
.primary-button, .secondary-button { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; font-weight: 750; }
.primary-button { border: 0; color: #fff; background: var(--forest); box-shadow: 0 10px 28px rgba(31,101,74,.22); cursor: pointer; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.micro-copy { margin: 14px 0 0; color: #88948f; font-size: 12px; }
.text-button { margin-top: 16px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.danger { color: var(--danger); }
.status-message { min-height: 22px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.site-filing-footer { margin: 22px auto 8px; color: #87958e; font-size: 12px; line-height: 1.5; text-align: center; }
.site-filing-footer a { color: inherit; text-decoration: none; }
.site-filing-footer a:focus-visible, .site-filing-footer a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.bottom-navigation { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 7px max(16px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -6px 22px rgba(31,70,54,.07); backdrop-filter: blur(14px); }
.bottom-nav-item { flex: 1; display: grid; place-items: center; gap: 2px; color: #809087; font-size: 20px; }.bottom-nav-item small { font-size: 11px; font-weight: 700; }.bottom-nav-item.active { color: var(--forest); }
.product-shell { padding-bottom: max(32px, env(safe-area-inset-bottom)); }.simple-header { margin-bottom: 22px; }.simple-header h1 { margin: 9px 0 6px; font-size: 30px; letter-spacing: -.03em; }.simple-header p { margin: 0; color: var(--muted); line-height: 1.6; }
.recent-trip { margin-top: 18px; padding: 17px; border: 1px solid #b9d8c4; border-radius: 18px; background: #f4fbf6; text-align: left; }.recent-trip h2 { margin: 9px 0 4px; font-size: 19px; }.recent-trip p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }.recent-trip .secondary-button { min-height: 44px; }
.trip-sections { display: grid; gap: 22px; }.trip-group { display: grid; gap: 10px; }.trip-group > h2 { margin: 0; font-size: 18px; }.trip-card { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 5px 16px rgba(31,70,54,.04); }.trip-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.trip-card h2 { margin: 11px 0 5px; font-size: 19px; }.trip-card p { margin: 4px 0; color: var(--muted); font-size: 14px; }.trip-card small { display: block; margin-top: 10px; color: #89958f; font-size: 12px; }.trip-status { padding: 4px 8px; border-radius: 999px; color: #557266; background: #eff4f1; font-size: 12px; font-weight: 750; }.trip-status.traveling { color: #17613f; background: #e4f5e9; }.trip-status.generating { color: #8a611c; background: #fff3dc; }.paid-tag { color: #89551d; background: #fff0d8; }.small-trip-action { width: auto; min-height: 42px; margin-top: 14px; padding: 8px 14px; font-size: 13px; }.empty-state { padding: 36px 20px; border: 1px dashed #bed8c7; border-radius: 18px; text-align: center; }.empty-state h2 { margin: 0; }.empty-state p { color: var(--muted); }.settings-list { display: grid; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.settings-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px; border-bottom:1px solid #edf1ee; }.settings-item:last-child { border-bottom:0; }.settings-item strong,.settings-item small { display:block; }.settings-item small { margin-top:4px; color:var(--muted); font-size:13px; }.settings-item b { color:var(--muted); font-size:22px; }.danger-button { color:var(--danger); }.account-placeholder { margin:18px 0 0; color:#829088; font-size:12px; line-height:1.6; }

.form-shell, .result-shell { padding-top: max(28px, env(safe-area-inset-top)); }
.page-header { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; margin-bottom: 28px; }
.page-header h1, .result-header h1 { margin: 6px 0 6px; font-size: 28px; letter-spacing: -.02em; }
.page-header p, .result-header p { margin: 0; color: var(--muted); line-height: 1.55; }
.back-link { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 21px; }
.travel-form { display: grid; gap: 20px; }
.field-grid { display: grid; gap: 14px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { color: #2b493d; font-size: 14px; font-weight: 700; }
.field b { color: #db6757; }
.field input, .field textarea, .field select, .manual-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field input { height: 52px; padding: 0 14px; }
.field select { height: 52px; padding: 0 12px; }
.field textarea, .manual-panel textarea { padding: 14px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus, .manual-panel textarea:focus { border-color: #5c9a7f; box-shadow: 0 0 0 3px rgba(92,154,127,.13); }
.field small { color: #89958f; font-size: 12px; text-align: right; }
.money-input { position: relative; }
.money-input > span { position: absolute; top: 16px; left: 14px; color: var(--muted); }
.money-input input { padding-left: 32px; }
.preference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preference-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preference-grid span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px; }
.preference-grid input:checked + span { border-color: #74a88f; color: var(--forest); background: var(--mint); font-weight: 700; }
.manual-panel { padding: 14px; border: 1px dashed #d39a4c; border-radius: 14px; background: #fff9ed; }
.manual-panel summary { cursor: pointer; color: #80591f; font-weight: 700; }
.manual-panel p { color: #806d50; font-size: 13px; line-height: 1.5; }
.manual-panel textarea { margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.error-message { min-height: 20px; margin: 0; color: #b4483e; font-size: 14px; line-height: 1.5; }
.loading-overlay { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(19,43,34,.46); backdrop-filter: blur(4px); }
.loading-card { width: min(100%, 280px); padding: 30px 22px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 24px 70px rgba(10,34,25,.2); }
.loading-card strong { display: block; margin-top: 16px; }
.loading-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid #cfe3d9; border-top-color: var(--forest); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-header { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; margin-bottom: 24px; }
.success-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 24px; }
.inline-loading { display: flex; min-height: 200px; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.plan-content { display: grid; gap: 16px; }
.plan-card { padding: 20px; border: 1px solid #e3ebe6; border-radius: 20px; background: #fff; box-shadow: 0 7px 24px rgba(31,70,54,.05); }
.section-title { margin: 0 0 16px; font-size: 21px; }
.summary { font-size: 15px; line-height: 1.75; }
.plain-list, .highlight-list, .warning-list { margin: 0; padding-left: 20px; color: #53675e; line-height: 1.75; }
.highlight-list li::marker { color: #e1a94e; }
.warning-list li::marker { color: #d16656; }
.day-card, .item-card { padding: 15px 0; border-top: 1px solid #edf1ee; }
.day-card:first-of-type, .item-card:first-of-type { padding-top: 0; border-top: 0; }
.day-title, .item-title { margin: 0 0 8px; font-size: 16px; }
.sub-title { margin: 16px 0 9px; color: #294b3d; font-size: 14px; }
.route-line, .meta-line, .item-card p, .plan-card > p { color: #566a60; line-height: 1.7; }
.meta-line { margin: 5px 0; font-size: 13px; }
.detail-line { margin: 5px 0; color: #64766d; font-size: 13px; line-height: 1.65; }
.detail-line strong { color: #385447; }
.tag { display: inline-block; margin: 2px 0 7px; padding: 4px 9px; border-radius: 999px; color: var(--forest); background: var(--mint); font-size: 12px; }
.callout { padding: 12px 14px; border-radius: 12px; background: #f1f7f3; }
.weather-card, .research-box { margin-top: 14px; padding: 13px 14px; border-radius: 14px; background: #f2f8f4; }
.weather-card .sub-title, .research-box .item-title { margin-top: 0; }
.transport-leg { margin-top: 10px; padding: 12px 13px; border: 1px solid #e4ece7; border-radius: 13px; background: #fbfcfb; }
.transport-leg > strong { display: block; margin-bottom: 7px; color: #294b3d; font-size: 14px; }
.price-note { margin: 8px 0 0 !important; color: #89958f !important; font-size: 12px; }
.feedback-controls { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0ed; }
.feedback-label, .feedback-status { color: #66736a; font-size: 13px; }
.feedback-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.feedback-button { padding: 6px 9px; border: 1px solid #cfe2d3; border-radius: 999px; color: #25613a; background: #f4faf5; font: inherit; font-size: 13px; }
.feedback-button:disabled { cursor: wait; opacity: .65; }
.calibration-field { padding-bottom: 4px; }
.calibration-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calibration-choices label { display: block; }
.calibration-choices span { display: block; padding: 12px 8px; border: 1px solid #d8e6dc; border-radius: 12px; color: #315743; background: #fff; text-align: center; }
.calibration-choices input { position: absolute; opacity: 0; }
.calibration-choices input:checked + span { border-color: #1f654a; color: #154b35; background: #eaf5ed; font-weight: 700; }
.quota-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.quota-actions .primary-button, .quota-actions .secondary-button { margin: 0; text-align: center; }
.match-tag { display: inline-block; margin: 8px 0 0; padding: 4px 8px; border-radius: 999px; color: #17613f; background: #e7f5eb; font-size: 12px; font-weight: 700; }
.match-reason { margin: 7px 0 0; color: #496354 !important; font-size: 13px; line-height: 1.55; }
.today-header { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-bottom: 22px; }
.today-header h1 { margin: 2px 0 5px; font-size: 28px; }
.today-header p { margin: 0; color: var(--muted); font-size: 14px; }
.back-link { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: #fff; text-decoration: none; }
.today-stop-title { margin: 5px 0 8px; color: var(--ink); font-size: 23px; line-height: 1.35; }
.today-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.today-action { min-height: 42px; padding: 7px; border: 1px solid #b8d7c6; border-radius: 11px; color: var(--forest); background: #f5faf7; font: inherit; font-size: 13px; font-weight: 700; }
.today-action.warning-action { border-color: #e7c586; color: #895f1d; background: #fff9eb; }
.today-action:disabled { cursor: wait; opacity: .6; }
.today-list { margin: 0; padding-left: 20px; color: #53675e; line-height: 2; }
.today-list-item strong { color: #294b3d; }
.adjustment-intro { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.day-select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; }
.adjustment-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.adjustment-button { min-height: 44px; padding: 8px 10px; border: 1px solid #b8d7c6; border-radius: 12px; color: var(--forest); background: #f5faf7; font-size: 13px; font-weight: 700; cursor: pointer; }
.adjustment-button:disabled { cursor: wait; opacity: .6; }
.adjustment-history { margin-top: 16px; padding: 14px; border: 1px solid #cfe4d7; border-radius: 14px; background: #f8fcf9; }
.adjusted-at { margin: -3px 0 10px; color: #718178; font-size: 12px; }
.adjustment-version { margin-top: 10px; padding: 12px; border-radius: 11px; }
.profile-evidence-card { margin-bottom: 18px; padding: 16px; border: 1px solid #d6e8dc; border-radius: 17px; background: #f3faf5; }
.profile-evidence-card .section-title { margin-bottom: 8px; font-size: 18px; }
.adjustment-version > strong { color: #294b3d; font-size: 14px; }
.original-version { background: #f3f5f4; }
.revised-version { background: #e7f5eb; }
.source-list { margin: 7px 0 0; padding-left: 18px; color: #63786e; font-size: 12px; line-height: 1.7; }
.source-link { color: var(--forest); text-decoration: underline; text-decoration-color: #9dc5b2; text-underline-offset: 2px; }
.budget-total { margin-top: 0; color: var(--forest) !important; font-size: 25px; font-weight: 800; }
.budget-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid #edf1ee; }
.budget-note { margin: 5px 0 12px; color: #839088 !important; font-size: 12px; }
.result-error { padding: 24px 0; text-align: center; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 10px; margin-top: 20px; }
.result-quick-upgrade { margin: 14px 0 4px; }
.result-quick-upgrade .secondary-button { min-height: 46px; }
.result-conversion { margin-top: 22px; padding: 24px; border: 1px solid #dfc8aa; border-radius: 18px; background: #fffaf1; }
.result-conversion h2 { margin: 8px 0; color: var(--ink); font-size: clamp(22px, 5.5vw, 28px); }
.result-conversion > p { margin: 0; color: var(--muted); line-height: 1.7; }
.result-conversion-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 18px; }
.result-conversion .text-button { display: block; margin: 12px auto 0; }
.result-conversion .status-message { min-height: 24px; margin-top: 10px; color: var(--forest); }
.shared-plan-header { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.shared-plan-header h1 { margin: 8px 0; }
.shared-plan-header p { margin: 0; color: var(--muted); line-height: 1.7; }
.shared-action { margin-top: 20px; padding: 20px; border: 1px solid #cbded3; border-radius: 18px; background: #f4faf6; }
.shared-action p { margin: 0 0 14px; color: var(--muted); }
.shared-action .primary-button { box-sizing: border-box; text-decoration: none; }
.privacy-note { color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.secondary-button { border: 1px solid var(--line); background: #fff; }
.paid-entry { margin-top: 12px; color: var(--forest); text-decoration: none; }
.plan-entry-grid { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.plan-entry-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan-entry-card h2 { margin: 0 0 7px; color: var(--ink); font-size: 20px; }
.plan-entry-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.plan-entry-card small { display: block; margin: 10px 0 13px; color: #486657; font-weight: 700; }
.plan-entry-card .primary-button { width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; }
.paid-plan-entry { border-color: #9cc8ad; background: linear-gradient(145deg, #f5fcf6, #fff); }
.wizard-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 0 0 24px; }
.wizard-progress span { height: 5px; border-radius: 99px; background: #dfe9e3; }
.wizard-progress span.active { background: var(--forest); }
.wizard-step { display: grid; gap: 18px; }
.wizard-step h2 { margin: 0; font-size: 24px; }
.wizard-step > p { margin: -9px 0 0; color: var(--muted); line-height: 1.6; }
.option-list { display: grid; gap: 10px; }
.option-card { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; text-align: left; }
.option-card.selected { border-color: #5c9a7f; background: #edf8f0; box-shadow: 0 0 0 2px rgba(92,154,127,.12); }
.option-card strong, .option-card small { display: block; }
.option-card small { margin-top: 5px; color: #5f7368; line-height: 1.5; }
.option-card em { display: inline-block; margin: 9px 0 0; color: #6b7b72; font-size: 12px; font-style: normal; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 2px; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #38614a; background: #eef7f0; font-size: 12px; font-weight: 700; }
.recommendation-reasons { margin: 10px 0 0; padding-left: 19px; color: #486657; font-size: 13px; line-height: 1.6; }
.recommendation-reasons li + li { margin-top: 2px; }
.quick-actions, .candidate-actions, .quick-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.quick-filter-row { margin: 0 0 12px; }
.small-action { width: auto; min-height: 38px; padding: 8px 13px; font-size: 13px; }
.selected-choice-action { background: #236b4d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.candidate-actions { align-items: center; }
.candidate-count-line { margin: 10px 0 0; color: #718178; font-size: 12px; }
.attraction-groups { display: grid; gap: 20px; }
.candidate-group { padding-top: 2px; }
.candidate-group h4 { margin: 0 0 9px; color: #294b3d; font-size: 17px; }
.all-attractions-expansion { margin-top: 14px; }
.all-attractions-expansion:empty { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pace-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pace-choice { min-width: 0; min-height: 112px; padding: 12px 10px; border: 1px solid #cfe2d3; border-radius: 15px; color: #315743; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.pace-choice-title { display: flex; align-items: center; gap: 5px; color: #1f4938; font-size: 15px; font-weight: 750; }
.pace-choice-title em { padding: 2px 5px; border-radius: 999px; color: #8b5b25; background: #fff0d8; font-size: 10px; font-style: normal; font-weight: 700; }
.pace-choice strong { display: block; margin-top: 9px; color: #456457; font-size: 12px; line-height: 1.35; }
.pace-choice small { display: block; margin-top: 5px; color: #7b8a82; font-size: 11px; line-height: 1.4; }
.pace-choice.selected { border-color: var(--forest); background: var(--mint); box-shadow: 0 0 0 2px rgba(37, 99, 71, .08); }
.choice-chip { padding: 9px 11px; border: 1px solid #cfe2d3; border-radius: 999px; color: #315743; background: #fff; font: inherit; font-size: 13px; }
.choice-chip.selected { border-color: var(--forest); color: #154b35; background: var(--mint); font-weight: 700; }
.choice-chip.negative.selected { border-color: #d99a91; color: #93433a; background: #fff1ef; }
.form-shell { padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
.wizard-nav { position: fixed; z-index: 18; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); left: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); width: min(100%, 720px); gap: 10px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(31,70,54,.08); backdrop-filter: blur(14px); }
.wizard-nav .primary-button, .wizard-nav .secondary-button { min-height: 50px; }
.selected-summary { margin: 12px 0; padding: 12px; border: 1px solid #cfe2d3; border-radius: 14px; background: #f7fcf8; }
.selected-summary strong { display: block; margin-bottom: 8px; font-size: 13px; }
.selected-summary .tag { margin: 0; border: 0; cursor: pointer; }
.inline-select-action { padding: 4px 7px; border: 0; border-radius: 999px; color: #315743; background: #e8f5ec; font: inherit; font-size: 12px; }
.food-hub-row, .catalog-filter { flex-wrap: nowrap; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.food-hub-row::-webkit-scrollbar, .catalog-filter::-webkit-scrollbar { display: none; }
.food-hub-row .choice-chip, .catalog-filter .choice-chip { flex: 0 0 auto; }
.selection-layer { position: fixed; z-index: 60; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--canvas); }
.selection-layer-header { position: sticky; top: 0; z-index: 2; padding: max(14px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.selection-layer-title { display: flex; align-items: center; gap: 12px; }.selection-layer-title h2 { margin: 0; font-size: 20px; }.selection-layer-title .back-link { flex: 0 0 40px; }
.selection-layer-search { width: 100%; height: 44px; margin-top: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; outline: none; }
.selection-layer-search:focus { border-color: #5c9a7f; box-shadow: 0 0 0 3px rgba(92,154,127,.13); }
.selection-layer-content { overflow-y: auto; padding: 16px 16px 104px; -webkit-overflow-scrolling: touch; }.selection-layer-content .option-list { gap: 10px; }
.selection-layer-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 2; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 22px rgba(31,70,54,.08); }
.selection-layer-footer .primary-button { width: min(100%, 688px); min-height: 50px; margin: 0 auto; }
.load-more { margin-top: 14px; }.source-note { margin-top: 8px; color: #718178; font-size: 12px; line-height: 1.5; }
.save-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.draft-note { padding: 12px 14px; border-radius: 13px; color: #5f7268; background: #edf6f0; font-size: 13px; line-height: 1.6; }
.summary-grid { display: grid; gap: 10px; }
.summary-row { padding: 12px 0; border-bottom: 1px solid #edf1ee; }
.summary-row:last-child { border-bottom: 0; }
.summary-row strong { display: block; margin-bottom: 4px; color: #294b3d; font-size: 13px; }

@media (max-width: 520px) {
  .page-shell { padding-right: 16px; padding-left: 16px; }
  .two-columns { grid-template-columns: 1fr; }
  .three-columns { grid-template-columns: 1fr 1fr; }
  .three-columns .field:last-child { grid-column: 1 / -1; }
  .preference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions { grid-template-columns: 1fr 1.15fr; }
  .result-actions .primary-button { grid-column: 1 / -1; }
  .result-conversion { padding: 20px 16px; }
  .result-conversion-actions { grid-template-columns: 1fr; }
  .plan-card { padding: 17px; border-radius: 17px; }
}

@media (min-width: 760px) {
  .page-shell { padding-right: 28px; padding-left: 28px; }
}

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

/* H5 UX V5: calm, task-first mobile travel product surfaces. */
:root { --canvas: #f7f8f6; --paper: #fbfcfa; --ink: #1c2b24; --muted: #657169; --line: #dce4de; --forest: #176347; --mint: #e5f1e9; }
body { background: var(--canvas); }
.home-body { background: var(--canvas); }
.home-shell { display: block; padding-top: 42px; }
.hero-card { text-align: left; }
.hero-card h1 { max-width: 340px; margin: 0; font-size: 38px; line-height: 1.16; letter-spacing: -.035em; }
.lead { max-width: 350px; margin: 14px 0 28px; font-size: 15px; line-height: 1.7; }
.plan-entry-grid { gap: 14px; margin-top: 0; }
.plan-entry-card { padding: 20px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.plan-entry-card + .plan-entry-card { border-top: 1px solid var(--line); }
.paid-plan-entry { background: transparent; }
.plan-entry-card h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.02em; }
.plan-entry-card p { max-width: 340px; line-height: 1.65; }
.plan-entry-card small { color: #345d48; }
.unfinished-trip { display: grid; gap: 4px; margin: 0 0 10px; padding: 13px 14px; border-radius: 12px; color: #315b46; background: #eaf4ed; font-size: 13px; line-height: 1.45; }
.unfinished-trip span { color: var(--muted); }
.paid-new-action { min-height: 46px; margin-top: 9px; color: var(--forest); }
.recent-trip { margin-top: 26px; padding: 17px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.recent-trip .eyebrow { padding: 0; background: transparent; letter-spacing: 0; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { border-radius: 13px; min-height: 52px; }
.primary-button { box-shadow: 0 8px 18px rgba(23,99,71,.16); }
.form-shell { padding-top: 24px; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 27px; }
.step-label { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.wizard-step > p { margin-top: -7px; }
.option-card { border-radius: 14px; box-shadow: none; }
.option-card > strong { font-size: 16px; }
.option-card details > summary, .candidate-details summary { cursor: pointer; color: var(--forest); font-size: 13px; font-weight: 700; }
.candidate-details { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); }
.compact-reasons { margin: 9px 0 0; }
.intent-picker { margin: 16px 0 18px; padding: 16px; border: 1px solid #cfe1d6; border-radius: 14px; background: #f3f8f4; }
.intent-picker h3 { margin: 0 0 5px; font-size: 17px; }
.intent-picker > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.intent-package { display: grid; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #d8e7dd; color: var(--muted); font-size: 13px; line-height: 1.5; }
.intent-package strong { color: var(--ink); }
.intent-package .secondary-button { min-height: 42px; }
.value-comparison { display: grid; gap: 10px; margin: 18px 0; }
.value-comparison article { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.value-comparison .value-primary { border-color: #8db69f; background: #eef7f1; }
.value-comparison span, .preview-example p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.value-checklist { margin: 18px 0; padding: 0; }
.value-checklist h3, .preview-example h3 { margin: 0 0 9px; font-size: 17px; }
.value-checklist ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #395445; font-size: 14px; }
.value-checklist li::before { content: "✓"; margin-right: 8px; color: var(--forest); font-weight: 800; }
.preview-example { padding: 15px 16px; border-left: 1px solid #8ab79d; background: #eff6f1; }
.preview-example p { margin: 0; }
.catalog-glance { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.catalog-glance span { padding: 6px 9px; border-radius: 999px; background: #edf1ee; }
.result-shell { padding-top: 22px; }
.result-header { grid-template-columns: 40px 1fr; gap: 11px; margin-bottom: 16px; }
.success-mark { width: 38px; height: 38px; font-size: 18px; }
.result-header h1 { margin: 0 0 4px; font-size: 25px; }
.plan-content { gap: 14px; }
.plan-card { padding: 18px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.plan-card + .plan-card { border-top: 1px solid var(--line); }
.day-tabs { position: sticky; z-index: 4; top: 0; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; background: var(--canvas); scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font: inherit; font-size: 13px; font-weight: 700; }
.day-tab.active { border-color: var(--forest); color: var(--forest); background: var(--mint); }
.day-meta { margin: -8px 0 14px; color: var(--muted); font-size: 13px; }
.timeline-stop { position: relative; padding: 15px 0 15px 18px; border-top: 0; }
.timeline-stop::before { position: absolute; top: 22px; bottom: -10px; left: 3px; width: 1px; background: #cbd8d0; content: ""; }
.timeline-stop::after { position: absolute; top: 18px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); content: ""; }
.timeline-stop:last-of-type::before { display: none; }
.item-title { font-size: 16px; }
.plan-origin { display: inline-block; margin-top: 8px; color: #476f59; font-size: 12px; font-weight: 700; }
.day-summary { margin-top: 8px; padding: 14px; border-radius: 13px; background: #eef5f0; }
.plan-why summary { cursor: pointer; color: var(--forest); font-weight: 700; }
.plan-why[open] summary { margin-bottom: 12px; }
.today-shell { padding-top: 20px; }
.today-header { margin-bottom: 15px; }
.today-header h1 { font-size: 25px; }
.today-shell .plan-card:first-child { padding-top: 4px; }
.today-go { min-height: 48px; margin-top: 12px; }
.today-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.today-action { min-height: 43px; border-radius: 12px; }
.bottom-navigation { background: rgba(251,252,250,.97); }
.bottom-nav-item { font-size: 17px; }
.bottom-nav-item:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(23,99,71,.35); outline-offset: 2px; }

/* Launch polish: every compact action has a real touch target and an
   immediate pressed state, while disabled controls remain visually stable. */
button:not(:disabled):active,
.primary-button:active,
.secondary-button:active,
.bottom-nav-item:active {
  transform: translateY(1px);
}
.choice-chip,
.feedback-button,
.today-action,
.adjustment-button,
.account-text-button,
.text-button,
.inline-select-action {
  min-height: 44px;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease;
}
.choice-chip:active:not(:disabled),
.feedback-button:active:not(:disabled),
.today-action:active:not(:disabled),
.adjustment-button:active:not(:disabled),
.account-text-button:active:not(:disabled),
.text-button:active:not(:disabled),
.inline-select-action:active:not(:disabled) {
  background: var(--brand-soft);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --canvas: #17201b; --paper: #202b24; --ink: #eef4ef; --muted: #b2c0b7; --line: #33453a; --mint: #244b36; }
  .home-body, body { background: var(--canvas); }
  .value-comparison article, .day-tab, .selection-layer, .selection-layer-header, .selection-layer-footer, .bottom-navigation { background: var(--paper); }
  .value-comparison .value-primary, .preview-example, .day-summary { background: #1e392b; }
  .unfinished-trip, .intent-picker { background: #1d3428; }
}

/* Visual foundation V6 - a warm, restrained private-travel surface.
   Keep product states intact; these tokens only change presentation. */
:root {
  color-scheme: light;
  --bg-page: #f6f3ed;
  --bg-subtle: #f1eee7;
  --bg-card: #ffffff;
  --text-primary: #202522;
  --text-secondary: #6f756f;
  --text-tertiary: #999d98;
  --brand-primary: #214e45;
  --brand-pressed: #183d36;
  --brand-soft: #e9f0ed;
  --accent: #b68a4a;
  --accent-soft: #f5ede0;
  --border: #e3ded5;
  --success: #356b57;
  --success-soft: #e7f0ea;
  --danger: #a55247;
  --danger-soft: #f8ebe8;
  --radius-card: 16px;
  --radius-button: 13px;
  --shadow-card: 0 2px 10px rgba(35, 42, 37, .045);
  --shadow-floating: 0 -5px 18px rgba(35, 42, 37, .075);
  --canvas: var(--bg-page);
  --paper: var(--bg-card);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --forest: var(--brand-primary);
  --forest-dark: var(--brand-pressed);
  --mint: var(--brand-soft);
}

html, body, .home-body { background: var(--bg-page); }
body {
  color: var(--text-primary);
  background: linear-gradient(180deg, #faf8f4 0, var(--bg-page) 220px);
}
.home-body { background: linear-gradient(180deg, #faf8f4 0, var(--bg-page) 280px); }

/* Typography and page rhythm */
.page-shell { padding-right: 20px; padding-left: 20px; }
.simple-header h1, .page-header h1, .result-header h1, .today-header h1 { color: var(--text-primary); }
.simple-header p, .page-header p, .result-header p, .today-header p,
.lead, .option-card small, .value-comparison span, .preview-example p { color: var(--text-secondary); }
.eyebrow, .step-label {
  color: var(--brand-primary);
  background: var(--brand-soft);
  letter-spacing: .08em;
}
.step-label { padding: 0; background: transparent; color: var(--text-secondary); }
.hero-card h1 { letter-spacing: -.045em; }
.micro-copy, .account-placeholder, .price-note, .candidate-count-line, .source-note { color: var(--text-tertiary) !important; }

/* Cards: borders establish hierarchy; shadows remain intentionally quiet. */
.plan-card, .trip-card, .option-card, .plan-entry-card, .recent-trip,
.settings-list, .selected-summary, .intent-picker, .payment-status-card,
.transport-leg, .weather-card, .research-box, .adjustment-history {
  border-color: var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.plan-card { padding: 19px; }
.trip-card, .option-card, .plan-entry-card { padding: 16px; }
.option-card { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.option-card.selected {
  border-color: #7d9e91;
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(33, 78, 69, .08);
}
.selected-summary, .intent-picker { border-color: #d5e0da; background: #f7faf7; }
.intent-package { border-top-color: #dfe7e2; }
.draft-note { color: #516159; background: var(--brand-soft); }
.day-summary, .callout { background: var(--brand-soft); }
.plan-card + .plan-card { border-top-color: var(--border); }
.day-card, .item-card, .summary-row, .feedback-controls { border-top-color: #eeeae3; }

/* Buttons and choice controls */
.primary-button, .secondary-button {
  min-height: 52px;
  border-radius: var(--radius-button);
  font-weight: 740;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button {
  background: var(--brand-primary);
  box-shadow: 0 5px 14px rgba(33, 78, 69, .16);
}
.primary-button:hover { background: var(--brand-pressed); }
.primary-button:active { background: var(--brand-pressed); box-shadow: 0 2px 7px rgba(33, 78, 69, .13); }
.primary-button:disabled { background: #8b9a93; box-shadow: none; opacity: 1; }
.secondary-button {
  border-color: #d8d4cc;
  color: var(--brand-primary);
  background: #fffdf9;
  box-shadow: none;
}
.secondary-button:hover { border-color: #b8c9c0; background: var(--brand-soft); }
.choice-chip, .feedback-button, .today-action, .adjustment-button {
  border-color: #d8d4cc;
  color: #41584e;
  background: #fffdf9;
}
.choice-chip.selected, .preference-grid input:checked + span, .calibration-choices input:checked + span {
  border-color: #779688;
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.choice-chip.negative.selected { border-color: #d5a29b; color: #924d43; background: var(--danger-soft); }
.small-action { min-height: 40px; }
.selected-choice-action { background: var(--brand-primary); box-shadow: none; }
.selected-choice-action:hover { background: var(--brand-pressed); }
.match-tag, .trip-status.traveling { color: var(--success); background: var(--success-soft); }

/* Warm, restrained emphasis - not a promotion treatment. */
.paid-tag { color: #886228; background: var(--accent-soft); }
.highlight-list li::marker { color: var(--accent); }
.budget-total { color: var(--brand-primary) !important; }
.paid-plan-entry, .value-comparison .value-primary { border-color: #cbb890; background: #fffdf8; }
.value-comparison article { border-color: var(--border); background: var(--bg-card); }
.preview-example { border-left-color: var(--accent); background: #fbf7ee; }

/* Fixed surfaces retain depth without becoming thick white slabs. */
.bottom-navigation, .wizard-nav, .selection-layer-footer {
  border-color: var(--border);
  background: rgba(255, 253, 249, .94);
  box-shadow: var(--shadow-floating);
}
.bottom-navigation { backdrop-filter: blur(16px); }
.bottom-nav-item { color: #8a908a; }
.bottom-nav-item.active { color: var(--brand-primary); }
.wizard-nav { padding-top: 9px; }
.selection-layer, .selection-layer-header { background: var(--bg-page); }
.selection-layer-header { border-color: var(--border); }
.selection-layer-search, .field input, .field textarea, .field select, .day-select {
  border-color: #d8d4cc;
  background: #fffdf9;
}
.field input:focus, .field textarea:focus, .selection-layer-search:focus {
  border-color: #779688;
  box-shadow: 0 0 0 3px rgba(33, 78, 69, .10);
}

/* Itinerary and recoverable states */
.timeline-stop::before { background: #d9ded8; }
.timeline-stop::after { background: var(--brand-primary); }
.day-tab { border-color: #d8d4cc; background: #fffdf9; }
.day-tab.active { border-color: #779688; color: var(--brand-primary); background: var(--brand-soft); }
.transport-leg { background: #fdfcf9; }
.transport-leg > strong, .sub-title, .detail-line strong { color: var(--brand-primary); }
.result-error { color: var(--text-secondary); }
.result-error.plan-card { padding: 22px; border: 1px solid #e8d7d2; background: #fffaf8; }
.today-action.warning-action { border-color: #d8bf95; color: #866228; background: #fff9ef; }
.danger-button { border-color: #e4c1ba; color: var(--danger); background: #fffaf9; }

/* Phone account */
.account-shell { max-width: 560px; }
.account-panel, .account-summary { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(31,70,54,.05); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: #eff4f1; }
.account-tabs button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.account-tabs button.active { color: var(--forest); background: #fff; box-shadow: 0 2px 8px rgba(31,70,54,.09); }
.account-form { display: grid; gap: 16px; }
.account-form .field { display: grid; gap: 8px; }
.account-form .field > span { color: var(--ink); font-size: 14px; font-weight: 700; }
.account-text-button { border: 0; color: var(--forest); background: transparent; cursor: pointer; }
.account-notice { margin: 0; padding: 13px; border-radius: 12px; color: #6b6150; background: #fff8e9; font-size: 13px; line-height: 1.6; }
.account-back-link { display: block; margin-top: 18px; color: var(--forest); text-align: center; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.account-summary-actions { display: flex; align-items: center; gap: 10px; }
.account-summary-actions a, .account-summary-actions button { border: 0; color: var(--forest); background: transparent; font-size: 13px; cursor: pointer; }
.account-login-button { width: auto; min-height: 42px; padding: 8px 14px; font-size: 13px; }

@media (max-width: 520px) {
  .page-shell { padding-right: 18px; padding-left: 18px; }
  .plan-card { padding: 17px; }
  .option-card, .trip-card, .plan-entry-card { padding: 15px; }
  .wizard-nav { padding-right: 18px; padding-left: 18px; }
}

/* Paid selection workspace: travel-first hierarchy without changing the flow. */
body.selection-workspace {
  background: linear-gradient(180deg, #fbfaf6 0, var(--bg-page) 210px);
}
.selection-workspace .form-shell { padding-top: max(16px, env(safe-area-inset-top)); }
.selection-workspace .page-header {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 14px;
}
.selection-workspace .page-header h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; }
.selection-workspace .page-header p { display: none; }
.selection-workspace .step-label { color: #66736c; font-size: 11px; }
.selection-workspace .wizard-progress { gap: 4px; margin-bottom: 19px; }
.selection-workspace .wizard-progress span { height: 4px; }
.selection-workspace .wizard-step { gap: 16px; }
.selection-workspace .selection-layer {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.selection-workspace .selection-layer-header,
.selection-workspace .selection-layer-content,
.selection-workspace .selection-layer-footer { min-width: 0; max-width: 100%; }

.selection-intro { display: grid; gap: 7px; }
.selection-intro h2 { font-size: 25px; line-height: 1.24; letter-spacing: -.025em; }
.selection-intro p {
  max-width: 38em;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.route-guidance {
  margin-top: -3px;
  padding: 0 12px;
  border-radius: 12px;
  color: #486056;
  background: var(--brand-soft);
  font-size: 12px;
}
.route-guidance summary { display: flex; min-height: 44px; align-items: center; color: var(--brand-primary); font-weight: 700; }
.route-guidance summary::after { margin-left: auto; color: var(--text-tertiary); content: "展开"; font-size: 11px; }
.route-guidance[open] { padding-bottom: 11px; }
.route-guidance[open] summary::after { content: "收起"; }
.route-guidance p { margin: 0 0 8px; line-height: 1.55; }
.route-guidance ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.route-guidance li { display: grid; gap: 2px; }
.route-guidance li strong { color: var(--text-primary); }

.selection-workspace .selected-summary {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px 13px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}
.selection-workspace .selected-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.selection-workspace .selected-summary-heading strong { margin: 0; color: var(--text-primary); font-size: 13px; }
.selection-workspace .selected-summary-heading span { flex: 0 0 auto; color: var(--text-tertiary); font-size: 11px; }
.selection-workspace .selected-items {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.selection-workspace .selected-items::-webkit-scrollbar { display: none; }
.selection-workspace .selected-item-chip {
  flex: 0 0 auto;
  display: flex;
  max-width: 260px;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #cddbd4;
  border-radius: 999px;
  color: var(--brand-primary);
  background: #fffdf9;
  font-size: 12px;
  font-weight: 700;
}
.selection-workspace .selected-item-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-workspace .selected-item-chip b { color: #74847c; font-size: 15px; font-weight: 500; }
.selection-workspace .selected-empty { min-height: 32px; color: var(--text-secondary); font-size: 13px; line-height: 32px; }

.intent-picker {
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.intent-picker-heading h3, .candidate-section-heading h3 { margin: 0; color: var(--text-primary); font-size: 17px; }
.intent-picker-heading p { margin: 3px 0 0; color: var(--text-secondary); font-size: 12px; }
.intent-chip-row, .attraction-theme-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 11px;
  padding: 1px 1px 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.intent-chip-row::-webkit-scrollbar, .attraction-theme-row::-webkit-scrollbar { display: none; }
.intent-chip-row .choice-chip, .attraction-theme-row .choice-chip { flex: 0 0 auto; }
.intent-package {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
}
.intent-package > div { min-width: 0; }
.intent-package strong, .intent-package span { display: block; }
.intent-package span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.intent-package .secondary-button { width: auto; min-height: 44px; padding: 8px 12px; background: #fffdf9; }

.candidate-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
}
.candidate-section-heading span { flex: 0 0 auto; color: var(--text-tertiary); font-size: 12px; }
.selection-workspace .option-list { gap: 12px; }
.candidate-card {
  padding: 16px;
  border-color: #ddd9d1;
  background: #fffefa;
  box-shadow: none;
}
.candidate-card.selected { border-color: #78988b; background: #f1f6f3; box-shadow: none; }
.candidate-card.rejected { border-color: #dfd7d0; background: #faf8f5; }
.candidate-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.candidate-card-head > div { min-width: 0; }
.candidate-card-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.42;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.candidate-card .match-tag {
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  border-radius: 0;
  color: var(--brand-primary);
  background: transparent;
  font-size: 12px;
}
.candidate-card .match-tag.route-caution { color: #8b5b25; }
.candidate-feature-row { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 5px; }
.candidate-feature-row span { color: #4b665a; font-size: 12px; font-weight: 700; }
.candidate-feature-row span + span::before { margin-right: 9px; color: #b0b5af; content: "/"; }
.candidate-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.candidate-facts span { display: inline; margin: 0; }
.decision-price {
  margin: 8px 0 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.decision-route {
  display: grid;
  gap: 3px;
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #40584d;
  background: #edf3ef;
  font-size: 13px;
  line-height: 1.55;
}
.decision-route b { color: var(--brand-primary); font-size: 12px; }
.decision-location { margin: 9px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.decision-location.route-caution { color: #8b5b25; font-weight: 700; }
.decision-page-note { margin: -3px 0 14px; color: var(--text-tertiary); font-size: 12px; line-height: 1.55; }
.hotel-card .quick-actions { margin-top: 10px; }
.hotel-card .quick-actions .primary-button { min-height: 44px; }
.candidate-reason {
  display: grid;
  gap: 3px;
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #40584d;
  background: #edf3ef;
  font-size: 13px;
  line-height: 1.55;
}
.candidate-reason b { color: var(--brand-primary); font-size: 12px; }
.candidate-card .candidate-details { margin-top: 5px; }
.candidate-card .candidate-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
}
.candidate-card .candidate-details summary::after { margin-left: auto; color: var(--text-tertiary); content: "展开"; font-size: 11px; font-weight: 600; }
.candidate-card .candidate-details[open] summary::after { content: "收起"; }
.candidate-card .candidate-details[open] { padding-bottom: 5px; }
.candidate-card .candidate-details[open] summary { margin-bottom: 2px; }
.candidate-card .candidate-details small { margin-top: 6px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.candidate-choice-actions {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr) minmax(0, .92fr);
  gap: 7px;
  margin-top: 8px;
}
.candidate-choice-actions .primary-button, .candidate-choice-actions .choice-chip {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.candidate-card.rejected .candidate-reason { background: #f2efeb; }
.candidate-card.rejected .match-tag { color: var(--text-secondary); }
.night-experience-section { margin-top: 24px; }
.night-card { border-left: 3px solid #b98b58; }
.night-card .candidate-facts span { color: var(--text-secondary); }
.attraction-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-subtle); }
.attraction-tabs button { min-height: 44px; border: 0; border-radius: 10px; color: var(--text-secondary); background: transparent; font: inherit; font-size: 14px; font-weight: 700; }
.attraction-tabs button.active { color: var(--brand-primary); background: var(--bg-card); box-shadow: 0 1px 5px rgba(35,42,37,.08); }
.attraction-selection-count { margin: -10px 0 0; color: var(--text-secondary); font-size: 12px; text-align: center; }
.night-preferences-inline { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid #d9c8aa; border-radius: 14px; background: #fffaf1; }
.night-preferences-inline .candidate-section-heading { margin: 0; }
.hotel-waiting { display: grid; min-height: min(62vh, 520px); align-content: center; justify-items: center; gap: 13px; padding: 30px 4px; text-align: center; }
.hotel-waiting h2 { margin: 0; font-size: 24px; }
.hotel-waiting p { max-width: 340px; margin: 0; color: var(--text-secondary); line-height: 1.65; }
.hotel-waiting .spinner { width: 34px; height: 34px; margin-bottom: 4px; }
.hotel-waiting-stage { color: var(--text-tertiary) !important; font-size: 13px; }
.hotel-waiting-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #8b5d23; background: #f7ead7; font-size: 22px; font-weight: 800; }
.hotel-waiting-actions { display: grid; width: min(100%, 340px); gap: 10px; margin-top: 6px; }

.food-discovery { display: grid; gap: 7px; }
.food-discovery .candidate-section-heading { margin-bottom: 0; }
.food-hub-row { position: relative; margin-right: -18px; padding-right: 36px; }
.food-hub-row .choice-chip, .attraction-theme-row .choice-chip, .intent-chip-row .choice-chip { min-height: 44px; }
.food-hub-note { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.selection-more-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.selection-more-actions .secondary-button { min-height: 48px; padding: 8px 10px; font-size: 13px; }
.selection-more-actions .secondary-button:disabled { border-color: #dfdcd5; color: #858d88; background: #f3f1ec; cursor: default; }
.selection-more-actions > :only-child { grid-column: 1 / -1; }
.selection-workspace .wizard-nav .primary-button,
.selection-workspace .wizard-nav .secondary-button { font-size: 13px; white-space: nowrap; }

@media (max-width: 390px) {
  .selection-workspace .page-shell { padding-right: 16px; padding-left: 16px; }
  .food-hub-row { margin-right: -16px; }
  .candidate-card { padding: 15px; }
  .candidate-choice-actions { gap: 6px; }
  .candidate-choice-actions .primary-button, .candidate-choice-actions .choice-chip { font-size: 11.5px; }
  .selection-workspace .wizard-nav { padding-right: 16px; padding-left: 16px; }
}

.today-replan-panel { display: grid; gap: 12px; margin-bottom: 18px; }
.today-replan-panel[hidden] { display: none; }
.today-replan-panel .field-label { margin-top: 2px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.today-replan-panel .text-input { width: 100%; min-height: 46px; }
.today-future-confirm { padding: 14px; border: 1px solid #d9b98d; border-radius: 14px; background: #fff8ec; }
.today-future-confirm[hidden] { display: none; }
.today-primary-replan { width: 100%; margin-top: 14px; }
.free-generation-loading { min-height: 180px; justify-content: center; align-items: center; gap: 12px; }
.free-generation-loading .loading-copy { display: grid; gap: 6px; min-width: 0; }
.free-generation-loading .loading-copy strong { color: var(--text-primary); font-size: 18px; line-height: 1.35; }
.free-generation-loading .loading-copy small { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.free-generation-loading .loading-copy em { color: var(--text-tertiary); font-size: 12px; line-height: 1.45; font-style: normal; }
.hotel-loading .loading-copy { display: grid; gap: 6px; }
.hotel-loading .loading-copy strong { color: var(--text-primary); font-size: 17px; }
.hotel-loading .loading-copy small, .hotel-loading .loading-copy em { color: var(--text-secondary); font-size: 13px; line-height: 1.45; font-style: normal; }
.today-controls { gap: 18px; }
.today-controls .day-select { margin-bottom: 7px; }
.today-controls .today-go { margin-top: 8px; }
.conversion-price { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-subtle, #f4efe7); color: var(--text-primary); }
.conversion-price span { color: var(--accent, #b66a48); font-size: 18px; font-weight: 760; }
.poi-search-panel .search-row { display: flex; align-items: center; gap: 10px; }
.poi-search-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; flex: 1; min-height: 44px; border: 1px solid var(--border, #d9d4cb); border-radius: 14px; background: #fffdf9; padding: 0 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.poi-search-field:focus-within { border-color: var(--accent, #2f6c5e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2f6c5e) 14%, transparent); }
.poi-search-field > span { color: var(--text-tertiary, #8f9993); font-size: 18px; line-height: 1; margin-right: 8px; }
.poi-search-field input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; }
.poi-search-field input::placeholder { color: var(--text-tertiary, #8f9993); }
.poi-search-panel .search-row > button { min-height: 44px; white-space: nowrap; }
.poi-search-panel .search-results { gap: 12px; margin-top: 12px; }
body.poi-search-active .poi-search-panel .search-row > button { display: none; }
body.selection-search-active .poi-search-panel .search-row > button { display: none; }
.poi-search-panel .search-row > button:disabled { cursor: not-allowed; opacity: .58; }
.result-conversion-actions .primary-button { min-height: 46px; }
.brand-lockup { display: inline-flex; align-items: baseline; gap: 9px; color: var(--brand-primary, #214e45); }
.brand-lockup strong { font-size: 24px; letter-spacing: .08em; }
.brand-lockup span { color: var(--text-secondary, #68766f); font-size: 13px; }
.value-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.value-points span { padding: 6px 10px; border-radius: 999px; color: var(--brand-primary, #214e45); background: var(--brand-soft, #e9f0ed); font-size: 12px; font-weight: 700; }
.brand-positioning { margin: 13px 0 0; color: var(--text-secondary, #68766f); font-size: 13px; line-height: 1.5; }
.conversion-note { margin-top: 7px !important; }

/* Mobile Safari repaints the full viewport for live backdrop blurs on fixed
   surfaces.  Keep the warm translucent treatment, but use a solid-ish
   surface and a smaller shadow on touch devices so scrolling stays cheap. */
@media (max-width: 700px) {
  .bottom-navigation, .wizard-nav, .selection-layer-footer {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 253, 249, .98);
    box-shadow: 0 -4px 12px rgba(35, 42, 37, .055);
  }
  .loading-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 430px) {
  .poi-search-panel .search-row { align-items: stretch; flex-direction: column; }
  .poi-search-panel .search-row > button { width: 100%; }
}

/* Bottom action bar polish: keep every paid-flow action aligned to the page
   content, with a centered single action and a deliberately heavier right
   action when navigation has two buttons. */
.wizard-nav {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: stretch;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}
.wizard-nav .primary-button,
.wizard-nav .secondary-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0;
  white-space: nowrap;
}
.wizard-nav:has(#previous[hidden]) {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.wizard-nav:has(#previous[hidden]) #next { width: 100%; }
body.wizard-single-action .wizard-nav {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
body.wizard-single-action .wizard-nav #next { width: 100%; }
.selection-layer-footer {
  display: grid;
  justify-items: center;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}
.selection-layer-footer .primary-button {
  box-sizing: border-box;
  width: min(100%, 560px);
  min-height: 50px;
}
.hotel-waiting-actions .primary-button,
.hotel-waiting-actions .secondary-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
}
.date-gate-note {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #d9c8aa;
  border-radius: 14px;
  background: #fffaf1;
}
.date-gate-note strong { color: var(--text-primary); font-size: 15px; }
.date-gate-note small { color: var(--text-secondary); line-height: 1.55; }
.date-gate-note .secondary-button { width: fit-content; min-height: 42px; margin-top: 3px; }
.food-hotel-summary { margin-top: 14px; }
.food-rerank-loading { min-height: 180px; margin: 14px 0; }
.food-rerank-loading .loading-copy { display: grid; gap: 6px; min-width: 0; }
.food-rerank-loading .loading-copy strong { color: var(--text-primary); font-size: 17px; line-height: 1.35; }
.food-rerank-loading .loading-copy small,
.food-rerank-loading .loading-copy em { color: var(--text-secondary); font-size: 13px; line-height: 1.45; font-style: normal; }
body.wizard-food-error .wizard-nav { display: none; }
