.voice-dictation-actions{
  display:inline-flex;
  align-items:stretch;
  gap:10px;
  max-width:100%;
  vertical-align:middle;
}
.ai-improve-sparkle::before{
  content:"";
  display:inline-block;
  width:1.05em;
  height:1.05em;
  min-width:1.05em;
  margin-right:.45em;
  vertical-align:-.17em;
  background:currentColor;
  -webkit-mask:url('/static/vendor/lucide/sparkles.svg') center/contain no-repeat;
  mask:url('/static/vendor/lucide/sparkles.svg') center/contain no-repeat;
}
.voice-dictation-actions > button:first-child{
  flex:1 1 auto;
  width:auto!important;
  margin-top:0!important;
}
.voice-dictation-button{
  position:relative;
  isolation:isolate;
  width:48px;
  min-width:48px;
  height:48px;
  min-height:48px;
  padding:0;
  border:1px solid var(--oms-border-strong, #b8c9dc);
  border-radius:7px;
  background:var(--oms-surface, #fff);
  color:var(--oms-primary, #123f70);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(20,58,95,.08);
  transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.voice-dictation-button:hover:not(:disabled):not(.is-recording){
  border-color:var(--oms-primary, #123f70);
  transform:translateY(-1px);
}
.voice-dictation-button svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.voice-dictation-button.is-recording{
  color:#fff!important;
  background:#d92d20!important;
  border-color:#b42318!important;
  box-shadow:0 0 0 5px rgba(217,45,32,.22), 0 0 24px rgba(217,45,32,.38), 0 8px 18px rgba(145,28,20,.28)!important;
}
.voice-dictation-button.is-recording::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-6px;
  border:3px solid rgba(217,45,32,.38);
  border-radius:11px;
  pointer-events:none;
  animation:voice-dictation-pulse 1.35s ease-in-out infinite;
}
.voice-dictation-button.is-transcribing{
  color:#fff;
  background:var(--oms-primary, #123f70);
  border-color:var(--oms-primary, #123f70);
  cursor:wait;
  opacity:.78;
}
.voice-dictation-button:disabled{
  cursor:wait;
  opacity:.62;
}
.ai-inline-actions > .voice-dictation-actions{
  margin-right:auto;
}
.ai-inline-actions .voice-dictation-actions .ai-improve-btn{
  margin-right:0!important;
}
.mobile-add-note-card > .voice-dictation-actions,
.mobile-notes-card > .voice-dictation-actions,
.driver2-service-add > .voice-dictation-actions{
  display:flex;
  width:100%;
}
.driver2-service-add > .voice-dictation-actions{
  margin-top:12px;
}
.mobile-add-note-card .voice-dictation-actions .mobile-btn,
.mobile-notes-card .voice-dictation-actions .mobile-btn,
.driver2-service-add .voice-dictation-actions .driver2-button{
  width:auto!important;
  margin-top:0!important;
}
@keyframes voice-dictation-pulse{
  0%,100%{opacity:.95;transform:scale(.94)}
  50%{opacity:.28;transform:scale(1.14)}
}
@media(max-width:720px){
  .voice-dictation-actions{
    display:flex;
    width:100%;
  }
  .voice-dictation-button{
    width:var(--rh-mobile-action-height,52px);
    min-width:var(--rh-mobile-action-height,52px);
    height:auto;
    min-height:var(--rh-mobile-action-height,52px);
    align-self:stretch;
    border-radius:7px;
  }
}
@media(prefers-reduced-motion:reduce){
  .voice-dictation-button{
    transition:none;
  }
  .voice-dictation-button.is-recording::after{
    animation:none;
  }
}
