.chat-hero{margin-bottom:16px}
#chat-status{min-height:1.55em;color:var(--muted);margin:0 0 12px}
.auth-card{max-width:510px}
.chat-fallback{margin:8px 0 16px}
.chat-form{display:grid;gap:12px}
.chat-form label{display:grid;gap:5px;font-weight:600;font-size:.92rem}
.chat-form input,.chat-form textarea{width:100%;border:1px solid #425467;background:#141f2a;border-radius:9px;color:var(--text);font:inherit;padding:9px;min-height:42px}
.chat-form textarea{resize:vertical}
.chat-form textarea:focus-visible,button:focus-visible{outline:2px solid #8cc9ff;outline-offset:3px}
button{font-family:inherit;cursor:pointer}
button:disabled{opacity:.64;cursor:wait}
.contact-top{display:flex;justify-content:end;gap:8px;align-items:start;flex-wrap:wrap;margin-bottom:12px}
.recovery{flex:1 1 270px;background:#284359;border-radius:8px;color:#edfcff;padding:7px;overflow-wrap:anywhere;user-select:all}
.chat-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}
#chat-tickets{display:grid;gap:8px;margin:12px 0}
#chat-create-panel summary{font-size:.92rem}
.ticket-choice{background:var(--surface-hover);color:var(--text);border:1px solid var(--stroke);border-radius:8px;padding:8px;text-align:left;overflow-wrap:anywhere}
.ticket-choice[aria-pressed=true]{border-color:#9cd0ff}
#chat-thread{padding:0;display:grid;gap:8px;list-style:none;max-height:420px;overflow:auto}
.message{background:#233241;border:1px solid var(--stroke);border-radius:10px;padding:9px 11px;max-width:min(100%,560px);width:fit-content}
.message.user{background:#234364;justify-self:end}
.message strong{font-size:.79rem;color:#c5e1f9}
.message p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:720px){.chat-layout{grid-template-columns:minmax(0,1fr)}}
