.chat-page { background: #f5f7f9; }
.chat-main { background: radial-gradient(circle at 90% 0, rgba(15, 118, 110, .11), transparent 35%), #f5f7f9; }
.chat-container { max-width: 1080px; padding-top: 28px; padding-bottom: 40px; }
.chat-intro { margin-bottom: 20px; }
.chat-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #0f766e; font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.chat-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #0f766e; box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.chat-intro h1 { margin: 0 0 5px; color: #152331; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; }
.chat-intro p { margin: 0; color: #647282; font-size: .96rem; }
.chat-workspace, .chat-gate { overflow: hidden; border: 1px solid #dce3ea; border-radius: 20px; background: #fff; box-shadow: 0 24px 55px rgba(21, 35, 49, .09); }
.chat-workspace { display: flex; flex-direction: column; height: min(820px, calc(100vh - 205px)); min-height: 520px; }
.chat-avatar { display: grid; flex: 0 0 auto; place-items: center; background: #e7f4f1; color: #0f766e; }
.chat-messages { display: flex; flex: 1 1 auto; flex-direction: column; gap: 22px; min-height: 0; overflow-y: auto; padding: 34px 32px; scroll-behavior: smooth; }
.chat-message { display: flex; align-items: flex-start; gap: 11px; max-width: 85%; }
.chat-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: .95rem; }
.chat-message-content { min-width: 0; }
.chat-message-label { display: block; margin-bottom: 6px; color: #647282; font-size: .72rem; font-weight: 700; }
.chat-bubble { padding: 13px 16px; border: 1px solid #e2e9ed; border-radius: 4px 16px 16px 16px; background: #f4f7f8; color: #253644; line-height: 1.58; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message-user { align-self: flex-end; justify-content: flex-end; }
.chat-message-user .chat-message-label { text-align: right; }
.chat-message-user .chat-bubble { border-color: #0b665f; border-radius: 16px 4px 16px 16px; background: #0f766e; color: #fff; }
.chat-message-error .chat-bubble { border-color: #f0c8c8; background: #fff5f5; color: #a43e3e; }
.chat-typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: #0f766e; animation: chat-pulse 1s ease-in-out infinite alternate; }
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-pulse { to { opacity: .25; transform: translateY(-3px); } }
.chat-composer-wrap { flex: 0 0 auto; padding: 15px 28px 18px; border-top: 1px solid #e9eef2; background: #fff; }
.chat-status { margin: 0 0 10px; color: #768693; font-size: .78rem; }
.chat-status:empty { display: none; }
.chat-status.is-error { color: #ad4545; }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; padding: 8px; border: 1px solid #ccd9df; border-radius: 13px; box-shadow: 0 5px 18px rgba(21, 35, 49, .05); }
.chat-composer:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.chat-message-input { flex: 1; min-width: 0; max-height: 150px; min-height: 40px; padding: 9px 2px; border: 0; outline: 0; resize: vertical; color: #152331; }
.chat-message-input::placeholder { color: #83919e; }
.chat-send-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 17px; border: 0; border-radius: 9px; background: #0f766e; color: #fff; font-weight: 700; }
.chat-send-button:hover { background: #0b4f4a; }
.chat-send-button:disabled { opacity: .55; cursor: wait; }
.chat-composer-foot { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; color: #8997a3; font-size: .72rem; }
.chat-character-count { color: #8997a3; font-variant-numeric: tabular-nums; }
.chat-composer-actions { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.chat-clear-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.chat-new-button { color: #0f766e; font-weight: 700; }
.chat-clear-button:hover, .chat-clear-button:focus-visible { color: #0f766e; text-decoration: underline; }
.chat-clear-button:disabled { opacity: .55; cursor: wait; }
.chat-gate { max-width: 780px; margin: 0 auto; padding: 50px clamp(24px, 7vw, 70px); text-align: center; }
.chat-gate-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 17px; background: #e8f4f2; color: #0f766e; font-size: 1.6rem; }
.chat-gate h2 { margin: 15px 0 16px; color: #152331; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; }
.chat-gate p { max-width: 580px; margin: 0 auto 10px; color: #647282; line-height: 1.65; }
.chat-gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chat-gate-actions .btn { min-width: 185px; padding: 11px 20px; border-radius: 9px; font-weight: 700; }
.chat-gate-primary { background: #0f766e; color: #fff; }
.chat-gate-primary:hover { background: #0b4f4a; color: #fff; }
.chat-gate-primary i { margin-left: 8px; }
.chat-gate-secondary { border: 1px solid #bbcdd0; color: #184f4c; }
.chat-gate-secondary:hover { border-color: #0f766e; background: #f0f8f6; color: #0f766e; }
.chat-guest-form { max-width: 430px; margin: 25px auto 0; text-align: left; }
.chat-guest-form label { display: block; margin: 0 0 7px; color: #34495d; font-size: .82rem; font-weight: 700; }
.chat-guest-form .form-control { min-height: 45px; margin-bottom: 17px; border-color: #ccd9df; border-radius: 9px; }
.chat-guest-form .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.chat-guest-captcha { display: flex; align-items: center; gap: 10px; }
.chat-guest-captcha img { flex: 0 0 112px; width: 112px; height: 38px; border: 1px solid #dce3ea; border-radius: 8px; }
.chat-guest-form .chat-guest-captcha .form-control { width: 100px; height: 38px; min-height: 38px; margin-bottom: 0; text-align: center; text-transform: uppercase; letter-spacing: .16em; }
.chat-guest-form .btn { width: 100%; padding: 11px 20px; border-radius: 9px; font-weight: 700; }
.chat-guest-error { max-width: 430px; margin: 20px auto 0; text-align: left; }
.chat-gate .chat-guest-note { max-width: 430px; margin-top: 11px; font-size: .76rem; }
.chat-gate .chat-gate-divider { margin-top: 26px; font-size: .82rem; }
.chat-gate-divider::before, .chat-gate-divider::after { content: ''; display: inline-block; width: 22px; height: 1px; margin: 0 9px 4px; background: #cbd7dc; }
@media (max-width: 767.98px) {
    .chat-container { padding-top: 22px; padding-bottom: 30px; }
    .chat-intro { margin-bottom: 16px; }
    .chat-workspace { height: calc(100dvh - 175px); min-height: 420px; }
    .chat-composer-wrap { padding-left: 17px; padding-right: 17px; }
    .chat-messages { padding: 22px 17px; }
    .chat-message { max-width: 96%; }
}
@media (max-width: 479.98px) {
    .chat-workspace, .chat-gate { border-radius: 13px; }
    .chat-gate-actions .btn { width: 100%; }
    .chat-send-button { padding: 0 12px; }
    .chat-send-button span { display: none; }
}
