.rat-chat-launcher{position:fixed;z-index:100;right:22px;bottom:22px;border:1px solid #b1fa5566;background:#16241df5;color:#d4ffad;font:700 13px/1.3 'Segoe UI',Arial,sans-serif;border-radius:30px;padding:13px 20px;box-shadow:0 8px 30px #0008;cursor:pointer}.rat-chat-launcher.has-unread:after{content:'';position:absolute;top:6px;right:7px;width:8px;height:8px;border-radius:50%;background:#b1fa55;box-shadow:0 0 10px #b1fa5570}.rat-chat-launcher.new-message{animation:rat-chat-pulse 1.4s ease-in-out 3}@keyframes rat-chat-pulse{0%,100%{background:#16241d;border-color:#b1fa5566;box-shadow:0 8px 30px #0008}50%{background:#335d22;border-color:#caff91;box-shadow:0 0 25px #b1fa5580}}.rat-chat-launcher:focus-visible,.rat-chat-panel button:focus-visible,.rat-chat-panel a:focus-visible,.rat-chat-panel select:focus-visible,.rat-chat-panel textarea:focus-visible,.rat-chat-panel summary:focus-visible{outline:2px solid #b1fa55;outline-offset:3px}
html.rat-chat-open{overflow:hidden}.rat-chat-panel{position:fixed;inset:0;margin:0;z-index:101;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;padding:0;border:0;border-radius:0;background:linear-gradient(145deg,#101c22,#0a1418);color:#e5edf2;overflow:hidden;font:14px/1.55 'Segoe UI',Arial,sans-serif}.rat-chat-panel::backdrop{background:#0b1419}.rat-chat-panel[open]{display:flex;flex-direction:column}.rat-chat-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px max(22px,calc((100vw - 1080px)/2));border-bottom:1px solid #ffffff16;background:#121f26;flex-shrink:0}.rat-chat-panel h2{font-size:21px;line-height:1.3;margin:0;letter-spacing:-.3px}.rat-chat-panel header button{background:none;border:1px solid #ffffff20;border-radius:8px;color:#bdcdd6;font-size:25px;min-width:40px;min-height:40px;cursor:pointer}.rat-chat-content{overflow:auto;flex:1;min-height:0;padding:20px max(22px,calc((100vw - 1080px)/2));overscroll-behavior:contain}.rat-chat-panel,.rat-chat-panel *{scrollbar-width:none}.rat-chat-panel::-webkit-scrollbar,.rat-chat-panel *::-webkit-scrollbar{display:none}.rat-chat-panel #rat-chat-status{color:#d0dfc5;font-size:12px;margin:0 0 15px}.rat-chat-panel #rat-chat-messages{list-style:none;padding:0;margin:0}.rat-chat-message{padding:15px 0;border-bottom:1px solid #ffffff0b;overflow-wrap:anywhere}.rat-chat-author{display:flex;align-items:center;gap:12px}.rat-chat-author strong{color:#c3efab;font-size:13px}.rat-chat-author time{font-size:10px;color:#7e96a3;white-space:nowrap}.rat-chat-message p{margin:7px 0;color:#e3ebef;white-space:pre-wrap;font-size:14px;line-height:1.65}.rat-chat-message-action{background:none;border:0;color:#9bacb7;font-size:10px;padding:2px 0;cursor:pointer;opacity:0}.rat-chat-message:hover .rat-chat-message-action,.rat-chat-message:focus-within .rat-chat-message-action{opacity:1}.rat-chat-mention{color:#b1fa55;font-weight:700;text-decoration:none}.rat-chat-panel #rat-chat-form{position:relative;box-sizing:border-box;padding:15px 22px 20px;width:min(1124px,100%);margin:0 auto;border-top:1px solid #ffffff1d;flex-shrink:0}.rat-chat-tools{display:flex;align-items:center;gap:15px;margin-bottom:10px}.rat-chat-panel select,.rat-chat-panel textarea{box-sizing:border-box;background:#101e25;border:1px solid #ffffff26;border-radius:8px;color:#e4edf2;padding:10px 12px;font:14px 'Segoe UI',Arial,sans-serif}.rat-chat-tools>select{width:200px;max-width:65%}.rat-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px}.rat-chat-panel textarea{width:100%;resize:none;min-height:62px;max-height:100px}.rat-chat-compose>button,.rat-chat-login-link{background:#b1fa55;color:#13200e;border:1px solid #c7ff8c;border-radius:8px;padding:12px 20px;font-weight:750;font-size:13px;cursor:pointer;text-decoration:none}.rat-chat-compose>button:disabled{opacity:.5;cursor:wait}.rat-chat-emote{display:inline-block;vertical-align:middle;width:32px;height:32px;object-fit:contain}.rat-chat-empty{color:#7f96a2;padding:25px 0}.rat-chat-sr{position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.rat-chat-panel [hidden]{display:none!important}.rat-chat-panel #rat-chat-login a{display:inline-block;margin-top:12px}
#rat-chat-emote-picker{position:relative}#rat-chat-emote-picker summary{cursor:pointer;font-size:13px;color:#b1fa55;list-style:none;padding:8px 0}#rat-chat-emote-picker summary::-webkit-details-marker{display:none}.rat-chat-emote-popover{position:absolute;z-index:1;bottom:calc(100% + 12px);right:0;width:min(360px,calc(100vw - 44px));padding:14px;box-sizing:border-box;border:1px solid #b1fa5544;border-radius:12px;background:#15242c;box-shadow:0 12px 40px #0007}#rat-chat-emote-source{width:100%;margin-bottom:12px}.rat-chat-emotes{display:flex;flex-wrap:wrap;gap:7px;max-height:min(230px,40dvh);overflow:auto}.rat-chat-emotes button{background:#24372c;border:1px solid #ffffff20;border-radius:7px;cursor:pointer;padding:7px}.rat-chat-emotes img{display:block;width:30px;height:30px;object-fit:contain}
@media(max-width:600px){.rat-chat-launcher{right:14px;bottom:14px;padding:11px 16px}.rat-chat-panel header{padding:13px 16px}.rat-chat-panel h2{font-size:18px}.rat-chat-content{padding:12px 16px}.rat-chat-panel #rat-chat-form{padding:12px 16px max(14px,env(safe-area-inset-bottom))}.rat-chat-panel select,.rat-chat-panel textarea{font-size:16px}.rat-chat-compose{gap:8px}.rat-chat-compose>button{padding:10px 12px}.rat-chat-emote-popover{position:fixed;bottom:175px;left:16px;right:16px;width:auto}.rat-chat-message-action{opacity:1}}@media(prefers-reduced-motion:reduce){.rat-chat-launcher.new-message{animation:none;outline:2px solid #b1fa55}}
/* Compact composer: message, emote icon and send. */
.rat-chat-compose{display:flex;align-items:stretch;gap:10px}.rat-chat-compose textarea{flex:1;min-width:0;width:auto}.rat-chat-compose>button{flex:0 0 auto}.rat-chat-compose #rat-chat-emote-picker{flex:0 0 auto;align-self:center}.rat-chat-compose #rat-chat-emote-picker summary{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #ffffff20;border-radius:8px;font-size:25px;color:#bed5c2}.rat-chat-compose #rat-chat-emote-picker summary:hover,.rat-chat-compose #rat-chat-emote-picker[open] summary{color:#b1fa55;border-color:#b1fa5566;background:#b1fa550b}.rat-chat-mention-chip{margin:0 0 10px;padding:5px 9px;border:1px solid #b1fa5540;border-radius:6px;background:#b1fa5510;color:#b1fa55;font-size:12px;cursor:pointer}@media(max-width:600px){.rat-chat-compose{gap:7px}.rat-chat-compose #rat-chat-emote-picker{position:static}.rat-chat-compose .rat-chat-emote-popover{position:absolute;bottom:calc(100% + 8px);left:16px;right:16px;width:auto}.rat-chat-compose #rat-chat-emote-picker summary{width:38px;height:42px}.rat-chat-compose>button{padding:10px;font-size:12px}}
