.community-chat{position:fixed;right:24px;bottom:24px;z-index:80;font-size:14px;line-height:1.5;font-family:inherit;color:#394044}
.community-chat button,.community-chat select,.community-chat textarea{font:inherit}
.chat-toggle{display:flex;align-items:center;gap:9px;padding:12px 18px;background:#943f35;color:white;border:1px solid #80372e;border-radius:24px;box-shadow:0 5px 22px #2c25232b;cursor:pointer}
.chat-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
.chat-new{background:#fff0cb;color:#87382e;border-radius:12px;padding:0 6px;font-size:11px;font-weight:700}
.chat-panel{width:420px;height:610px;max-height:calc(100dvh - 106px);margin-bottom:12px;display:flex;flex-direction:column;background:#fbfaf7;border:1px solid #d5cbc0;border-radius:10px;box-shadow:0 12px 48px #26211e38;overflow:hidden}
.community-chat [hidden]{display:none!important}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#353b3e;color:#f5eee2;padding:13px 16px}
.chat-heading h2{margin:0;font-size:16px;color:inherit}.chat-heading small{font-size:10px;letter-spacing:1.5px;color:#cab88d}
.chat-heading button{border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer;padding:0 4px;line-height:1}
.chat-account{display:flex;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid #e3ddd5}
.chat-character{min-width:0;flex:1;width:100%;padding:7px;border:1px solid #d5cec4;background:white;border-radius:4px;color:#454545}
.chat-button{border:1px solid #d5cec4;border-radius:4px;background:#fff;color:#6d5841;padding:5px 9px;cursor:pointer;white-space:nowrap}
.chat-button:hover{background:#f0ebe3}.chat-button:disabled{opacity:.5;cursor:default}
.chat-status{padding:7px 12px;color:#796a58;font-size:12px;border-bottom:1px solid #e8e2da;overflow-wrap:anywhere}
.chat-status a{color:#963f35;text-decoration:underline}.chat-status[data-error=true]{color:#a13f33;background:#fff2ed}
.chat-log{flex:1;min-height:80px;overflow:auto;overscroll-behavior:contain;padding:12px;scrollbar-width:thin;display:flex;flex-direction:column;gap:10px}
.chat-empty{margin:auto;text-align:center;color:#91887a;padding:30px 12px}
.chat-message{border-bottom:1px solid #ece6dd;padding-bottom:9px;overflow-wrap:anywhere}
.chat-byline{display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;font-size:12px}
.chat-guild{color:#8d7241;font-weight:600}.chat-name{font-weight:700;color:#4c5559}
.chat-byline time{margin-left:auto;font-size:10px;color:#9c9387}.chat-message p{margin:4px 0 0;white-space:pre-wrap;line-height:1.6;color:#424549}
.chat-delete{border:0;background:transparent;color:#a34b3d;font-size:10px;padding:0 2px;cursor:pointer}
.chat-compose{padding:10px 12px 12px;border-top:1px solid #ddd4c8;background:#f3efe8}
.chat-compose textarea{display:block;box-sizing:border-box;resize:none;width:100%;min-height:64px;max-height:120px;border:1px solid #d4cabc;border-radius:5px;padding:8px;background:white;color:#394044}
.chat-compose-row{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:7px;color:#8b8173;font-size:11px}
.chat-send{border:1px solid #87392f;background:#a5483c;color:#fff;border-radius:4px;padding:6px 18px;cursor:pointer}.chat-send:disabled{opacity:.5;cursor:default}
.chat-roster{flex:1;min-height:0;overflow:auto;padding:10px 12px;background:#f8f5ef}
.chat-roster-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;padding-bottom:9px;font-size:12px;color:#7d715f}
.chat-roster-heading select{max-width:125px;padding:4px;border:1px solid #d5cec4;background:white}
.chat-person{padding:9px 0;border-bottom:1px solid #e5ddd2}.chat-person-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:12px}
.chat-person-status{font-size:11px;color:#a34b3d;margin:3px 0}.chat-person-actions{display:flex;gap:5px;margin-top:5px}.chat-person-actions button{font-size:11px;padding:3px 9px}
.chat-admin-tag{font-size:10px;background:#eee2c6;border:1px solid #cdbc92;color:#705a30;border-radius:3px;padding:2px 5px}
.chat-ready .back-to-top{right:185px;bottom:30px}
.community-chat :focus-visible{outline:2px solid #ac8244;outline-offset:2px}
@media(max-width:520px){.community-chat{right:12px;bottom:12px}.chat-panel{width:calc(100vw - 24px);height:65dvh;max-height:calc(100dvh - 85px)}.chat-ready .back-to-top{right:165px;bottom:18px}.chat-toggle{padding:10px 15px}.chat-account{flex-wrap:nowrap}.chat-character{flex-basis:0;width:0}}
