/* Shared voice-to-text UI: microphone state, centered listener and animations. */
.ai-voice-listener__panel{background:#fff!important;opacity:1!important;appearance:none!important;-webkit-appearance:none!important;color:#183153!important;border-color:rgba(255,255,255,.9)!important}.ai-voice-listener__panel>*{opacity:1!important;color:inherit}
.ai-voice-listener__panel:focus-visible{outline:3px solid var(--ai-blue,var(--blue,#1267d8));outline-offset:5px}.ai-voice-listener__panel>span:not(.ai-voice-listener__visual):not(.ai-voice-listener__bars){font-size:1rem}
.ai-mic svg,.ai-voice-listener__mic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-field{display:grid;grid-template-columns:38px minmax(0,1fr);gap:0;align-items:stretch;border:1px solid var(--line,#dbe5ef);border-radius:12px;background:#fff;overflow:hidden}.voice-field:focus-within{border-color:rgba(18,103,216,.55);box-shadow:0 0 0 3px rgba(18,103,216,.1)}.voice-field textarea{border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:9px}.voice-mic{width:38px;height:100%;min-height:38px;border:0;border-right:1px solid var(--line,#dbe5ef);border-radius:0;background:#f4f8fd;color:var(--blue,#1267d8);display:grid;place-items:center;padding:8px}.voice-mic:hover,.voice-mic:focus-visible{background:#dceaff}.voice-mic.is-listening{background:#fff0f0;color:#c93535}.voice-mic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ai-voice-open{overflow:hidden}.ai-voice-listener[hidden]{display:none!important}
.ai-voice-listener{position:fixed;top:var(--pde-voice-top,0px);height:var(--pde-voice-height,100dvh);left:0;right:0;z-index:10020;display:grid;place-items:center;padding:24px;background:rgba(16,30,54,.42);backdrop-filter:blur(4px);animation:ai-voice-fade .2s ease-out}
.ai-voice-listener__panel{width:min(360px,100%);min-height:360px;padding:34px 28px 30px;border:1px solid rgba(255,255,255,.72);border-radius:30px;background:#fff;color:#183153;box-shadow:0 24px 70px rgba(16,30,54,.28);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer;animation:ai-voice-panel-in .28s cubic-bezier(.2,.8,.2,1)}
.ai-voice-listener__visual{position:relative;width:112px;height:112px;display:grid;place-items:center;margin-bottom:4px}.ai-voice-listener__ring{position:absolute;inset:0;border-radius:50%;background:rgba(201,53,53,.13);animation:ai-voice-ring 1.45s ease-out infinite}.ai-voice-listener__mic{position:relative;width:72px;height:72px;border-radius:50%;background:#c93535;color:#fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(201,53,53,.32)}.ai-voice-listener__mic svg{width:34px;height:34px}.ai-voice-listener__bars{height:30px;display:flex;align-items:center;gap:5px;margin:2px 0 4px}.ai-voice-listener__bars i{width:4px;height:10px;border-radius:999px;background:var(--ai-blue,var(--blue,#1267d8));animation:ai-voice-wave .85s ease-in-out infinite alternate}.ai-voice-listener__bars i:nth-child(2),.ai-voice-listener__bars i:nth-child(4){animation-delay:-.35s}.ai-voice-listener__bars i:nth-child(3){animation-delay:-.6s}.ai-voice-listener__panel strong{font-size:1.32rem;line-height:1.2}.ai-voice-listener__panel small{margin-top:5px;color:#65758b;font-size:.84rem}.ai-voice-listener.is-processing .ai-voice-listener__panel{cursor:wait}.ai-voice-listener.is-processing .ai-voice-listener__ring{border:4px solid rgba(38,99,235,.15);border-top-color:var(--ai-blue,var(--blue,#1267d8));background:transparent;animation:ai-voice-spin .85s linear infinite}.ai-voice-listener.is-processing .ai-voice-listener__mic{background:var(--ai-blue,var(--blue,#1267d8));box-shadow:0 10px 28px rgba(38,99,235,.28)}.ai-voice-listener.is-processing .ai-voice-listener__bars{visibility:hidden}
@keyframes ai-voice-fade{from{opacity:0}}@keyframes ai-voice-panel-in{from{opacity:0;transform:translateY(12px) scale(.96)}}@keyframes ai-voice-ring{0%{transform:scale(.72);opacity:.95}100%{transform:scale(1.22);opacity:0}}@keyframes ai-voice-wave{from{height:8px;opacity:.55}to{height:28px;opacity:1}}@keyframes ai-voice-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ai-voice-listener{animation-duration:140ms}.ai-voice-listener__panel{animation-duration:140ms}.ai-voice-listener__ring{animation:ai-voice-ring-reduced 2.4s ease-out infinite}.ai-voice-listener__bars i{animation:ai-voice-wave-reduced 1.5s ease-in-out infinite alternate}.ai-voice-listener.is-processing .ai-voice-listener__ring{animation:ai-voice-spin 1.6s linear infinite}}@keyframes ai-voice-ring-reduced{0%{transform:scale(.88);opacity:.62}100%{transform:scale(1.08);opacity:0}}@keyframes ai-voice-wave-reduced{from{height:11px;opacity:.7}to{height:19px;opacity:.95}}
 .voice-field :is(input,textarea){border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:9px}
 .voice-field>.voice-mic{border:0;border-right:1px solid var(--line,#dbe5ef);border-radius:0;background:#f4f8fd;color:var(--blue,#1267d8);box-shadow:none;padding:8px}
 .voice-field{border-color:#dfe7f1}
.voice-field>.voice-mic{border-right-color:#dfe7f1}
.voice-field:has(.cj-ai-improve){grid-template-columns:38px minmax(0,1fr) 38px}
.voice-field>.cj-ai-improve{width:38px;min-height:38px;border:0;border-left:1px solid #dbe5ef;border-radius:0;background:#f7f4ff;color:#7654c8!important;display:grid;place-items:center;padding:5px;line-height:1;transition:background .15s ease,color .15s ease}
.cj-ai-improve__icon{width:28px;height:28px;display:block;overflow:visible}
.voice-field>.cj-ai-improve .cj-ai-improve__icon{color:#7654c8!important;fill:#7654c8!important;stroke:none}
.voice-field>.cj-ai-improve:hover,.voice-field>.cj-ai-improve:focus-visible{background:#eee7ff;color:#7654c8!important}
.cj-ai-improve:focus-visible{outline:3px solid rgba(118,84,200,.25);outline-offset:-3px}
.voice-field>.cj-ai-improve.is-loading{cursor:wait;color:#7654c8!important}
.cj-ai-improve.is-loading .cj-ai-improve__icon{animation:cj-ai-spin .8s linear infinite}
.voice-field>.cj-ai-improve.is-error{background:#f7f4ff;color:#7654c8!important;font-size:.72rem}
.optional-fields label.wide .voice-field>.cj-ai-improve{border:0;border-left:1px solid var(--line,#dbe5ef);border-radius:0!important}
@keyframes cj-ai-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cj-ai-improve.is-loading .cj-ai-improve__icon{animation:none}}
.ai-voice-listener__visual{display:grid!important;visibility:visible!important;opacity:1!important}.ai-voice-listener__ring{display:block!important;visibility:visible!important}.ai-voice-listener__mic{display:grid!important;visibility:visible!important;opacity:1!important}.ai-voice-listener__bars{display:flex!important;visibility:visible!important;opacity:1!important}.ai-voice-listener__bars i{display:block!important;visibility:visible!important;opacity:1!important}.ai-voice-listener.is-processing .ai-voice-listener__bars{visibility:hidden!important}
