:root{
  --hmp441-voice-bg:rgba(12,25,43,.98);
  --hmp441-voice-panel:rgba(22,41,66,.96);
  --hmp441-voice-border:rgba(148,163,184,.24);
  --hmp441-voice-text:#f5f9ff;
  --hmp441-voice-muted:#9fb0c5;
  --hmp441-voice-accent:#41d98a;
  --hmp441-voice-blue:#5ca9ff;
}
.hmp441-voice-popup{
  position:fixed;
  z-index:2800;
  right:max(12px,calc((100vw - 1040px)/2 + 12px));
  bottom:144px;
  width:min(390px,calc(100vw - 24px));
  max-height:min(68vh,640px);
  display:grid;
  gap:12px;
  padding:16px;
  overflow:auto;
  color:var(--hmp441-voice-text);
  background:linear-gradient(155deg,var(--hmp441-voice-panel),var(--hmp441-voice-bg));
  border:1px solid var(--hmp441-voice-border);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.48);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transform:translateY(12px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition:transform .18s ease,opacity .18s ease,width .2s ease,max-height .2s ease;
}
.hmp441-voice-popup[hidden]{display:none!important}
.hmp441-voice-popup.is-open{transform:none;opacity:1;pointer-events:auto}
.hmp441-voice-popup.is-expanded{
  inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) calc(78px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  width:auto;
  max-height:none;
  border-radius:24px;
}
.hmp441-voice-header,.hmp441-voice-identity,.hmp441-voice-status-card,.hmp441-voice-actions{display:flex;align-items:center}
.hmp441-voice-header{justify-content:space-between;gap:12px}
.hmp441-voice-identity{gap:10px;min-width:0}
.hmp441-voice-identity small{display:block;color:var(--hmp441-voice-muted);font-size:10px}
.hmp441-voice-identity strong{display:block;font-size:15px}
.hmp441-voice-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#348bd8,#7257d8);font-size:20px;box-shadow:0 10px 28px rgba(52,139,216,.28)}
.hmp441-voice-icon-button{width:38px;height:38px;padding:0;border-radius:12px;font-size:24px}
.hmp441-voice-status-card{gap:12px;padding:12px;border:1px solid var(--hmp441-voice-border);border-radius:16px;background:rgba(255,255,255,.045)}
.hmp441-voice-status-card strong{display:block;font-size:13px}
.hmp441-voice-status-card p{margin:3px 0 0;color:var(--hmp441-voice-muted);font-size:11px;line-height:1.4}
.hmp441-voice-pulse{width:14px;height:14px;flex:0 0 auto;border-radius:50%;background:#718096;box-shadow:0 0 0 0 rgba(113,128,150,.35)}
.hmp441-voice-popup[data-state="LISTENING"] .hmp441-voice-pulse,
.hmp441-voice-popup[data-state="SPEECH_DETECTED"] .hmp441-voice-pulse{
  background:var(--hmp441-voice-accent);
  animation:hmp441VoicePulse 1.15s infinite;
}
.hmp441-voice-popup[data-state="ERROR"] .hmp441-voice-pulse{background:#ef6666}
.hmp441-voice-popup[data-state="SUCCESS"] .hmp441-voice-pulse{background:var(--hmp441-voice-accent)}
@keyframes hmp441VoicePulse{0%{box-shadow:0 0 0 0 rgba(65,217,138,.42)}70%{box-shadow:0 0 0 13px rgba(65,217,138,0)}100%{box-shadow:0 0 0 0 rgba(65,217,138,0)}}
.hmp441-voice-conversation{min-height:72px;padding:12px;border-radius:15px;background:rgba(3,10,20,.34);border:1px solid rgba(148,163,184,.14);font-size:12px;line-height:1.5}
.hmp441-voice-empty{margin:0;color:var(--hmp441-voice-muted)}
.hmp441-voice-transcript{min-height:62px;resize:vertical;color:var(--hmp441-voice-text);background:rgba(3,10,20,.5);border-color:var(--hmp441-voice-border)}
.hmp441-voice-actions{gap:8px;flex-wrap:wrap}
.hmp441-voice-button{min-height:42px;padding:9px 13px;border:1px solid var(--hmp441-voice-border);border-radius:13px;background:rgba(255,255,255,.06);color:var(--hmp441-voice-text);font-size:12px;font-weight:750}
.hmp441-voice-button:focus-visible{outline:2px solid var(--hmp441-voice-blue);outline-offset:2px}
.hmp441-voice-primary{flex:1;background:linear-gradient(145deg,#2187df,#6558d9);border-color:rgba(255,255,255,.22)}
.hmp441-voice-actions-secondary .hmp441-voice-button{flex:1}
.fab-ai[data-hmp-voice-launcher="true"][aria-pressed="true"]{box-shadow:0 0 0 8px rgba(65,217,138,.18),0 16px 38px rgba(31,76,168,.38)!important}
@media(max-width:560px){
  .hmp441-voice-popup{right:10px;bottom:143px;width:calc(100vw - 20px);padding:14px;border-radius:20px}
  .hmp441-voice-popup.is-expanded{inset:8px 8px calc(76px + env(safe-area-inset-bottom));width:auto}
  .hmp441-voice-button{flex:1;min-width:92px}
}
@media(prefers-reduced-motion:reduce){.hmp441-voice-popup,.hmp441-voice-pulse{animation:none!important;transition:none!important}}
.hmp441-voice-turn{margin:0 0 8px;padding:8px 10px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.hmp441-voice-turn:last-child{margin-bottom:0}
.hmp441-voice-turn-user{margin-left:20px;background:rgba(92,169,255,.14);border:1px solid rgba(92,169,255,.2)}
.hmp441-voice-turn-assistant{margin-right:20px;background:rgba(65,217,138,.11);border:1px solid rgba(65,217,138,.18)}

/* v43.11.44.2.1 — restore receipt shortcuts and an explicit close control. */
.hmp441-receipt-section{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid var(--hmp441-voice-border);
  border-radius:16px;
  background:rgba(255,255,255,.04);
}
.hmp441-receipt-section>strong{font-size:13px}
.hmp441-receipt-section>p{margin:0;color:var(--hmp441-voice-muted);font-size:11px;line-height:1.45}
.hmp441-receipt-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hmp441-receipt-button{min-width:0;padding:9px 7px;white-space:normal;line-height:1.25}
.hmp441-voice-footer-actions{justify-content:flex-end;padding-top:2px}
.hmp441-voice-close-button{min-width:112px;border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.11)}
@media(max-width:380px){.hmp441-receipt-actions{grid-template-columns:1fr}.hmp441-voice-close-button{width:100%}}
.hmp441-voice-header{position:sticky;top:-4px;z-index:3;padding:4px 0;background:linear-gradient(155deg,var(--hmp441-voice-panel),var(--hmp441-voice-bg))}
.hmp441-voice-footer-actions{position:sticky;bottom:-4px;z-index:3;padding:8px 0 4px;background:linear-gradient(0deg,var(--hmp441-voice-bg) 70%,rgba(12,25,43,0))}

/* v43.11.44.2.40 — yalnız sesli taslak alanı */
.hmp239-draft-host{margin-top:12px}.hmp239-empty{margin:0;padding:12px;border:1px dashed rgba(148,163,184,.35);border-radius:14px;color:#94a3b8}.hmp239-draft-card{margin-top:10px;padding:14px;border:1px solid rgba(148,163,184,.25);border-radius:16px;background:rgba(15,23,42,.72)}.hmp239-draft-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.hmp239-draft-head div{display:grid;gap:3px}.hmp239-draft-head small{color:#94a3b8}.hmp239-draft-head strong{font-size:1rem}.hmp239-badge{font-size:.72rem;font-weight:800;padding:5px 8px;border-radius:999px;background:rgba(59,130,246,.15);color:#93c5fd}.hmp239-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hmp239-field{display:grid;gap:5px;font-size:.8rem;color:#cbd5e1}.hmp239-field input,.hmp239-field select{min-width:0;width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.3);border-radius:10px;background:#0f172a;color:#f8fafc;padding:9px 10px}.hmp239-warning,.hmp239-danger,.hmp239-subcard{margin-top:10px;padding:10px 12px;border-radius:12px}.hmp239-warning{background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.25)}.hmp239-danger{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.28)}.hmp239-subcard{background:rgba(30,41,59,.8);border:1px solid rgba(148,163,184,.18)}.hmp239-warning p,.hmp239-danger p,.hmp239-subcard p{margin:5px 0 0;color:#cbd5e1;font-size:.83rem}.hmp239-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.hmp239-actions button,.hmp239-inline-button{border:0;border-radius:10px;padding:10px 11px;font-weight:750;cursor:pointer;background:#334155;color:#f8fafc}.hmp239-actions .hmp239-confirm{grid-column:1/-1;background:#16a34a}.hmp239-inline-button{margin-top:8px;background:#b45309}@media(max-width:520px){.hmp239-grid{grid-template-columns:1fr}.hmp239-actions{grid-template-columns:1fr}.hmp239-actions .hmp239-confirm{grid-column:auto}}


/* v2.39 yönetici sesli onay listesi */
.hmp239-approval-section{margin:12px 0;padding:12px;border:1px solid rgba(125,183,232,.22);border-radius:14px;background:rgba(4,17,31,.38)}
.hmp239-approval-section>strong{display:block;margin-bottom:4px}.hmp239-approval-section>p{margin:0 0 9px;color:#9fb3c8;font-size:12px}
.hmp239-approval-list{display:grid;gap:8px}.hmp239-approval-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid rgba(140,190,230,.18);border-radius:12px;background:rgba(8,31,50,.65)}
.hmp239-approval-row>div:first-child{display:grid;gap:2px}.hmp239-approval-row small,.hmp239-approval-row span{color:#a8bbce;font-size:11px}.hmp239-approval-row>div:last-child{display:flex;flex-wrap:wrap;gap:6px}.hmp239-approval-row button{border:1px solid rgba(126,194,243,.34);border-radius:9px;padding:7px 9px;background:#102d45;color:#eaf6ff;font-weight:700}.hmp239-approval-row .hmp239-reject{border-color:rgba(255,120,120,.35);background:rgba(101,24,34,.55)}
@media(max-width:520px){.hmp239-approval-row{align-items:stretch;flex-direction:column}.hmp239-approval-row>div:last-child button{flex:1}}
