.voice-invitation {
  min-width: 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.voice-invitation .eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}
.cloud-orb {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 32% 25%, #fffffa 5%, transparent 65%),
    radial-gradient(ellipse at 65% 60%, #e6e3dc 0%, #f0ece2 48%, #c9c2b4 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff65,
    0 20px 45px -28px #3c454530;
}
.cloud-orb canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.voice-stage {
  flex: none;
  width: 236px;
  height: 236px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.voice-stage .cloud-orb {
  width: 100%;
  height: 100%;
}
.voice-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}
.voice-launch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 12px;
}
.voice-launch:disabled {
  cursor: wait;
}
.voice-stage:has(.voice-launch:not([hidden]):hover) {
  transform: translateY(-4px) scale(1.025);
}
#listen:not([data-state="idle"]) .voice-stage {
  transform: scale(var(--voice-scale, 1));
  transition: opacity 0.6s;
}
.voice-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ffffff80;
  background: #faf9f6d9;
  box-shadow: 0 3px 18px #15191e12;
  color: var(--ink);
  transition:
    background 0.25s,
    transform 0.25s;
}
.voice-play svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
  margin-left: 1px;
}
.voice-launch:hover .voice-play {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}
.voice-invitation h2 {
  margin-top: 28px;
  font: 500 20px/1.35 var(--sans);
  letter-spacing: -0.025em;
}
#voice-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 8px 0 0;
}
#voice-session {
  width: 100%;
  max-width: 330px;
}
#voice-status {
  min-height: 29px;
}
#listen:not([data-state="idle"]) #voice-status {
  font-size: 20px;
}
#listen #voice-error {
  color: #ad341d;
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
}
#voice-enable-audio {
  margin-top: 14px;
}
.voice-controls {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 19px;
}
.voice-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #eae9e4;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 17px;
  font-size: 13px;
}
.voice-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.voice-control:disabled {
  opacity: 0.5;
  cursor: default;
}
.voice-control[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.voice-control-end {
  background: var(--accent-strong);
  color: #fff;
}
.voice-control-end:hover {
  background: #a93219;
}
.voice-transcript {
  margin-top: 22px;
  text-align: left;
}
#voice-transcript-log {
  max-height: 144px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  padding-right: 10px;
}
#voice-transcript-log:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
#voice-transcript-log article {
  margin-bottom: 18px;
}
#voice-transcript-log strong {
  font: 9px/1.5 monospace;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
#voice-transcript-log article p {
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#voice-transcript-log article[data-draft="true"] {
  opacity: 0.8;
}
#listen #voice-stream-warning {
  font-size: 11px;
  color: #ad341d;
}
@media (max-width: 850px) {
  .voice-invitation {
    min-height: 430px;
  }
  .voice-invitation h2 {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  .voice-invitation {
    min-height: 400px;
    border-top: 1px solid var(--rule);
    padding-top: 37px;
    padding-bottom: 12px;
  }
  .voice-invitation .eyebrow {
    margin-bottom: 35px;
  }
  .voice-invitation h2 {
    margin-top: 34px;
  }
  #listen {
    padding-inline: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-stage,
  .voice-play {
    transition: none;
  }
  #listen[data-state] .voice-stage {
    transform: none !important;
  }
}
@media (max-width: 850px) {
  .voice-stage {
    width: 208px;
    height: 208px;
  }
}
@media (max-width: 640px) {
  .voice-stage {
    width: 218px;
    height: 218px;
  }
}

#voice-transcript-log article:last-child {
  margin-bottom: 0;
}
