/* KMU Eigenwerk Sprachassistent · v6.3.1 */
.ew-voice-tools{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ew-voice-button,.ew-voice-info{appearance:none;border:1px solid #cfd8d3;background:#fff;color:#173e31;border-radius:10px;min-width:38px;height:38px;padding:0 10px;font:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 2px rgba(20,52,41,.05)}
.ew-voice-button{font-size:18px}.ew-voice-info{font-size:16px;border-radius:50%;width:38px;padding:0}
.ew-voice-button:hover,.ew-voice-info:hover{border-color:#19724f;background:#f4faf7}
.ew-voice-button.is-listening{background:#19724f;color:#fff;border-color:#19724f;box-shadow:0 0 0 4px rgba(25,114,79,.12)}
.ew-voice-backdrop{position:fixed;inset:0;z-index:1600;background:rgba(18,29,25,.52);display:none;align-items:center;justify-content:center;padding:18px}
.ew-voice-backdrop.open{display:flex}
.ew-voice-dialog{width:min(700px,100%);max-height:min(86vh,820px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);border:1px solid rgba(20,52,41,.12)}
.ew-voice-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 18px 14px;background:#fff;border-bottom:1px solid #e7ece9;border-radius:18px 18px 0 0}
.ew-voice-head h2{margin:0;font-size:22px}.ew-voice-head p{margin:4px 0 0;color:#65716c;font-size:13px}
.ew-voice-close{border:0;background:#f0f3f1;width:36px;height:36px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;color:#30443b}
.ew-voice-body{padding:18px}
.ew-voice-listen-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.ew-voice-listen-row button{border:1px solid #cad5cf;background:#fff;border-radius:10px;padding:10px 13px;font:inherit;font-weight:750;cursor:pointer}
.ew-voice-listen-row .primary{background:#19724f;color:#fff;border-color:#19724f}
.ew-voice-state{font-size:13px;color:#65716c;min-height:20px;display:flex;align-items:center;gap:7px}
.ew-voice-state.listening{color:#19724f;font-weight:800}
.ew-voice-pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 0 rgba(25,114,79,.35);animation:ewVoicePulse 1.3s infinite}
@keyframes ewVoicePulse{0%{box-shadow:0 0 0 0 rgba(25,114,79,.35)}70%{box-shadow:0 0 0 9px rgba(25,114,79,0)}100%{box-shadow:0 0 0 0 rgba(25,114,79,0)}}
.ew-voice-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64716b;font-weight:800;margin-bottom:6px}
.ew-voice-text{width:100%;min-height:116px;resize:vertical;box-sizing:border-box;border:1px solid #ccd6d1;border-radius:12px;padding:12px;font:inherit;line-height:1.45;background:#fbfcfb}
.ew-voice-text:focus{outline:none;border-color:#19724f;box-shadow:0 0 0 3px rgba(25,114,79,.10);background:#fff}
.ew-voice-preview{margin-top:15px;border:1px solid #dce4df;border-radius:14px;background:#f8faf9;padding:14px;display:none}
.ew-voice-preview.open{display:block}.ew-voice-preview h3{margin:0 0 6px;font-size:17px}.ew-voice-preview .summary{color:#47554f;margin-bottom:8px;white-space:pre-wrap}
.ew-voice-preview ul{margin:7px 0 0 20px;padding:0}.ew-voice-preview li{margin:4px 0}
.ew-voice-warning{margin-top:9px;border-left:4px solid #b87813;background:#fff8ea;padding:8px 10px;border-radius:8px;color:#674b1d;font-size:13px}
.ew-voice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.ew-voice-actions button{border:1px solid #c9d4ce;background:#fff;border-radius:10px;padding:9px 12px;font:inherit;font-weight:800;cursor:pointer}.ew-voice-actions .primary{background:#19724f;color:#fff;border-color:#19724f}
.ew-voice-choice{margin-top:10px}.ew-voice-choice label{font-size:12px;font-weight:800;color:#56635e;display:block;margin-bottom:5px}.ew-voice-choice select{width:100%;padding:9px;border:1px solid #cbd5d0;border-radius:9px;background:#fff;font:inherit}
.ew-voice-help-intro{background:#eef7f3;border:1px solid #d1e7dd;border-radius:12px;padding:12px 13px;margin-bottom:16px}
.ew-voice-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ew-voice-help-card{border:1px solid #e0e6e2;border-radius:12px;padding:12px}.ew-voice-help-card b{display:block;margin-bottom:5px;color:#173e31}.ew-voice-help-card code{font:inherit;font-weight:750;background:#f4f6f5;padding:2px 5px;border-radius:5px}
.ew-voice-help-note{margin-top:15px;padding:11px 12px;border-radius:10px;background:#fff7e8;border:1px solid #f0d7a5;font-size:13px;color:#654a20}
.ew-voice-draft-banner{margin:0 0 14px;border:1px solid #b9dccd;background:#eef8f3;color:#204c3a;padding:12px 14px;border-radius:12px;display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.ew-voice-draft-banner b{display:block}.ew-voice-draft-banner small{display:block;color:#537164;margin-top:3px;white-space:pre-wrap}.ew-voice-draft-banner button{border:1px solid #a9cbbd;background:#fff;border-radius:8px;padding:6px 9px;cursor:pointer}
@media(max-width:820px){.ew-voice-tools{width:100%;justify-content:flex-start;margin-top:4px}.ew-voice-button{flex:1;justify-content:flex-start;gap:7px}.ew-voice-button:after{content:'Sprachsteuerung';font-size:13px}.ew-voice-info{flex:0 0 38px}.ew-voice-backdrop{align-items:flex-end;padding:0}.ew-voice-dialog{width:100%;max-height:92vh;border-radius:20px 20px 0 0}.ew-voice-head{border-radius:20px 20px 0 0}.ew-voice-help-grid{grid-template-columns:1fr}}
