.departure-panel { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line, #e6e8df); border-radius: 12px; background: #fafbf5; }
.departure-panel summary { cursor: pointer; font-weight: 600; }
.departure-panel summary span { display: block; font-size: 12px; color: #66776c; font-weight: 400; margin: 6px 0; }
.departure-summary, .departure-gaps, .departure-option { font-size: 12px; line-height: 1.8; }
.departure-options { display: grid; gap: 12px; margin: 14px 0; }
.departure-option { border: 1px solid #dfe6da; border-radius: 10px; padding: 16px; background: white; }
.departure-option strong, .departure-evidence small { display: block; }
.departure-option strong { font-size: 16px; color: #334c3e; }
.departure-option ul, .departure-gaps ul { padding-left: 20px; }
.departure-evidence { padding: 10px; background: #f5f7ed; border-radius: 6px; }
.departure-form { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.departure-form input, .reference-visit-input { min-width: 0; padding: 10px; border: 1px solid #dfe6da; border-radius: 7px; background: white; }
.reference-pagination { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; font-size: 12px; }
#amap-preview { width: 100%; height: 100%; }
.map-viewport.has-amap { height: 360px; }
.reference-card-footer { flex-wrap: wrap; }
.reference-visit-choices { display: grid; gap: 10px; margin-top: 15px; }
.reference-visit-choice { text-align: left; white-space: normal; }
@media (max-width: 600px) { .departure-panel { padding: 16px 14px; } .departure-form input { width: 100%; } .departure-form button { width: 100%; } .departure-option { padding: 12px; } }
.travel-data-card {
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid #e6e8df;
  border-radius: 12px;
  background: #fafbf5;
}

/* The lodging controls remain readable on phones and long hotel names wrap. */
#lodging-form { display: grid; gap: 10px; margin: 14px 0 18px; }
#lodging-form input, #lodging-form select { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #d6ded4; border-radius: 8px; font: inherit; }
#lodging-status { white-space: pre-wrap; }
#lodging-results .hotel-option { overflow-wrap: anywhere; }
.weather-card {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e6e8df;
  border-radius: 0;
}
.references-panel {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf5;
  overflow: hidden;
}
.references-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.references-panel > summary::-webkit-details-marker { display: none; }
.references-panel > summary > span:first-child::before {
  content: "+";
  display: inline-block;
  width: 22px;
  font-size: 17px;
  color: var(--green);
}
.references-panel[open] > summary > span:first-child::before { content: "−"; }
.references-panel summary:focus-visible { outline: 3px solid #d49b64; outline-offset: -3px; }
.references-panel summary small {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  color: #66776c;
}
.reference-source-label, .reference-platform, .reference-unverified { font-size: 11px; font-weight: 400; }
.reference-source-label { color: #697567; }
.references-body { padding: 0 20px 20px; }
.references-intro, .reference-city, .reference-results { font-size: 12px; line-height: 1.8; }
.references-intro { color: #66776c; margin: 0 0 10px; }
.reference-city { color: var(--green); margin: 0 0 14px; overflow-wrap: anywhere; }
.reference-import-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.reference-import-details > summary { cursor: pointer; font-size: 12px; color: var(--green); }
.reference-import-form { display: grid; gap: 9px; padding-top: 10px; }
.reference-import-form .field-label { margin: 4px 0 0; }
.reference-import-form input, .reference-search-form input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9e0d3;
  border-radius: 7px;
  background: #fffefa;
  color: var(--ink);
  font-size: 13px;
}
.reference-import-form input[type="file"] { padding: 8px; font-size: 12px; }
.reference-import-form input::file-selector-button { border: 0; border-radius: 4px; background: var(--light-green); color: var(--green); padding: 7px; margin-right: 7px; cursor: pointer; }
.reference-import-form .data-caption { margin: 0; }
.reference-import-form button { justify-self: start; margin-top: 5px; }
.reference-search-form { display: flex; gap: 8px; margin: 16px 0 10px; }
.reference-search-form button { flex-shrink: 0; }
.reference-import-status { padding: 10px 12px; border-radius: 6px; background: #edf2e6; font-size: 12px; overflow-wrap: anywhere; }
.reference-results { display: grid; gap: 12px; margin-top: 14px; color: #66776c; }
.reference-card { min-width: 0; padding: 16px; border: 1px solid #dfe7d8; border-radius: 9px; background: #fffefa; overflow-wrap: anywhere; }
.reference-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #70836c; }
.reference-unverified { padding: 1px 6px; border-radius: 4px; background: #f3ede2; color: #866543; }
.reference-card h3 { font-size: 14px; color: var(--ink); margin: 9px 0 7px; }
.reference-excerpt { margin: 0 0 12px; white-space: pre-wrap; }
.reference-metadata { display: grid; gap: 3px; font-size: 11px; color: #7b8874; }
.reference-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.reference-card-footer a { color: var(--green); text-underline-offset: 3px; }
.reference-card-footer small { font-size: 10px; color: #7b8874; }
.reference-card-footer .data-caption { margin: 0; }
.reference-assistant-button { margin-top: 15px; display: inline-flex; align-items: center; gap: 5px; text-align: left; }
@media (max-width: 620px) {
  .references-panel > summary { padding: 15px 14px; }
  .references-panel summary small { margin-left: 5px; font-size: 10px; }
  .references-body { padding: 0 14px 16px; }
  .reference-card { padding: 13px; }
  .reference-search-form input { font-size: 12px; }
  .reference-search-form button { padding: 9px 12px; }
}
.travel-data-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.travel-data-heading h2 {
  font-size: 15px;
  margin: 0;
}
.data-caption {
  font-size: 12px;
  line-height: 1.7;
  color: #66776c;
  margin: 10px 0 0;
}
.data-caption a,
.navigation-leg a {
  color: #214f41;
  text-underline-offset: 3px;
}
.weather-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.weather-day {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
}
.weather-day strong {
  font-size: 13px;
}
.navigation-leg {
  padding: 10px 0;
  border-top: 1px solid #e6e8df;
  font-size: 12px;
  line-height: 1.7;
}
.navigation-leg div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 5px;
}
.route-query-button {
  border: 1px solid #cddbc9;
  border-radius: 5px;
  padding: 6px 10px;
  background: #edf3e8;
  color: #234f3b;
  font-size: 12px;
}
.route-result-summary {
  display: grid;
  gap: 7px;
  padding: 16px;
  margin-top: 20px;
  border: 1px solid #dfe7d8;
  border-radius: 8px;
  background: #f4f7ee;
  font-size: 12px;
  line-height: 1.8;
}
.route-result-summary strong {
  font-size: 14px;
}
.route-result-summary a {
  color: #2b6147;
  text-underline-offset: 3px;
}
.route-result-notice {
  padding: 12px 0;
  color: #6a745e;
  font-size: 12px;
  line-height: 1.8;
}
.route-result-list {
  display: grid;
  gap: 15px;
}
.route-result-card {
  border: 1px solid #dfe7d8;
  border-radius: 9px;
  padding: 17px;
  background: #fffefa;
}
.route-result-card > h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e7ebdf;
}
.route-metrics dt,
.route-muted {
  color: #75836c;
  font-size: 11px;
}
.route-metrics dd {
  color: #2b503d;
  font-size: 14px;
  margin: 5px 0 0;
}
.route-legs {
  padding-left: 21px;
  margin-top: 15px;
}
.route-leg {
  padding: 0 0 17px 4px;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.route-leg:last-child {
  padding-bottom: 0;
}
.route-leg > strong {
  font-size: 13px;
}
.route-leg > p,
.route-transit-option p {
  color: #68765f;
}
.route-transit-option {
  padding: 11px 13px;
  margin-top: 7px;
  border-radius: 6px;
  background: #f4f7ef;
}
.route-transit-option h4 {
  font-size: 13px;
  color: #33523e;
}
.route-transit-option summary {
  color: #536d45;
  cursor: pointer;
}
.route-alternative-or {
  color: #697c58;
  font-size: 11px;
  margin: 5px 0 0 12px;
}
.route-walking-instructions {
  color: #69785e;
  padding-left: 19px;
  margin-top: 5px;
}
@media (max-width: 620px) {
  .route-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-result-card {
    padding: 14px;
  }
}

:root {
  --ink: #263e36;
  --green: #214f41;
  --green-dark: #173c32;
  --muted: #849086;
  --line: #e6e8df;
  --paper: #fbfaf6;
  --cream: #f4f3eb;
  --orange: #d98753;
  --light-green: #eaf0e6;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d49b64;
  outline-offset: 3px;
}
button:hover:not(:disabled) {
  filter: brightness(0.98);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 222px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: #f1f2e9;
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 3px;
  margin: 0 0 45px 8px;
}
.brand-mark {
  background: var(--green-dark);
  color: #f3f0db;
  width: 43px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  font-size: 25px;
  font-family: Georgia, "Songti SC", serif;
  letter-spacing: 0;
  transform: rotate(-3deg);
}
.brand-subtitle {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  color: #7e8a7b;
  margin-top: 0;
}
.workspace-label {
  font-size: 11px;
  color: #7d897d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 12px;
}
.small-pill {
  font-size: 9px;
  border: 1px solid #d0d7c7;
  border-radius: 4px;
  padding: 0 5px;
  color: #819174;
}
.nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: 13px;
}
.nav-item.active {
  background: #e1e9d8;
  color: #355840;
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  color: #608055;
  font-size: 12px;
}
.new-trip-button {
  background: var(--green);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 10px;
  margin: 15px 0 29px;
  font-size: 12px;
  box-shadow: 0 3px 8px #1b3d3110;
}
.new-trip-button .icon {
  width: 16px;
}
.section-caption {
  font-size: 10px;
  color: #909788;
  letter-spacing: 0.8px;
  margin: 0 11px 12px;
}
.trip-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
}
.project-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: #65725e;
}
.project-button.selected {
  border-color: #dce2d2;
  background: #fafbf5;
  box-shadow: 0 2px 4px #32431e03;
}
.project-title {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #42533a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta {
  font-size: 10px;
  color: #929c89;
  display: flex;
  gap: 6px;
  margin-top: 5px;
  align-items: center;
}
.project-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d99c63;
  display: inline-block;
}
.project-button.selected .project-status-dot {
  background: #668866;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.studio-note {
  padding: 15px 11px 25px;
  color: #7c886f;
}
.studio-note > .icon,
.studio-note > span > .icon {
  width: 22px;
  color: #81976b;
  margin-bottom: 13px;
}
.studio-note strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #647655;
}
.studio-note p {
  font-size: 10px;
  line-height: 1.9;
  margin-top: 8px;
  color: #8f9986;
}
.profile {
  border-top: 1px solid #dce2d2;
  padding: 18px 3px 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #e3e6d5;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #788268;
}
.profile strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.profile small {
  font-size: 9px;
  color: #929b8a;
  display: block;
  margin-top: 1px;
}
.online-dot {
  height: 5px;
  width: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #8da879;
}
.profile > .online-dot {
  margin-left: auto;
}
.workspace {
  width: calc(100% - 222px);
  margin-left: 222px;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background: #fcfbf8;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: #9ca495;
  display: flex;
  gap: 14px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #78806f;
}
.environment-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.topbar-divider {
  width: 1px;
  height: 18px;
  background: #e2e8dc;
  margin: 0 4px;
  flex-shrink: 0;
  align-self: center;
}
.topbar-btn {
  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;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1;
  box-sizing: border-box;
}
.topbar-btn .icon {
  width: 13px;
  height: 13px;
  color: #5a7b60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}
.topbar-btn:hover {
  background: #eff5ee;
  border-color: #bed0b8;
  color: #24422e;
}
.memory-topbar-btn {
  background: #ffffff;
  border-color: #dce4d2;
}
.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;
}
.connection-badge {
  color: #54765b;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  background: #f6f8ef;
  border: 1px solid #dce4d0;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
  box-sizing: border-box;
}
.connection-badge i {
  width: 6px;
  height: 6px;
  background: #60865d;
  border-radius: 50%;
}
.sandbox-badge {
  border: 1px solid #e4dfcd;
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
  color: #826c43;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fcfaf3;
  font-size: 11px;
  line-height: 1;
  box-sizing: border-box;
}
.sandbox-badge .icon {
  width: 14px;
  height: 14px;
}
.main-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 380px;
  max-width: 1640px;
  margin: 0 auto;
  gap: 28px;
  padding: 28px 32px 42px;
}
.travel-workspace {
  min-width: 0;
}
.trip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9ba384;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tiny-line {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #a8b58d;
}
h1 {
  font-size: 29px;
  letter-spacing: 0.5px;
  font-weight: 650;
  line-height: 1.5;
  margin: 7px 0;
}
.trip-subtitle {
  font-size: 11px;
  color: #91998a;
  line-height: 1.8;
}
.status-pill {
  font-size: 10px;
  color: #879557;
  background: #eef0df;
  border: 1px solid #e5e8d0;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.preference-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0 23px;
}
.preference-tag {
  color: #7e8c72;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #edf0e5;
  border: 1px solid #e9ecdf;
}
.preference-tag:before {
  content: "#";
  color: #a2af95;
  margin-right: 4px;
}
.trip-metrics {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfcf8;
  padding: 20px 0;
  margin-bottom: 26px;
}
.metric {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 10px;
  color: #939c89;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-label > span {
  font-size: 8px;
  color: #a9afa1;
  padding: 0 3px;
  border: 1px solid #e8eadf;
  border-radius: 3px;
  line-height: 1.5;
}
.metric strong {
  font-size: 23px;
  letter-spacing: -0.5px;
  line-height: 1.5;
  font-weight: 550;
  display: block;
  margin-top: 5px;
}
.metric strong > span {
  font-size: 14px;
  color: #9ea58f;
  font-weight: 400;
}
.metric small {
  font-size: 9px;
  color: #9ba38f;
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}
.budget-meter {
  width: 100%;
  max-width: 142px;
  height: 3px;
  border-radius: 2px;
  background: #e8ecd9;
  margin-top: 6px;
  overflow: hidden;
}
.budget-meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: #91a17a;
}
.budget-meter.over > span {
  background: #ce8652;
}
.metric:first-child small {
  margin-top: 5px;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e1e5d8;
}
.view-tabs {
  display: flex;
  gap: 23px;
}
.view-tab {
  font-size: 12px;
  font-weight: 500;
  border: 0;
  background: transparent;
  padding: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #98a08f;
  border-bottom: 2px solid transparent;
  position: relative;
  top: 1px;
}
.view-tab.active {
  color: #355941;
  border-color: #355941;
}
.view-tab .icon {
  width: 15px;
  height: 15px;
}
.text-button {
  font-size: 10px;
  color: #7f8b72;
  display: flex;
  gap: 5px;
  align-items: center;
  border: 0;
  background: none;
  padding: 4px 0 14px;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.day-tabs {
  display: flex;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
  gap: 9px;
  margin: 20px 0;
}
.day-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #e3e6da;
  background: #f8f8f1;
  border-radius: 6px;
  padding: 7px 14px;
  color: #929b86;
  font-size: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.day-tab strong {
  font-weight: 600;
  font-size: 11px;
}
.day-tab.active {
  background: #315845;
  border-color: #315845;
  color: #f3f3e4;
}
.day-tab.active span {
  color: #c8d0b9;
}
.map-card {
  background: #f8f9f0;
  border: 1px solid #e2e7d7;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 25px;
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  gap: 8px;
}
.map-kicker {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #9ca98c;
  font-weight: 600;
}
.map-header h2 {
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
  color: #627251;
}
.map-location {
  font-size: 9px;
  color: #9ba98d;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.map-location .icon {
  width: 12px;
  height: 12px;
}
.map-viewport {
  height: 224px;
  position: relative;
  border-top: 1px solid #e8ecdf;
  border-bottom: 1px solid #e8ecdf;
}
.map-viewport > #map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      transparent 49%,
      #e5e9dc 49%,
      #e5e9dc 51%,
      transparent 51%
    ),
    linear-gradient(transparent 47%, #e5e9dc 47%, #e5e9dc 52%, transparent 52%),
    #eff0e6;
  background-size:
    45px 45px,
    60px 60px,
    auto;
  z-index: 2;
}
.map-river {
  position: absolute;
  left: 60%;
  top: -40%;
  width: 17px;
  height: 200%;
  background: #c7dfdc;
  transform: rotate(-16deg);
  border: 4px solid #e1eeea;
  border-top: 0;
  border-bottom: 0;
}
.district-label {
  position: absolute;
  color: #a5af9a;
  font-size: 11px;
  letter-spacing: 3px;
}
.label-north {
  top: 25px;
  left: 34%;
}
.label-west {
  top: 155px;
  left: 15%;
}
.label-east {
  top: 65px;
  right: 8%;
}
.map-fallback-notice {
  position: absolute;
  bottom: 8px;
  left: 10px;
  padding: 5px 9px;
  background: #fbfcf1ee;
  border: 1px solid #dee4d1;
  border-radius: 4px;
  font-size: 9px;
  color: #879379;
  display: flex;
  gap: 5px;
  align-items: center;
  max-width: 85%;
}
.map-fallback-notice .icon {
  width: 13px;
  height: 13px;
}
.fallback-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fffaf0;
  border: 1px solid #dae1cc;
  border-radius: 5px;
  padding: 3px 6px 3px 3px;
  font-size: 9px;
  color: #5e704b;
  box-shadow: 0 2px 6px #5c703812;
  transform: translate(-20%, -50%);
  z-index: 3;
  max-width: 140px;
}
.fallback-marker.selected {
  outline: 2px solid #bd9565;
}
.fallback-marker > span {
  width: 19px;
  height: 19px;
  background: #517057;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 9px;
}
.fallback-marker > strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 8px;
  color: #9aa58c;
  background: #fafbf5;
}
.map-footer > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
}
.route-dash {
  height: 0;
  width: 15px;
  border-top: 1px dashed #8e9e76;
  display: inline-block;
}
.selected-place {
  padding: 12px 16px;
  border-top: 1px solid #e7eadc;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.selected-place h3 {
  font-size: 12px;
  font-weight: 600;
}
.selected-place p {
  font-size: 10px;
  color: #89957b;
  margin-top: 2px;
  max-width: 430px;
}
.selected-place a {
  font-size: 9px;
  color: #87946d;
  white-space: nowrap;
  text-decoration: none;
}
.itinerary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 19px;
  gap: 10px;
}
.itinerary-heading h2 {
  font-size: 14px;
  font-weight: 600;
}
.itinerary-heading > span {
  font-size: 9px;
  color: #9ba58c;
}
.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stop-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 18px 1fr;
  gap: 9px;
  padding-bottom: 15px;
}
.stop-time {
  font-size: 10px;
  font-weight: 500;
  color: #819276;
  padding-top: 14px;
  white-space: nowrap;
}
.stop-track {
  position: relative;
  display: flex;
  justify-content: center;
}
.stop-track:after {
  content: "";
  position: absolute;
  width: 1px;
  top: 20px;
  bottom: -17px;
  left: 50%;
  border-left: 1px dashed #dbe0d0;
}
.stop-row:last-child .stop-track:after {
  display: none;
}
.stop-track > span {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: #f8f9ef;
  border: 2px solid #bcc8a7;
  border-radius: 50%;
  margin-top: 19px;
}
.stop-row.completed .stop-track > span {
  border-color: #729668;
  background: #729668;
}
.stop-card {
  padding: 13px 15px;
  border: 1px solid #e5e8db;
  border-radius: 8px;
  background: #fffefa;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.stop-card:hover {
  border-color: #b9c7a6;
}
.stop-row.selected .stop-card {
  border-color: #b5c6a0;
  background: #fcfdf6;
  box-shadow: 0 2px 9px #63884b09;
}
.stop-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stop-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stop-kind-icon {
  color: #95a580;
  display: inline-flex;
}
.stop-kind-icon .icon {
  width: 17px;
  height: 17px;
}
.stop-card h3 {
  font-weight: 550;
  font-size: 12px;
  color: #506348;
}
.stop-kind {
  color: #a4ac95;
  font-size: 8px;
  padding: 1px 5px;
  border: 1px solid #e8ecdf;
  border-radius: 3px;
  white-space: nowrap;
}
.stop-description {
  font-size: 10px;
  color: #939d87;
  line-height: 1.8;
  margin: 7px 0 10px;
}
.stop-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stop-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #9aa58c;
}
.stop-details > span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.stop-details .icon {
  height: 11px;
  width: 11px;
}
.complete-button {
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e3e8d8;
  border-radius: 4px;
  background: #f8faef;
  color: #8fa276;
  font-size: 9px;
}
.complete-button .icon {
  width: 11px;
  height: 11px;
}
.completed-label {
  font-size: 9px;
  color: #8da477;
  display: flex;
  align-items: center;
  gap: 4px;
}
.completed-label .icon {
  width: 11px;
  height: 11px;
}
.booking-section {
  border-top: 1px solid #e7eadf;
  padding-top: 22px;
  margin-top: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.section-heading h2 {
  font-size: 14px;
  font-weight: 550;
  margin-top: 5px;
}
.section-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.secondary-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5d6;
  background: #fbfcf5;
  border-radius: 5px;
  padding: 8px 12px;
  color: #7a8d67;
  font-size: 11px;
}
.secondary-button .icon {
  width: 14px;
  height: 14px;
}
.order-empty {
  border: 1px dashed #dfe5d3;
  border-radius: 7px;
  padding: 18px;
  font-size: 11px;
  color: #9aa68a;
  text-align: center;
  background: #f9faf3;
}
.order-card {
  padding: 14px;
  border: 1px solid #dfe6d3;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  background: #fafcf3;
}
.order-icon {
  width: 35px;
  height: 35px;
  background: #eef2e3;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #8a9c70;
}
.order-card h3 {
  font-size: 11px;
  font-weight: 600;
}
.order-card p {
  font-size: 9px;
  color: #94a17f;
  margin-top: 4px;
}
.order-amount {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.order-amount small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: #91a078;
  text-align: right;
}
.data-disclosure {
  display: flex;
  gap: 6px;
  font-size: 9px;
  color: #a1aa95;
  margin-top: 20px;
  line-height: 1.8;
}
.data-disclosure .icon {
  height: 13px;
  width: 13px;
  margin-top: 2px;
}
.assistant-panel {
  background: linear-gradient(180deg, #fffefb 0%, #fbfcf8 100%);
  border: 1px solid #e1e7d8;
  border-radius: 14px;
  align-self: start;
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 125px);
  min-height: 580px;
  max-height: 960px;
  overflow: hidden;
  box-shadow: 0 6px 24px -2px rgba(45, 60, 40, 0.06), 0 2px 6px rgba(45, 60, 40, 0.03);
  transition: box-shadow 0.2s ease;
}
.assistant-panel:hover {
  box-shadow: 0 8px 30px -2px rgba(45, 60, 40, 0.09), 0 2px 8px rgba(45, 60, 40, 0.04);
}
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1e6;
  background: #fffefa;
}
.agent-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #dce3cb;
  background: linear-gradient(135deg, #f1f5e8 0%, #e5ebd9 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #698356;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(60, 80, 50, 0.06);
}
.agent-avatar .icon {
  width: 18px;
  height: 18px;
}
.assistant-heading-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.assistant-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assistant-title-row h2 {
  font-size: 13px;
  font-weight: 600;
  color: #3b4e33;
  margin: 0;
  letter-spacing: 0.3px;
}
.assistant-pill {
  font-size: 9px;
  font-weight: 500;
  color: #728c60;
  background: #f1f6ea;
  border: 1px solid #d9e5cf;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.4;
}
.assistant-heading p {
  font-size: 9px;
  color: #90a07c;
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
}
.assistant-heading .online-dot {
  height: 5px;
  width: 5px;
  background: #73aa5a;
  box-shadow: 0 0 0 2px rgba(115, 170, 90, 0.2);
}
.assistant-heading-memory {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: #5d754c;
  background: #f4f8ed;
  border: 1px solid #d8e5cd;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.assistant-heading-memory:hover {
  background: #eaf2e0;
  border-color: #c0d4b0;
  color: #334a23;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(60, 80, 50, 0.08);
}
.assistant-heading-memory .icon {
  width: 11px;
  height: 11px;
  color: #728f5e;
}
.assistant-menu {
  margin-left: auto;
  font-size: 10px;
  color: #9da88c;
  border: 1px solid #e5e9dc;
  border-radius: 4px;
  padding: 1px 5px;
}
.assistant-scroll {
  overflow: auto;
  padding: 18px 18px 16px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #dce3d1 transparent;
  display: flex;
  flex-direction: column;
}
.agent-intro {
  background: linear-gradient(135deg, #f2f6eb 0%, #fbfbf6 100%);
  padding: 15px 16px;
  border: 1px solid #e5ecd9;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(50, 70, 40, 0.02);
  margin-bottom: 4px;
}
.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #739062;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.intro-eyebrow .icon {
  width: 11px;
  height: 11px;
}
.intro-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b623d;
  letter-spacing: 0.3px;
}
.agent-intro p {
  font-size: 11px;
  line-height: 1.8;
  color: #78896d;
  margin-top: 5px;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.quick-actions button,
.quick-action-chip {
  border: 1px solid #dce4d2;
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 11px;
  background: #ffffff;
  color: #5d7050;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 80, 50, 0.04);
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quick-actions button:hover,
.quick-action-chip:hover {
  background: #f5f8ef;
  border-color: #c4d4b6;
  color: #3b4e2f;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(60, 80, 50, 0.08);
}
.quick-actions .icon,
.quick-action-chip .icon {
  height: 13px;
  width: 13px;
  color: #799268;
}
.pending-section {
  margin: 14px 0 8px;
  animation: pendingSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pendingSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pending-heading {
  font-size: 11px;
  font-weight: 600;
  color: #9c6c22;
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
  padding: 2px 4px;
}
.attention-dot {
  height: 7px;
  width: 7px;
  background: #e09b2d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224, 155, 45, 0.25);
  animation: pulseAttention 2s infinite ease-in-out;
}
@keyframes pulseAttention {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}
.pending-heading > span:last-child {
  margin-left: auto;
  color: #b7aa8c;
}
.action-card {
  background: #fffdf7;
  border: 1px solid #ebd8b2;
  border-radius: 10px;
  padding: 16px;
  margin: 8px 0;
  box-shadow: 0 4px 16px rgba(180, 130, 50, 0.09), 0 1px 3px rgba(180, 130, 50, 0.05);
  transition: all 0.2s ease;
}
.action-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #7d5921;
}
.action-card p {
  font-size: 11px;
  color: #8c6e3b;
  margin: 6px 0 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.action-amount {
  font-size: 12px;
  font-weight: 600;
  color: #997b4d;
  margin: 8px 0;
}
.confirm-button {
  border: 0;
  background: linear-gradient(135deg, #6c8a58 0%, #577344 100%);
  color: white;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(70, 95, 55, 0.2);
  transition: all 0.18s ease;
  margin-top: 10px;
}
.confirm-button:hover {
  background: linear-gradient(135deg, #789962 0%, #61814d 100%);
  box-shadow: 0 4px 10px rgba(70, 95, 55, 0.28);
  transform: translateY(-1px);
}
.confirm-button .icon {
  width: 13px;
  height: 13px;
}
.action-card .secondary-button {
  margin-top: 6px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  padding: 6px;
  background: transparent;
  border: 1px solid #ebd9b5;
  color: #927546;
}
.action-card .secondary-button:hover {
  background: #fbf5e7;
  color: #6d542a;
}
.pending-jump-banner {
  background: #fef8eb;
  border-top: 1px solid #ebd7af;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #8f6521;
  font-weight: 500;
  box-shadow: 0 -2px 8px rgba(180, 130, 50, 0.06);
  animation: fadeInBanner 0.2s ease-out;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pending-jump-banner .jump-action-btn {
  margin-left: auto;
  border: 1px solid #d8b87e;
  background: #ffffff;
  color: #805719;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pending-jump-banner .jump-action-btn:hover {
  background: #fbf2dc;
  color: #65430f;
  transform: translateY(-1px);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.chat-message {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.user {
  padding: 10px 12px;
  border-radius: 8px 8px 1px 8px;
  background: #edf2e5;
  color: #61774f;
  align-self: flex-end;
  max-width: 92%;
}
.chat-message.assistant {
  color: #859176;
  padding: 0 3px;
}
.chat-message .message-label {
  display: block;
  color: #a4b091;
  font-size: 8px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}
.tool-results {
  background: #f6f8ef;
  border-left: 2px solid #c3d0ae;
  padding: 8px 9px;
  border-radius: 0 5px 5px 0;
  margin: 8px 0;
  white-space: normal;
}
.tool-result {
  font-size: 9px;
  color: #8c9d78;
  display: flex;
  gap: 5px;
  margin: 3px 0;
}
.tool-result .icon {
  height: 11px;
  width: 11px;
  margin-top: 2px;
}
.tool-result.error {
  color: #b97b68;
}
.typing-message {
  color: #a8b196;
  font-size: 10px;
  padding: 4px 2px;
}
.event-section {
  border-top: 1px dashed #e4e8dc;
  margin-top: 20px;
  padding-top: 12px;
}
.event-section[open] {
  padding-bottom: 8px;
}
.event-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #8c9a7b;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 4px 2px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.event-caption::-webkit-details-marker {
  display: none;
}
.event-caption:hover {
  color: #556245;
  background: rgba(228, 235, 218, 0.35);
}
.event-count-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #edf0e5;
  color: #6d7b5b;
  font-weight: 600;
}
.event-expand-icon {
  margin-left: auto;
  font-size: 10px;
  color: #9baa88;
  transition: transform 0.2s ease;
}
.event-section[open] .event-expand-icon {
  transform: rotate(180deg);
}
.event-item {
  display: flex;
  gap: 7px;
  font-size: 9px;
  color: #a0ad8e;
  line-height: 1.8;
  margin: 9px 0;
}
.event-dot {
  width: 4px;
  height: 4px;
  background: #b6c5a1;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.chat-form {
  padding: 13px 14px 9px;
  background: #fffefa;
  border-top: 1px solid #eef0e6;
}
.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  border: 1px solid #e2e7d9;
  border-radius: 7px;
  padding: 9px;
  background: #fafbf5;
}
.chat-input-wrapper:focus-within {
  border-color: #b5c69d;
}
.chat-input-wrapper textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: none;
  color: #6b8058;
  font-size: 10px;
  line-height: 1.8;
  padding: 0 7px 0 0;
  max-height: 130px;
}
.chat-input-wrapper textarea::placeholder {
  color: #afb9a1;
}
.send-button {
  height: 26px;
  width: 26px;
  border: 0;
  background: #b8c6a3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.send-button .icon {
  height: 14px;
  width: 14px;
}
.chat-form > p {
  font-size: 8px;
  color: #b3bba8;
  margin: 7px 0 0;
  text-align: center;
}
.chat-attach-button { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #edf2e5; color: #526943; font-size: 22px; cursor: pointer; }
.chat-attach-button:disabled { opacity: .5; cursor: default; }
.chat-form.chat-drop-active { outline: 2px dashed #71885f; outline-offset: -4px; background: #f2f6e9; }
.chat-attachment-list { display: grid; gap: 6px; margin-bottom: 8px; }
.chat-attachment-list[hidden] { display: none; }
.chat-draft-file { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 10px; background: #f1f4e9; }
.chat-draft-file > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.chat-draft-file small { display: block; color: #748268; }
.chat-draft-file img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.chat-upload-status { font-size: 12px; color: #657851; margin-bottom: 5px; }
.message-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; white-space: normal; }
.message-attachment { display: flex; flex-direction: column; max-width: 180px; padding: 8px; border: 1px solid #d7dfcc; border-radius: 10px; background: #fffefa; color: #526943; text-decoration: none; overflow-wrap: anywhere; }
.message-attachment img { width: 100%; max-height: 160px; object-fit: contain; border-radius: 6px; margin-bottom: 6px; }
.message-attachment small { font-size: 11px; color: #738267; }
.message-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 5px; white-space: normal; }
.message-actions .text-button { padding: 4px 8px; font-size: 12px; }
.chat-message-editor { min-width: 0; width: 100%; white-space: normal; }
.chat-message-editor label { display: block; margin-bottom: 6px; }
.chat-message-editor textarea { box-sizing: border-box; width: 100%; min-height: 100px; resize: vertical; border: 1px solid #bac9a8; border-radius: 9px; padding: 9px; font: inherit; color: #42563a; background: #fffefa; }
.chat-message-editor p { font-size: 12px; line-height: 1.6; }
.chat-edit-actions { display: flex; align-items: center; gap: 12px; }
.modal {
  border: 1px solid #e1e7d8;
  border-radius: 15px;
  padding: 30px;
  max-width: 470px;
  width: calc(100% - 32px);
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 22px 100px #173c322b;
  max-height: 90vh;
  overflow: auto;
}
.modal::backdrop {
  background: #1c382b66;
  backdrop-filter: blur(5px);
}
#model-dialog {
  max-width: 440px;
  padding: 38px;
  border: 1px solid #e8ebe5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px #173c3226;
}
#model-dialog::backdrop { background: #142b2599; backdrop-filter: blur(8px); }
.model-heading { margin-bottom: 30px; }
.model-brand { color: #8b9a89; font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.model-brand span { margin: 0 3px; }
#model-dialog .model-heading h2 {
  margin: 13px 0 0;
  color: #253c33;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.model-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 26px; }
.model-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 17px 18px;
  border: 1px solid #e3e8e0;
  border-radius: 15px;
  color: #33483d;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.model-options label:hover { border-color: #98aa9b; }
.model-options label:has(input:checked) {
  border-color: #4d705d;
  background: #f3f7f1;
  box-shadow: inset 0 0 0 1px #4d705d;
}
.model-options label:has(input:focus-visible) { outline: 3px solid #b8cdbb; outline-offset: 3px; }
.modal .model-options input { order: 2; width: 17px; height: 17px; margin: 0; accent-color: #315c46; }
#model-dialog .field-label { margin: 0 0 9px; color: #526359; font-size: 12px; font-weight: 600; }
#model-dialog #model-api-key {
  height: 48px;
  padding: 12px 15px;
  border-radius: 11px;
  background: #fafbf8;
  color: #243b30;
  font-size: 14px;
}
#model-dialog #model-api-key::placeholder { color: #98a49a; }
#model-form > .primary-button,
#model-form > .secondary-button { width: 100%; min-height: 48px; border-radius: 11px; font-size: 13px; }
#model-form > .primary-button { margin-top: 30px; }
#model-form > .secondary-button { margin-top: 8px; border: 0; background: transparent; color: #738777; }
#model-form > .secondary-button:hover { background: #f4f7f1; color: #315c46; }
@media (max-width: 600px) {
  #model-dialog { padding: 28px 24px; }
  #model-dialog .model-heading h2 { font-size: 24px; }
  .model-options label { min-height: 66px; padding: 14px; font-size: 14px; }
}
.wide-modal {
  max-width: 630px;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-heading h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 7px;
}
.modal-description {
  color: #8c9880;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 23px;
}
.icon-button {
  border: 0;
  background: #f1f4e9;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  color: #889776;
  flex-shrink: 0;
}
.icon-button .icon {
  height: 15px;
  width: 15px;
}
.field-label {
  display: block;
  font-size: 11px;
  color: #7c8d6b;
  margin: 16px 0 6px;
}
.modal input,
.modal textarea,
.modal select {
  width: 100%;
  border: 1px solid #dfe5d5;
  border-radius: 6px;
  background: #fafbf5;
  padding: 10px 12px;
  color: #62794e;
  font-size: 12px;
  outline: none;
  resize: vertical;
}
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: #9fb686;
  box-shadow: 0 0 0 3px #dde7d047;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-columns > div { min-width: 0; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: #516b4f;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}
.modal .checkbox-field input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #315c46;
}
.flexible-planning-card {
  background: #f2f6ee;
  border: 1px solid #dce5d3;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  color: #516b4f;
  font-size: 12px;
  line-height: 1.85;
}
.planning-condition-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.planning-condition-heading strong { font-size: 14px; }
.flexible-planning-card p { margin: 7px 0; }
.flexible-planning-card summary { cursor: pointer; margin-top: 5px; }
.flexible-planning-card ul { margin: 6px 0; padding-left: 19px; }
.budget-reserves {
  border: 1px solid #dce5d3;
  border-radius: 10px;
  background: #fbfcf7;
  padding: 17px;
  margin-bottom: 20px;
}
.planning-notice.budget-overrun-notice {
  color: #9c4433;
  background: #fff3ee;
  border-color: #ecc9bc;
}
.budget-reserves-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 13px; }
.budget-reserves-heading h2 { font-size: 15px; margin: 0 0 5px; }
.budget-reserves-heading p { font-size: 11px; color: #737f69; margin: 0; }
.budget-reserves-heading > strong { font-size: 20px; color: #315c46; white-space: nowrap; }
.budget-reserve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.budget-reserve-item { border: 1px solid #e8ecdf; border-radius: 7px; padding: 10px; min-width: 0; }
.budget-reserve-item > div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 12px; color: #516b4f; }
.budget-reserve-item strong { white-space: nowrap; }
.budget-reserve-item p { font-size: 11px; line-height: 1.7; color: #737f69; margin: 7px 0 0; overflow-wrap: anywhere; }
.stop-preference-note, .stop-crowd-note { font-size: 11px; line-height: 1.8; margin: 8px 0; }
.stop-preference-note { color: #516b4f; }
.stop-crowd-note { color: #806942; }
button:disabled { cursor: not-allowed; }
@media (max-width: 420px) {
  .budget-reserves { padding: 13px; }
  .budget-reserve-grid { gap: 7px; }
  .flexible-planning-card { padding: 12px; }
}
.form-note {
  display: flex;
  gap: 7px;
  color: #a0ab92;
  font-size: 10px;
  margin: 15px 0 20px;
  line-height: 1.8;
}
.form-note .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.primary-button {
  border: 0;
  border-radius: 6px;
  background: #315c46;
  color: #fafbf4;
  padding: 11px 16px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.primary-button .icon {
  width: 16px;
  height: 16px;
}
.full-width {
  width: 100%;
}
.form-error {
  font-size: 11px;
  padding: 10px 12px;
  background: #faeee7;
  border: 1px solid #ead6c6;
  border-radius: 5px;
  margin: 12px 0;
  color: #aa7256;
}
.hotel-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.booking-actions .primary-button {
  padding: 9px 12px;
  font-size: 12px;
}
#hotel-offers-nationality {
  text-transform: uppercase;
}
.offer-query-summary {
  margin: 20px 0 14px;
  padding: 15px;
  background: #f2f4ea;
  border: 1px solid #e1e6d7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.offer-query-summary > strong {
  font-size: 12px;
}
.offer-query-summary > p {
  flex-basis: 100%;
  font-size: 12px;
  color: #637360;
  line-height: 1.7;
}
.offer-mode {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.offer-mode.test {
  color: #865d2b;
  background: #fbefd9;
}
.offer-mode.live {
  color: #245340;
  background: #e4efe4;
}
.supplier-offers-list {
  display: grid;
  gap: 12px;
}
.supplier-offer-card {
  padding: 18px;
  border: 1px solid #dde4d3;
  border-radius: 8px;
  background: #fffefa;
  overflow-wrap: anywhere;
}
.supplier-offer-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.supplier-offer-heading h3 {
  font-size: 15px;
  line-height: 1.5;
}
.supplier-offer-heading p,
.supplier-offer-card > p,
.offer-taxes {
  font-size: 12px;
  line-height: 1.75;
  color: #66755f;
}
.supplier-offer-heading p {
  margin-top: 5px;
}
.supplier-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin: 13px 0 9px;
}
.supplier-offer-price strong {
  font-size: 22px;
  color: #214f41;
}
.supplier-offer-price span {
  font-size: 12px;
  color: #6a775f;
}
.offer-taxes {
  padding-left: 18px;
  margin: 8px 0;
}
.supplier-offer-card .offer-refund {
  margin-top: 12px;
  font-weight: 600;
  color: #535e49;
}
.supplier-offer-card .offer-view-only {
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid #e8ebdf;
  color: #7b856f;
  font-size: 11px;
}
@media (max-width: 620px) {
  .booking-section .section-heading,
  .supplier-offer-heading {
    flex-wrap: wrap;
  }
  .booking-actions {
    justify-content: flex-start;
  }
  .supplier-offer-card {
    padding: 14px;
  }
}
.hotel-option {
  border: 1px solid #e0e7d3;
  border-radius: 9px;
  padding: 17px;
  background: #fafcf4;
}
.hotel-option h3 {
  font-size: 14px;
  font-weight: 550;
}
.hotel-option .hotel-name-en {
  font-size: 10px;
  color: #a0ac8c;
  margin-top: 3px;
}
.hotel-option p {
  font-size: 11px;
  color: #8f9e7b;
  margin: 9px 0 14px;
}
.hotel-option-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hotel-option-bottom strong {
  font-size: 18px;
  font-weight: 500;
}
.hotel-option-bottom strong small {
  font-size: 9px;
  font-weight: 400;
  color: #97a783;
  margin-left: 4px;
}
.journal-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 2.15;
  padding: 20px;
  background: #f9faef;
  border: 1px solid #e7ebd9;
  border-radius: 8px;
  color: #6b8058;
  margin-top: 20px;
}
.voice-mode-note {
  display: flex;
  gap: 6px;
  background: #f6f3e7;
  border: 1px solid #eae4d2;
  color: #a0916b;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  line-height: 1.8;
  margin-top: -7px;
}
.voice-mode-note .icon {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.voice-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
}
.muted-note {
  font-size: 10px;
  color: #98a68a;
  margin-top: 8px;
  line-height: 1.8;
}
.translation-result {
  border-top: 1px solid #e1e7d6;
  margin-top: 20px;
  padding-top: 18px;
}
.translation-label {
  font-size: 10px;
  color: #a0ae8b;
  margin: 12px 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.translation-result p:not(.muted-note) {
  font-size: 12px;
  color: #869874;
}
.translation-result .translation-output {
  font-size: 16px !important;
  color: #536f40 !important;
  line-height: 1.9;
  margin: 7px 0 13px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid #d7e0ca;
  border-radius: 8px;
  background: #fafff2;
  box-shadow: 0 5px 25px #1a3e231c;
  color: #587146;
  font-size: 12px;
  z-index: 200;
  max-width: calc(100vw - 32px);
}
.toast.error {
  color: #a06e52;
  background: #fff8ef;
  border-color: #edddc9;
}
.global-error {
  margin: 15px 32px 0;
  padding: 12px 16px;
  border: 1px solid #e7d6c0;
  background: #faf2e7;
  border-radius: 6px;
  font-size: 12px;
  color: #9c7d59;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.global-error button {
  background: #f4e5d3;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  color: inherit;
  white-space: nowrap;
}
.initial-loading {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #98a885;
  font-size: 12px;
  gap: 15px;
}
.loading-orbit {
  height: 32px;
  width: 32px;
  border: 2px solid #e2e9d5;
  border-top-color: #6a8852;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  height: 70vh;
  min-height: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.empty-symbol {
  height: 64px;
  width: 64px;
  background: #e6eddb;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #8fa675;
  font-family: serif;
  margin-bottom: 7px;
}
.empty-state h1 {
  font-size: 25px;
}
.empty-state p {
  color: #9aa88c;
  font-size: 12px;
  line-height: 2;
  margin-bottom: 12px;
}
.loading-line {
  font-size: 11px;
  color: #9ba68e;
  text-align: center;
  padding: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.leaflet-container {
  font: inherit;
  background: #edf1e6;
}
.leaflet-marker-icon.trip-map-marker {
  background: none;
  border: 0;
}
.trip-map-marker > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #4b7156;
  border: 3px solid #f7f7e9;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  box-shadow: 0 2px 8px #1c39262e;
}
.trip-map-marker.selected > span {
  background: #d39461;
}
.leaflet-control-attribution {
  font-size: 8px !important;
}
.leaflet-popup-content {
  font-family: var(--font);
  font-size: 11px;
}
.map-focused .map-viewport {
  height: 420px;
}
.map-focused #itinerary-section {
  display: none;
}
.map-focused .map-header {
  padding: 20px;
}
.map-focused .selected-place {
  padding: 17px;
}
.map-focused .map-card {
  margin-bottom: 20px;
}
@media (min-width: 1600px) {
  .main-layout {
    gap: 36px;
    padding-top: 36px;
    grid-template-columns: minmax(580px, 1fr) 420px;
  }
  .sidebar {
    width: 240px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .workspace {
    margin-left: 240px;
    width: calc(100% - 240px);
  }
  .assistant-panel {
    height: calc(100vh - 145px);
  }
  .trip-heading h1 {
    font-size: 33px;
  }
  .map-viewport {
    height: 260px;
  }
  .stop-card {
    padding: 16px 18px;
  }
  .stop-card h3 {
    font-size: 13px;
  }
  .stop-description {
    font-size: 11px;
  }
  .stop-row {
    padding-bottom: 18px;
  }
}
@media (max-width: 1240px) {
  .sidebar {
    width: 195px;
    padding: 26px 15px 18px;
  }
  .workspace {
    width: calc(100% - 195px);
    margin-left: 195px;
  }
  .main-layout {
    padding: 26px 22px;
    gap: 22px;
    grid-template-columns: minmax(400px, 1fr) 340px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 0 14px;
  }
  .metric strong {
    font-size: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .assistant-scroll {
    padding: 16px 13px;
  }
  .assistant-heading {
    padding: 17px 13px;
  }
  .map-header {
    padding: 13px;
  }
  .map-location {
    display: none;
  }
  .day-tab {
    padding: 7px 12px;
  }
  .brand {
    margin-left: 6px;
  }
  .global-error {
    margin-left: 22px;
    margin-right: 22px;
  }
}
@media (max-width: 1060px) {
  .main-layout {
    grid-template-columns: minmax(340px, 1fr) 300px;
    gap: 18px;
    padding: 24px 18px;
  }
  .sidebar {
    width: 170px;
    padding: 25px 11px 15px;
  }
  .workspace {
    margin-left: 170px;
    width: calc(100% - 170px);
  }
  .brand {
    font-size: 22px;
    gap: 8px;
    letter-spacing: 2px;
    margin-left: 8px;
  }
  .brand-mark {
    width: 35px;
    height: 39px;
    font-size: 23px;
  }
  .brand-subtitle {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .workspace-label {
    padding: 0 9px;
  }
  .trip-metrics {
    padding: 15px 0;
  }
  .metric {
    padding: 0 11px;
  }
  .metric strong {
    font-size: 18px;
  }
  .metric small {
    font-size: 8px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-label > span {
    display: none;
  }
  .map-footer {
    font-size: 7px;
    padding: 8px;
  }
  .map-footer #map-credit {
    display: none;
  }
  .map-header h2 {
    font-size: 11px;
  }
  .stop-row {
    grid-template-columns: 36px 11px 1fr;
    gap: 7px;
  }
  .stop-card {
    padding: 12px;
  }
  .stop-description {
    font-size: 9px;
  }
  .stop-details {
    gap: 6px;
    font-size: 8px;
  }
  .stop-card h3 {
    font-size: 11px;
  }
  .stop-kind {
    font-size: 7px;
  }
  .stop-title-group {
    gap: 5px;
  }
  .stop-kind-icon {
    display: none;
  }
  .view-tabs {
    gap: 16px;
  }
  .view-tab {
    font-size: 11px;
  }
  .text-button {
    font-size: 9px;
  }
  .assistant-panel {
    min-height: 560px;
  }
  .topbar {
    padding: 0 20px;
  }
  .environment-badges {
    gap: 9px;
    font-size: 9px;
  }
  .trip-heading {
    align-items: flex-start;
  }
  .status-pill {
    margin-top: 28px;
    font-size: 9px;
  }
  .trip-subtitle {
    font-size: 10px;
  }
  .studio-note {
    padding-left: 7px;
  }
  .profile {
    gap: 6px;
  }
  .profile small {
    font-size: 8px;
  }
  .profile > .online-dot {
    display: none;
  }
  .section-heading h2 {
    font-size: 12px;
  }
  .section-heading > .secondary-button {
    font-size: 10px;
    padding: 7px 9px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 170px;
  }
  .main-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 25px;
  }
  .assistant-panel {
    position: relative;
    top: auto;
    height: 580px;
    max-height: none;
    min-height: 0;
  }
  .assistant-scroll {
    padding: 20px;
  }
  .assistant-heading {
    padding: 17px 20px;
  }
  .assistant-panel .quick-actions {
    margin-bottom: 18px;
  }
  .assistant-panel .agent-intro {
    padding: 15px;
  }
  .assistant-panel .chat-messages {
    gap: 13px;
  }
  .map-viewport {
    height: 260px;
  }
  .trip-metrics {
    padding: 20px 0;
  }
  .metric {
    padding: 0 20px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric-label > span {
    display: inline;
  }
  .metric small {
    font-size: 9px;
  }
  .metric-label {
    font-size: 10px;
  }
  .stop-description {
    font-size: 11px;
  }
  .stop-card h3 {
    font-size: 12px;
  }
  .stop-kind-icon {
    display: inline-flex;
  }
  .stop-row {
    grid-template-columns: 45px 15px 1fr;
    gap: 9px;
  }
  .stop-details {
    font-size: 9px;
    gap: 12px;
  }
  .map-footer {
    font-size: 8px;
  }
  .map-footer #map-credit {
    display: inline;
  }
  .map-header h2 {
    font-size: 12px;
  }
  .map-location {
    display: flex;
  }
  .environment-badges {
    gap: 8px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .topbar {
    height: 68px;
  }
  .trip-heading h1 {
    font-size: 28px;
  }
  .global-error {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 620px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 15px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    background: #f1f2e9;
  }
  .brand {
    margin: 0 0 6px;
    font-size: 21px;
    gap: 8px;
  }
  .brand-mark {
    height: 34px;
    width: 33px;
    font-size: 21px;
    border-radius: 9px 9px 9px 3px;
  }
  .brand-subtitle {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .sidebar .workspace-label,
  .sidebar .nav-item,
  .sidebar .section-caption,
  .sidebar-bottom {
    display: none;
  }
  .new-trip-button {
    margin: 1px 0 7px;
    padding: 8px 13px;
    height: 33px;
    font-size: 10px;
    align-self: center;
  }
  .trip-list {
    grid-column: 1/-1;
    display: flex;
    flex-direction: row;
    gap: 7px;
    padding-bottom: 12px;
    overflow-x: auto;
    margin-top: 0;
  }
  .project-button {
    min-width: 155px;
    width: 155px;
    padding: 8px 11px;
    flex-shrink: 0;
  }
  .project-title {
    font-size: 10px;
  }
  .project-meta {
    font-size: 8px;
    margin-top: 3px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 49px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 6px;
  }
  .environment-badges {
    font-size: 8px;
  }
  .sandbox-badge {
    padding: 3px 5px;
    font-size: 8px;
    gap: 3px;
  }
  .sandbox-badge .icon {
    width: 10px;
    height: 10px;
  }
  .connection-badge {
    gap: 4px;
  }
  .connection-badge i {
    height: 4px;
    width: 4px;
  }
  .main-layout {
    padding: 25px 18px;
    gap: 22px;
  }
  .trip-heading h1 {
    font-size: 26px;
    letter-spacing: 0;
  }
  .eyebrow {
    font-size: 8px;
  }
  .trip-subtitle {
    font-size: 10px;
  }
  .preference-tags {
    margin: 14px 0 20px;
  }
  .preference-tag {
    font-size: 9px;
  }
  .trip-metrics {
    padding: 17px 0;
    margin-bottom: 23px;
    grid-template-columns: 1.15fr 1fr 0.9fr;
  }
  .metric {
    padding: 0 13px;
  }
  .metric strong {
    font-size: 21px;
  }
  .metric small {
    font-size: 8px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-label > span {
    font-size: 7px;
  }
  .map-viewport {
    height: 235px;
  }
  .map-header {
    padding: 13px 14px;
  }
  .map-header h2 {
    font-size: 11px;
  }
  .map-location {
    font-size: 8px;
  }
  .map-footer {
    font-size: 7px;
    padding: 8px 10px;
  }
  .map-footer #map-credit {
    display: none;
  }
  .day-tabs {
    margin: 16px 0;
  }
  .day-tab {
    padding: 7px 12px;
    font-size: 9px;
  }
  .day-tab strong {
    font-size: 10px;
  }
  .stop-row {
    grid-template-columns: 34px 11px 1fr;
    gap: 6px;
  }
  .stop-time {
    font-size: 9px;
  }
  .stop-card {
    padding: 12px;
  }
  .stop-card h3 {
    font-size: 11px;
  }
  .stop-description {
    font-size: 10px;
  }
  .stop-kind-icon .icon {
    width: 15px;
    height: 15px;
  }
  .stop-kind {
    font-size: 7px;
  }
  .stop-details {
    font-size: 8px;
    gap: 9px;
  }
  .complete-button {
    font-size: 8px;
    padding: 3px 5px;
  }
  .stop-track > span {
    width: 7px;
    height: 7px;
  }
  .itinerary-heading h2 {
    font-size: 13px;
  }
  .itinerary-heading > span {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .assistant-panel {
    height: 610px;
  }
  .assistant-heading h2 {
    font-size: 13px;
  }
  .assistant-heading p {
    font-size: 9px;
  }
  .intro-label {
    font-size: 13px;
  }
  .agent-intro p {
    font-size: 11px;
  }
  .quick-actions button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .chat-message {
    font-size: 12px;
  }
  .chat-form {
    padding: 14px;
  }
  .chat-input-wrapper textarea {
    font-size: 12px;
  }
  .chat-form > p {
    font-size: 9px;
  }
  .send-button {
    height: 30px;
    width: 30px;
  }
  .modal {
    padding: 23px;
  }
  .modal-heading h2 {
    font-size: 20px;
  }
  .modal-description {
    font-size: 11px;
  }
  .form-columns {
    gap: 10px;
  }
  .modal input,
  .modal select {
    padding: 10px 8px;
    font-size: 11px;
  }
  .form-note {
    font-size: 9px;
  }
  .global-error {
    margin: 14px 18px 0;
    font-size: 10px;
  }
  .order-card {
    padding: 12px;
    gap: 9px;
  }
  .order-card h3 {
    font-size: 10px;
  }
  .order-card p {
    font-size: 8px;
  }
  .order-amount {
    font-size: 11px;
  }
  .order-amount small {
    font-size: 7px;
  }
  .order-icon {
    width: 29px;
    height: 29px;
  }
  .map-focused .map-viewport {
    height: 360px;
  }
  .empty-state {
    height: 480px;
    min-height: 0;
  }
  .empty-state h1 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.voice-sandbox {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e7d6;
}
.voice-sandbox > strong {
  font-size: 12px;
  font-weight: 550;
  color: #7b8d66;
}
.voice-sandbox > p {
  font-size: 10px;
  line-height: 1.9;
  color: #99a486;
  margin: 6px 0 12px;
}
.voice-sandbox .secondary-button {
  font-size: 10px;
  padding: 7px 9px;
  margin: 0 5px 8px 0;
}
.voice-sandbox > small {
  display: block;
  color: #a0ab8f;
  font-size: 9px;
  line-height: 1.8;
}
.place-en {
  font-size: 9px;
  font-weight: 400;
  color: #9aaa86;
  margin-left: 4px;
}
.action-change {
  border-top: 1px solid #ebdfc6;
  padding-top: 9px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: #9b8563;
}
.action-change > span {
  font-size: 11px;
  color: #b29d7a;
  margin-top: 3px;
}
.action-change > strong {
  font-weight: 550;
  color: #8c744a;
}
.action-booking-dates {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid #ebdfc6;
  margin-top: 9px;
  padding-top: 9px;
  font-size: 12px;
  color: #9b8563;
}
.action-card .action-simulation {
  font-size: 11px;
  color: #aa9875;
  margin-top: 4px;
}
.action-amount {
  font-size: 12px;
  line-height: 1.8;
}
.expense-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  margin: -9px 0 8px;
  background: #f8f9f2;
}
.expense-summary p { margin: 0 0 5px; font-size: 12px; color: #516b4f; }
.trip-anchors { font-size: 12px; color: #677c5a; line-height: 1.8; margin: -8px 0 20px; }
.trip-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.expense-summary small { font-size: 11px; color: #737f69; }
.expense-summary button { flex-shrink: 0; }
.expense-history { margin-bottom: 20px; font-size: 12px; color: #66755e; }
.expense-history summary, .planning-notice summary, .replan-schedule summary, .stop-verification summary { cursor: pointer; padding: 8px 0; }
.expense-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.expense-row p { margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; }
.planning-notice { border: 1px solid #e3d6b6; background: #fffaf0; color: #806942; border-radius: 8px; padding: 12px 15px; margin-bottom: 20px; font-size: 12px; line-height: 1.8; }
.planning-notice p { margin: 0; }
.planning-notice ul, .replan-warnings ul, .stop-verification ul { padding-left: 20px; margin: 5px 0; }
.hotel-data-mode { margin: 9px 0 14px; font-size: 11px; line-height: 1.8; color: #7f7056; }
.weather-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.planned-transport { font-size: 12px; line-height: 1.8; color: #607055; margin: 8px 0 12px; }
.planned-transport > summary { cursor: pointer; padding: 6px 0; }
.planned-transport-leg { border-top: 1px solid var(--line); padding: 10px 0; overflow-wrap: anywhere; }
.planned-transport-leg p, .stop-verification p { margin: 4px 0; }
.planned-transport-leg small { font-size: 11px; color: #728166; }
.stop-verification a { color: #4e7449; text-underline-offset: 3px; }
.create-mode-tabs { display: flex; gap: 10px; margin: 15px 0 18px; }
.create-mode-tabs .active { background: #e8efdf; border-color: #8fa878; color: #466441; }
.replan-schedule { font-size: 12px; border-top: 1px solid #ebdfc6; margin-top: 10px; }
.replan-schedule > div { display: flex; flex-direction: column; padding: 7px 0; gap: 3px; }
.replan-schedule small { font-size: 11px; color: #807457; }
.replan-warnings { font-size: 11px; line-height: 1.8; padding-top: 10px; }
.stop-verification { font-size: 11px; line-height: 1.8; color: #8a774e; margin: 4px 0 10px; }
.schematic-viewport { height: 280px; }
.map-focused .schematic-viewport { height: 380px; }
.map-fallback.schematic { background: #f1f3e9; padding: 16px 16px 45px; overflow-y: auto; }
.schematic #fallback-markers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.schematic-stop { display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid #dbe3cf; background: #fffef7; border-radius: 9px; padding: 11px; color: #496245; min-width: 0; }
.schematic-stop > span { background: #577853; color: white; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; }
.schematic-stop div { min-width: 0; flex: 1; }
.schematic-stop small { display: block; color: #7b8a6d; font-size: 11px; margin-bottom: 4px; }
.schematic-stop strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.schematic-stop .icon { width: 14px; flex-shrink: 0; }
.schematic-stop:last-child .icon { visibility: hidden; }
.schematic-stop.selected { outline: 2px solid #ba9865; }
.schematic .map-fallback-notice { position: sticky; bottom: -37px; margin-top: 12px; max-width: 100%; font-size: 11px; }
@media (max-width: 620px) {
  .sidebar .trip-list-heading { display: flex; grid-column: 1 / -1; margin: 0; padding: 0; }
  .expense-summary { align-items: flex-start; flex-direction: column; }
  .expense-summary button { align-self: flex-end; }
  .trip-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric strong { overflow-wrap: anywhere; }
  .day-tabs { overflow-x: auto; padding-bottom: 6px; }
  .day-tab { flex-shrink: 0; }
  .schematic #fallback-markers { grid-template-columns: minmax(0, 1fr); }
  .schematic-viewport { height: 300px; }
  .booking-actions { flex-wrap: wrap; }
  .modal input, .modal select, .modal textarea { min-width: 0; }
}
/* Keep Chinese text readable on desktop and mobile; narrow layouts wrap instead of shrinking. */
.workspace-label,
.section-caption,
.project-meta,
.profile small,
.profile > .online-dot,
.breadcrumb,
.environment-badges,
.sandbox-badge,
.connection-badge,
.status-pill,
.preference-tag,
.trip-subtitle,
.metric-label,
.metric small,
.map-location,
.map-footer,
.map-fallback-notice,
.selected-place p,
.selected-place a,
.itinerary-heading > span,
.stop-time,
.stop-kind,
.stop-details,
.complete-button,
.completed-label,
.data-disclosure,
.assistant-heading p,
.chat-form > p,
.pending-heading,
.tool-result,
.event-item,
.voice-mode-note,
.muted-note,
.form-note,
.hotel-option .hotel-name-en,
.hotel-option-bottom strong small,
.translation-label,
.voice-sandbox > small,
.place-en,
.order-card p,
.order-amount small {
  font-size: 11px;
}
.project-title,
.new-trip-button,
.nav-item,
.studio-note strong,
.studio-note p,
.profile strong,
.view-tab,
.text-button,
.day-tab,
.day-tab strong,
.map-header h2,
.stop-description,
.stop-card h3,
.order-empty,
.order-card h3,
.secondary-button,
.section-heading > .secondary-button,
.assistant-heading h2,
.agent-intro p,
.assistant-panel .agent-intro p,
.quick-actions button,
.assistant-panel .quick-actions button,
.action-card h3,
.action-card p,
.confirm-button,
.chat-message,
.assistant-panel .chat-message,
.chat-input-wrapper textarea,
.assistant-panel .chat-input-wrapper textarea,
.field-label,
.modal input,
.modal textarea,
.modal select,
.modal-description,
.hotel-option p,
.voice-sandbox > p,
.voice-sandbox .secondary-button,
.translation-result p:not(.muted-note),
.global-error {
  font-size: 12px;
}
.intro-label,
.assistant-panel .intro-label,
.stop-card h3,
.section-heading h2,
.assistant-heading h2 {
  font-size: 13px;
}
.chat-message .message-label,
.event-section .section-caption,
.typing-message,
.translation-label,
.action-card .action-simulation {
  font-size: 11px;
}
.map-footer {
  font-size: 10px;
  flex-wrap: wrap;
}
.map-kicker,
.eyebrow,
.section-heading .eyebrow {
  font-size: 10px;
}
.metric-label {
  flex-wrap: wrap;
  gap: 3px;
}
.metric-label > span {
  font-size: 9px;
}
.project-meta {
  flex-wrap: wrap;
  gap: 4px;
}
.stop-topline {
  align-items: flex-start;
}
.stop-bottom {
  flex-wrap: wrap;
  row-gap: 7px;
}
.stop-title-group {
  align-items: flex-start;
}
.stop-kind-icon {
  margin-top: 2px;
}
.trip-subtitle,
.stop-description,
.agent-intro p,
.chat-message,
.event-item,
.data-disclosure {
  color: #7d8a70;
}
.day-tab {
  gap: 8px;
}
.fallback-marker {
  font-size: 10px;
}
.map-header {
  flex-wrap: wrap;
}
.order-card {
  flex-wrap: wrap;
}
.order-amount {
  font-size: 14px;
}
.studio-note {
  padding-left: 8px;
  padding-right: 8px;
}
.assistant-panel .agent-intro {
  padding: 15px 12px;
}
.map-footer #map-credit {
  font-size: 10px;
}
.global-error {
  line-height: 1.8;
}
.form-note,
.muted-note,
.voice-mode-note {
  line-height: 1.85;
}
@media (max-width: 1060px) {
  .metric {
    padding-left: 10px;
    padding-right: 10px;
  }
  .metric-label > span {
    display: none;
  }
  .map-location {
    display: none;
  }
  .stop-kind-icon {
    display: none;
  }
  .trip-heading {
    gap: 8px;
  }
  .trip-heading h1 {
    font-size: 25px;
  }
  .environment-badges {
    font-size: 10px;
  }
  .sidebar .studio-note p {
    font-size: 11px;
  }
  .sidebar .profile small {
    font-size: 10px;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .environment-badges {
    gap: 10px;
  }
  .connection-badge,
  .sandbox-badge,
  .breadcrumb {
    font-size: 11px;
  }
  .project-button {
    min-width: 172px;
    width: 172px;
  }
  .project-meta {
    font-size: 11px;
  }
  .metric {
    padding-left: 10px;
    padding-right: 10px;
  }
  .metric strong {
    font-size: 20px;
  }
  .map-footer {
    font-size: 10px;
  }
  .map-header h2 {
    font-size: 12px;
  }
  .stop-kind {
    font-size: 11px;
  }
  .stop-kind-icon {
    display: none;
  }
  .stop-card h3 {
    font-size: 13px;
  }
  .stop-description {
    font-size: 12px;
  }
  .complete-button {
    padding: 4px 6px;
  }
  .day-tab {
    padding: 7px 10px;
    font-size: 11px;
  }
  .day-tab strong {
    font-size: 12px;
  }
  .section-heading > .secondary-button {
    font-size: 12px;
  }
  .assistant-panel {
    height: 680px;
  }
  .chat-form > p {
    font-size: 11px;
  }
  .modal-description,
  .modal input,
  .modal textarea,
  .modal select {
    font-size: 12px;
  }
  .form-note {
    font-size: 11px;
  }
  .trip-heading h1 {
    font-size: 25px;
  }
  .section-toolbar {
    align-items: flex-start;
  }
  .text-button {
    font-size: 12px;
  }
  .view-tabs {
    gap: 15px;
  }
  .view-tab {
    font-size: 12px;
  }
  .view-tab .icon {
    width: 13px;
    height: 13px;
  }
  .form-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .order-card h3 {
    font-size: 12px;
  }
  .order-card p {
    font-size: 11px;
  }
  .order-amount small {
    font-size: 11px;
  }
}

/* Xiaohongshu auto-collect and authorization styles */
.reference-auto-collect-card {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #dfe7d8;
  border-radius: 9px;
  background: #fffefa;
}

.reference-auto-collect-card h4 {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 600;
}

.reference-auto-collect-card .data-caption {
  margin: 0 0 10px;
  font-size: 11px;
  color: #6d7b69;
}

.reference-auto-collect-form .form-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.reference-auto-collect-form input {
  padding: 8px 10px;
  border: 1px solid #dfe5d8;
  border-radius: 6px;
  font-size: 12px;
}

.reference-auto-collect-form button {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 12px;
}

.collect-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #eef2e7;
  color: #4e6047;
}

.collect-qrcode-container {
  text-align: center;
  padding: 14px;
  background: white;
  border: 1px solid #dfe5d8;
  border-radius: 8px;
  margin: 10px 0;
}

.qrcode-wrapper {
  display: inline-block;
  padding: 8px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.collect-qrcode-img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.collect-spinner {
  margin: 10px 0;
  font-size: 12px;
  color: #70816b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collect-result-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #eaf3e3;
  border-radius: 6px;
  font-size: 12px;
  color: #2d5a27;
  line-height: 1.6;
}

