/* =====================================================================
   MixerGrief · Панель КП — стиль в духе Trace
   ===================================================================== */
:root {
  --accent: #4c7dff;
  --accent-rgb: 76, 125, 255;
  --bg: #0e0f12;
  --side: #0e0f12;
  --panel: #15161a;
  --panel-2: #1a1b20;
  --panel-3: #212228;
  --panel-4: #282a31;
  --line: #202127;
  --line-2: #292a31;
  --line-3: #34363e;
  --text: #f1f2f4;
  --text-2: #9a9ca7;
  --text-3: #5f616c;
  --ok: #2fca72;
  --warn: #f2b544;
  --bad: #f2545b;
  --info: #4c9aff;
  --radius: 10px;
  --sidebar: 228px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-d: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--accent-rgb), .35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #24252b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2f3038; }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
h1, h2, h3 { font-family: var(--font-d); }

/* ---------- анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.content > * { animation: rise .45s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(5) { animation-delay: .16s; }
.content > *:nth-child(6) { animation-delay: .2s; }
.content > *:nth-child(n+7) { animation-delay: .24s; }
.stagger > * { animation: rise .4s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .03s; }
.stagger > *:nth-child(3) { animation-delay: .06s; }
.stagger > *:nth-child(4) { animation-delay: .09s; }
.stagger > *:nth-child(5) { animation-delay: .12s; }
.stagger > *:nth-child(6) { animation-delay: .15s; }
.stagger > *:nth-child(7) { animation-delay: .18s; }
.stagger > *:nth-child(8) { animation-delay: .21s; }
.stagger > *:nth-child(9) { animation-delay: .24s; }
.stagger > *:nth-child(n+10) { animation-delay: .27s; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; }
.sk-rows { display: flex; flex-direction: column; gap: 6px; }
.sk-rows .skeleton { height: 54px; }

/* ---------- boot / auth ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--panel-3); border-top-color: var(--text-2); animation: spin .7s linear infinite; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 400px at 50% -10%, rgba(var(--accent-rgb), .08), transparent 70%); }
.auth-card { width: 100%; max-width: 380px; animation: pop .5s var(--ease) both; }
.auth-card .brand { justify-content: center; margin-bottom: 24px; }
.auth-card .brand-name { font-size: 30px; }
.auth-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.auth-card p.sub { margin: 0 0 18px; color: var(--text-3); }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 8px; }
.brand-name { font-weight: 900; font-size: 21px; letter-spacing: -.02em; text-transform: uppercase; font-style: italic; font-family: var(--font-d); line-height: 1; }
.brand-chip { font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 5px; background: var(--panel-3); color: var(--text-2); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 10px 10px; z-index: 40;
  transition: margin-left .3s var(--ease), transform .3s var(--ease);
}
.app.collapsed .sidebar { margin-left: calc(var(--sidebar) * -1); }
.sidebar .brand { padding: 2px 6px 14px; }
.search-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 6px 0 10px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.search-btn:hover { border-color: var(--line-3); color: var(--text); background: var(--panel-2); }
.search-btn kbd { margin-left: auto; }
kbd { font: 600 10.5px var(--font); padding: 2px 5px; border-radius: 4px; background: var(--panel-3); color: var(--text-2); }
.nav { flex: 1; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-group { margin-top: 16px; }
.nav-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 0 8px 5px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--text-2);
  transition: background .15s, color .15s; margin-bottom: 1px; font-weight: 600; font-size: 12.5px;
}
.nav-item svg { color: var(--text-3); transition: color .15s, transform .2s var(--ease); }
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item:hover svg { color: var(--text-2); transform: scale(1.08); }
.nav-item.active { color: var(--text); background: var(--panel-2); }
.nav-item.active svg { color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--text); animation: fadeIn .3s ease; }
.nav-item .count { margin-left: auto; font-size: 10.5px; font-weight: 700; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 5px; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); }
.nav-item .count.hot { background: var(--accent); color: #fff; animation: pulse 2s ease infinite; }

.user-card { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; border: 1px solid var(--line); margin-top: 8px; background: var(--panel); transition: border-color .15s; }
.user-card:hover { border-color: var(--line-2); }
.user-card .who { min-width: 0; flex: 1; line-height: 1.3; cursor: pointer; }
.user-card .who b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .who span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: rgba(14, 15, 18, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar .title { font-weight: 700; font-size: 13.5px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.topbar .right .av { cursor: pointer; transition: transform .2s var(--ease); }
.topbar .right .av:hover { transform: scale(1.08); }
.content { padding: 26px 28px 70px; width: 100%; max-width: 960px; margin: 0 auto; }
.content.wide { max-width: 1140px; }

.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; margin: 0; letter-spacing: -.015em; font-weight: 800; }
.page-head p { margin: 3px 0 0; color: var(--text-3); font-size: 12.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.group-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; margin: 22px 0 10px; }
.group-title:first-child { margin-top: 0; }
.group-title svg { width: 13px; height: 13px; color: var(--text-3); }
.group-title .n { color: var(--text-3); font-weight: 600; font-size: 12px; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.card-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.card-head .sub { color: var(--text-3); font-size: 12px; }
.card-head .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ico-box { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); flex: none; }
.ico-box.gray { background: var(--panel-3); color: var(--text-2); }
.card-title h3 { margin: 0; font-size: 14px; font-weight: 700; }
.card-title p { margin: 1px 0 0; font-size: 12px; color: var(--text-2); }

.grid { display: grid; gap: 10px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mt { margin-top: 10px; }
.mt-l { margin-top: 24px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 0 0 10px; }

/* stat — как «Игроки 33» в Trace */
.stat { padding: 14px 16px; position: relative; overflow: hidden; min-height: 92px; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.stat .top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 12.5px; position: relative; z-index: 1; }
.stat .top svg { color: var(--text-3); width: 14px; height: 14px; }
.stat .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.stat .val small { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.stat .hint { color: var(--text-3); font-size: 11px; margin-top: 3px; position: relative; z-index: 1; }
.stat .spark { position: absolute; right: 0; left: 30%; bottom: 14px; height: 44px; pointer-events: none; }
.stat .spark path.l { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 400; animation: draw 1.4s .2s var(--ease) both; }
.stat .spark path.a { fill: url(#sg); animation: fadeIn 1s .6s both; }
.stat.link { cursor: pointer; }
.stat.link:hover { border-color: var(--line-3); background: var(--panel-2); transform: translateY(-2px); }

.mini-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.mini { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; transition: border-color .2s; }
.mini:hover { border-color: var(--line-2); }
.mini .ico { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-3); }
.mini > div:last-child { line-height: 1.25; }
.mini span { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.mini b { display: block; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 12px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.pill svg { color: var(--text-2); width: 13px; height: 13px; }
.pill:hover { background: var(--panel-2); border-color: var(--line-3); }
.pill:active { transform: scale(.97); }

/* быстрый доступ */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.quick-item > svg:first-child { margin-top: 1px; color: var(--text-2); width: 16px; height: 16px; }
.quick-item b { display: block; font-weight: 700; font-size: 13px; }
.quick-item span { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.quick-item .arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 13px; height: 13px; transition: transform .25s var(--ease), color .2s; }
.quick-item:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-1px); }
.quick-item:hover .arrow { color: var(--text); transform: translate(2px, -60%); }

.sub-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-tile { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; }
.sub-tile:hover { background: var(--panel-3); border-color: var(--line-2); }
.sub-tile > svg:first-child { color: var(--text-2); }
.sub-tile b { display: block; font-size: 12.5px; font-weight: 700; }
.sub-tile span { display: block; font-size: 11px; color: var(--text-3); }
.sub-tile .chev { margin-left: auto; color: var(--text-3); transition: transform .2s var(--ease); }
.sub-tile:hover .chev { transform: translateX(2px); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s, opacity .15s; white-space: nowrap;
}
.btn svg { width: 13px; height: 13px; }
.btn:hover { background: var(--panel-3); border-color: var(--line-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--text); border-color: var(--text); color: #0e0f12; }
.btn.primary:hover { background: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: rgba(242, 84, 91, .1); border-color: rgba(242, 84, 91, .22); color: #ff7a80; }
.btn.danger:hover { background: rgba(242, 84, 91, .18); }
.btn.ok { background: rgba(47, 202, 114, .1); border-color: rgba(47, 202, 114, .24); color: var(--ok); }
.btn.ok:hover { background: rgba(47, 202, 114, .18); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 6px; }
.btn.block { width: 100%; height: 36px; font-size: 12.5px; }
.icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; transition: background .15s, color .15s, transform .12s; vertical-align: middle; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.del:hover { color: var(--bad); background: rgba(242, 84, 91, .1); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > label { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.field > label .req { color: var(--accent); }
.field .hint { font-size: 11px; color: var(--text-3); }
.input, select.input, textarea.input {
  width: 100%; height: 34px; padding: 0 11px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); outline: none; font-size: 12.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--line-3); }
textarea.input { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; }
select.input { appearance: none; padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f616c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); background: var(--panel); }
input[type="date"].input, input[type="month"].input { color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-error { background: rgba(242, 84, 91, .08); border: 1px solid rgba(242, 84, 91, .2); color: #ff8a8f; padding: 8px 11px; border-radius: 7px; font-size: 12px; margin-bottom: 13px; animation: pop .25s var(--ease); }

/* большая строка поиска, как в Trace */
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); transition: color .15s; }
.search .input { padding-left: 38px; height: 38px; border-radius: 10px; background: var(--panel-3); border-color: transparent; font-size: 13px; }
.search .input:hover { background: var(--panel-4); }
.search .input:focus { background: var(--panel-3); }
.search:focus-within svg { color: var(--text); }
.search.big { margin-bottom: 12px; }
.search.big .input { height: 40px; }

.tabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.tab-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 6px; background: var(--panel-4); transition: transform .3s var(--ease), width .3s var(--ease); pointer-events: none; }
.tab { position: relative; z-index: 1; border: 0; background: transparent; color: var(--text-3); height: 24px; padding: 0 9px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--text); }
.tab .n { font-size: 10.5px; color: var(--text-3); font-weight: 600; }

.filters { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.filters select.input { width: auto; min-width: 160px; height: 32px; background-color: var(--panel-2); }

/* ---------- строки-карточки (раскрывающиеся) ---------- */
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.row:hover { border-color: var(--line-2); }
.row.open { border-color: var(--line-3); background: var(--panel-2); }
.row-head { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; cursor: pointer; min-height: 56px; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 800; font-size: 13px; }
.row-title .sid { color: var(--text-3); font-weight: 600; font-size: 12px; }
.row-meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--text-2); }
.row-meta .mi { display: inline-flex; align-items: center; gap: 5px; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta .mi > span:first-child { color: var(--text-3); }
.row-meta .mi b { font-weight: 700; color: var(--text); }
.row-right { display: flex; align-items: center; gap: 10px; flex: none; }
.row-right .amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.row-right .prog { min-width: 130px; }
.chev { color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.row:hover .chev { color: var(--text-2); }
.row.open .chev { transform: rotate(180deg); color: var(--text); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.row.open .row-body { grid-template-rows: 1fr; }
.row-body > div { overflow: hidden; }
.row-details { border-top: 1px solid var(--line); margin: 0 14px; padding: 12px 0 14px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease); }
.row.open .row-details { opacity: 1; transform: none; transition-delay: .08s; }
.det-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 18px; }
.det-grid .wide { grid-column: 1 / -1; }
.det-grid > div > span { display: block; font-size: 10.5px; font-weight: 700; color: var(--text-3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.det-grid div > div { font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.det-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.det-foot .by { color: var(--text-3); font-size: 11.5px; margin-right: auto; }

/* ---------- table (внутри карточек) ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 11px 16px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .15s; animation: fadeIn .4s both; }
.t tbody tr:hover { background: rgba(255, 255, 255, .018); }
.t td.actions { text-align: right; white-space: nowrap; width: 1%; }
.t .clip { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t .num { font-variant-numeric: tabular-nums; }

.empty { padding: 34px 20px; text-align: center; color: var(--text-3); font-size: 12px; }
.empty .ico { width: 38px; height: 38px; border-radius: 10px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); }
.empty b { display: block; color: var(--text-2); margin-bottom: 2px; font-size: 12.5px; font-weight: 700; }
.empty-line { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); font-size: 12px; }
.empty-line svg { color: var(--ok); }
.empty-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- badges / avatars ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 800; background: var(--panel-3); color: var(--text-2); white-space: nowrap; letter-spacing: .01em; }
.badge svg { width: 11px; height: 11px; }
.badge.ok { color: #08190f; background: var(--ok); }
.badge.warn { color: #1d1405; background: var(--warn); }
.badge.bad { color: #fff; background: #d9434a; }
.badge.info { color: #fff; background: #3c74e6; }
.badge.acc { color: #0e0f12; background: var(--text); }
.badge.outline { background: transparent; border: 1px solid var(--line-3); color: var(--text-2); }
.badge.soft-ok { color: var(--ok); background: rgba(47, 202, 114, .12); }

.who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-cell b { font-weight: 700; }
.who-cell .s { font-size: 11px; color: var(--text-3); }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; background: var(--panel-3); color: var(--text); }
.av.lg { width: 56px; height: 56px; font-size: 18px; }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.av.md { width: 26px; height: 26px; font-size: 9.5px; }

/* ---------- progress ---------- */
.bar { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--text-2); transform-origin: left; animation: grow .9s .15s var(--ease) both; }
.bar.acc > i { background: var(--accent); }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }
.prog { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.prog .bar { flex: 1; }
.prog span { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; font-weight: 600; }

.norm-item { margin-bottom: 13px; }
.norm-item:last-child { margin-bottom: 0; }
.norm-item .row-l { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; }
.norm-item .row-l b { font-weight: 600; color: var(--text-2); }
.norm-item .row-l span { font-variant-numeric: tabular-nums; font-weight: 700; }
.norm-item .bar { height: 6px; }
.big-pct { font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-pct small { font-size: 17px; color: var(--text-3); }

.week-nav { display: inline-flex; align-items: center; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; height: 32px; }
.week-nav .icon-btn { width: 26px; height: 26px; }
.week-nav .lbl { padding: 0 8px; font-weight: 700; font-size: 12px; min-width: 136px; text-align: center; }

/* ---------- lists ---------- */
.list-row { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:hover { background: rgba(255, 255, 255, .015); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { font-weight: 700; }
.list-row .grow .s { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.dot-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); flex: none; }

/* ---------- settings ---------- */
.set-section { margin-top: 22px; }
.set-section > h4 { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; font-weight: 800; }
.set-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.set-row:last-child { border-bottom: 0; }
.set-row.click { cursor: pointer; }
.set-row.click:hover { background: var(--panel-2); }
.set-row .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); flex: none; }
.set-row .ico.blue { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.set-row .txt { flex: 1; min-width: 0; }
.set-row .txt b { display: block; font-weight: 700; font-size: 12.5px; }
.set-row .txt span { font-size: 11.5px; color: var(--text-3); }
.set-row .chev { transform: rotate(-90deg); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .2s var(--ease); }
.swatch:hover { transform: scale(1.15); }
.swatch.active { outline-color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 3px 0 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; animation: pop .25s var(--ease) both; }
.chip button { border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; transition: .15s; }
.chip button:hover { color: var(--text); background: var(--panel-3); }
.chip button.rm:hover { color: var(--bad); }
.chip .ord { color: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.danger-zone { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 38px; border-radius: 9px; background: rgba(242, 84, 91, .1); border: 0; color: #ff6b72; font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background .15s, transform .12s; }
.danger-zone:hover { background: rgba(242, 84, 91, .16); }
.danger-zone:active { transform: scale(.99); }
.foot-note { text-align: center; color: var(--text-3); font-size: 11.5px; margin-top: 14px; }

/* ---------- profile ---------- */
.profile-hero { display: flex; align-items: center; gap: 16px; padding: 18px; }
.profile-hero h2 { margin: 0; font-size: 19px; font-weight: 800; }
.profile-hero .meta { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 1fr 1fr; }
.kv > div { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; font-weight: 600; }
.kv b { font-weight: 700; }

.code-big { font-family: var(--mono); font-size: 14px; letter-spacing: .05em; font-weight: 600; }
.copy-line { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--panel-2); border: 1px dashed var(--line-3); border-radius: 8px; }
.copy-line .code-big { flex: 1; }

.dist-row { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; padding: 6px 0; font-size: 12px; }
.dist-row > span:last-child { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.dist-row .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 6, 8, .62); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease both; overflow-y: auto; }
.modal-back.closing { animation: fadeOut .18s ease both; }
.modal { width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: pop .3s var(--ease) both; }
.modal-back.closing .modal, .modal-back.closing .palette { animation: popOut .18s ease both; }
.modal.sm { max-width: 380px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px 13px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 18px; max-height: calc(100vh - 190px); overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }

/* ---------- command palette ---------- */
.palette { width: 100%; max-width: 540px; align-self: start; margin-top: 12vh; background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; animation: pop .25s var(--ease) both; }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette .pin input { flex: 1; height: 46px; border: 0; outline: none; background: transparent; font-size: 13.5px; color: var(--text); }
.palette .res { max-height: 360px; overflow-y: auto; padding: 6px; }
.palette .grp { font-size: 10.5px; font-weight: 700; color: var(--text-3); padding: 8px 10px 4px; }
.palette .it { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-weight: 600; transition: background .1s; }
.palette .it span:first-of-type { color: var(--text); }
.palette .it .s { margin-left: auto; color: var(--text-3); font-size: 11px; font-weight: 500; }
.palette .it.sel { background: var(--panel-3); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line-3); border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: slideIn .35s var(--ease) both; font-weight: 600; font-size: 12.5px; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--bad); }
.toast.out { opacity: 0; transform: translateX(16px); transition: .3s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); margin-left: 0 !important; }
  .app.nav-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; animation: fadeIn .2s; }
  .content { padding: 18px 14px 50px; }
  .g-3, .g-2, .quick { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .row-right .prog { min-width: 90px; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr 1fr; }
  .form-row, .kv, .sub-tiles { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { border-right: 0; }
  .kv > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .dist-row { grid-template-columns: 100px 1fr 34px; }
  .stat .spark { display: none; }
  .row-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
.content.narrow { max-width: 920px; }

/* =====================================================================
   v3 — фирменный стиль MixerGrief (по образцу ds.mixergrief.net)
   ===================================================================== */
:root { --accent: #ff6a2b; --accent-rgb: 255, 106, 43; }

/* бренд */
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-name { background: linear-gradient(90deg, #ff8a3d, #ff4f2b); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 21px; padding-right: 5px; }
.brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sidebar .brand-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 2px 4px 14px 6px; }
.sidebar .brand-row .brand { padding: 0; }
.auth-card .brand { align-items: center; }

/* кнопки: основная — оранжевая, как «+ Добавить» */
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 18px rgba(var(--accent-rgb), .25); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.08); }

/* счётчик под поиском */
.side-counter { display: flex; align-items: center; gap: 9px; height: 34px; margin-top: 8px; padding: 0 12px 0 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--text-2); transition: border-color .15s, background .15s; }
.side-counter svg { color: var(--accent); }
.side-counter b { margin-left: auto; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.side-counter:hover { border-color: var(--line-3); background: var(--panel-2); }

/* группы меню: сворачиваются */
.nav-label { display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 700; cursor: pointer; user-select: none; border-radius: 5px; transition: color .15s; }
.nav-label:hover { color: var(--text-2); }
.nav-label svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-group.closed .nav-label svg { transform: rotate(-90deg); }
.nav-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.nav-items > div { overflow: hidden; }
.nav-group.closed .nav-items { grid-template-rows: 0fr; }
.nav-item.active::before { background: var(--accent); }
.nav-item .pin { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: var(--text-3); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.nav-item .pin svg { width: 12px; height: 12px; }
.nav-item:hover .pin { opacity: 1; }
.nav-item .pin:hover { background: var(--panel-3); color: var(--text); }
.nav-item .pin.on { color: var(--accent); }
.nav-item .count + .pin { margin-left: 4px; }
.nav-group.pinned .nav-label { cursor: default; }
.nav-group.pinned .nav-item svg:first-child { color: var(--accent); }

/* шапка */
.topbar { height: 54px; }
.topbar .tt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.topbar .tt b { font-size: 13.5px; font-weight: 800; }
.topbar .tt span { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 9px; cursor: pointer; transition: background .15s; }
.top-user:hover { background: var(--panel); }
.top-user .n { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.top-user .n b { color: var(--text); font-size: 12.5px; font-weight: 700; }
.top-user .n span { color: var(--text-3); font-size: 10.5px; }
.topbar .right .icon-btn { color: var(--text-2); }
.spin-once svg { animation: spin .6s var(--ease); }

/* заголовок страницы с «бровью» */
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.page-head h1 { font-size: 22px; }

/* карточки статистики: подпись капсом и цветная иконка */
.stat .top { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--text-2); align-items: flex-start; }
.stat .top .sico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }
.stat .top .sico svg { color: var(--c, var(--accent)); width: 15px; height: 15px; }
.stat .val { margin-top: 2px; font-size: 26px; }
.stat-bar { margin-top: 10px; }

/* бейджи: точка + полупрозрачный фон + рамка */
.badge { height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-3); background: var(--panel-3); color: var(--text-2); letter-spacing: 0; }
.badge.ok, .badge.warn, .badge.bad, .badge.info, .pos { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 38%, transparent); color: var(--c); }
.badge.ok { --c: var(--ok); } .badge.warn { --c: var(--warn); } .badge.bad { --c: #ff6b72; } .badge.info { --c: var(--info); }
.badge.ok::before, .badge.warn::before, .badge.bad::before, .badge.info::before, .pos::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.outline { background: transparent; }
.pill-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-3); color: var(--text-2); background: var(--panel-2); white-space: nowrap; }
.pill-st.on { color: var(--text); border-color: #4a4c55; }
.pill-st.vac { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill-st.off { color: var(--text-3); }
.warns { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); --c: var(--ok); }
.warns.w1, .warns.w2 { --c: var(--warn); }
.warns.w3 { --c: #ff6b72; }
.id-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s; }
.id-chip:hover { border-color: var(--line-3); color: var(--text); }
.id-chip svg { width: 12px; height: 12px; }

/* аватары как в образце — круглые, со своим цветом */
.av { font-weight: 800; }

/* карточка участника */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 12px; margin-bottom: 14px; cursor: pointer; transition: color .15s, gap .2s var(--ease); }
.back-link:hover { color: var(--text); gap: 9px; }
.mc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.mc-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.mc-head .tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mc-head .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.mc-col { display: grid; gap: 10px; }
.box-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.box-title svg { color: var(--accent); }
.prof-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.prof-kv > div:last-child { border-bottom: 0; }
.prof-kv > div > span { color: var(--text-3); }
.prof-kv b .dir-tag { margin-left: 4px; }
.prof-kv b { font-weight: 700; text-align: right; }
.warn-ctl { display: flex; align-items: center; gap: 8px; }
.warn-ctl .warns { height: 28px; padding: 0 10px; font-size: 12.5px; }
.timeline { position: relative; padding-left: 16px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 14px; animation: rise .4s var(--ease) both; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -15px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.tl-item.warn::before { background: var(--warn); }
.tl-item b { font-weight: 700; font-size: 12.5px; }
.tl-item .t { color: var(--text-3); font-size: 11px; margin-left: 6px; }
.tl-item .d { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.tl-item .r { color: var(--text-3); font-size: 11.5px; }
@media (max-width: 900px) { .mc-grid { grid-template-columns: 1fr; } }

/* ---------- Уровни доступа ---------- */
.badge.lvl{font-variant-numeric:tabular-nums}
.chip.pos-chip{border-color:color-mix(in srgb,var(--c) 35%,transparent);background:color-mix(in srgb,var(--c) 10%,transparent)}
.chip.pos-chip .ord{color:var(--c)}
.chip .lv,.chip .lv-sel{font-size:11px;font-weight:600;color:var(--text-2);background:rgba(255,255,255,.06);border:1px solid var(--border);border-radius:6px;padding:1px 4px;margin-left:4px}
.chip .lv-sel{cursor:pointer;color:var(--text);font-family:inherit;outline:none}
.chip .lv-sel option{background:#17181c;color:#e8e8ea}
.chip.locked{opacity:.75}

/* ---------- Настройки ---------- */
.set-tabs { display: flex; width: 100%; padding: 5px; gap: 4px; border-radius: 14px; background: var(--panel); border-color: var(--line); flex-wrap: nowrap; overflow-x: auto; }
.set-tabs .tab { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; gap: 7px; flex: none; }
.set-tabs .tab svg { width: 15px; height: 15px; }
.set-tabs .tab-ind { top: 5px; bottom: 5px; border-radius: 10px; background: var(--panel-3); }
.set-pane { animation: fadeIn .18s ease both; }
.set-note { margin: 12px 2px 0; font-size: 12px; color: var(--text-3); }
.acc-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.av.xl { width: 64px; height: 64px; font-size: 21px; flex: none; }
.acc-main { flex: 1; min-width: 0; }
.acc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-name b { font-size: 17px; font-weight: 800; margin-right: 2px; }
.acc-name .badge { height: 24px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; }
.badge.group { color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); gap: 6px; }
.badge.group::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-login { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.acc-chips { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.acc-chips .id-chip { height: 28px; background: var(--bg); }
.acc-chips .warns { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; }

.sec-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 72px; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }
.sec-row.slim { min-height: 56px; padding-top: 11px; padding-bottom: 11px; }
.sec-row.off .txt, .sec-row.off .sec-ic { opacity: .55; }
.sec-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--text-2); }
.sec-ic svg { width: 17px; height: 17px; }
.sec-ic.acc { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.sec-row .txt, .pk .txt { flex: 1; min-width: 0; }
.sec-row .txt b, .pk .txt b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.sec-row .txt b svg.ok { color: var(--ok); width: 14px; height: 14px; }
.sec-row .txt span, .pk .txt span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.state { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.state.muted-state { color: var(--text-3); border: 1px solid var(--line-2); }
.state.ok { color: var(--ok); background: rgba(47, 202, 114, .1); border: 1px solid rgba(47, 202, 114, .25); }
.sec-block { padding: 0 20px 18px; }
.sec-block .sec-row.bare { padding: 16px 0 12px; border: 0; min-height: 0; }
.pk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pk .sec-ic { width: 32px; height: 32px; }
.sec-note { margin-top: 10px; font-size: 12px; color: var(--text-3); }

.qr { width: 200px; margin: 0 auto 12px; padding: 4px; border-radius: 12px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.secret { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-bottom: 14px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line-3); background: var(--bg); cursor: pointer; font: 600 12px var(--mono); line-height: 1.6; }
.secret span { word-spacing: 2px; }
.secret svg { color: var(--text-3); }
.input.otp { text-align: center; font: 700 18px var(--mono); letter-spacing: .4em; }

.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--panel-3); cursor: pointer; flex: none; transition: background .2s, border-color .2s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-3); transition: transform .22s var(--ease), background .2s; }
.switch.on { background: rgba(var(--accent-rgb), .25); border-color: rgba(var(--accent-rgb), .6); }
.switch.on i { transform: translateX(16px); background: var(--accent); }

/* =====================================================================
   Плоский вид: ровные поверхности, одна ширина страниц, без свечений
   ===================================================================== */
:root { --bg: #0b0b0d; --side: #0b0b0d; --panel: #151517; --panel-2: #1c1c1f; --panel-3: #242428; --panel-4: #2d2d32;
  --line: #202024; --line-2: #29292e; --line-3: #36363d; --radius: 14px; }
body { background: var(--bg); }
.sidebar, .topbar { background: var(--bg); backdrop-filter: none; }
.topbar { height: 58px; padding: 0 24px; }
.content { max-width: 1060px; padding: 26px 24px 70px; }
.content > *, .content > *:nth-child(n) { animation: fadeIn .18s ease both; animation-delay: 0s; }
.stagger > *, .stagger > *:nth-child(n) { animation: fadeIn .18s ease both; animation-delay: 0s; }
.nav-item { border-radius: 9px; height: 32px; }
.nav-item:hover svg { transform: none; }
.nav-item.active { background: var(--panel-2); color: var(--text); }
.nav-item.active svg { color: var(--accent); }
.user-card { border-radius: 12px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; letter-spacing: -.025em; font-weight: 800; }
.page-head p { font-size: 13px; }
.eyebrow { letter-spacing: .16em; }
.card { border-radius: var(--radius); }
.set-group, .empty-card { border-radius: var(--radius); }
.stat { min-height: 104px; padding: 16px 18px; }
.stat .val { font-size: 26px; }
.stat.link:hover, .quick-item:hover { transform: none; }
.modal { border-radius: 16px; }
.modal-text { margin: 0 0 14px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.btn { border-radius: 9px; height: 34px; padding: 0 14px; }
.btn:active, .pill:active { transform: none; }
.btn.sm { height: 28px; border-radius: 8px; padding: 0 10px; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--accent); filter: brightness(1.08); box-shadow: none; }
.input, select.input, textarea.input { border-radius: 10px; background: var(--panel-2); border-color: var(--line-2); min-height: 38px; }

/* аватарки-картинки */
.av.img { padding: 0; overflow: hidden; background: var(--panel-3); }
.av.img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.av-edit { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-4); border: 2px solid var(--panel); color: var(--text-2); transition: background .15s, color .15s; }
.av-cam svg { width: 12px; height: 12px; }
.av-edit:hover .av-cam, .av-edit:focus-visible .av-cam { background: var(--accent); color: #fff; }

/* ---------- свои выпадающие списки и календарь ---------- */
.native-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%) !important; }
.csel, .cdate { display: inline-flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; padding: 0 10px 0 11px; color: var(--text); width: 100%; }
.csel .cv, .cdate .cv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csel .cv.ph, .cdate .cv.ph { color: var(--text-3); }
.csel .cc, .cdate .cc { width: 14px; height: 14px; color: var(--text-3); transition: transform .22s var(--ease); }
.cdate .ci { width: 14px; height: 14px; color: var(--accent); }
.csel.open, .cdate.open { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.csel.open .cc, .cdate.open .cc { transform: rotate(180deg); }
.csel:disabled { opacity: .5; cursor: not-allowed; }
.cpop { position: fixed; z-index: 400; background: rgba(22, 23, 30, .96); backdrop-filter: blur(16px); border: 1px solid var(--line-3); border-radius: 13px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.3); padding: 6px; animation: cpopIn .16s var(--ease) both; transform-origin: top center; }
.cpop.up { transform-origin: bottom center; }
.cpop.out { animation: cpopOut .14s ease both; }
@keyframes cpopIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
@keyframes cpopOut { to { opacity: 0; transform: translateY(-4px) scale(.97); } }
.clist { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.clist .opt { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 12.5px; outline: none; transition: background .12s, color .12s; }
.clist .opt:hover, .clist .opt:focus-visible { background: rgba(255,255,255,.06); color: var(--text); }
.clist .opt.sel { color: var(--text); background: rgba(var(--accent-rgb), .14); }
.clist .opt svg { width: 14px; height: 14px; color: var(--accent); }
.clist .opt:disabled { opacity: .4; cursor: not-allowed; }
.ccal { width: 284px; padding: 12px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-title { flex: 1; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 13.5px; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.cal-title b { color: var(--accent); font-weight: 800; }
.cal-title:hover { background: rgba(255,255,255,.05); }
.cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.cal-nav:hover { background: var(--panel-3); color: var(--text); }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-wd span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cal-wd span.we { color: color-mix(in srgb, var(--accent) 70%, var(--text-3)); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid.nx { animation: calNx .22s var(--ease); } .cal-grid.pv { animation: calPv .22s var(--ease); }
.cal-months.nx { animation: calNx .22s var(--ease); } .cal-months.pv { animation: calPv .22s var(--ease); }
@keyframes calNx { from { opacity: 0; transform: translateX(14px); } }
@keyframes calPv { from { opacity: 0; transform: translateX(-14px); } }
.cd { height: 34px; border: 0; background: none; color: var(--text); border-radius: 9px; cursor: pointer; font-size: 12.5px; font-variant-numeric: tabular-nums; position: relative; transition: background .12s, color .12s, transform .12s; }
.cd:hover { background: rgba(255,255,255,.07); }
.cd:active { transform: scale(.92); }
.cd.we { color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.cd.other { color: var(--text-3); opacity: .55; }
.cd.today { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.cd.sel, .cm.sel { background: var(--accent); color: #fff; font-weight: 700; opacity: 1; }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.cm { height: 44px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); border-radius: 10px; cursor: pointer; font-weight: 600; transition: background .12s, border-color .12s; }
.cm:hover { background: var(--panel-3); border-color: var(--line-3); }
.cm.today { border-color: rgba(var(--accent-rgb), .55); }
.cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.cal-link { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.cal-link:hover { background: rgba(var(--accent-rgb), .1); }
.cal-link.dim { color: var(--text-3); }
.cal-link.dim:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ---------- вход и регистрация: одна простая карточка ---------- */
.auth-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow.g1 { width: 620px; height: 620px; left: -200px; top: -260px; background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 65%); }
.glow.g2 { width: 560px; height: 560px; right: -220px; bottom: -260px; background: radial-gradient(circle, rgba(116, 92, 255, .3), transparent 65%); }
.glow.g3, .grid-lines { display: none; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-card { width: 100%; max-width: 420px; background: #151517; border-radius: 16px; padding: 30px 26px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: pop .4s var(--ease) both; }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 8px; }
.login-logo .brand-name { font-size: 28px; }
.login-tag { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--accent); color: #fff; font: italic 900 14px/24px var(--font-d); }
.login-text { margin: 12px auto 22px; max-width: 360px; text-align: center; color: #a3a4ab; font-size: 13px; line-height: 1.5; font-weight: 600; }
.lf { margin-bottom: 10px; }
.lf-box { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 10px; background: #222225; border: 1px solid transparent; cursor: text; transition: border-color .15s, background .15s; }
.lf-box svg { width: 17px; height: 17px; color: #7d7e86; flex: none; }
.lf-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text); font-size: 14px; font-weight: 600; }
.lf-box input::placeholder { color: #6f7078; font-weight: 600; }
.lf-box input.up { text-transform: uppercase; letter-spacing: .04em; }
.lf-box:hover { background: #26262a; }
.lf-box:focus-within { border-color: rgba(var(--accent-rgb), .55); background: #242428; }
.lf.bad .lf-box { border-color: #e5484d; }
.lf-err { font-size: 12px; font-weight: 700; color: #ff5a5f; margin: 5px 2px 0; }
.lf-err:empty { display: none; }
.lf-err.general { text-align: center; margin: 4px 0 8px; }
.login-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.lb { height: 46px; border: 0; border-radius: 10px; background: #252528; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .15s, filter .15s, transform .1s; position: relative; }
.lb:hover { background: #2d2d31; }
.lb:active { transform: scale(.985); }
.lb.primary { background: var(--accent); }
.lb.primary:hover { filter: brightness(1.08); }
.lb.loading { color: transparent; pointer-events: none; }
.lb.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
/* ---------- экран после входа: аватарка, ник, одна строка ---------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50;
  background: radial-gradient(600px 420px at 50% 42%, rgba(var(--accent-rgb), .08), transparent 70%), #0b0b0d; }
.splash.leave { animation: splashOut .45s var(--ease) both; }
@keyframes splashOut { to { opacity: 0; transform: scale(1.03); } }
.sp { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sp-av { position: relative; animation: spAv .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.sp-av::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 70%); filter: blur(12px); animation: spHalo 2.4s ease-in-out .5s infinite; }
.av.sp-big { position: relative; width: 104px; height: 104px; font-size: 34px; box-shadow: 0 0 0 4px #0b0b0d, 0 0 0 5px rgba(255,255,255,.1); }
@keyframes spAv { from { opacity: 0; transform: scale(.7); } }
@keyframes spHalo { 50% { opacity: .45; transform: scale(1.08); } }
.sp-nick { margin-top: 22px; font: 800 24px/1.2 var(--font-d); letter-spacing: -.02em; animation: spUp .6s .25s var(--ease) both; }
.sp-text { margin-top: 8px; color: #8d8e96; font-size: 14px; font-weight: 600; animation: spUp .6s .45s var(--ease) both; }
.sp-dots i { font-style: normal; animation: spDot 1.2s infinite; opacity: .2; }
.sp-dots i:nth-child(2) { animation-delay: .2s; } .sp-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes spDot { 30% { opacity: 1; } 60%, 100% { opacity: .2; } }
@keyframes spUp { from { opacity: 0; transform: translateY(8px); } }
.sp-line { width: 140px; height: 3px; border-radius: 3px; margin-top: 26px; background: rgba(255,255,255,.06); overflow: hidden; animation: spUp .6s .6s var(--ease) both; }
.sp-line i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: spLine 2.4s .6s cubic-bezier(.4, .1, .3, 1) both; }
@keyframes spLine { from { transform: scaleX(0); } }
/* вход в панель после экрана загрузки */
/* ---------- Главная: одна сетка, ровные карточки, без лишнего ---------- */
.hm { max-width: 1120px; margin: 0 auto; }
.hm-head { margin: 4px 0 22px; }
.hm-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.hm-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.hm-stat { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; cursor: pointer; border-left: 1px solid var(--line); transition: background .15s; }
.hm-stat:first-child { border-left: 0; }
.hm-stat:hover { background: rgba(255, 255, 255, .025); }
.hm-stat:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .5); }
.hm-stat span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.hm-stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hm-stat small { font-size: 11.5px; color: var(--text-3); }
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-card { padding: 18px 20px; display: flex; flex-direction: column; min-height: 200px; }
.hm-wide { grid-column: 1 / -1; }
.hm-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hm-card-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.hm-sub { color: var(--text-3); font-size: 12px; }
.hm-link { all: unset; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: color .15s; }
.hm-link:hover { color: var(--accent); }
.hm-empty { flex: 1; display: grid; place-items: center; color: var(--text-3); font-size: 12.5px; padding: 18px 0; }
.hm-row { margin-bottom: 14px; }
.hm-row-l { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 12.5px; }
.hm-row-l span { color: var(--text-2); }
.hm-row-l b { font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-row-l i { font-style: normal; color: var(--text-3); font-weight: 600; }
.hm-row .bar { height: 6px; }
.hm-note { margin-top: auto; padding-top: 4px; color: var(--text-3); font-size: 11.5px; }
.hm-list { display: flex; flex-direction: column; margin: -4px 0; }
.hm-team { display: grid; grid-template-columns: 22px minmax(0, 120px) 1fr 40px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.hm-team .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hm-team b { text-align: right; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hm-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.hm-item:first-child { border-top: 0; }
.hm-item .grow { flex: 1; min-width: 0; }
.hm-item b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-item b em { font-style: normal; font-weight: 500; color: var(--text-2); }
.hm-item .grow span { display: block; color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-item time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
@media (max-width: 900px) {
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stat:nth-child(3) { border-left: 0; }
  .hm-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
}

/* направления участника */
.dir-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.dir-tag.all { background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); }
.kp-a { color: #6ea8ff; font-weight: 600; }
.kp-a:hover { text-decoration: underline; }
/* выбор направлений в форме */
.dir-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-opt { cursor: pointer; }
.dir-opt input { display: none; }
.dir-opt span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-3); color: var(--text-2); font-weight: 700; font-size: 12px; transition: background .15s, color .15s, border-color .15s; }
.dir-opt input:checked + span { background: var(--c); border-color: transparent; color: #fff; }
.app.enter .sidebar { animation: enterSide .6s var(--ease) both; }
.app.enter .topbar { animation: enterTop .6s .08s var(--ease) both; }
@keyframes enterSide { from { opacity: 0; transform: translateX(-24px); } }
@keyframes enterTop { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.lb-link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; background: none; color: var(--text-2); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: color .15s; }
.lb-link:hover { color: var(--accent); }
@media (max-width: 640px) { .acc-card { flex-wrap: wrap; } .sec-row { flex-wrap: wrap; } .set-tabs .tab span { display: none; } .set-tabs .tab { flex: 1; justify-content: center; } .set-tabs .tab.active span { display: inline; } }

/* =====================================================================
   MIXER design system v4 — перенос стиля ds.mixergrief.net
   ===================================================================== */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geologica";
  src: url("/fonts/Geologica.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #ff7a00;
  --accent-rgb: 255, 122, 0;
  --bg: #08080a;
  --side: #0a0a0d;
  --panel: #17171c;
  --panel-2: #1d1d23;
  --panel-3: #24242b;
  --panel-4: #2e2e36;
  --line: #232329;
  --line-2: #2f2f37;
  --line-3: #3a3a45;
  --text: #f2f2f5;
  --text-2: #9a9aa3;
  --text-3: #6b6b75;
  --ok: #22c55e;
  --warn: #eab308;
  --bad: #ef4444;
  --info: #38bdf8;
  --radius: 16px;
  --sidebar: 258px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-d: "Geologica", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

html { color-scheme: dark; scrollbar-color: rgba(255,255,255,.14) transparent; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(700px 420px at 55% -240px, rgba(255,122,0,.10), transparent 72%),
    radial-gradient(600px 420px at 100% 100%, rgba(255,122,0,.035), transparent 75%);
  background-attachment: fixed;
  color: var(--text);
  font: 13px/1.5 var(--font);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.app, .login { position: relative; z-index: 1; }
h1, h2, h3, .brand-name { font-family: var(--font-d); }

/* ---------- каркас ---------- */
.sidebar {
  width: var(--sidebar);
  padding: 16px 12px 12px;
  background: rgba(10,10,13,.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.sidebar .brand-row { padding: 2px 8px 18px; align-items: flex-start; }
.brand { gap: 4px; }
.brand-name {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  background: linear-gradient(100deg, #ffb259 0%, #ff7a00 52%, #ff5a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255,122,0,.28));
  padding-right: 4px;
}
.brand-sub {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text-3);
}
.search-btn {
  height: 36px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  background: #101014;
  border-color: var(--line);
  color: var(--text-3);
  font-size: 12px;
}
.search-btn:hover { background: var(--panel); border-color: var(--line-2); }
kbd { background: var(--panel-3); color: var(--text-2); border-radius: 5px; padding: 2px 6px; }
.side-counter {
  height: 40px;
  margin-top: 10px;
  padding: 0 12px 0 10px;
  border-radius: 12px;
  background: var(--panel);
  border-color: var(--line);
  font-size: 12.5px;
}
.side-counter svg { width: 16px; height: 16px; }
.nav { margin-top: 10px; }
.nav-group { margin-top: 18px; }
.nav-label {
  padding: 0 10px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-3);
}
.nav-item {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.nav-item svg { width: 16px; height: 16px; color: var(--text-3); }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item:hover svg { color: var(--text-2); }
.nav-item.active { background: rgba(255,255,255,.06); color: var(--text); }
.nav-item.active svg { color: var(--accent); }
.nav-item.active::before { left: -12px; top: 8px; bottom: 8px; background: var(--accent); }
.nav-item .count { background: var(--panel-3); color: var(--text-2); border-radius: 6px; }
.nav-item .count.hot { background: var(--accent); color: #0b0b0e; }
.user-card {
  padding: 10px;
  border-radius: 14px;
  background: var(--panel);
  border-color: var(--line);
}
.user-card .who b { font-size: 12.5px; }
.user-card .who span { font-size: 10.5px; }

.topbar {
  height: 64px;
  padding: 0 28px;
  background: rgba(8,8,10,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar .tt b { font-family: var(--font-d); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.topbar .tt span { font-size: 11px; color: var(--text-3); }
.topbar .right { gap: 8px; }
.topbar .right .icon-btn { color: var(--text-2); }
.top-user { border-radius: 12px; padding: 5px 8px 5px 5px; }
.top-user .n b { font-size: 12.5px; }
.top-user .n span { font-size: 10.5px; }
.top-user:hover { background: var(--panel); }

.content {
  max-width: 1120px;
  padding: 30px 32px 34px;
  margin: 0 auto;
  width: 100%;
}
.content.narrow { max-width: 960px; }

/* ---------- заголовки ---------- */
.page-head { align-items: flex-start; margin-bottom: 24px; gap: 16px; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.page-head p { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.eyebrow { margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--text-3); }
.group-title { font-family: var(--font-d); font-size: 15px; font-weight: 600; margin: 26px 0 12px; }
.group-title svg { width: 14px; height: 14px; }

/* ---------- главная ---------- */
.hm { max-width: 100%; }
.hm-head { margin: 0 0 24px; }
.hm-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.hm-head p { margin-top: 5px; font-size: 12.5px; color: var(--text-3); }
.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.hm-stat {
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: background .18s, border-color .18s;
}
.hm-stat:first-child { border-left: 1px solid var(--line); }
.hm-stat:hover { background: var(--panel-2); border-color: var(--line-3); }
.hm-stat span { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.hm-stat b { margin-top: 6px; font-family: var(--font-d); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.hm-stat small { margin-top: 3px; font-size: 11px; color: var(--text-3); }
.hm-grid { gap: 16px; }
.hm-card { padding: 20px; border-radius: 16px; min-height: 218px; background: var(--panel); }
.hm-card-head { margin-bottom: 16px; }
.hm-card-head h3 { font-family: var(--font-d); font-size: 14px; font-weight: 600; }
.hm-sub { font-size: 11px; }
.hm-link { font-size: 11.5px; color: var(--text-3); }
.hm-empty { font-size: 12px; }
.hm-row-l { font-size: 12px; }
.hm-team { font-size: 12px; }
.hm-item { font-size: 12px; }
.hm-note { font-size: 11px; }

/* ---------- поверхности ---------- */
.card, .empty-card, .set-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.card-pad { padding: 20px; }
.card-head { min-height: 56px; padding: 16px 20px; border-bottom-color: var(--line); }
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 11px; }
.card-title { margin-bottom: 18px; }
.card-title h3 { font-size: 14.5px; font-weight: 600; }
.card-title p { font-size: 11.5px; }
.ico-box { width: 38px; height: 38px; border-radius: 12px; }

.stat {
  min-height: 118px;
  padding: 18px 20px;
  border-radius: 16px;
  border-color: var(--line);
  background: var(--panel);
}
.stat .top { font-size: 10.5px; letter-spacing: .12em; color: var(--text-3); }
.stat .top svg { width: 15px; height: 15px; }
.stat .val { margin-top: 8px; font-family: var(--font-d); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.stat .hint { font-size: 10.5px; }
.stat.link:hover { background: var(--panel-2); border-color: var(--line-3); transform: translateY(-1px); }
.mini { height: 52px; border-radius: 12px; background: var(--panel); }
.mini b { font-family: var(--font-d); font-size: 14px; font-weight: 600; }

/* ---------- кнопки ---------- */
.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border-color: var(--line-3);
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 600;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: var(--panel-3); border-color: #474752; }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8a1f 0%, #ff7a00 52%, #ff5a00 100%);
  color: #0b0b0e;
  font-weight: 700;
  box-shadow: 0 8px 24px -14px rgba(255,122,0,.9);
}
.btn.primary:hover { background: linear-gradient(135deg, #ff9a35 0%, #ff850f 52%, #ff6a10 100%); filter: none; }
.btn.accent { background: var(--accent); border-color: transparent; color: #0b0b0e; font-weight: 700; }
.btn.sm { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; }
.btn.block { height: 40px; border-radius: 11px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn:hover { background: var(--panel-2); }
.pill { height: 32px; border-radius: 10px; padding: 0 12px; font-size: 11.5px; background: var(--panel); border-color: var(--line-2); }
.pill:hover { background: var(--panel-2); }

/* ---------- формы ---------- */
.field { gap: 7px; margin-bottom: 14px; }
.field > label { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input {
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border-color: var(--line-2);
  background: #101014;
  font-size: 12.5px;
}
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: rgba(255,122,0,.62); box-shadow: 0 0 0 3px rgba(255,122,0,.12); background: var(--panel); }
textarea.input { min-height: 96px; padding: 10px 12px; }
.search .input { height: 40px; border-radius: 11px; background: #101014; }
.search .input:hover { background: var(--panel); }
.search .input:focus { background: var(--panel); }
.form-row { gap: 0 12px; }

/* ---------- вкладки ---------- */
.tabs { padding: 4px; border-radius: 12px; background: #101014; border-color: var(--line); }
.tab-ind { top: 4px; bottom: 4px; border-radius: 8px; background: var(--panel-3); }
.tab { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; font-weight: 600; }
.tab.active { color: var(--text); }
.set-tabs { padding: 5px; border-radius: 14px; }
.set-tabs .tab { height: 34px; padding: 0 14px; font-size: 12px; border-radius: 9px; }
.set-tabs .tab-ind { top: 5px; bottom: 5px; border-radius: 9px; }

/* ---------- строки и таблицы ---------- */
.rows { gap: 8px; }
.row { border-radius: 14px; background: var(--panel); border-color: var(--line); }
.row:hover { border-color: var(--line-2); }
.row-head { min-height: 64px; padding: 14px 16px; }
.row-title { font-size: 13px; font-weight: 600; }
.row-title .sid { font-size: 11px; }
.row-meta { font-size: 11.5px; margin-top: 5px; }
.row-details { margin: 0 16px; padding: 14px 0 16px; }
.det-grid > div > span { font-size: 10px; letter-spacing: .1em; }
.t th { padding: 13px 18px 10px; font-size: 10px; letter-spacing: .1em; }
.t td { padding: 12px 18px; border-bottom-color: var(--line); }
.t tbody tr:hover { background: rgba(255,255,255,.025); }
.list-row { padding: 12px 18px; }
.list-row .grow b { font-weight: 600; }

/* ---------- бейджи, аватары, прогресс ---------- */
.badge { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.pill-st { height: 24px; }
.av { width: 32px; height: 32px; }
.av.lg { width: 60px; height: 60px; font-size: 19px; }
.av.xl { width: 68px; height: 68px; font-size: 22px; }
.av.md { width: 28px; height: 28px; }
.bar { height: 6px; border-radius: 6px; background: #222228; }
.bar > i { border-radius: 6px; }

/* ---------- настройки ---------- */
.set-section { margin-top: 26px; }
.set-section > h4 { margin: 0 0 10px; font-size: 10.5px; letter-spacing: .14em; color: var(--text-3); }
.set-group { overflow: hidden; }
.sec-row { min-height: 78px; padding: 17px 20px; gap: 15px; }
.sec-row.slim { min-height: 60px; padding-top: 13px; padding-bottom: 13px; }
.sec-ic { width: 40px; height: 40px; border-radius: 12px; background: #101014; color: var(--text-2); }
.sec-ic svg { width: 18px; height: 18px; }
.sec-ic.acc { color: var(--accent); background: rgba(255,122,0,.1); }
.sec-row .txt b, .pk .txt b { font-size: 13px; }
.sec-row .txt span, .pk .txt span { font-size: 11.5px; }
.sec-block { padding: 0 20px 20px; }
.pk { border-radius: 12px; background: #101014; border-color: var(--line); }
.acc-card { padding: 24px; gap: 20px; }
.acc-name b { font-size: 19px; font-weight: 600; }
.acc-login { font-size: 12px; }
.acc-chips .id-chip { height: 30px; border-radius: 9px; background: #101014; }
.set-note, .sec-note { font-size: 11.5px; }
.danger-zone { height: 42px; border-radius: 11px; }
.switch { width: 38px; height: 22px; }
.switch i { width: 16px; height: 16px; }
.switch.on i { transform: translateX(16px); }

/* ---------- профиль ---------- */
.profile-hero { padding: 24px; gap: 18px; }
.profile-hero h2 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.kv > div { padding: 13px 18px; }
.kv span { font-size: 10.5px; letter-spacing: .02em; }
.mc-head h2 { font-family: var(--font-d); font-size: 24px; font-weight: 600; }
.mc-grid { gap: 16px; }
.mc-col { gap: 16px; }
.box-title { font-size: 13.5px; }
.timeline { padding-left: 18px; }
.tl-item b { font-size: 12.5px; }

/* ---------- окна ---------- */
.modal-back { background: rgba(5,5,8,.7); backdrop-filter: blur(8px); }
.modal { border-radius: 18px; border-color: var(--line-2); background: var(--panel); box-shadow: 0 32px 90px rgba(0,0,0,.6); }
.modal-head { padding: 16px 20px; min-height: 60px; }
.modal-head h3 { font-size: 15px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; }
.modal-text { font-size: 12.5px; }
.palette { max-width: 560px; border-radius: 16px; background: var(--panel); }
.palette .pin input { height: 50px; font-size: 13px; }
.palette .it { height: 38px; border-radius: 9px; font-size: 12.5px; }
#toasts { right: 20px; bottom: 20px; }
.toast { border-radius: 12px; background: var(--panel-2); border-color: var(--line-3); box-shadow: 0 16px 44px rgba(0,0,0,.5); }

/* ---------- вход ---------- */
.login {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(760px 480px at 50% -180px, rgba(255,122,0,.12), transparent 72%),
    var(--bg);
}
.login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 10%, transparent 75%);
}
.login-card {
  position: relative;
  max-width: 424px;
  padding: 34px 30px 28px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(29,29,35,.96), rgba(16,16,20,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}
.login-logo { gap: 9px; }
.login-logo .brand-name { font-size: 34px; letter-spacing: -.05em; }
.login-tag {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff8a1f, #ff5a00);
  color: #0b0b0e;
  font: italic 800 14px/26px var(--font-d);
}
.login-text { margin: 13px auto 24px; max-width: 330px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.lf { margin-bottom: 11px; }
.lf-box {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #101014;
  border: 1px solid var(--line-2);
}
.lf-box:hover { background: var(--panel); border-color: var(--line-3); }
.lf-box:focus-within { border-color: rgba(255,122,0,.6); background: var(--panel); box-shadow: 0 0 0 3px rgba(255,122,0,.1); }
.lf-box input { font-size: 13.5px; font-weight: 500; }
.lf-box svg { width: 18px; height: 18px; color: var(--text-3); }
.lb {
  height: 48px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
}
.lb:hover { background: var(--panel-3); }
.lb.primary {
  background: linear-gradient(135deg, #ff8a1f 0%, #ff7a00 52%, #ff5a00 100%);
  color: #0b0b0e;
  border-color: transparent;
  box-shadow: 0 10px 30px -16px rgba(255,122,0,.9);
  font-weight: 800;
}
.login-btns { gap: 9px; margin-top: 18px; }
.lb-link { font-size: 12px; }

/* ---------- футер ---------- */
.app-footer {
  width: calc(100% - 64px);
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23,23,28,.72);
  color: var(--text-3);
  font-size: 11px;
}
.af-brand { display: flex; flex-direction: column; gap: 3px; }
.af-brand .brand-name { font-size: 17px; }
.af-brand .brand-sub { margin-top: 0; font-size: 8.5px; }
.af-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.af-links a { color: var(--text-3); transition: color .15s; }
.af-links a:hover { color: var(--text); }
.af-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); white-space: nowrap; }
.af-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.1); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 272px; padding: 16px 12px 12px; }
  .topbar { height: 58px; padding: 0 16px; }
  .content { padding: 22px 16px 30px; }
  .hm-head h1 { font-size: 24px; }
  .hm-stat { min-height: 112px; padding: 16px; }
  .hm-stat b { font-size: 26px; }
  .app-footer { width: calc(100% - 32px); margin: 0 auto 16px; flex-wrap: wrap; gap: 12px; }
  .af-links { order: 3; width: 100%; margin-left: 0; gap: 14px; flex-wrap: wrap; }
  .af-status { margin-left: auto; }
  .login-card { padding: 30px 22px 24px; }
  .login-logo .brand-name { font-size: 30px; }
}
@media (max-width: 560px) {
  .hm-stats { gap: 8px; }
  .hm-stat { min-height: 104px; padding: 14px; }
  .hm-stat span { font-size: 9.5px; letter-spacing: .1em; }
  .hm-stat b { font-size: 24px; }
  .page-head h1 { font-size: 22px; }
  .content { padding-left: 14px; padding-right: 14px; }
  .set-tabs .tab { height: 32px; }
  .acc-card { padding: 18px; gap: 14px; }
  .af-status { display: none; }
}

/* mobile topbar: только аватар, без никнейма */
@media (max-width: 700px) {
  .topbar { gap: 6px; padding: 0 12px; }
  .topbar .tt { flex: 1; min-width: 0; }
  .topbar .tt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .tt span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .right { gap: 2px; }
  .topbar .right .icon-btn { width: 30px; height: 30px; }
  .topbar .top-user { padding: 2px; }
  .topbar .top-user .n { display: none; }
}

/* иконки в карточках главной */
.hm-stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.hm-stat-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,122,0,.18); background: rgba(255,122,0,.08); color: var(--accent); margin-top: -3px; }
.hm-stat-ico svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .acc-card { flex-direction: column; align-items: flex-start; }
  .acc-main { width: 100%; }
  .acc-name b { font-size: 17px; }
  .acc-chips { margin-top: 12px; }
}

.badge.acc { color: var(--accent); background: rgba(255,122,0,.10); border: 1px solid rgba(255,122,0,.30); }

.main > .content { flex: 1 0 auto; }

/* ---------- скриншоты-доказательства ---------- */
.shot-drop { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px; border-radius: 10px; border: 1px dashed var(--line-3); background: var(--panel-2); color: var(--text-3); cursor: pointer; text-align: left; font-size: 12px; transition: border-color .15s, background .15s; }
.shot-drop svg { width: 22px; height: 22px; flex: none; }
.shot-drop b { display: block; color: var(--text); font-size: 12.5px; }
.shot-drop:hover, .shot-drop.over { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.shot-list { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
.shots-input .shot-list:not(:empty) { margin-top: 10px; }
.shot { position: relative; width: 104px; height: 70px; flex: none; }
.shot > [data-shot] { width: 100%; height: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.shot > [data-shot]:hover { border-color: var(--accent); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.wait { display: grid; place-items: center; border: 1px dashed var(--line-3); border-radius: 9px; }
.shot-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line-3); background: var(--panel-4); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.shot-x:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.shot-x svg { width: 11px; height: 11px; }
.shot-n { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: rgba(0, 0, 0, .9); animation: fadeIn .15s ease both; }
.lightbox img { max-width: 100%; max-height: calc(100% - 52px); min-height: 0; object-fit: contain; border-radius: 8px; }
.lightbox-bar { display: flex; gap: 8px; }

/* ---------- КП-Состав: таблица ---------- */
.kp-table { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow-x: auto; }
.kp-table table { width: 100%; min-width: 860px; border-collapse: collapse; }
.kp-table th { text-align: left; padding: 0 14px; height: 44px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.kp-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 12.5px var(--font); color: var(--text-3); transition: color .15s; }
.kp-table th button:hover, .kp-table th button.up, .kp-table th button.down { color: var(--text); }
.kp-table th i { display: inline-flex; font-style: normal; font-size: 11px; letter-spacing: -2px; }
.kp-table th i span { opacity: .45; }
.kp-table th button.up i span:first-child, .kp-table th button.down i span:last-child { opacity: 1; color: var(--accent); }
.kp-table td { padding: 0 14px; height: 68px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.kp-table th:first-child, .kp-table td:first-child { padding-left: 18px; }
.kp-table tbody tr { cursor: pointer; transition: background .15s; }
.kp-table tbody tr:hover, .kp-table tbody tr:focus-visible { background: var(--panel-2); outline: none; }
.kp-table tbody tr:last-child td { border-bottom: 0; }
.kp-who { display: flex; align-items: center; gap: 12px; }
.kp-who .av { width: 36px; height: 36px; font-size: 12px; }
.kp-who > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.kp-who b { font-size: 13.5px; font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.kp-id { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kp-id[data-copy]:hover { color: var(--text); }
.kp-id svg { width: 12px; height: 12px; }
.kp-id.none { opacity: .7; }
.kp-table .badge.pos { height: 28px; padding: 0 11px; gap: 7px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.kp-table .badge.pos::before { width: 7px; height: 7px; background: var(--c); }
.kp-num { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kp-warns { display: flex; align-items: center; gap: 8px; }
.kp-warns small { font-size: 11.5px; color: var(--warn); }
.kp-table .warns { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; }
.kp-box { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: var(--text-3); background: rgba(0, 0, 0, .22); border: 1px solid var(--line-2); }
.kp-box.vac { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.kp-table .pill-st { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; }
.kp-table .kp-go { width: 44px; padding-right: 18px; text-align: right; color: var(--text-3); }
.kp-go svg { width: 16px; height: 16px; vertical-align: middle; }
.kp-table tr:hover .kp-go { color: var(--text); }
.kp-table .pill-st.on { color: var(--text-2); font-weight: 600; }
