.intel-launcher { position:fixed; right:25px; bottom:24px; z-index:61; width:56px; height:56px; border:1px solid #2639ad; border-radius:50%; color:#fff; background:var(--brand); box-shadow:0 5px 20px #1125a932; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.intel-launcher:hover { background:#0a1b86; }
.intel-launcher svg { width:24px; height:24px; }
.intel-launcher-label { position:absolute; right:66px; padding:7px 11px; border-radius:5px; white-space:nowrap; background:#202a3b; color:#fff; font-size:12px; opacity:0; visibility:hidden; transition:opacity .15s; pointer-events:none; }
.intel-launcher:hover .intel-launcher-label,.intel-launcher:focus-visible .intel-launcher-label { opacity:1; visibility:visible; }
.intel-call-dot { position:absolute; right:1px; top:1px; width:12px; height:12px; border:2px solid white; background:#29b484; border-radius:50%; }
.intel-panel { position:fixed; z-index:60; right:24px; bottom:92px; width:450px; max-width:calc(100vw - 32px); height:min(710px,calc(100dvh - 116px)); min-height:300px; display:flex; flex-direction:column; border:1px solid #d6deea; border-radius:8px; background:#fff; box-shadow:0 16px 65px #18274229,0 2px 8px #1827420a; overflow:hidden; font-size:13px; }
.intel-panel.is-expanded { width:760px; }
.intel-header { display:flex; justify-content:space-between; align-items:center; padding:16px 16px 15px; border-bottom:1px solid var(--line); gap:10px; flex-shrink:0; }
.intel-identity { display:flex; gap:10px; align-items:center; min-width:0; }
.intel-mark { width:34px; height:34px; background:var(--brand); color:#fff; display:grid; place-items:center; font-size:21px; font-weight:800; border-radius:5px; flex-shrink:0; }
.intel-header h2 { font-size:15px; line-height:1.3; margin:0; }
.intel-header p { font-size:10px; color:var(--muted); margin:2px 0 0; }
.intel-header-actions { display:flex; gap:3px; }
.intel-header-actions .icon-button { background:transparent; border:0; box-shadow:none; width:30px; min-height:30px; }
.intel-modebar { padding:11px 16px; display:flex; justify-content:space-between; align-items:center; gap:10px; border-bottom:1px solid #eef0f5; flex-shrink:0; }
.intel-modebar .segmented { margin:0; }
.intel-modebar .segmented button { display:flex; gap:6px; align-items:center; min-height:32px; padding:5px 10px; font-size:11px; }
.intel-modebar svg { width:14px; height:14px; }
.intel-context { font-size:10px; color:var(--muted); text-align:right; }
.intel-messages { flex:1; min-height:0; overflow-y:auto; padding:20px 18px; overscroll-behavior:contain; scrollbar-width:thin; }
.intel-welcome { min-height:100%; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; padding:8px 4px; }
.intel-welcome-icon { display:grid; place-items:center; width:38px; height:38px; background:#edf0fc; color:var(--brand); border-radius:6px; margin:0 0 18px; }
.intel-welcome-icon svg { width:21px; height:21px; }
.intel-eyebrow { font-size:9px; color:var(--brand); font-weight:650; }
.intel-welcome h3 { font-size:20px; font-weight:650; margin:7px 0; line-height:1.25; }
.intel-welcome p { color:var(--muted); font-size:11px; margin:0 0 22px; }
.intel-suggestions { display:flex; flex-direction:column; gap:0; width:100%; }
.intel-suggestions button { background:transparent; border:0; border-top:1px solid #e9edf4; color:#35435a; padding:12px 3px; text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.intel-suggestions button:hover { color:var(--brand); background:#f6f8fd; }
.intel-message { margin:0 0 21px; min-width:0; }
.intel-message-author { display:block; font-size:10px; font-weight:700; color:var(--brand); margin:0 0 6px; }
.intel-message-body { white-space:pre-wrap; overflow-wrap:anywhere; color:#344056; line-height:1.7; font-size:13px; }
.intel-user { margin-left:32px; padding:11px 13px; border-radius:6px; background:#f0f3fa; }
.intel-user .intel-message-author { color:#697386; }
.intel-user .intel-message-body { color:#202a3b; }
.intel-assistant { margin-right:8px; }
.intel-assistant.is-pending .intel-message-body:empty::after { content:'Consultando fuentes…'; color:var(--muted); }
.intel-sources { display:flex; gap:5px; flex-wrap:wrap; margin:11px 0 0; }
.intel-sources a { color:#4c5c76; border-bottom:1px solid #cbd5e5; font-size:10px; text-decoration:none; padding:2px 0; line-height:1.5; max-width:100%; overflow-wrap:anywhere; margin-right:6px; }
.intel-sources a:hover { color:var(--brand); border-color:var(--brand); }
.intel-notice { padding:9px 16px; font-size:11px; color:#5c6a80; background:#f5f7fc; border-top:1px solid var(--line); flex-shrink:0; }
.intel-notice.is-error { color:#963b42; background:#fff4f4; }
.intel-composer { margin:0; border-top:1px solid var(--line); display:flex; align-items:flex-end; gap:8px; padding:12px 14px 8px; background:#fff; flex-shrink:0; }
.intel-composer textarea { resize:none; flex:1; width:100%; min-width:0; padding:7px 3px; border:0; box-shadow:none; border-radius:3px; color:var(--ink); background:transparent; font:inherit; font-size:13px; line-height:1.5; min-height:51px; max-height:110px; }
.intel-composer textarea::placeholder { color:#818b9a; }
.intel-send { display:grid; place-items:center; padding:0; width:34px; height:34px; min-width:34px; border:0; border-radius:5px; background:var(--brand); color:#fff; cursor:pointer; margin-bottom:4px; }
.intel-send svg { width:18px; height:18px; }
.intel-footer { padding:5px 16px 11px; display:flex; align-items:center; gap:6px; font-size:9px; color:#7b8594; flex-shrink:0; }
.intel-footer svg { width:11px; height:11px; }
.intel-voice { padding:14px 16px 12px; border-top:1px solid var(--line); background:#f8fafc; flex-shrink:0; }
.intel-voice-state { display:flex; align-items:center; gap:11px; margin-bottom:14px; }
.intel-voice-state strong { display:block; font-size:12px; font-weight:600; }
.intel-voice-state small { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
#intelTimer { font-variant-numeric:tabular-nums; color:var(--muted); margin-left:auto; font-size:12px; }
.intel-wave { display:flex; justify-content:center; gap:3px; align-items:center; width:33px; height:30px; color:var(--brand); }
.intel-wave b { height:7px; width:3px; background:currentColor; border-radius:2px; }
.intel-wave b:nth-child(2),.intel-wave b:nth-child(4) { height:14px; }
.intel-wave b:nth-child(3) { height:23px; }
.is-live .intel-wave b { animation:intel-wave .9s ease-in-out infinite alternate; }
.is-live .intel-wave b:nth-child(2) { animation-delay:.2s; }
.is-live .intel-wave b:nth-child(3) { animation-delay:.4s; }
.is-live .intel-wave b:nth-child(4) { animation-delay:.1s; }
.intel-voice-controls { display:flex; align-items:center; justify-content:center; gap:12px; }
.intel-voice-controls .primary-button { width:100%; min-height:40px; }
.intel-end-call { display:flex; align-items:center; justify-content:center; gap:8px; background:#a63845; border:1px solid #a63845; color:#fff; min-height:36px; padding:6px 13px; border-radius:5px; font-size:11px; cursor:pointer; }
.intel-end-call svg { width:17px; height:17px; }
.intel-voice-controls [aria-pressed="true"] { color:#a63845; background:#fff0f1; }
.intel-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#intelAssistant button:disabled { opacity:.5; cursor:wait; }
@keyframes intel-wave { from { transform:scaleY(.5); } to { transform:scaleY(1); } }
@media (prefers-reduced-motion:reduce) { .is-live .intel-wave b { animation:none; } }
@media (max-width:600px) {
  .intel-launcher { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); width:52px; height:52px; }
  .intel-panel,.intel-panel.is-expanded { inset:calc(8px + var(--intel-viewport-top,0px)) 8px auto; bottom:auto; width:calc(100vw - 16px); max-width:none; min-height:0; height:calc(var(--intel-viewport-height,100dvh) - 16px - env(safe-area-inset-bottom)); border-radius:7px; z-index:70; }
  .intel-header { padding:13px 12px; }
  .intel-modebar { padding:10px 12px; }
  .intel-messages { padding:17px 14px; }
  .intel-header-actions { gap:1px; }
  #intelExpand { display:none; }
  .intel-composer textarea { font-size:16px; }
  .intel-welcome h3 { font-size:21px; }
}
