/* Быстрый поиск */
.xds-btn { color: #000 !important; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
[data-theme="dark"] .xds-btn { color: #e1e3e6 !important; }
.xds-mbtn { display: none; width: 40px; height: 40px; margin-right: 2px; padding: 0; border: 0; border-radius: 50%; background: none; color: #000; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xds-mbtn:active { background: rgba(0,0,0,.06); }
.xds-mbtn svg { display: block; }
[data-theme="dark"] .xds-mbtn { color: #e1e3e6; }
@media (max-width: 881px) { .xds-mbtn { display: flex; } }
html.xds-lock, html.xds-lock body { overflow: hidden; }

.xds { position: fixed; inset: 0; z-index: 12000; --sx-card: #fff; --sx-text: #000; --sx-muted: #818c99; --sx-line: #e7e8ec; --sx-chip: #f2f3f5; --sx-accent: #2688eb; --sx-soft: rgba(38,136,235,.1); }
[data-theme="dark"] .xds { --sx-card: var(--fon_korob, #19191a); --sx-text: #e1e3e6; --sx-muted: #8f98a3; --sx-line: #2c2d2e; --sx-chip: #2a2b2d; --sx-accent: #71aaeb; --sx-soft: rgba(113,170,235,.14); }
.xds[hidden] { display: none; }
.xds-dim { position: absolute; inset: 0; }
.xds .xds-card { position: absolute; width: auto; flex: none; display: flex; flex-direction: column; padding: 0; background: var(--sx-card); overflow: hidden; }
.xds-top { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 6px; border-bottom: 1px solid var(--sx-line); flex: none; }
.xds-back { width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--sx-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.xds-back:hover { background: var(--sx-chip); }
.xds-inp { flex: 1; min-width: 0; }
.xds-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 0 10px; transition: opacity .15s; }
.xds-body.busy { opacity: .55; }
.xds .sx-sec { background: none; box-shadow: none; border-radius: 0; margin: 0; padding-bottom: 2px; }
.xds .sx-sec + .sx-sec { border-top: 1px solid var(--sx-line); }
.xds .sx-sh { padding: 12px 14px 4px; }
.xds .sx-sh b { font-size: 15px; }
.xds .sx-empty { background: none; box-shadow: none; padding: 34px 20px; }
.xds .sx-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xds-all { gap: 6px; margin-top: 10px; }
.xds-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 20px; text-align: center; color: var(--sx-muted); font-size: 14px; }
.xds-hint b { color: var(--sx-text); font-size: 16px; font-weight: 600; }
.xds-online[hidden] { display: none; }
.xds a.sx-more { color: var(--sx-accent); }
.xds .xds-online .sx-av { overflow: visible; }
.xds .xds-online .sx-dot { right: 2px; bottom: 2px; }

/* телефон */
@media (max-width: 881px) {
  .xds .xds-card { inset: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .xds-body { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* компьютер */
@media (min-width: 882px) {
  .xds .xds-card { width: 460px; max-height: min(72vh, 640px); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04); opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .18s; }
  .xds.is-open .xds-card { opacity: 1; transform: none; }
  .xds-back { display: none; }
  .xds-top { padding: 10px 10px 10px 10px; }
  [data-theme="dark"] .xds .xds-card { box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
}
/* поле поиска на ПК */
.xds-field { flex: none; width: 160px; height: 36px; margin-right: 12px; padding: 0 8px 0 12px; border: 0; border-radius: 10px; background: #f2f3f5; color: #818c99; align-items: center; gap: 8px; font: inherit; font-size: 14px; cursor: text; }
.xds-field span { flex: 1; text-align: left; }
.xds-field kbd { font: inherit; font-size: 11px; line-height: 16px; border: 1px solid #d5d9de; border-radius: 5px; padding: 0 5px; color: #99a2ad; background: none; }
.xds-field:hover { background: #ebedf0; }
[data-theme="dark"] .xds-field { background: #2a2b2d; color: #8f98a3; }
[data-theme="dark"] .xds-field kbd { border-color: #3a3b3d; color: #76787a; }
/* поиск в боковой панели */
.l-sidebar_cnt .xsb-search { display: flex; width: 100%; height: 42px; margin: 0 0 10px; padding: 0 10px 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(44,61,120,.07); color: #818c99; font-size: 14.5px; box-sizing: border-box; }
.l-sidebar_cnt .xsb-search svg { color: #3a5588; }
[data-theme="dark"] .l-sidebar_cnt .xsb-search { background: var(--fon_korob, #19191a); box-shadow: none; }
/* поиск на обложке */
.l-sidebar_cnt .xsb-me .xsb-cs, .l-sidebar_cnt .xsb-me .xsb-cs:hover { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; display: flex; width: auto; height: 38px; margin: 0; padding: 0 8px 0 12px; border-radius: 16px; background: rgba(255,255,255,.93); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); color: #5b6472; font-size: 14px; box-sizing: border-box; }
.l-sidebar_cnt .xsb-me .xsb-cs svg { color: #3a5588; flex: none; }
.l-sidebar_cnt .xsb-me .xsb-cs kbd { border-color: rgba(58,85,136,.22); color: #7a8699; }
[data-theme="dark"] .l-sidebar_cnt .xsb-me .xsb-cs { background: rgba(25,25,26,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #c5cad1; }
[data-theme="dark"] .l-sidebar_cnt .xsb-me .xsb-cs svg { color: #9fb6dc; }
[data-theme="dark"] .l-sidebar_cnt .xsb-me .xsb-cs kbd { border-color: rgba(255,255,255,.25); color: #aeb7c2; }
@media (min-width: 882px) {
  .header-content-zone .header-title-area { flex: 1 1 auto; min-width: 0; margin-right: 12px; }
  .header-title-area > span { flex: 1; min-width: 0; padding-right: 0; }
  .header-title-area > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* круглые кнопки */
  .site-header .header-actions { gap: 8px; flex: none; }
  .site-header .header-actions .desktop-only { gap: 8px !important; align-items: center; }
  .site-header .desktop-only .toolbar_actions-i { width: auto; height: auto; padding: 0; margin: 0; flex: none; min-width: 0; max-width: none; overflow: visible; }
  .site-header .desktop-only .toolbar_actions-i:hover, .site-header .desktop-only .toolbar_actions-i:active { background: none !important; }
  .site-header .desktop-only .toolbar_actions-i_inner { position: relative; width: 40px; height: 40px; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s; }
  .site-header .desktop-only .toolbar_actions-i_inner:hover { background: #f2f3f5; }
  .site-header .desktop-only .toolbar_actions-i_inner > svg { width: 24px; height: 24px; }
  [data-theme="dark"] .site-header .desktop-only .toolbar_actions-i_inner { background: transparent; }
  [data-theme="dark"] .site-header .desktop-only .toolbar_actions-i_inner:hover { background: #2a2b2d; }
  /* кнопки страниц в общем ряду */
  .site-header .header-actions > div:not(.desktop-only) { margin-right: 0 !important; display: flex; align-items: center; }
  .site-header .header-actions ._mobile_knopka-album, .site-header .header-actions .notify-settings-btn, .site-header .header-actions .toggleEditMode {
    position: static !important; transform: none !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important;
    margin: 0 !important; padding: 0 !important; border: 0; border-radius: 50% !important; background: transparent !important; color: #2688eb !important;
    display: flex !important; align-items: center; justify-content: center; box-shadow: none !important; }
  .site-header .header-actions ._mobile_knopka-album:hover, .site-header .header-actions .notify-settings-btn:hover, .site-header .header-actions .toggleEditMode:hover { background: #f2f3f5 !important; }
  .site-header .header-actions ._mobile_knopka-album svg, .site-header .header-actions .notify-settings-btn svg { width: 24px; height: 24px; }
  [data-theme="dark"] .site-header .header-actions ._mobile_knopka-album, [data-theme="dark"] .site-header .header-actions .notify-settings-btn, [data-theme="dark"] .site-header .header-actions .toggleEditMode { background: transparent !important; }
  [data-theme="dark"] .site-header .header-actions ._mobile_knopka-album:hover, [data-theme="dark"] .site-header .header-actions .notify-settings-btn:hover, [data-theme="dark"] .site-header .header-actions .toggleEditMode:hover { background: #2a2b2d !important; }
  /* счётчики на кнопках */
  .site-header .header-actions .ntf .counter_ajax { position: absolute; top: 1px; right: -4px; left: auto; bottom: auto; margin: 0; min-width: 18px; width: auto; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: #e64646; color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; box-sizing: border-box; justify-content: center; align-items: center; box-shadow: none; }
  [data-theme="dark"] .site-header .header-actions .ntf .counter_ajax { background: #e64646; color: #fff; border-color: #1c2128; }
}

/* меню аккаунта */
.xhm-w { position: relative; display: flex; align-items: center; margin-left: 4px; }
.xhm-btn { display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border: 0; border-radius: 20px; background: #f2f3f5; color: #99a2ad; cursor: pointer; }
.xhm-btn:hover, .xhm-btn[aria-expanded="true"] { background: #e7e9ec; }
.xhm-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.xhm { position: absolute; right: 0; top: 46px; width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 14px 44px rgba(0,0,0,.2); padding: 8px; z-index: 1100; color: #000; text-align: left; font-size: 14.5px; }
.xhm[hidden] { display: none; }
.xhm-card { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit !important; text-decoration: none !important; }
.xhm-card:hover { background: #f2f3f5; }
.xhm-card > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.xhm-nm b, .xhm-nm span:not(.vba):not(.vba-in):not(.vip-emoji), .xhm-nm a { display: inline !important; }
.xhm-nm img { max-height: 18px; max-width: 26px; width: auto; height: auto; vertical-align: -3px; }
.xhm-card .xhm-tx { min-width: 0; flex: 1; }
.xhm-nm { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xhm-card small { display: block; color: #818c99; font-size: 12.5px; }
.xhm-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 6px; }
.xhm-bal a { border-radius: 12px; padding: 8px 10px; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.xhm-bal .c { background: linear-gradient(120deg, #2688eb, #4fb4ff); }
.xhm-bal .r { background: linear-gradient(120deg, #1a9a4b, #4cd47f); }
.xhm-bal small { display: block; font-weight: 500; font-size: 11.5px; opacity: .85; }
.xhm-i { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14.5px; color: inherit !important; text-decoration: none !important; cursor: pointer; text-align: left; box-sizing: border-box; }
.xhm-i:hover { background: #f2f3f5; }
.xhm-i svg { color: #3a5588; flex: none; display: block; }
.xhm-i input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.xhm-sw { margin-left: auto; width: 36px; height: 22px; border-radius: 11px; background: #d7dbe0; position: relative; transition: background .2s; flex: none; }
.xhm-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.xhm-i input:checked + .xhm-sw { background: #2688eb; }
.xhm-i input:checked + .xhm-sw::after { left: 16px; }
.xhm-hr { height: 1px; background: #eceef1; margin: 6px 4px; }
.xhm-red, .xhm-red svg { color: #e64646 !important; }
[data-theme="dark"] .xhm-btn { background: #2a2b2d; }
[data-theme="dark"] .xhm { background: var(--fon_korob, #19191a); color: #e1e3e6; box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
[data-theme="dark"] .xhm-card:hover, [data-theme="dark"] .xhm-i:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .xhm-i svg { color: #9fb6dc; }
[data-theme="dark"] .xhm-hr { background: #2c2d2e; }
[data-theme="dark"] .xhm-sw { background: #4a4b4d; }

/* счётчик админки */
.xhm-btn { position: relative; }
.xhm-btn .xhm-cnt { position: absolute; top: -4px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: #ff3347; color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; box-sizing: border-box; }
[data-theme="dark"] .xhm-btn .xhm-cnt { border-color: #19191a; }
.xhm-i .xhm-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3347; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box; }