/* 음성 시작 상자 (T-04-052) — VOICE_AGENT_ID가 채워진 때만 /voice·/en/voice에 붙음. 움직임 없음. */
.voice-box { text-align: center; border-style: solid; border-width: 2px; } /* 켜진 뒤에는 '자리 표시' 점선 대신 실선 */
.voice-box p { margin: 0.6em 0; }
.voice-btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 52px; }
.voice-btn:disabled { opacity: 0.6; cursor: progress; }
.voice-btn-stop { background: var(--surface); color: var(--text); border: 2px solid var(--accent); }
.voice-btn[hidden] { display: none; }
.voice-status { min-height: 1.6em; font-weight: 600; }
.voice-status[data-kind="error"] { background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: 10px; padding: 0.5em 0.8em; }
#voice-widget { min-height: 0; }
/* 위젯을 시작 상자 안에 붙임: 위젯 내부는 position:fixed 로 화면 전체를 덮으므로, 바깥 요소에 transform을 주면 fixed가 이 요소 기준이 됨.
   (위젯 CSS는 shadow DOM 안이라 못 고침 — 바깥 상자의 크기·기준만 정함) */
#voice-widget elevenlabs-convai { display: block; position: relative; width: 100%; max-width: 28rem; margin-inline: auto; height: 24rem; transform: translateZ(0); overflow: hidden; margin-top: 0.8em; border-radius: var(--radius); }
.voice-inapp { background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: 10px; padding: 0.2em 0.8em; margin-bottom: 0.8em; }
.voice-inapp[hidden] { display: none; }
/* 고대비(강제 색) 모드: 시작 버튼은 border:0 이라 site.css의 .btn 테두리 규칙이 이 파일에 덮여 경계가 사라짐 → 다시 그어 줌 (닫기 버튼은 이미 2px 테두리) */
@media (forced-colors: active) { .voice-btn:not(.voice-btn-stop) { border: 1px solid CanvasText; } }
