/* Thomas AI: one-tap voice call page (talk76, Nov 18 2026). Same dark palette as the send and scheduling pages.
   No outside resources, no inline styles (the page's CSP allows neither). */
:root{color-scheme:dark;--canvas:#202124;--surface:#2d2e31;--text:#e8eaed;--text2:#bdc1c6;--text3:#9aa0a6;--line:#3c4043;--primary:#8ab4f8;--primary-hover:#aecbfa;--on-primary:#202124;--soft:#394457;--on-soft:#d2e3fc;--err:#f28b82;--err-soft:#5c2b29;--err-soft-hover:#6e3330;--err-text:#f6aea9;--ok:#81c995;--glow:138,180,248}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(1200px 600px at 50% -10%,#2b3040 0,var(--canvas) 60%) no-repeat var(--canvas);color:var(--text);font-family:"Google Sans Text","Google Sans",Roboto,system-ui,-apple-system,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased}
h1,p{margin:0}
button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.ic{display:block;width:22px;height:22px;fill:currentColor;flex:none}

.top{display:flex;align-items:center;height:64px;padding:0 24px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;border-radius:8px}
.mark{display:block;width:32px;height:32px}
.brand-name{font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.1px}

.stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:560px;margin:0 auto;padding:8px 24px 72px;text-align:center}
.orb-wrap{position:relative;width:168px;height:168px;margin-bottom:36px}
.orb{position:relative;display:block;width:168px;height:168px;border-radius:50%;box-shadow:0 18px 60px rgba(var(--glow),.22);transition:transform .25s ease,box-shadow .25s ease}
.ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(var(--glow),.55);opacity:0;transform:scale(1)}
h1{font-family:"Google Sans",Roboto,system-ui,-apple-system,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:40px;line-height:48px;font-weight:400;letter-spacing:-.5px;text-wrap:balance}
.lead{max-width:440px;margin-top:14px;color:var(--text2);font-size:16px;line-height:24px;text-wrap:pretty}

.live{display:none;align-items:center;gap:14px;margin-top:6px;min-height:36px}
.pill{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:18px;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:14px;font-weight:500}
.dot{width:8px;height:8px;border-radius:50%;background:var(--text3)}
.time{color:var(--text3);font-variant-numeric:tabular-nums;font-size:14px}

.actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:36px;min-height:56px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:40px;padding:0 24px;border:0;border-radius:20px;background:none;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;cursor:pointer;transition:background-color .15s,box-shadow .15s,transform .1s}
.btn:active:not(:disabled){transform:scale(.98)}
.btn:disabled{opacity:.6;cursor:default}
.btn.big{height:56px;padding:0 32px;border-radius:28px;font-size:16px;line-height:24px}
.btn.primary{background:var(--primary);color:var(--on-primary);box-shadow:0 8px 28px rgba(var(--glow),.28)}
.btn.primary:hover:not(:disabled){background:var(--primary-hover)}
.btn.tonal{background:var(--soft);color:var(--on-soft)}
.btn.round{width:56px;height:56px;padding:0;border-radius:50%}
.btn.end{background:var(--err-soft);color:var(--err-text)}
.btn.end:hover:not(:disabled){background:var(--err-soft-hover)}
#mute,#end{display:none}
.mic-off{display:none}
#mute[aria-pressed="true"]{background:var(--err-soft);color:var(--err-text)}
#mute[aria-pressed="true"] .mic-on{display:none}
#mute[aria-pressed="true"] .mic-off{display:inline}

.msg{min-height:20px;margin-top:20px;color:var(--err-text);font-size:14px;line-height:20px;max-width:440px}
.fine{margin-top:12px;max-width:400px;color:var(--text3);font-size:12px;line-height:18px}

/* states */
[data-view="connecting"] .live,[data-view="live"] .live{display:flex}
[data-view="connecting"] .lead,[data-view="live"] .lead{display:none}
[data-view="connecting"] h1,[data-view="live"] h1{font-size:28px;line-height:36px;margin-bottom:12px}
[data-view="live"] #start{display:none}
[data-view="live"] #mute,[data-view="live"] #end{display:inline-flex}
[data-view="connecting"] .fine,[data-view="live"] .fine{visibility:hidden}
[data-view="connecting"] .dot{background:var(--primary);animation:blink 1s ease-in-out infinite}
[data-view="live"] .dot{background:var(--ok)}
[data-view="live"][data-agent="speaking"] .dot{background:var(--primary)}
[data-view="live"][data-agent="speaking"] .orb{transform:scale(1.04);box-shadow:0 18px 80px rgba(var(--glow),.45)}
[data-view="live"][data-agent="speaking"] .ring{animation:ring 1.6s ease-out infinite}
[data-view="live"][data-agent="speaking"] .r2{animation-delay:.8s}
[data-view="live"][data-agent="thinking"] .orb{animation:breathe 1.2s ease-in-out infinite}
@keyframes ring{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.45)}}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.ring,.orb,.dot{animation:none!important;transition:none}}

@media (max-width:480px){
  .top{height:56px;padding:0 16px}
  .stage{padding:0 20px 56px}
  .orb-wrap,.orb{width:132px;height:132px}
  .orb-wrap{margin-bottom:28px}
  h1{font-size:30px;line-height:38px}
  .lead{font-size:15px;line-height:22px}
  .actions{margin-top:30px}
  [data-view="idle"] .btn.big,[data-view="ended"] .btn.big,[data-view="connecting"] .btn.big{width:100%}
  [data-view="idle"] .actions,[data-view="ended"] .actions,[data-view="connecting"] .actions{align-self:stretch}
}
