@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root { color-scheme: light; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; color: #1e2936; background: #f3f6f8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #e2f4ef 0, #f3f6f8 46rem); }
.shell { width: min(700px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 40px; }
header { text-align: center; margin-bottom: 32px; }
.eyebrow { color: #16866d; letter-spacing: .16em; font-weight: 700; font-size: 11px; }
h1 { font-size: clamp(28px, 5vw, 38px); margin: 12px 0 8px; letter-spacing: -.04em; }
header p, footer { color: #73808c; font-size: 14px; }
.call-card, .transcript-card { background: rgba(255,255,255,.9); border: 1px solid #e4e9ec; border-radius: 22px; box-shadow: 0 14px 50px #2541390c; }
.call-card { text-align: center; padding: 38px 24px 30px; }
.orb { margin: 0 auto 22px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #e6f4f0; transition: .25s; }
.orb span { width: 32px; height: 32px; border-radius: 50%; background: #26997e; box-shadow: 0 0 0 10px #26997e1a; }
.orb.active { background: #d8f3eb; animation: pulse 2s infinite; }
.orb.speaking span { background: #6182df; box-shadow: 0 0 0 10px #6182df1a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px #26997e12; } }
.status { font-size: 18px; font-weight: 700; }
.hint { color: #788591; margin: 8px 0 24px; font-size: 13px; }
.controls { display: flex; justify-content: center; gap: 10px; }
.access-form { width: min(340px, 100%); margin: 0 auto 20px; display: grid; gap: 9px; text-align: left; }
.access-form[hidden] { display: none; }
.access-form label { font-size: 13px; font-weight: 600; color: #52606b; }
.access-form input { width: 100%; border: 1px solid #d5dde2; border-radius: 10px; padding: 12px 13px; font: inherit; color: #1e2936; background: #fff; }
.access-form input:focus { outline: 2px solid #26997e44; border-color: #26997e; }
.access-form button { justify-self: stretch; }
.access-form p { min-height: 18px; margin: 0; color: #b44545; font-size: 12px; text-align: center; }
button { border: 0; border-radius: 11px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: #167e68; color: white; }
.primary:hover:not(:disabled) { background: #106b58; }
.secondary { background: #edf1f3; color: #3b4752; }
.transcript-card { margin-top: 18px; padding: 20px 22px; min-height: 180px; }
.section-title { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
#elapsed { font-variant-numeric: tabular-nums; color: #84919b; font-weight: 500; }
.transcript { padding-top: 15px; display: grid; gap: 12px; }
.empty { color: #a1abb3; font-size: 13px; padding: 14px 0; }
.line { font-size: 14px; line-height: 1.6; }
.line strong { display: block; color: #18836d; font-size: 11px; margin-bottom: 2px; }
.line.ai strong { color: #5d72bc; }
.error { color: #b44545; }
footer { text-align: center; font-size: 12px; margin-top: 18px; }
#remoteAudio { display: block; width: min(420px, 100%); height: 40px; margin: 14px auto 0; }
@media (max-width: 500px) { .shell { padding-top: 42px; } .call-card { padding: 30px 18px 24px; } }
