/* 通話の文字起こし（stt.js）。広い画面では右側に固定し、狭い画面では電話機の下に出す */
.stt { display: flex; flex-direction: column; gap: 8px; }
.stt h2 { margin: 0; }
.stt h2 label.check { font-weight: normal; }
.stt-scroll { flex: 1 1 auto; min-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.stt-scroll .note { margin: 0; }
.stt-chat { display: flex; flex-direction: column; gap: 6px; }
.stt-msg { max-width: 85%; padding: 6px 10px; border-radius: 12px; line-height: 1.5; word-break: break-word; }
.stt-msg .who { display: block; font-size: 11px; color: var(--muted); }
.stt-msg.peer { align-self: flex-start; background: var(--key); }
.stt-msg.self { align-self: flex-end; background: var(--ok-bg); }
.stt-msg.interim { opacity: .55; }
.stt-side { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stt-side .name { width: 3em; }
.stt-side .bar { flex: 0 0 100px; height: 8px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stt-side .fill { display: block; height: 100%; background: var(--ok); width: 0; }
.stt-side .st { color: var(--muted); }
.stt-log { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, monospace; font-size: 11px; max-height: 30vh; overflow-y: auto; }
.stt-log li { padding: 1px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; }
.stt-log li.ok { color: var(--ok); }
.stt-log li.bad { color: var(--bad); }
.note.bad { color: var(--bad); }
@media (min-width: 960px) {
  body.stt-shown { padding-right: 440px; }
  .stt { position: fixed; top: 16px; right: 16px; bottom: 16px; width: 408px; margin: 0; }
}
@media (max-width: 959px) {
  .stt { max-width: 480px; margin: 0 auto 32px; }
  .stt-scroll { max-height: 60vh; }
}
.stt-side .fill.w0 { width: 0%; }
.stt-side .fill.w1 { width: 10%; }
.stt-side .fill.w2 { width: 20%; }
.stt-side .fill.w3 { width: 30%; }
.stt-side .fill.w4 { width: 40%; }
.stt-side .fill.w5 { width: 50%; }
.stt-side .fill.w6 { width: 60%; }
.stt-side .fill.w7 { width: 70%; }
.stt-side .fill.w8 { width: 80%; }
.stt-side .fill.w9 { width: 90%; }
.stt-side .fill.w10 { width: 100%; }
#stt-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
