/* ShamsProg: анкета в профиле и флаги стран (картинки flagcdn.com: эмодзи-флаги на Windows не рисуются) */
.fi{display:block;width:20px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.flg{display:inline-flex;align-items:center;gap:6px;line-height:1;margin-left:6px;white-space:nowrap;cursor:default;vertical-align:middle;font-style:normal;font-weight:400}
a[data-u]>.flg{margin-left:0;flex:none}
.onl-chip .flg{margin-left:4px}
.flg.flgn{font-size:13px;color:var(--muted)}
.pfx-loc{margin-top:4px}.pfx-loc .flg{margin-left:0}.an-f .cs-btn .fi,.cs-list li .fi{flex:none}
.an{margin:14px 22px 0;padding:14px 16px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:12px;background:rgba(255,255,255,.02)}
.an-h{font-weight:700;margin-bottom:10px}
.an-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.an-f{display:flex;flex-direction:column;gap:5px}
.an-full{grid-column:1/-1}
.an-f .lb{font-size:12px;opacity:.8;margin:0}
.an-f input[type=text]{max-width:none;width:100%;box-sizing:border-box}
.an-bar{display:flex;gap:10px;align-items:center;margin-top:12px}
.cs{position:relative}
.cs-btn{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;text-align:left;cursor:pointer;font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line,rgba(255,255,255,.14));border-radius:8px;padding:9px 12px}
.cs-btn:after{content:"▾";margin-left:auto;opacity:.6}
.cs-none{opacity:.6}
.cs-list{position:absolute;z-index:60;left:0;right:0;top:100%;margin-top:4px;max-height:300px;overflow:auto;background:var(--bg);border:1px solid var(--line,rgba(255,255,255,.18));border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.cs-list[hidden]{display:none}
.cs-q{position:sticky;top:0;width:100%;box-sizing:border-box;border:0!important;border-bottom:1px solid var(--line,rgba(255,255,255,.14))!important;border-radius:0!important;max-width:none!important}
.cs-list ul{list-style:none;margin:0;padding:0}
.cs-list li{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer}
.cs-list li:hover,.cs-list li.on{background:rgba(255,255,255,.09)}
.cs-list li.none{opacity:.7}
@media(max-width:600px){.an{margin:12px 14px 0}.an-grid{grid-template-columns:1fr}}

/* таблицы: ник у левого края (узкие столбцы «Место», «Решено», «Ранг») */
table.rk-board{table-layout:fixed}
table.rk-board th:nth-child(1),table.rk-board td:nth-child(1){width:84px;white-space:nowrap}
table.rk-board th:nth-child(3),table.rk-board td:nth-child(3){width:110px}
table.rk-board th:nth-child(2),table.rk-board td:nth-child(2){text-align:left}
table.rk-users{table-layout:fixed}
table.rk-users th:nth-child(2),table.rk-users td:nth-child(2){width:150px}
table.rk-users th:nth-child(3),table.rk-users td:nth-child(3){width:120px;text-align:center;white-space:nowrap}
@media (max-width:640px){table.rk-users th:nth-child(2),table.rk-users td:nth-child(2){width:96px}table.rk-users th:nth-child(3),table.rk-users td:nth-child(3){width:92px;font-size:12px}}
table.rk-users th:nth-child(1),table.rk-users td:nth-child(1){text-align:left}
table.rk-board td:nth-child(2),table.rk-users td:nth-child(1){overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){table.rk-board th:nth-child(1),table.rk-board td:nth-child(1){width:60px}table.rk-board th:nth-child(3),table.rk-board td:nth-child(3){width:72px}table.rk-users th:nth-child(2),table.rk-users td:nth-child(2){width:96px}}

/* анкета (имя, организация, город, страна) - отдельная строка на всю ширину под шапкой профиля: видна и на телефоне */
.pfx-locs{display:flex;flex-direction:column;gap:6px;padding:14px 22px 0}
.pfx-locs:empty{display:none}
.pfx-locs .pfx-loc{margin:0;font-size:14px;line-height:1.4;color:var(--text);overflow-wrap:anywhere;word-break:break-word}
.pfx-locs .pfx-loc b{font-weight:600}
@media (max-width:760px){.pfx-locs{padding:12px 14px 0}.pfx-locs .pfx-loc{font-size:14px}}
@media (max-width:640px){#v-users .sr{flex-wrap:wrap}#v-users .sr #blkListBtn{flex:1 1 100%}}
.an-role{display:flex;gap:8px;flex-wrap:wrap}.an-role .chip{margin:0}.an-f[hidden]{display:none!important}
