.acweb-chat { box-sizing: border-box; width: 100%; margin: 0 0 14px; overflow: hidden; }
.acweb-chat-heading { padding: 6px 10px; }
.acweb-chat-heading h2 { margin: 0; color: inherit; font: inherit; font-weight: bold; }
.acweb-chat-inner, .acweb-chat-guest { padding: 8px 10px; }
.acweb-chat-history { box-sizing: border-box; min-height: 3.4em; max-height: 10em; overflow: auto; list-style: none; margin: 0; padding: 0; }
.acweb-chat-history li { display: flex; align-items: baseline; gap: .55em; padding: .32em 0; line-height: 1.4; }
.acweb-chat-history li + li { border-top: 1px solid rgba(110,130,140,.25); }
.acweb-chat-history strong { flex: 0 1 auto; max-width: 32%; overflow-wrap: anywhere; }
#acweb-chat .acweb-chat-author { color: var(--chat-rank-color, #24577c); text-decoration: underline; text-underline-offset: 2px; }
#acweb-chat .acweb-chat-author:hover { text-decoration-thickness: 2px; }
#acweb-chat .acweb-chat-author:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.acweb-chat-author[data-rank="member"] { --chat-rank-color: #096b78; }
.acweb-chat-author[data-rank="veteran"] { --chat-rank-color: #07639b; }
.acweb-chat-author[data-rank="senior"] { --chat-rank-color: #0453bc; }
.acweb-chat-author[data-rank="poweruser"] { --chat-rank-color: #206a06; }
.acweb-chat-author[data-rank="superpuser"] { --chat-rank-color: #6529b7; }
.acweb-chat-author[data-rank="legend"] { --chat-rank-color: #52287b; }
.acweb-chat-author[data-rank="donator"] { --chat-rank-color: #971a9b; }
.acweb-chat-author[data-rank="graphicsteam"] { --chat-rank-color: #965008; }
.acweb-chat-author[data-rank="moderator"] { --chat-rank-color: #a3242c; }
.acweb-chat-author[data-rank="supermoderator"] { --chat-rank-color: #222db7; }
.acweb-chat-author[data-rank="administrator"] { --chat-rank-color: #00634f; }
.acweb-chat-text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.acweb-chat-history time { flex: none; font-size: .9em; white-space: nowrap; }
.acweb-chat .acweb-chat-remove { cursor: pointer; border: 0; padding: 2px; color: inherit; background: transparent; font: inherit; font-size: .9em; text-decoration: underline; }
.acweb-chat-compose { display: flex; gap: .55em; margin: 7px 0 0; }
.acweb-chat-compose input[type=text] { box-sizing: border-box; flex: 1 1 0; min-width: 0; padding: 5px 8px; }
.acweb-chat-compose button { padding: 4px 15px; cursor: pointer; font-weight: bold; }
.acweb-chat .acweb-chat-status, .acweb-chat-readonly { margin: .4em 0 0; }
.acweb-chat-status:empty { display: none; }
.acweb-chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 540px) {
    .acweb-chat-history li { flex-wrap: wrap; gap: .15em .65em; }
    .acweb-chat-history strong { flex: 1; max-width: none; }
    .acweb-chat-text { order: 1; flex-basis: 100%; }
}
