#alfred-launcher{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:9999;background:#08192B;color:#fff;border:1px solid #08192B;border-radius:999px;padding:12px 18px;font:600 16px/1.4 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.2);text-align:center;transition:opacity .25s ease}
#alfred-launcher.alfred-hidden{opacity:0;pointer-events:none}
#alfred-launcher .alfred-launcher-sub{display:block;font-size:12px;font-weight:400;opacity:.85}
#alfred-panel{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9999;width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100dvh - 96px));background:#fff;border:1px solid #ddd;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.2);display:none;flex-direction:column;overflow:hidden;font:16px/1.5 Inter,system-ui,sans-serif;color:#111}
#alfred-panel.open{display:flex}
#alfred-head{background:#08192B;color:#fff;padding:12px 14px;display:flex;gap:8px;align-items:center}
#alfred-head strong{flex:1}
#alfred-head button{background:transparent;border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:8px;padding:4px 10px;font-size:16px;cursor:pointer}
#alfred-msgs{padding:12px;overflow:auto;display:flex;flex-direction:column;gap:10px;flex:1}
#alfred-msgs .msg{padding:10px 12px;border-radius:12px;max-width:92%}
#alfred-msgs .user{align-self:flex-end;background:#08192B;color:#fff}
#alfred-msgs .alfred{align-self:flex-start;background:#f2f2f2}
#alfred-msgs .src{font-size:14px;color:#555;margin-top:6px}
#alfred-msgs a{color:#08192B}
#alfred-starters{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px}
#alfred-starters button{background:#fff;border:1px solid #08192B;color:#08192B;border-radius:999px;padding:8px 12px;font-size:16px;cursor:pointer}
#alfred-starters button,.alfred-chips button{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#alfred-form{display:flex;gap:8px;padding:12px;border-top:1px solid #ddd}
#alfred-input{flex:1;min-width:0;font-size:16px;padding:10px;border:1px solid #999;border-radius:10px}
#alfred-form button{background:#B81C25;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-size:16px;cursor:pointer}
#alfred-note{padding:0 12px 12px;font-size:14px;color:#555}
@media (prefers-reduced-motion:reduce){#alfred-launcher,#alfred-panel{transition:none}}
@media (max-width:640px){
  /* Mobile-fix: compact circular launcher (was a wide pill that covered body
     text at most scroll positions). The sub-line is hidden; the button keeps
     its accessible name via aria-label. */
  #alfred-launcher{right:12px;bottom:calc(16px + env(safe-area-inset-bottom));width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;font-size:0;line-height:0;background:#08192B url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>') center/28px 28px no-repeat}
  #alfred-launcher .alfred-launcher-sub{display:none}
  #alfred-panel{right:12px;bottom:calc(88px + env(safe-area-inset-bottom));max-height:min(560px,calc(100dvh - 100px - env(safe-area-inset-bottom)))}
}

/* Accessible inline video cards. The stylesheet is an asset, not an inline CSP exception. */
.alfred-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#alfred-msgs .alfred-video-list{display:grid;gap:12px;margin-top:12px}
#alfred-msgs .alfred-video-card{border:1px solid #dce2e7;background:#fff;border-radius:12px;padding:10px}
#alfred-msgs .alfred-video-card strong{display:block;margin-bottom:6px;font-size:14px}
#alfred-msgs .alfred-video-card video{display:block;width:100%;aspect-ratio:16/9;background:#0B0F19;border-radius:8px}
#alfred-msgs .alfred-video-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:13px}
#alfred-msgs .alfred-video-note{font-size:13px;color:#555;margin:5px 0}
#alfred-panel :focus-visible,#alfred-launcher:focus-visible{outline:3px solid #C8091F;outline-offset:3px}

#alfred-voice-toggle{background:#08192B;color:#fff;white-space:nowrap}
#alfred-voice-toggle[hidden]{display:none}
#alfred-voice-toggle[disabled]{opacity:.55;cursor:wait}
#alfred-voice-toggle[aria-pressed="true"]{background:#B81C25}

/* Guide layer: graphic with the answer, consent-first video offer, follow-up chips, trial invite. */
#alfred-msgs .alfred-graphic{margin:10px 0 0}
#alfred-msgs .alfred-graphic img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid #dce2e7;background:#fff}
#alfred-msgs .alfred-graphic figcaption{font-size:12px;color:#555;margin-top:4px}
#alfred-msgs .alfred-offer{margin-top:10px;border:1px solid #dce2e7;background:#fff;border-radius:12px;padding:10px}
#alfred-msgs .alfred-offer p{margin:0 0 8px;font-size:14px}
#alfred-msgs .alfred-offer button{background:#08192B;color:#fff;border:0;border-radius:999px;padding:7px 12px;font-size:14px;cursor:pointer;margin-right:6px}
#alfred-msgs .alfred-offer button.alfred-quiet{background:transparent;color:#08192B;border:1px solid #08192B}
#alfred-msgs .alfred-followup{font-weight:600;margin:10px 0 6px}
#alfred-msgs .alfred-chips{display:flex;flex-wrap:wrap;gap:6px}
#alfred-msgs .alfred-chips button{background:#fff;border:1px solid #08192B;color:#08192B;border-radius:999px;padding:6px 10px;font-size:14px;cursor:pointer}
#alfred-msgs .alfred-cta{display:inline-block;background:#B81C25;color:#fff!important;text-decoration:none;border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px}
#alfred-msgs .alfred-plan{margin:12px 0 4px;padding:12px 14px;border:1px solid #d9dee7;border-left:3px solid #0B2854;border-radius:10px;background:#f7f8fb}
#alfred-msgs .alfred-plan p{margin:6px 0}
#alfred-msgs .alfred-plan ul,#alfred-msgs .alfred-plan ol{margin:6px 0 8px;padding-left:20px}
#alfred-msgs .alfred-plan li{margin:3px 0}
#alfred-msgs .alfred-plan-title{font-weight:700;color:#0B2854}
#alfred-msgs .alfred-plan-pick{font-weight:700;font-size:16px;color:#0B2854}
