/* NLauncher — общий каркас кабинета и страниц вокруг него (профиль, друзья, скриншоты, достижения…).
 * Одна шапка (как на всём сайте: меню .nlx-bar из nav.v2.css + тема, колокольчик, игрок), одно меню кабинета,
 * светлая и тёмная тема на общих токенах (--bg, --panel, --ink …; тёмная — html[data-theme="dark"]),
 * мобильная раскладка (меню кабинета — лента вкладок под шапкой).
 * Разметку шапки и меню пишет в страницы scratchpad-скрипт build-cab.py, живые данные — /assets/cab.v1.js.
 * v2: внутри и шрифты (@font-face из fonts/fonts.v1.css) — на один блокирующий запрос меньше.
 * v3: у липких шапки и ленты меню нет размытия фона (backdrop-filter) — почти непрозрачный фон вместо него:
 *     размытие перерисовывается при каждой прокрутке и на слабых устройствах стоило ~100 мс до первой отрисовки.
 * Файл версионирован: фронт-прокси кэширует /assets/* и не смотрит на ?v= — правки только новым файлом cab.v4.css. */

/* ---- шрифты ---- */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/assets/fonts/jbmono-cyrillic-ext.v1.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/assets/fonts/jbmono-cyrillic.v1.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/assets/fonts/jbmono-latin-ext.v1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/assets/fonts/jbmono-latin.v1.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-cyrillic-ext.v1.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-cyrillic.v1.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-latin-ext.v1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/onest-latin.v1.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Pixelify Sans (OFL) — карточки серверов в стиле списка Minecraft */
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/pixelify-cyrillic.v1.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/pixelify-latin-ext.v1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/pixelify-latin.v1.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}


:root {
  --bg: #F6F7F9; --panel: #FFFFFF; --panel2: #F1F4FA; --panel3: #F6F8FC;
  --ink: #0B0B0F; --ink2: #4A4F5A; --mut: #8A909C;
  --bd: rgba(11, 11, 15, .07); --bd2: rgba(11, 11, 15, .12); --bd3: rgba(11, 11, 15, .2);
  --ac: #2E6CF6; --ac2: #1E56D6; --ac-soft: #EAF1FE; --ac-tx: #1E56D6;
  --ok: #16A34A; --ok-tx: #146C43; --ok-soft: #E8F7EF;
  --err: #C21C00; --err-tx: #C21C00; --err-soft: #FDEDEA;
  --warn: #E89A0F; --warn-tx: #9A6100; --warn-soft: #FFF5E0;
  --pink: #E0479A; --vio: #7C4DFF;
  --inv: #0B0B0F; --inv-tx: #FFFFFF;
  --top-bg: rgba(246, 247, 249, .97);
  --sh: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -18px rgba(11, 18, 32, .22);
  --sh-lg: 0 40px 80px -30px rgba(11, 18, 32, .5);
  --scrim: rgba(11, 18, 32, .55);
  --r: 22px; --r-sm: 14px;
  --f: Onest, -apple-system, system-ui, "Segoe UI", sans-serif;
  --fm: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0F; --panel: #14151C; --panel2: #1B1D26; --panel3: #171820;
  --ink: #F3F6FC; --ink2: #C3C8D2; --mut: #8A909C;
  --bd: rgba(255, 255, 255, .07); --bd2: rgba(255, 255, 255, .13); --bd3: rgba(255, 255, 255, .24);
  --ac: #4C82FF; --ac2: #6A98FF; --ac-soft: rgba(76, 130, 255, .15); --ac-tx: #93B8FF;
  --ok: #34C476; --ok-tx: #6FE3A0; --ok-soft: rgba(52, 196, 118, .14);
  --err: #FF6B5B; --err-tx: #FF8A7D; --err-soft: rgba(255, 107, 91, .14);
  --warn: #FFB547; --warn-tx: #FFC978; --warn-soft: rgba(255, 181, 71, .14);
  --inv: #F3F6FC; --inv-tx: #0B0B0F;
  --top-bg: rgba(11, 11, 15, .96);
  --sh: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -22px rgba(0, 0, 0, .9);
  --sh-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---- база ---- */
html, body { margin: 0; padding: 0; }
body.nc { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 15px; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.nc *, .nc *::before, .nc *::after { box-sizing: border-box; }
:where(.nc) ::selection { background: var(--ac); color: #fff; }
:where(.nc) a { color: var(--ac-tx); text-decoration: none; }
:where(.nc) a:hover { color: var(--ac); }
:where(.nc) :is(button, input, textarea, select) { font-family: var(--f); letter-spacing: inherit; }
.nc [hidden] { display: none !important; }
:where(.nc) .mono { font-family: var(--fm); }
:where(.nc) .mut { color: var(--mut); }
:where(.nc) .ink2 { color: var(--ink2); }
:where(.nc) :focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
:where(.nc) img.px { image-rendering: pixelated; }
.nc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  :where(.nc) :is(a, button, .nc-btn, .nc-card.hov) { transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
}

/* ---- шапка ---- */
.nc-top { position: sticky; top: 0; z-index: 50; background: var(--top-bg);  border-bottom: 1px solid var(--bd); }
.nc-row { max-width: 1340px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.nc-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink) !important; }
.nc-brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nc-brand span { font-weight: 900; font-size: 18px; letter-spacing: -.03em; }
.nc-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nc-ib { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--bd2); background: var(--panel); color: var(--ink2) !important; display: grid; place-items: center; cursor: pointer; padding: 0; }
.nc-ib:hover { color: var(--ac) !important; border-color: var(--ac); }
.nc-ib svg { display: block; }
.nc-chip { display: flex; align-items: center; gap: 10px; height: 40px; padding: 4px 14px 4px 4px; border-radius: 13px; background: var(--panel); border: 1px solid var(--bd2); color: var(--ink) !important; font-weight: 800; font-size: 13.5px; white-space: nowrap; max-width: 220px; }
.nc-chip:hover { border-color: var(--ac); }
.nc-chip .av { width: 30px !important; height: 30px !important; min-width: 0; flex: none; margin: 0; padding: 0; border: 0; border-radius: 9px; background: var(--panel2); image-rendering: pixelated; object-fit: cover; box-shadow: none; }
.nc-chip .nm { overflow: hidden; text-overflow: ellipsis; }
.nc-chip.guest { padding: 4px 16px; }
html:not(.nc-in) .nc-top [data-nl-bell] { display: none; }
.nc-btn-dl { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ac); color: #fff !important; font-weight: 800; font-size: 14px; white-space: nowrap; }
.nc-btn-dl:hover { background: var(--ac2); }

/* ---- раскладка ---- */
.nc-wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 30px 24px 72px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; flex: 1 0 auto; }
.nc-wrap.solo { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.nc-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nc-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.nc-side::-webkit-scrollbar { display: none; }

/* карточка игрока в меню */
.nc-me { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--bd); }
.nc-me .av { width: 46px !important; height: 46px !important; min-width: 0; flex: none; margin: 0; padding: 0; border: 0; border-radius: 13px; background: var(--panel2); image-rendering: pixelated; object-fit: cover; box-shadow: none; }
.nc-me .who { min-width: 0; flex: 1; }
.nc-me .who b { display: block; font-size: 15.5px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-me .who a { font-size: 12.5px; font-weight: 700; }
.nc-me .coin { width: auto; height: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 11px; background: var(--warn-soft); color: var(--warn-tx) !important; font: 800 13px var(--fm); white-space: nowrap; }
.nc-me .coin img { width: 16px; height: 16px; image-rendering: pixelated; margin: 0; }

.nc-nav { padding: 8px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--bd); display: flex; flex-direction: column; gap: 2px; }
.nc-nav a { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 12px; font-weight: 750; font-size: 14.5px; color: var(--ink) !important; white-space: nowrap; }
.nc-nav a .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); color: var(--ink2); }
.nc-nav a:hover { background: var(--panel2); }
.nc-nav a:hover .ic { background: var(--ac-soft); color: var(--ac); }
.nc-nav a.on { background: var(--ac); color: #fff !important; }
.nc-nav a.on .ic { background: rgba(255, 255, 255, .2); color: #fff; }
.nc-nav a .bd { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--panel2); color: var(--ink2); font: 700 11px var(--fm); display: inline-grid; place-items: center; }
.nc-nav a .bd:empty { display: none; }
.nc-nav a .bd.hot { background: var(--pink); color: #fff; }
.nc-nav a.on .bd { background: rgba(255, 255, 255, .22); color: #fff; }
.nc-nav .hr { display: block; height: 1px; margin: 5px 10px; background: var(--bd); flex: none; }
.nc-nav .out { color: var(--ink2) !important; }
.nc-side-app { padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--bd); display: flex; align-items: center; gap: 12px; }
.nc-side-app .t { flex: 1; min-width: 0; }
.nc-side-app .t b { display: block; font-size: 13.5px; font-weight: 800; }
.nc-side-app .t span { display: block; font: 600 11.5px var(--fm); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- заголовок страницы ---- */
.nc-head { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; justify-content: space-between; }
.nc-head .l { min-width: 0; flex: 1 1 360px; }
.nc-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.nc-kicker a { color: var(--mut) !important; }
.nc-kicker a:hover { color: var(--ac) !important; }
.nc-head h1 { margin: 6px 0 8px; font-weight: 900; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.045em; }
.nc-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); max-width: 640px; }
.nc-head .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- карточки ---- */
.nc-card { position: relative; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--bd); min-width: 0; }
.nc-card.flush { padding: 0; overflow: hidden; }
.nc-card.hov:hover { border-color: var(--bd2); box-shadow: var(--sh); }
.nc-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.nc-card-h h2, .nc-card-h h3 { margin: 0; font-weight: 900; font-size: 19px; letter-spacing: -.03em; }
.nc-card-h .sub { font-size: 13.5px; color: var(--ink2); margin-top: 2px; }
.nc-card-h .grow { flex: 1 1 200px; min-width: 0; }
.nc-card-h .cnt { font: 700 12px var(--fm); color: var(--mut); padding: 3px 9px; border-radius: 99px; background: var(--panel2); }
.nc-lbl { font: 700 11px var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.nc-grid { display: grid; gap: 14px; }
.nc-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nc-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nc-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nc-stat { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--bd); min-width: 0; }
.nc-stat b { display: block; font-weight: 900; font-size: 28px; letter-spacing: -.04em; line-height: 1.1; }
.nc-stat span { font-size: 13px; color: var(--ink2); }

/* ---- кнопки ---- */
.nc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent; background: var(--ac); color: #fff !important; font-weight: 800; font-size: 14.5px; line-height: 1.1; cursor: pointer; white-space: nowrap; text-decoration: none; }
.nc-btn:hover { background: var(--ac2); color: #fff !important; }
.nc-btn:disabled, .nc-btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.nc-btn.ghost { background: var(--panel); color: var(--ink) !important; border-color: var(--bd2); }
.nc-btn.ghost:hover { border-color: var(--ac); color: var(--ac) !important; background: var(--panel); }
.nc-btn.soft { background: var(--ac-soft); color: var(--ac-tx) !important; }
.nc-btn.soft:hover { background: var(--ac); color: #fff !important; }
.nc-btn.ok { background: var(--ok); }
.nc-btn.ok:hover { filter: brightness(.94); background: var(--ok); }
.nc-btn.danger { background: var(--panel); color: var(--err-tx) !important; border-color: var(--bd2); }
.nc-btn.danger:hover { background: var(--err); border-color: var(--err); color: #fff !important; }
.nc-btn.dark { background: var(--inv); color: var(--inv-tx) !important; }
.nc-btn.dark:hover { background: var(--ac); color: #fff !important; }
.nc-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 11px; gap: 6px; }
.nc-btn.lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 15px; }
.nc-btn.icon { width: 42px; padding: 0; }
.nc-btn.sm.icon { width: 34px; }
.nc-btn.state { background: var(--ok-soft); color: var(--ok-tx) !important; border-color: transparent; cursor: default; }

/* ---- поля ---- */
.nc-input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--bd2); background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 600; }
textarea.nc-input { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
.nc-input::placeholder { color: var(--mut); font-weight: 500; }
.nc-input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft); }
.nc-search { position: relative; display: flex; align-items: center; min-width: 0; }
.nc-search .nc-input { padding-left: 42px; }
.nc-search > i, .nc-search > svg { position: absolute; left: 14px; color: var(--mut); pointer-events: none; }
.nc-field { display: flex; flex-direction: column; gap: 6px; }
.nc-field > span { font-size: 13px; font-weight: 700; color: var(--ink2); }

/* ---- вкладки-сегменты ---- */
.nc-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nc-tabs::-webkit-scrollbar { display: none; }
.nc-tabs button, .nc-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 11px; border: 0; background: transparent; font-weight: 800; font-size: 13.5px; color: var(--ink2) !important; cursor: pointer; white-space: nowrap; }
.nc-tabs button:hover, .nc-tabs a:hover { color: var(--ink) !important; }
.nc-tabs .on, .nc-tabs [aria-selected="true"] { background: var(--panel); color: var(--ink) !important; box-shadow: 0 1px 2px rgba(11, 18, 32, .08), 0 4px 12px -8px rgba(11, 18, 32, .4); }
:root[data-theme="dark"] .nc-tabs .on, :root[data-theme="dark"] .nc-tabs [aria-selected="true"] { background: #2B2E3B; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.nc-tabs .n { font: 700 11px var(--fm); padding: 1px 7px; border-radius: 99px; background: var(--bd); color: var(--ink2); }
.nc-tabs .n.hot { background: var(--pink); color: #fff; }
.nc-tabs .n:empty { display: none; }

/* ---- переключатель ---- */
.nc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.nc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.nc-switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--bd2); transition: background-color .15s ease; }
.nc-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.nc-switch input:checked + i { background: var(--ac); }
.nc-switch input:checked + i::after { transform: translateX(18px); }
.nc-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--ac-soft); }
.nc-switch input:disabled + i { opacity: .5; }

/* ---- пилюли ---- */
.nc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--panel2); color: var(--ink2); white-space: nowrap; }
.nc-pill.ok { background: var(--ok-soft); color: var(--ok-tx); }
.nc-pill.ac { background: var(--ac-soft); color: var(--ac-tx); }
.nc-pill.warn { background: var(--warn-soft); color: var(--warn-tx); }
.nc-pill.err { background: var(--err-soft); color: var(--err-tx); }
.nc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); flex: none; display: inline-block; }
.nc-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.nc-dot.call { background: var(--pink); }

/* ---- списки игроков ---- */
.nc-list { display: flex; flex-direction: column; }
.nc-li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; min-width: 0; }
.nc-li + .nc-li { border-top: 1px solid var(--bd); border-radius: 0; }
.nc-li:hover { background: var(--panel3); }
.nc-li .av { position: relative; width: 44px; height: 44px; flex: none; }
.nc-li .av img, .nc-li .av .ph { width: 44px; height: 44px; border-radius: 12px; display: block; background: var(--panel2); image-rendering: pixelated; object-fit: cover; }
.nc-li .av .ph { display: grid; place-items: center; font-weight: 900; color: var(--ink2); }
.nc-li .av .st { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--panel); background: var(--mut); }
.nc-li .av .st.on { background: var(--ok); }
.nc-li .av .st.call { background: var(--pink); }
.nc-li .body { flex: 1; min-width: 0; }
.nc-li .body b { display: block; font-size: 15px; font-weight: 850; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.nc-li .body b a { color: inherit !important; }
.nc-li .body b a:hover { color: var(--ac) !important; }
.nc-li .body span { display: block; font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-li .body span.on { color: var(--ok-tx); font-weight: 700; }
.nc-li .acts { display: flex; gap: 8px; align-items: center; flex: none; }

/* ---- меню «ещё» ---- */
.nc-menu { position: relative; }
.nc-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--bd2); box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
.nc-menu-pop button, .nc-menu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 0; background: none; color: var(--ink) !important; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.nc-menu-pop button:hover, .nc-menu-pop a:hover { background: var(--panel2); }
.nc-menu-pop .danger { color: var(--err-tx) !important; }

/* ---- пусто / загрузка / ошибка ---- */
.nc-empty { padding: 36px 20px; border-radius: var(--r); border: 1.5px dashed var(--bd2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink2); }
.nc-empty .ic { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--ac-soft); color: var(--ac); }
.nc-empty .ic.err { background: var(--err-soft); color: var(--err); }
.nc-empty h3 { margin: 4px 0 0; font-size: 18px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.nc-empty p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.55; }
.nc-empty .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.nc-sk { background: linear-gradient(90deg, var(--panel2) 25%, var(--panel3) 50%, var(--panel2) 75%); background-size: 200% 100%; border-radius: 12px; animation: nc-sk 1.2s linear infinite; }
@keyframes nc-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .nc-sk { animation: none; } }
:where(.nc) kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--bd2); font: 700 11.5px var(--fm); color: var(--ink); }
.nc-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ac-soft); color: var(--ac-tx); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.nc-note.warn { background: var(--warn-soft); color: var(--warn-tx); }
.nc-note.err { background: var(--err-soft); color: var(--err-tx); }

/* ---- окна ---- */
.nc-scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.nc-scrim.on { display: flex; }
.nc-modal { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--bd); border-radius: 24px; padding: 24px; box-shadow: var(--sh-lg); }
.nc-modal h3 { margin: 0 0 6px; font-weight: 900; font-size: 21px; letter-spacing: -.035em; }
.nc-modal p { margin: 0 0 14px; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.nc-modal .x { position: absolute; right: 14px; top: 14px; }
.nc-modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---- уведомления E2.toast ---- */
.e2-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2147483001; padding: 13px 18px; border-radius: 13px; background: var(--inv, #0B1220); color: var(--inv-tx, #fff); font: 700 14px var(--f, Onest, system-ui, sans-serif); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); max-width: min(92vw, 520px); animation: nc-toast .22s ease; }
.e2-toast.err { background: #C21C00; color: #fff; }
.e2-toast.ok { background: #146C43; color: #fff; }
@keyframes nc-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---- подвал ---- */
.nc-foot { border-top: 1px solid var(--bd); color: var(--mut); font-size: 13px; }
.nc-foot > div { max-width: 1340px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.nc-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nc-foot a { color: var(--ink2) !important; font-weight: 600; }
.nc-foot a:hover { color: var(--ac) !important; }

/* ---- телефоны и планшеты ---- */
@media (max-width: 1100px) {
  .nc-wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
  .nc-nav a { font-size: 14px; gap: 10px; padding: 8px 10px; }
  .nc-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nc-row { padding: 10px 16px; gap: 12px; min-height: 58px; }
  .nc-chip .nm { display: none; }
  .nc-chip { padding: 4px; }
  .nc-btn-dl span { display: none; }
  .nc-btn-dl { width: 40px; padding: 0; justify-content: center; }
  .nc-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 16px 56px; gap: 16px; }
  .nc-side { position: sticky; top: 58px; z-index: 30; margin: 0 -16px; padding: 8px 16px; gap: 0; max-height: none; overflow: visible; background: var(--top-bg);  border-bottom: 1px solid var(--bd); }
  .nc-me, .nc-side-app { display: none; }
  .nc-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0; background: none; border: 0; border-radius: 0; gap: 6px; scroll-snap-type: x proximity; }
  .nc-nav::-webkit-scrollbar { display: none; }
  .nc-nav a { flex: none; padding: 7px 12px 7px 7px; border-radius: 12px; background: var(--panel); border: 1px solid var(--bd); font-size: 13.5px; gap: 8px; scroll-snap-align: start; }
  .nc-nav a .ic { width: 26px; height: 26px; border-radius: 8px; }
  .nc-nav a .ic svg { width: 15px; height: 15px; }
  .nc-nav a.on { border-color: var(--ac); }
  .nc-nav .hr, .nc-nav .out { display: none; }
  .nc-nav a .bd { margin-left: 2px; }
  .nc-main { padding-top: 8px; }
  .nc-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.nc { font-size: 14.5px; }
  .nc-head h1 { font-size: 28px; }
  .nc-card { padding: 16px; border-radius: 18px; }
  .nc-grid.c2, .nc-grid.c3, .nc-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .nc-grid.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-li { padding: 10px 6px; gap: 12px; }
  .nc-li .acts .nc-btn .t { display: none; }
  .nc-li .acts .nc-btn.sm:not(.icon) { padding: 0 10px; }
  .nc-head .acts { width: 100%; }
  .nc-head .acts > * { flex: 1 1 auto; }
  .nc-modal { padding: 20px; border-radius: 20px; }
  .nc-foot > div { padding: 18px 16px; }
}
