/* Onest — SIL Open Font License 1.1, файлы лежат на сайте, без сторонних запросов */
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url('/fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url('/fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url('/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url('/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url('/fonts/onest-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url('/fonts/onest-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800; src: url('/fonts/onest-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800; src: url('/fonts/onest-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --panel: #111114;
  --panel-2: #16161a;
  --panel-3: #1c1c21;
  --line: #222228;
  --line-2: #2c2c33;
  --text: #ededf0;
  --text-2: #b4b4bc;
  --muted: #7c7c86;
  --faint: #55555e;
  --accent: #ff7a1a;
  --accent-2: #ff9b4a;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --accent-line: rgba(255, 122, 26, 0.38);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --red: #f05252;
  --red-soft: rgba(240, 82, 82, 0.12);
  --gold: #f5c518;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #000; }
.i { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent { color: var(--accent); }
.green { color: var(--green); }
.red { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0c0f, #09090b);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.brand-mark .i { width: 18px; height: 18px; }
.brand b { display: block; font-size: 14.5px; letter-spacing: 0.01em; white-space: nowrap; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 122, 26, 0.22); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.side-foot img { width: 34px; height: 34px; border-radius: 50%; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { display: block; font-size: 11.5px; color: var(--muted); }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2);
}
.icon-btn:hover { color: var(--text); border-color: #3a3a42; }

.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.page-head h1 .i { width: 20px; height: 20px; color: var(--accent); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.mobile-top { display: none; }

/* ---------- элементы ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.card-title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.card-title .i { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { border-color: #3b3b44; background: var(--panel-3); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent { background: rgba(255, 122, 26, 0.1); border-color: var(--accent-line); color: var(--accent); }
.btn-accent:hover { background: rgba(255, 122, 26, 0.18); border-color: var(--accent); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #140800; font-weight: 600; }
.btn-solid:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-danger { color: var(--red); border-color: rgba(240, 82, 82, 0.35); background: var(--red-soft); }
.btn-danger:hover { border-color: var(--red); background: rgba(240, 82, 82, 0.2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: transparent; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-soft); border-color: rgba(255, 122, 26, 0.25); color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.role-chip { color: var(--c, var(--text-2)); border-color: color-mix(in srgb, var(--c, #888) 45%, transparent); background: color-mix(in srgb, var(--c, #888) 12%, transparent); }

.badge-lvl {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px;
  border-radius: 7px; font-size: 12px; font-weight: 700;
  color: var(--gold); border: 1px solid rgba(245, 197, 24, 0.45); background: rgba(245, 197, 24, 0.08);
}
.tag-you { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 122, 26, 0.3); }

.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  outline: none; transition: border-color 0.15s;
}
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 36px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.switch { display: inline-block; vertical-align: middle; position: relative; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--panel-3); border: 1px solid var(--line-2); transition: 0.2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: 0.2s; }
.switch input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .user-cell { display: flex; align-items: center; gap: 10px; }
.table .user-cell img { width: 28px; height: 28px; border-radius: 50%; }

.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 26px; height: 26px; color: var(--faint); margin-bottom: 8px; }

/* ---------- тосты и модалки ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 100; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
  padding: 12px 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 13px; animation: toast-in 0.2s ease-out;
}
.toast.ok .i { color: var(--green); }
.toast.err { border-color: rgba(240, 82, 82, 0.4); }
.toast.err .i { color: var(--red); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.modal-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px); }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal p { margin: 0; color: var(--text-2); line-height: 1.6; }

/* ---------- вход ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  position: relative; overflow: hidden; isolation: isolate;
}
.auth::before {
  content: ''; position: absolute; inset: -30px; z-index: -2;
  background: url('/img/bg.jpg') center / cover no-repeat;
  filter: blur(6px) saturate(1.05) brightness(0.55);
  transform: scale(1.04);
}
.auth::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(9, 9, 11, 0.25) 0%, rgba(9, 9, 11, 0.85) 70%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.2), rgba(9, 9, 11, 0.9));
}
.auth-card {
  width: min(420px, 100%); padding: 40px 34px 30px; text-align: center;
  background: rgba(8, 8, 10, 0.92); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}
.auth-mark { margin: 0 auto 22px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.auth-mark .i { width: 24px; height: 24px; }
.auth h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.auth .sub { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }
.btn-discord {
  width: 100%; height: 48px; gap: 12px; border-radius: 12px; border: 0;
  background: #5865f2; color: #fff; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.btn-discord:hover { background: #4752c4; }
.btn-discord:active { transform: translateY(1px); }
.btn-discord svg { width: 22px; height: 22px; }
.auth .legal { margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.auth .legal a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.auth .legal a:hover { color: var(--accent); border-color: var(--accent); }
.auth-error { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: -8px 0 20px; padding: 11px 13px; border-radius: 11px; font-size: 13px; color: #fca5a5; background: var(--red-soft); border: 1px solid rgba(240, 82, 82, 0.3); }
.auth-error .i { margin-top: 1px; }

/* ---------- документ (условия) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.doc-back:hover { color: var(--text); }
.doc h1 { margin: 0 0 8px; font-size: 30px; }
.doc .lead { color: var(--muted); margin: 0 0 30px; }
.doc section { padding: 22px 24px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.doc h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.doc h2 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 122, 26, 0.3); }
.doc ul { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.doc li + li { margin-top: 4px; }
.doc p { color: var(--text-2); line-height: 1.7; margin: 0 0 8px; }
.doc .warn-box { display: flex; gap: 12px; padding: 16px 18px; margin-bottom: 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); line-height: 1.6; }
.doc .warn-box .i { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }

/* ---------- профиль ---------- */
.profile-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-side { position: sticky; top: 24px; }
.profile-main { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pcard { overflow: hidden; }
.pcard-banner { height: 128px; position: relative; background: var(--banner, linear-gradient(160deg, #6b4a0a 0%, #2a1d05 55%, #111114 100%)); background-size: cover; background-position: center; }
.pcard-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--panel) 100%); }
.pcard-actions { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 1; padding: 4px; border-radius: 11px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); }
.pcard-body { padding: 0 20px 20px; margin-top: -54px; position: relative; z-index: 1; }
.pcard-avatar { position: relative; width: 96px; height: 96px; }
.pcard-avatar img { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--panel); background: var(--panel-2); }
.pcard-avatar .presence { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
.pcard-avatar .presence.on { background: var(--green); }
.pcard h2 { margin: 10px 0 2px; font-size: 22px; letter-spacing: -0.01em; }
.pcard .handle { color: var(--muted); font-size: 13px; }
.pcard .section-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 13px; color: var(--muted); }
.pcard .roles { display: flex; flex-wrap: wrap; gap: 6px; }

.bal-box {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px;
  border-radius: 13px; overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(56, 189, 248, 0.02));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 0 28px rgba(56, 189, 248, 0.12) inset;
}
.bal-box > * { padding: 12px 14px; display: block; }
.bal-box > * + * { border-left: 1px solid rgba(56, 189, 248, 0.2); }
.bal-box a:hover { background: rgba(255, 255, 255, 0.02); }
.bal-box .k { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--text-2); }
.bal-box .k span { display: flex; align-items: center; gap: 7px; }
.bal-box .v { margin-top: 4px; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bal-box .v .i { width: 16px; height: 16px; }
.bal-box .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.seen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 16px; padding: 12px 4px 0; }
.seen-grid > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.seen-grid .k { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.seen-line { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; font-weight: 600; }
.seen-line small { color: var(--muted); font-weight: 500; font-size: 11.5px; min-width: 44px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.pulse.on { background: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }

.dossier { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dossier-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.dossier-row > span { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.dossier-row b { font-weight: 600; }

.warn-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.warn-pill { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); }
.warn-pill .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.warn-pill .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.warn-pill.pred .v { color: var(--gold); }
.warn-pill.warn .v { color: var(--red); }
.warn-pill .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.warn-pill .segs { display: flex; gap: 4px; margin-top: 8px; }
.warn-pill .segs i { flex: 1; height: 4px; border-radius: 4px; background: var(--panel-3); }
.warn-pill.pred .segs i.on { background: var(--gold); }
.warn-pill.warn .segs i.on { background: var(--red); }
.warn-pill.full { border-color: rgba(240, 82, 82, 0.45); background: linear-gradient(180deg, rgba(240, 82, 82, 0.08), var(--panel-2)); }

/* ---------- статистика ---------- */
.info-bars { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.info-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.info-pill .i { color: var(--muted); }
.info-pill.gold { background: rgba(245, 197, 24, 0.08); border-color: rgba(245, 197, 24, 0.25); }
.info-pill.gold .i { color: var(--gold); }
.info-pill em { font-style: normal; color: var(--muted); font-weight: 500; }
.info-warn { color: var(--gold); font-weight: 500; }

.stats { overflow: hidden; }
.stats-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.stats-bar .grp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ico-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.month-nav { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.month-nav b { min-width: 150px; text-align: center; font-size: 14px; }
.month-nav button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.month-nav button:hover { background: var(--panel-3); color: var(--text); }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.legend .grad { width: 110px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #5a1e22, #6b2a2a 25%, #6b4d23 55%, #2f7a45 85%, #3fb768); }
.legend .sq { width: 12px; height: 12px; border-radius: 4px; background: #34343c; border: 1px solid #44444c; }
.stats-hint { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 16px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.stats-hint b { color: var(--text); }

.grid-wrap { overflow-x: auto; }
.sgrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; }
.sgrid th { font-weight: 600; font-size: 12.5px; padding: 10px 2px 8px; color: var(--text-2); position: sticky; top: 0; background: var(--panel); }
.sgrid th small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); margin-top: 1px; }
.sgrid th.we, .sgrid th.we small { color: var(--accent); }
.sgrid th .today { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 7px; background: var(--accent); color: #120700; }
.sgrid td { padding: 3px 2px; text-align: center; }
.sgrid tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.03); }
.sgrid .c-lvl { width: 44px; padding-left: 14px; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.sgrid .c-name { text-align: left; padding: 0 16px 0 8px; min-width: 190px; position: sticky; left: 44px; background: var(--panel); z-index: 1; }
.sgrid th.c-name, .sgrid th.c-lvl { z-index: 2; }
.sgrid .c-sum { min-width: 72px; padding-right: 16px; font-weight: 700; text-align: right; border-left: 1px solid var(--line); }
.sgrid th.c-sum { text-align: right; padding-right: 16px; }
.sgrid .name { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.sgrid .name a:hover { color: var(--accent); }
.sgrid .name img { width: 22px; height: 22px; border-radius: 50%; }
.sgrid .name .nick { color: var(--faint); font-weight: 500; font-size: 12px; }
.sgrid tr.me .c-name .name > a { color: var(--accent); }
.sgrid tr.me .c-lvl { box-shadow: inset 3px 0 0 var(--accent); }
.cell {
  width: 38px; height: 28px; margin: 0 auto;
  display: grid; place-items: center; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: #fff;
  position: relative; user-select: none;
}
.cell.blank { color: var(--faint); font-weight: 400; }
.cell.inactive { background: repeating-linear-gradient(135deg, #2a2a30 0 5px, #24242a 5px 10px) !important; color: var(--muted); border: 1px solid #3a3a42; }
.cell.sel { outline: 2px solid var(--accent); outline-offset: -1px; }
.cell.mine { cursor: context-menu; }
.sgrid.weeks .cell { width: 88px; }
.sgrid tfoot td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: left; }
.sgrid tfoot b { color: var(--text); margin-right: 14px; }
.no-nick { font-size: 12px; color: var(--faint); font-style: italic; }

/* ---------- стена ---------- */
.wall-compose { display: grid; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.wall-compose .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wall-compose .note { font-size: 12px; color: var(--muted); }
.wall-list { display: grid; }
.post { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head img { width: 34px; height: 34px; border-radius: 50%; }
.post-head .who b { display: block; font-size: 13.5px; }
.post-head .who a:hover b { color: var(--accent); }
.post-head .who span { font-size: 12px; color: var(--muted); }
.post-body { margin: 10px 0 0 44px; white-space: pre-wrap; word-wrap: break-word; color: var(--text); line-height: 1.55; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 8px 0 0 38px; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12.5px; }
.post-actions button:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.post-actions button:disabled { cursor: default; opacity: 0.6; }
.post-actions button.liked { color: #f472b6; }
.post-actions button.liked .i { fill: currentColor; }
.replies { margin: 10px 0 0 44px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.replies .post { padding: 0; border: 0; }
.replies .post-head img { width: 26px; height: 26px; }
.replies .post-body { margin-left: 36px; }
.replies .post-actions { margin-left: 30px; }
.reply-box { margin: 10px 0 0 44px; display: grid; gap: 8px; }
.wall-off { display: flex; align-items: center; gap: 8px; padding: 14px 18px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }

/* ---------- награды ---------- */
.bal-card { position: relative; overflow: hidden; border-left: 3px solid var(--accent); }
.bal-card::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 26px solid rgba(255, 122, 26, 0.05); pointer-events: none;
}
.bal-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 24px; }
.bal-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.bal-ico .i { width: 22px; height: 22px; }
.bal-main .k { font-size: 12.5px; color: var(--text-2); }
.bal-main .v { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.bal-main .v small { font-size: 13px; font-weight: 500; color: var(--muted); }
.bal-sep { width: 1px; align-self: stretch; background: var(--line-2); }
.bal-week .k { font-size: 12.5px; color: var(--text-2); }
.bal-week .v { font-size: 22px; font-weight: 700; }
.bal-week .s { font-size: 11.5px; color: var(--muted); }
.bal-top .push { margin-left: auto; position: relative; z-index: 1; }
.tx-list { border-top: 1px solid var(--line); }
.tx { display: flex; align-items: center; gap: 12px; padding: 11px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tx:last-child { border-bottom: 0; }
.tx .sign { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tx .sign.plus { color: var(--green); background: var(--green-soft); }
.tx .sign.minus { color: var(--red); background: var(--red-soft); }
.tx .amt { margin-left: auto; font-weight: 700; }
.tx .date { color: var(--faint); font-size: 12px; min-width: 40px; text-align: right; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; }
.filters button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 500; }
.filters button .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.filters button.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.item { overflow: hidden; display: flex; flex-direction: column; }
.item-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), #0d0d10; border-bottom: 1px solid var(--line); }
.item-img img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.item-img .ph { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.item-img .ph .i { width: 34px; height: 34px; }
.item-img .lvl { position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line-2); }
.item-img .cat { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--c); background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line-2); }
.item-img .cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.item-body { padding: 14px; display: grid; gap: 12px; flex: 1; align-content: start; }
.item-body h3 { margin: 0; font-size: 14px; }
.item-get { padding: 7px 10px; text-align: center; font-size: 12px; color: var(--muted); border-radius: 8px; background: var(--panel-2); }
.item-get b { color: var(--text); }
.qty { display: grid; grid-template-columns: 32px 1fr 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.qty button { border: 0; background: var(--panel-2); color: var(--muted); display: grid; place-items: center; }
.qty button:hover { color: var(--text); }
.qty input { border: 0; background: var(--bg-2); text-align: center; outline: none; min-width: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 14px 14px; }
.price { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--accent); }
.item.locked .item-img img, .item.locked .ph { opacity: 0.4; }

/* ---------- настройки ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row .t b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.set-row .t b .i { color: var(--muted); }
.set-row .t p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); max-width: 520px; }
.set-group-title { padding: 16px 20px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.warn-item { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.warn-item .k { flex: none; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.warn-item .k.pred { color: var(--gold); background: rgba(245, 197, 24, 0.1); border: 1px solid rgba(245, 197, 24, 0.3); }
.warn-item .k.warn { color: var(--red); background: var(--red-soft); border: 1px solid rgba(240, 82, 82, 0.3); }
.warn-item .r { font-size: 13px; }
.warn-item .m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.warn-item.revoked { opacity: 0.45; }
.warn-item.revoked .r { text-decoration: line-through; }

/* ---------- админка ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-weight: 500; font-size: 13px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.admin-pane { display: grid; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.perm-grid label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; color: var(--text-2); }
.perm-grid input { accent-color: var(--accent); width: 15px; height: 15px; }
.role-row { padding: 14px 16px; border-top: 1px solid var(--line); }
.role-row:first-child { border-top: 0; }
.role-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.role-row-head .lv { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.role-row-head .lv input { width: 64px; height: 30px; }
.role-row.off .perm-grid { display: none; }
.inline-input { height: 30px; width: 150px; padding: 0 9px; font-size: 13px; }
.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); word-break: break-all; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--bg-2); border: 1px solid var(--line); }
.status { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.status.pending { color: var(--gold); background: rgba(245, 197, 24, 0.1); }
.status.done { color: var(--green); background: var(--green-soft); }
.status.cancelled { color: var(--muted); background: var(--panel-3); }
.picker { max-height: 260px; overflow: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); }
.picker label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.picker label:hover { background: var(--panel-2); }
.picker img { width: 22px; height: 22px; border-radius: 50%; }
.picker input { accent-color: var(--accent); }

/* ---------- ошибки ---------- */
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.err-page b { display: block; font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; }
.err-page p { color: var(--muted); margin: 12px 0 20px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .profile-grid, .settings-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; max-width: 520px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 80; width: 260px; transform: translateX(-100%); transition: transform 0.2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 70; background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(8px); }
  .main { padding: 20px 16px 48px; }
  .page-head { flex-direction: column; }
  .bal-sep { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 32px 22px 24px; }
  .auth h1 { font-size: 28px; }
  .bal-box, .seen-grid, .warn-pills { grid-template-columns: 1fr; }
  .bal-box > * + * { border-left: 0; border-top: 1px solid rgba(56, 189, 248, 0.2); }
  .seen-grid > div + div { border-left: 0; padding-left: 0; margin-top: 12px; }
}

.set-line { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.set-line .switch { margin-top: 1px; }
.set-line b { display: block; font-weight: 500; font-size: 13.5px; }
.set-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
button.code { cursor: pointer; border: 1px solid var(--line); font: 12px ui-monospace, 'Cascadia Mono', Consolas, monospace; }
button.code:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- шапка меню и поиск ---------- */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 14px; }
.brand-row .brand { padding: 4px 8px; min-width: 0; }
.nav-label:first-child { padding-top: 4px; }
.search-btn {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.search-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.search-back {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: start center; padding: 18vh 16px 16px;
  background: rgba(4, 4, 6, 0.55); backdrop-filter: blur(10px) saturate(0.8); -webkit-backdrop-filter: blur(10px) saturate(0.8);
  animation: fade-in 0.15s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
.search-box { width: min(560px, 100%); background: #0d0d10; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: clip; animation: pop-in 0.16s ease-out; }
@keyframes pop-in { from { transform: translateY(-6px) scale(0.98); opacity: 0; } }
.search-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.search-head .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.search-head b { display: block; font-size: 15px; }
.search-head span { display: block; font-size: 12px; color: var(--muted); }
.search-head .icon-btn { margin-left: auto; background: transparent; border-color: transparent; }
.search-field { display: block; position: relative; margin: 14px 16px 6px; }
.search-field > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; height: 42px; padding: 0 38px 0 36px; border-radius: 11px; border: 1px solid var(--accent); background: var(--bg-2); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12); }
.search-field button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.search-field button:hover { color: var(--text); background: var(--panel-3); }
.search-count { padding: 8px 18px 6px; font-size: 12px; color: var(--muted); }
.search-list { max-height: 360px; overflow-y: auto; padding: 0 8px 8px; }
.search-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; position: relative; cursor: pointer; }
.search-item img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.search-item .t { min-width: 0; flex: 1; }
.search-item .t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 2px; }
.search-item .t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .t small .role { color: var(--rc, var(--text-2)); font-weight: 600; }
.search-item .kbd { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); opacity: 0; }
.search-item .kbd .i { width: 13px; height: 13px; }
.search-item.on { background: var(--panel-2); }
.search-item.on::before { content: ''; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--rc, var(--accent)); }
.search-item.on .kbd { opacity: 1; }
.search-empty { padding: 22px 16px 26px; text-align: center; color: var(--muted); font-size: 13px; }
.search-hint { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.search-hint kbd { font: inherit; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- уведомления: редактор и предпросмотр в стиле Discord ---------- */
.ev-group { padding: 16px 16px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.ev-row { border-top: 1px solid var(--line); }
.ev-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 0; text-align: left; }
.ev-head:hover { background: rgba(255, 255, 255, 0.015); }
.ev-head .em { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 16px; }
.ev-head .em img { width: 20px; height: 20px; }
.ev-head b { flex: 1; font-weight: 600; font-size: 13.5px; }
.ev-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ev-tag { height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--faint); border: 1px solid var(--line); }
.ev-tag.on { color: var(--green); border-color: rgba(74, 222, 128, 0.3); background: var(--green-soft); }
.ev-head .chev { color: var(--muted); transition: transform 0.15s; }
.ev-row.open .ev-head .chev { transform: rotate(180deg); }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; padding: 6px 16px 18px; }
.ev-row:not(.open) .ev-body { display: none; }
.ev-form { display: grid; gap: 12px; align-content: start; }
.ev-inline { display: grid; grid-template-columns: 120px 1fr 76px; gap: 10px; }
.ev-inline.btn3 { grid-template-columns: 120px 1fr 1fr; }
.emoji-input { position: relative; }
.emoji-input .input { padding-right: 36px; }
.emoji-input button { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.emoji-input button:hover { color: var(--accent); background: var(--panel-3); }
.vars { display: flex; flex-wrap: wrap; gap: 5px; }
.vars button { height: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font: 11.5px ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.vars button:hover { color: var(--accent); border-color: var(--accent-line); }
.emoji-pop { position: fixed; z-index: 96; width: 312px; max-height: 320px; overflow: auto; padding: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.emoji-pop .lbl { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 2px 6px; }
.emoji-pop .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin-bottom: 8px; }
.emoji-pop .grid button { height: 32px; border: 0; border-radius: 7px; background: transparent; font-size: 18px; display: grid; place-items: center; }
.emoji-pop .grid button:hover { background: var(--panel-3); }
.emoji-pop .grid img { width: 22px; height: 22px; }

.dc-preview { background: #313338; border-radius: 10px; padding: 14px 14px 16px; align-self: start; position: sticky; top: 20px; }
.dc-preview .who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #f2f3f5; font-weight: 600; }
.dc-preview .who .app { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.dc-preview .who small { color: #949ba4; font-weight: 400; font-size: 11px; }
.dc-box { border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; border-left: 4px solid var(--bar, #ff7a1a); padding: 12px 14px; color: #dbdee1; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.dc-box .ttl { font-weight: 700; color: #f2f3f5; }
.dc-box hr { border: 0; border-top: 1px solid #3f4147; margin: 10px 0; }
.dc-box ul { margin: 0; padding-left: 20px; }
.dc-box li::marker { color: #b5bac1; }
.dc-box blockquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.dc-box .dc-emoji { width: 20px; height: 20px; vertical-align: -4px; }
.dc-box .dc-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-btns { display: flex; gap: 8px; margin-top: 12px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.dc-btn .dc-emoji { width: 18px; height: 18px; vertical-align: 0; }
.dc-btn .i { width: 14px; height: 14px; opacity: 0.85; }
.dc-off { opacity: 0.4; }
.dc-note { font-size: 11.5px; color: #949ba4; margin-top: 8px; }
@media (max-width: 1100px) { .ev-body { grid-template-columns: 1fr; } .dc-preview { position: static; } }

/* ---------- логотип ---------- */
.brand-mark { background: none; border: 0; width: 36px; height: 36px; }
.brand-mark .logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(243, 197, 97, 0.25)); }
.auth-logo { display: block; width: 64px; height: 64px; margin: 0 auto 22px; object-fit: contain; filter: drop-shadow(0 6px 22px rgba(243, 197, 97, 0.3)); }

/* ---------- обжалования ---------- */
.ap-list { display: grid; gap: 14px; }
.ap { overflow: hidden; }
.ap-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.ap-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.ap-title { flex: 1; min-width: 0; }
.ap-title b { display: block; font-size: 15px; }
.ap-title small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ap-subject { margin: 0 18px 14px; padding: 12px 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; }
.ap-subject .k { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; white-space: normal; }
.ap-status { flex: none; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.ap-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-timer { display: flex; align-items: center; gap: 14px; margin: 0 18px 14px; padding: 12px 14px; border-radius: 11px; background: linear-gradient(90deg, rgba(255, 122, 26, 0.1), transparent); border: 1px solid var(--accent-line); }
.ap-timer .t { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ap-timer small { display: block; color: var(--muted); font-size: 12px; }
.ap-timer .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.ap-timer .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb15c); border-radius: 6px; }
.ap-timer.low { border-color: rgba(240, 82, 82, 0.45); background: linear-gradient(90deg, rgba(240, 82, 82, 0.12), transparent); }
.ap-timer.low .t { color: var(--red); }
.ap-timer.low .bar i { background: var(--red); }
.ap-form { display: grid; gap: 12px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.ap-answer { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ap-answer .txt { white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; }
.ap-answer a.lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); word-break: break-all; }
.ap-answer a.lnk:hover { text-decoration: underline; }
.ap-shots { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-shots a { display: block; width: 140px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.ap-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.ap-shots a:hover img { transform: scale(1.04); }
.ap-shots .gone { width: 140px; height: 96px; border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: 11.5px; color: var(--faint); border: 1px dashed var(--line-2); padding: 8px; }
.ap-verdict { margin: 0 18px 16px; padding: 12px 14px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.ap-verdict b { color: var(--c); }
.ap-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--muted); text-align: center; cursor: pointer; transition: border-color 0.15s, color 0.15s; font-size: 13px; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }
.drop .i { width: 22px; height: 22px; }
.drop-files { display: flex; gap: 8px; flex-wrap: wrap; }
.drop-files .f { position: relative; width: 96px; height: 70px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2); }
.drop-files .f img { width: 100%; height: 100%; object-fit: cover; }
.drop-files .f button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.counts { flex-wrap: wrap; width: fit-content; max-width: 100%; }

/* ---------- ники и твинки ---------- */
.acc-groups { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.acc-groups span { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--panel-3); color: var(--text-2); }
.acc-groups span.srv { background: transparent; color: var(--faint); padding-left: 0; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.check.ok { color: var(--green); }
.check.missing { color: var(--red); }
.check.unknown { color: var(--faint); }
.summary { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.summary .s { padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.summary .s b { display: block; font-size: 18px; color: var(--text); }

/* ---------- цветной ник и карточка сотрудника ---------- */
.uname b { color: var(--nc, var(--text)); }
.post-head .who a.uname:hover b { color: var(--nc, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.ucard { position: fixed; z-index: 97; width: 300px; background: #0f0f12; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); overflow: hidden; animation: pop-in 0.14s ease-out; }
.uc-loading { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.uc-banner { height: 96px; background-size: cover; background-position: center; }
.uc-body { padding: 0 16px 14px; margin-top: -38px; position: relative; }
.uc-avatar { position: relative; width: 76px; height: 76px; }
.uc-avatar img { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #0f0f12; background: var(--panel-2); }
.uc-avatar .presence { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #0f0f12; background: var(--faint); }
.uc-avatar .presence.on { background: var(--green); }
.uc-name { font-size: 18px; font-weight: 700; margin-top: 6px; line-height: 1.2; word-break: break-word; }
.uc-tag { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.uc-sep { height: 1px; background: var(--line); margin: 12px 0 10px; }
.uc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 8px; }
.ucard .roles { display: flex; flex-wrap: wrap; gap: 5px; }
.ucard .roles .chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
.uc-open { width: 100%; margin-top: 14px; }
.uc-hint { font-size: 11px; color: var(--faint); text-align: center; margin-top: 8px; }

/* ---------- кураторская: список запросов и страница запроса ---------- */
.ap-rows { overflow: hidden; }
.ap-row { display: grid; grid-template-columns: 10px 52px minmax(0, 1fr) auto 140px 16px; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); transition: background 0.12s; }
.ap-row:first-child { border-top: 0; }
.ap-row:hover { background: var(--panel-2); }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.ap-num { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ap-who { min-width: 0; }
.ap-who b { display: block; font-size: 14px; }
.ap-who small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-right { text-align: right; font-size: 12.5px; }
.ap-left { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-left.new { color: var(--blue); }
.ap-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ap-side { position: sticky; top: 20px; }
.ap-step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.ap-step:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line-2); }
.ap-step > span { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); margin-top: 2px; z-index: 1; }
.ap-step.done > span { background: var(--green); border-color: var(--green); }
.ap-step.active > span { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ap-step b { display: block; font-size: 13.5px; }
.ap-step small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
@media (max-width: 1000px) {
  .ap-detail { grid-template-columns: 1fr; }
  .ap-side { position: static; }
  .ap-row { grid-template-columns: 10px minmax(0, 1fr) auto 16px; }
  .ap-row .ap-num, .ap-row .ap-right { display: none; }
}

/* ---------- выдача заказов ---------- */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table.orders td { vertical-align: middle; }
.give-to { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nick-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 12.5px ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.nick-chip .i { width: 12px; height: 12px; color: var(--muted); }
.nick-chip:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- наказания: сверху баны, снизу муты ---------- */
.cell.split { width: 44px; height: 32px; position: relative; display: block; }
.cell.split::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 0.7px), rgba(255, 255, 255, 0.38) 50%, transparent calc(50% + 0.7px)); }
.cell.split .pc-b { position: absolute; left: 6px; top: 3px; font-size: 11.5px; font-weight: 800; line-height: 1; }
.cell.split .pc-m { position: absolute; right: 6px; bottom: 3px; font-size: 11.5px; font-weight: 800; line-height: 1; color: #ffe0c2; }
.sgrid.weeks .cell.split { width: 88px; }
.mini-cell { position: relative; display: inline-block; width: 26px; height: 20px; border-radius: 5px; background: #6b4d23; vertical-align: middle; }
.mini-cell::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top right, transparent calc(50% - 0.6px), rgba(255, 255, 255, 0.45) 50%, transparent calc(50% + 0.6px)); }
.mini-cell i { position: absolute; left: 3px; top: 1px; font: normal 800 9px/1 inherit; color: #fff; }
.mini-cell b { position: absolute; right: 3px; bottom: 1px; font: 800 9px/1 inherit; color: #ffe0c2; }
.split-legend { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.sum-split { display: inline-flex; align-items: baseline; gap: 4px; }
.sum-split span { color: var(--faint); font-weight: 400; }
.sum-split .m, .punish-note .m { color: #ffb36b; }
.punish-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.punish-note .i { color: var(--accent); margin-top: 2px; }
.punish-note b { color: var(--text); }

.ap-alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-color: var(--accent-line); background: linear-gradient(90deg, rgba(255, 122, 26, 0.12), var(--panel) 60%); }
.ap-alert > .i:first-child { width: 22px; height: 22px; color: var(--accent); }
.ap-alert span { flex: 1; }
.ap-alert b { display: block; }
.ap-alert small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ap-alert:hover { border-color: var(--accent); }

/* ---------- верхняя панель ---------- */
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px 0 16px;
  background: rgba(9, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); flex: none; }
.topbar-btn:hover { background: var(--panel-2); color: var(--text); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { width: 14px; height: 14px; color: var(--faint); flex: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex: none; }
.tb-date { color: var(--text-2); font-variant-numeric: tabular-nums; }
.tb-sep { width: 1px; height: 16px; background: var(--line-2); }
.tb-time b { color: var(--text); font-variant-numeric: tabular-nums; }
.only-mobile { display: none; }
body.side-collapsed .shell { grid-template-columns: 0 minmax(0, 1fr); }
body.side-collapsed .side { visibility: hidden; padding: 0; border: 0; overflow: hidden; }
.shell { transition: grid-template-columns 0.18s ease; }
@media (max-width: 860px) {
  .topbar { padding: 0 12px; }
  .only-mobile { display: grid; }
  .tb-date, .tb-sep { display: none; }
  body.side-collapsed .shell { grid-template-columns: 1fr; }
  body.side-collapsed .side { visibility: visible; padding: 20px 14px; }
}

/* ---------- мгновенная подсказка ---------- */
.tip { position: fixed; z-index: 99; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: #1d1d22; border: 1px solid var(--line-2); color: var(--text); font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); pointer-events: none; animation: fade-in 0.08s ease-out; white-space: pre-line; }

/* ---------- страница «Администрация»: всё по центру ---------- */
.roster-page { max-width: 1080px; margin: 0 auto; padding-top: 12px; }
.roster-hero { text-align: center; padding: 18px 16px 34px; }
.roster-hero-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 14px; }
.roster-hero-ico .i { width: 24px; height: 24px; }
.roster-hero h1 { margin: 0; font-size: 30px; letter-spacing: -0.01em; }
.roster-hero p { margin: 6px 0 0; color: var(--muted); }
.roster-stats { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.roster-stats b { color: var(--text); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.roster { display: grid; gap: 34px; }
.roster-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.roster-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 40%, var(--line))); }
.roster-title .line:last-child { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--rc) 40%, var(--line))); }
.roster-title .chip { height: 30px; padding: 0 14px; font-size: 13px; }
.roster-title .count { min-width: 26px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.roster-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.member {
  width: 200px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.member::before { content: ''; position: absolute; inset: 0 0 auto; height: 56px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent); pointer-events: none; }
.member:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rc) 45%, var(--line-2)); background: var(--panel-2); }
.member .av { position: relative; margin-bottom: 12px; }
.member .av img { width: 68px; height: 68px; border-radius: 50%; display: block; border: 3px solid color-mix(in srgb, var(--rc) 55%, transparent); background: var(--panel-2); }
.member .av .presence { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
.member:hover .av .presence { border-color: var(--panel-2); }
.member .av .presence.on { background: var(--green); }
.member b { max-width: 100%; font-size: 15px; color: var(--nc, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member small { max-width: 100%; color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-foot { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; min-height: 22px; }
.nick-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.nick-pill .i { width: 12px; height: 12px; color: var(--muted); }
