.voice-body {
  min-height: 100dvh;
}

.voice-shell {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.voice-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.text-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--accent);
}

.voice-conversation {
  padding-top: clamp(56px, 10vw, 104px);
}

.conversation-intro h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.conversation-intro > p:last-child {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.transcript {
  display: grid;
  gap: 18px;
  margin: 64px 0 32px;
  padding: 0;
  list-style: none;
}

.message {
  width: fit-content;
  max-width: min(620px, 90%);
  padding: 18px 20px;
  border-radius: 14px;
  line-height: 1.5;
}

.message-assistant {
  background: var(--surface-muted);
  border-bottom-left-radius: 4px;
}

.message-user {
  justify-self: end;
  background: var(--ink);
  color: var(--surface);
  border-bottom-right-radius: 4px;
}

.answer-panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.answer-panel label {
  font-size: 14px;
  font-weight: 700;
}

.answer-panel textarea {
  width: 100%;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.answer-panel textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--accent);
}

.voice-controls,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.microphone-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.microphone-button span:first-child {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}

.microphone-button.is-listening {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.voice-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.voice-status.is-error {
  color: #a42424;
}

.review-panel {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.review-panel h2 {
  margin-bottom: 28px;
}

.memory-summary {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
}

.memory-summary div {
  display: grid;
  gap: 4px;
}

.memory-summary dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memory-summary dd {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 767px) {
  .voice-shell {
    width: min(100% - 32px, 840px);
  }

  .voice-header {
    min-height: 68px;
  }

  .text-link {
    font-size: 13px;
  }

  .voice-controls,
  .review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .voice-controls > *,
  .review-actions > * {
    justify-content: center;
    width: 100%;
  }
}
