:root {
  color-scheme: light;
  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #fbfaf8;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-strong: #fbfafc;
  --panel-soft: #f6f3ff;
  --text: #171821;
  --muted: #646774;
  --muted-strong: #454754;
  --border: rgba(24, 25, 34, 0.09);
  --border-strong: rgba(24, 25, 34, 0.15);
  --accent: #6c4cff;
  --accent-strong: #563cce;
  --accent-soft: rgba(108, 76, 255, 0.12);
  --cta: #171821;
  --success: #2a9d73;
  --success-soft: #e9f7f1;
  --warning: #8a6d1c;
  --warning-soft: #fff4ce;
  --danger: #d35762;
  --danger-soft: #fff0f1;
  --shadow: 0 12px 34px rgba(35, 31, 66, 0.07);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f5f7fb;
  --panel-soft: #f1f4f8;
  --text: #15181f;
  --muted: #5f6978;
  --muted-strong: #384355;
  --border: rgba(13, 20, 32, 0.1);
  --border-strong: rgba(13, 20, 32, 0.16);
  --accent: #2167cf;
  --accent-strong: #1852a6;
  --accent-soft: rgba(33, 103, 207, 0.12);
  --success: #148c31;
  --success-soft: rgba(20, 140, 49, 0.12);
  --warning: #b36c00;
  --warning-soft: rgba(179, 108, 0, 0.12);
  --danger: #b53a41;
  --danger-soft: rgba(181, 58, 65, 0.12);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171821;
  --bg-elevated: #1f202a;
  --panel: #242530;
  --panel-strong: #2c2e3a;
  --panel-soft: #1c1d27;
  --text: #f5f4fa;
  --muted: #b7b5c2;
  --muted-strong: #dedce7;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #9a80ff;
  --accent-strong: #b09bff;
  --accent-soft: rgba(154, 128, 255, 0.18);
  --cta: #8d6dff;
  --success: #59c998;
  --success-soft: rgba(89, 201, 152, 0.16);
  --warning: #ffd66b;
  --warning-soft: rgba(255, 214, 107, 0.14);
  --danger: #ff8c95;
  --danger-soft: rgba(255, 140, 149, 0.14);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 225, 0.2), transparent 30rem),
    radial-gradient(circle at right top, rgba(36, 193, 67, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

button,
textarea,
a {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.topbar,
.brand-cluster,
.topbar-actions,
.panel-heading,
.form-actions,
.detail-actions,
.summary-step,
.timeline-header,
.timeline-meta,
.checkout-line,
.confirmation-line,
.footer,
.provider-note,
.booking-header {
  display: flex;
  align-items: center;
}

.topbar,
.panel-heading,
.form-actions,
.timeline-header,
.checkout-line,
.confirmation-line,
.footer {
  justify-content: space-between;
}

.topbar {
  gap: 20px;
  padding: 6px 2px 22px;
  border-bottom: 1px solid var(--border);
}

.brand-cluster,
.topbar-actions,
.provider-note {
  gap: 12px;
}

.locale-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel-soft);
}

.locale-button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.locale-button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.brand-mark,
.profile-chip,
.timeline-index,
.trust-icon,
.empty-icon {
  display: grid;
  place-items: center;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #0d4fa5);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.conversation-label,
.footer,
.source-preview-note,
.source-note,
.detail-note,
.checkout-note,
.empty-state p,
.final-response {
  color: var(--muted);
}

.brand-kicker,
.eyebrow,
.section-kicker {
  margin-bottom: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-cluster h1,
.panel h2,
.intro-card h2,
.booking-dialog h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.brand-cluster h1 {
  font-size: 1.55rem;
}

.city-chip,
.meta-pill,
.profile-chip,
.example-button,
.chip,
.button,
.timeline-tag,
.inline-pill {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.city-chip,
.meta-pill,
.example-button,
.chip,
.timeline-tag,
.inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--panel-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.icon-button,
.profile-chip {
  min-height: 40px;
}

.icon-button {
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
}

.profile-chip {
  min-width: 40px;
  padding: 0 12px;
  background: rgba(47, 125, 225, 0.18);
  color: #d6e7ff;
  font-weight: 800;
}

.main-layout {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}

.intro-card,
.panel,
.booking-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(28, 28, 28, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

:root[data-theme="light"] .intro-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .booking-dialog {
  background: rgba(255, 255, 255, 0.94);
}

.intro-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  padding: 26px;
}

.intro-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.lead-text {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1.06rem;
}

.trust-card {
  display: flex;
  gap: 14px;
  align-self: stretch;
  padding: 18px;
  border: 1px solid rgba(36, 193, 67, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(36, 193, 67, 0.12), rgba(0, 0, 0, 0));
}

.trust-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 900;
}

.trust-card p {
  margin: 6px 0 0;
  color: var(--muted-strong);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.planner-column,
.detail-column,
.itinerary-panel {
  display: grid;
  gap: 18px;
}

.panel,
.booking-dialog {
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus,
.icon-button:focus,
.button:focus,
.example-button:focus {
  outline: none;
  border-color: rgba(47, 125, 225, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 125, 225, 0.14);
}

.provider-note {
  flex-wrap: wrap;
  margin-top: 14px;
}

.source-preview-note {
  margin: 10px 0 0;
  font-size: 0.84rem;
}

.example-row,
.chip-row,
.detail-grid,
.timeline-actions,
.booking-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-row {
  margin-top: 16px;
  align-items: center;
}

.example-row > span,
.chip-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.example-button {
  padding: 7px 12px;
  background: transparent;
  color: var(--text);
}

.form-actions {
  gap: 16px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button[disabled],
.button[aria-disabled="true"],
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-link {
  width: 100%;
}

.panel-summary {
  display: grid;
  gap: 16px;
}

.compact-heading {
  gap: 16px;
}

.request-bubble {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(47, 125, 225, 0.2);
  color: #dbe9ff;
  font-size: 1.08rem;
  line-height: 1.45;
}

:root[data-theme="light"] .request-bubble {
  color: #18437c;
}

.summary-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.summary-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 750;
}

.summary-details summary::marker {
  color: var(--accent);
}

.summary-details[open] summary {
  color: var(--text);
}

.summary-steps,
.timeline-list,
.detail-stack,
.checkout-stack,
.confirmation-stack {
  display: grid;
  gap: 12px;
}

.summary-step {
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
}

.timeline-index {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  font-weight: 800;
  background: rgba(47, 125, 225, 0.18);
  color: #cbe0ff;
}

.summary-step strong,
.timeline-title,
.detail-panel h3,
.checkout-venue,
.confirmation-title {
  display: block;
  color: var(--text);
}

.summary-step p,
.timeline-copy,
.confirmation-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.chip-block {
  display: grid;
  gap: 10px;
}

.chip {
  background: var(--panel-soft);
}

.chip.is-strong {
  border-color: rgba(36, 193, 67, 0.38);
  background: var(--success-soft);
  color: #78ef92;
}

:root[data-theme="light"] .chip.is-strong {
  color: #13712a;
}

.clarifications {
  padding: 16px;
  border: 1px solid rgba(245, 165, 36, 0.3);
  border-radius: 16px;
  background: var(--warning-soft);
}

.clarifications h3 {
  margin-bottom: 8px;
  color: var(--warning);
}

.clarifications ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.day-plan-summary,
.day-plan-stops {
  display: grid;
  gap: 12px;
}

.day-plan-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.day-plan-summary-card {
  background: linear-gradient(180deg, rgba(36, 193, 67, 0.12), rgba(0, 0, 0, 0));
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel-soft);
}

.status-detail {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.day-plan-attribution {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.day-plan-stop-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.day-plan-text {
  display: grid;
  gap: 4px;
}

.day-plan-title {
  font-size: 1rem;
  line-height: 1.2;
}

.day-plan-copy,
.day-plan-note {
  margin-bottom: 0;
  color: var(--muted-strong);
}

.day-plan-meta,
.day-plan-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.day-plan-transfer {
  border-style: dashed;
  background: var(--panel-soft);
}

.day-plan-transfer.is-unavailable {
  border-style: solid;
  border-color: rgba(245, 165, 36, 0.28);
  background: var(--warning-soft);
}

.day-plan-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.day-plan-action {
  min-width: 140px;
}

.day-plan-map-controls,
.stop-map-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.map-status {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.map-status.is-error {
  color: var(--danger);
}

.google-map {
  min-height: 360px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-soft);
}

.google-map-detail {
  min-height: 260px;
}

.transfer-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.transfer-choice {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 42px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.transfer-choice:hover {
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-1px);
}

.transfer-choice.is-selected {
  border-color: rgba(47, 125, 225, 0.58);
  background: linear-gradient(180deg, rgba(47, 125, 225, 0.16), rgba(0, 0, 0, 0));
  box-shadow: 0 0 0 1px rgba(47, 125, 225, 0.18) inset;
}

.transfer-choice.is-primary {
  background: linear-gradient(180deg, rgba(36, 193, 67, 0.08), rgba(0, 0, 0, 0));
}

.transfer-choice-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.transfer-choice-copy {
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.3;
}

.transfer-choice-link {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.transfer-choice-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.timeline-list {
  min-height: 100px;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 180px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.timeline-card:hover,
.timeline-card.is-selected {
  border-color: rgba(47, 125, 225, 0.48);
  transform: translateY(-1px);
}

.timeline-card.is-selected {
  background: linear-gradient(180deg, rgba(47, 125, 225, 0.12), rgba(0, 0, 0, 0));
}

.timeline-main {
  display: grid;
  gap: 12px;
}

.timeline-art {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #2a356e, #6657d7 55%, #d36b97);
}

.timeline-art[data-category*="club"] {
  background: linear-gradient(135deg, #171a3c, #553c88 52%, #9354bd);
}

.timeline-art[data-category*="theater"],
.timeline-art[data-category*="theatre"] {
  background: linear-gradient(135deg, #4a2438, #8e3f69 55%, #d16a72);
}

.timeline-art[data-category*="museum"] {
  background: linear-gradient(135deg, #23434b, #3f7b7d 55%, #78ad9d);
}

.timeline-art::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.035),
    0 0 0 65px rgba(255, 255, 255, 0.02);
}

.timeline-art::after {
  content: attr(data-symbol);
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-8deg);
}

.timeline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.timeline-art.has-image::before {
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(16, 17, 25, 0.02) 28%, rgba(16, 17, 25, 0.58) 100%);
  z-index: 1;
}

.timeline-art.has-image::after {
  display: none;
}

.timeline-art-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(13, 15, 26, 0.28);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.timeline-header {
  gap: 10px;
}

.timeline-title {
  font-size: 1.22rem;
  line-height: 1.1;
}

.timeline-copy {
  font-size: 0.95rem;
}

.timeline-meta {
  gap: 8px;
  justify-content: flex-start;
}

.timeline-actions {
  gap: 10px;
}

.timeline-action {
  flex: 1 1 0;
}

.inline-pill.price-pill {
  background: rgba(47, 125, 225, 0.12);
  color: #cfe1ff;
}

:root[data-theme="light"] .inline-pill.price-pill {
  color: #1c4f98;
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warning-item {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.77rem;
  font-weight: 800;
}

.detail-body,
.checkout-body,
.confirmation-body {
  color: var(--muted-strong);
}

.mobility-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.mobility-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.mobility-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mobility-disabled {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-block,
.checkout-box,
.confirmation-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
}

.detail-visual {
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 16px;
  min-height: 220px;
  background: linear-gradient(135deg, #23263a, #40445f);
}

.detail-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-visual-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(13, 15, 26, 0.34);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.detail-grid {
  margin-top: 14px;
}

.detail-stat {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.detail-stat strong,
.checkout-price,
.confirmation-value {
  display: block;
  color: var(--text);
}

.detail-stat span,
.checkout-label,
.confirmation-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-actions {
  gap: 10px;
  margin-top: 16px;
}

.checkout-line,
.confirmation-line {
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-line:last-child,
.confirmation-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-line:first-child,
.confirmation-line:first-child {
  padding-top: 0;
}

.checkout-note,
.detail-note,
.source-note {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.checkout-cta,
.confirmation-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}

.checkout-cta {
  background: rgba(47, 125, 225, 0.14);
  color: #d7e7ff;
}

.confirmation-banner {
  background: rgba(36, 193, 67, 0.14);
  color: #8df7a1;
}

:root[data-theme="light"] .checkout-cta {
  color: #18437c;
}

:root[data-theme="light"] .confirmation-banner {
  color: #166f2a;
}

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.booking-dialog {
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.feedback-panel,
.account-form {
  display: grid;
  gap: 14px;
}

.feedback-hint {
  margin: 0;
  color: var(--muted);
}

.beta-access-note {
  margin: 14px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.feedback-rating,
.account-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-rating button {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.feedback-rating button.is-selected,
.account-mode-toggle .is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.account-dialog {
  width: min(1120px, 100%);
}

.account-workspace {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.account-workspace > .booking-header,
.account-workspace > #account-message,
.account-workspace > #account-form {
  margin-left: 24px;
  margin-right: 24px;
}

.account-workspace > .booking-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-top: 0;
  padding: 22px 0 16px;
  background: var(--panel);
}

.account-close-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  font-size: 1.65rem;
  line-height: 1;
}

.account-signed-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  padding: 0 24px 24px;
}

.account-signed-in > #account-user {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.account-content-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.account-primary-section {
  grid-row: span 3;
}

.account-profile-form label {
  margin-bottom: -8px;
}

.account-footer-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.account-danger-zone {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--danger) 38%, var(--border));
}

.account-danger-zone > label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button-danger:hover,
.button-danger:focus-visible {
  filter: brightness(1.08);
}

.compact-form {
  margin-top: 12px;
}

.compact-form .form-actions {
  align-items: stretch;
}

.compact-form input {
  min-width: 0;
  flex: 1;
}

.account-section-heading,
.account-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-section-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.account-history-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.account-history-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-strong);
}

.account-history-item p {
  margin: 8px 0;
}

.account-history-request {
  font-weight: 700;
}

.account-history-results {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.account-signed-in {
  display: grid;
  gap: 14px;
}

.account-signed-in p {
  margin: 0;
}

.plan-options-dialog {
  width: min(920px, 100%);
}

.stop-details-dialog {
  width: min(620px, 100%);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.empty-state,
.error-panel {
  text-align: center;
}

.empty-state {
  padding: 42px 22px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--panel-soft);
  font-size: 1.3rem;
  font-weight: 900;
}

.error-panel {
  border-color: rgba(239, 93, 100, 0.32);
  background: var(--danger-soft);
  color: var(--danger);
}

.error-panel p {
  margin-bottom: 0;
}

.plan-options-panel {
  margin-top: 18px;
}

.stop-details-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stop-details-body {
  display: grid;
  gap: 16px;
}

.stop-details-body h3 {
  margin: 0;
  font-size: 1rem;
}

.stop-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stop-details-grid > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-strong);
}

.stop-details-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.stop-details-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.stop-details-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.plan-options-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-options-body {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 6px;
}

.plan-option-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
}

.plan-option-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.plan-option-copy {
  margin: 0;
  color: var(--muted-strong);
}

.plan-option-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  gap: 16px;
  padding: 22px 2px 0;
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

.loading .button-label::after {
  content: "...";
}

@media (max-width: 1100px) {
  .intro-card,
  .workspace-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .topbar,
  .form-actions,
  .status-panel,
  .footer,
  .detail-actions,
  .timeline-actions,
  .day-plan-actions,
  .plan-option-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-index {
    width: 30px;
    height: 30px;
  }

  .button,
  .button-link,
  .timeline-action {
    width: 100%;
  }

  .account-workspace > .booking-header,
  .account-workspace > #account-message,
  .account-workspace > #account-form {
    margin-left: 16px;
    margin-right: 16px;
  }

  .account-signed-in {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .account-primary-section {
    grid-row: auto;
  }

}

/* Align the customer workspace with the editorial Outlin home experience. */
body {
  background:
    radial-gradient(circle at 14% -4%, rgba(108, 76, 255, 0.08), transparent 30%),
    radial-gradient(circle at 94% 8%, rgba(255, 111, 97, 0.07), transparent 25%),
    var(--bg);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-a { width: 360px; height: 360px; top: 380px; left: -170px; background: rgba(108, 76, 255, 0.08); }
.ambient-b { width: 330px; height: 330px; top: 720px; right: -140px; background: rgba(255, 111, 97, 0.07); }

.page-shell { width: min(1180px, calc(100% - 48px)); padding-top: 0; }
.topbar { min-height: 84px; padding: 0; border-bottom: 0; }
.brand-mark { flex: 0 0 auto; background: transparent; color: var(--accent); font-size: 2rem; font-weight: 800; letter-spacing: -0.08em; }
.brand-kicker, .section-kicker, .eyebrow { color: var(--accent); }
.brand-cluster h1 { font-size: 1.3rem; }

.city-chip, .meta-pill, .example-button, .chip, .timeline-tag, .inline-pill {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.icon-button { border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.profile-chip { background: #f3efff; color: #5a48ae; }

.intro-card, .panel, .booking-dialog {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 255, 0.78)), var(--panel);
}

.intro-card h2 { max-width: 680px; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.06em; }
.intro-card h2 em {
  display: block;
  font-style: normal;
  background: linear-gradient(115deg, #6c4cff, #8d5ae8 55%, #ff6f61);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.lead-text { max-width: 620px; line-height: 1.7; }
.trust-card { border-color: rgba(42, 157, 115, 0.24); background: linear-gradient(160deg, #f3fbf7, #e9f7f1); }
.trust-icon { background: #ffffff; color: var(--success); }

.panel-form { padding: 28px; }
.panel-form textarea { min-height: 156px; border-color: var(--border); border-radius: 20px; background: #ffffff; font-size: 1.05rem; }
.button-primary { background: var(--cta); }
.button-primary:hover { background: #2a2b35; box-shadow: 0 12px 26px rgba(23, 24, 33, 0.17); }
.button-secondary { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.68); }

.request-bubble { background: linear-gradient(115deg, #f1edff, #fbf8ff); color: #4e4386; }
.summary-step, .detail-block, .checkout-box, .confirmation-box, .detail-stat { border-color: var(--border); background: rgba(255, 255, 255, 0.7); }
.timeline-index { background: #f1edff; color: #5a48ae; }
.timeline-card { border-color: var(--border); background: rgba(255, 255, 255, 0.82); }
.timeline-card:hover, .timeline-card.is-selected { border-color: rgba(108, 76, 255, 0.28); }
.timeline-card.is-selected { background: linear-gradient(135deg, rgba(246, 243, 255, 0.95), rgba(255, 255, 255, 0.82)); }
.inline-pill.price-pill { background: #f6f3ff; color: #5a48ae; }
.booking-overlay { background: rgba(23, 24, 33, 0.36); backdrop-filter: blur(10px); }

:root[data-theme="dark"] .city-chip,
:root[data-theme="dark"] .meta-pill,
:root[data-theme="dark"] .example-button,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .timeline-tag,
:root[data-theme="dark"] .inline-pill,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .summary-step,
:root[data-theme="dark"] .detail-block,
:root[data-theme="dark"] .checkout-box,
:root[data-theme="dark"] .confirmation-box,
:root[data-theme="dark"] .detail-stat,
:root[data-theme="dark"] .timeline-card { background: var(--panel-soft); }

:root[data-theme="dark"] .locale-toggle { background: var(--panel-soft); }

:root[data-theme="dark"] .intro-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .booking-dialog { background: rgba(31, 32, 42, 0.9); }

:root[data-theme="dark"] .panel-form textarea { background: var(--panel-strong); }
:root[data-theme="dark"] .request-bubble { background: rgba(154, 128, 255, 0.16); color: #e3dcff; }
:root[data-theme="dark"] .timeline-card.is-selected { background: rgba(154, 128, 255, 0.12); }
:root[data-theme="dark"] .intro-card h2 em { background-image: linear-gradient(115deg, #9a80ff, #c1b0ff 55%, #ffb0a9); }

/* The light editorial gradient above is intentionally overridden in dark mode
   so the access explanation remains readable at normal contrast. */
:root[data-theme="dark"] .trust-card {
  background: linear-gradient(160deg, rgba(36, 193, 67, 0.16), rgba(28, 29, 39, 0.92));
  border-color: rgba(101, 226, 130, 0.34);
  color: var(--text);
}

:root[data-theme="dark"] .trust-card strong {
  color: var(--text);
}

:root[data-theme="dark"] .trust-card p {
  color: var(--muted-strong);
}

.conversation-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.conversation-tools p { flex: 1 1 220px; color: var(--muted-strong); }
.conversation-history { margin-top: 20px; }
.conversation-history summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.conversation-messages {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.conversation-message, .budget-alternative {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  overflow-wrap: anywhere;
}
.conversation-message p { white-space: pre-wrap; margin-bottom: 0; }
.conversation-message.is-user { background: var(--panel-strong); }
.budget-alternatives { display: grid; gap: 16px; margin-top: 20px; }
.budget-alternative button { white-space: normal; text-align: left; }

:root[data-theme="dark"] .trust-icon {
  background: rgba(36, 193, 67, 0.14);
  color: #8df7a1;
}
