/* A quiet, full-screen conversation. One entry point across all journeys. */
.voice-entry {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  justify-items: center;
  gap: 7px;
}
.voice-launch {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 10px 23px 10px 9px;
  border: 1px solid #a8c9f449;
  border-radius: 26px;
  background: linear-gradient(115deg, #203c65, #142744 64%, #1b294c);
  color: #f6f9ff;
  box-shadow:
    0 12px 44px #1b2f5c3d,
    inset 0 1px 0 #ffffff16;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.voice-launch:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px #1b2f5c50,
    0 0 24px #8dc4fa1a;
}
.voice-launch__copy {
  display: grid;
  gap: 3px;
}
.voice-launch__copy small {
  color: #b2c5df;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.voice-launch__copy strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.voice-launch > svg {
  width: 22px;
  height: 22px;
  margin-left: 5px;
  color: #c5d8f6;
}
.voice-launch__orb {
  position: relative;
  isolation: isolate;
  display: block;
  width: 64px;
  height: 64px;
  flex: none;
}
.voice-launch__orb i {
  position: absolute;
  inset: 12%;
  border-radius: 43% 57% 63% 37% / 48% 36% 64% 52%;
  background: radial-gradient(ellipse at 30% 30%, #a4e7ef7a, #748cff7a 52%, #b893ff25);
  box-shadow: inset 2px 1px 8px #ddf8ff3b;
  animation: voice-drift 12s linear infinite;
}
.voice-launch__orb i:nth-child(2) {
  inset: 16%;
  animation-duration: 17s;
  animation-direction: reverse;
  transform: rotate(70deg);
  background: radial-gradient(ellipse at 70% 40%, #68dedd8f, #676bdd57 58%, transparent);
}
.voice-launch__orb i:nth-child(3) {
  inset: 22%;
  animation-duration: 21s;
  background: radial-gradient(ellipse at 30% 40%, #dcf7fb77, #8b8dff55 58%, transparent);
}
#voice-entry-note {
  margin: 0;
  color: #495a75;
  font-size: 10px;
  line-height: 1.4;
  background: #f7f9fce8;
  padding: 3px 10px;
  border-radius: 9px;
}
body.voice-open {
  overflow: hidden;
}
body.voice-open .voice-entry {
  visibility: hidden;
}
#voice-dialog.voice-room {
  --voice-ink: #edf3ff;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  color: var(--voice-ink);
  background: radial-gradient(ellipse at 50% 41%, #243755 0%, #182840 36%, #101c30 78%);
  box-shadow: none;
  text-align: center;
}
#voice-dialog::backdrop {
  background: #101c30;
}
#voice-dialog[open] {
  animation: voice-arrive 0.32s ease both;
}
.voice-room__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 42px;
  position: relative;
  z-index: 2;
}
.voice-wordmark {
  color: #f0f5ff;
  text-decoration: none;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1.1px;
  display: flex;
  align-items: center;
}
.voice-wordmark > span {
  font-weight: 350;
  color: #bbcae0;
}
.voice-wordmark i {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #9eb0c9;
  border-left: 1px solid #a1b8d42e;
  margin-left: 22px;
  padding-left: 22px;
}
.voice-close {
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid #b7cceb24;
  background: #ffffff04;
  border-radius: 999px;
  color: #b8c8df;
  font-size: 12px;
  min-height: 44px;
  cursor: pointer;
}
.voice-close svg {
  width: 18px;
  height: 18px;
}
.voice-close:hover {
  background: #ffffff0a;
  color: #fff;
}
.voice-room__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  min-height: calc(100dvh - 180px);
  margin: 0 auto;
  padding: 18px 24px 36px;
  position: relative;
}
#voice-dialog .voice-eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a6bbda;
  font-weight: 500;
}
#voice-dialog h2 {
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 450;
  letter-spacing: -1.5px;
  line-height: 1.17;
  color: #f0f5ff;
  margin: 0;
}
#voice-dialog #voice-subtitle {
  color: #acbed7;
  font-size: 15px;
  margin: 12px 0 0;
  line-height: 1.6;
}
.voice-stage {
  width: min(440px, 100%, max(245px, calc(100dvh - 480px)));
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
  flex: none;
  margin: 4px auto -10px;
}
.voice-stage__halo {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: radial-gradient(circle, #8cb3fd10, transparent 67%);
}
.plasma-voice {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  background: transparent;
}
.plasma-voice canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.voice-stage__reflection {
  position: absolute;
  bottom: 8%;
  left: 32%;
  width: 36%;
  height: 3%;
  border-radius: 50%;
  background: #97b8fd2b;
  filter: blur(12px);
}
.voice-presence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  margin: 0 0 12px;
}
.voice-presence > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aac9f1;
  box-shadow: 0 0 9px #b0d6ff45;
}
#voice-dialog #voice-status {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #c6d7ef;
  line-height: 1.6;
}
.voice-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 19px;
  min-height: 52px;
}
.voice-control,
.voice-end,
.voice-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  font-size: 12px;
  font-weight: 500;
}
.voice-control {
  width: 52px;
  background: #dae8ff0b;
  border: 1px solid #c6d8f22b;
  color: #e0ebfd;
}
.voice-control svg,
.voice-end svg {
  width: 20px;
  height: 20px;
}
.voice-control[aria-pressed="true"] {
  background: #6a395c55;
  border-color: #d597b673;
  color: #f4b6d4;
}
.mute-slash {
  display: none;
}
.voice-control[aria-pressed="true"] .mute-slash {
  display: block;
}
.voice-end {
  padding: 0 22px;
  color: #f1dfe7;
  border: 1px solid #e5b9d62e;
  background: #a9779826;
}
.voice-end:hover {
  background: #a9779840;
}
.voice-control:hover {
  background: #dae8ff19;
}
.voice-retry {
  padding: 0 28px;
  border: 1px solid #c7dcff9c;
  color: #162841;
  background: #d5e4fd;
  box-shadow: 0 4px 20px #aacaff0d;
}
.voice-retry:disabled {
  opacity: 0.5;
  cursor: wait;
}
#voice-dialog .voice-footnote p {
  max-width: 520px;
  margin: 0 auto 8px;
  color: #9eb0ca;
  font-size: 11px;
  line-height: 1.75;
}
.voice-footnote a {
  font-size: 11px;
  color: #bacbe4;
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-color: #a8c0e440;
}
.voice-room__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1560px;
  padding: 0 42px 26px;
  color: #8fa6c6;
  font-size: 11px;
}
.voice-room__footer > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.voice-room__footer i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #adc8d7;
  border-radius: 50%;
}
.voice-room__footer button {
  background: none;
  border: 0;
  color: #a6b9d4;
  font-size: 11px;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
}
.voice-notes {
  width: min(100%, 540px);
  margin: 22px auto 0;
  border-top: 1px solid #9dbbe721;
  text-align: left;
}
.voice-notes summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  list-style: none;
  color: #9cb1d0;
  font-size: 11px;
  padding: 14px;
  min-height: 44px;
  cursor: pointer;
}
.voice-notes summary::-webkit-details-marker {
  display: none;
}
.voice-notes summary > span {
  font-size: 17px;
  font-weight: 300;
}
.voice-notes[open] summary > span {
  transform: rotate(45deg);
}
.voice-notes__body {
  padding: 12px 20px;
  background: #0d182831;
  border: 1px solid #9dbbe718;
  border-radius: 18px;
  overflow-wrap: anywhere;
}
#voice-sources a {
  display: block;
  color: #c3d9fa;
  font-size: 11px;
  text-decoration: underline;
  margin: 10px 0;
}
.voice-result {
  width: min(100%, 440px);
  padding: 19px 22px;
  border: 1px solid #b6d4fb30;
  border-radius: 22px;
  background: linear-gradient(135deg, #c1dbff0d, #bdc7ff06);
  margin: -4px 0 24px;
}
.voice-result p {
  font-size: 11px !important;
  color: #b3c7e3;
  margin: 0 0 5px;
}
.voice-result strong {
  display: block;
  font-size: 36px;
  letter-spacing: -1.3px;
  font-weight: 450;
  line-height: 1.3;
}
.voice-result > span {
  display: block;
  color: #cee0f9;
  font-size: 13px;
  margin: 9px 0;
}
.voice-result small {
  color: #92a9c9;
  font-size: 10px;
}
.voice-error,
.voice-receipt {
  max-width: 480px;
  font-size: 13px;
  line-height: 1.7;
  color: #ecd0de;
  background: #d197b40c;
  border: 1px solid #d6a3bf26;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.voice-receipt {
  color: #c0e5df;
  border-color: #94d3c630;
}
.voice-error a {
  color: inherit;
  white-space: nowrap;
}
#voice-challenge {
  margin-bottom: 12px;
}
#voice-challenge:empty {
  display: none;
}
#voice-audio {
  width: min(100%, 360px);
  margin-bottom: 18px;
}
#voice-dialog :focus-visible,
.voice-launch:focus-visible {
  outline: 2px solid #b8d3ff;
  outline-offset: 5px;
}
#voice-dialog [hidden] {
  display: none !important;
}
@keyframes voice-drift {
  to {
    transform: rotate(360deg);
  }
}
@keyframes voice-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .voice-entry {
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    justify-items: stretch;
  }
  .voice-launch {
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    border-radius: 24px;
    padding: 6px 16px;
  }
  .voice-launch__orb {
    width: 56px;
    height: 56px;
  }
  .voice-launch__copy strong {
    font-size: 15px;
  }
  .voice-launch__copy small {
    font-size: 10px;
  }
  #voice-entry-note {
    text-align: center;
    font-size: 9px;
    justify-self: center;
  }
  .footer {
    padding-bottom: 110px;
  }
  .voice-room__header {
    padding: 20px 20px;
  }
  .voice-wordmark {
    font-size: 22px;
  }
  .voice-wordmark i {
    display: none;
  }
  .voice-close {
    padding: 10px;
  }
  .voice-close > span {
    display: none;
  }
  .voice-room__body {
    padding: 15px 22px 24px;
    min-height: calc(100dvh - 150px);
  }
  #voice-dialog h2 {
    letter-spacing: -0.9px;
    font-size: 30px;
  }
  #voice-dialog #voice-subtitle {
    font-size: 13px;
  }
  .voice-stage {
    width: min(100%, 360px, max(245px, calc(100dvh - 430px)));
    margin: 4px auto -8px;
  }
  .voice-room__footer {
    padding: 0 22px 18px;
  }
  .desktop-break {
    display: none;
  }
  .voice-footnote {
    max-width: 330px;
  }
  .voice-result strong {
    font-size: 32px;
  }
  .voice-result {
    margin-top: 0;
  }
  .voice-end {
    padding: 0 20px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  .voice-room__header {
    padding-block: 18px;
  }
  .voice-room__body {
    padding-top: 0;
  }
  .voice-stage {
    width: 250px;
  }
  .voice-room__body {
    min-height: 0;
  }
  .voice-heading h2 {
    font-size: 32px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-launch__orb i {
    animation: none;
  }
  #voice-dialog[open] {
    animation: none;
  }
  .voice-launch {
    transition: none;
  }
  .voice-launch:hover {
    transform: none;
  }
}
@media print {
  .voice-entry,
  #voice-dialog {
    display: none !important;
  }
}

/* A single final review; spoken capture stays free of form fields. */
.voice-review {
  width: 100%;
  padding: 28px;
  margin: 8px 0 28px;
  border: 1px solid #b6d4fb30;
  border-radius: 24px;
  background: #1c2941;
  text-align: left;
}
#voice-dialog .voice-review h3 {
  color: #f0f5ff;
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
}
#voice-dialog .voice-review p {
  color: #b9cae0;
  font-size: 14px;
  line-height: 1.65;
}
.voice-review .review-list {
  display: block;
  margin: 24px 0;
}
.voice-review .review-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #ffffff10;
}
.voice-review dt {
  color: #9db3cf;
  font-size: 13px;
}
.voice-review dd {
  color: #edf5ff;
  font-size: 14px;
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
}
#voice-dialog .voice-review-consent {
  font-size: 12px;
}
.voice-review-consent a {
  color: #b9d5ff;
  text-decoration: underline;
}
.voice-review-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.voice-review-actions .voice-control {
  width: auto;
  border-radius: 30px;
  padding: 0 20px;
}
.voice-room.has-review .voice-stage {
  width: min(180px, 45vw);
}
@media (max-width: 600px) {
  .voice-review {
    padding: 20px;
  }
  .voice-review .review-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .voice-review dd {
    text-align: left;
  }
  .voice-review-actions > button {
    width: 100%;
  }
}

.voice-review {
  scroll-margin-top: 24px;
}
.voice-review-budget {
  border-top: 1px solid #ffffff18;
  margin: 4px 0 20px;
}
.voice-review-budget summary {
  cursor: pointer;
  padding: 16px 0;
  color: #c9dbf7;
  font-size: 14px;
}
.voice-room.has-review .voice-heading {
  display: none;
}
/* Keep connection recovery visible without scrolling past the result card. */
.voice-room.has-error .voice-stage {
  width: clamp(100px, 22vh, 190px);
}
.voice-room.has-error .voice-heading {
  display: none;
}
