:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #20172a;
  background: #f6f4f3;
  color-scheme: light;
  --accent: #644083;
  --ink: #20172a;
  --muted: #63586b;
  --line: #ded8e2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.top { background: #fff; min-height: 69px; padding: 14px max(24px,calc((100vw - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.brand, .account { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.account { font-weight: 450; font-size: .9rem; }
.mark { height: 36px; width: 36px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: #3b2350; font-size: 1.2rem; }
main { width: min(calc(100% - 48px),1120px); margin: 0 auto; padding: 42px 0; }
h1 { margin: .25rem 0 1rem; letter-spacing: -.055em; font-size: clamp(2.55rem,6vw,4.75rem); line-height: .99; }
h2 { margin: 0; letter-spacing: -.027em; font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.55; }
.eyebrow { color: #59366f; letter-spacing: .11em; font-weight: 740; font-size: .76rem; margin: 0; }
.auth { margin: min(7vw,55px) auto 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; max-width: 920px; border: 1px solid var(--line); background: #fff; border-radius: 27px; padding: clamp(22px,5vw,52px); }
.auth-intro p:last-child { max-width: 25ch; }
.auth form { align-self: center; display: grid; gap: 11px; }
label { font-size: .88rem; font-weight: 680; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; border: 1px solid #cbbfd4; background: #fff; color: var(--ink); padding: 12px 14px; border-radius: 11px; }
input { min-height: 48px; margin-bottom: 6px; }
textarea { resize: vertical; min-height: 62px; max-height: 190px; }
button { cursor: pointer; font-weight: 650; border-radius: 11px; padding: 11px 15px; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #9b58c8; outline-offset: 3px; }
.primary { color: white; background: var(--accent); border: 1px solid transparent; }
.primary:hover:not(:disabled) { background: #4c2d67; }
.quiet { border: 1px solid var(--line); background: #fff; color: #59366f; }
.banner { padding: 13px 16px; border: 1px solid #e8bac9; border-radius: 12px; background: #fff5f7; color: #842e4c; margin: 18px auto; }
.intro { margin-bottom: 27px; }
.workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; align-items: start; }
.chat, .voice { background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.chat { min-width: 0; display: flex; flex-direction: column; }
.chat-header { padding: 22px; border-bottom: 1px solid var(--line); }
.messages { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 18px; margin: 0; min-height: 278px; max-height: 48vh; overflow: auto; }
.messages li { padding: 10px 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 92%; border-radius: 14px; background: #f0ebf3; }
.messages li.user { align-self: end; color: white; background: var(--accent); }
.messages .empty { align-self: start; color: var(--muted); background: transparent; }
.composer { display: flex; align-items: end; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.work-status, .recovery { margin: 4px 18px 12px; }
.voice { padding: 25px; background: #f1eaf5; }
.voice h2 { color: #352043; }
.call { width: 100%; min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; background: #452958; color: white; font-size: 1.08rem; }
.call:hover:not(:disabled) { background: #352043; }
.call.active { background: #93294b; }
.phone { font-size: 1.7rem; line-height: 1; }
.caption { color: #51405a; line-height: 1.5; overflow-wrap: anywhere; margin-top: 14px; }
#play-audio { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 720px) {
  .workspace,.auth { grid-template-columns: 1fr; }
  .voice { grid-row: 1; }
  main { width: calc(100% - 30px); padding: 26px 0; }
  .top { padding: 12px 15px; }
  #account-email { display: none; }
  .messages { min-height: 190px; }
}
