.town-chat[aria-labelledby]{z-index:1050}
.town-chat>header{align-self:stretch;margin:0;min-width:100%}
.town-chat[hidden],.town-chat [hidden]{display:none!important}
.town-chat{position:fixed;z-index:950;inset:clamp(4rem,10vh,6rem) .75rem .75rem auto;display:flex;flex-direction:column;width:min(23rem,calc(100vw - 1.5rem));box-sizing:border-box;border:2px solid #485c50;border-radius:9px;background:#fff3d7;color:#293e36;box-shadow:3px 5px #293c394f;overflow:hidden;font:14px/1.35 "Segoe UI",system-ui,sans-serif}
.town-chat *{box-sizing:border-box}.town-chat>header{position:static;display:flex;flex:none;align-items:center;justify-content:space-between;padding:.55rem .85rem;background:#36554b;color:#fff1d8;pointer-events:auto;height:auto;width:auto}
.town-chat h2{margin:0;font:600 1.3rem Georgia,serif;color:inherit}.town-chat button{pointer-events:auto;cursor:pointer;color:#31493c;background:#f9ebc8;border:1px solid #87957e;border-radius:4px;padding:.3rem .55rem;font:inherit}.town-chat [data-close]{background:transparent;color:#fff1d8;border:0;font-size:1.6rem;line-height:1}
.chat-who,.chat-compose footer,.chat-modes,.chat-by,.chat-quote{display:flex;align-items:center;gap:.45rem}.chat-who,.chat-compose footer,.chat-quote{justify-content:space-between}.chat-who{padding:.5rem .75rem;background:#eee1c0;border-bottom:1px solid #cec4a8}
.chat-identity{padding:.6rem .75rem;background:#f5e8c8;overflow:auto;max-height:47%}.chat-account label,.chat-compose>label{display:block;font-weight:600;font-size:.84rem}.chat-account label{margin:.45rem 0}.town-chat input,.town-chat textarea{display:block;width:100%;margin:.2rem 0;border:1px solid #889786;border-radius:4px;background:#fffaf0;color:#23382e;font:inherit;padding:.4rem}.chat-modes [aria-pressed=true],.town-chat button[type=submit]{background:#34584c;color:#fff4da}.chat-account>button{margin-right:.4rem}
.chat-stream{flex:1;min-height:3rem;overflow:auto;overscroll-behavior:contain;padding:.25rem .75rem .5rem;scrollbar-width:thin}.chat-msg{display:flex;align-items:flex-start;gap:.5rem;padding:.55rem 0;border-bottom:1px solid #e2d6b8}.chat-msg>div{flex:1;min-width:0}.chat-msg>i{display:grid;place-items:center;flex:none;width:2rem;height:2rem;overflow:hidden;border-radius:6px;background:#c8d5bf;font:600 1rem Georgia}.chat-msg img{width:100%;height:100%;object-fit:cover}.chat-by strong,.chat-who span{overflow-wrap:anywhere}.chat-by small,.chat-by time{font-size:.71rem;color:#52665a}.chat-by time{margin-left:auto}.chat-msg p{margin:.16rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-msg button{border:0;background:none;color:#476a59;font-size:.8rem;padding:.1rem 0}
.chat-msg blockquote,.chat-quote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-msg blockquote{margin:.2rem 0;padding:0 .4rem;color:#59665b;border-left:2px solid #baa276;font-size:.83rem}.chat-empty{color:#566759}.chat-compose{border-top:1px solid #c7bea2;padding:.55rem .75rem .7rem;flex:none}.chat-compose textarea{resize:vertical;max-height:6rem}.chat-compose footer{position:static;font:inherit}.chat-compose footer span{font-size:.8rem}.chat-latest{align-self:center}.chat-quote{font-size:.8rem;margin-bottom:.4rem}
@media(max-width:600px){.town-chat{inset:auto 0 0;width:100%;height:min(78dvh,42rem);border-radius:9px 9px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
