/* Dedicated conversation layout inspired by Local Web SA; Money Back palette. */
.chat-page { height: 100dvh; overflow: hidden; font-family: var(--font-ui); }
.chat-shell { height: 100dvh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.chat-sidebar { background: #0b0b0d; border-right: 1px solid var(--line); padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; min-height: 0; overflow-y: auto; }
.chat-sidebar .brand { gap: 10px; }
.chat-sidebar .brand__mark { width: 38px; height: 38px; }
.chat-sidebar .brand__type b { font-size: .9rem; }
.chat-sidebar .brand__type span { font-size: .55rem; }
.chat-new { text-align: left; min-height: 48px; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; font: inherit; color: var(--ink); background: #18181b; cursor: pointer; }
.chat-kicker { color: var(--ink-soft); text-transform: uppercase; font-size: .65rem; font-weight: 600; letter-spacing: .18em; line-height: 1.8; }
.chat-topics { display: grid; gap: 6px; margin-top: -12px; }
.chat-topics button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 10px; min-height: 48px; text-align: left; font: inherit; font-size: .85rem; color: var(--ink-soft); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.chat-topics button svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; flex-shrink: 0; }
.chat-topics button:hover { background: #1b1b20; color: var(--ink); }
.chat-sidebar-foot { margin-top: auto; display: grid; gap: 16px; font-size: .78rem; line-height: 1.7; color: var(--ink-soft); }
.chat-sidebar-foot > p { font-size: 1.3rem; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.chat-sidebar-foot a { min-height: 44px; display: flex; align-items: center; }
.chat-sidebar-foot a:first-of-type { color: var(--accent-soft); }
.chat-main { height: 100dvh; display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse at 80% 0%, #22141f55, transparent 50%), var(--bg); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-identity { display: flex; align-items: center; gap: 12px; }
.chat-identity img { border-radius: 50%; flex-shrink: 0; }
.chat-identity h1 { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; font-family: var(--font-ui); }
.chat-identity p { font-size: .7rem; color: var(--ink-soft); margin-top: 3px; }
.chat-home { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; border: 1px solid var(--line-2); border-radius: 6px; padding: 10px; min-height: 44px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 38px max(24px, calc((100% - 760px) / 2)); scroll-behavior: smooth; }
.chat-intro { padding: 12px 0 28px; }
.chat-intro h2 { font-family: var(--font-ui); font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -.06em; line-height: 1.05; text-transform: none; font-weight: 600; margin: 16px 0; }
.chat-intro > p:last-child { font-size: .9rem; line-height: 1.7; max-width: 42ch; color: var(--ink-soft); }
.chat-messages { display: flex; flex-direction: column; gap: 28px; }
.chat-message { max-width: 100%; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.8; }
.chat-message__label { display: block; font-weight: 700; text-transform: uppercase; font-size: .65rem; color: var(--ink-soft); letter-spacing: .12em; margin-bottom: 8px; }
.chat-message p { white-space: pre-wrap; }
.chat-message--user { align-self: flex-end; max-width: 88%; background: #202023; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px 14px 3px 14px; }
.chat-message--assistant { border-left: 2px solid var(--accent); padding: 0 0 0 18px; }
.chat-message-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chat-message-actions a, .chat-message-actions button, .chat-mobile-actions button, .chat-booking-alternatives > * { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink); background: transparent; font: inherit; font-size: .75rem; line-height: 1.5; cursor: pointer; }
.chat-message-actions > :first-child { border-color: #fb3a5d66; }
.chat-message-actions a:hover, .chat-message-actions button:hover { background: var(--surface-2); }
.chat-composer { flex-shrink: 0; padding: 12px max(24px, calc((100% - 760px) / 2)) max(16px, env(safe-area-inset-bottom)); background: #0a0a0c; border-top: 1px solid var(--line); }
.chat-status { font-size: .72rem; color: var(--ink-soft); min-height: 22px; margin-bottom: 6px; }
#chat-form { display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; background: #18181b; }
#chat-form:focus-within { border-color: var(--accent); }
#chat-input { border: 0; outline: 0; background: none; color: var(--ink); resize: none; min-width: 0; width: 100%; min-height: 44px; max-height: 120px; padding: 11px 6px; font: inherit; font-size: 16px; line-height: 1.4; }
#chat-send { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 1.5rem; cursor: pointer; }
.chat-page button:disabled { opacity: .5; cursor: wait; }
.chat-note { font-size: .72rem; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; }
.chat-note a { text-decoration: underline; text-underline-offset: 3px; }
.chat-booking { margin-top: 28px; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.chat-booking-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.chat-booking-heading h2 { font: 600 1.5rem/1.3 var(--font-ui); text-transform: none; letter-spacing: -.03em; margin-top: 8px; }
#booking-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; font-size: 1.6rem; color: var(--ink); flex-shrink: 0; background: transparent; cursor: pointer; }
#chat-booking-form { margin-top: 24px; }
.chat-booking .field { margin-bottom: 18px; }
.chat-booking .field input, .chat-booking .field select, .chat-booking .field textarea { font-size: 16px; width: 100%; min-width: 0; }
.chat-booking .field-row { gap: 16px; }
.chat-booking-total { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 20px 0; font-size: .85rem; }
.chat-booking-total output { font-weight: 700; font-size: 1.1rem; }
.chat-booking-review { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.chat-booking-review h3 { font: 600 1.1rem/1.5 var(--font-ui); text-transform: none; }
#booking-summary { font: .85rem/1.9 var(--font-ui); white-space: pre-wrap; overflow-wrap: anywhere; margin: 20px 0; }
.chat-booking-alternatives { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chat-booking[hidden], .chat-booking-review[hidden], .chat-intro[hidden] { display: none; }
.chat-mobile-topics { display: none; }
.chat-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { display: none; }
  .chat-header { padding: 12px 16px; }
  .chat-scroll { padding: 24px 16px; }
  .chat-composer { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .chat-mobile-topics { display: block; border-bottom: 1px solid var(--line); flex-shrink: 0; max-height: 30dvh; overflow-y: auto; }
  .chat-mobile-topics summary { padding: 13px 16px; min-height: 44px; font-size: .78rem; cursor: pointer; color: var(--ink-soft); }
  .chat-mobile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
  .chat-booking { padding: 18px; }
}
@media (max-width: 420px) { .chat-home span { display: none; } .chat-home { min-width: 44px; } .chat-identity h1 { font-size: .83rem; } .chat-booking .field-row { grid-template-columns: minmax(0,1fr); } .chat-note { font-size: .68rem; } }
@media (prefers-reduced-motion: reduce) { .chat-scroll { scroll-behavior: auto; } }
