.jd-voice-button { display:inline-grid; place-items:center; flex:0 0 34px; width:34px; height:34px; min-height:0; padding:7px; margin:0; border:0; border-radius:50%; background:transparent; color:#7b88a0; cursor:pointer; }
.jd-voice-button svg,.jd-voice-dialog svg { display:block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.jd-voice-button:hover { background:#eef2fa; color:#4f6ca6; }
.jd-composer-actions { display:flex!important; flex:0 0 auto; align-items:center; flex-wrap:nowrap!important; gap:8px!important; margin-left:auto; }
.clarity-composer-toolbar>.jd-composer-actions { gap:7px!important; }
.drafting-composer-tools>.jd-composer-actions { gap:5px!important; }
.jd-voice-field { position:relative; display:block; min-width:0; margin-top:8px; }
.jd-voice-field>textarea,.jd-voice-field>input { width:100%; max-width:100%; margin-top:0!important; padding-right:43px!important; }
.jd-voice-field>.jd-voice-button { position:absolute; top:7px; right:7px; width:28px; height:28px; padding:5px; }
.jd-voice-field>.jd-voice-button svg { width:17px; height:17px; }
.jd-voice-field.is-single-line { height:44px; }
.jd-voice-field.is-single-line>input { box-sizing:border-box; height:44px; min-height:44px; margin-block:0; }
.jd-voice-field.is-single-line>.jd-voice-button { top:8px; }
.public-intent-card>.jd-voice-field { margin-top:12px; }
.assistant-input>.jd-voice-field { flex:1 1 auto; margin-top:0; }
.jd-voice-dialog { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:540px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); padding:0; border:1px solid #e5e9f1; border-radius:18px; background:#fff; color:#334158; box-shadow:0 24px 100px #18223826; font-family:"DM Sans",Manrope,sans-serif; overflow:hidden; }
.jd-voice-dialog[open] { display:flex; flex-direction:column; }
.jd-voice-dialog::backdrop { background:#26354c45; backdrop-filter:blur(3px); }
.jd-voice-dialog * { box-sizing:border-box; }
.jd-voice-header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:19px 22px; border-bottom:1px solid #edf0f5; }
.jd-voice-header>div { display:flex; align-items:center; gap:10px; }
.jd-voice-heading-icon { display:grid; place-items:center; width:33px; height:33px; border-radius:10px; background:#f0edfa; color:#8a76c3; }
.jd-voice-header h2 { margin:0; font-family:inherit; font-size:19px; line-height:1.3; font-weight:600; letter-spacing:-.45px; }
.jd-voice-header>button { display:grid; place-items:center; width:30px; height:30px; min-height:0; padding:5px; border:0; border-radius:7px; background:transparent; color:#8b95a6; cursor:pointer; }
.jd-voice-header>button:hover { background:#f3f5f9; color:#415474; }
.jd-voice-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:17px 22px 19px; }
.jd-voice-context { margin:0 0 17px; font-size:13px; line-height:1.65; color:#65748b; }
.jd-voice-controls { display:flex; align-items:flex-end; gap:13px; }
.jd-voice-controls>label { display:block; flex:1 1 auto; min-width:0; color:#78869b; font-size:11px; line-height:17px; }
.jd-voice-controls select { display:block; appearance:none; box-sizing:border-box; width:100%; height:38px; min-height:38px; margin-top:6px; padding:8px 33px 8px 11px; border:1px solid #e2e7ef; border-radius:8px; background-color:#fff; color:#52627d; font:inherit; font-size:12px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23828da1' stroke-width='1.5'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 11px center; }
.jd-voice-controls>button { display:flex; align-items:center; justify-content:center; flex:0 0 auto; gap:7px; min-height:38px; height:38px; margin:0; padding:8px 12px; border:1px solid #e3e8f3; border-radius:8px; background:#f2f5fc; color:#526d9c; font:inherit; font-size:11px; white-space:nowrap; cursor:pointer; }
.jd-voice-controls>button svg { width:16px; height:16px; }
.jd-voice-controls>button:disabled { color:#96a0b0; background:#f7f8fa; cursor:default; }
.jd-voice-stop { width:10px; height:10px; margin:3px; border-radius:2px; background:#bd7586; }
.jd-voice-service-note { margin:10px 0 20px; color:#69778c; font-size:11px; line-height:1.6; }
.jd-voice-transcript-label { display:block; margin:0 0 8px; font-size:12px; color:#63738d; font-weight:500; }
.jd-voice-dialog textarea { display:block; width:100%; min-height:150px; max-height:320px; padding:13px 14px; margin:0; border:1px solid #e2e7f0; border-radius:10px; background:#fafbfd; color:#374a65; font:inherit; font-size:14px; line-height:1.7; resize:vertical; }
.jd-voice-dialog textarea::placeholder { color:#98a2b2; }
.jd-voice-dialog textarea[readonly] { background:#f9fbff; }
.jd-voice-interim { min-height:0; margin:8px 0 0; color:#8c98ad; font-size:12px; line-height:1.6; }
.jd-voice-interim:empty { display:none; }
#jd-voice-status { margin:11px 0 0; color:#65748b; font-size:12px; line-height:1.65; }
#jd-voice-status[data-tone=error] { color:#b56f66; }
#jd-voice-status[data-tone=listening] { color:#697fba; }
.jd-voice-footer { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-shrink:0; padding:14px 22px; border-top:1px solid #edf0f5; background:#fcfcfe; }
.jd-voice-footer button { min-height:36px; margin:0; padding:8px 12px; border:1px solid #e3e8f0; border-radius:8px; background:#fff; color:#637187; font:inherit; font-size:12px; cursor:pointer; }
.jd-voice-footer [data-voice-add] { border-color:var(--brand-primary,#3e5ca5); background:var(--brand-primary,#3e5ca5); color:#fff; }
.jd-voice-footer [data-voice-add]:disabled { border-color:#e8ecf3; background:#edf0f6; color:#a0aaba; cursor:default; }
body #jd-voice-dialog :is(button,select):focus-visible,.jd-voice-button:focus-visible { outline:2px solid #91a8db; outline-offset:2px; }
body #jd-voice-dialog textarea:focus-visible { outline:0; border-color:#9eb2dc; box-shadow:0 0 0 3px #537dc914; }
@media(max-width:560px) {
  .jd-voice-dialog { max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:14px; }
  .jd-voice-header { padding:16px 17px; }
  .jd-voice-body { padding:16px 17px; }
  .jd-voice-footer { padding:13px 17px; }
  .jd-voice-controls { gap:8px; }
  .jd-voice-controls>button { padding-inline:9px; font-size:10px; }
  .jd-voice-controls select { font-size:11px; }
  .jd-voice-dialog textarea { font-size:16px; }
  .jd-voice-button,.jd-voice-field>.jd-voice-button { width:44px; height:44px; min-height:44px; flex-basis:44px; padding:12px; }
  .jd-voice-field>.jd-voice-button,.jd-voice-field.is-single-line>.jd-voice-button { top:0; right:2px; }
  .jd-voice-field>textarea,.jd-voice-field>input { padding-right:48px!important; }
  .jd-voice-dialog .jd-voice-header>button { width:44px; height:44px; min-height:44px; padding:12px; margin:-7px; }
  .jd-voice-dialog :is(.jd-voice-footer button,.jd-voice-controls>button,.jd-voice-controls select) { min-height:44px; height:44px; }
  .clarity-composer-toolbar { gap:7px; }
  .clarity-composer-toolbar>.clarity-composer-options { flex:1 1 auto; }
  .clarity-composer-toolbar>.jd-composer-actions { gap:3px!important; }
  .clarity-composer-toolbar .jd-voice-button { width:44px; flex-basis:44px; }
  .drafting-composer-tools>.jd-composer-actions { gap:3px!important; }
}
@media(max-width:500px) {
  .clarity-composer-toolbar { grid-template-columns:minmax(0,1fr) auto; }
  .clarity-composer-toolbar>.jd-composer-actions { align-self:start; }
}
