/* Marvis — intranets.ai Chat Widget | chat-widget.css */
#iris-trigger { position:fixed; bottom:24px; right:24px; z-index:99990; width:60px; height:60px; border-radius:50%; background:transparent; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 20px rgba(0,0,0,0.28); transition:transform 0.2s ease,box-shadow 0.2s ease; outline:none; padding:0; }
#iris-trigger:hover { transform:scale(1.08); box-shadow:0 6px 28px rgba(0,0,0,0.38); }
#iris-trigger svg { width:60px; height:60px; display:block; border-radius:50%; }
#iris-window { position:fixed; z-index:99991; background:#fff; border-radius:14px; display:none; flex-direction:column; overflow:hidden; box-shadow:0 10px 44px rgba(0,0,0,0.18); font-family:'Geist',system-ui,-apple-system,sans-serif; font-size:14px; border:0.5px solid rgba(80,70,229,0.18); }
#iris-window.iris-open { display:flex; }
#iris-window.iris-fullscreen { border-radius:0!important; border:none!important; box-shadow:none!important; }
.iris-resize-handle { position:absolute; z-index:10; }
.iris-resize-n  { top:0; left:8px; right:8px; height:8px; cursor:n-resize; }
.iris-resize-s  { bottom:0; left:8px; right:8px; height:8px; cursor:s-resize; }
.iris-resize-e  { right:0; top:8px; bottom:8px; width:8px; cursor:e-resize; }
.iris-resize-w  { left:0; top:8px; bottom:8px; width:8px; cursor:w-resize; }
.iris-resize-ne { top:0; right:0; width:14px; height:14px; cursor:ne-resize; }
.iris-resize-nw { top:0; left:0; width:14px; height:14px; cursor:nw-resize; }
.iris-resize-se { bottom:0; right:0; width:14px; height:14px; cursor:se-resize; }
.iris-resize-sw { bottom:0; left:0; width:14px; height:14px; cursor:sw-resize; }
.iris-resize-se::after { content:''; position:absolute; bottom:4px; right:4px; width:8px; height:8px; border-right:2px solid rgba(80,70,229,0.25); border-bottom:2px solid rgba(80,70,229,0.25); border-radius:1px; }
#iris-header { background:#0A0A0F; padding:13px 14px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; cursor:grab; user-select:none; }
#iris-header:active { cursor:grabbing; }
#iris-header-title { display:flex; align-items:center; gap:11px; pointer-events:none; }
#iris-avatar { width:36px; height:36px; border-radius:50%; background:#0A0A0F; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
#iris-avatar svg { width:36px; height:36px; display:block; }
#iris-name { font-family:'Geist',system-ui,sans-serif; font-weight:700; font-size:13px; color:#fff; letter-spacing:-0.01em; line-height:1.2; }
#iris-status { font-size:11px; color:rgba(255,255,255,0.42); margin-top:2px; display:flex; align-items:center; gap:5px; }
#iris-status-dot { width:6px; height:6px; background:#10B981; border-radius:50%; flex-shrink:0; }
#iris-controls { display:flex; align-items:center; gap:2px; }
#iris-controls button { background:none; border:none; cursor:pointer; padding:5px; color:rgba(255,255,255,0.38); display:flex; align-items:center; border-radius:6px; transition:color 0.15s,background 0.15s; pointer-events:all; }
#iris-controls button:hover { color:rgba(255,255,255,0.9); background:rgba(255,255,255,0.08); }
#iris-controls button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#iris-close:hover { color:#fff!important; background:rgba(255,255,255,0.12)!important; }
#iris-pillar-strip { display:none; }
#iris-messages { flex:1 1 auto; overflow-y:auto; padding:14px 13px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth; background:#fff; }
#iris-messages::-webkit-scrollbar { width:3px; }
#iris-messages::-webkit-scrollbar-track { background:transparent; }
#iris-messages::-webkit-scrollbar-thumb { background:rgba(80,70,229,0.2); border-radius:2px; }
#iris-welcome { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:16px 12px 8px; color:rgba(0,0,0,0.45); font-size:12px; line-height:1.55; }
#iris-welcome strong { color:#0A0A0F; font-size:13px; font-weight:700; }
.iris-bubble { max-width:83%; padding:10px 13px; border-radius:12px; font-size:13px; line-height:1.65; word-break:break-word; }
.iris-bubble-user { align-self:flex-end; background:#5046E5; color:#fff; font-weight:600; border-bottom-right-radius:3px; }
.iris-bubble-agent { align-self:flex-start; background:#F8FAFC; color:#0A0A0F; border:0.5px solid rgba(0,0,0,0.09); border-bottom-left-radius:3px; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.iris-bubble-agent a { color:#5046E5; text-decoration:underline; font-weight:600; }
.iris-bubble-agent a:hover { color:#3d35c4; }
.iris-bubble-error { align-self:flex-start; background:#FFF0F0; color:#CC2200; border:0.5px solid rgba(200,0,0,0.18); border-bottom-left-radius:3px; font-size:12px; }
#iris-typing { display:none; align-self:flex-start; background:#F8FAFC; border:0.5px solid rgba(0,0,0,0.09); box-shadow:0 1px 4px rgba(0,0,0,0.05); border-radius:12px; border-bottom-left-radius:3px; padding:10px 14px; gap:5px; align-items:center; }
#iris-typing.iris-visible { display:flex; }
.iris-dot { width:7px; height:7px; border-radius:50%; background:rgba(80,70,229,0.28); animation:irisBounce 1.2s ease-in-out infinite; }
.iris-dot:nth-child(2) { animation-delay:0.2s; }
.iris-dot:nth-child(3) { animation-delay:0.4s; }
@keyframes irisBounce { 0%,60%,100%{transform:translateY(0);} 30%{transform:translateY(-5px);background:#5046E5;} }
#iris-footer { padding:10px 12px 14px; border-top:0.5px solid rgba(0,0,0,0.07); background:#fff; flex-shrink:0; }
#iris-form { display:flex; gap:10px; align-items:flex-end; }
#iris-input { flex:1 1 auto; background:#F1F5F9; border:1.5px solid rgba(80,70,229,0.15); border-radius:10px; padding:11px 14px; font-size:14px; font-family:'Geist',system-ui,sans-serif; color:#0A0A0F; resize:none; outline:none; line-height:1.5; max-height:100px; overflow-y:auto; transition:border-color 0.18s; }
#iris-input::placeholder { color:rgba(0,0,0,0.35); }
#iris-input:focus { border-color:#5046E5; }
#iris-send { flex-shrink:0; width:48px; height:48px; background:#5046E5; border:none; border-radius:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.18s,transform 0.12s; box-shadow:0 2px 8px rgba(80,70,229,0.4); }
#iris-send:hover { background:#3d35c4; box-shadow:0 4px 14px rgba(80,70,229,0.5); transform:translateY(-1px); }
#iris-send:active { transform:scale(0.94); box-shadow:none; }
#iris-send:disabled { background:rgba(80,70,229,0.3); cursor:not-allowed; box-shadow:none; }
#iris-send svg { width:22px; height:22px; fill:#fff; stroke:none; }
#iris-disclaimer { text-align:center; font-size:10px; color:rgba(0,0,0,0.25); margin-top:8px; letter-spacing:0.02em; }
#iris-window.iris-fullscreen #iris-footer { padding:16px 24px 20px; }
#iris-window.iris-fullscreen #iris-input { font-size:16px; padding:14px 18px; }
#iris-window.iris-fullscreen #iris-send { width:54px; height:54px; border-radius:14px; }
#iris-window.iris-fullscreen #iris-send svg { width:26px; height:26px; }
#iris-window.iris-fullscreen #iris-messages { padding:24px 32px; max-width:860px; margin:0 auto; width:100%; box-sizing:border-box; }
#iris-window.iris-fullscreen .iris-bubble { font-size:15px; max-width:72%; }
@media (max-width:480px) {
    #iris-window { left:0!important; right:0!important; bottom:0!important; top:auto!important; width:100%!important; height:75dvh!important; border-radius:14px 14px 0 0!important; border:none!important; }
    .iris-resize-handle { display:none; }
    #iris-trigger { bottom:16px; right:16px; }
}
