/* Scoped planner presentation. Content determines height at every viewport. */
#content.itinerary-page {
  --planner-line: #dfe7e2;
  --planner-soft: #f4f7f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8f5;
}
#content .planner-hero {
  height: auto;
  min-height: 0;
  display: grid;
  align-items: center;
  isolation: isolate;
}
#content .planner-hero > img { object-position: center 48%; }
#content .hero-shade { background: linear-gradient(90deg, #102c2eeb, #142e32a6 52%, #142e3229), linear-gradient(0deg, #102c2e66, transparent); }
#content .planner-hero .hero-copy { padding-block: 28px; }
#content .hero-copy .eyebrow { display: block; font-size: 10px; letter-spacing: .16em; line-height: 1.5; }
#content .hero-copy h1 { font: 500 clamp(34px, 4vw, 48px)/1.06 Georgia, serif; letter-spacing: -.035em; max-width: 680px; margin: 10px 0 12px; }
#content .hero-copy h1 em { color: #f5ddaf; }
#content .hero-copy p { font: 400 14px/1.65 system-ui, sans-serif; color: #e4ede9; max-width: 470px; margin: 0 0 16px; }
#content .planner-hero .button { min-height: 42px; margin: 0; padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 650; letter-spacing: 0; box-shadow: 0 2px 8px #061e2726; }
#content .planner-section { padding: 24px 0 44px; }
#content .planner-section > .wrap { max-width: 1080px; }
#content .planner-heading { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: end; margin-bottom: 18px; }
#content .planner-heading .eyebrow { font-size: 10px; letter-spacing: .13em; color: #687971; }
#content .planner-heading h2 { font: 650 clamp(23px, 2.7vw, 30px)/1.2 system-ui, sans-serif; letter-spacing: -.045em; margin: 6px 0 0; }
#content .planner-heading h2 em { font-family: Georgia, serif; font-weight: 400; color: #4c6b60; }
#content .planner-heading > p { font: 400 13px/1.6 system-ui, sans-serif; max-width: 310px; margin: 0; }
#content .planner-shell { min-height: 0; border-color: var(--planner-line); border-radius: 16px; box-shadow: 0 8px 32px #153a2d06; }
#content .planner-card { padding: 20px 24px; }
#content .draft-tools { gap: 6px 12px; align-items: center; justify-content: flex-start; padding: 0 0 14px; margin: 0 0 16px; border-color: var(--planner-line); }
#content .draft-tools .save-note { flex: 1 1 auto; flex-basis: auto; margin: 0 0 0 auto; justify-content: flex-end; font: 400 11px/1.5 system-ui, sans-serif; color: #687971; }
#content .draft-tools button { font: 500 11px/1.4 system-ui, sans-serif; min-height: 40px; text-decoration: none; padding: 6px 4px; }
#content .draft-tools > button:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
#content .trip-planning-modes { order: -1; flex: 0 0 auto; width: auto; margin: 0; padding: 3px; gap: 3px; background: #eff3ef; border: 1px solid #e6ece6; border-radius: 10px; }
#content .trip-planning-modes button { min-height: 36px; border-radius: 7px; padding: 7px 13px; font-size: 12px; font-weight: 600; }
#content .trip-planning-modes button[aria-pressed=true] { background: #173f39; box-shadow: 0 2px 5px #173f391a; }
#content .trip-conversation { max-width: 740px; margin: 0 auto; padding: 0; }
#content .conversation-kicker { gap: 8px; padding: 0 0 12px; border-color: #edf1ed; }
#content .conversation-kicker .eyebrow { font: 650 10px/1.5 system-ui, sans-serif; letter-spacing: .09em; color: #536e61; }
#content #conversation-model-status { font: 400 10px/1.5 system-ui, sans-serif; max-width: 270px; color: #738078; }
#content .conversation-stage { font-size: 10px; letter-spacing: .09em; margin-top: 16px; color: #6b7c73; }
#content #conversation-title { font: 650 clamp(21px, 2.4vw, 26px)/1.25 system-ui, sans-serif; letter-spacing: -.035em; margin: 6px 0 8px; }
#content #conversation-title:focus { outline: none; }
#content #conversation-question > p { font: 400 13px/1.65 system-ui, sans-serif; color: #65766c; max-width: 65ch; margin: 0; }
#content .conversation-options { gap: 8px; margin: 16px 0; }
#content .conversation-options button, #content .conversation-match button { min-height: 44px; border-color: #dce5de; border-radius: 9px; padding: 10px 14px; font: 500 13px/1.4 system-ui, sans-serif; background: #fbfcfa; }
#content .conversation-options button:hover, #content .conversation-match button:hover { background: #eaf2eb; border-color: #8eaa96; box-shadow: 0 2px 6px #153a2d08; }
#content [data-question=days] .conversation-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
#content [data-question=days] .conversation-options button { text-align: center; }
#content .conversation-preview { min-height: 36px; font-size: 12px; margin: -4px 0 8px; }
#content .conversation-answer { padding-top: 14px; border-color: #edf1ed; }
#content .conversation-answer label { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
#content .conversation-answer textarea { min-height: 86px; height: 86px; border-radius: 10px; padding: 11px 13px; border-color: #d5e1d7; background: #fafcf9; font: 400 14px/1.55 system-ui, sans-serif; }
#content .conversation-answer textarea::placeholder { color: #839086; }
#content .conversation-answer textarea:focus { outline: 2px solid #6e9784; outline-offset: 1px; }
#content .conversation-answer-actions { gap: 14px; align-items: center; margin-top: 10px; }
#content .conversation-answer-actions small { max-width: 340px; font-size: 11px; line-height: 1.5; color: #78847c; }
#content .conversation-answer .button, #content .conversation-build-actions .button { border-radius: 9px; min-height: 44px; font: 600 13px/1.4 system-ui, sans-serif; letter-spacing: 0; padding: 11px 18px; background: #173f39; color: #fff; }
#content .conversation-answer .button:hover, #content .conversation-build-actions .button:hover { background: #24584b; }
#content .conversation-last-answer { margin: 12px 0; max-width: 100%; padding: 10px 12px; border-radius: 9px; font: 400 12px/1.6 system-ui, sans-serif; background: #f0f5ef; color: #486151; }
#content .conversation-understood { padding: 0 0 8px; border-color: #edf1ed; }
#content .conversation-understood summary { min-height: 36px; font-size: 12px; color: #4c6c5c; }
#content .conversation-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
#content .conversation-facts > div { background: #f6f8f4; border: 1px solid #edf1e9; border-radius: 9px; padding: 8px 10px; }
#content .conversation-facts dt { font-size: 10px; margin-bottom: 1px; }
#content .conversation-facts dd { font-size: 12px; line-height: 1.5; }
#content .conversation-edit { min-height: 30px; font-size: 10px; padding: 2px 4px; color: #527963; }
#content .conversation-error { border-radius: 0 8px 8px 0; font-size: 12px; padding: 10px 12px; }
#content .conversation-footer { gap: 4px 16px; margin-top: 14px; padding-top: 6px; border-color: #edf1ed; }
#content .conversation-footer button { min-height: 36px; padding: 4px 0; font: 500 11px/1.5 system-ui, sans-serif; color: #6e7e72; text-decoration: none; }
#content .conversation-footer button:hover { color: #173f39; text-decoration: underline; text-underline-offset: 3px; }
#content .conversation-assumptions { border: 1px solid #e9e1ca; border-radius: 10px; background: #faf8f0; padding: 14px 16px; margin: 14px 0; }
#content .conversation-assumptions h4 { font: 650 13px/1.5 system-ui, sans-serif; margin-bottom: 8px; }
#content .conversation-assumptions ul { font-size: 12px; line-height: 1.6; margin-block: 8px 14px; }
#content .conversation-assumptions label { font-size: 12px; }
#content .conversation-assumptions input { border-radius: 7px; border-color: #d8dfd1; font-size: 13px; }
#content .conversation-date-note { font-size: 11px; margin: 8px 0 0; }
#content .conversation-build-actions { margin-top: 14px; gap: 10px 18px; }
#content .conversation-build-actions .text-button { font-size: 12px; }
#content .conversation-match { border-radius: 10px; padding: 12px; }
#content .conversation-match p { font-size: 13px; }
#content .wizard-ready .form-step:not(.result-step) { min-height: 0; }
#content .wizard-ready .form-head { margin-bottom: 20px; }
#content .wizard-ready .form-head h3, #content .wizard-ready .result-head h3 { font: 650 25px/1.25 system-ui, sans-serif; letter-spacing: -.035em; }
#content .wizard-ready .form-head p { font-size: 13px; }
#content .wizard-ready .form-actions { margin-top: 20px; }
#content .wizard-ready .aside-art { display: none; }
#content .wizard-ready .planner-aside { padding: 20px; }
#content .wizard-ready .planner-aside h3 { font-size: 23px; margin-block: 12px 20px; }
#content .wizard-ready .journey-stay-card, #content .wizard-ready .journey-day-card { padding: 12px; }
#content .day-card { border-radius: 12px; padding: 20px; border-color: var(--planner-line); }
#content .result-meta span { border-radius: 6px; }
#content .trip-downloads, #content .journey-review, #content .trip-route-editor { border-color: var(--planner-line); }
@media (max-width: 760px) {
  #content .planner-hero .hero-copy { padding-block: 24px; }
  #content .hero-copy h1 { font-size: clamp(30px, 7.5vw, 39px); margin-block: 8px 10px; }
  #content .hero-copy p { font-size: 13px; max-width: 360px; margin-bottom: 14px; }
  #content .planner-hero > img { object-position: 63% center; }
  #content .hero-shade { background: linear-gradient(90deg, #102c2ee6, #102c2e73), linear-gradient(0deg, #102c2e66, transparent); }
  #content .planner-section { padding-top: 20px; }
  #content .planner-heading { grid-template-columns: 1fr; gap: 7px; margin-bottom: 14px; }
  #content .planner-heading h2 { font-size: 24px; }
  #content .planner-heading > p { font-size: 12px; max-width: 100%; }
  #content .planner-card { padding: 16px; }
  #content .draft-tools { gap: 2px 10px; padding-bottom: 12px; margin-bottom: 12px; }
  #content .trip-planning-modes { flex-basis: 100%; margin-bottom: 6px; }
  #content .trip-planning-modes button { flex: 1; min-height: 40px; }
  #content .draft-tools .save-note { justify-content: flex-start; margin-left: 0; font-size: 10px; }
  #content .draft-tools > button { min-height: 40px; font-size: 10px; }
  #content .conversation-kicker { padding-bottom: 10px; gap: 4px; }
  #content .conversation-kicker .eyebrow { font-size: 9px; }
  #content #conversation-model-status { font-size: 10px; max-width: 100%; }
  #content .conversation-stage { margin-top: 12px; }
  #content #conversation-title { font-size: 22px; }
  #content #conversation-question > p { font-size: 12px; }
  #content .conversation-options { gap: 6px; margin-block: 12px; }
  #content .conversation-options button { flex: 1 1 calc(50% - 6px); font-size: 12px; padding: 9px 11px; }
  #content [data-question=days] .conversation-options button { padding-inline: 4px; }
  #content .conversation-answer textarea { font-size: 16px; }
  #content .conversation-answer-actions { flex-direction: row; align-items: center; gap: 10px; }
  #content .conversation-answer-actions small { max-width: 190px; font-size: 10px; }
  #content .conversation-answer .button { padding-inline: 13px; flex: 0 0 auto; }
  #content .conversation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #content .conversation-facts > div { padding: 7px 8px; }
  #content .conversation-facts dd { font-size: 11px; }
  #content .conversation-footer { gap: 4px 14px; margin-top: 12px; }
  #content .conversation-footer button { min-height: 40px; font-size: 10px; }
  #content .conversation-build-actions > * { width: 100%; }
  #content .conversation-assumptions { padding: 12px; }
  #content .wizard-ready .form-head h3 { font-size: 23px; }
  #content .day-card { padding: 14px; }
}
@media (max-width: 360px) {
  #content .draft-tools .save-note { flex-basis: 100%; }
  #content .conversation-answer-actions { flex-wrap: wrap; }
  #content .conversation-answer-actions small { max-width: 100%; }
  #content .conversation-answer .button { width: 100%; }
}
@media print {
  #content.itinerary-page { background: #fff; }
  #content .planner-hero, #content .planner-heading, #content .trip-conversation { display: none !important; }
  #content .planner-section, #content .planner-card { padding: 0; }
  #content .day-card { padding: 12px; }
}
