.mm-voice-anchor:empty { display: none; }
.mm-voice-panel {
  position: fixed;
  z-index: 960;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(90px, calc(82px + env(safe-area-inset-bottom)));
  width: min(400px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 110px));
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  color: var(--text, #172134);
  background: var(--panel-solid, #fff);
  border: 1px solid var(--line, #d9dfeb);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(19, 29, 52, .2);
  font: inherit;
}
.mm-voice-panel [hidden], .mm-voice-panel[hidden] { display: none !important; }
.mm-voice-panel *, .mm-voice-anchor * { box-sizing: border-box; }
.mm-voice-head { display: flex; align-items: center; gap: 10px; }
.mm-voice-avatar {
  display: grid; place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft, #f7eacf);
  color: var(--gold-ink, #4a2d00);
  font-weight: 750;
}
.mm-voice-identity { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mm-voice-identity small { display: block; color: var(--muted, #46566e); }
.mm-voice-state { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0; }
.mm-voice-state time { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-voice-warning { margin: 0 0 10px; color: var(--gold-ink, #5e3c00); }
.mm-voice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-voice-button, .mm-voice-start {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  white-space: normal;
}
.mm-voice-button {
  display: inline-grid;
  place-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #c9d2df);
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.mm-voice-panel :focus-visible, .mm-voice-open:focus-visible {
  outline: 2px solid var(--gold, #b57500);
  outline-offset: 2px;
}
.mm-voice-button[aria-pressed="true"] {
  background: var(--gold-soft, #f7eacf);
  color: var(--gold-ink, #4a2d00);
}
.mm-voice-end { color: var(--error, #9f2521); border-color: currentColor; }
.mm-voice-note { font-size: .87rem; color: var(--muted, #46566e); margin: 12px 0 8px; }
.mm-voice-answer { margin: 12px 0; padding: 10px; background: var(--gold-soft, #f8f1df); color: var(--gold-ink, #4a2d00); overflow-wrap: anywhere; }
.mm-voice-handoff summary { cursor: pointer; min-height: 44px; align-content: center; }
.mm-voice-handoff textarea {
  display: block; width: 100%; margin: 6px 0; padding: 8px; color: inherit;
  background: transparent; border-radius: 8px; border: 1px solid var(--line, #c9d2df);
}
.mm-voice-panel[data-compact="true"] .mm-voice-extended { display: none; }
.mm-voice-panel[data-compact="true"] { padding: 10px 12px; }
.mm-voice-panel[data-compact="true"] .mm-voice-state { margin: 8px 0; }
@media (max-width: 600px) {
  .mm-voice-panel {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    width: auto;
    bottom: calc(74px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 100px);
    padding: 14px;
  }
}
.mm-voice-open {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bc8f3e;
  border-radius: 50%;
  background: #19254f;
  color: #f4ca6c;
  cursor: pointer;
  vertical-align: middle;
}
.mm-voice-open svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm-voice-open:hover, .mm-voice-open[aria-expanded="true"] {
  background: #273a6a;
  color: #ffe2a0;
}
.chat-inputbar-in .mm-voice-anchor:not(:empty) { display: inline-flex; flex: 0 0 auto; }

.mm-voice-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
