/* One visual language for the journey, its tools, and every dialog. */
:root {
  --ink: #213b31;
  --green: #245541;
  --green-dark: #173f32;
  --muted: #687b70;
  --line: #e3e9e1;
  --paper: #f8faf7;
  --surface: #fff;
  --surface-soft: #f3f7f1;
  --surface-warm: #fbfaf6;
  --shadow-soft: 0 10px 34px rgb(30 60 44 / 5%);
  --shadow-float: 0 24px 80px rgb(24 48 34 / 16%);
}

body { color: var(--ink); font-size: 14px; letter-spacing: -.005em; }
button { font-weight: 550; }
button:hover:not(:disabled) { filter: none; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #9eb8a2;
  outline-offset: 3px;
}

/* App frame */
.sidebar {
  width: 212px;
  padding: 30px 18px 20px;
  background: #f2f5ef;
  border-color: #e1e9df;
}
.workspace { width: calc(100% - 212px); margin-left: 212px; }
.brand { margin: 0 0 50px 5px; font-size: 27px; letter-spacing: .055em; }
.brand-mark { transform: none; border-radius: 14px; box-shadow: 0 8px 18px rgb(23 63 50 / 13%); }
.brand-subtitle { margin-top: 3px; font-size: 8px; letter-spacing: .15em; color: #728678; }
.workspace-label, .trip-list-heading { color: #718477; font-size: 11px; letter-spacing: .025em; }
.small-pill { border-radius: 7px; }
.nav-item { padding: 11px 13px; border-radius: 11px; font-size: 13px; }
.nav-item.active { background: #e4eee3; color: #28513a; }
.new-trip-button {
  min-height: 44px;
  border-radius: 11px;
  margin: 18px 0 29px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgb(24 68 49 / 10%);
}
.project-button { padding: 13px; border-radius: 12px; }
.project-button.selected { border-color: #d5e2d4; background: var(--surface); box-shadow: var(--shadow-soft); }
.project-title { color: #324b3b; font-size: 13px; }
.project-meta { color: #718373; font-size: 11px; }
.studio-note { color: #647b65; }
.studio-note strong, .profile strong { font-size: 12px; font-weight: 600; }
.studio-note p, .profile small { color: #718472; font-size: 11px; }
.profile { border-color: #dce5d9; }

.topbar {
  height: 70px;
  padding: 0 34px;
  border-color: var(--line);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
}
.breadcrumb { font-size: 12px; color: #78897b; }
.breadcrumb strong { color: #365643; font-weight: 600; }
.environment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #dce4d0;
  background: #f6f8ef;
  color: #54765b;
  font-size: 11px;
  box-sizing: border-box;
}
.sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e4dfcd;
  background: #fcfaf3;
  color: #826c43;
  font-size: 11px;
  box-sizing: border-box;
}
.sandbox-badge .icon {
  width: 14px;
  height: 14px;
}
.topbar-divider {
  width: 1px;
  height: 18px;
  background: #e2e8dc;
  margin: 0 4px;
  flex-shrink: 0;
  align-self: center;
}
.topbar-btn,
.topbar #memory-open-btn,
.topbar #model-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #dce4d2;
  background: #ffffff;
  color: #3b5643;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all 0.16s ease;
  box-sizing: border-box;
  text-decoration: none;
}
.topbar-btn:hover,
.topbar #memory-open-btn:hover,
.topbar #model-switch:hover {
  background: #eff5ee;
  border-color: #bed0b8;
  color: #24422e;
}
.topbar-btn .icon,
.topbar #memory-open-btn .icon,
.topbar #model-switch .icon {
  width: 13px;
  height: 13px;
  color: #5a7b60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}
.topbar-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #3b6449;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-left: 2px;
  box-sizing: border-box;
}
.motion-setting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  font-size: 11px;
  color: #617663;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  margin: 0;
}
.main-layout {
  max-width: 1530px;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 315px);
  gap: 28px;
  padding: 32px 36px 70px;
}
.travel-workspace { min-width: 0; }

/* Journey overview: rich in information, quiet in presentation. */
.trip-heading { align-items: flex-start; gap: 20px; }
.trip-heading .eyebrow { color: #778d7b; font-size: 11px; letter-spacing: .12em; }
.tiny-line { width: 20px; background: #8eab91; }
.trip-heading h1 { margin: 8px 0 4px; font-size: clamp(29px, 3vw, 39px); line-height: 1.25; letter-spacing: -.045em; font-weight: 650; }
.trip-subtitle { color: #6b7f72; font-size: 13px; line-height: 1.7; }
.status-pill { margin-top: 4px; padding: 6px 11px; border-color: #dce8da; border-radius: 100px; background: #eff5e9; color: #4e7050; font-size: 11px; }
.preference-tags { margin: 18px 0 10px; gap: 7px; }
.preference-tag { padding: 5px 10px; border: 0; border-radius: 8px; background: #edf3e9; color: #55725b; font-size: 11px; }
.preference-tag:before { color: #79997d; }
.trip-anchors { margin: 8px 0 16px; color: #5e7866; font-size: 12px; }
.trip-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 25px;
  padding: 17px 0;
  border-color: var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.metric { padding: 0 18px; min-width: 0; }
.metric-label { color: #687b70; font-size: 11px; }
.metric-label > span { color: #829388; border-color: var(--line); font-size: 9px; }
.metric strong { margin-top: 5px; font-size: 24px; font-weight: 650; letter-spacing: -.045em; line-height: 1.2; color: #224b38; }
.metric strong > span { font-size: 14px; }
.metric small { margin-top: 6px; color: #6e8073; font-size: 10px; line-height: 1.45; }
.budget-meter { height: 4px; margin-top: 9px; border-radius: 20px; background: #e8eee5; }
.budget-meter > span { background: #6d9272; }
.planning-notice { margin-bottom: 14px; padding: 10px 14px; border-color: #eadfc9; border-radius: 12px; background: #fffcf5; color: #77653f; }
.planning-details > summary { padding: 2px 0; font-weight: 600; }
.planning-details[open] > summary { margin-bottom: 10px; }

/* The itinerary is the primary working surface. */
.section-toolbar { margin-top: 7px; border-color: var(--line); }
.view-tabs { gap: 25px; }
.view-tab { padding-bottom: 13px; font-size: 13px; color: #738576; }
.view-tab.active { color: #27513b; border-color: #326247; font-weight: 650; }
.section-toolbar #journal-button { align-self: center; padding: 8px; border-radius: 8px; font-size: 12px; }
.section-toolbar #journal-button:hover { background: #eef3ec; }
.day-tabs { margin: 19px 0 16px; gap: 8px; }
.day-tab { min-height: 38px; padding: 7px 13px; border-color: #dfe8de; border-radius: 9px; background: #fff; color: #5e7766; font-size: 11px; }
.day-tab strong { font-size: 11px; }
.day-tab.active { border-color: #245541; background: #245541; color: #fff; box-shadow: 0 6px 14px rgb(30 74 51 / 13%); }
.day-tab.active span { color: #e0ebe1; }
.itinerary-heading { margin: 22px 0 14px; }
.itinerary-heading h2 { font-size: 21px; letter-spacing: -.025em; }
.itinerary-heading > span { color: #6f8375; font-size: 11px; }
.stop-row { grid-template-columns: 50px 16px minmax(0, 1fr); gap: 11px; padding-bottom: 15px; }
.stop-time { padding-top: 18px; color: #4c6d57; font-size: 12px; font-weight: 600; }
.stop-track:after { border-color: #cfdfd0; }
.stop-track > span { width: 10px; height: 10px; margin-top: 21px; border-color: #789e80; background: #fff; }
.stop-card {
  padding: 18px 20px;
  border-color: var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(24 62 39 / 3%);
}
.stop-card:hover { border-color: #a9c2ab; box-shadow: var(--shadow-soft); }
.stop-row.selected .stop-card { border-color: #92b197; background: #fbfdf9; box-shadow: 0 7px 25px rgb(30 74 51 / 9%); }
.stop-card h3 { color: #2e513a; font-size: 15px; font-weight: 650; }
.stop-kind { padding: 3px 7px; border-radius: 6px; color: #5e7562; font-size: 10px; }
.stop-description { margin: 8px 0 12px; color: #647769; font-size: 12px; line-height: 1.7; }
.stop-details { color: #687e6e; font-size: 11px; }
.complete-button { padding: 6px 9px; border-color: #d6e4d6; border-radius: 8px; background: #f3f8f1; color: #3f6c4b; font-size: 11px; }
.map-card { margin-bottom: 24px; border-color: var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.map-header { padding: 18px 20px; }
.map-header h2 { color: #355743; font-size: 15px; font-weight: 600; }
.map-kicker { color: #748e79; font-size: 10px; }
.map-footer { color: #667b6c; font-size: 10px; }
.travel-data-card { border-color: var(--line); border-radius: 14px; background: #fff; }
.travel-data-heading h2 { color: #2d4d39; font-size: 14px; }

/* Details stay available after the plan, without taking over the first view. */
.trip-details { margin-top: 38px; }
.trip-details-heading { margin-bottom: 16px; }
.trip-details-heading .eyebrow { color: #718977; font-size: 11px; }
.trip-details-heading h2 { margin-top: 5px; font-size: 19px; font-weight: 630; letter-spacing: -.02em; }
.flexible-planning-card, .departure-panel, .budget-reserves, .expense-summary {
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  color: #3b5d45;
  box-shadow: 0 3px 16px rgb(27 65 41 / 3%);
}
.flexible-planning-card, .departure-panel { margin: 10px 0; padding: 16px 18px; }
.departure-panel summary { color: #2d513a; font-size: 14px; }
.departure-panel summary span { color: #6d806f; }
.departure-option, .budget-reserve-item { border-color: var(--line); border-radius: 12px; background: var(--surface-warm); }
.expense-summary { margin: 14px 0 10px; padding: 14px 17px; }
.expense-summary p { color: #315a40; font-size: 13px; }
.expense-summary small, .expense-history { color: #718274; font-size: 11px; }
.expense-history { margin-bottom: 2px; }
.expense-history summary { padding: 10px 2px; }
.budget-reserves { margin-top: 14px; }
.references-panel { margin: 28px 0; border-color: var(--line); border-radius: 15px; background: #fff; }
.references-panel > summary { color: #2d513a; }
.reference-card, .route-result-card { border-color: var(--line); border-radius: 13px; background: #fff; }
.reference-card h3 { color: #294b37; }
.booking-section { margin-top: 27px; padding-top: 26px; border-color: var(--line); }
.section-heading { align-items: flex-start; gap: 16px; }
.section-heading h2 { color: #294937; font-size: 20px; font-weight: 630; letter-spacing: -.02em; }
.section-heading .eyebrow { color: #748e79; font-size: 10px; }
.booking-actions { gap: 8px; }
.order-card, .hotel-option, .supplier-offer-card { border-color: var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 17px rgb(27 65 41 / 4%); }
.hotel-option h3, .supplier-offer-heading h3 { color: #294c38; font-size: 15px; }
.hotel-option p, .supplier-offer-card > p { color: #6a7e6e; font-size: 12px; }
.hotel-data-mode { color: #716a56; }
.data-disclosure { color: #697d6d; font-size: 11px; }

/* Assistant, confirmations, and messaging */
.assistant-panel {
  top: 24px;
  height: min(770px, calc(100vh - 112px));
  min-height: 570px;
  border-color: var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.assistant-heading { padding: 18px 19px; border-color: var(--line); }
.agent-avatar { width: 39px; height: 39px; border-color: #dbe8d9; border-radius: 12px; background: #edf4eb; color: #477651; }
.assistant-heading h2 { color: #294b37; font-size: 14px; font-weight: 650; }
.assistant-heading p { color: #6b806f; font-size: 11px; }
.assistant-menu { border-color: var(--line); border-radius: 7px; color: #607d66; }
.assistant-scroll { padding: 19px; }
.agent-intro, .assistant-panel .agent-intro { padding: 16px; border-color: #e3ede0; border-radius: 13px; background: #f3f8f1; }
.intro-label, .assistant-panel .intro-label { color: #375e43; font-size: 13px; font-weight: 650; }
.agent-intro p, .assistant-panel .agent-intro p { color: #627b67; font-size: 12px; }
.quick-actions { gap: 7px; margin: 15px 0 22px; }
.quick-actions button, .assistant-panel .quick-actions button { padding: 8px 10px; border-color: #dae6d8; border-radius: 9px; background: #fff; color: #456a4e; font-size: 11px; }
.quick-actions button:hover { background: #f3f8f1; }
.pending-heading { color: #80643c; font-size: 12px; }
.action-card { padding: 15px; border-color: #e9dfc9; border-radius: 13px; background: #fffcf5; }
.action-card h3 { color: #725934; font-size: 13px; }
.action-card p { color: #746649; font-size: 12px; }
.confirm-button { min-height: 38px; border-radius: 9px; background: #2b6045; font-size: 12px; }
.chat-message, .assistant-panel .chat-message { color: #3d5946; font-size: 12px; line-height: 1.75; }
.chat-message.user { padding: 11px 13px; border-radius: 12px 12px 3px 12px; background: #edf5eb; color: #345841; }
.chat-message.assistant { color: #385644; }
.chat-message .message-label { color: #64836a; font-size: 10px; }
.tool-results { border-color: #9dbba0; border-radius: 0 9px 9px 0; background: #f3f8f1; }
.tool-result { color: #55745d; font-size: 11px; }
.chat-form { padding: 14px 15px 11px; border-color: var(--line); background: #fff; }
.chat-input-wrapper { padding: 9px; border-color: #dce7d9; border-radius: 12px; background: #fafcf9; }
.chat-input-wrapper textarea, .assistant-panel .chat-input-wrapper textarea { color: #294d37; font-size: 12px; }
.chat-input-wrapper textarea::placeholder { color: #8a9e8e; }
.send-button { width: 31px; height: 31px; border-radius: 9px; background: #306347; }
.chat-form > p { color: #738576; font-size: 10px; }

/* Shared controls and all forms / dialogs */
.primary-button, .secondary-button { min-height: 38px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.primary-button { background: #245541; box-shadow: 0 4px 12px rgb(24 70 47 / 9%); }
.primary-button:hover:not(:disabled), .new-trip-button:hover:not(:disabled) { background: #1b4735; }
.secondary-button { border-color: #dce7dc; background: #fff; color: #39634a; }
.secondary-button:hover:not(:disabled) { background: #f3f8f2; border-color: #b9cdb9; }
.text-button { color: #456b50; font-size: 11px; }
.modal:not(#model-dialog) {
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: min(90vh, 900px);
  padding: 30px;
  border-color: #e2e9df;
  border-radius: 21px;
  background: #fff;
  box-shadow: var(--shadow-float);
}
.modal.wide-modal:not(#model-dialog) { max-width: 740px; }
.modal::backdrop { background: rgb(18 42 28 / 50%); backdrop-filter: blur(8px); }
.modal-heading, .modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.modal-heading h2, .modal-header h2 { margin-top: 7px; color: #244a34; font-size: 23px; font-weight: 640; letter-spacing: -.03em; }
.modal-heading .eyebrow, .modal-header .eyebrow { color: #78927c; font-size: 10px; }
.modal-description { margin-bottom: 21px; color: #657b6a; font-size: 12px; line-height: 1.7; }
.icon-button { width: 34px; height: 34px; background: #f3f7f2; color: #466d4e; }
.field-label { margin: 17px 0 7px; color: #455f4c; font-size: 12px; font-weight: 600; }
.modal:not(#model-dialog) input,
.modal:not(#model-dialog) textarea,
.modal:not(#model-dialog) select {
  min-height: 43px;
  padding: 10px 12px;
  border-color: #dce7da;
  border-radius: 10px;
  background: #fbfcfa;
  color: #2d5039;
  font-size: 13px;
}
.modal:not(#model-dialog) textarea { min-height: 88px; }
.modal:not(#model-dialog) input:focus,
.modal:not(#model-dialog) textarea:focus,
.modal:not(#model-dialog) select:focus { border-color: #79a17e; box-shadow: 0 0 0 3px rgb(113 159 119 / 15%); }
.modal:not(#model-dialog) .checkbox-field input { width: 17px; height: 17px; min-height: 17px; padding: 0; }
.form-note, .muted-note { color: #718474; font-size: 11px; line-height: 1.7; }
.form-error { border-radius: 10px; }
.create-mode-tabs { gap: 8px; margin: 18px 0 21px; }
.create-mode-tabs .secondary-button { flex: 1; }
.create-mode-tabs .active { border-color: #93b49a; border-radius: 10px; background: #eaf3e9; color: #2b5a3b; }
.journal-text { border-color: var(--line); border-radius: 13px; background: var(--surface-warm); color: #385a43; }
.voice-mode-note { border-radius: 11px; color: #735f3e; }
.voice-sandbox { border-color: var(--line); }
.translation-result { border-color: var(--line); }
#model-dialog { border-radius: 22px; box-shadow: var(--shadow-float); }
#model-dialog .model-options label { border-radius: 12px; }
#model-dialog .model-options label:has(input:checked) { background: #edf5eb; }

/* The project overview is a quiet utility, not the page hero. */
#studio-panel { margin: 35px 0 0; }
#studio-panel details { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
#studio-panel summary { cursor: pointer; color: #41654a; font-size: 13px; font-weight: 600; }
#studio-panel .studio-note-copy, #studio-panel .studio-status { margin: 12px 0; color: #687d6c; font-size: 12px; line-height: 1.7; }
#studio-panel .studio-toolbar, #studio-panel .studio-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
#studio-panel .studio-toolbar { justify-content: space-between; }
#studio-panel .studio-summary { color: #566e5d; font-size: 12px; }
#studio-panel .studio-items { display: grid; gap: 10px; }
#studio-panel .studio-item { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-warm); }
#studio-panel .studio-item h3 { margin: 0 0 7px; font-size: 15px; }
#studio-panel .studio-item p { margin: 6px 0; color: #63776a; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#studio-panel .studio-stage { display: inline-block; padding: 3px 9px; border-radius: 100px; background: #eaf3e9; color: #345e41; font-size: 11px; }
#studio-panel button, #studio-panel .studio-download { padding: 8px 12px; border: 1px solid #d3e2d4; border-radius: 9px; background: #fff; color: #2d5b3c; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
#studio-panel button:disabled { opacity: .5; cursor: wait; }
#studio-panel .studio-flags { color: #795d37; }

/* Only shown while an Amap frequency limit is being retried. */
.amap-queue:not([open]) { display: none; }
.amap-queue {
  position: fixed; inset: 0; z-index: 310;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  display: grid; place-items: center; padding: 22px;
  background: rgb(21 41 34 / 32%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.amap-queue::backdrop { background: transparent; }
.amap-queue-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  width: min(100%, 360px); min-height: 126px;
  padding: 28px 30px; border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 22px; background: #fbfcf8;
  box-shadow: 0 28px 80px rgb(18 43 31 / 22%), 0 3px 14px rgb(18 43 31 / 9%);
}
.amap-queue-mark { display: flex; gap: 5px; align-items: center; height: 34px; }
.amap-queue-mark span {
  width: 5px; height: 10px; border-radius: 8px; background: #557e62;
  animation: amap-queue-wave 1.05s ease-in-out infinite;
}
.amap-queue-mark span:nth-child(2) { animation-delay: .14s; }
.amap-queue-mark span:nth-child(3) { animation-delay: .28s; }
.amap-queue-copy { display: grid; gap: 4px; }
.amap-queue-copy strong { color: #183c2d; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.amap-queue-copy span { color: #738575; font-size: 12px; letter-spacing: .015em; }
.amap-queue-progress { position: absolute; inset: auto 0 0; height: 3px; background: #e6eee2; }
.amap-queue-progress span {
  display: block; width: 34%; height: 100%; border-radius: inherit; background: #658b6a;
  animation: amap-queue-slide 1.8s ease-in-out infinite;
}
@keyframes amap-queue-wave { 0%, 65%, 100% { height: 10px; opacity: .6; } 32% { height: 30px; opacity: 1; } }
@keyframes amap-queue-slide { 0% { transform: translateX(-105%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .amap-queue-mark span, .amap-queue-progress span { animation: none; }
}

@media (max-width: 1280px) {
  .main-layout { gap: 20px; padding: 28px 26px 55px; grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); }
  .sidebar { width: 190px; padding-inline: 15px; }
  .workspace { width: calc(100% - 190px); margin-left: 190px; }
  .metric { padding-inline: 13px; }
  .metric strong { font-size: 21px; }
  .section-heading { flex-wrap: wrap; }
  .booking-actions { justify-content: flex-start; }
}
@media (max-width: 1050px) {
  .main-layout { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
  .assistant-panel { position: static; width: 100%; height: 600px; min-height: 0; }
  .sidebar { width: 170px; }
  .workspace { width: calc(100% - 170px); margin-left: 170px; }
  .trip-heading h1 { font-size: 32px; }
}
@media (max-width: 620px) {
  .sidebar { position: relative; width: 100%; padding: 13px 16px 11px; background: #f2f5ef; }
  .workspace { width: 100%; margin-left: 0; }
  .brand { margin-bottom: 2px; }
  .new-trip-button { margin: 0; min-height: 37px; }
  .topbar { height: auto; min-height: 55px; padding: 10px 17px; gap: 7px; }
  .breadcrumb { font-size: 11px; }
  .environment-badges { gap: 8px; }
  .connection-badge, .sandbox-badge { font-size: 10px; }
  .main-layout { padding: 24px 16px 50px; gap: 27px; }
  .trip-heading h1 { font-size: 30px; }
  .trip-subtitle { font-size: 12px; }
  .trip-metrics { margin: 17px 0 23px; padding: 15px 0; }
  .metric { padding-inline: 10px; }
  .metric strong { font-size: 19px; }
  .metric small { font-size: 10px; }
  .metric-label { font-size: 10px; }
  .itinerary-heading h2 { font-size: 19px; }
  .stop-row { grid-template-columns: 43px 12px minmax(0, 1fr); gap: 6px; }
  .stop-card { padding: 14px; }
  .stop-card h3 { font-size: 14px; }
  .stop-description { font-size: 11px; }
  .stop-details { font-size: 10px; }
  .booking-actions { width: 100%; }
  .assistant-panel { height: 600px; }
  .modal:not(#model-dialog) { padding: 23px; border-radius: 17px; }
  .modal-heading h2, .modal-header h2 { font-size: 21px; }
}
@media (max-width: 420px) {
  .trip-heading h1 { font-size: 27px; }
  .trip-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
  .section-toolbar { align-items: flex-start; gap: 8px; }
  .view-tabs { gap: 13px; }
  .view-tab { font-size: 11px; }
  .day-tab { padding: 7px 10px; }
  .booking-actions .primary-button, .booking-actions .secondary-button { flex: 1; }
  .form-columns { grid-template-columns: minmax(0, 1fr); }
}
