:root {
  --bg: #FFFFFF; --text: #1E2328; --text-2: #3C434A; --muted: #5B636B;
  --line: #C9CED3; --line-soft: #E6E9EC; --chip: #F1F3F5;
  --accent: #0F5C5C; --accent-tint: #0F5C5C1A; --danger: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 56px 28px 32px; }
.screen[hidden] { display: none; }
.brand { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.intro { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 32px; flex: none; }
.avatar-lg { width: 144px; height: 144px; font-size: 56px; }
img.avatar { object-fit: cover; display: block; }
h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.form { display: flex; flex-direction: column; gap: 10px; text-align: center; }
input { text-align: center; }
label { font-size: 14px; font-weight: 600; }
input { height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; color: var(--text); background: var(--bg); }
input:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { min-height: 56px; border: 0; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { margin-top: 8px; background: var(--accent); color: #FFFFFF; }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.error { margin: 0; font-size: 15px; font-weight: 600; color: var(--danger); }
.fineprint { text-align: center; margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fineprint p { margin: 0 0 8px; }
/* The call screen is exactly one screen tall: header and hang-up stay put, only the transcript scrolls. */
#incall { gap: 20px; padding-top: 48px; padding-bottom: 28px; height: 100vh; height: 100dvh; }
.callbar { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.who { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.name { font-size: 17px; font-weight: 700; }
.status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.netwarn { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FEF3F2; color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.netwarn[hidden] { display: none; }
.timer { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The aura keeps the same proportion to her picture; its empty edges overlap the name a little. */
.orb { position: relative; width: 304px; height: 304px; margin: -20px 0; display: flex; align-items: center; justify-content: center; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb .avatar { position: relative; width: 112px; height: 112px; font-size: 44px; }
.who > div:last-child { position: relative; }
.transcript { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
@media (max-height: 720px) {
  #incall { gap: 14px; padding-top: 24px; padding-bottom: 20px; }
  .orb { width: 228px; height: 228px; margin: -16px 0; }
  .orb .avatar { width: 84px; height: 84px; font-size: 34px; }
}
.transcript li { display: flex; flex-direction: column; gap: 4px; }
.who-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.line { font-size: 16px; line-height: 1.5; }
.line.caller { color: var(--text-2); }
