#red-writing-workspace .red-voice-room {
  position: fixed;
  z-index: 85;
  right: 24px;
  bottom: 24px;
  width: 390px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #fffaf0b3;
  border-radius: 24px;
  background: #fffcf7c7;
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  box-shadow:
    0 18px 60px #36201e20,
    inset 0 1px 0 #fff9;
  color: #352e30;
  font-family: Manrope, system-ui, sans-serif;
}
#red-writing-workspace .red-voice-room[hidden] {
  display: none;
}
.red-voice-room header {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid #b8a89a33;
}
.voice-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.voice-identity svg {
  width: 25px;
  height: 25px;
  color: #a7373e;
  flex-shrink: 0;
}
.voice-identity strong {
  display: block;
  font-size: 14px;
}
.voice-identity span {
  display: block;
  font-size: 11px;
  color: #80726b;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.red-voice-room button {
  min-height: 44px;
  border: 1px solid #dfd4cc;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fffdf9b8;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.red-voice-room button:disabled {
  opacity: 0.45;
  cursor: default;
}
.red-voice-room header button {
  border: 0;
  background: none;
  width: 36px;
  padding: 0;
  font-size: 23px;
}
.voice-body {
  overflow-y: auto;
  padding: 18px 20px 14px;
  overscroll-behavior: contain;
}
.voice-body h2 {
  font-size: 21px;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 12px 0 6px;
}
.voice-intro {
  text-align: center;
  font-size: 12px;
  color: #796b64;
  margin: 0 0 18px;
}
.voice-presence {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.voice-presence i {
  display: block;
  width: 5px;
  height: 13px;
  border-radius: 5px;
  background: #b9494e;
  transition: height 0.2s;
}
.voice-presence i:nth-child(2),
.voice-presence i:nth-child(4) {
  height: 24px;
}
.voice-presence i:nth-child(3) {
  height: 34px;
}
.red-voice-room[data-mode="speaking"] .voice-presence i {
  animation: red-voice-wave 0.8s ease-in-out infinite alternate;
}
.red-voice-room[data-mode="speaking"] .voice-presence i:nth-child(2n) {
  animation-delay: 0.3s;
}
.red-voice-room[data-mode="paused"] .voice-presence i {
  height: 8px;
  opacity: 0.4;
}
.voice-disclosure,
.voice-limits p,
.voice-footnote {
  font-size: 10px;
  line-height: 1.65;
  color: #6c5e57;
}
.voice-options {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}
.voice-options label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  flex: 1;
  min-width: 0;
}
.voice-options select,
.voice-history select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e3d9d1;
  background: #fffaf5b8;
  border-radius: 10px;
  padding: 8px;
  color: inherit;
  font: inherit;
  font-size: 11px;
}
.voice-limits summary,
.voice-history summary {
  font-size: 11px;
  min-height: 36px;
  align-content: center;
  cursor: pointer;
}
.voice-map-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  margin: 16px 0;
  min-height: 44px;
  cursor: pointer;
}
.voice-map-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #a7373e;
  flex-shrink: 0;
}
.voice-map-toggle small {
  display: block;
  font-size: 10px;
  color: #87776e;
  line-height: 1.5;
  margin-top: 4px;
}
.voice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.voice-actions button {
  flex: 1;
}
.red-voice-room .voice-primary {
  background: #a7373e;
  border-color: #a7373e;
  color: white;
  font-weight: 700;
}
.red-voice-room .voice-end {
  color: #a7373e;
}
.voice-meter {
  font-size: 10px;
  text-align: center;
  color: #88786e;
  font-variant-numeric: tabular-nums;
}
.voice-status {
  font-size: 11px;
  line-height: 1.55;
  color: #8e4243;
  min-height: 18px;
}
.voice-transcript {
  max-height: 240px;
  overflow: auto;
  scroll-behavior: smooth;
}
.voice-turn {
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0;
}
.voice-turn strong {
  font-size: 10px;
  color: #a7373e;
}
.voice-turn.user strong {
  color: #85776c;
}
.voice-turn p {
  margin: 3px 0;
  white-space: pre-wrap;
}
.voice-turn.partial {
  opacity: 0.7;
}
.voice-return {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border-top: 1px solid #e7ddd5;
  padding-top: 8px;
}
.red-voice-room .voice-return button {
  border: 0;
  background: none;
  padding: 8px 2px;
  font-size: 11px;
  color: #934044;
}
.voice-history button {
  margin-top: 8px;
  font-size: 10px;
}
.voice-history select {
  margin-top: 6px;
}
.voice-footnote {
  margin-bottom: 0;
}
.red-voice-room.is-minimized .voice-body {
  display: none;
}
.red-voice-room.is-minimized {
  width: 300px;
}
.red-voice-room.is-live.is-minimized .voice-identity svg {
  animation: red-voice-wave 1s ease-in-out infinite alternate;
}
#red-talk {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #e0d4cf;
  border-radius: 11px;
  background: #fff8f3;
  color: #a7373e;
  display: grid;
  place-items: center;
}
#red-board .board-control.board-voice-button {
  color: #fff8f3;
  background: linear-gradient(180deg, #b44049, #993039);
  border: 1px solid #893039;
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 #ffffff26,
    0 3px 9px #7925301c;
  padding: 12px 16px;
  font-weight: 650;
}
#red-board .board-control.board-voice-button:hover {
  background: linear-gradient(180deg, #bd4a53, #a33740);
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 5px 14px #79253026;
}
#red-board .board-control.board-voice-button:active {
  background: #94323a;
}
.red-voice-room :focus-visible {
  outline: 3px solid #ad4e54;
  outline-offset: 2px;
}
@keyframes red-voice-wave {
  to {
    transform: scaleY(0.5);
    opacity: 0.65;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  #red-writing-workspace .red-voice-room {
    background: #fffcf7f2;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #red-writing-workspace .red-voice-room {
    background: #fffcf7;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 600px) {
  #red-writing-workspace .red-voice-room {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .voice-body {
    padding: 12px 18px;
  }
  .voice-presence {
    height: 32px;
  }
  .voice-transcript {
    max-height: 180px;
  }
  #red-writing-workspace .red-voice-room.is-minimized {
    width: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-presence i,
  .red-voice-room.is-live.is-minimized .voice-identity svg {
    animation: none !important;
    transition: none;
  }
  .voice-transcript {
    scroll-behavior: auto;
  }
}
