/* IronRanger assistant widget */
.irc-launch{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:10px;background:#16161a;color:#fff;border:1px solid #3a3a40;border-radius:999px;padding:7px 18px 7px 7px;cursor:pointer;box-shadow:0 12px 34px rgba(0,0,0,.45);font:600 15px/1.2 "Inter",system-ui,sans-serif;min-height:56px}
.irc-launch img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:2px solid #f05a1a}
.irc-launch small{display:block;font-weight:500;font-size:12px;color:#b9b7b1}
.irc-launch:hover{border-color:#f05a1a}
.irc-launch .pulse{position:absolute;left:38px;top:8px;width:11px;height:11px;border-radius:50%;background:#3fb27f;border:2px solid #16161a}
.irc-panel{position:fixed;right:20px;bottom:20px;z-index:70;width:400px;max-width:calc(100vw - 24px);height:min(640px,calc(100vh - 40px));background:#111113;border:1px solid #2f2f35;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.6);display:none;flex-direction:column;overflow:hidden;font:16px/1.55 "Inter",system-ui,sans-serif;color:#f2f1ed}
.irc-panel.open{display:flex}
.irc-head{display:flex;align-items:center;gap:12px;padding:14px 14px 12px 16px;background:#18181c;border-bottom:1px solid #2a2a30}
.irc-head img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:2px solid #f05a1a;flex:0 0 auto}
.irc-head b{display:block;font-size:16px}
.irc-head small{display:block;font-size:12.5px;color:#aaa8a2;line-height:1.35}
.irc-close{margin-left:auto;background:none;border:0;color:#cfcdc7;font-size:26px;width:44px;height:44px;border-radius:10px;cursor:pointer;flex:0 0 auto}
.irc-close:hover{background:#26262b}
.irc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.irc-msg{max-width:88%;padding:11px 14px;border-radius:16px;white-space:normal;word-wrap:break-word}
.irc-msg p{margin:0 0 .55em}.irc-msg p:last-child{margin:0}
.irc-msg ul,.irc-msg ol{margin:.3em 0 .5em;padding-left:1.2em}
.irc-msg li{margin:.2em 0}
.irc-msg a{color:#ff9a66;font-weight:600}
.irc-bot{background:#1f1f24;border:1px solid #2c2c33;border-bottom-left-radius:5px;align-self:flex-start}
.irc-user{background:#f05a1a;color:#fff;border-bottom-right-radius:5px;align-self:flex-end}
.irc-typing{display:inline-flex;gap:4px}
.irc-typing i{width:7px;height:7px;border-radius:50%;background:#8a8882;animation:ircb 1s infinite}
.irc-typing i:nth-child(2){animation-delay:.15s}.irc-typing i:nth-child(3){animation-delay:.3s}
@keyframes ircb{0%,80%,100%{opacity:.3}40%{opacity:1}}
.irc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}
.irc-chips button{background:#1b1b20;border:1px solid #3a3a42;color:#e9e7e2;border-radius:999px;padding:9px 13px;font:500 14px/1.2 "Inter",system-ui,sans-serif;cursor:pointer;min-height:40px}
.irc-chips button:hover{border-color:#f05a1a;color:#fff}
.irc-form{display:flex;gap:8px;padding:12px;border-top:1px solid #2a2a30;background:#151518}
.irc-form textarea{flex:1;resize:none;background:#0c0c0e;color:#f2f1ed;border:1px solid #34343b;border-radius:12px;padding:12px 13px;font:16px/1.4 "Inter",system-ui,sans-serif;max-height:120px;min-height:48px}
.irc-form textarea:focus{outline:2px solid #f05a1a;border-color:transparent}
.irc-send{background:#f05a1a;border:0;color:#fff;border-radius:12px;width:52px;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}
.irc-send:disabled{opacity:.5;cursor:default}
.irc-send svg{width:22px;height:22px}
.irc-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 14px 10px;background:#151518;font-size:12px;color:#8f8d87}
.irc-foot button{background:none;border:0;color:#ff9a66;font:600 12.5px "Inter",system-ui,sans-serif;cursor:pointer;padding:6px 0;text-decoration:underline}
.irc-human{background:#1a1a1f;border:1px solid #33333a;border-radius:14px;padding:12px;margin:0 16px 10px;font-size:14px}
.irc-human input{width:100%;margin:8px 0;background:#0c0c0e;color:#f2f1ed;border:1px solid #34343b;border-radius:10px;padding:11px 12px;font:16px "Inter",system-ui,sans-serif}
.irc-human .row{display:flex;gap:8px}
.irc-human button{flex:1;border-radius:10px;padding:10px;font:600 14px "Inter",system-ui,sans-serif;cursor:pointer;border:0;background:#f05a1a;color:#fff;min-height:42px}
.irc-human button.alt{background:#26262b;color:#ddd}
@media (max-width:680px){
  .irc-launch{bottom:84px;right:12px;padding-right:14px}
  .irc-launch .lbl small{display:none}
  .irc-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100%;max-height:100dvh;border-radius:0;border:0}
}
