:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --surface: #fcfaf5;
  --surface-strong: #fffdf9;
  --surface-soft: #e3ebe5;
  --ink: #1e2b25;
  --muted: #6e756f;
  --faint: #92978f;
  --line: rgba(30, 43, 37, 0.13);
  --line-strong: rgba(30, 43, 37, 0.22);
  --accent: #315c50;
  --accent-deep: #23463d;
  --accent-soft: #dce7df;
  --warm: #b87452;
  --warm-soft: #f3e3d8;
  --gold: #9c763c;
  --danger: #9d4f45;
  --shadow-sm: 0 10px 30px rgba(39, 53, 46, 0.06);
  --shadow: 0 24px 70px rgba(39, 53, 46, 0.09);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 3%, rgba(49, 92, 80, 0.1), transparent 26rem),
    radial-gradient(circle at 8% 27%, rgba(184, 116, 82, 0.07), transparent 24rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: linear-gradient(rgba(30, 43, 37, 0.035) 1px, transparent 1px);
  background-size: 100% 64px;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
.day-header h3,
.timeline-stop-content h4 {
  font-family: var(--serif);
  font-weight: 600;
}

.sr-only {
  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;
}

.app-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 28px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark > span:last-child {
  display: grid;
}

.brand-mark strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.brand-mark small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(49, 92, 80, 0.18);
}

.reset-button,
.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.reset-button span:first-child {
  font-size: 18px;
}

.reset-button:hover,
.text-button:hover {
  color: var(--accent);
  background: rgba(49, 92, 80, 0.07);
}

.hero {
  max-width: 850px;
  padding: 86px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.stage-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stage-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 10px;
  color: var(--faint);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.stage-link + .stage-link {
  border-left: 1px solid var(--line);
}

.stage-link::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  content: "";
  background: transparent;
  transform: scaleX(0.4);
  transition: background 180ms ease, transform 180ms ease;
}

.stage-link span {
  font-family: var(--serif);
  font-size: 12px;
}

.stage-link strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-link:hover,
.stage-link.completed,
.stage-link.active {
  color: var(--accent);
}

.stage-link.active {
  background: rgba(252, 250, 245, 0.45);
}

.stage-link.active::after {
  background: var(--accent);
  transform: scaleX(1);
}

.trip-summary {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.5fr 0.8fr;
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.trip-summary > div {
  min-width: 0;
  min-height: 86px;
  padding: 17px 20px;
  background: rgba(252, 250, 245, 0.94);
}

.trip-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.trip-summary strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-progress > div:first-child strong {
  margin: 0;
  color: var(--accent);
}

.progress-track {
  height: 4px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.progress-track span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 300ms ease;
}

.flow-section {
  scroll-margin-top: 96px;
  margin-top: 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
}

.flow-section[data-stage-state="active"] .step-number {
  color: var(--surface);
  background: var(--accent);
  border-color: var(--accent);
}

.conversation-card,
.pending-box,
.day-card,
.planning-foundations {
  border: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: var(--shadow);
}

.conversation-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 430px;
  overflow-y: auto;
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.message {
  max-width: 82%;
  padding: 13px 16px;
  border-radius: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message.agent {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  color: var(--ink);
  background: var(--surface-soft);
}

.message.user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: var(--accent);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.composer {
  display: grid;
  gap: 14px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  background: #f7f4ed;
  line-height: 1.7;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea::placeholder {
  color: #979b94;
}

textarea:hover {
  border-color: var(--line);
}

textarea:focus {
  outline: none;
  border-color: rgba(49, 92, 80, 0.45);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(49, 92, 80, 0.1);
}

.composer-actions,
.pending-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.primary-button,
.secondary-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 650;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(49, 92, 80, 0.18);
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-deep);
  box-shadow: 0 13px 34px rgba(49, 92, 80, 0.25);
  transform: translateY(-1px);
}

.secondary-button,
.chip-button {
  color: var(--accent);
  background: transparent;
  border-color: var(--line-strong);
}

.secondary-button:hover:not(:disabled),
.chip-button:hover:not(:disabled),
.secondary-button.selected {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button-arrow {
  font-size: 18px;
  line-height: 1;
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

:focus-visible {
  outline: 3px solid rgba(184, 116, 82, 0.4);
  outline-offset: 3px;
}

.pending-box {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.pending-box[hidden] {
  display: none;
}

.pending-header {
  margin-bottom: 24px;
}

.pending-list {
  display: grid;
  gap: 16px;
}

.pending-question {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f5ee;
}

.pending-question > label {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.pending-answer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pending-answer-row textarea {
  min-height: 76px;
  background: var(--surface-strong);
}

.pending-submit-row {
  justify-content: flex-end;
  padding-top: 6px;
}

.pending-submit-row .primary-button {
  min-width: 190px;
}

.inline-place-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.inline-answer-options {
  display: flex;
  flex-wrap: wrap;
}

.inline-place-choice {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.inline-place-choice:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.inline-place-choice.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 92, 80, 0.09);
}

.inline-place-choice.selected .secondary-button {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.inline-place-choice-other {
  align-content: end;
  border-style: dashed;
}

.inline-place-choice img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.inline-place-choice strong,
.inline-place-choice span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-place-choice span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.plan-heading {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.refresh-button {
  align-self: center;
  white-space: nowrap;
}

.itinerary-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: rgba(252, 250, 245, 0.54);
}

.itinerary-empty strong {
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.itinerary-empty p {
  margin: 5px 0 0;
  font-size: 13px;
}

.empty-kicker,
.day-sequence {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.itinerary-output {
  display: grid;
  gap: 22px;
}

.day-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #f7f2e9;
}

.day-header h3 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.25;
}

.day-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.intensity {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: #7d513c;
  background: var(--warm-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-list {
  position: relative;
  display: grid;
  background: var(--surface-strong);
}

.timeline-list::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 139px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-stop {
  position: relative;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 38px;
  min-width: 0;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.timeline-stop::before {
  position: absolute;
  top: 31px;
  left: 134px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 3px solid var(--surface-strong);
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-stop:last-child {
  border-bottom: 0;
}

.timeline-stop-time {
  padding-top: 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.timeline-stop-content {
  min-width: 0;
}

.timeline-stop-content h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.timeline-tags {
  margin-top: 10px;
}

.transport-step {
  position: relative;
  display: grid;
  grid-template-columns: 105px 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(227, 235, 229, 0.48);
}

.transport-time {
  padding-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.transport-arrow {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
}

.transport-body {
  min-width: 0;
}

.transport-body strong {
  display: block;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin: 4px 5px 0 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  line-height: 1.4;
}

.warning-tag {
  color: #80543d;
  background: var(--warm-soft);
}

.unplanned-card {
  padding: 20px 22px;
  border: 1px solid rgba(184, 116, 82, 0.24);
  border-radius: var(--radius);
  background: var(--warm-soft);
}

.unplanned-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.unplanned-card p {
  margin: 0;
}

.planning-foundations {
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius);
}

.foundations-title {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.evidence-details + .evidence-details {
  border-top: 1px solid var(--line);
}

.evidence-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease;
}

.evidence-details > summary::-webkit-details-marker {
  display: none;
}

.evidence-details > summary:hover {
  background: rgba(227, 235, 229, 0.32);
}

.evidence-details > summary > span:first-child {
  display: grid;
}

.evidence-details > summary strong {
  font-size: 15px;
}

.evidence-details > summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.summary-icon {
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform 180ms ease;
}

.evidence-details[open] .summary-icon {
  transform: rotate(45deg);
}

.profile-grid,
.validation-list {
  padding: 0 22px 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-card,
.validation-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f5ee;
}

.profile-card {
  min-width: 0;
  padding: 17px;
}

.profile-card h3,
.validation-item h3 {
  margin: 0;
  font-size: 15px;
}

.profile-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.profile-card li {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.place-preview-card {
  grid-column: 1 / -1;
}

.place-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.place-preview {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.place-preview img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.place-preview strong,
.place-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-preview span {
  color: var(--muted);
  font-size: 11px;
}

.preview-badge {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #80543d;
  background: var(--warm-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.preview-badge.selected {
  color: var(--accent);
  background: var(--accent-soft);
}

.validation-list {
  display: grid;
  gap: 10px;
}

.validation-item {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
}

.validation-item.warn {
  border-left-color: var(--gold);
}

.validation-item.risk {
  border-left-color: var(--danger);
}

.validation-item p {
  margin: 5px 0 0;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.is-busy .button-arrow {
  animation: busyPulse 900ms ease-in-out infinite alternate;
}

@keyframes busyPulse {
  from { transform: translateX(0); opacity: 0.45; }
  to { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 900px) {
  .app-shell {
    padding-inline: 22px;
  }

  .hero {
    padding: 68px 0 58px;
  }

  .trip-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .refresh-button {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .app-shell {
    padding: 0 16px max(40px, env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 64px;
  }

  .brand-monogram {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-mark strong {
    font-size: 16px;
  }

  .brand-mark small {
    display: none;
  }

  .reset-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .reset-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    padding: 30px 0 24px;
  }

  .hero .eyebrow {
    margin-bottom: 7px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.18;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
  }

  .stage-link {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 11px 8px 12px;
    text-align: center;
  }

  .stage-link span {
    font-size: 10px;
  }

  .stage-link strong {
    font-size: 12px;
  }

  .trip-summary {
    margin-top: 20px;
    border-radius: 16px;
  }

  .trip-summary > div {
    min-height: 66px;
    padding: 11px 13px;
  }

  .trip-summary span {
    font-size: 9px;
  }

  .trip-summary strong {
    margin-top: 3px;
    font-size: 13px;
  }

  .summary-progress > div:first-child {
    align-items: flex-start;
  }

  .progress-track {
    margin-top: 8px;
  }

  .flow-section {
    scroll-margin-top: 76px;
    margin-top: 32px;
  }

  .section-heading,
  .plan-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p:last-child {
    margin-top: 5px;
    font-size: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .refresh-button {
    grid-column: 2;
    min-height: 40px;
    padding: 0 15px;
    font-size: 12px;
  }

  .conversation-card,
  .pending-box,
  .day-card {
    border-radius: 20px;
  }

  .chat-log {
    max-height: 360px;
    padding: 17px;
  }

  .message {
    max-width: 94%;
    padding: 11px 13px;
    font-size: 14px;
  }

  .composer {
    padding: 14px;
  }

  textarea {
    min-height: 98px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .primary-button,
  .secondary-button,
  .chip-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .pending-box {
    padding: 18px;
  }

  .pending-question {
    padding: 15px;
  }

  .pending-question > label {
    font-size: 17px;
  }

  .inline-place-choices {
    grid-template-columns: 1fr;
  }

  .inline-answer-options {
    display: flex;
  }

  .itinerary-empty {
    min-height: 210px;
    padding: 28px 18px;
  }

  .day-header {
    padding: 19px 18px;
  }

  .day-header h3 {
    font-size: 23px;
  }

  .timeline-list::before {
    left: 103px;
  }

  .timeline-stop {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 30px;
    padding: 20px 17px;
  }

  .timeline-stop::before {
    top: 27px;
    left: 98px;
  }

  .timeline-stop-time {
    font-size: 12px;
    white-space: normal;
  }

  .timeline-stop-content h4 {
    font-size: 17px;
  }

  .transport-step {
    grid-template-columns: 68px 22px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 17px;
  }

  .transport-time {
    white-space: normal;
  }

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

  .profile-grid,
  .validation-list {
    padding: 0 14px 16px;
  }

  .foundations-title,
  .evidence-details > summary {
    padding-inline: 16px;
  }

  .site-footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
