/* RusChat 1.4.14 - consistent, legible type without changing icon/badge geometry.
   Loaded last so the desktop and mobile variants retain their layouts. */
:root {
  --ui-font: 'Segoe UI Variable', 'Segoe UI', 'Noto Sans', 'Microsoft YaHei UI', system-ui, sans-serif;
  --rc-readable-small: 13px;
}
body,
.rc-site-navigation,
.rc-site-page-host {
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Body copy and helper text across all public pages. */
.rc-site-page-host {font-size: 16px;line-height: 1.6;}
.rc-site-hero p {font-size: clamp(15px,1.35vw,17px);line-height:1.7;}
.rc-site-feature p,.rc-site-rule p,
.rc-site-contact-card small,.rc-site-link-grid small,
.rc-site-download-note p,.rc-site-page-host .rc-site-downloads .client-development,
.rc-site-author-card p,.rc-site-muted,.rc-site-disclaimer,.rc-site-footnote {
  font-size: 14px;line-height: 1.65;
}
.rc-site-eyebrow,.rc-site-section-heading>span {
  font-size: 12px;line-height:1.45;letter-spacing: .08em;
}
.rc-site-feature h3,.rc-site-rule h3 {font-size:18px;line-height:1.4;}
.rc-site-stat>span,.rc-site-stat small,.rc-site-link-grid strong,
.rc-site-contact-card strong {font-size:14px;line-height:1.5;}
.rc-site-page-host .client-download-grid .client-platform {font-size:13px;line-height:1.4;}
.rc-site-page-host button.rc-site-action-primary,.rc-site-page-host a.rc-site-action-primary,
.rc-site-action-secondary {font-size:14px;line-height:1.45;}
.rc-site-author-card small {font-size:12px;line-height:1.45;letter-spacing:.04em;}
.rc-site-author-card strong {font-size:18px;line-height:1.4;}
/* Header text is a label, not an unread-message counter. */
.rc-site-wordmark-motto {font-size:11px;line-height:1.35;}
.rc-site-tab {font-family:inherit;}
.rc-site-tab>span:not(.rc-site-tab-count) {font-size:13px;line-height:1.35;}
/* Connected chat, dialogs and member lists. */
.message:not(.system) p {font-size:16px;line-height:1.6;overflow-wrap:anywhere;}
.message:not(.system) .message-nick {font-size:15px;line-height:1.45;}
.message.system {font-size:13px;line-height:1.55;}
.message:not(.system) time,.message.system time {font-size:12px;line-height:1.45;}
.dialog-note,.command-help,.account-banner,.channel-list-row p {
  font-size:14px;line-height:1.65;
}
dialog label,.profile-details dt,.profile-details dd {line-height:1.55;}
.service-buttons button,.action-grid button,.command-buttons button,
#nick-actions button {font-size:14px;line-height:1.45;}
.welcome .welcome-description,.welcome .welcome-network-count,.welcome-note {
  font-size:14px;line-height:1.65;
}
.people-caption,.people-footer,.profile-card small,
.private-profile-panel .dialog-note {font-size:13px;line-height:1.55;}
/* Points, rewards, achievements and gifts: readable descriptions while preserving tiny counters. */
#rc-points-personal .rc-points-header-label {font-size:13px;line-height:1.4;}
#rc-points-personal #rc-points-personal-detail,
#rc-points-personal .rc-points-personal-content small,
#mobile-chat-menu #rc-points-personal small {font-size:13px;line-height:1.55;}
.rc-board-description,.rc-board-status,.rc-achievements-status,
.rc-achievements-category-status,.rc-award-copy small,
.rc-gift-history-comment,.rc-gift-tooltip-details,
#rc-gift-list-note {font-size:13px;line-height:1.55;}
.rc-gift-choice>small,.rc-gift-history-row span:not(.rc-gift-history-emoji) {font-size:12px;line-height:1.45;}
.rc-leaderboard-tabs button,.rc-achievements-filters button,
#rc-nick-achievements-open,#rc-leaderboard-open {
  font-size:13px;line-height:1.45;
}
.rc-nick-profile-actions button,
#nick-dialog .rc-nick-profile-actions>button {font-size:13px!important;line-height:1.35;}
/* Preserve sufficient size in the input (prevents automatic iOS text zoom). */
#composer input,.welcome input,dialog input,dialog select,dialog textarea {
  font-size:16px!important;
}
@media(max-width:767px){
  .rc-site-page-host {font-size:15px;line-height:1.6;}
  .rc-site-page-inner {overflow-wrap:break-word;}
  .rc-site-feature p,.rc-site-rule p,.rc-site-download-note p,
  .rc-site-page-host .rc-site-downloads .client-development {font-size:14px;line-height:1.65;}
  .rc-site-hero p {font-size:15px;line-height:1.65;}
  .rc-mobile-page-link,.rc-mobile-menu-host #mobile-menu .utility button {font-size:14px;line-height:1.45;}
  .message:not(.system) p {font-size:16px;line-height:1.55;}
  .message:not(.system) time,.message.system time {font-size:11.5px;line-height:1.4;}
  .message:not(.system) .message-nick {font-size:14px;}
  .message.system {font-size:13px;line-height:1.5;}
  .welcome-note,.dialog-note,.account-banner,
  .people-caption,.private-profile-panel .dialog-note {font-size:13px;line-height:1.6;}
  .service-buttons button,.action-grid button,.command-buttons button {font-size:14px;}
  .rc-site-wordmark-motto {font-size:11px;}
}

/* RusChat 1.5.0 - neutral message field focus without the blue frame. */
#composer:focus-within {
  border-color: var(--line);
  box-shadow: 0 4px 18px #0000000c;
  outline: none;
}
#composer #text:focus,
#composer #text:focus-visible {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}
