/* RusChat 1.3.20 - six site pages over a persistent, connected chat. */
:root {--rc-site-nav-height:64px;--rc-site-surface:var(--panel,#14202d);--rc-site-text:var(--text,#eff6ff);--rc-site-border:var(--line,#ffffff20);--rc-site-accent:var(--accent,#6ecbff);}
body > main{height:calc(100dvh - var(--rc-site-nav-height))!important;margin-top:var(--rc-site-nav-height)!important;}
.rc-site-navigation,.rc-site-page-host{font-family:Inter,Segoe UI,system-ui,sans-serif;color:var(--rc-site-text);box-sizing:border-box}
.rc-site-navigation{position:fixed;z-index:95;left:0;right:0;top:0;height:var(--rc-site-nav-height);display:flex;align-items:center;padding:7px clamp(8px,1.4vw,25px);background:var(--rc-site-surface);border-bottom:1px solid var(--rc-site-border);box-shadow:0 3px 20px #00000024;}
.rc-site-navigation-inner{width:100%;max-width:1900px;margin:auto;display:flex;align-items:center;gap:clamp(9px,1.2vw,22px);min-width:0;}
.rc-site-wordmark{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--rc-site-text);text-decoration:none;font-size:19px;font-weight:850;letter-spacing:-.6px;white-space:nowrap}
/* Shared desktop + mobile RusChat RC mark. */
.rc-site-wordmark-icon{
 box-sizing:border-box;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;
 border:1px solid #9eeaff75;border-radius:12px;
 background:linear-gradient(135deg,#3ad4fc 0%,#338cfa 55%,#8962e8 100%);
 box-shadow:0 5px 16px #188cff35,inset 0 1px 0 #ffffff65;
 color:#fff;font:900 21px/1 'Arial Black',Inter,'Segoe UI',sans-serif;
 letter-spacing:-1.8px;text-shadow:0 1px 2px #0b418c7a;
}
.rc-site-wordmark-mobile-name{display:none}
/* Branded two-line logo; no duplicate identity block inside the chat column. */
.rc-site-wordmark-title{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:0;line-height:1.12}
.rc-site-wordmark-name{font-size:20px;letter-spacing:-.15px;font-weight:850;color:var(--rc-site-text);text-transform:uppercase}
.rc-site-wordmark-name>span{color:var(--rc-site-accent)}
.rc-site-wordmark-motto{font-size:9px;font-weight:550;letter-spacing:.02em;line-height:1.3;color:var(--muted,#a6b4c4)}
.rc-site-tab-list{display:flex;align-items:center;flex:1;min-width:0;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px;scroll-snap-type:x proximity;}
.rc-site-tab-list::-webkit-scrollbar{display:none}
.rc-site-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;flex:0 0 auto;min-height:40px;padding:9px clamp(10px,1.25vw,19px);border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:650;color:var(--muted,#a6b4c4);white-space:nowrap;text-decoration:none;scroll-snap-align:center;transition:background .18s,color .18s,border-color .18s;}
.rc-site-tab>span{font-size:12px;line-height:1}
.rc-site-tab:hover{color:var(--rc-site-text);background:color-mix(in srgb,var(--rc-site-accent) 8%,transparent)}
.rc-site-tab.is-active{color:var(--rc-site-accent);border-color:color-mix(in srgb,var(--rc-site-accent) 25%,transparent);background:color-mix(in srgb,var(--rc-site-accent) 11%,transparent)}
.rc-site-tab-count[hidden]{display:none!important}
.rc-site-tab-count,.rc-site-tab>.rc-site-tab-count{display:inline-grid;place-items:center;min-width:20px;height:18px;padding:0 5px;border-radius:4px;background:#b84463;color:#fff;font-size:10px;font-weight:800;line-height:1;box-sizing:border-box}
.rc-site-tab.has-notify{color:var(--rc-site-text)}
.rc-site-navigation a:focus-visible,.rc-site-page-host a:focus-visible,.rc-site-page-host button:focus-visible{outline:2px solid var(--rc-site-accent);outline-offset:3px}
.rc-site-nav-dot{display:inline-block;width:8px;height:8px;flex:none;background:#4de6ad;border-radius:100%;box-shadow:0 0 0 4px #4de6ad18}
.rc-site-page-host{position:fixed;z-index:90;inset:var(--rc-site-nav-height) 0 0;background:radial-gradient(ellipse at 83% 4%,#4ba3ef12,transparent 43%),radial-gradient(ellipse at 5% 75%,#805af011,transparent 47%),var(--page,#0e1723);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.rc-site-page-host[hidden],.rc-site-page[hidden]{display:none!important}
.rc-site-page-inner{max-width:1330px;margin:0 auto;padding:clamp(16px,2.7vw,42px) clamp(14px,3vw,48px) 75px;}
.rc-site-page{animation:rc-site-enter .16s ease-out}
@keyframes rc-site-enter{from{opacity:.72;transform:translateY(5px)}to{opacity:1;transform:none}}
.rc-site-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--rc-site-border);border-radius:22px;background:linear-gradient(115deg,color-mix(in srgb,var(--rc-site-surface) 93%,#075da5),var(--rc-site-surface));padding:clamp(24px,4.5vw,66px) clamp(22px,5vw,68px);box-shadow:0 12px 45px #0000000e;}
.rc-site-hero:after{content:'';position:absolute;z-index:-1;width:min(50%,470px);aspect-ratio:1;right:-5%;top:-90%;border-radius:50%;background:radial-gradient(circle,#4fbcff30,transparent 70%);pointer-events:none}
.rc-site-hero-compact{padding:clamp(24px,3.5vw,42px) clamp(22px,4.5vw,55px)}
.rc-site-eyebrow{display:inline-block;color:var(--rc-site-accent);font-size:11px;font-weight:850;letter-spacing:2px}
.rc-site-hero h1{font-size:clamp(31px,4.5vw,56px);line-height:1.12;letter-spacing:-1.6px;font-weight:850;max-width:950px;margin:16px 0 18px;color:var(--rc-site-text)}
.rc-site-hero h1 em{font-style:normal;color:var(--rc-site-accent)}
.rc-site-hero p{max-width:760px;margin:0;color:var(--muted,#a6b4c4);font-size:clamp(14px,1.35vw,17px);line-height:1.75}
.rc-site-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}
.rc-site-page-host button.rc-site-action-primary,.rc-site-action-secondary{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:44px;padding:11px 18px;border-radius:11px;border:1px solid var(--rc-site-border);font-size:13px;font-weight:750;text-decoration:none;cursor:pointer}
.rc-site-page-host button.rc-site-action-primary{background:linear-gradient(105deg,#58c7ff,#3087eb);border-color:#5bacf4;color:#0c2033}
.rc-site-page-host button.rc-site-action-primary:hover{filter:brightness(1.07)}
.rc-site-action-secondary{color:var(--rc-site-text);background:var(--rc-site-surface)}
.rc-site-action-secondary:hover{border-color:var(--rc-site-accent);color:var(--rc-site-accent)}
.rc-site-section-heading{margin:35px 0 17px}.rc-site-section-heading>span{color:var(--rc-site-accent);font-size:10px;font-weight:850;letter-spacing:1.7px}.rc-site-section-heading h2{color:var(--rc-site-text);font-size:clamp(21px,2.2vw,29px);line-height:1.3;letter-spacing:-.5px;margin:8px 0 0}
.rc-site-card-grid,.rc-site-link-grid,.rc-site-stats-grid,.rc-site-rules-grid,.rc-site-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-leaderboard,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-current-release{border:1px solid var(--rc-site-border);background:var(--rc-site-surface);border-radius:15px;box-shadow:0 4px 25px #0000000b}
.rc-site-feature,.rc-site-rule{padding:24px}.rc-site-feature-symbol{width:44px;height:44px;background:color-mix(in srgb,var(--rc-site-accent) 11%,transparent);border-radius:11px;display:grid;place-items:center;color:var(--rc-site-accent);font-size:24px;font-weight:750}
.rc-site-feature h3,.rc-site-rule h3{margin:18px 0 8px;font-size:17px;line-height:1.35;color:var(--rc-site-text)}
.rc-site-feature p,.rc-site-rule p{margin:0;color:var(--muted,#a6b4c4);font-size:13px;line-height:1.7}
.rc-site-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.rc-site-link-grid>a{padding:17px;display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--rc-site-text);min-width:0}
.rc-site-link-grid>a:hover,.rc-site-contact-card:hover{border-color:color-mix(in srgb,var(--rc-site-accent) 55%,transparent);transform:translateY(-1px)}
.rc-site-link-grid>a>span:nth-child(2),.rc-site-contact-card>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.rc-site-link-grid strong,.rc-site-contact-card strong{font-size:15px}.rc-site-link-grid small,.rc-site-contact-card small{font-size:12px;color:var(--muted,#a6b4c4)}
.rc-site-link-icon,.rc-site-contact-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--rc-site-accent) 13%,transparent);color:var(--rc-site-accent);font-weight:850;font-size:21px}
.rc-site-contact-icon .rc-contact-brand-logo{display:block;width:28px;height:28px;flex:none}
.rc-site-stats-grid{margin:22px 0 0}
.rc-site-stat{padding:26px;display:flex;flex-direction:column;gap:7px;min-height:150px}
.rc-site-stat>span{font-size:13px;color:var(--muted,#a6b4c4)}.rc-site-stat strong{font-size:40px;letter-spacing:-1px;color:var(--rc-site-accent);line-height:1.15}.rc-site-stat small{font-size:12px;color:var(--muted,#a6b4c4)}
.rc-site-leaderboard{padding:24px}
.rc-site-stats-list{display:flex;flex-direction:column;gap:6px}
.rc-site-leader-row{display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:10px;background:color-mix(in srgb,var(--rc-site-accent) 4%,transparent);font-size:14px}
.rc-site-leader-rank{width:32px;color:var(--rc-site-accent);font-weight:900}.rc-site-leader-nick{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:700}.rc-site-leader-score{font-weight:750;color:var(--rc-site-text);white-space:nowrap}
.rc-site-muted,.rc-site-disclaimer,.rc-site-footnote{color:var(--muted,#a6b4c4);font-size:12px;line-height:1.7}.rc-site-disclaimer{margin:17px 0}.rc-site-footnote{margin:20px 0}
.rc-site-rules-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:23px}
.rc-site-rule{display:grid;grid-template-columns:45px minmax(0,1fr);column-gap:14px;align-items:start}.rc-site-rule>span{grid-row:1 / span 2;color:var(--rc-site-accent);font-size:25px;font-weight:850}.rc-site-rule h3{margin:0 0 7px}.rc-site-rule p{grid-column:2}
.rc-site-contact-grid{margin-top:24px}.rc-site-contact-card{padding:20px;display:flex;align-items:center;text-align:left;gap:15px;min-width:0;text-decoration:none;color:var(--rc-site-text);cursor:pointer;transition:transform .18s,border-color .18s}.rc-site-contact-card b{font-size:12px;color:var(--rc-site-accent);overflow-wrap:anywhere}.rc-site-contact-signature{display:flex;gap:12px;align-items:center;color:var(--muted,#a6b4c4);font-size:13px;margin:26px 4px}
.rc-site-current-release{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:19px 24px;margin-top:20px}
.rc-site-current-release span{color:var(--muted,#a6b4c4);font-size:13px}.rc-site-current-release strong{color:var(--rc-site-accent);font-size:22px;margin-right:auto}.rc-site-current-release time{color:var(--rc-site-text);font-size:14px;font-weight:700}
.rc-site-updates-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px}
.rc-site-updates-list li{background:var(--rc-site-surface);border:1px solid var(--rc-site-border);padding:20px 23px;border-radius:13px;overflow-wrap:anywhere}
.rc-site-update-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.rc-site-update-head strong{font-size:16px;color:var(--rc-site-accent)}.rc-site-update-head time{color:var(--muted,#a6b4c4);font-size:12px}
.rc-site-updates-list p{font-size:13px;line-height:1.65;color:var(--rc-site-text);margin:10px 0 0}
.rc-site-updates-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:18px}
@media(max-width:1100px){.rc-site-wordmark-title{display:flex}.rc-site-wordmark-motto{font-size:8px}.rc-site-card-grid,.rc-site-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){:root{--rc-site-nav-height:54px}
 body>main{top:calc(var(--chat-top,0px) + var(--rc-site-nav-height))!important;height:calc(var(--chat-height,100dvh) - var(--rc-site-nav-height))!important;margin-top:0!important;}
 .rc-site-navigation{top:var(--chat-top,0px);padding:5px 8px;}
 .rc-site-navigation-inner{gap:7px}.rc-site-wordmark-icon{width:40px;height:40px;border-radius:12px;font-size:21px}
 .rc-site-wordmark-name{font-size:18px}
 .rc-site-wordmark-motto{font-size:9px}
 /* Six site-page links are not displayed in the mobile navigation/menu. */
 .rc-site-tab-list{display:none}
 .rc-site-tab{font-size:12px;gap:5px;min-height:38px;padding:8px 11px}.rc-site-tab>span{font-size:12px}
 .rc-site-page-host{top:calc(var(--chat-top,0px) + var(--rc-site-nav-height));bottom:auto;height:calc(var(--chat-height,100dvh) - var(--rc-site-nav-height));}
 .rc-site-page-inner{padding:16px 12px 40px}.rc-site-hero{padding:25px 19px;border-radius:16px}.rc-site-hero h1{letter-spacing:-.8px;margin:13px 0}
 .rc-site-card-grid,.rc-site-link-grid,.rc-site-stats-grid,.rc-site-rules-grid,.rc-site-contact-grid{grid-template-columns:1fr;gap:11px}
 .rc-site-stat{min-height:0;padding:20px;gap:3px}.rc-site-stat strong{font-size:32px}
 .rc-site-feature,.rc-site-rule,.rc-site-leaderboard{padding:19px}.rc-site-section-heading{margin:26px 0 13px}
 .rc-site-current-release{gap:8px 12px;padding:17px}.rc-site-current-release strong{margin-right:0}.rc-site-current-release time{margin-left:auto}
 .rc-site-leader-row{padding:12px 9px;gap:8px}.rc-site-leader-score{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.rc-site-page{animation:none}.rc-site-tab,.rc-site-contact-card{transition:none}}
/* Isolate page heroes from RusChat's generic IRC header row styling. */
.rc-site-page-host header.rc-site-hero{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;min-height:0;}
.rc-site-page-host .rc-site-hero h1,.rc-site-page-host .rc-site-hero p{width:auto;max-width:860px;flex:none;}

/* RusChat 1.3.19 - download page and project author. */
.rc-site-page-host a.rc-site-action-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 20px;border:1px solid #5bacf4;border-radius:11px;background:linear-gradient(105deg,#58c7ff,#3087eb);color:#0c2033;text-decoration:none;font-size:14px;font-weight:800}
.rc-site-page-host a.rc-site-action-primary:hover{filter:brightness(1.08)}
.rc-site-download-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);gap:17px;align-items:stretch;min-width:0}
.rc-site-page-host .rc-site-downloads,.rc-site-download-note{border:1px solid var(--rc-site-border);border-radius:17px;background:var(--rc-site-surface);padding:clamp(20px,2.4vw,32px);margin:0;min-width:0;box-shadow:0 4px 25px #0000000b}
.rc-site-page-host .rc-site-downloads h3{color:var(--rc-site-text);font-size:20px;line-height:1.3;margin:0 0 12px;font-weight:800}
.rc-site-page-host .rc-site-downloads .client-development{margin:0 0 20px;max-width:670px;font-size:13px;color:var(--muted,#a6b4c4);line-height:1.7}
.rc-site-page-host .client-download-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.rc-site-page-host .client-download-grid .client-platform{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;min-height:103px;padding:16px 5px;border:1px solid var(--rc-site-border);border-radius:13px;background:color-mix(in srgb,var(--rc-site-accent) 5%,transparent);font-size:12px;color:var(--rc-site-text);font-weight:700;box-sizing:border-box;min-width:0}
.rc-site-page-host .client-download-grid .client-platform svg{width:29px;height:29px}
.rc-site-page-host .client-download-grid a.client-platform{border-color:color-mix(in srgb,var(--rc-site-accent) 35%,var(--rc-site-border));color:var(--rc-site-accent)}
.rc-site-page-host .client-download-grid a.client-platform:hover{background:color-mix(in srgb,var(--rc-site-accent) 14%,transparent);border-color:var(--rc-site-accent)}
.rc-site-page-host .client-download-grid .client-platform:disabled{opacity:.48;cursor:not-allowed}
.rc-site-download-note h3{margin:16px 0 12px;color:var(--rc-site-text);font-size:19px}
.rc-site-download-note p{color:var(--muted,#a6b4c4);line-height:1.7;font-size:13px;margin:0 0 13px}
.rc-site-download-note .rc-site-action-secondary{margin-top:6px}
.rc-site-author-card{display:flex;gap:17px;align-items:center;border:1px solid var(--rc-site-border);border-radius:15px;background:var(--rc-site-surface);padding:22px;margin-top:18px}
.rc-site-author-emblem{flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;color:white;border-radius:14px;font-weight:900;background:linear-gradient(145deg,#55c6f9,#3279ff)}
.rc-site-author-card>div:nth-child(2){flex:1;min-width:0}
.rc-site-author-card small{display:block;font-size:10px;letter-spacing:1.4px;color:var(--rc-site-accent);font-weight:800;margin-bottom:6px}
.rc-site-author-card strong{font-size:18px;color:var(--rc-site-text);font-weight:800}
.rc-site-page-host .rc-site-author-card .site-author-profile{display:inline;padding:0;border:0;background:transparent;font:inherit;color:var(--rc-site-accent);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.rc-site-author-card p{font-size:12px;margin:8px 0 0;line-height:1.6;color:var(--muted,#a6b4c4)}
.rc-site-author-card>a{flex:none;color:var(--rc-site-accent);text-decoration:none;font-weight:750;font-size:13px}
@media(max-width:1050px){.rc-site-download-layout{grid-template-columns:1fr}}
@media(max-width:767px){.rc-site-page-host .client-download-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rc-site-page-host .client-download-grid .client-platform{min-height:86px}.rc-site-author-card{flex-wrap:wrap;gap:12px;padding:17px}.rc-site-author-card>a{margin-left:64px}}
@media(max-width:340px){.rc-site-page-host .client-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Hide the message editor and its keyboard hints until IRC registration succeeds. */
body:not(.rc-chat-online) .chat > #composer,
body:not(.rc-chat-online) .chat > .hint{display:none!important}

/* Keep the collapsing chevron inside the upper left sidebar, away from points. */
@media(min-width:768px){
 body.rc-desktop-connected main>.brand>.rc-sidebar-toggle{right:10px;top:10px;box-sizing:border-box;z-index:12}
 body.rc-desktop-connected:not(.rc-left-collapsed) main>.brand>#rc-points-personal{min-width:0}
 body.rc-desktop-connected:not(.rc-left-collapsed) main>.brand>#rc-points-personal .rc-points-header{flex-wrap:wrap;overflow-wrap:anywhere}
}

.rc-site-wordmark{position:relative}
.rc-site-logo-count[hidden]{display:none!important}
.rc-site-logo-count{display:none;position:absolute;right:-3px;top:-7px;box-sizing:border-box;min-width:18px;height:18px;padding:1px 5px;border-radius:9px;background:#b84463;color:white;font:800 10px/16px system-ui;text-align:center}
@media(max-width:767px){.rc-site-logo-count:not([hidden]){display:block}}
@media(min-width:768px){
 body.rc-desktop-connected:not(.rc-left-collapsed) main>.brand{padding-top:49px!important}
}

/* RusChat 1.3.21 - responsive desktop navigation (phone layout unchanged).
   Seven navigation links stay readable without clipping at 768–1399 px. */
@media (min-width:768px) and (max-width:1399px){
 .rc-site-navigation{padding-inline:clamp(6px,.8vw,13px)}
 .rc-site-navigation-inner{gap:clamp(5px,.8vw,11px)}
 .rc-site-wordmark{gap:7px}
 .rc-site-wordmark-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px}
 .rc-site-wordmark-name{font-size:clamp(15px,1.45vw,19px);letter-spacing:-.35px}
 .rc-site-wordmark-motto{font-size:8px;letter-spacing:-.06px}
 .rc-site-tab-list{justify-content:space-between;gap:clamp(2px,.3vw,4px);padding:2px;overflow-x:auto}
 .rc-site-tab{flex:0 0 auto;gap:clamp(3px,.4vw,6px);min-height:36px;padding:7px clamp(5px,.7vw,10px);font-size:clamp(10px,.89vw,12px);border-radius:7px}
 .rc-site-tab>span:first-child{font-size:12px}
}
@media (min-width:768px) and (max-width:960px){
 .rc-site-wordmark-name{font-size:15px}
 .rc-site-wordmark-motto{font-size:7.5px}
 .rc-site-tab{font-size:10px;gap:3px;padding:6px 5px}
 .rc-site-tab>span:first-child{font-size:12px}
}

/* Keep the leaderboard action visibly centered rather than edge-to-edge. */
#rc-points-personal #rc-leaderboard-open,
#mobile-chat-menu > #rc-points-personal #rc-leaderboard-open{
 display:flex;align-items:center;justify-content:center;
 box-sizing:border-box;width:max-content;max-width:100%;min-width:min(185px,100%);
 min-height:34px;margin:9px auto 0;padding:6px 13px;text-align:center;
}
@media(max-width:767px){
 #mobile-chat-menu > #rc-points-personal #rc-leaderboard-open{min-height:38px}
}

/* Connected player: all controls in ONE row on 768–1399px desktops/tablets.
   The station, artwork/volume, play/spectrum and track actions always form
   four flexible grid cells. Keep the existing phone and wide-desktop designs. */
@media (min-width:768px) and (max-width:1399px){
 body.rc-desktop-connected #desktop-tabs #desktop-radio-dock{
  box-sizing:border-box;flex:1 0 100%;min-width:0;width:100%;order:2;
 }
 body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
  display:grid;align-items:center;justify-content:stretch;
  grid-template-columns:clamp(83px,17%,145px) minmax(90px,1fr) clamp(65px,13%,90px) minmax(158px,1.35fr);
  grid-template-rows:36px;gap:clamp(4px,.6vw,8px);
  box-sizing:border-box;min-width:0;max-width:100%;width:100%;
  min-height:46px;height:46px;margin:0;padding:4px 7px;
 }
 body.rc-desktop-connected #desktop-radio-dock #radio-station-open{
  grid-column:1;grid-row:1;box-sizing:border-box;width:100%;max-width:100%;min-width:0;
  height:34px;min-height:34px;flex:0 1 auto;padding-inline:6px;overflow:hidden;
 }
 body.rc-desktop-connected #desktop-radio-dock #radio-station-open strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-controls{
  grid-column:2;grid-row:1;width:100%;min-width:0;margin:0;gap:5px;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-song-card{
  flex:0 0 29px;width:29px;min-width:29px;height:29px;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-volume{width:100%;min-width:0;gap:4px;margin:0}
 body.rc-desktop-connected #desktop-radio-dock #radio-volume{flex:1 1 0;width:100%;min-width:0;max-width:100%}
 body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{
  grid-column:3;grid-row:1;align-items:center;min-width:0;width:100%;height:30px;
  min-height:0;margin:0;gap:4px;
 }
 body.rc-desktop-connected #desktop-radio-dock #radio-play{flex:0 0 26px;width:26px;min-width:26px;height:26px;min-height:26px}
 body.rc-desktop-connected #desktop-radio-dock .radio-bars-wide{
  flex:1 1 auto;min-width:0;width:auto;max-width:none;height:24px;margin:0;padding:0;
  display:flex;align-items:center;justify-content:center;gap:2px;overflow:hidden;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-bars-wide i{flex:1 1 0;min-width:1px;max-width:3px;max-height:22px}
 body.rc-desktop-connected #desktop-radio-dock .radio-bars-wide i:nth-child(n+13){display:none}
 body.rc-desktop-connected #desktop-radio-dock .radio-now{
  grid-column:4;grid-row:1;display:flex;align-items:center;width:100%;min-width:0;height:30px;margin:0;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-track-row{
  display:grid;align-items:center;grid-template-columns:minmax(0,1fr) repeat(4,24px);
  gap:3px;width:100%;min-width:0;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-track-row>button,
 body.rc-desktop-connected #desktop-radio-dock #radio-player-panel #radio-history-open{
  box-sizing:border-box;flex:none;justify-self:center;align-self:center;
  width:24px;min-width:24px;max-width:24px;
  height:26px;min-height:26px;max-height:26px;padding:0;margin:0;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-track-row>button svg,
 body.rc-desktop-connected #desktop-radio-dock #radio-player-panel #radio-history-open svg{width:15px;height:15px}
}

/* Earlier container queries put title/actions on a second/third row.
   Supersede them ONLY at mid-size desktop widths. */
@container rc-radio-dock (max-width:760px){
 @media (min-width:768px) and (max-width:1399px){
  body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
   grid-template-columns:clamp(83px,17%,145px) minmax(90px,1fr) clamp(65px,13%,90px) minmax(158px,1.35fr);
   grid-template-rows:36px;height:46px;min-height:46px;gap:clamp(4px,.6vw,8px);padding:4px 7px;
  }
  body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{grid-column:3;grid-row:1}
  body.rc-desktop-connected #desktop-radio-dock .radio-now{grid-column:4;grid-row:1;height:30px}
 }
}
@container rc-radio-dock (max-width:440px){
 @media (min-width:768px) and (max-width:1399px){
  body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
   grid-template-columns:clamp(75px,17%,100px) minmax(75px,1fr) 62px minmax(136px,1.35fr);
   grid-template-rows:36px;min-height:46px;height:46px;
   gap:3px;padding-inline:4px;
  }
  body.rc-desktop-connected #desktop-radio-dock .radio-now{grid-column:4;grid-row:1}
  body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{grid-column:3;grid-row:1}
  body.rc-desktop-connected #desktop-radio-dock .radio-song-card{flex-basis:25px;width:25px;min-width:25px;height:25px}
  body.rc-desktop-connected #desktop-radio-dock .radio-track-row{grid-template-columns:minmax(0,1fr) repeat(4,21px);gap:2px}
  body.rc-desktop-connected #desktop-radio-dock .radio-track-row>button,
  body.rc-desktop-connected #desktop-radio-dock #radio-player-panel #radio-history-open{
   width:21px;min-width:21px;max-width:21px;height:24px;min-height:24px;max-height:24px;
  }
 }
}

/* On the tightest desktop widths, show clean text-only page tabs. This keeps
   room for the unread badge on "Чат" even when all sections are visible. */
@media (min-width:768px) and (max-width:899px){
 .rc-site-tab-list{justify-content:space-between;gap:2px}
 .rc-site-tab{font-size:10.5px;padding:7px 7px;gap:4px}
 .rc-site-tab>span:first-child:not(.rc-site-tab-count){display:none}
 .rc-site-tab .rc-site-tab-count{display:inline-grid}
 .rc-site-tab .rc-site-tab-count[hidden]{display:none!important}
}

/* Keep the leaderboard below conversations, with symmetric side padding. */
@media(min-width:768px){
 body.rc-desktop-connected:not(.rc-left-collapsed) main>.brand>#rc-points-personal{padding-left:9px;padding-right:9px}
}

/* RusChat 1.3.22: mobile overlays must be opaque, clipped and below the site header. */
@media (max-width:767px) {
  /* Keep the user drawer below the fixed RUSCHAT.NET bar. */
  body.people-open main > #participants,
  body.people-open #participants {
    position:fixed!important;
    top:calc(var(--chat-top, 0px) + var(--rc-site-nav-height,54px) + 7px)!important;
    right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
    height:auto!important;
    max-height:calc(var(--chat-height,100dvh) - var(--rc-site-nav-height,54px) - 15px)!important;
    width:min(320px,calc(100vw - 16px))!important;
    overflow:hidden!important;
    background:var(--panel,#15243b)!important;
    z-index:50!important;
  }
  body.people-open #participants #users{min-height:0;overflow-y:auto;overscroll-behavior:contain;}
  /* Keep gifts and any gift hover card out of an expanded mobile menu. */
  body:has(#mobile-menu.is-open) #messages .rc-gift-badge,
  body:has(#mobile-menu.is-open) .rc-gift-tooltip {visibility:hidden!important;}
  body:has(#mobile-menu.is-open) .brand {z-index:65!important;}
  .brand #mobile-menu.is-open {
    isolation:isolate;
    background:var(--panel,#15243b)!important;
    z-index:65!important;
    box-shadow:0 12px 32px #000b!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
  }
  /* Users drawer never competes with the open hamburger menu. */
  body:has(#mobile-menu.is-open) #participants {visibility:hidden!important;pointer-events:none!important;}
}


/* RusChat 1.3.25: expanded desktop drawers on 768–1100px must not
   disappear behind the fixed site navigation. The 66px collapsed rails
   remain within the grid; only expanded side panels get a safe top inset. */
@media (min-width:768px) and (max-width:1100px) {
  body.rc-desktop-connected:not(.rc-left-collapsed) main > .brand,
  body.rc-desktop-connected:not(.rc-right-collapsed) main > #participants {
    top:calc(var(--rc-site-nav-height,64px) + 8px)!important;
    bottom:8px!important;
    height:auto!important;
    max-height:calc(100dvh - var(--rc-site-nav-height,64px) - 16px)!important;
    box-sizing:border-box;
  }
}

/* RusChat 1.3.28: genuine mobile chat controls in the fixed site navigation. */
.rc-mobile-header-actions{display:none}
@media(max-width:767px){
 .rc-site-navigation-inner{gap:8px}
 .rc-site-wordmark{min-width:0;flex:0 1 auto;gap:8px}
 /* On phones show the RusChat name next to the RS mark. */
 .rc-site-wordmark-title{display:none!important}
 .rc-site-wordmark-mobile-name{
  display:inline-flex;align-items:baseline;flex:0 0 auto;
  color:var(--rc-site-text);font:850 clamp(12px,3.75vw,17px)/1 Inter,'Segoe UI',system-ui,sans-serif;
  letter-spacing:-.7px;white-space:nowrap;
 }
 .rc-site-wordmark-mobile-name>span{color:var(--rc-site-accent)}
 .rc-mobile-header-actions{display:flex;align-items:center;justify-content:flex-end;flex:none;gap:clamp(4px,1.5vw,8px);min-width:0;margin-left:auto}
 .rc-mobile-header-actions>button{
  position:relative;display:grid!important;place-items:center;
  box-sizing:border-box;flex:0 0 38px;width:38px;min-width:38px;max-width:38px;
  height:38px;min-height:38px;max-height:38px;margin:0;padding:0;
  border:1px solid var(--rc-site-border);border-radius:9px;
  background:color-mix(in srgb,var(--rc-site-surface) 78%,var(--rc-site-accent));
  color:var(--rc-site-text);cursor:pointer;touch-action:manipulation;
  font-size:22px;line-height:1;
 }
 .rc-mobile-header-actions>button:hover,
 .rc-mobile-header-actions>button[aria-expanded=true]{border-color:var(--rc-site-accent);color:var(--rc-site-accent)}
 .rc-mobile-header-actions>button:focus-visible{outline:2px solid var(--rc-site-accent);outline-offset:2px}
 .rc-mobile-header-actions>button[hidden]{display:none!important}
 .rc-mobile-header-actions>.mobile-conversation-toggle svg,
 .rc-mobile-header-actions>#people-toggle svg{display:block;width:21px;height:21px}
 .rc-mobile-header-actions>#people-toggle .people-toggle-label{display:none}
 .rc-mobile-header-actions>#people-toggle[data-mode=users] .people-toggle-info,
 .rc-mobile-header-actions>#people-toggle[data-mode=profile] .people-toggle-users{display:none}
 .rc-mobile-header-actions>#mobile-menu-toggle{font-size:22px}
 .rc-mobile-header-actions>.mobile-conversation-toggle .mobile-conversation-count{
  position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;
  display:grid;place-items:center;font-size:10px;line-height:1;pointer-events:none
 }
 .rc-mobile-header-actions>.mobile-conversation-toggle .mobile-conversation-count[hidden]{display:none!important}
 .rc-mobile-header-actions>#theme-toggle,
 .rc-mobile-header-actions>#language-open{font-size:0!important;line-height:0!important}
 .rc-mobile-header-actions>#theme-toggle::before{content:'☀';font-size:24px;line-height:1}
 html[data-theme=light] .rc-mobile-header-actions>#theme-toggle::before{content:'☾'}
 .rc-mobile-header-actions>#language-open>span{display:none!important}
 .rc-mobile-header-actions>#language-open::before{content:'🌐';font-size:21px;line-height:1}
 .rc-mobile-header-actions>#language-open{overflow:visible;text-overflow:clip}
 /* After relocating the buttons, the old mobile strip must take no chat height. */
 body.rc-mobile-nav-ready>main>.brand{
  box-sizing:border-box;flex:0 0 0;height:0;min-height:0;max-height:0;
  padding:0!important;margin:0!important;border:0!important;
  gap:0;overflow:visible!important;
 }
 /* The original chat brand is replaced by the site header on phones. */
 body.rc-mobile-nav-ready main>.brand>.identity,
 body.rc-mobile-nav-ready main>.brand>.logo{display:none!important}
 html.keyboard-open body.rc-mobile-nav-ready main>.brand{height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important}
 /* Keep the existing mobile menu contents, but anchor their popup below the site bar. */
 body.rc-mobile-nav-ready main>.brand #mobile-menu{
  position:fixed;top:calc(var(--chat-top,0px) + var(--rc-site-nav-height));
  left:8px;right:8px;width:auto;max-width:none;border-radius:10px;
  max-height:calc(var(--chat-height,100dvh) - var(--rc-site-nav-height) - 8px);
  border-radius:10px;
 }
}
@media(max-width:355px){
 .rc-site-navigation{padding-inline:5px}
 .rc-site-wordmark-icon{flex-basis:36px;width:36px;height:36px;font-size:20px}
 .rc-mobile-header-actions{gap:4px}
 .rc-mobile-header-actions>button{flex-basis:35px;width:35px;min-width:35px;max-width:35px;height:36px;min-height:36px;max-height:36px}
}

/* 1.4.3: exact RusChat 1.4.0 mobile menu styling.
   Original .brand #mobile-menu rules from assets/mobile.css now match again
   inside the real, non-inert navigation portal (rc-mobile-menu-host).
   Only popup placement and new page links are extra. */
#rc-mobile-site-pages{display:none}
.rc-mobile-menu-host{display:none}
@media(max-width:767px){
 .rc-site-navigation .rc-mobile-menu-host{display:contents!important}
 .rc-site-navigation .rc-mobile-menu-host #mobile-menu{
  position:fixed;top:calc(var(--chat-top,0px) + var(--rc-site-nav-height));
  left:8px;right:8px;width:auto;max-width:none;border-radius:10px;
  max-height:calc(var(--chat-height,100dvh) - var(--rc-site-nav-height) - 8px);
  z-index:110;
 }
 .rc-site-navigation .rc-mobile-menu-host #mobile-menu.is-open{display:flex;flex-direction:column;gap:8px}
 #rc-mobile-site-pages{display:flex;flex-direction:column;gap:3px;width:100%;margin:8px 0 0;padding:10px 0 0;border-top:1px solid var(--line)}
 .rc-mobile-page-link{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 12px;box-sizing:border-box;border:1px solid transparent;border-radius:7px;color:var(--text);text-decoration:none;font-size:14px;line-height:1.3}
 .rc-mobile-page-link:hover,.rc-mobile-page-link.is-active{background:var(--surface);border-color:var(--line);color:var(--accent)}
 .rc-mobile-page-link .rc-mobile-menu-icon{display:block;width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .rc-mobile-page-label{flex:1;min-width:0}
 .rc-mobile-page-count[hidden]{display:none!important}
 .rc-mobile-page-count{display:grid;place-items:center;min-width:20px;height:18px;padding:0 5px;border-radius:4px;background:#b84463;color:#fff;box-sizing:border-box;font-size:10px;font-weight:800}
}


/* 1.4.4: keep the mobile menu portal out of the top button row while typing.
   mobile.css changes .brand to display:grid during keyboard-open; the portal
   is a layoutless wrapper and must stay display:contents on mobile. */
@media(max-width:767px){
 html.keyboard-open .rc-site-navigation .rc-mobile-menu-host{display:contents!important;}
}

/* RusChat 1.4.5: automatic older-history loading. */
.chat{position:relative}
#rc-older-history-status[hidden]{display:none!important}
#rc-older-history-status{
 position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
 z-index:15;display:flex;align-items:center;justify-content:center;gap:10px;
 width:max-content;max-width:calc(100% - 34px);padding:12px 18px;
 border:1px solid var(--line);border-radius:8px;
 background:var(--panel);color:var(--text);font-size:13px;line-height:1.5;
 text-align:center;box-shadow:0 8px 30px #0004;pointer-events:none;
}
.rc-older-history-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:rc-older-history-spin .8s linear infinite}
@keyframes rc-older-history-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.rc-older-history-spinner{animation:none}}
/* Unified mobile navigation icons for theme and language. */
@media(max-width:767px){
 .rc-mobile-menu-host #mobile-menu .utility #theme-toggle,
 .rc-mobile-menu-host #mobile-menu .utility #language-open{display:flex;align-items:center;justify-content:flex-start;gap:10px;color:var(--text);font-size:14px;text-align:left}
 .rc-mobile-menu-host #mobile-menu .utility #theme-toggle::before,
 .rc-mobile-menu-host #mobile-menu .utility #language-open::before{display:none!important;content:none!important}
 .rc-mobile-menu-host #mobile-menu .utility .rc-menu-line-icon{display:block;flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:inherit}
 .rc-mobile-menu-host #mobile-menu .utility .rc-menu-label{display:inline!important;font-size:14px;line-height:1.3}
 .rc-mobile-header-actions>#theme-toggle::before,
 .rc-mobile-header-actions>#language-open::before{content:none!important;display:none!important}
 .rc-mobile-header-actions>button>.rc-menu-line-icon{display:block;width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .rc-mobile-header-actions>button>.rc-menu-label{display:none!important}
}
html[data-theme=dark] .rc-theme-moon,html[data-theme=light] .rc-theme-sun{display:none!important}

@media(min-width:768px){#theme-toggle .rc-menu-line-icon,#language-open .rc-menu-line-icon{display:none!important}}

/* 1.4.6: meaningful, uniform outline icons for all site tabs. */
.rc-site-tab>.rc-site-tab-icon{
 display:block;box-sizing:content-box;flex:0 0 17px;width:17px;height:17px;
 fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
 color:inherit;vertical-align:middle;
}
@media(min-width:768px) and (max-width:960px){
 .rc-site-tab>.rc-site-tab-icon{flex-basis:15px;width:15px;height:15px}
}
@media(min-width:768px) and (max-width:899px){
 .rc-site-tab>.rc-site-tab-icon{display:none}
}


/* RusChat 1.4.23: the artwork follows the equalizer in the playback row.
   Keep the equalizer flexible and the artwork fixed-size on every viewport. */
#radio-player-panel .radio-playback-row .radio-song-card{
 display:grid;place-items:center;flex:0 0 44px;
 box-sizing:border-box;width:44px;min-width:44px;height:44px;margin:0;
}
#radio-player-panel .radio-playback-row{min-height:44px;height:auto}
@media(min-width:768px){
 body.rc-desktop-connected #desktop-radio-dock .radio-playback-row .radio-song-card{
  flex:0 0 30px;width:30px;min-width:30px;height:30px;
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{min-height:30px;height:34px}
}
@media(min-width:768px) and (max-width:1399px){
 /* Take the cover width from the now-empty volume column, not the spectrum. */
 body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
  grid-template-columns:clamp(83px,17%,145px) minmax(75px,1fr) minmax(112px,18%) minmax(145px,1.35fr);
 }
 body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{gap:3px}
 body.rc-desktop-connected #desktop-radio-dock .radio-playback-row .radio-song-card{
  flex:0 0 28px;width:28px;min-width:28px;height:28px;
 }
}
@container rc-radio-dock (max-width:760px){
 @media(min-width:768px) and (max-width:1399px){
  body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
   grid-template-columns:clamp(83px,17%,145px) minmax(75px,1fr) minmax(112px,18%) minmax(145px,1.35fr);
  }
 }
}
@container rc-radio-dock (max-width:440px){
 @media(min-width:768px) and (max-width:1399px){
  body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
   grid-template-columns:minmax(90px,1fr) minmax(90px,1fr);
   grid-template-rows:36px 34px 30px;height:auto;min-height:112px;
  }
  body.rc-desktop-connected #desktop-radio-dock #radio-station-open{grid-column:1;grid-row:1}
  body.rc-desktop-connected #desktop-radio-dock .radio-controls{grid-column:2;grid-row:1}
  body.rc-desktop-connected #desktop-radio-dock .radio-playback-row{grid-column:1/-1;grid-row:2}
  body.rc-desktop-connected #desktop-radio-dock .radio-now{grid-column:1/-1;grid-row:3}
 }
}

@media(min-width:1400px){
 /* The cover now belongs to the playback cell; reserve extra room for bars. */
 body.rc-desktop-connected #desktop-radio-dock #radio-player-panel{
  grid-template-columns:170px minmax(180px,210px) 150px minmax(225px,390px);
 }
}

/* RusChat 1.5.4: unified four-pixel navigation corners and idea highlight. */
.rc-site-navigation .rc-site-tab{border-radius:4px!important}
/* Ideas uses the same navigation palette and selected state as every other tab. */
#rc-mobile-site-pages .rc-mobile-page-link[data-rc-page="ideas"],#rc-mobile-site-pages .rc-mobile-page-link[data-rc-page="ideas"] .rc-mobile-menu-icon{color:#f05b69!important}

/* 1.5.4: participants and hamburger do not overlay one another on phones. */
@media(max-width:767px){
 body.people-open:not(:has(#mobile-menu.is-open)) #participants{visibility:visible!important;pointer-events:auto!important;z-index:90!important}
}

/* RusChat 1.5.8 - desktop theme/language icon controls in site navigation.
   The original buttons are moved here at desktop widths, not cloned. */
.rc-site-desktop-preferences{display:none}
@media(min-width:768px){
 .rc-site-navigation .rc-site-desktop-preferences{display:flex;align-items:center;flex:0 0 auto;gap:6px;margin-left:auto;}
 .rc-site-navigation .rc-site-desktop-preferences>button{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 36px;
  width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:6px;
  border:1px solid var(--rc-site-border);border-radius:4px!important;
  background:var(--surface);color:var(--rc-site-text);font-size:0;cursor:pointer;
 }
 .rc-site-navigation .rc-site-desktop-preferences>button:hover{color:var(--rc-site-accent);border-color:var(--rc-site-accent)}
 .rc-site-navigation .rc-site-desktop-preferences>button:focus-visible{outline:2px solid var(--rc-site-accent);outline-offset:2px}
 .rc-site-navigation .rc-site-desktop-preferences>button::before{display:none!important;content:none!important}
 .rc-site-navigation .rc-site-desktop-preferences .rc-menu-label{display:none!important}
 .rc-site-navigation .rc-site-desktop-preferences .rc-menu-line-icon{
  display:block!important;flex:0 0 20px;width:20px;height:20px;fill:none;
  stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
 }
 html[data-theme=dark] .rc-site-navigation .rc-site-desktop-preferences .rc-theme-moon,
 html[data-theme=light] .rc-site-navigation .rc-site-desktop-preferences .rc-theme-sun{display:none!important}
}

/* RusChat 1.5.9: restore desktop theme/language SVG visibility.
   Previous ID-based hide rule took priority over the generic desktop navigation icons. */
@media (min-width:768px){
 .rc-site-navigation #rc-site-desktop-preferences #theme-toggle .rc-menu-line-icon,
 .rc-site-navigation #rc-site-desktop-preferences #language-open .rc-menu-line-icon{
  display:block!important;width:20px!important;height:20px!important;flex:0 0 20px!important;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
 }
 .rc-site-navigation #rc-site-desktop-preferences #theme-toggle .rc-theme-moon{display:none!important;}
 html[data-theme=light] .rc-site-navigation #rc-site-desktop-preferences #theme-toggle .rc-theme-sun{display:none!important;}
 html[data-theme=light] .rc-site-navigation #rc-site-desktop-preferences #theme-toggle .rc-theme-moon{display:block!important;}
 .rc-site-navigation #rc-site-desktop-preferences #theme-toggle,
 .rc-site-navigation #rc-site-desktop-preferences #language-open{visibility:visible!important;opacity:1!important;}
}

/* Rules live within About from RusChat 1.5.19. */
.rc-site-about-rules-heading{scroll-margin-top:22px}
.rc-site-about-rules-heading h2 em{font-style:normal;color:var(--rc-site-accent)}
.rc-site-about-rules-heading p{margin:10px 0 0;max-width:850px}
.rc-site-about-rules-heading + .rc-site-rules-grid{margin-top:17px}

/* RusChat 1.5.19: consistent 4px corners for content panels on every site page. */
/* Only page content blocks: retain round avatars, indicator dots, and controls.
   Works for desktop and mobile in both light and dark themes. */
.rc-site-page-host :is(
 .rc-site-hero,
 .rc-site-feature, .rc-site-stat, .rc-site-rule,
 .rc-site-leaderboard, .rc-site-leader-row,
 .rc-site-link-grid > a, .rc-site-contact-card,
 .rc-site-current-release, .rc-site-author-card,
 .rc-site-updates-list > li,
 .rc-site-downloads, .rc-site-download-note,
 .client-download-grid .client-platform,
 .rc-help-search-wrap, .rc-help-sidebar,
 details.rc-help-faq, .rc-help-empty, .rc-help-error,
 .rc-ideas-submit, .rc-ideas-feed,
 .rc-ideas-card, .rc-ideas-author
){border-radius:4px!important}

/* 1.5.20 - IRC connection details in the About hero. */
.rc-site-irc-description{max-width:860px;width:100%;min-width:0}
.rc-site-page-host .rc-site-irc-description p+p{margin-top:12px}
.rc-site-irc-connection{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}
.rc-site-irc-connection>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;padding:10px 13px;background:color-mix(in srgb,var(--rc-site-accent) 8%,var(--rc-site-surface));border:1px solid var(--rc-site-border);border-radius:4px;overflow-wrap:anywhere}
.rc-site-irc-connection strong{color:var(--rc-site-text);font-size:12px}
.rc-site-irc-connection code{color:var(--rc-site-accent);font-weight:750;font-size:13px;overflow-wrap:anywhere}
.rc-site-irc-connection small{color:var(--muted,#a6b4c4);font-size:11px}
@media(max-width:767px){.rc-site-irc-connection{flex-direction:column;align-items:stretch}.rc-site-irc-connection>span{width:100%}}


/* RusChat 1.6.7 - full-width premium styling for all site sections. */
.rc-site-page-inner{max-width:1870px;padding:clamp(18px,2.4vw,42px) clamp(16px,2.7vw,44px) 86px;}
.rc-site-page{min-width:0}
.rc-site-page-host .rc-site-hero{border-radius:6px;border-color:color-mix(in srgb,var(--rc-site-accent) 26%,var(--rc-site-border));background:linear-gradient(120deg,color-mix(in srgb,var(--rc-site-accent) 8%,var(--rc-site-surface)),var(--rc-site-surface) 56%,color-mix(in srgb,#936dff 10%,var(--rc-site-surface)));box-shadow:0 18px 45px #020c1812;}
.rc-site-page-host .rc-site-hero::before{content:'';position:absolute;inset:auto auto -28% -7%;width:320px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#62c3ff20,transparent 67%);pointer-events:none;z-index:-1}
.rc-site-page-host .rc-site-hero h1{max-width:1100px;font-size:clamp(34px,4vw,62px);letter-spacing:-1.8px}
.rc-site-page-host .rc-site-hero p{max-width:900px;font-size:clamp(14px,1vw,18px);line-height:1.78}
.rc-site-page-host .rc-site-section-heading{display:flex;flex-direction:column;gap:8px;margin:38px 0 18px;padding-left:2px}
.rc-site-page-host .rc-site-section-heading h2{font-size:clamp(24px,2vw,34px);letter-spacing:-.8px}
.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-leaderboard,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-current-release,.rc-site-downloads,.rc-site-download-note,.rc-site-updates-list li,.rc-site-author-card){position:relative;overflow:hidden;border-radius:6px;border-color:color-mix(in srgb,var(--rc-site-accent) 20%,var(--rc-site-border));background:linear-gradient(120deg,color-mix(in srgb,var(--rc-site-accent) 2%,var(--rc-site-surface)),var(--rc-site-surface));box-shadow:0 12px 30px #08121d10;transition:border-color .18s,transform .18s,box-shadow .18s}
.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-updates-list li):hover{border-color:color-mix(in srgb,var(--rc-site-accent) 55%,var(--rc-site-border));box-shadow:0 18px 34px #08121d18;transform:translateY(-1px)}
.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-updates-list li,.rc-site-downloads,.rc-site-download-note)::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#66caff,#5f87ef);opacity:.95}
.rc-site-page-host .rc-site-feature,.rc-site-page-host .rc-site-rule,.rc-site-page-host .rc-site-contact-card,.rc-site-page-host .rc-site-link-grid>a{padding-block:26px}
.rc-site-page-host .rc-site-feature-symbol,.rc-site-page-host .rc-site-link-icon,.rc-site-page-host .rc-site-contact-icon{border-radius:4px}
.rc-site-page-host .rc-site-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rc-site-page-host .rc-site-link-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rc-site-page-host .rc-site-rules-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rc-site-page-host .rc-site-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rc-site-page-host .rc-site-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rc-site-page-host .rc-site-updates-list{gap:14px}
.rc-site-page-host .rc-site-updates-list li{padding:22px 24px}
.rc-site-page-host .rc-site-current-release{padding:20px 24px}
.rc-site-page-host .rc-site-download-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:18px;align-items:start}
.rc-site-page-host .rc-site-download-note{padding:24px}
.rc-site-page-host .rc-site-download-note h3{margin:10px 0 10px;font-size:20px;line-height:1.35;color:var(--rc-site-text)}
.rc-site-page-host .rc-site-download-note p{margin:0 0 14px;font-size:13px;line-height:1.72;color:var(--muted,#a6b4c4)}
.rc-site-page-host .rc-site-irc-connection{border-radius:6px;border:1px solid color-mix(in srgb,var(--rc-site-accent) 24%,var(--rc-site-border));background:linear-gradient(120deg,color-mix(in srgb,var(--rc-site-accent) 4%,var(--rc-site-surface)),var(--rc-site-surface));padding:16px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.rc-site-page-host .rc-site-irc-connection span{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:var(--rc-site-text);font-size:13px;line-height:1.65}
.rc-site-page-host .rc-site-irc-connection code{padding:4px 7px;border-radius:4px;background:color-mix(in srgb,var(--rc-site-accent) 10%,transparent);font-size:13px}
.rc-site-page-host .rc-site-irc-connection small{color:var(--muted,#a6b4c4)}
.rc-site-page-host .rc-site-leader-row{border-radius:4px;border:1px solid transparent}
.rc-site-page-host .rc-site-leader-row:hover{border-color:color-mix(in srgb,var(--rc-site-accent) 42%,transparent)}
@media(max-width:1350px){.rc-site-page-inner{max-width:1600px}.rc-site-page-host .rc-site-download-layout{grid-template-columns:minmax(0,1fr)}.rc-site-page-host .rc-site-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.rc-site-page-host .rc-site-card-grid,.rc-site-page-host .rc-site-stats-grid,.rc-site-page-host .rc-site-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-site-page-host .rc-site-irc-connection{grid-template-columns:1fr}}
@media(max-width:767px){.rc-site-page-inner{padding:16px 12px 44px}.rc-site-page-host .rc-site-hero{border-radius:6px}.rc-site-page-host .rc-site-card-grid,.rc-site-page-host .rc-site-link-grid,.rc-site-page-host .rc-site-rules-grid,.rc-site-page-host .rc-site-contact-grid,.rc-site-page-host .rc-site-stats-grid{grid-template-columns:1fr;gap:12px}.rc-site-page-host .rc-site-download-layout{display:flex;flex-direction:column;gap:12px}.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-current-release,.rc-site-downloads,.rc-site-download-note,.rc-site-updates-list li){border-radius:6px}}


/* RusChat 1.6.9 - unified width for all menu pages + compact premium layout. */
.rc-site-page-inner{max-width:1660px;padding:16px 22px 64px;}
.rc-site-page-host .rc-site-hero{padding:24px 26px;border-radius:8px;border-color:color-mix(in srgb,var(--rc-site-accent) 20%,var(--rc-site-border));box-shadow:0 14px 34px #08121d10;}
.rc-site-page-host .rc-site-hero h1{font-size:clamp(30px,3.2vw,52px);letter-spacing:-1.2px;margin-bottom:8px}
.rc-site-page-host .rc-site-hero p{font-size:14px;line-height:1.72;max-width:840px}
.rc-site-page-host .rc-site-section-heading{margin:28px 0 14px;gap:6px}
.rc-site-page-host .rc-site-section-heading h2{font-size:clamp(22px,1.7vw,30px)}
.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-leaderboard,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-current-release,.rc-site-downloads,.rc-site-download-note,.rc-site-updates-list li,.rc-site-author-card){border-radius:8px;box-shadow:0 8px 22px #08121d0c}
.rc-site-page-host :is(.rc-site-feature,.rc-site-rule,.rc-site-contact-card,.rc-site-link-grid>a,.rc-site-updates-list li){padding:18px 18px 18px 20px}
.rc-site-page-host .rc-site-stat{padding:17px 18px 16px}
.rc-site-page-host .rc-site-current-release,.rc-site-page-host .rc-site-download-note,.rc-site-page-host .rc-site-downloads{padding:18px 20px}
.rc-site-page-host .rc-site-card-grid,.rc-site-page-host .rc-site-link-grid,.rc-site-page-host .rc-site-rules-grid,.rc-site-page-host .rc-site-contact-grid,.rc-site-page-host .rc-site-stats-grid{gap:14px}
.rc-site-page-host .rc-site-download-layout{gap:14px}
.rc-site-page-host .rc-site-updates-list{gap:10px}
.rc-site-page-host .rc-site-irc-connection{padding:13px 15px;border-radius:8px;gap:8px}
.rc-site-page-host .rc-site-footnote{margin-top:12px;font-size:12px;line-height:1.65}
.rc-site-page-host .rc-help-layout{gap:14px}
 @media(max-width:767px){.rc-site-page-inner{padding:12px 10px 36px}.rc-site-page-host .rc-site-hero{padding:18px 16px}.rc-site-page-host .rc-site-section-heading{margin:22px 0 12px}.rc-site-page-host :is(.rc-site-feature,.rc-site-stat,.rc-site-rule,.rc-site-link-grid>a,.rc-site-contact-card,.rc-site-current-release,.rc-site-downloads,.rc-site-download-note,.rc-site-updates-list li){padding:15px 14px 15px 16px}}

/* 1.7.21: paged score leaderboard */
#rc-site-stats-more{display:block;width:100%;max-width:340px;margin:16px auto 8px;text-align:center;min-height:42px}
#rc-site-stats-more[hidden]{display:none!important}
#rc-site-ranking-shown{text-align:center;margin:8px 0 10px}

/* 1.7.26: segmented calendar-period navigation on the Statistics page. */
.rc-site-period-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:22px;padding:5px;border:1px solid var(--rc-site-border);border-radius:13px;background:var(--rc-site-surface)}
.rc-site-period-tabs .rc-site-period-tab{min-width:0;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted,#a6b4c4);font:500 13px/1.3 Inter,'Segoe UI',system-ui,sans-serif;cursor:pointer;transition:background .16s,color .16s,border-color .16s}
.rc-site-period-tabs .rc-site-period-tab:hover{background:color-mix(in srgb,var(--rc-site-accent) 9%,transparent);color:var(--rc-site-text)}
.rc-site-period-tabs .rc-site-period-tab.is-active{background:color-mix(in srgb,var(--rc-site-accent) 16%,var(--rc-site-surface));color:var(--rc-site-accent);border-color:color-mix(in srgb,var(--rc-site-accent) 43%,var(--rc-site-border))}
.rc-site-page-host .rc-site-period-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.rc-site-page-host .rc-site-period-stats-grid .rc-site-stat{min-height:132px;padding:19px;gap:8px}
.rc-site-page-host .rc-site-period-stats-grid .rc-site-stat strong{font-size:clamp(27px,3vw,39px)}
@media(max-width:950px){.rc-site-page-host .rc-site-period-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.rc-site-period-tabs{gap:3px;padding:4px}.rc-site-period-tabs .rc-site-period-tab{min-height:40px;padding:6px 3px;font-size:11px}.rc-site-page-host .rc-site-period-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rc-site-page-host .rc-site-period-stats-grid .rc-site-stat{padding:13px;min-height:118px}.rc-site-period-stats-grid .rc-site-stat>span{font-size:11px}}

@media(max-width:620px){.rc-site-period-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* RusChat 1.8.4: compact mobile RC logo, keeping the desktop mark unchanged. */
@media(max-width:767px){
 .rc-site-navigation .rc-site-wordmark-icon{box-sizing:border-box;flex:0 0 30px;width:30px;min-width:30px;height:30px;min-height:30px;font-size:14px;letter-spacing:-1px;border-radius:8px}
}

/* 1.8.13: small avatars beside participant names in the original points leaderboard. */
.rc-site-leader-avatar{flex:none;width:30px;height:30px;object-fit:cover;border-radius:7px;border:1px solid var(--rc-site-border,var(--line));background:#26334d}
@media(max-width:480px){.rc-site-leader-avatar{width:26px;height:26px}}

/* 1.9.12: let the RusChat motto wrap instead of colliding with desktop navigation. */
@media(min-width:768px) and (max-width:1350px){
 .rc-site-wordmark{white-space:normal;flex:0 1 205px;min-width:105px;gap:6px}
 .rc-site-wordmark-title{max-width:160px;min-width:0}
 .rc-site-wordmark-name{white-space:nowrap;font-size:clamp(14px,1.3vw,19px)}
 .rc-site-wordmark-motto{display:block;white-space:normal!important;overflow-wrap:normal;line-height:1.32;max-width:100%;font-size:clamp(8px,.75vw,10px)}
 .rc-site-tab-list{min-width:0;flex:1;}
}
@media(min-width:768px) and (max-width:980px){
 .rc-site-wordmark{flex-basis:145px}
 .rc-site-wordmark-name{font-size:15px}
 .rc-site-wordmark-motto{font-size:8px;max-width:120px}
}
