/*
 * RGAB Concierge (/concierge/): a full-height messaging page. Mobile first: one column, the conversation fills the screen, a compact header, a sticky
 * composer. From 900 px a two-panel layout (sidebar and conversation); from 1700 px the whole app is a centred window. Original design in the RGAB colours
 * (navy #1B2A4A, charcoal #545454, gold #D7B85D); the only image is the official monogram of the site. Fonts are the ones the site already loads.
 *
 * Motion: lightweight CSS only (typing dots, message and chip entrance, chip selection, send button, drawer, dialog, success, the status dot). Every animation
 * is declared inside the "no-preference" block; the reduced-motion block at the end switches all motion off. Entrances are 300 ms or less; only the typing
 * dots and the status dot repeat. The script sets two custom properties on #cc-root (--cc-vh, --cc-vt) from window.visualViewport and one (--cc-banner) from the
 * cookie notice, so that the composer always stays above the on-screen keyboard and the notice.
 */

body[data-page="chat"] {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0F1A33;
}
html:has(body[data-page="chat"]) { height: 100%; overflow: hidden; scroll-behavior: auto; }
body[data-page="chat"] #main-content { display: block; margin: 0; padding: 0; height: 100%; outline: none; }

.cc-app {
  --cc-navy: #1B2A4A;
  --cc-navy-2: #24386A;
  --cc-navy-deep: #0F1A33;
  --cc-charcoal: #545454;
  --cc-gold: #D7B85D;
  --cc-gold-soft: #F3E8C6;
  --cc-gold-deep: #7A6528;
  --cc-paper: #F4F1EA;
  --cc-line: rgba(27, 42, 74, 0.14);
  --cc-edge: rgba(27, 42, 74, 0.45);
  --cc-ok: #2E7D5B;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--cc-vt, 0px);
  height: calc(var(--cc-vh, 100vh) - var(--cc-banner, 0px));
  display: flex;
  background: var(--cc-paper);
  color: var(--cc-navy);
  font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
@supports (height: 100dvh) {
  .cc-app { height: calc(var(--cc-vh, 100dvh) - var(--cc-banner, 0px)); }
}
.cc-app *, .cc-app *::before, .cc-app *::after { box-sizing: border-box; }
.cc-app [hidden] { display: none !important; }
:where(.cc-app) button { font: inherit; color: inherit; cursor: pointer; }
/* a tap is a tap: no grey flash, no double-tap zoom delay on the controls */
:where(.cc-app) button, :where(.cc-app) a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.cc-app) a { color: inherit; }
:where(.cc-app) p { margin: 0 0 0.55em; }
:where(.cc-app) h1, :where(.cc-app) h2 { font-family: inherit; margin: 0; line-height: 1.2; }

/* the site's gold sweep under inline links (rgab-motion.css) is for documents; in the conversation links keep their plain underline */
body[data-page="chat"] main .cc-app :is(p, li, td, dd) a:not(.btn):not(.card-link) { background: none; }

/* keep the focus ring visible on every surface */
.cc-app :focus-visible { outline: 2px solid #0B111E; outline-offset: 2px; box-shadow: 0 0 0 2px #FFFDF8; }
.cc-side :focus-visible, .cc-head :focus-visible { outline-color: #FFFDF8; box-shadow: 0 0 0 2px #0B111E; }

/* ------------------------------------------------------------------ sidebar (a drawer below 900 px) */
.cc-side {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(86vw, 328px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--cc-navy) 0%, var(--cc-navy-deep) 100%);
  color: #FFFDF8;
  transform: translateX(-104%);
  visibility: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.cc-app[data-side="open"] .cc-side { transform: none; visibility: visible; }
.cc-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; background: rgba(11, 17, 30, 0.55); }
.cc-side-top { padding: 14px 14px 8px; }
.cc-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.cc-logo img { width: 40px; height: 40px; }
.cc-brand-text { min-width: 0; flex: 1; }
.cc-brand-name { margin: 0; font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.cc-brand-tag { margin: 2px 0 0; font-size: 0.78rem; color: var(--cc-gold); }
.cc-icon-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: inherit; }
.cc-icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.cc-new {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--cc-gold);
  color: var(--cc-navy);
  font-weight: 800;
  font-size: 0.98rem;
}
.cc-new svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cc-new:hover { background: #E3C978; }
.cc-side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.cc-side-group { margin-top: 10px; }
.cc-side-h { margin: 12px 12px 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc-gold); font-family: inherit; }
.cc-side-list { list-style: none; margin: 0; padding: 0; }
.cc-side-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #FFFDF8;
  text-align: left;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.3;
}
.cc-side-link:hover { background: rgba(255, 255, 255, 0.1); }
.cc-side-foot { padding: 12px 18px 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cc-side-home { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; color: var(--cc-gold); }
.cc-side-company { margin: 0; font-size: 0.68rem; letter-spacing: 0.16em; color: rgba(255, 253, 248, 0.78); }

/* ------------------------------------------------------------------ main panel */
.cc-main { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--cc-paper); }
.cc-head {
  position: sticky;
  top: 0;
  z-index: 5;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: calc(6px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(6px, env(safe-area-inset-left));
  background: var(--cc-navy);
  color: #FFFDF8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.cc-avatar--head { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.cc-avatar--head img { width: 32px; height: 32px; }
.cc-id { min-width: 0; flex: 1; }
.cc-title { font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-sub { margin: 0; font-size: 0.78rem; line-height: 1.25; color: rgba(255, 253, 248, 0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-ai { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.cc-ai-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--cc-gold); }
.cc-ai[data-state="paused"] .cc-ai-dot { background: #9AA0AC; }
.cc-ai-short { display: none; }

.cc-prog { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: #fff; border-bottom: 1px solid var(--cc-line); }
.cc-prog-bar { flex: 1; height: 6px; border: 0; border-radius: 999px; background: rgba(27, 42, 74, 0.12); overflow: hidden; -webkit-appearance: none; appearance: none; }
.cc-prog-bar::-webkit-progress-bar { background: rgba(27, 42, 74, 0.12); border-radius: 999px; }
.cc-prog-bar::-webkit-progress-value { background: var(--cc-gold); border-radius: 999px; }
.cc-prog-bar::-moz-progress-bar { background: var(--cc-gold); border-radius: 999px; }
.cc-prog-label { flex: none; font-size: 0.74rem; font-weight: 700; color: var(--cc-charcoal); }

.cc-banner { flex: none; padding: 10px 14px; background: #F6EFD8; border-bottom: 1px solid #D9C98C; max-height: 42%; overflow-y: auto; }
.cc-banner-title { margin: 0 0 2px; font-weight: 800; font-size: 0.9rem; }
.cc-banner-text { margin: 0 0 8px; font-size: 0.85rem; }
.cc-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-fatal { flex: 1; padding: 24px 18px; overflow-y: auto; background: #fff; }
.cc-noscript { padding: 18px 16px; background: #fff; border-radius: 16px; }
.cc-app[data-state="error"] .cc-log-wrap { display: none; }
.cc-app[data-state="loading"] .cc-composer { visibility: hidden; }
.cc-noscript h2 { margin: 18px 0 8px; font-size: 1.05rem; }
.cc-noscript ul { padding-left: 1.1rem; }
.cc-noscript .cc-side-link { color: var(--cc-navy); text-decoration: underline; min-height: 32px; display: inline-flex; padding: 2px 0; }
.cc-noscript .faq-item { border-bottom: 1px solid var(--cc-line); }
.cc-noscript .faq-q { cursor: pointer; font-weight: 700; padding: 10px 0; }
.cc-noscript .faq-a { margin: 0; padding: 0 0 12px; }
.cc-fatal-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ the log */
.cc-log-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cc-log {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px 10px max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  background-color: var(--cc-paper);
  background-image: radial-gradient(rgba(27, 42, 74, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cc-log:focus-visible { outline-offset: -3px; }
.cc-log > * { flex: none; width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
.cc-day, .cc-msg.is-note { display: flex; justify-content: center; }
.cc-day span {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.08);
  color: var(--cc-charcoal);
  font-size: 0.72rem;
  font-weight: 700;
}
.cc-msg.is-note .cc-col { max-width: min(92%, 600px); align-items: center; }
.cc-msg.is-note .cc-bubble { background: #fff; border: 1px solid var(--cc-line); border-radius: 14px; color: var(--cc-charcoal); font-size: 0.82rem; line-height: 1.4; text-align: center; box-shadow: none; padding: 8px 12px; }
.cc-msg { display: flex; align-items: flex-start; gap: 8px; }
.cc-msg--user { justify-content: flex-end; }
.cc-msg.is-cont { margin-top: -4px; }
.cc-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--cc-line); background: #fff url(/assets/img/rgab-monogram.png) center / 74% no-repeat; }
.cc-msg.is-cont .cc-avatar { visibility: hidden; }
.cc-col { display: flex; flex-direction: column; min-width: 0; max-width: min(88%, 620px); }
.cc-msg--user .cc-col { align-items: flex-end; }
.cc-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(27, 42, 74, 0.12);
}
.cc-msg--bot .cc-bubble { background: #fff; color: var(--cc-navy); border-bottom-left-radius: 6px; }
.cc-msg--bot.is-cont .cc-bubble { border-top-left-radius: 8px; }
.cc-msg--user .cc-bubble { background: var(--cc-navy); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.cc-bubble p:last-child { margin-bottom: 0; }
.cc-bubble p + p { margin-top: 0.15em; }
.cc-badge { display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 999px; background: var(--cc-gold-soft); color: var(--cc-navy); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.cc-links { margin: 8px 0 0; font-size: 0.88rem; }
.cc-inline-link { font-weight: 700; color: var(--cc-navy); text-decoration: underline; text-underline-offset: 3px; }
.cc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; padding: 0 4px; font-size: 0.72rem; color: var(--cc-charcoal); }
.cc-msg--user .cc-meta { justify-content: flex-end; }
.cc-msg.is-cont .cc-meta { display: none; }
.cc-time { font-variant-numeric: tabular-nums; }
.cc-edit, .cc-retry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -12px -4px;
  padding: 12px 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--cc-navy);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-edit .cc-ico, .cc-retry .cc-ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-edit:disabled { opacity: 0.45; cursor: default; }
.cc-state { display: inline-flex; align-items: center; gap: 8px; }
.cc-state.is-failed { color: #9B1C1C; font-weight: 700; }
.cc-msg--user.is-failed .cc-bubble { background: #6B2A2A; }
.cc-msg--user.is-sending .cc-bubble { opacity: 0.78; }

/* typing dots */
.cc-bubble--typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cc-charcoal); opacity: 0.55; }

/* quick replies, under the message they belong to */
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1.5px solid var(--cc-edge);
  border-radius: 999px;
  background: #fff;
  color: var(--cc-navy);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.cc-chip:hover { background: var(--cc-gold-soft); border-color: var(--cc-gold-deep); }
.cc-chip.is-solid { background: var(--cc-gold); border-color: var(--cc-gold); color: var(--cc-navy); }
.cc-chip.is-solid:hover { background: #E3C978; border-color: #E3C978; }
.cc-chip.is-quiet { border-style: dashed; border-color: rgba(84, 84, 84, 0.6); color: var(--cc-charcoal); font-weight: 600; background: transparent; }
.cc-chip.is-picked { background: var(--cc-gold); border-color: var(--cc-gold); color: var(--cc-navy); }
.cc-chip[aria-disabled="true"] { cursor: default; }

/* the recap of the answers and the agreements, inside two messages */
.cc-rows { margin: 8px 0 0; padding: 0; }
.cc-row { padding: 8px 0; border-bottom: 1px solid var(--cc-line); }
.cc-row:last-child { border-bottom: 0; }
.cc-row-k { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; color: var(--cc-charcoal); text-transform: uppercase; }
.cc-row-v { margin: 2px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-row-text { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.cc-row-text.is-empty { color: var(--cc-charcoal); font-weight: 400; font-style: italic; }
.cc-row.is-missing .cc-row-k { color: #9B1C1C; }
.cc-row-list { margin: 0; padding-left: 1.1rem; }
.cc-row .cc-edit { margin: 0; flex: none; }
.cc-consent { margin-top: 8px; }
.cc-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; }
.cc-check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--cc-navy); }
.cc-check label { font-size: 0.94rem; line-height: 1.4; }
.cc-check a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cc-field-err { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: #FBEAEA; color: #8A1C1C; font-size: 0.86rem; font-weight: 700; }
.cc-note { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--cc-charcoal); }
.cc-submit-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--cc-gold);
  color: var(--cc-navy);
  font-weight: 800;
  font-size: 1rem;
}
.cc-submit-btn:hover:not(:disabled) { background: #E3C978; }
.cc-submit-btn:disabled { background: rgba(27, 42, 74, 0.14); color: var(--cc-charcoal); cursor: not-allowed; }
.cc-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--cc-charcoal); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* the confirmation */
.cc-done-tick { display: block; width: 52px; height: 52px; margin: 2px 0 6px; }
.cc-done-tick svg { width: 52px; height: 52px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cc-done-tick circle { stroke: var(--cc-ok); stroke-width: 1.8; fill: rgba(46, 125, 91, 0.1); }
.cc-done-tick path { stroke: var(--cc-ok); stroke-width: 2.2; }
.cc-done-title { margin: 0 0 4px; font-weight: 800; font-size: 1.1rem; }
.cc-next { margin: 6px 0; padding-left: 1.1rem; }
.cc-done-keep { font-size: 0.88rem; color: var(--cc-charcoal); }

.cc-jump {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 6px 18px rgba(11, 17, 30, 0.3);
}
.cc-jump svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cc-skel { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border-radius: 18px; border-bottom-left-radius: 6px; max-width: 70%; margin-left: 40px; margin-right: auto; }
.cc-skel-line { display: block; height: 12px; width: 60%; border-radius: 6px; background: rgba(27, 42, 74, 0.1); }
.cc-skel-line.is-long { width: 92%; }

/* ------------------------------------------------------------------ the composer: sticky at the bottom, above the keyboard */
.cc-composer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex: none;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(244, 241, 234, 0.96);
  border-top: 1px solid var(--cc-line);
}
.cc-box { position: relative; max-width: 780px; margin: 0 auto; }
/* the field itself is the rounded pill, so that its focus ring is the real ring of the site (the send button sits inside it, on the right) */
.cc-app .cc-input {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 9em;
  margin: 0;
  padding: 13px 58px 13px 18px;
  border: 1.5px solid var(--cc-edge);
  border-radius: 26px;
  background: #fff;
  color: var(--cc-navy);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}
.cc-app .cc-input:focus { border-color: var(--cc-navy); }
.cc-app .cc-input:focus-visible { outline: 3px solid #0B111E; outline-offset: 2px; box-shadow: 0 0 0 2px #FFFDF8; }
.cc-input::placeholder { color: #6B6B6B; opacity: 1; }
.cc-send {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 42, 74, 0.12);
  color: var(--cc-charcoal);
}
.cc-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cc-send.is-ready { background: var(--cc-gold); color: var(--cc-navy); }
.cc-send:disabled { cursor: default; }
.cc-disclosure { max-width: 780px; margin: 6px auto 0; font-size: 0.72rem; line-height: 1.35; color: var(--cc-charcoal); text-align: center; }
.cc-app[data-kb="open"] .cc-disclosure { display: none; }

/* ------------------------------------------------------------------ the dialog (new conversation, help) */
.cc-modal { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal-back { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11, 17, 30, 0.6); }
.cc-modal-card { position: relative; width: 100%; max-width: 480px; max-height: 88%; overflow-y: auto; padding: 22px 20px 18px; border-radius: 20px; background: #fff; color: var(--cc-navy); box-shadow: 0 24px 60px rgba(11, 17, 30, 0.45); }
.cc-modal-card:focus { outline: none; }
.cc-modal-title { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.cc-modal-intro { font-size: 0.9rem; color: var(--cc-charcoal); }
.cc-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cc-btn { min-height: 46px; padding: 0 20px; border: 1.5px solid var(--cc-edge); border-radius: 14px; background: #fff; color: var(--cc-navy); font-weight: 700; }
.cc-btn.is-solid { background: var(--cc-navy); border-color: var(--cc-navy); color: #fff; }
.cc-help-list { list-style: none; margin: 0; padding: 0; }
.cc-help-q { display: block; width: 100%; min-height: 48px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--cc-line); background: transparent; color: var(--cc-navy); text-align: left; font-weight: 600; font-size: 0.95rem; }
.cc-help-q:hover { background: var(--cc-gold-soft); }
.cc-help-links { margin: 14px 0 0; font-size: 0.88rem; }
.cc-help-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------------ narrow phones: the status dot keeps its short word */
@media (max-width: 560px) {
  .cc-ai-full { display: none; }
  .cc-ai-short { display: inline; }
  .cc-ai { padding: 4px 9px; }
}
@media (max-width: 359px) {
  .cc-sub { font-size: 0.72rem; }
}

/* ------------------------------------------------------------------ tablets and up: roomier bubbles */
@media (min-width: 720px) {
  .cc-log { padding: 20px 20px 12px; gap: 10px; }
  .cc-bubble { font-size: 1.04rem; padding: 11px 16px; }
  .cc-composer { padding-left: 20px; padding-right: 20px; }
  .cc-col { max-width: min(82%, 640px); }
}

/* ------------------------------------------------------------------ laptops: the two panels of a messenger */
@media (min-width: 900px) {
  .cc-menu, .cc-side-close, .cc-scrim { display: none; }
  .cc-side { position: static; flex: none; width: 300px; transform: none; visibility: visible; z-index: auto; }
  .cc-head { background: #fff; color: var(--cc-navy); box-shadow: none; border-bottom: 1px solid var(--cc-line); padding-left: 22px; padding-right: 22px; min-height: 68px; }
  .cc-sub { color: var(--cc-charcoal); }
  .cc-ai { background: rgba(27, 42, 74, 0.08); }
  .cc-head :focus-visible { outline-color: #0B111E; box-shadow: 0 0 0 2px #FFFDF8; }
  .cc-ai-full { display: inline; }
  .cc-ai-short { display: none; }
  .cc-log { padding: 24px 28px 14px; }
  .cc-bubble { font-size: 1.06rem; }
}
@media (min-width: 1280px) {
  .cc-side { width: 330px; }
  .cc-title { font-size: 1.08rem; }
}
/* very large monitors: the app is a centred window */
@media (min-width: 1700px) and (min-height: 760px) {
  body[data-page="chat"] { background: radial-gradient(circle at 20% 10%, #24386A 0%, #0F1A33 60%); }
  .cc-app { left: 50%; right: auto; width: 1560px; margin-left: -780px; top: calc(var(--cc-vt, 0px) + 24px); height: calc(var(--cc-vh, 100vh) - var(--cc-banner, 0px) - 48px); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
}
@supports (height: 100dvh) {
  @media (min-width: 1700px) and (min-height: 760px) {
    .cc-app { height: calc(var(--cc-vh, 100dvh) - var(--cc-banner, 0px) - 48px); }
  }
}
/* short screens (a phone turned on its side): a lighter header and no disclosure line under the composer */
@media (max-height: 460px) {
  .cc-head { min-height: 52px; }
  .cc-disclosure { display: none; }
}

/* ------------------------------------------------------------------ motion: only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cc-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes cc-in-user { from { opacity: 0; transform: translateX(12px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes cc-chip-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes cc-chip-out { from { opacity: 1; } to { opacity: 0; transform: scale(0.94); } }
  @keyframes cc-chip-pick { from { transform: scale(1); } 50% { transform: scale(1.06); } to { transform: scale(1); } }
  @keyframes cc-bob { from { transform: translateY(0); opacity: 0.45; } to { transform: translateY(-4px); opacity: 1; } }
  @keyframes cc-pop { from { transform: scale(0.82); } 60% { transform: scale(1.1); } to { transform: scale(1); } }
  @keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes cc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes cc-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
  @keyframes cc-ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.6); opacity: 0; } }
  @keyframes cc-shimmer { from { opacity: 0.55; } to { opacity: 1; } }

  .cc-main { animation: cc-fade 300ms ease-out both; }
  .cc-msg--bot { animation: cc-in 240ms ease-out both; }
  .cc-msg--user { animation: cc-in-user 200ms ease-out both; }
  .cc-day { animation: cc-fade 300ms ease-out both; }
  .cc-chips .cc-chip { animation: cc-chip-in 220ms ease-out both; }
  .cc-chips .cc-chip:nth-child(2) { animation-delay: 40ms; }
  .cc-chips .cc-chip:nth-child(3) { animation-delay: 80ms; }
  .cc-chips .cc-chip:nth-child(4) { animation-delay: 120ms; }
  .cc-chips .cc-chip:nth-child(5) { animation-delay: 160ms; }
  .cc-chips .cc-chip:nth-child(6) { animation-delay: 200ms; }
  .cc-chips .cc-chip:nth-child(7) { animation-delay: 240ms; }
  .cc-chips .cc-chip:nth-child(n+8) { animation-delay: 280ms; }
  .cc-chips.is-leaving .cc-chip { animation: cc-chip-out 180ms ease-in both; }
  .cc-chips.is-leaving .cc-chip.is-picked { animation: cc-chip-pick 200ms ease-out both; }
  .cc-dot { animation: cc-bob 300ms ease-in-out infinite alternate; }
  .cc-dot:nth-child(2) { animation-delay: 100ms; }
  .cc-dot:nth-child(3) { animation-delay: 200ms; }
  .cc-send.is-ready { animation: cc-pop 200ms ease-out both; }
  .cc-ai-dot::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: var(--cc-gold); animation: cc-ring 2400ms ease-out infinite; }
  .cc-ai[data-state="paused"] .cc-ai-dot::after { animation: none; }
  .cc-jump { animation: cc-rise 200ms ease-out both; }
  .cc-modal-card { animation: cc-rise 200ms ease-out both; }
  .cc-modal-back { animation: cc-fade 200ms ease-out both; }
  .cc-side { transition: transform 250ms ease-out, visibility 0s linear 250ms; }
  .cc-app[data-side="open"] .cc-side { transition: transform 250ms ease-out, visibility 0s; }
  .cc-scrim { animation: cc-fade 200ms ease-out both; }
  .cc-done-tick path { stroke-dasharray: 30; animation: cc-draw 300ms ease-out 150ms both; }
  .cc-done-tick svg { animation: cc-pop 300ms ease-out both; }
  .cc-skel { animation: cc-shimmer 300ms ease-in-out infinite alternate; }
  .cc-prog-bar::-webkit-progress-value { transition: width 300ms ease-out; }
  .cc-chip, .cc-side-link, .cc-new, .cc-send, .cc-submit-btn, .cc-btn, .cc-help-q { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
  .cc-box { transition: border-color 150ms ease, box-shadow 150ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-app *, .cc-app *::before, .cc-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
