.voice-page { background: #f3f4ec; }
.voice-page .shell,
.voice-page .app-grid,
.voice-page .guide-panel { display: contents; }
.voice-page .guide-panel > :not(.voice-card),
.voice-page .conversation-panel,
.voice-page .voice-view-link { display: none; }

.voice-page .topbar {
  position: fixed;
  z-index: 2;
  inset: max(24px, env(safe-area-inset-top)) 32px auto;
  height: 45px;
  border: 0;
}
.voice-page .brand-mark { background: transparent; color: var(--green); }
.voice-page .brand-sub { display: none; }
.voice-page .top-actions { gap: 18px; }
.voice-page .chat-view-link { display: flex; }

.voice-page .voice-card {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 95px 24px 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: auto;
  background: radial-gradient(ellipse at 50% 36%, #fffefa 0%, #f3f4ec 55%, #e8eddf 100%);
}
.voice-page .orb-scene {
  flex-shrink: 0;
  width: min(70vw, 510px);
  height: clamp(210px, 40vh, 430px);
}
.voice-page .orb {
  width: clamp(150px, 26vmin, 285px);
  height: clamp(150px, 26vmin, 285px);
  box-shadow: inset -20px -28px 45px #183c3433, inset 10px 12px 30px #fff5, 0 35px 65px #58735d28;
}
.voice-page .orb svg { width: 52%; height: 52%; }
.voice-page .orb-ring { display: block; width: 138%; height: auto; aspect-ratio: 1; max-width: 390px; }
.voice-page .ring-two { width: 172%; max-width: 475px; }
.voice-page .orb-spark { display: block; width: 6px; height: 6px; }
.voice-page .spark-one { left: 9%; top: 22%; }
.voice-page .spark-two { left: 90%; top: 64%; }
.voice-page .voice-caption { flex-shrink: 0; margin-top: 12px; }
.voice-page .voice-caption #voiceLabel { font: 400 clamp(24px, 3.5vw, 40px)/1.2 var(--serif); letter-spacing: -.6px; }
.voice-page .voice-caption #voiceDetail { font-size: clamp(11px, 1.4vw, 14px); margin-top: 12px; line-height: 1.6; }
.voice-page .voice-card canvas { display: block; width: min(100%, 480px); height: 50px; flex-shrink: 0; margin: 15px 0; }
.voice-page .voice-card > .button { width: min(100%, 310px); min-height: 53px; flex-shrink: 0; font-size: 14px; margin: 0; border-radius: 15px; }
.voice-page #voiceButton:disabled { display: none; }
.voice-page .voice-stop { background: var(--purple); }
.voice-page .voice-stop:hover { background: #736393; }
.voice-page .wake-toggle { width: min(100%, 310px); font-size: 12px; padding: 23px 4px 7px; flex-shrink: 0; }
.voice-page .micro-note { font-size: 10px; margin-top: 10px; flex-shrink: 0; }
.voice-page .connection-note { max-width: 520px; margin: 18px 0 0; font-size: 11px; flex-shrink: 0; }
.voice-page .footer { position: fixed; z-index: 2; left: 32px; bottom: max(22px, env(safe-area-inset-bottom)); border: 0; padding: 0; font-size: 9px; }
.voice-page .footer span:first-child { display: none; }
.voice-page .voice-text-button {
  position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); right: 32px;
  display: flex; align-items: center; gap: 7px; border: 0; background: transparent;
  color: var(--muted); padding: 5px; font-size: 10px;
}
.voice-page .voice-text-button svg { width: 15px; height: 15px; }
.voice-page .voice-text-button:hover { color: var(--green); }
.voice-page .toast { bottom: 60px; }

.voice-transcript { width: 640px; max-width: calc(100vw - 28px); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--white); }
.voice-transcript::backdrop { background: #1e3e3345; backdrop-filter: blur(5px); }
.voice-transcript > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.voice-transcript h2 { margin: 0; font: 400 26px var(--serif); }
.voice-transcript .messages { height: min(60vh, 520px); min-height: 0; text-align: left; }
.voice-transcript .timings { margin-bottom: 20px; }

@media (max-width: 520px) {
  .voice-page .topbar { inset: max(18px, env(safe-area-inset-top)) 18px auto; }
  .voice-page .top-actions { gap: 12px; }
  .voice-page .voice-card { padding: 90px 22px 95px; }
  .voice-page .orb-scene { width: 280px; max-width: 90vw; height: clamp(200px, 33vh, 300px); }
  .voice-page .orb-ring { width: 210px; }
  .voice-page .ring-two { width: 265px; }
  .voice-page .voice-caption #voiceLabel { font-size: 28px; }
  .voice-page .voice-caption #voiceDetail { max-width: 320px; }
  .voice-page .footer { left: 0; right: 0; bottom: 16px; text-align: center; font-size: 8px; }
  .voice-page .voice-text-button { bottom: 42px; left: 0; right: 0; justify-content: center; }
  .voice-page .voice-card > .button { min-height: 50px; }
  .voice-page .wake-toggle { padding-top: 20px; }
}
@media (max-height: 680px) {
  .voice-page .voice-card { height: auto; padding-top: 80px; padding-bottom: 100px; }
  .voice-page .orb-scene { height: 190px; }
  .voice-page .orb { width: 145px; height: 145px; }
  .voice-page .orb-ring { width: 195px; }
  .voice-page .ring-two { width: 245px; }
  .voice-page .voice-caption #voiceLabel { font-size: 27px; }
  .voice-page .voice-card canvas { height: 32px; margin: 10px 0; }
}
