/* RusChat 1.5.11: support card styled like the points widget, closed by default. */
#rc-support-card.rc-support-card{position:relative;isolation:isolate;display:block;overflow:hidden;box-sizing:border-box;min-width:0;flex:0 0 auto;margin:7px 0 8px;padding:7px 9px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--text)}
/* The picture is a soft background, not a separate image beside the text. */
#rc-support-card::before{content:"";position:absolute;inset:0;z-index:0;background:url('support-ruschat.webp') center center / cover no-repeat;opacity:.19;pointer-events:none}
#rc-support-card::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(14,22,39,.23),rgba(14,22,39,.05));pointer-events:none}
:root[data-theme="light"] #rc-support-card::after{background:linear-gradient(90deg,rgba(255,255,255,.35),rgba(255,255,255,.14))}
#rc-support-card > *{position:relative;z-index:1}
#rc-support-card .rc-support-header{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:27px;margin:0;padding:2px 0;border:0;background:transparent;color:var(--text);font-family:inherit;font-size:12px;font-weight:700;line-height:1.3;text-align:left;cursor:pointer;box-shadow:none}
#rc-support-card .rc-support-header-label{display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:700}
#rc-support-card .rc-support-header-label svg{flex:none;color:#ed8bbd}
#rc-support-card .rc-support-chevron{flex:none;color:var(--muted);transition:transform .18s ease}
#rc-support-card .rc-support-header[aria-expanded="false"] .rc-support-chevron{transform:rotate(-90deg)}
#rc-support-card .rc-support-card-content{padding:8px 0 2px}
#rc-support-card .rc-support-card-content[hidden]{display:none!important}
#rc-support-card .rc-support-card-content p{margin:0 0 8px;font-size:12px;line-height:1.55;color:var(--text);overflow-wrap:anywhere}
#rc-support-card .rc-support-card-content .rc-support-impact{font-weight:700;color:var(--text)}
#rc-support-open{display:block;width:100%;min-height:35px;margin:7px 0 0;padding:8px 10px;border:1px solid #8ca6ff55;border-radius:4px;background:linear-gradient(115deg,#456fdd,#8059dc);color:#fff;font-family:inherit;font-size:12px;font-weight:700;line-height:1.35;cursor:pointer}
#rc-support-open:hover{filter:brightness(1.12)}
#rc-support-card .rc-support-header:focus-visible,#rc-support-open:focus-visible,#rc-support-donate:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#mobile-chat-menu > #rc-support-card{box-sizing:border-box;width:100%;margin:9px 0 14px;padding:9px 11px}
@media(max-width:767px){#rc-support-card .rc-support-card-content p{font-size:13px}#rc-support-dialog{padding:15px}#rc-support-dialog .rc-support-lead{font-size:14px}#rc-support-dialog .rc-support-hero{max-height:190px}}
@media(prefers-reduced-motion:reduce){#rc-support-card .rc-support-chevron{transition:none}}

#rc-support-dialog{width:min(620px,calc(100vw - 28px))!important;max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text)}
#rc-support-dialog::backdrop{background:#040917b8;backdrop-filter:blur(4px)}
.rc-support-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.rc-support-dialog-head h2{margin:0;font-size:23px;line-height:1.25}
.rc-support-dialog-head [data-close]{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0}
#rc-support-dialog .rc-support-hero{display:block;width:100%;height:auto;max-height:250px;object-fit:cover;border-radius:7px}
#rc-support-dialog .rc-support-lead{margin:16px 0 12px;font-size:15px;line-height:1.65;color:var(--text)}
#rc-support-dialog .rc-support-note{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.55}
#rc-support-dialog .rc-support-note svg{flex:none;margin-top:1px;color:#e485c7}
#rc-support-dialog .rc-support-donate{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;box-sizing:border-box;margin-top:18px;padding:12px;border-radius:6px;background:linear-gradient(115deg,#466cdb,#8456dd);color:#fff;text-decoration:none;font-size:15px;font-weight:750}
#rc-support-dialog .rc-support-donate:hover{filter:brightness(1.1)}
#rc-support-dialog .rc-support-footer{margin:13px 0 0;text-align:center;font-size:12px;line-height:1.5;color:var(--muted)}

/* RusChat 1.5.12: the points panel gets its own translucent artwork,
   matching the support card in both mobile and desktop layouts. */
#rc-points-personal.rc-points-personal{position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--text)}
#rc-points-personal.rc-points-personal::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:url('points-ruschat.webp') right center / cover no-repeat;opacity:.24}
#rc-points-personal.rc-points-personal::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(14,22,39,.30),rgba(14,22,39,.12))}
:root[data-theme="light"] #rc-points-personal.rc-points-personal::after{background:linear-gradient(90deg,rgba(255,255,255,.63),rgba(255,255,255,.28))}
#rc-points-personal.rc-points-personal > *{position:relative;z-index:1}
#rc-points-personal.rc-points-personal .rc-points-header{background:transparent}
#mobile-chat-menu > #rc-points-personal.rc-points-personal{background:var(--surface)}

/* 1.5.13: public points card, same card width and title spacing as support. */
#rc-support-card.rc-support-card{width:100%}
#rc-points-personal.rc-points-personal{
 display:block;box-sizing:border-box;width:100%;min-width:0;flex:0 0 auto;
 margin:7px 0 8px;padding:7px 9px;border-radius:4px;
}
#rc-points-personal #rc-points-personal-toggle{
 display:flex;box-sizing:border-box;width:100%;min-width:0;min-height:27px;
 align-items:center;flex-wrap:nowrap;gap:8px;padding:2px 0;
 font-size:12px;line-height:1.3;text-align:left;
}
#rc-points-personal .rc-points-header-label{display:inline-flex;align-items:center;min-width:0;flex:1 1 auto;font-size:12px;line-height:1.3}
#rc-points-personal .rc-points-header-right{flex:0 0 auto;min-width:0}
#rc-points-personal-count[hidden]{display:none!important}
@media(max-width:767px){
 #mobile-chat-menu > #rc-points-personal.rc-points-personal{width:100%;margin:9px 0 14px;padding:9px 11px;border-radius:4px}
}
