.chat-toggle{position:relative;min-width:40px;min-height:40px;display:grid;place-items:center;padding:9px!important}.chat-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}.chat-toggle[hidden]{display:none}.chat-unread{position:absolute;right:-5px;top:-6px;min-width:17px;padding:2px 4px;border-radius:12px;background:#bb5440;border:1px solid #e9c18d;color:#fff1d6;font:700 10px/1.2 Georgia,serif}.chat-unread[hidden]{display:none}
.chat-panel{position:fixed;right:18px;top:84px;z-index:96;width:min(345px,calc(100vw - 28px));height:min(465px,calc(100dvh - 108px));box-sizing:border-box;display:flex;flex-direction:column;background:linear-gradient(145deg,#19372fee,#10271ff5);border:1px solid #cfb97a66;border-radius:12px;box-shadow:0 14px 55px #061b1670;backdrop-filter:blur(10px);color:#e7dbbb;overflow:hidden;touch-action:pan-y}.chat-panel[hidden]{display:none}.chat-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 16px 10px;gap:16px}.chat-heading h2{font:700 15px Georgia,serif;letter-spacing:.07em;margin:0;color:#ecdaaa}.chat-heading button{border:0;background:transparent;padding:0 3px;color:#d5c38c;font:26px/1 Georgia,serif;cursor:pointer;min-width:30px;min-height:30px}
.chat-channel{margin:0 16px;min-height:38px;border:1px solid #d0b46d44;background:#0d251ed4;color:#ead9b1;border-radius:6px;padding:8px 10px;font:700 11px Georgia,serif;letter-spacing:.025em;width:calc(100% - 32px)}.chat-status{margin:8px 16px 10px;font:11px/1.4 Georgia,serif;color:#acbeab;min-height:15px}.chat-panel.is-private .chat-status{color:#dfc58d}.chat-messages{list-style:none;margin:0;padding:4px 16px 12px;overflow:auto;flex:1;min-height:60px;scrollbar-width:thin;scrollbar-color:#a28e5b55 transparent;overscroll-behavior:contain}.chat-empty{font:italic 13px/1.7 Georgia,serif;color:#aab7a1;text-align:center;margin:40px 12px}.chat-message{margin:7px 0 12px;border-left:2px solid color-mix(in srgb,var(--team) 85%,#d5c899);padding-left:10px}.chat-message>div{display:flex;gap:10px;align-items:center;justify-content:space-between}.chat-message strong{font:700 11px/1.4 Georgia,serif;letter-spacing:.04em;color:#e3d3a8}.chat-message time{font:10px Georgia,serif;color:#8fa795;font-variant-numeric:tabular-nums}.chat-message p{font:14px/1.55 Georgia,serif;margin:4px 0 0;color:#e3dfcd;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.is-own{background:#ffffff04;padding:8px 9px;border-radius:0 5px 5px 0}
.chat-form{margin:0;padding:12px 16px 13px;border-top:1px solid #c9b67b22;background:#0e241c66}.chat-form textarea{display:block;width:100%;box-sizing:border-box;resize:none;min-height:58px;max-height:88px;background:#0a201ab3;color:#f0e3c4;border:1px solid #c7ae6d55;border-radius:6px;padding:9px 10px;font:14px/1.4 Georgia,serif;touch-action:manipulation}.chat-form textarea::placeholder{color:#9fae96}.chat-form textarea:focus-visible,.chat-channel:focus-visible{outline:2px solid #cdb36c;outline-offset:2px}.chat-send-row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:12px}.chat-send-row small{font:10px Georgia,serif;color:#99ac95}.chat-send-row button{min-height:35px;min-width:90px;padding:8px 12px;font:700 11px Georgia,serif;letter-spacing:.04em}.chat-error{font:12px/1.5 Georgia,serif;color:#f1b39d;margin:8px 0 0}.chat-error:empty{display:none}.room-open-chat{display:block;margin:12px auto 0;min-height:40px;font:700 11px Georgia,serif;letter-spacing:.05em}.room-open-chat[hidden]{display:none}
@media(max-width:600px){.chat-panel{right:10px;top:72px;width:calc(100vw - 20px);height:min(460px,calc(100dvh - 92px))}.chat-heading{padding-top:10px;padding-bottom:6px}.chat-toggle{min-width:35px;min-height:35px;padding:7px!important}}
@media(max-height:500px){.chat-panel{top:62px;right:10px;height:calc(100dvh - 74px);width:min(360px,calc(100vw - 20px))}.chat-status{margin-top:5px;margin-bottom:5px}.chat-heading{padding-top:8px;padding-bottom:4px}.chat-form{padding-top:8px;padding-bottom:8px}.chat-form textarea{min-height:42px;height:42px}.chat-message{margin:4px 0 8px}}
