/* Keep the original form field in place so labels, drafts and return-to-caret work as before. */
.voice-host {position:relative}
.voice-writable:is(input,textarea) {min-height:36px;padding-inline-end:46px!important}
.voice-field {position:absolute;z-index:1;display:block;width:32px;height:32px;transform:translate(calc(-100% - 3px),calc(-100% - 2px))}
textarea + .voice-field {transform:translate(calc(-100% - 7px),calc(-100% - 4px))}
@supports (top:anchor(bottom)) {
  .voice-writable {anchor-name:var(--voice-anchor)}
  .voice-field {position-anchor:var(--voice-anchor);left:anchor(right);top:anchor(bottom)}
}
.voice-field > button[data-voice-input] {display:grid;place-items:center;box-sizing:border-box;width:100%;height:100%;min-height:0;min-width:0;margin:0;padding:0;border:0;border-radius:6px;background:var(--panel,#fff);color:var(--accent-ink,#75452f);cursor:pointer}
.voice-field > button:is(:hover,:focus-visible),.voice-field > button[aria-pressed="true"] {background:var(--accent-soft,#f6e4da)}
.voice-field > button:focus-visible {outline:2px solid var(--accent,#94583b);outline-offset:1px}
.voice-field[hidden],.voice-writable:is(:disabled,[readonly],[hidden]) + .voice-field {display:none}
.voice-hint {display:block;margin:4px 0 8px;color:var(--ink);font-size:13px;font-weight:400;line-height:1.5;white-space:normal}
.voice-hint button {margin:4px 0;padding:4px 9px}
@media (pointer:coarse) {
  .voice-writable:is(input,textarea) {min-height:44px;padding-inline-end:50px!important}
  .voice-field {height:40px;width:40px}
}
