:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#101020;color:#f6f2fc;--muted:#bbb4ca;--accent:#d3b7ff}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 5%,#32213f 0,transparent 52%),#101020}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:14px;background:var(--accent);color:#251636;min-height:44px;padding:10px 17px;font-weight:600}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #ffbc83;outline-offset:3px}[hidden]{display:none!important}
.app{max-width:780px;height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}header{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #ffffff12;flex-shrink:0}.avatar{border-radius:14px}.identity{flex:1;min-width:0}h1{font-size:21px;margin:0 0 2px}header p{font-size:12px;color:var(--muted);margin:0}.quiet{color:var(--muted);background:transparent;font-weight:500;font-size:13px;padding:8px 10px}.welcome{flex:1;overflow:auto;padding:clamp(24px,8vh,68px) 26px 20px}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--accent)}h2{font-weight:500;letter-spacing:-.045em;font-size:clamp(34px,7vw,48px);margin:16px 0}.welcome h2 span{font-size:28px;margin-left:12px}.welcome>p{color:var(--muted);line-height:1.7;font-size:17px}.welcome form{margin-top:30px;max-width:480px}label{display:block;font-size:14px;margin-bottom:10px;color:var(--muted)}.phrase-row{display:flex;gap:9px}input,textarea{border:1px solid #ffffff20;background:#ffffff07;border-radius:14px;color:#f6f2fc;min-width:0;font-size:16px}input{padding:12px;flex:1;width:0}.hint{color:var(--muted);font-size:13px;line-height:1.6}.conversation{flex:1;overflow:auto;overscroll-behavior:contain;padding:24px 18px;scroll-behavior:smooth}.empty{text-align:center;color:var(--muted);margin:40px 0;line-height:1.8}#messages{display:flex;flex-direction:column;gap:16px}.bubble{max-width:92%;padding:14px 16px;border-radius:19px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.bubble.user{align-self:flex-end;background:#312743;border-bottom-right-radius:6px}.bubble.assistant{align-self:flex-start;background:#ffffff06;border:1px solid #ffffff0c;border-bottom-left-radius:6px}.bubble small{display:block;color:var(--muted);font-size:10px;margin-top:6px}footer{flex-shrink:0;padding:8px 18px calc(10px + env(safe-area-inset-bottom));background:#101020eb;border-top:1px solid #ffffff0c}.status-row{display:flex;gap:12px;align-items:center;min-height:36px}.status-row p{flex:1;font-size:12px;line-height:1.5;color:var(--muted);margin:0}.status-row button{min-height:36px}#compose{display:flex;gap:10px;align-items:flex-end}textarea{width:100%;resize:none;max-height:140px;padding:12px 14px;line-height:1.45}#send{width:48px;min-width:48px;height:48px;font-size:25px;padding:0}.privacy{font-size:10px;color:#898198;margin:8px 0 0;line-height:1.4}dialog{max-width:420px;width:calc(100% - 32px);border:1px solid #ffffff22;border-radius:24px;padding:28px;background:#1c172a;color:#f6f2fc}dialog::backdrop{background:#080610b8}dialog img{border-radius:18px}dialog h2{font-size:30px;letter-spacing:-.03em}dialog p{line-height:1.7}.close{float:right;font-size:26px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.voice-tools{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}.voice-tools button{padding:8px 6px}.audio-choice{display:flex;align-items:center;gap:7px;font-size:11px;margin:0 0 0 auto}.audio-choice input{flex:none;width:16px;height:16px;accent-color:var(--accent)}.recording-preview{padding:8px 0}.recording-preview audio{width:100%;height:36px}.recording-preview button{font-size:12px;margin-top:5px}.recording-preview .hint{font-size:11px;margin:5px 0}.bubble audio{display:block;max-width:100%;height:38px;margin-top:8px}.bubble .playback{display:block;white-space:normal;font-size:12px;padding:4px 0;min-height:34px}.end-call{background:#b84455;color:white;width:100%;margin-top:12px}#call-status{min-height:54px}#record.is-recording{color:#ffc1c1;background:#7c243833}
@media(max-height:650px){.welcome{padding-top:22px}.welcome form{margin-top:18px}.welcome h2{margin:12px 0}.privacy{display:none}}@media(prefers-reduced-motion:reduce){.conversation{scroll-behavior:auto}}
