/* V38 scoped assistant visuals; no existing homepage/portfolio CSS overwritten. */
.epa-v38-overlay{z-index:11100!important;align-items:center!important;justify-content:center!important;padding:12px!important;overflow-y:auto!important}
.epa-v38-dialog{width:min(540px,100%);max-height:min(92dvh,900px);overflow:auto;background:#fff;border-radius:17px;box-shadow:0 18px 46px #07234355}
.epa-v38-panel{font:inherit;display:flex;flex-direction:column;gap:11px;padding:14px;color:#183651;background:#fff;border-radius:16px;max-width:100%;box-sizing:border-box}
.epa-v38-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.epa-v38-head strong{font-size:19px;display:block;color:#0b2e54}
.epa-v38-head small{font-size:12px;color:#62798f;display:block;margin-top:4px;line-height:1.35}
.epa-v38-close{border:0;background:#ebf2f8;color:#153b62;border-radius:10px;min-width:35px;height:35px;font-size:23px;cursor:pointer}
.epa-v38-quick{display:flex;gap:6px;flex-wrap:wrap}
.epa-v38-quick button{background:#eef4fa;border:1px solid #d7e3ee;color:#18456b;border-radius:13px;padding:8px 10px;font-size:12px;cursor:pointer}
.epa-v38-history{min-height:120px;max-height:200px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px;background:#f4f8fc;border-radius:12px}
.epa-v38-bubble{padding:10px 12px;font-size:13px;line-height:1.45;border-radius:13px;max-width:96%;white-space:pre-wrap;overflow-wrap:anywhere}
.epa-v38-bubble.assistant{background:#fff;border:1px solid #deebf5;align-self:flex-start}.epa-v38-bubble.user{background:#0e5288;color:white;align-self:flex-end}
.epa-v38-form{display:flex;flex-direction:column;gap:8px;margin:0!important}.epa-v38-form>label:first-child{font-size:12px;font-weight:700}
.epa-v38-compose{display:flex;align-items:stretch;gap:8px;max-width:100%}.epa-v38-compose textarea{flex:1;min-width:0;min-height:73px;resize:vertical;border:1px solid #c7d9e7;border-radius:10px;padding:10px 11px;font:inherit;font-size:14px;line-height:1.4;color:#173e5b;background:#fff}
.epa-v38-compose button{border:0;background:#e5f2ff;color:#104b83;border-radius:10px;padding:7px 10px;min-width:50px;font-size:21px;cursor:pointer}
.epa-v38-status{min-height:20px;font-size:12px;color:#526c85}.epa-v38-status[data-kind=error]{color:#b12424}.epa-v38-status[data-kind=success]{color:#16724c}.epa-v38-status[data-kind=listening]{color:#ad2929}
.epa-v38-ai{font-size:12px;display:flex;gap:6px;align-items:center}.epa-v38-ai input{accent-color:#0d5689}.epa-v38-note{font-size:11px;color:#697f92;line-height:1.4}
.epa-v38-submit{align-self:stretch;border:0;background:#0a477c;color:#fff;border-radius:11px;padding:12px 14px;font-weight:700;cursor:pointer}.epa-v38-submit:disabled{opacity:.6}
.epa-v38-listening{background:#b32d31!important;color:white!important;animation:epa-v38-pulse 1s infinite}.epa-v38-inline-mic{font-size:14px!important}
@keyframes epa-v38-pulse{50%{box-shadow:0 0 0 6px #b32d3120}}
.epa-v38-page{padding:8px;max-width:780px;margin:0 auto;border:1px solid #e2ebf2;border-radius:14px;background:white}
.epa-v38-toast{position:fixed;bottom:80px;left:20px;right:20px;z-index:11200;margin:auto;max-width:520px;padding:12px 15px;border-radius:10px;background:#0b2d52;color:white;font-size:13px}
@media(max-width:540px){.epa-v38-dialog{max-height:94dvh}.epa-v38-history{max-height:165px}.epa-v38-panel{padding:12px}.epa-v38-quick button{font-size:11px;padding:7px 9px}}

.epa-v38-backup{align-self:flex-start;background:transparent;border:0;text-decoration:underline;color:#195586;font-size:11px;cursor:pointer;padding:2px 0;text-align:left}.epa-v38-page .epa-v38-close{display:none}

/* V70: Hidden workspace content must not hide the persistent microphone.
   The SPA preserves the last page markup when it returns to Home. */
body:has(#epaWorkspace:not([hidden]) .epa-v38-page) #epaZetaFloat,
body:has(#epaWorkspace:not([hidden]) #epaDmShell.epa-dm-open) #epaZetaFloat{display:none!important}
