/* Sales Team 24/7 - one theme file: tokens + shared component kit (spec sections 4, 5, 9) */

/* ---------- Fonts (self-hosted Google Fonts files, latin + latin-ext) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%; }
@font-face { font-family: "Playfair Display Fallback"; src: local("Times New Roman"); ascent-override: 97.25%; descent-override: 22.56%; line-gap-override: 0%; size-adjust: 111.26%; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --background: #232629;
  --foreground: #f9fafb;
  --card: #232629;
  --primary: #96d520;
  --primary-rgb: 150, 213, 32;
  --primary-foreground: #232629;      /* Q8: dark text on green (8.57:1) */
  --secondary: #6c9e33;               /* Q8: was #5f8b2d; lightened to 4.76:1 with dark text */
  --secondary-foreground: #232629;
  --muted: #464a4e;
  --muted-foreground: #8a8c8f;
  --border: #464a4e;
  --border-50: rgba(70, 74, 78, 0.5);
  --input: #464a4e;
  --ring: #96d520;
  --destructive: #dc2828;
  --destructive-foreground: #f9fafb;
  --destructive-text: #f26b6b;        /* error text on dark: 5.0:1 (#dc2828 is 3.2:1) */

  --radius: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --radius-xl: 12px;

  --font-sans: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-head: "Playfair Display", "Playfair Display Fallback", Georgia, serif;

  --container-max: 1400px;
  --gutter: 16px;                     /* 32px from 640px (live); 16px below so the header fits at 390px */
  --header-h: 80px;

  /* Q12: tightened so no empty band exceeds 100px (two adjacent section paddings <= 96px) */
  --section-y: 48px;
  --hero-y-top: 56px;
  --stack-lg: 48px;                   /* intro -> grid/card */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 768px) { :root { --hero-y-top: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0; font-weight: 700; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.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; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-md); font-weight: 500; font-size: 14px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.section-intro { max-width: 768px; margin-inline: auto; text-align: center; }
.section-intro--narrow { max-width: 672px; }
.section-title { font-size: 30px; line-height: 36px; letter-spacing: -0.025em; }
.page-title { font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
.section-lead { margin-top: 16px; font-size: 18px; line-height: 28px; }
.section-lead--muted { color: var(--muted-foreground); }
@media (min-width: 768px) {
  .section-title { font-size: 36px; line-height: 40px; }
  .page-title { font-size: 48px; line-height: 1; }
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; }
.brand__icon { color: var(--primary); }
.brand--header, .brand--drawer, .brand--auth { min-height: 44px; } /* tap target */
.brand--header .brand__text { font-size: 18px; line-height: 28px; white-space: nowrap; }
@media (min-width: 420px) { .brand--header .brand__text { font-size: 24px; line-height: 32px; } }
.brand--drawer .brand__text { font-size: 18px; line-height: 28px; }
.brand--footer .brand__text { font-size: 20px; line-height: 28px; color: var(--secondary-foreground); }
.brand--footer .brand__icon { color: var(--secondary-foreground); }
.brand--auth .brand__text { font-size: 24px; line-height: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast), border-color var(--t-fast);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn--lg { height: 44px; padding: 0 32px; }
.btn--sm { height: 36px; padding: 0 12px; }
.btn--icon { width: 40px; padding: 0; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: rgba(var(--primary-rgb), 0.9); }
.btn--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn--secondary:hover { opacity: 0.8; }
.btn--outline { border: 1px solid var(--input); background: var(--background); color: var(--foreground); }
.btn--outline:hover, .btn--ghost:hover { background: var(--muted); }
.btn--ghost { color: var(--foreground); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%;
  background: rgba(35, 38, 41, 0.8); border-bottom: 1px solid var(--border-50);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header__row { display: flex; align-items: center; height: var(--header-h); }
.brand--header { margin-right: 12px; }
.site-nav { display: none; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; font-weight: 500; }
.site-nav__link { color: var(--muted-foreground); transition: color var(--t-fast); }
.site-nav__link:hover { color: var(--primary); }
.site-header__actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 8px; }
.site-header__actions .btn--primary { height: 36px; padding: 0 12px; }
@media (min-width: 420px) { .site-header__actions .btn--primary { height: 40px; padding: 0 16px; } }
@media (min-width: 768px) {
  .brand--header { margin-right: 24px; }
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); animation: fade-in 300ms ease-out; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 75%; max-width: 384px;
  display: flex; flex-direction: column; padding: 24px;
  background: var(--background); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: slide-in 500ms ease-in-out;
}
.drawer.is-closing .drawer__panel { animation: slide-out 300ms ease-in-out forwards; }
.drawer.is-closing .drawer__overlay { animation: fade-out 300ms ease-in-out forwards; }
.drawer__brand { display: flex; align-items: center; padding-bottom: 16px; padding-right: 32px; border-bottom: 1px solid var(--border); }
.drawer__nav { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.drawer__link { font-size: 18px; line-height: 28px; transition: color var(--t-fast); }
.drawer__link:hover { color: var(--primary); }
.drawer__close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  opacity: 0.7; transition: opacity var(--t-fast);
}
.drawer__close:hover { opacity: 1; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--hero-y-top); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__text { text-align: center; }
.hero__title { font-size: 36px; line-height: 1.25; letter-spacing: -0.05em; }
.hero__lead { margin: 24px auto 0; max-width: 576px; font-size: 18px; line-height: 28px; color: var(--muted-foreground); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero__media { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.hero__glow { position: absolute; inset: -16px; background: rgba(var(--primary-rgb), 0.1); border-radius: 9999px; filter: blur(64px); }
@media (min-width: 768px) {
  .hero__title { font-size: 60px; line-height: 1; }
  .hero__lead { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__text { text-align: left; }
  .hero__lead { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__media { max-width: none; }
}

/* Video frame (F19-F21) and its placeholder (Q7: awaiting MP4) */
.video-frame {
  position: relative; z-index: 1; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); background: var(--card);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; background: rgba(0, 0, 0, 0.4); color: #fff; opacity: 0; transition: opacity var(--t-slow);
}
.video-frame:hover .video-frame__overlay, .video-frame.is-paused .video-frame__overlay, .video-frame__overlay:focus-visible { opacity: 1; }
.video-frame__play { display: none; }
.video-frame.is-paused .video-frame__play { display: block; }
.video-frame.is-paused .video-frame__pause { display: none; }
.video-frame--placeholder {
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    linear-gradient(160deg, #2b2f33, var(--background));
}
/* Hub is sized by the frame's height so its nodes never touch the frame edge or the caption */
.hub { position: absolute; left: 50%; top: 42%; height: 54%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hub__ring { position: absolute; border-radius: 9999px; border: 1px dashed rgba(var(--primary-rgb), 0.35); }
.hub__ring--outer { inset: 0; animation: spin 60s linear infinite; }
.hub__ring--inner { inset: 22%; border-style: solid; border-color: var(--border); }
.hub__core {
  position: absolute; inset: 36%; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: rgba(var(--primary-rgb), 0.15); color: var(--primary);
}
.hub__core .icon { width: 60%; height: 60%; }
.hub__node {
  position: absolute; width: 22%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--background); border: 1px solid var(--border); color: var(--primary);
  transform: translate(-50%, -50%);
}
.hub__node .icon { width: 50%; height: 50%; }
.hub__node--n { left: 50%; top: 0%; }
.hub__node--e { left: 100%; top: 50%; }
.hub__node--s { left: 50%; top: 100%; }
.hub__node--w { left: 0%; top: 50%; }
.hub__caption { position: absolute; left: 24px; right: 24px; bottom: 16px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); text-align: center; }
@media (max-width: 479px) { .hub__caption { display: none; } .hub { top: 50%; height: 64%; } }
@media (prefers-reduced-motion: reduce) { .hub__ring--outer, .spin { animation: none; } }

/* ---------- Cards ---------- */
.card { background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__header { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.card__title:focus { outline: none; }
.card__desc { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.card__content { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.card__footer { padding: 0 24px 24px; display: flex; align-items: center; }

/* Feature cards (F23) */
.feature-grid { margin-top: var(--stack-lg); display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-card {
  padding: 24px; border-color: var(--border-50);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(var(--primary-rgb), 0.5); box-shadow: var(--shadow-2xl); }
.feature-card__icon { display: inline-flex; padding: 12px; margin-bottom: 16px; border-radius: var(--radius); background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.feature-card__title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.feature-card__text { margin-top: 8px; color: var(--muted-foreground); }

/* CTA banner (F24) */
.cta__panel {
  padding: 40px 24px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.8), var(--primary)); color: var(--primary-foreground);
}
.cta__title { color: var(--primary-foreground); }
.cta__text { margin: 16px auto 0; max-width: 672px; font-size: 18px; line-height: 28px; color: rgba(35, 38, 41, 0.9); }
.cta__btn { margin-top: 32px; }
@media (min-width: 640px) { .cta__panel { padding: 40px; } }
@media (min-width: 768px) { .cta__panel { padding: 56px 64px; } }

/* Pricing (F25-F28) */
.pricing-card { margin: var(--stack-lg) auto 0; max-width: 448px; border: 2px solid var(--primary); box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.1); }
.pricing-card__header { padding: 24px 24px 32px; text-align: center; }
.pricing-card__kicker { font-size: 14px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.pricing-card__name { margin-top: 8px; font-size: 30px; line-height: 36px; font-weight: 600; }
.pricing-card__price { margin-top: 16px; }
.pricing-card__amount { font-size: 48px; line-height: 1; font-weight: 700; }
.pricing-card__period { font-size: 18px; line-height: 28px; color: var(--muted-foreground); }
.pricing-card__desc { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.pricing-card__list { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.pricing-card__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted-foreground); }
.pricing-card__list .icon { color: var(--primary); margin-top: 2px; }
.pricing-card__footer { padding: 0 24px 24px; }

/* 404 */
main:has(.not-found) { display: flex; flex-direction: column; }
.not-found { flex: 1; display: flex; align-items: center; }
.not-found__code { font-family: var(--font-head); font-size: 72px; line-height: 1; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.not-found__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: var(--secondary-foreground); border-top: 1px solid var(--border-50); }
.site-footer .container { padding-block: 48px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__col:last-child { grid-column-end: -1; }
  /* Only while Company + Legal are hidden (Q11): brand gets 2 columns so the logo stays on one line */
  .site-footer__brand { grid-column: span 2; }
}
.brand__text { white-space: nowrap; }
.site-footer__tagline { margin-top: 16px; font-size: 14px; line-height: 20px; }
.site-footer__heading { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.site-footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(35, 38, 41, 0.25); text-align: center; font-size: 14px; line-height: 20px; }

/* ---------- Auth shell (signup) ---------- */
.auth-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 112px; width: 100%; }
.auth-shell > * { width: 100%; max-width: 448px; }
.brand--auth { justify-content: center; margin-bottom: 32px; }
.auth-card .card__header { text-align: left; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; line-height: 1; font-weight: 500; }
.field__error { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--destructive-text); }
.field.is-invalid .field__label { color: var(--destructive-text); }
.input {
  display: flex; width: 100%; height: 40px; padding: 8px 12px; border: 1px solid var(--input); border-radius: var(--radius-md);
  background: var(--background); font-size: 16px; line-height: 24px;
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.input:disabled { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 768px) { .input { font-size: 14px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Toast (F36) */
.toast-region { position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: flex; flex-direction: column; padding: 16px; pointer-events: none; }
@media (min-width: 640px) { .toast-region { top: auto; left: auto; bottom: 0; right: 0; width: 100%; max-width: 420px; } }
.toast {
  position: relative; pointer-events: auto; display: flex; flex-direction: column; gap: 4px;
  padding: 24px 32px 24px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  background: var(--destructive); color: var(--destructive-foreground); border: 1px solid var(--destructive);
  animation: toast-in 200ms ease-out; touch-action: pan-y; transition: transform 200ms, opacity 200ms;
}
.toast__title { font-size: 14px; line-height: 20px; font-weight: 600; }
.toast__desc { font-size: 14px; line-height: 20px; opacity: 0.9; }
.toast__close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); opacity: 0.8; }
.toast__close:hover { opacity: 1; }
@keyframes toast-in { from { transform: translateY(-100%); opacity: 0; } }
@media (min-width: 640px) { @keyframes toast-in { from { transform: translateY(100%); opacity: 0; } } }

/* ---------- Chat widget (F45-F56) ---------- */
.chat__toggle { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: 64px; height: 64px; padding: 0; border-radius: 9999px; box-shadow: var(--shadow-lg); }
.chat__toggle-close { display: none; }
.chat.is-open .chat__toggle-open { display: none; }
.chat.is-open .chat__toggle-close { display: block; }
.chat__panel {
  position: fixed; z-index: 50; right: 24px; bottom: 96px; width: 90vw; max-width: 384px; height: 60vh;
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xl);
}
.chat__header { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--primary); color: var(--primary-foreground); border-radius: 7px 7px 0 0; }
.chat__title { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; font-weight: 600; }
.chat__close { color: var(--primary-foreground); }
.chat__close:hover { background: rgba(35, 38, 41, 0.15); }
.chat__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat__list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.chat__msg { display: flex; align-items: flex-start; gap: 12px; }
.chat__msg--user { justify-content: flex-end; }
.chat__avatar { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(var(--primary-rgb), 0.2); color: var(--primary); }
.chat__bubble { max-width: 80%; padding: 8px 16px; border-radius: var(--radius); font-size: 14px; line-height: 20px; background: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.chat__msg--user .chat__bubble { background: var(--primary); color: var(--primary-foreground); }
.chat__dots { display: flex; align-items: center; gap: 4px; height: 20px; }
.chat__dots span { width: 8px; height: 8px; border-radius: 9999px; background: rgba(249, 250, 251, 0.3); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.chat__dots span:nth-child(1) { animation-delay: -0.3s; }
.chat__dots span:nth-child(2) { animation-delay: -0.15s; }
@keyframes pulse { 50% { opacity: 0.5; } }
.chat__form { position: relative; padding: 16px; border-top: 1px solid var(--border); }
.chat__input { padding-right: 48px; }
.chat__send { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); width: 32px; height: 32px; }
@media (max-height: 560px) { .chat__panel { height: calc(100vh - 120px); } }
