.chat-head {
  align-items: center;
  gap: 12px;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
  color: #31435e;
  cursor: pointer;
}

.voice-toggle input {
  width: 34px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.voice-toggle span,
.voice-toggle small {
  display: block;
}

.voice-toggle span {
  font-size: 11px;
  font-weight: 700;
}

.voice-toggle small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.customer-replay,
.m-customer-replay {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid #d7e2f2;
  border-radius: 10px;
  background: #fff;
  color: #236ff5;
  font-size: 10px;
  font-weight: 700;
}

.customer-replay.playing,
.m-customer-replay.playing {
  border-color: #b9ddcf;
  background: #eaf8f3;
  color: #087757;
}

.customer-replay:disabled,
.m-customer-replay:disabled {
  cursor: wait;
  opacity: .65;
}

.m-caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.m-caption-head > span {
  color: #64d9b2;
  font-size: 9px;
  font-weight: 750;
}

.m-customer-voice-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 3px 7px 3px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #dce8fb;
  font-size: 8px;
}

.m-customer-voice-toggle input {
  width: 34px;
  height: 20px;
  margin: 0;
  accent-color: #64d9b2;
}

.settings-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

#serviceSettingsForm input[type="password"] {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
}

@media (max-width: 760px) {
  .chat-head-actions { gap: 6px; }
  .voice-toggle { padding: 4px 7px; }
  .voice-toggle small { display: none; }
  .chat-head { align-items: flex-start; }
}
