.live-voice-page {
  min-height: 100svh;
  background: #040b14;
  color: var(--ink);
}
.live-voice-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  min-height: 3.8rem;
  padding: .55rem max(1rem, env(safe-area-inset-left)) .55rem max(1rem, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 20, .88);
}
.live-voice-header .brand { display: flex; align-items: center; gap: .55rem; justify-self: center; color: inherit; text-decoration: none; }
.live-voice-header .brand-logo { width: 2rem; height: 2rem; object-fit: contain; }
.live-voice-header .brand span { display: grid; }
.live-voice-header .brand strong { font: 700 .7rem "Space Mono", monospace; letter-spacing: .1em; }
.live-voice-header .brand small { color: var(--muted); font-size: .46rem; letter-spacing: .13em; }
.live-back { color: var(--muted); font: 600 .5rem "Space Mono", monospace; text-decoration: none; letter-spacing: .05em; }
.live-back:hover, .live-back:focus-visible { color: var(--green); }
.live-auth-state { justify-self: end; color: var(--muted); font: .48rem "Space Mono", monospace; letter-spacing: .06em; text-align: right; }
.live-voice-main { display: grid; gap: 1rem; width: min(100%, 52rem); margin: 0 auto; padding: 1rem .8rem 2rem; }
.live-voice-stage {
  position: relative;
  display: grid;
  min-height: min(70svh, 36rem);
  place-items: center;
  align-content: center;
  overflow: hidden;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: radial-gradient(circle at 50% 38%, rgba(18, 87, 122, .28), rgba(4, 11, 20, .9) 56%);
  isolation: isolate;
}
.live-orb { position: relative; z-index: 2; display: grid; width: min(68vw, 16rem); aspect-ratio: 1; place-items: center; margin-bottom: .9rem; }
.live-orb-mascot { position: relative; z-index: 2; display: grid; width: 86%; height: 86%; place-items: center; }
.live-orb-mascot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1rem 1.2rem rgba(0, 0, 0, .36)); }
.live-orb-ring { position: absolute; inset: 8%; z-index: 1; border: 1px solid rgba(73, 218, 255, .5); border-radius: 50%; box-shadow: 0 0 2rem rgba(73, 218, 255, .22), inset 0 0 2rem rgba(157, 255, 122, .12); animation: live-ring-breathe 2.4s ease-in-out infinite; }
.live-spectrum-large { position: absolute; inset: 9% 5% 16%; z-index: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.25rem, 2vw, .65rem); opacity: .58; pointer-events: none; }
.live-spectrum-large i { display: block; width: clamp(.22rem, 1.6vw, .46rem); height: 52%; border-radius: 999px; background: linear-gradient(180deg, rgba(73, 218, 255, .08), rgba(73, 218, 255, .86), rgba(157, 255, 122, .55), rgba(157, 255, 122, .05)); transform-origin: center; animation: live-large-spectrum 2.2s ease-in-out infinite; }
.live-spectrum-large i:nth-child(2) { animation-delay: -.22s; }
.live-spectrum-large i:nth-child(3) { animation-delay: -.44s; }
.live-spectrum-large i:nth-child(4) { animation-delay: -.66s; }
.live-spectrum-large i:nth-child(5) { animation-delay: -.88s; }
.live-spectrum-large i:nth-child(6) { animation-delay: -1.1s; }
.live-spectrum-large i:nth-child(7) { animation-delay: -1.32s; }
.live-spectrum-large i:nth-child(8) { animation-delay: -1.54s; }
.live-spectrum-large i:nth-child(9) { animation-delay: -1.76s; }
@keyframes live-large-spectrum { 0%, 100% { transform: scaleY(.16); opacity: .38; } 50% { transform: scaleY(.8); opacity: .95; } }
@keyframes live-ring-breathe { 0%, 100% { transform: scale(.96); opacity: .65; } 50% { transform: scale(1.04); opacity: 1; } }
.live-voice-stage[data-live-state="listening"] .live-spectrum-large i { animation-duration: 1.05s; }
.live-voice-stage[data-live-state="thinking"] .live-spectrum-large i { animation-duration: .65s; }
.live-voice-stage[data-live-state="speaking"] .live-spectrum-large i { animation-duration: .38s; }
.live-voice-stage[data-live-state="speaking"] .live-orb-ring { border-color: var(--green); box-shadow: 0 0 3rem rgba(157, 255, 122, .45), inset 0 0 2rem rgba(73, 218, 255, .22); }
.live-voice-stage > .eyebrow, .live-voice-stage > h1, .live-voice-stage > .live-stage-hint, .live-voice-stage > .live-status, .live-voice-stage > .live-controls, .live-voice-stage > .live-error { position: relative; z-index: 3; text-align: center; }
.live-voice-stage h1 { max-width: 34rem; margin: .1rem 0 .5rem; font-size: clamp(1.2rem, 4vw, 2rem); line-height: 1.2; }
.live-voice-stage h1 span { color: var(--green); }
.live-stage-hint { max-width: 30rem; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.6; }
.live-draft { width: min(100%, 30rem); min-height: 1.25rem; margin: .7rem 0 0; color: #bcefff; font-size: .7rem; line-height: 1.55; text-align: center; white-space: pre-wrap; }
.live-draft:not(:empty)::before { content: "… "; color: var(--green); }
.live-status { min-height: 1.2rem; margin-top: 1rem; color: #9adfff; font: 600 .6rem "Space Mono", monospace; letter-spacing: .04em; }
.live-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: .7rem; }
.live-call-button, .live-stop-button { min-height: 2.85rem; padding: .65rem 1rem; border-radius: .25rem; font: 700 .58rem "Space Mono", monospace; letter-spacing: .06em; cursor: pointer; }
.live-call-button { display: inline-flex; align-items: center; gap: .55rem; color: #02101a; border: 1px solid var(--green); background: var(--green); }
.live-call-button:hover, .live-call-button:focus-visible { background: #c1ffad; }
.live-call-button:disabled { opacity: .48; cursor: wait; }
.live-call-button-icon { font-size: 1rem; }
.live-stop-button { color: #ffb7af; border: 1px solid rgba(255, 127, 113, .55); background: rgba(255, 127, 113, .08); }
.live-stop-button:hover, .live-stop-button:focus-visible { background: rgba(255, 127, 113, .18); }
.live-error { max-width: 30rem; margin: .7rem 0 0; color: #ff9f93; font-size: .6rem; line-height: 1.55; }
.live-transcript-panel { border: 1px solid var(--line); border-radius: .4rem; background: rgba(9, 22, 33, .78); overflow: hidden; }
.live-transcript-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .75rem; color: var(--muted); border-bottom: 1px solid var(--line); font: 700 .52rem "Space Mono", monospace; letter-spacing: .08em; }
.live-transcript-head button { padding: .25rem .4rem; color: var(--green); border: 1px solid rgba(157, 255, 122, .35); background: transparent; font: inherit; cursor: pointer; }
.live-turns { display: grid; gap: .6rem; max-height: 18rem; padding: .75rem; overflow: auto; }
.live-empty { margin: 0; color: var(--muted); font-size: .62rem; }
.live-turn { display: grid; gap: .25rem; padding: .55rem .65rem; border-left: 2px solid #4e8aa7; background: rgba(255, 255, 255, .025); }
.live-turn.ai { border-left-color: var(--green); }
.live-turn strong { color: var(--green); font: 700 .5rem "Space Mono", monospace; letter-spacing: .06em; }
.live-turn p { margin: 0; color: var(--ink); font-size: .7rem; line-height: 1.6; white-space: pre-wrap; }
@media (min-width: 42rem) {
  .live-voice-main { padding: 1.4rem 1.2rem 2.5rem; }
  .live-voice-stage { min-height: min(68svh, 40rem); }
}
