/* Motion belongs to individual controls; it never transforms the app or a map. */
:root { --motion-ease: cubic-bezier(.2,.8,.2,1); --motion-spring: cubic-bezier(.22,1.5,.45,1); }
button:not([data-hold-delete]) { touch-action: manipulation; }
.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; }
body.welcome-open { overflow: hidden; }
.welcome-screen {
  position: fixed; inset: 0; z-index: 500; overflow: auto; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between; padding: 38px 5vw 25px;
  color: #294b38; background: radial-gradient(ellipse at 75% 18%, #e9edda 0, transparent 48%), radial-gradient(ellipse at 12% 85%, #efd6b8 0, transparent 50%), #f6f0e4;
  transition: opacity 420ms ease, filter 420ms ease;
}
.welcome-screen[hidden] { display: none; }
.welcome-screen.welcome-leaving { opacity: 0; filter: blur(8px); pointer-events: none; }
.welcome-brand { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; font-size: 26px; font-weight: 650; }
.welcome-brand span { font-size: 10px; letter-spacing: .16em; font-weight: 500; }
.welcome-content { text-align: center; padding: 70px 0 55px; }
.welcome-kicker { color: #899177; font-size: 10px; letter-spacing: .22em; margin: 0 0 27px; }
.elastic-lettering { margin: 0 auto 28px; font-size: clamp(46px, 7.8vw, 112px); line-height: 1.12; letter-spacing: -.065em; font-weight: 650; }
.elastic-line { display: block; width: fit-content; max-width: 100%; margin: 0 auto; white-space: nowrap; touch-action: none; user-select: none; cursor: grab; }
.elastic-studio { color: #587650; }
.elastic-letter { display: inline-block; transform-origin: center 70%; }
.elastic-line.is-grabbed { cursor: grabbing; }
.welcome-description { font-size: 14px; line-height: 1.9; color: #77806c; margin: 30px 0; }
.welcome-start.primary-button { min-width: 180px; min-height: 58px; display: inline-flex; justify-content: space-between; gap: 40px; padding: 17px 25px; border-radius: 100px; font-size: 16px; background-color: #294d39; box-shadow: 0 12px 28px #294d3918; }
.welcome-hint { margin: 22px 0 0; color: #95937f; font-size: 11px; letter-spacing: .06em; }
.welcome-footer { display: flex; justify-content: space-between; gap: 20px; color: #949b84; font-size: 10px; letter-spacing: .1em; }

/* Warm, restrained fill and a spring response shared by primary actions. */
:is(.primary-button,.secondary-button,.new-trip-button,.quick-action,.send-button) {
  transition: transform 240ms var(--motion-spring), box-shadow 240ms ease, background-color 320ms ease, background-position 400ms var(--motion-ease);
  background-image: linear-gradient(105deg, transparent 34%, #9ba96430 49%, transparent 65%);
  background-size: 280% 100%; background-position: 100% 0;
}
:is(.primary-button,.secondary-button,.new-trip-button,.quick-action,.send-button):hover:not(:disabled) { transform: translateY(-2px); background-position: 0 0; box-shadow: 0 7px 18px #35593b13; }
:is(.primary-button,.secondary-button,.new-trip-button,.quick-action,.send-button):active:not(:disabled) { transform: scale(.97); }
:is(.primary-button,.secondary-button) { border-radius: 14px; }
:is(.map-card,.travel-data-card,.assistant-panel,.modal,.reference-card,.route-result-card,.hotel-option,.studio-item,.departure-panel,.references-panel,#studio-panel,.stop-card,.trip-metrics,.expense-summary,.order-card,.supplier-offer-card,.departure-option,.action-card) {
  --edge-x: 50%; --edge-y: 50%;
  border-radius: 22px;
  transition: border-color 280ms ease, box-shadow 280ms ease;
}
:is(.map-card,.travel-data-card,.assistant-panel,.modal,.reference-card,.route-result-card,.hotel-option,.studio-item,.departure-panel,.references-panel,#studio-panel,.stop-card,.trip-metrics,.expense-summary,.order-card,.supplier-offer-card,.departure-option,.action-card).edge-active {
  border-color: #aabb8c;
  box-shadow: 0 0 0 1px #bdcb973d, 0 8px 32px #709a5215;
  background-image: radial-gradient(160px circle at var(--edge-x) var(--edge-y), #c5d9a926, transparent 100%);
}
.weather-card { border-radius: 22px 22px 0 0; }
.modal { border-radius: 26px; }
.modal::backdrop { background: #1c332b4f; backdrop-filter: blur(7px); }
.modal[open] { animation: modal-arrive 280ms var(--motion-ease); }
@keyframes modal-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

/* SquishSwitch: hidden native input remains the only source of checked state. */
.squish-switch { position: relative; display: inline-block; width: 58px; height: 30px; flex: 0 0 58px; vertical-align: middle; isolation: isolate; }
.squish-switch::before { content: ""; position: absolute; inset: 0; border: 1px solid #cad5c5; border-radius: 100px; background: #e3e9dc; transition: background-color 320ms ease, border-color 320ms ease, transform 220ms var(--motion-spring); }
.squish-switch:has(input:checked)::before { background: #3b6449; border-color: #3b6449; }
.squish-switch input[type="checkbox"] { position: absolute !important; inset: 0; z-index: 2; width: 100% !important; height: 100% !important; min-height: 0 !important; padding: 0 !important; margin: 0; opacity: 0; cursor: pointer; }
.squish-thumb { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 100px; background: #fffdf4; box-shadow: 0 2px 5px #2f4d3120; pointer-events: none; transition: transform 380ms var(--motion-spring), width 180ms ease; }
.squish-switch:has(input:checked) .squish-thumb { transform: translateX(28px); }
.squish-switch:has(input:active) .squish-thumb { width: 30px; }
.squish-switch:has(input:checked:active) .squish-thumb { transform: translateX(20px); }
.squish-switch:has(input:focus-visible)::before { outline: 3px solid #9eb8a2; outline-offset: 3px; }
.squish-switch:hover::before { transform: scale(1.035); }
.squish-switch:has(input:disabled) { opacity: .5; }
.squish-switch input:disabled { cursor: not-allowed; }
.checkbox-field { gap: 12px; align-items: center; }
.motion-setting { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #617663; }
.motion-setting .squish-switch { width: 44px; height: 25px; flex-basis: 44px; }
.motion-setting .squish-thumb { width: 17px; height: 17px; }
.motion-setting .squish-switch:has(input:checked) .squish-thumb { transform: translateX(19px); }
.motion-setting .squish-switch:has(input:active) .squish-thumb { width: 23px; }
.motion-setting .squish-switch:has(input:checked:active) .squish-thumb { transform: translateX(13px); }

/* HoldButton's progress is independent of animation preferences and wall clock. */
.hold-button, #studio-panel button.hold-button {
  --hold-progress: 0; position: relative; isolation: isolate; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  padding: 10px 14px; min-height: 40px; border: 1px solid #e0cbb8; border-radius: 13px;
  color: #87633f; background: #fbf4e9; font: inherit; font-size: 12px; cursor: pointer;
  transition: transform 200ms var(--motion-spring), color 200ms ease, box-shadow 200ms ease;
}
.hold-button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #e1bb86; transform: scaleX(var(--hold-progress)); transform-origin: left; transition: transform 200ms ease; }
.hold-button::after { content: ""; position: absolute; top: -20%; left: calc(var(--hold-progress) * 100% - 10px); width: 16px; height: 140%; border-radius: 50%; background: #f3d8ac; opacity: 0; pointer-events: none; }
.hold-button.is-holding { transform: scale(.97); color: #513c29; box-shadow: 0 0 20px #d7ba883d; }
.hold-button.is-holding::before { transition: none; }
.hold-button.is-holding::after { opacity: .8; animation: hold-wave 650ms ease-in-out infinite alternate; }
@keyframes hold-wave { to { transform: translateY(5px) rotate(12deg); } }
.hold-button:disabled { opacity: .5; cursor: wait; }
.trip-heading-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.project-row { margin-bottom: 8px; position: relative; }
.project-row .project-button { width: 100%; margin-bottom: 0; }
.project-row .hold-button { width: 100%; padding: 6px 10px; min-height: 32px; border-radius: 0 0 12px 12px; font-size: 10px; background: #f5f2e7; border-color: #e0e4d8; color: #8a8268; }

/* React Bits LineSidebar adapted to Xingji forest-green, sage & warm gold palette. */
.sidebar-nav-caption { margin: 14px 10px 4px; }
.sidebar-line-nav {
  margin: 0 6px 12px;
  padding: 6px 10px 8px;
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.56);
  border: 1px solid rgba(30, 50, 40, 0.06);
}
.line-sidebar {
  --accent-color: #245541;
  --text-color: #687b70;
  --marker-color: #9eb0a2;
  --marker-length: 32px;
  --marker-gap: 10px;
  --tick-scale: 0.5;
  --max-shift: 20px;
  --item-gap: 14px;
  --font-size: 0.86rem;
  --smoothing: 100ms;
  position: relative;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
}
.line-sidebar--markers {
  padding-left: calc(var(--marker-length) + var(--marker-gap));
}
.line-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: var(--item-gap);
  width: 100%;
}
.line-sidebar__item {
  position: relative;
  cursor: pointer;
  outline: none;
}
.line-sidebar__item::before {
  content: "";
  position: absolute;
  inset: -4px -24px;
  pointer-events: none;
}
.line-sidebar__item:focus-visible .line-sidebar__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.line-sidebar__label {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-size: var(--font-size);
  font-weight: 560;
  line-height: 1.25;
  color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--text-color));
  transform: translateX(calc(var(--effect, 0) * var(--max-shift)));
  will-change: transform, color;
}
.line-sidebar__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-right: 0.52rem;
  font-size: 0.82em;
  color: color-mix(in srgb, #b57c43 calc(var(--effect, 0) * 88%), var(--marker-color));
  opacity: calc(0.56 + var(--effect, 0) * 0.44);
}
.line-sidebar__marker {
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  height: 1.5px;
  width: var(--marker-length);
  background-color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--marker-color));
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.68 + var(--effect, 0) * 0.52));
  pointer-events: none;
}
.line-sidebar--markers .line-sidebar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--item-gap) / 2);
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  height: 1px;
  width: calc(var(--marker-length) * var(--tick-scale));
  background-color: var(--marker-color);
  opacity: 0.5;
  transform: translateY(-50%);
  pointer-events: none;
}
.line-sidebar--scale-tick .line-sidebar__item:not(:last-child)::after {
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.6));
}

/* LineSidebar proximity enhancement on #trip-list and .assistant-panel .quick-actions */
#trip-list.line-sidebar-host .project-row {
  --accent-color: #245541;
  --text-color: #1e2b25;
  --marker-color: #9eb0a2;
}
#trip-list.line-sidebar-host .project-row > .line-sidebar__marker {
  left: 4px;
  top: 24px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  z-index: 2;
  transform: translateY(-50%) scaleX(calc(0.45 + var(--effect, 0) * 0.65));
}
#trip-list.line-sidebar-host .project-row .project-title {
  display: inline-flex;
  align-items: baseline;
  color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--text-color));
  transform: translateX(calc(var(--effect, 0) * 8px));
}
.assistant-panel .quick-actions.line-sidebar-host button.line-sidebar__item {
  --accent-color: #245541;
  --text-color: #2d4237;
  --marker-color: #9eb0a2;
  position: relative;
  padding-left: 30px;
}
.assistant-panel .quick-actions.line-sidebar-host button.line-sidebar__item > .line-sidebar__marker {
  left: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  transform: translateY(-50%) scaleX(calc(0.55 + var(--effect, 0) * 0.55));
}
.assistant-panel .quick-actions.line-sidebar-host button.line-sidebar__item .line-sidebar__index {
  margin-right: 4px;
}

/* React Bits InfiniteMenu 3D Spherical Showcase & Focus Card */
#lodging-dialog { width: min(920px, calc(100% - 32px)); max-width: 920px; }
.lodging-search-options { margin-top: 18px; border-bottom: 1px solid #e3e9db; padding-bottom: 12px; }
.lodging-search-options > summary { cursor: pointer; color: #698069; font-size: 12px; padding: 6px 0; }
.lodging-search-options #lodging-form { grid-template-columns: 1fr auto; align-items: center; }
.lodging-search-options #lodging-form .field-label { grid-column: 1 / -1; }
.lodging-search-options #lodging-query { grid-column: 1 / -1; }
#lodging-status { font-size: 12px; line-height: 1.7; color: #7a8672; }
#lodging-results:has(.hotel-gallery) { display: block; }
.hotel-gallery { min-width: 0; }
.hotel-gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #698169; font-size: 11px; letter-spacing: .1em; }
.hotel-gallery-stage {
  height: 480px;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  touch-action: pan-y;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 42%, #1d352b 0%, #102019 56%, #07100c 100%);
  border: 1px solid rgba(196, 175, 138, 0.28);
  box-shadow: 0 22px 48px rgba(10, 22, 17, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: grab;
  margin-top: 14px;
  container-type: inline-size;
  color: var(--infinite-menu-text, #f7f4ec);
  outline: none;
}
.hotel-gallery-stage:focus-visible {
  box-shadow: 0 0 0 3px #b57c4380, 0 22px 48px rgba(10, 22, 17, 0.24);
}
.hotel-gallery-stage::after { content: ""; position: absolute; bottom: 14px; left: 25%; width: 50%; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); filter: blur(16px); pointer-events: none; }
.hotel-gallery-stage.is-dragging { cursor: grabbing; }
.infinite-menu__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  z-index: 1;
}
.hotel-gallery-stage.is-dragging .infinite-menu__canvas { cursor: grabbing; }
.infinite-menu__info {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.infinite-menu__title,
.infinite-menu__description,
.infinite-menu__action {
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.infinite-menu__title {
  position: absolute;
  top: 50%;
  right: calc(50% + var(--infinite-menu-tile, 120px) + 24px);
  max-width: calc(50% - var(--infinite-menu-tile, 120px) - 42px);
  margin: 0;
  font-size: clamp(1.1rem, 2.4cqw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: right;
  color: #f9f5ec;
  text-shadow: var(--infinite-menu-shadow, 0 2px 18px rgba(0,0,0,0.68));
  transform: translateY(-50%);
  overflow-wrap: anywhere;
}
.infinite-menu__description {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--infinite-menu-tile, 120px) + 24px);
  max-width: min(24ch, calc(50% - var(--infinite-menu-tile, 120px) - 42px));
  margin: 0;
  font-size: clamp(0.78rem, 1.35cqw, 0.94rem);
  line-height: 1.55;
  color: rgba(247, 244, 236, 0.82);
  text-shadow: var(--infinite-menu-shadow, 0 2px 18px rgba(0,0,0,0.68));
  transform: translateY(-50%);
  overflow-wrap: anywhere;
}
.infinite-menu__action {
  position: absolute;
  bottom: 6.5%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--infinite-menu-accent, #ffffff);
  color: var(--infinite-menu-on-accent, #132a20);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(-50%);
}
.infinite-menu__action:hover {
  transform: translateX(-50%) scale(1.07);
}
.infinite-menu__info[data-moving="true"] .infinite-menu__title {
  opacity: 0;
  transform: translate(16px, -50%);
  transition-duration: 0.18s;
}
.infinite-menu__info[data-moving="true"] .infinite-menu__description {
  opacity: 0;
  transform: translate(-16px, -50%);
  transition-duration: 0.18s;
}
.infinite-menu__info[data-moving="true"] .infinite-menu__action {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.65);
  transition-duration: 0.18s;
}
.infinite-menu__info[data-layout="stacked"] .infinite-menu__title {
  top: auto;
  right: 84px;
  bottom: 46px;
  left: 18px;
  max-width: none;
  font-size: clamp(1.05rem, 4.5cqw, 1.35rem);
  text-align: left;
  transform: none;
}
.infinite-menu__info[data-layout="stacked"] .infinite-menu__description {
  top: auto;
  right: 84px;
  bottom: 18px;
  left: 18px;
  max-width: 34ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: none;
}
.infinite-menu__info[data-layout="stacked"] .infinite-menu__action {
  right: 18px;
  bottom: 18px;
  left: auto;
  transform: none;
}
.infinite-menu__info[data-layout="stacked"] .infinite-menu__action:hover {
  transform: scale(1.06);
}
.hotel-tile { position: absolute; width: 220px; height: 264px; top: 35px; left: calc(50% - 110px); padding: 0; overflow: hidden; border: 1px solid #ffffffcc; border-radius: 22px; background: #e8ecdc; box-shadow: 0 15px 35px #294e3a18; backface-visibility: hidden; will-change: transform; cursor: pointer; transform-origin: center; }
.hotel-gallery-stage.has-webgl .hotel-tile { opacity: 0; pointer-events: none; z-index: 0; }
.hotel-tile img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.hotel-tile-label { position: absolute; inset: auto 0 0; padding: 24px 15px 16px; background: linear-gradient(transparent, #1d3f32e8); color: #fffaf0; text-align: left; font-size: 14px; line-height: 1.5; }
.hotel-tile-label small { display: block; opacity: .65; font-size: 9px; margin-top: 5px; }
.hotel-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 15px 0; }
.hotel-gallery-controls button { width: 40px; height: 40px; border: 1px solid #d7e0ce; border-radius: 50%; background: #fffdf5; color: #31533a; font-size: 18px; }
.hotel-gallery-controls [data-gallery-auto] { width: auto; border-radius: 100px; padding: 0 12px; font-size: 11px; }
.hotel-gallery-counter { color: #788777; font-size: 12px; min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.hotel-gallery-focus { padding: 22px 24px; border: 1px solid #dfe6d8; border-radius: 20px; background: #fffdf8; }
.hotel-focus-badge { display: inline-flex; align-items: center; padding: 3px 10px; margin-bottom: 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #245541; background: rgba(36, 85, 65, 0.09); border: 1px solid rgba(36, 85, 65, 0.16); }
.hotel-gallery-focus h3 { margin: 0 0 8px; font-size: 21px; color: #2a5039; overflow-wrap: anywhere; }
.hotel-gallery-focus p { color: #7b8773; font-size: 12px; line-height: 1.75; margin: 7px 0; overflow-wrap: anywhere; }
.hotel-gallery-focus .secondary-button { margin-top: 12px; }
.hotel-gallery-hint { text-align: center; font-size: 11px; color: #89917e; line-height: 1.7; }
.hotel-detail-art { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; margin: 16px 0 8px; box-shadow: 0 14px 32px rgba(20, 42, 33, 0.12); }
.hotel-art-caption { font-size: 10px; color: #89917e; }

html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.motion-off :is(.primary-button,.secondary-button,.new-trip-button,.quick-action,.send-button):hover { transform: none; }
html.motion-off .hold-button.is-holding::after { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 900px) {
  .sidebar-nav-caption,
  .sidebar-line-nav { display: none; }
  #trip-list.line-sidebar-host .project-row > .line-sidebar__marker { display: none; }
  #trip-list.line-sidebar-host .project-row .project-title { transform: none; }
}
@media (max-width: 620px) {
  .welcome-screen { padding: 24px 22px; }
  .welcome-content { padding: 60px 0; }
  .welcome-kicker { font-size: 8px; letter-spacing: .12em; }
  .welcome-footer { font-size: 8px; letter-spacing: .02em; }
  .welcome-brand { font-size: 23px; }
  .welcome-brand span { font-size: 8px; }
  .elastic-lettering { font-size: clamp(36px, 10.5vw, 64px); }
  .trip-heading { flex-wrap: wrap; }
  .trip-heading-actions { justify-content: flex-start; }
  .topbar { flex-wrap: wrap; }
  .environment-badges { flex-wrap: wrap; }
  .hotel-gallery-stage { height: 340px; }
  .hotel-tile { width: 190px; height: 238px; left: calc(50% - 95px); }
  .hotel-gallery-focus { padding: 18px; }
  .hotel-gallery-focus h3 { font-size: 18px; }
  .project-row { flex: 0 0 170px; }
}
/* Live execution summaries share the warm card palette without moving the chat. */
.agent-progress { padding: 16px; border: 1px solid #d6dfc7; border-radius: 18px; background: #f5f3e8; color: #46614d; font-size: 13px; }
.agent-progress strong { font-weight: 600; }
.agent-tool { display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; border-top: 1px solid #dfe5d4; }
.agent-tool small { display: block; color: #71816c; overflow-wrap: anywhere; }
.agent-tool > span:last-child { flex-shrink: 0; }
.agent-tool.running > span:last-child { color: #356947; font-weight: 600; }

.reference-setup-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #dce4d3; border-radius: 18px; background: #f6f5ec; }
.reference-setup-entry p { margin: 0; color: #5c715b; }
#reference-setup-dialog { width: min(700px, calc(100% - 32px)); max-width: 700px; }
.reference-setup-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; padding: 14px 18px; border-radius: 18px; background: #eef4e9; }
.reference-setup-status p { flex: 1 1 240px; margin: 0; font-size: 13px; line-height: 1.8; }
.reference-setup-steps { display: grid; gap: 16px; list-style: none; padding: 0; margin: 22px 0; counter-reset: setup; }
.reference-setup-steps > li { counter-increment: setup; padding: 18px 20px; border: 1px solid #dce4d3; border-radius: 20px; }
.reference-setup-steps h3 { margin: 0 0 12px; font-size: 16px; }
.reference-setup-steps h3::before { content: counter(setup) ". "; color: #628063; }
.reference-setup-steps p { line-height: 1.9; font-size: 13px; color: #667660; }
.reference-setup-steps input { width: 100%; }
.reference-export-path { padding: 10px 12px; border-radius: 12px; background: #f4f3e9; overflow-wrap: anywhere; user-select: text; }
.reference-export-path:empty { display: none; }
.reference-setup-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reference-local-exports { margin: 16px 0; padding: 16px; border: 1px solid #dce4d3; border-radius: 18px; background: #faf9f2; }
.reference-exports-heading, .reference-export-batch > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.reference-exports-heading h3 { font-size: 15px; margin: 0; }
.reference-export-batch { margin-top: 12px; padding: 14px; border: 1px solid #dce4d3; border-radius: 16px; background: #fffefa; }
.reference-export-batch p { overflow-wrap: anywhere; }
.reference-export-batch small { color: #70836c; }
.environment-badges { flex-wrap: wrap; }
@media (max-width: 620px) {
  .reference-setup-steps > li { padding: 16px; }
  .reference-setup-steps .primary-button, .reference-setup-steps .secondary-button { width: 100%; white-space: normal; }
}
