/* Staff roles use the author's server-side group, never message markup. */
:root body #chat_messages > .chat-message.chat-message--admin,
:root.tida-modern-palette body .chat-screen #chat_messages > .chat-message.chat-message--admin {
  border-left:3px solid #e8ba63!important;background-color:#243448!important;padding:7px 9px!important;
}
:root body #chat_messages > .chat-message.chat-message--moderator,
:root.tida-modern-palette body .chat-screen #chat_messages > .chat-message.chat-message--moderator {
  border-left:3px solid #72c6aa!important;background-color:#183b38!important;padding:7px 9px!important;
}
:root body .chat-message--admin > .chat-message-body {color:#ffe1a3!important;}
:root body .chat-message--moderator > .chat-message-body {color:#b9efda!important;}
.chat-role-badge {display:inline-block;margin:0 3px;padding:0 4px;border:1px solid currentColor;border-radius:3px;font:10px/1.6 Arial,sans-serif;vertical-align:1px;white-space:nowrap;}
.chat-message--admin > .chat-role-badge {color:#e8ba63;}
.chat-message--moderator > .chat-role-badge {color:#89d6b8;}
:root.tida-modern-palette body .world-chat.world-chat--admin .world-chat-preview,
:root body .world-chat--admin .world-chat-preview,
:root body .world-chat-bubble.chat-message--admin span,
:root body .classic-chat-preview.chat-message--admin {color:#ffe1a3!important;}
:root.tida-modern-palette body .world-chat.world-chat--moderator .world-chat-preview,
:root body .world-chat--moderator .world-chat-preview,
:root body .world-chat-bubble.chat-message--moderator span,
:root body .classic-chat-preview.chat-message--moderator {color:#b9efda!important;}
:root body .world-chat--admin {box-shadow:inset 3px 0 #e8ba63;}
:root body .world-chat--moderator {box-shadow:inset 3px 0 #72c6aa;}
:root body .world-chat-preview {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
:root body .classic-chat-preview.chat-message--admin {border-left:3px solid #e8ba63;}
:root body .classic-chat-preview.chat-message--moderator {border-left:3px solid #72c6aa;}

/* A single responsive row replaces the mismatched legacy sprite controls. */
:root body .classic-chat-page .chat-compose .classic-chat-compose-actions {
  display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;align-items:center;width:100%;max-width:none;box-sizing:border-box;margin:6px 0 2px;padding:0;
}
:root body .classic-chat-page .chat-compose .classic-chat-compose-actions :is(.btn_smile,.btn_refresh) {
  display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:38px!important;height:38px!important;min-height:38px;min-width:0;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;cursor:pointer;text-decoration:none;
}
:root body .classic-chat-page .chat-compose .classic-chat-compose-actions :is(.btn_smile,.btn_refresh) img {
  display:block!important;width:38px!important;height:38px!important;max-width:none!important;margin:0!important;padding:0!important;object-fit:contain;vertical-align:middle;
}
:root body .classic-chat-page .chat-compose .classic-chat-compose-actions .classic-chat-send {
  display:block;box-sizing:border-box;width:100%;min-width:0;height:38px!important;min-height:38px;margin:0!important;padding:0 8px!important;border:1px solid #8da7bd!important;border-radius:3px!important;background:linear-gradient(#3e617b,#243e54)!important;color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.15)!important;font:14px/1.2 Arial,sans-serif;text-align:center;cursor:pointer;white-space:normal;
}
:root body .classic-chat-page .chat-compose .classic-chat-compose-actions :is(button,a):focus-visible {outline:2px solid #edc578;outline-offset:2px;}
:root body .classic-chat-page .chat-compose textarea.txt_area {box-sizing:border-box;width:100%!important;max-width:100%;display:block;resize:vertical;}
