.text-header{border-bottom:1px solid var(--steel);background:#0b0c0f}
.text-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px;padding-top:16px;padding-bottom:16px}
.text-home{font-family:var(--disp);font-size:22px;font-style:italic;font-weight:800;text-transform:uppercase;text-decoration:none;letter-spacing:.04em}
.text-call{font-weight:600;font-size:15px;text-underline-offset:4px;white-space:nowrap}
.text-layout{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(32px,5vw,72px);padding-top:56px;padding-bottom:64px;align-items:start}
.text-intro{padding-top:12px}
.text-intro h1{font-size:clamp(42px,5vw,64px);line-height:.98;margin-top:16px}
.text-intro h1 .r{color:var(--red-hot)}
.text-intro .lead{font-size:19px;line-height:1.6;margin-top:24px;color:#d6d7da}
.text-intro p+p{margin-top:20px;color:var(--muted)}
.text-help a{display:inline-block;padding:8px 0;font-size:20px;color:var(--bone);text-underline-offset:5px}
.text-chat{min-width:0;border:1px solid var(--edge);background:var(--panel);box-shadow:0 20px 64px rgba(0,0,0,.18)}
.text-chat-header{padding:20px 24px;border-bottom:1px solid var(--steel);background:#121418}
.text-chat-header h2{font-size:25px;letter-spacing:.03em}
.text-chat-header>span{display:block;font-size:14px;color:var(--muted);margin-top:4px}
.text-messages{list-style:none;padding:24px;display:flex;flex-direction:column;gap:20px;min-height:210px;max-height:58vh;max-height:58svh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.text-message{max-width:92%;padding:14px 16px;border:1px solid var(--steel);border-radius:4px;background:#111318;align-self:flex-start}
.text-message--customer{background:#2a1720;border-color:#73404d;align-self:flex-end}
.text-speaker{display:block;font-family:var(--disp);font-weight:700;font-style:italic;font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:5px}
.text-message--customer .text-speaker{color:#e4bcc6}
.text-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.text-message-state{display:block;margin-top:6px;font-size:13px;color:var(--muted)}
.text-message-state:empty{display:none}
.text-feedback{padding:0 24px}
.text-status{font-size:14px;color:var(--muted);min-height:24px}
.text-error{color:var(--red-err);font-size:15px;margin-top:8px}
.text-recovery{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.text-recovery:has(button:not([hidden])){padding:12px 0}
.text-restart{min-height:48px;padding:8px 2px;background:none;border:0;color:var(--bone);font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.text-composer{padding:20px 24px 24px;gap:8px}
.text-composer textarea{resize:vertical;max-height:300px;min-height:102px;line-height:1.5}
.text-composer textarea:disabled{opacity:.65;cursor:wait}
.text-send-row{display:flex;justify-content:space-between;align-items:center;gap:20px}
.text-send-row p{font-size:13px;color:var(--muted);max-width:32ch}
.text-send-row .btn{flex-shrink:0;min-width:100px}
.text-composer button:disabled{opacity:.5;cursor:wait;transform:none}
.text-consent{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;margin-top:16px;align-items:start}
.text-consent input{appearance:auto;width:20px;height:20px;min-height:20px;margin:3px 0 0;padding:0;accent-color:var(--red)}
.text-consent label{font-family:var(--body);font-style:normal;font-size:13px;font-weight:400;letter-spacing:normal;text-transform:none;line-height:1.65;color:#c5c7cd}
.text-consent a{color:var(--bone);text-underline-offset:3px}
.text-no-script{padding:0 24px 24px}
.text-footer .wrap{padding-top:24px;padding-bottom:24px;gap:16px}
.text-footer nav{display:flex;flex-wrap:wrap;gap:20px}
[hidden]{display:none!important}
@media(max-width:860px){
  .text-layout{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:32px;padding-bottom:40px;max-width:720px}
  .text-intro{padding-top:0}
  .text-intro h1{font-size:46px}
  .text-intro h1 br{display:none}
  .text-intro .lead{font-size:17px;margin-top:16px}
  .text-intro p+p{margin-top:12px}
  .text-intro .text-help{display:none}
  .text-messages{min-height:180px;max-height:50vh;max-height:50svh}
}
@media(max-width:480px){
  .text-header .wrap{min-height:74px;flex-wrap:wrap;gap:6px 20px}
  .text-home{font-size:20px}
  .text-call{font-size:14px}
  .text-layout{padding-left:16px;padding-right:16px}
  .text-intro h1{font-size:40px}
  .text-chat-header{padding:16px}
  .text-chat-header h2{font-size:23px}
  .text-messages{padding:18px 16px;gap:16px}
  .text-message{max-width:96%;padding:12px}
  .text-feedback{padding:0 16px}
  .text-composer{padding:16px}
  .text-send-row{align-items:flex-start;gap:12px}
  .text-send-row p{max-width:23ch}
}
