/* EBR Retail Core P.R. — marketing site
   Mobile-first, no build step. */

:root {
  --bg: #ffffff;
  --ink: #0f1419;
  --ink-soft: #334155;
  --muted: #64748b;
  --paper: #ffffff;
  --paper-2: #f4f8fd;
  --surface: #eef4fb;
  --white: #ffffff;
  --line: #d7e3f2;
  --line-strong: #b9cce3;
  --forest: #2563eb;
  --forest-2: #1d4ed8;
  --forest-3: #3b82f6;
  --clay: #2563eb;
  --clay-2: #1d4ed8;
  --clay-soft: #dbeafe;
  --gold: #f59e0b;
  --focus: #2563eb;
  --shadow: 0 18px 40px -24px rgba(15, 20, 25, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html:lang(en) {
  /* hook for future */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 8% -8%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(245, 158, 11, 0.12), transparent 50%),
    #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

figure { margin: 0; }

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--forest-2);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--forest-3);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2563eb;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.brand-place {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-2);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
  min-height: 36px;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: -0.01em;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.9);
}

.btn-primary:hover {
  background: var(--clay-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: #eff6ff;
  color: var(--forest-2);
}

.btn-on-dark {
  background: var(--gold);
  color: #0f1419;
}

.btn-on-dark:hover {
  background: #f59e0b;
  color: #0f1419;
}

.btn-header {
  display: none;
}

@media (min-width: 720px) {
  .btn-header {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: 2.25rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    padding-block: 1.25rem 0.5rem;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-2);
  margin: 0 0 0.85rem;
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--clay);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.fine {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-art { padding: 0; border: 0; background: transparent; box-shadow: none; }

.hero-art svg {
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.band-copy h2,
.fit h2,
.closing h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.section-head p,
.band-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Day scenes */
.day {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.scenes {
  display: grid;
  gap: 1rem;
}

.scene {
  display: grid;
  gap: 1.1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

@media (min-width: 800px) {
  .scene {
    grid-template-columns: 130px 1fr minmax(280px, 42%);
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }
}

.scene-index {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.scene h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.scene p {
  margin: 0;
  color: var(--ink-soft);
}

.scene-art {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  overflow: visible;
}
.scene-art .app-window {
  width: 100%;
}

.scene-art svg {
  width: 100%;
  height: 110px;
}

@media (min-width: 800px) {
  .scene-when {
    align-self: start;
    padding-top: 0.2rem;
  }
}

/* PR band */
.pr {
  padding-top: 3.5rem;
}

.facts {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  min-height: 100%;
}

.fact-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
}

.fact h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.fact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Fit */
.fit-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.fit-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
}

.fit-yes {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.fit-no {
  background: #fffbeb;
  border-color: #fde68a;
}

.fit-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fit-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-card li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--ink-soft);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.fit-card li:first-of-type {
  border-top: 0;
}

.fit-yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--forest-3);
}

.fit-no li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.7rem;
  height: 2px;
  background: var(--clay);
}

/* Closing */
.closing {
  padding-top: 0.5rem;
}

.closing-box {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 70%, #1e40af 100%);
  color: #eff6ff;
  border-radius: 22px;
  padding: 1.8rem 1.4rem;
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .closing-box {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 2.2rem 2.2rem;
  }
}

.closing h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.closing p {
  margin: 0;
  color: #dbeafe;
  max-width: 36rem;
}

.mail {
  color: #fff;
  font-weight: 650;
}

/* Footer */
.site-footer {
  padding: 1.6rem 0 6.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--clay);
  text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 419px) {
  .brand-place {
    display: none;
  }
  .lang-toggle button {
    padding-inline: 0.5rem;
  }
}

.scene-art img, .hero-art img { width: 100%; height: auto; object-fit: contain; }
.site-header a.btn { white-space: nowrap; }

.hero-art .hero-shot,
.scene-art img[src*="app-"] {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1419;
}
.hero-art {
  overflow: visible;
  padding: 0.6rem;
}

img.zoom {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 18, 0.92);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid #2d3f56;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1a2332;
  color: #e8edf4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}


.app-window {
  margin: 0;
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #c5d4e8;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 22px 50px -24px rgba(15, 20, 25, 0.55);
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  background: linear-gradient(180deg, #243044, #1a2332);
  color: #9fb0c6;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.app-window-bar .dots {
  display: flex;
  gap: 6px;
}
.app-window-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.app-window-bar .dots i:nth-child(1) { background: #ff5f57; }
.app-window-bar .dots i:nth-child(2) { background: #febc2e; }
.app-window-bar .dots i:nth-child(3) { background: #28c840; }
.app-window-bar .title {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 42px;
}
.app-window-body {
  aspect-ratio: 16 / 10;
  background: #0f1419;
  overflow: hidden;
}
.app-window-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.app-window.pos .app-window-body img {
  object-position: left top;
}
.app-window.clock .app-window-body img {
  object-position: center top;
}
.scene-art .app-window.receipt {
  width: 250px;
  max-width: min(250px, 72%);
  margin-inline: auto;
}
.app-window.receipt {
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 18px 36px -22px rgba(15, 20, 25, 0.55);
}
.app-window.receipt .app-window-bar {
  display: none;
}
.app-window.receipt .app-window-body {
  aspect-ratio: 729 / 703;
  background: #fff;
}
.app-window.receipt .app-window-body img {
  object-fit: contain;
  object-position: top center;
  background: #fff;
}
.scene-art .app-window.receipt img[src*="app-"] {
  border: 0;
  border-radius: 0;
  background: #fff;
}
.gallery {
  padding: 0 0 3.25rem;
}
.gallery-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.gallery-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.gallery-card figcaption {
  padding: 0.75rem 0.2rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-art.app-window .app-window-body {
  aspect-ratio: 16 / 10;
}

.scene-art .ticket-slip {
  margin: 0 auto;
  width: 132px;
  max-width: 132px;
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 2px;
  box-shadow: 0 14px 28px -18px rgba(15, 20, 25, 0.5);
  overflow: hidden;
  cursor: zoom-in;
}
.scene-art .ticket-slip img,
.scene-art figure.ticket-slip img.zoom {
  display: block;
  width: 132px;
  max-width: 132px;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  border: 0;
  border-radius: 0;
}
.lightbox img[src*="ticket-fac"] {
  max-width: min(92vw, 420px);
  max-height: 92vh;
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 4px;
}

.phone-frame {
  width: min(220px, 58%);
  margin-inline: auto;
  padding: 10px 8px 14px;
  background: #0f1419;
  border-radius: 28px;
  border: 1px solid #1f2937;
  box-shadow: 0 22px 50px -24px rgba(15, 20, 25, 0.55);
}
.phone-notch {
  width: 72px;
  height: 8px;
  margin: 0 auto 8px;
  background: #111827;
  border-radius: 999px;
}
.phone-screen {
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.4;
}
.phone-wait p { margin: 0; }

.apk-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}
.apk-phones figure { margin: 0; }
.apk-phones figcaption {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.phone-shot {
  width: min(230px, 100%);
  margin-inline: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 40px -22px rgba(15, 20, 25, 0.55);
  background: #0f1419;
  height: auto;
  object-fit: contain;
}
.scene-art.apk-art { overflow: visible; }
.scene-art > .phone-shot { width: min(240px, 72%); }
@media (max-width: 720px) {
  .apk-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Visitor chat */
.rc-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
  font-family: var(--font);
}
.rc-chat-toggle,
.rc-chat-panel {
  pointer-events: auto;
}
.rc-chat-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  background: #fbbf24;
  color: #0f1419;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0.55rem 1.05rem 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -12px rgba(15, 20, 25, 0.55), 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.rc-chat-toggle:hover { background: #f59e0b; }
.rc-chat-toggle svg { color: #1d4ed8; }
.rc-chat:has(#rc-chat-panel:not([hidden])) .rc-chat-toggle { display: none; }
.rc-chat:has(#rc-chat-panel:not([hidden])) { gap: 0; }

.rc-chat-panel {
  width: min(26.5rem, calc(100vw - 1.5rem));
  height: min(34rem, calc(100dvh - var(--header-h) - 1.25rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0f1419;
  border: 1px solid #d7e3f2;
  border-radius: 20px;
  box-shadow: 0 22px 50px -24px rgba(15, 20, 25, 0.55);
  overflow: hidden;
}
.rc-chat-panel[hidden] { display: none !important; }

.rc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem 0.75rem 1.05rem;
  background: #0f1419;
  color: #fff;
  flex: 0 0 auto;
}
.rc-chat-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  font-weight: 700;
}
.rc-chat-head h2 {
  margin: 0.12rem 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.rc-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.rc-chat-langs {
  display: inline-flex;
  border: 1px solid #334155;
  border-radius: 999px;
  overflow: hidden;
}
.rc-chat-langs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  min-height: 32px;
}
.rc-chat-langs button[aria-pressed="true"] {
  background: #fbbf24;
  color: #0f1419;
}

.rc-chat-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
}
.rc-chat-close:hover { background: #1e293b; color: #fff; }

.rc-chat-intro {
  margin: 0;
  padding: 0.65rem 1.05rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.rc-chat-has-thread .rc-chat-intro { display: none; }

.rc-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.9rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #eef3f9;
  pointer-events: auto;
}
.rc-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  max-width: 88%;
}
.rc-chat-msg-user { align-self: flex-end; align-items: flex-end; }
.rc-chat-msg-bot,
.rc-chat-msg-staff { align-self: flex-start; align-items: flex-start; }
.rc-chat-who {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}
.rc-chat-bubble {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.rc-chat-bubble-user {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.rc-chat-bubble-bot {
  background: #fff;
  color: #0f1419;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 5px;
}
.rc-chat-bubble-staff {
  background: #fff;
  color: #0f1419;
  border: 1px solid #bfdbfe;
  border-bottom-left-radius: 5px;
}
.rc-chat-bubble-bot a { color: #1d4ed8; }

.rc-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.8rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex: 0 0 auto;
  pointer-events: auto;
}
.rc-chat-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.rc-chat-compose > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.rc-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}
.rc-chat-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}
.rc-chat-form label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #334155;
}
.rc-chat-req {
  color: #dc2626;
  font-weight: 700;
}
.rc-chat-form input,
.rc-chat-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid #c5d4e8;
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  color: #0f1419;
  background: #f8fafc;
}
.rc-chat-form textarea {
  resize: none;
  min-height: 2.6rem;
  max-height: 6.5rem;
  flex: 1 1 auto;
  line-height: 1.4;
}
.rc-chat-send {
  appearance: none;
  border: 0;
  flex: 0 0 auto;
  min-height: 42px;
  min-width: 5.2rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.rc-chat-send:hover { background: #1d4ed8; }
.rc-chat-send:disabled { opacity: 0.65; cursor: wait; }
.rc-chat-status {
  margin: 0;
  min-height: 0;
  font-size: 0.8rem;
  color: #64748b;
}
.rc-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 520px) {
  .rc-chat { right: 0.5rem; bottom: 0.5rem; }
  .rc-chat-panel {
    width: calc(100vw - 1rem);
    height: calc(100dvh - var(--header-h) - 0.85rem);
  }
  .rc-chat-meta { grid-template-columns: 1fr; }
}
