/* NIPOS CLANS — оформление как у остальных страниц (partners_admin / reports): токены --np-*, h1 Days One 44/52,
   карточки --np-surface radius 12, чипы, таблицы. Поля ввода красим сами: страница публичная (не body.nps-admin). */
.cl { --r-md: var(--np-radius-md, 8px); --r-lg: var(--np-radius-lg, 12px); --f-d: var(--np-font-display, "Days One", sans-serif); --f-s: var(--np-font-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    display: flex; flex-direction: column; gap: 16px; width: 100%; margin: 0; padding-bottom: 40px; color: var(--np-ink, #f2f2f2); font-family: var(--f-s); }
.cl * { box-sizing: border-box; }
.cl, .cl > *, .cl-pane > * { min-width: 0; max-width: 100%; }
html body .cl h1, html body .cl h2, html body .cl h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--np-ink, #f2f2f2) !important; text-transform: none !important; letter-spacing: normal !important; }
html body .cl p { margin: 0 !important; }
html body .cl a { color: var(--np-ink, #f2f2f2); text-decoration: none; }
html body .cl a:hover { color: var(--np-red, #ff233b); }
.cl code { padding: 2px 6px; border-radius: 6px; background: var(--np-surface-3, #242424); font-size: 12px; color: var(--np-ink, #f2f2f2); }
.cl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-mute { color: var(--np-ink-3, #7a7a7a); }
.cl-gap { margin-top: 12px !important; }
.cl-grow { flex: 1 1 auto; min-width: 0; }
.cl-nowrap { white-space: nowrap; }
.cl-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
.cl-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--np-ink-2, #a6a6a6); }
.cl-note { margin-top: 12px !important; font-size: 13px; line-height: 19px; color: var(--np-ink-3, #7a7a7a); }
.cl-note--top { margin: 0 0 14px !important; }
.cl-note b { color: var(--np-ink, #f2f2f2); }

/* Заголовок: крошки, 44 px, пояснение 16 px */
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 0; }
.cl-head__aside { display: flex; gap: 8px; flex: none; }
.cl-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 13px; line-height: 18px; color: var(--np-ink-3, #7a7a7a); }
.cl-crumbs i { font-style: normal; opacity: .7; }
html body .cl .cl-crumbs a { color: var(--np-ink-2, #a6a6a6); }
html body .cl .cl-crumbs a:hover { color: var(--np-ink, #f2f2f2); }
.cl-crumbs--top { margin: 0 2px -6px; }
html body .cl-head h1 { font-family: var(--f-d) !important; font-size: 44px !important; font-weight: 400 !important; line-height: 52px !important; }
.cl-head p { margin-top: 6px !important; max-width: 70ch; font-size: 16px; line-height: 24px; color: var(--np-ink-2, #a6a6a6); }

/* Карточки, чипы, плитки */
.cl-card { padding: 20px; border-radius: var(--r-lg); background: var(--np-surface, #121212); }
.cl-card--table { padding: 8px 12px; }
html body .cl-card h2 { margin-bottom: 14px !important; font-size: 18px !important; font-weight: 700 !important; line-height: 24px !important; font-family: var(--f-s) !important; }
.cl-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
html body .cl-card__head h2 { margin: 0 !important; }
.cl-card__head .cl-btn { margin-left: auto; }
.cl-empty { padding: 28px 12px !important; text-align: center; font-size: 14px; color: var(--np-ink-3, #7a7a7a); }
.cl-empty b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--np-ink, #f2f2f2); }
.cl-empty p { margin-top: 6px !important; }
.cl-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--f-s); background: var(--np-surface-3, #242424); color: var(--np-ink-2, #a6a6a6); white-space: nowrap; }
.cl-chip.is-ok { background: var(--np-green-soft, #13261a); color: var(--np-green, #5fc97e); }
.cl-chip.is-amber { background: var(--np-amber-soft, #2b2011); color: var(--np-amber, #f0a53a); }
.cl-chip.is-red { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.cl-alert { padding: 12px 16px; border-radius: var(--r-lg); font-size: 14px; line-height: 20px; }
.cl-alert a { text-decoration: underline !important; }
.cl-alert.is-err { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.cl-alert.is-amber { background: var(--np-amber-soft, #2b2011); color: var(--np-amber, #f0a53a); }
html body .cl .cl-alert.is-amber a { color: var(--np-amber, #f0a53a); }
.cl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cl-tiles--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cl-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--np-surface, #121212); }
.cl-tile > b { overflow: hidden; font-family: var(--f-d); font-size: 28px; font-weight: 400; line-height: 34px; text-overflow: ellipsis; white-space: nowrap; color: var(--np-red, #ff233b); }
.cl-tile > b.is-text { font-size: 22px; }
.cl-tile > span { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--np-ink, #f2f2f2); }
.cl-tile small { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--np-ink-3, #7a7a7a); }
.cl-tile .cl-bar { margin-top: 8px; }
.cl-bar { position: relative; display: block; height: 6px; border-radius: 999px; background: var(--np-surface-3, #242424); overflow: hidden; }
.cl-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--np-red, #ff233b); }

/* Кнопки */
html body .cl .cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-height: 0; margin: 0; padding: 0 12px; border: 0 !important; border-radius: var(--r-md); background: var(--np-surface-2, #1a1a1a) !important; box-shadow: none !important; color: var(--np-ink, #f2f2f2) !important; font: 600 13px var(--f-s); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, opacity .15s; }
html body .cl .cl-btn:hover { background: var(--np-surface-3, #242424) !important; }
html body .cl .cl-btn:focus, html body .cl .cl-btn:active { outline: 0; border: 0 !important; }
html body .cl .cl-btn:focus-visible { outline: 2px solid var(--np-ink, #f2f2f2); outline-offset: 2px; }
html body .cl .cl-btn.is-primary { background: var(--np-red-fill, #e5162e) !important; color: #fff !important; }
html body .cl .cl-btn.is-primary:hover { background: var(--np-red-fill-hover, #cc1027) !important; }
html body .cl .cl-btn.is-danger { color: var(--np-ink-2, #a6a6a6) !important; }
html body .cl .cl-btn.is-danger:hover { background: var(--np-red-soft, #2a1215) !important; color: var(--np-red, #ff233b) !important; }
html body .cl .cl-btn.is-danger-fill { background: var(--np-red-soft, #2a1215) !important; color: var(--np-red, #ff233b) !important; }
html body .cl .cl-btn.is-danger-fill:hover { background: var(--np-red-fill, #e5162e) !important; color: #fff !important; }
html body .cl .cl-btn.is-lg { height: 40px; padding: 0 18px; font-size: 14px; }
html body .cl .cl-btn.is-icon { width: 32px; padding: 0; font-size: 18px; line-height: 1; }
html body .cl .cl-btn[disabled], html body .cl .cl-btn.is-busy { opacity: .45; cursor: default; pointer-events: none; }
.cl-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Поля */
.cl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.cl-field > label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--np-ink-2, #a6a6a6); }
.cl-field small { font-size: 12px; line-height: 16px; color: var(--np-ink-3, #7a7a7a); }
.cl-field small.is-err { color: var(--np-red, #ff233b); }
.cl-field small.is-ok { color: var(--np-green, #5fc97e); }
html body .cl input[type=text], html body .cl input[type=search], html body .cl input[type=number], html body .cl select, html body .cl textarea,
html body .cl-modal input[type=text], html body .cl-modal input[type=number], html body .cl-modal select, html body .cl-modal textarea {
    width: 100%; min-height: 40px; margin: 0; padding: 0 12px; border: 0 !important; border-radius: var(--r-md) !important; background: var(--np-surface-2, #1a1a1a) !important;
    box-shadow: none !important; font: 400 14px var(--f-s) !important; color: var(--np-ink, #f2f2f2) !important; outline: 0; color-scheme: dark; }
html body .cl textarea, html body .cl-modal textarea { padding: 10px 12px; line-height: 20px !important; resize: vertical; }
html body .cl input:focus, html body .cl select:focus, html body .cl textarea:focus, html body .cl-modal input:focus, html body .cl-modal textarea:focus, html body .cl-modal select:focus { box-shadow: inset 0 0 0 1px var(--np-ink-3, #7a7a7a) !important; }
.cl input::placeholder, .cl textarea::placeholder, .cl-modal input::placeholder, .cl-modal textarea::placeholder { color: var(--np-ink-3, #7a7a7a); }
.cl-inline { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.cl-inline .cl-field { margin: 0; }
.cl-inline .cl-btn { height: 40px !important; }
.cl-form .cl-btns { margin-top: 2px; }

/* Список: сортировка, поиск, карточки */
.cl-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.cl-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--np-surface, #121212); overflow-x: auto; scrollbar-width: none; }
.cl-seg::-webkit-scrollbar { display: none; }
html body .cl .cl-seg__i { display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; color: var(--np-ink-2, #a6a6a6); transition: background-color .15s, color .15s; }
html body .cl .cl-seg__i:hover { background: var(--np-surface-2, #1a1a1a); color: var(--np-ink, #f2f2f2); }
html body .cl .cl-seg__i.is-active { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.cl-search { flex: 1 1 220px; max-width: 360px; margin: 0 0 0 auto; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cl-cc { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--np-surface, #121212); overflow: hidden; transition: background-color .15s, transform .2s var(--np-ease, ease); }
html body .cl a.cl-cc:hover { background: var(--np-surface-2, #1a1a1a); color: var(--np-ink, #f2f2f2); }
@media (hover: hover) { html body .cl a.cl-cc:hover { transform: translateY(-2px); } }
.cl-cc.is-frozen { opacity: .62; }
.cl-cc__ban { position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(135deg, var(--np-surface-3, #242424), var(--np-surface, #121212)); background-size: cover; background-position: center; }
.cl-cc__ban::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, var(--np-surface, #121212) 100%); }
a.cl-cc:hover .cl-cc__ban::after { background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, var(--np-surface-2, #1a1a1a) 100%); }
.cl-cc__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; margin: 18px 0 4px; }
.cl-cc__place { font-family: var(--f-d); font-size: 18px; line-height: 24px; color: var(--np-ink-3, #7a7a7a); }
.cl-cc__name { overflow: hidden; font-size: 16px; font-weight: 700; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.cl-cc__name em, .cl-tagname { font-style: normal; color: var(--np-red, #ff233b); }
.cl-cc__lvl { font-size: 12px; font-weight: 600; color: var(--np-ink-3, #7a7a7a); }
.cl-cc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--np-ink-3, #7a7a7a); }
.cl-cc__stats span { display: flex; flex-direction: column; min-width: 0; }
.cl-cc__stats b { overflow: hidden; font-family: var(--f-d); font-size: 15px; font-weight: 400; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; color: var(--np-ink, #f2f2f2); }
.cl-cc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cl-cc__likes { font-size: 12px; font-weight: 600; color: var(--np-ink-3, #7a7a7a); }
.cl-ava { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--np-surface-3, #242424); overflow: hidden; box-shadow: 0 0 0 3px var(--np-surface, #121212); }
.cl-ava img { width: 100%; height: 100%; object-fit: cover; }
.cl-ava b { font-family: var(--f-d); font-size: 18px; font-weight: 400; color: var(--np-ink, #f2f2f2); }
.cl-ava.is-sm { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
.cl-ava.is-sm b { font-size: 13px; }
.cl-ava.is-lg { width: 96px; height: 96px; border-radius: 18px; }
.cl-ava.is-lg b { font-size: 34px; }
.cl-pages { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.cl-pages a, .cl-pages b { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-md); background: var(--np-surface, #121212); font-size: 14px; font-weight: 600; }
html body .cl .cl-pages a { color: var(--np-ink-2, #a6a6a6); }
.cl-pages b { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }

/* Строки (приглашения, заявки) */
.cl-rows { display: flex; flex-direction: column; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--np-line, #262626); }
.cl-row:first-child { border-top: 0; padding-top: 0; }
.cl-row__img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--np-surface-3, #242424); }
.cl-row__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cl-row__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cl-row__main small { font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
.cl-row__act { display: flex; gap: 6px; flex: none; }
.cl-feed { display: flex; flex-direction: column; }
.cl-feed__i { padding: 10px 0; border-top: 1px solid var(--np-line, #262626); }
.cl-feed__i:first-child { border-top: 0; padding-top: 4px; }
.cl-feed__i small { display: block; margin-bottom: 2px; font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
.cl-feed__i p { font-size: 14px; line-height: 20px; word-break: break-word; }
.cl-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
.cl-more > summary::-webkit-details-marker { display: none; }
.cl-more > summary::before { content: '▸'; color: var(--np-red, #ff233b); }
.cl-more[open] > summary::before { content: '▾'; }
.cl-more[open] > summary { margin-bottom: 10px; }

/* Страница клана: шапка с баннером */
.cl-hero { position: relative; border-radius: var(--r-lg); background: var(--np-surface, #121212); overflow: hidden; }
.cl-hero__ban { height: 180px; background: radial-gradient(120% 140% at 0% 0%, var(--np-red-soft, #2a1215) 0%, var(--np-surface-2, #1a1a1a) 55%, var(--np-surface, #121212) 100%); background-size: cover; background-position: center; }
.cl-hero.has-banner .cl-hero__ban { height: clamp(140px, 24vw, 280px); }
.cl-hero__body { position: relative; display: flex; align-items: flex-end; gap: 18px; margin-top: -48px; padding: 0 20px 20px; }
.cl-hero__body .cl-ava.is-lg { box-shadow: 0 0 0 4px var(--np-surface, #121212); }
.cl-hero__id { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; padding-bottom: 2px; }
.cl-hero__chips { display: flex; gap: 6px; flex-wrap: wrap; }
html body .cl-hero h1 { overflow-wrap: anywhere; font-family: var(--f-d) !important; font-size: 44px !important; font-weight: 400 !important; line-height: 52px !important; }
.cl-hero__act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.cl-hero__act > .cl-btn, .cl-hero__act > .cl-chip { align-self: flex-end; }
.cl-votes { display: flex; align-items: center; gap: 6px; }
html body .cl .cl-vote { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0 !important; border-radius: var(--r-md); background: var(--np-surface-2, #1a1a1a) !important; color: var(--np-ink-2, #a6a6a6) !important; font: 600 13px var(--f-s); cursor: pointer; transition: background-color .15s, color .15s, transform .12s; }
html body .cl .cl-vote:hover { background: var(--np-surface-3, #242424) !important; color: var(--np-ink, #f2f2f2) !important; }
html body .cl .cl-vote:active { transform: scale(.94); }
html body .cl .cl-vote:focus { outline: 0; border: 0 !important; }
html body .cl .cl-vote.is-on { background: var(--np-green-soft, #13261a) !important; color: var(--np-green, #5fc97e) !important; }
html body .cl .cl-vote.is-down.is-on { background: var(--np-red-soft, #2a1215) !important; color: var(--np-red, #ff233b) !important; }
html body .cl .cl-vote[disabled] { cursor: default; opacity: .7; }
html body .cl .cl-vote svg, .cl-views svg { width: 15px !important; height: 15px !important; fill: currentColor !important; }
.cl-views { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--np-ink-3, #7a7a7a); }
.cl-desc p { font-size: 15px; line-height: 23px; color: var(--np-ink-2, #a6a6a6); word-break: break-word; }

/* Вкладки */
.cl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--np-surface, #121212); overflow-x: auto; scrollbar-width: none; }
.cl-tabs::-webkit-scrollbar { display: none; }
html body .cl .cl-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; width: auto; height: 38px; min-height: 0; margin: 0; padding: 0 16px; border: 0 !important; border-radius: var(--r-md); background: transparent !important; box-shadow: none !important; color: var(--np-ink-2, #a6a6a6) !important; font: 600 14px var(--f-s); cursor: pointer; transition: background-color .15s, color .15s; }
html body .cl .cl-tab:hover { background: var(--np-surface-2, #1a1a1a) !important; color: var(--np-ink, #f2f2f2) !important; }
html body .cl .cl-tab.is-active { background: var(--np-red-soft, #2a1215) !important; color: var(--np-red, #ff233b) !important; }
html body .cl .cl-tab:focus, html body .cl .cl-tab:active { outline: 0; border: 0 !important; }
html body .cl .cl-tab:focus-visible { outline: 2px solid var(--np-ink, #f2f2f2); outline-offset: -2px; }
.cl-tab span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--np-surface-3, #242424); font-size: 11px; line-height: 20px; text-align: center; color: var(--np-ink-2, #a6a6a6); }
.cl-tab span.is-red { background: var(--np-red-fill, #e5162e); color: #fff; }
.cl-pane { display: none; flex-direction: column; gap: 16px; }
.cl-pane.is-active { display: flex; animation: clIn .25s ease both; }
@keyframes clIn { from { opacity: 0; transform: translateY(6px); } }

/* Таблицы */
.cl-tablewrap { overflow-x: auto; }
html body .cl .cl-table { width: 100%; min-width: 640px; border-collapse: collapse; }
html body .cl .cl-table th { padding: 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-ink-3, #7a7a7a); white-space: nowrap; border: 0 !important; background: transparent !important; }
html body .cl .cl-table td { padding: 10px; font-size: 14px; color: var(--np-ink, #f2f2f2); border: 0 !important; border-top: 1px solid var(--np-line, #262626) !important; background: transparent !important; vertical-align: middle; }
html body .cl .cl-table tr:hover td { background: var(--np-surface-2, #1a1a1a) !important; }
.cl-table .c-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-table .c-act { width: 1%; text-align: right; white-space: nowrap; }
.cl-table .c-act .cl-btn + .cl-btn { margin-left: 4px; }
.cl-score { font-family: var(--f-d); font-size: 15px; white-space: nowrap; }
.cl-perms { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-perms { max-width: 440px; }
.cl-perms .cl-chip { margin: 2px 2px 2px 0; }
.cl-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl-player img { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--np-surface-3, #242424); }
.cl-player span { display: flex; flex-direction: column; min-width: 0; }
.cl-player b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cl-player small { font-size: 12px; color: var(--np-ink-3, #7a7a7a); }

/* Меню «⋯» */
.cl-menu { position: relative; display: inline-block; }
.cl-menu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 190px; padding: 4px; border-radius: 10px; background: var(--np-surface-3, #242424); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cl-menu__list[hidden] { display: none; }
html body .cl .cl-menu__list button { display: block; width: 100%; height: 36px; padding: 0 12px; border: 0 !important; border-radius: var(--r-md); background: transparent !important; box-shadow: none !important; text-align: left; font: 600 13px var(--f-s); color: var(--np-ink, #f2f2f2) !important; cursor: pointer; }
html body .cl .cl-menu__list button:hover { background: rgba(255, 255, 255, .06) !important; }
html body .cl .cl-menu__list button.is-danger { color: var(--np-red, #ff233b) !important; }

/* Услуги */
.cl-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cl-svc__i { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px; background: var(--np-surface-2, #1a1a1a); }
.cl-svc__i b { font-size: 15px; }
.cl-svc__i small { min-height: 32px; font-size: 12px; line-height: 16px; color: var(--np-ink-3, #7a7a7a); }
.cl-svc__i .cl-btns { margin-top: 6px; }
html body .cl .cl-svc__i .cl-btn:not(.is-primary) { background: var(--np-surface-3, #242424) !important; }
.cl-svc__i.is-off b { color: var(--np-ink-2, #a6a6a6); }

/* Аватар и баннер */
.cl-media { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cl-media__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-media__ban { display: block; width: min(100%, 300px); aspect-ratio: 15 / 4; border-radius: 10px; background: var(--np-surface-2, #1a1a1a) center / cover; }
.cl-file { position: relative; overflow: hidden; }
.cl-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cl-danger { box-shadow: inset 0 0 0 1px var(--np-red-soft, #2a1215); }

/* Создание */
.cl-create { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.cl-steps { display: flex; gap: 18px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--np-ink-3, #7a7a7a); }
.cl-steps li { display: flex; align-items: center; gap: 8px; }
.cl-steps b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--np-surface-3, #242424); font-size: 12px; color: var(--np-ink-2, #a6a6a6); }
.cl-steps li.is-on { color: var(--np-ink, #f2f2f2); }
.cl-steps li.is-on b { background: var(--np-red-fill, #e5162e); color: #fff; }
.cl-create__preview { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.cl-cc.is-preview { pointer-events: none; }
.cl-pv-desc { min-height: 0; font-size: 14px; line-height: 20px; color: var(--np-ink-2, #a6a6a6); word-break: break-word; }
.cl-sum { display: grid; gap: 8px; margin-bottom: 14px; }
.cl-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--np-surface-2, #1a1a1a); font-size: 14px; }
.cl-sum b { font-family: var(--f-d); font-weight: 400; }
.cl-gets { margin: 0 0 16px; padding: 0 0 0 18px; font-size: 14px; line-height: 24px; color: var(--np-ink-2, #a6a6a6); }
.cl-gets b { color: var(--np-ink, #f2f2f2); }
.cl-create .cl-alert { margin-bottom: 14px; }

/* Окно (выше шапки сайта: у неё z-index 10050) */
.cl-modal { position: fixed; inset: 0; z-index: 10100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .62); animation: clFade .15s ease both; }
.cl-modal[hidden] { display: none !important; }
.cl-modal__box { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: var(--r-lg); background: var(--np-surface, #121212); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: clPop .18s ease both; }
html body .cl-modal__box h3 { margin: 0 0 8px !important; font-size: 18px !important; font-weight: 700 !important; line-height: 24px !important; }
html body .cl-modal__box p { margin: 0 0 14px !important; font-size: 14px; line-height: 21px; color: var(--np-ink-2, #a6a6a6); }
.cl-modal__err { min-height: 18px; font-size: 12px; color: var(--np-red, #ff233b); }
.cl-modal__btns { justify-content: flex-end; margin-top: 8px; }
html body .cl-modal .cl-btn { height: 38px; padding: 0 18px; font-size: 14px; }
.cl-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 14px; }
.cl-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--np-ink, #f2f2f2); cursor: pointer; }
.cl-check input { width: 16px; height: 16px; accent-color: var(--np-red, #ff233b); }
.cl-check.is-off { opacity: .45; cursor: default; }
body.cl-lock { overflow: hidden; }
@keyframes clFade { from { opacity: 0; } }
@keyframes clPop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.cl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10200; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; background: var(--np-surface-3, #242424); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 600; color: var(--np-ink, #f2f2f2); transform: translateX(-50%); animation: clPop .2s ease both; }
.cl-toast.is-err { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.cl-toast.is-ok { background: var(--np-green-soft, #13261a); color: var(--np-green, #5fc97e); }
.cl-toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .cl-pane.is-active, .cl-modal, .cl-modal__box, .cl-toast { animation: none; } .cl-cc { transition: none; } }

@media (max-width: 1200px) { .cl-tiles--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .cl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-create { grid-template-columns: minmax(0, 1fr); }
    .cl-create__preview { position: static; order: -1; }
    .cl-hero__body { flex-wrap: wrap; }
    .cl-hero__act { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .cl-hero__act > .cl-btn, .cl-hero__act > .cl-chip { align-self: center; }
    .cl-votes { margin-left: auto; }
}
@media (max-width: 760px) {
    .cl-head { flex-direction: column; align-items: stretch; }
    .cl-head__aside .cl-btn { flex: 1; height: 40px !important; }
    html body .cl-head h1, html body .cl-hero h1 { font-size: 28px !important; line-height: 34px !important; }
    .cl-head p { font-size: 14px; line-height: 21px; }
    .cl-card { padding: 16px; }
    .cl-card--table { padding: 4px 8px; }
    .cl-tile { padding: 12px; }
    .cl-tile > b { font-size: 22px; line-height: 28px; }
    .cl-search { max-width: none; margin: 0; flex-basis: 100%; }
    .cl-seg { width: 100%; }
    .cl-hero__body { gap: 12px; margin-top: -40px; padding: 0 16px 16px; }
    .cl-ava.is-lg { width: 76px; height: 76px; border-radius: 16px; }
    .cl-row { flex-wrap: wrap; }
    .cl-row__act { width: 100%; padding-left: 48px; }
    .cl-inline { flex-direction: column; align-items: stretch; }
    .cl-checks { grid-template-columns: minmax(0, 1fr); }
    .cl-votes { margin-left: 0; width: 100%; }
}

/* Тема задаёт [role="tablist"] колонкой и растягивает [role="tab"] — возвращаем строку */
html body .cl .cl-seg[role="tablist"], html body .cl .cl-tabs[role="tablist"] { flex-direction: row !important; width: auto; flex: none; }
html body .cl .cl-seg [role="tab"], html body .cl .cl-tabs [role="tab"] { width: auto !important; }
html body .cl code { display: inline !important; white-space: nowrap; }
/* Тема рисует свои чекбоксы (почти невидимые без body.nps-admin) — здесь штатные, с красной отметкой */
html body .cl-check input[type="checkbox"] { -webkit-appearance: checkbox !important; appearance: auto !important; flex: none; width: 16px !important; height: 16px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; accent-color: var(--np-red-fill, #e5162e); }
html body .cl-check input[type="checkbox"]::before, html body .cl-check input[type="checkbox"]::after { display: none !important; }
@media (max-width: 760px) {
    .cl-hero__body { flex-direction: column; align-items: flex-start; }
    .cl-hero__id { width: 100%; }
    .cl-hero__act { width: 100%; }
    html body .cl-hero h1 { font-size: 26px !important; line-height: 32px !important; }
}

/* ── Стили клана, «в игре», чат, банк (02.12.2026) ── */
.cl-stag { white-space: nowrap; }
.cl-on { display: inline-flex; align-items: center; gap: 5px; color: var(--np-green, #5fc97e); font-weight: 600; }
.cl-wait { color: var(--np-amber, #f0a53a); }
.cl-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--np-green, #5fc97e); box-shadow: 0 0 0 3px rgba(95, 201, 126, .18); }
.cl-cc__likes { display: inline-flex; gap: 10px; align-items: center; }
.cl-cc__likes .cl-on { font-size: 12px; }
html body .cl .cl-th { margin: 10px 10px 4px !important; }
.cl-seg--sub { display: inline-flex; margin-bottom: 14px; background: var(--np-surface-2, #1a1a1a); }
html body .cl button.cl-seg__i { border: 0 !important; background: transparent; box-shadow: none !important; font-family: var(--f-s); cursor: pointer; }
html body .cl button.cl-seg__i:focus { outline: 0; border: 0 !important; }
html body .cl button.cl-seg__i.is-active { background: var(--np-red-soft, #2a1215); color: var(--np-red, #ff233b); }
.cl-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cl-styles[hidden] { display: none; }
.cl-style { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--np-surface-2, #1a1a1a); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.cl-style.is-on { box-shadow: inset 0 0 0 1px var(--np-green, #5fc97e); }
.cl-style.is-locked .cl-style__pv { opacity: .5; }
.cl-style__info b { display: block; font-size: 14px; }
.cl-style__info small { font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
.cl-style__pv { display: flex; align-items: center; min-height: 54px; padding: 10px 12px; border-radius: 8px; background: #0b0d10; overflow: hidden; }
/* строка таблицы счёта CS2 */
.cl-sb { display: grid; grid-template-columns: auto minmax(0, 1fr) 26px 26px; gap: 8px; align-items: center; width: 100%; font: 600 13px/18px var(--f-s); color: #cfd6de; }
.cl-sb__tag { color: #e4ae39; }
.cl-sb__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-sb__num { text-align: right; color: #8b97a3; font-variant-numeric: tabular-nums; }
/* строка чата CS2 */
.cl-chatpv { font: 500 13px/18px var(--f-s); color: #e6e6e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-chatpv__tag i { font-style: normal; font-weight: 700; }
.cl-chatpv b { color: #9db4e8; }
.cl-glowpv { display: flex; justify-content: center; width: 100%; }
.cl-glowpv span { width: 26px; height: 40px; border-radius: 13px 13px 6px 6px; background: #2b3138; box-shadow: 0 0 0 2px var(--glow), 0 0 14px 2px var(--glow); }
/* чат */
.cl-chat__feed { display: flex; flex-direction: column; gap: 8px; max-height: 420px; min-height: 120px; overflow-y: auto; padding: 4px 2px; }
.cl-msg { align-self: flex-start; max-width: min(560px, 85%); padding: 8px 12px; border-radius: 10px 10px 10px 4px; background: var(--np-surface-2, #1a1a1a); }
.cl-msg.is-me { align-self: flex-end; border-radius: 10px 10px 4px 10px; background: var(--np-red-soft, #2a1215); }
.cl-msg small { display: block; font-size: 11px; color: var(--np-ink-3, #7a7a7a); }
.cl-msg small b { color: var(--np-ink-2, #a6a6a6); }
.cl-msg p { font-size: 14px; line-height: 20px; word-break: break-word; }
.cl-chat__form { margin-top: 12px; }
/* превью эффектов частиц (аура, шлейф, появление, смерть): гиф /images/clans/fx/<id>.gif или заглушка */
.cl-seg--sub { max-width: 100%; }
.cl-style__pv:has(.cl-fxpv) { padding: 0; }
.cl-fxpv { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: radial-gradient(120% 90% at 50% 110%, #1d2430 0%, #0b0d10 70%); }
.cl-fxpv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl-fxpv.is-stub { flex-direction: column; gap: 6px; color: var(--np-ink-3, #7a7a7a); font-size: 12px; }
html body .cl .cl-fxpv.is-stub svg { width: 26px; height: 26px; fill: currentColor; opacity: .7; }
/* смена названия клана */
.cl-rename { margin-bottom: 4px; }
.cl-rename .cl-inline { margin-top: 0; align-items: stretch; }
.cl-rename .cl-inline input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) { .cl-rename .cl-inline { flex-direction: column; } }
.cl-rename__row { display: flex; align-items: flex-end; gap: 8px; }
.cl-rename__row .cl-field { margin-bottom: 0; }
.cl-rename__tag { flex: 0 0 150px; }
.cl-rename__row .cl-btn { height: 40px !important; flex: none; }
.cl-rename__hint { display: block; margin: 6px 0 14px; font-size: 12px; color: var(--np-ink-3, #7a7a7a); }
@media (max-width: 560px) { .cl-rename__row { flex-wrap: wrap; } .cl-rename__row .cl-grow { flex-basis: 100%; } .cl-rename__tag { flex: 1 1 0; } }
