:root {
  --bg: #12141a;
  --text: #e7e6e3;
  --muted: #9497a0;
  --dim: #6c6f79;
  --line: rgba(255, 255, 255, 0.08);
  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  --accent: #9b7ef0;
  --accent-2: #7c5cd6;
  --accent-soft: rgba(155, 126, 240, 0.12);
  --accent-line: rgba(155, 126, 240, 0.28);
  --accent-ink: #c9bbf8;
  --warn: #f0a07a;
}

* { box-sizing: border-box; }
body {
  display: flow-root; /* отступ над навбаром не «проваливается» наружу и не добавляет прокрутку */
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- фон ---------- */
/* Слои снизу вверх: свечения → сетка → зерно → затемнение краёв.
   Всё приглушено: фон не должен спорить с текстом. Свечения двигаются только через transform — дёшево. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg > * { position: absolute; }

.bg-glow { border-radius: 50%; will-change: transform; }
.bg-glow--top {
  top: -300px; left: 50%;
  width: 1200px; height: 640px;
  margin-left: -600px;
  background: radial-gradient(closest-side, rgba(170, 179, 209, 0.08), transparent);
}
.bg-glow--violet {
  top: -18vmax; left: -14vmax;
  width: 70vmax; height: 70vmax;
  background: radial-gradient(closest-side, rgba(155, 126, 240, 0.08), rgba(124, 92, 214, 0.025) 45%, transparent);
  animation: bg-drift-a 38s ease-in-out infinite alternate;
}
.bg-glow--blue {
  top: 4vmax; right: -18vmax;
  width: 62vmax; height: 62vmax;
  background: radial-gradient(closest-side, rgba(86, 128, 255, 0.06), rgba(86, 128, 255, 0.015) 50%, transparent);
  animation: bg-drift-b 46s ease-in-out infinite alternate;
}
.bg-glow--pink {
  bottom: -30vmax; left: 18vmax;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(255, 111, 174, 0.03), transparent);
  animation: bg-drift-c 52s ease-in-out infinite alternate;
}
@keyframes bg-drift-a { to { transform: translate3d(7vw, 5vh, 0) scale(1.08); } }
@keyframes bg-drift-b { to { transform: translate3d(-6vw, 8vh, 0) scale(0.92); } }
@keyframes bg-drift-c { to { transform: translate3d(5vw, -6vh, 0) scale(1.1); } }

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 10%, transparent 70%);
}
.bg-noise {
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-vignette {
  inset: 0;
  background: radial-gradient(ellipse 120% 95% at 50% 35%, transparent 55%, rgba(6, 7, 10, 0.5));
}

/* ---------- навигация ---------- */
.nav-wrap { position: sticky; top: 16px; z-index: 50; margin-top: 48px; }
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  min-width: 170px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  color: var(--text);
}
.brand-logo { width: 30px; height: 30px; flex: none; object-fit: contain; }
.brand-name {
  font-size: 15.5px;
  background: linear-gradient(120deg, #e0d7fc 10%, #9b7ef0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.08); }
.nav-links { flex: 1; display: flex; align-items: center; gap: 4px; padding-left: 6px; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  color: #9497a0;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-link.is-active .i { color: #b8a4f6; }
/* пункты не помещаются рядом с ником (у Команды Проекта их больше) — остаются иконки, название в подсказке */
.nav.is-compact .nav-link span { display: none; }
.nav.is-compact .nav-link { padding: 10px 12px; }
.btn-login { flex: none; }
/* «Проверки» — отдельный блок справа от навбара (у Команды Проекта); шапка чуть шире, чтобы подписи пунктов остались */
.nav-wrap.has-side { display: flex; gap: 10px; width: min(1240px, calc(100% - 32px)); }
.nav-wrap.has-side .nav { flex: 1; min-width: 0; }
.nav-wrap.has-side .brand { min-width: 0; }
.nav-wrap.has-side .nav-link { padding: 9px 13px; }
.nav-side {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 64px;
  padding: 0 20px;
  border-radius: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(155, 126, 240, 0.16), rgba(155, 126, 240, 0.05));
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(155, 126, 240, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nav-side .i { color: #b8a4f6; }
.nav-side:hover { border-color: rgba(155, 126, 240, 0.5); background: linear-gradient(180deg, rgba(155, 126, 240, 0.22), rgba(155, 126, 240, 0.08)); }
.nav-side.is-active { border-color: rgba(155, 126, 240, 0.6); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 3px rgba(155, 126, 240, 0.14); }
.nav-side[hidden] { display: none; }
@media (max-width: 600px) {
  .nav-wrap.has-side { gap: 6px; }
  .nav-wrap.has-side .nav-link { padding: 10px 9px; }
  .nav-side { padding: 0 16px; }
  .nav-side span { display: none; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn-primary {
  color: #f3f0ff;
  background: linear-gradient(135deg, #9b7ef0, #7c5cd6);
  box-shadow: 0 10px 26px rgba(124, 92, 214, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(124, 92, 214, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.btn-login { padding: 11px 22px 11px 20px; font-size: 13.5px; margin-right: 6px; }

/* ---------- главная: первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 48px 0;
}
.pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  display: inline-block; /* ширина по самой длинной строке, чтобы градиент не «растягивался» в пустоту */
  margin: 0 0 20px;
  padding-bottom: .08em;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  /* блик + плавный градиент на весь заголовок */
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%) no-repeat,
    linear-gradient(165deg, #f6f3ff 0%, #e6ddfd 22%, #cbb9f9 44%, #ac90f3 66%, #9b7ef0 82%, #c38de9 100%);
  background-size: 40% 100%, 100% 100%;
  background-position: -100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    title-in 1s cubic-bezier(.2, .7, .2, 1) both,
    title-shine 1.6s ease-in-out .8s both;
}
/* Слова заголовка выезжают снизу из-под «шторки» по одному (разбивку делает скрипт на главной).
   Без скрипта остаётся градиент на самом h1 с анимацией title-in. */
.hero h1.is-split { position: relative; background: none; animation: none; }
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .05em .14em;
  margin: 0 -.05em -.14em;
}
.hero h1 .w-in {
  display: inline-block;
  background-image: linear-gradient(165deg, #f6f3ff 0%, #e6ddfd 22%, #cbb9f9 44%, #ac90f3 66%, #9b7ef0 82%, #c38de9 100%);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-origin: 0 100%;
  animation: word-up .9s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
.hero h1 .w-in { will-change: transform, opacity; }
/* скрипт ставит .is-intro сразу и .is-go, когда готовы шрифты; до этого вступление на паузе */
.hero.is-intro:not(.is-go) h1 .w-in,
.hero.is-intro:not(.is-go) .lead,
.hero.is-intro:not(.is-go) .hero-actions .btn { animation-play-state: paused; }
@keyframes word-up {
  from { transform: translateY(115%) rotate(7deg); opacity: 0; }
  60% { opacity: 1; }
}

/* описание и кнопки поднимаются после заголовка; backwards — чтобы после анимации работал hover кнопок */
.hero .lead { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) .7s backwards; }
.hero-actions .btn { animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-actions .btn:nth-child(1) { animation-delay: .9s; }
.hero-actions .btn:nth-child(2) { animation-delay: 1s; }
.hero-actions .btn:nth-child(3) { animation-delay: 1.1s; }
.hero-actions .btn:nth-child(4) { animation-delay: 1.2s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } }
.lead { margin: 0; max-width: 520px; font-size: 16.5px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 560px; }

/* 3D-куб */
.hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
}
.hero-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 99%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 99%);
}
.hero-art.is-ready canvas { opacity: 1; }

/* заглушка на время загрузки куба: полупрозрачный CSS-куб в сетке 3×3 */
.cube-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 800px;
  pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
}
.cube-placeholder::before {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155, 126, 240, 0.16), transparent);
  animation: cp-glow 2.4s ease-in-out infinite;
}
.hero-art.is-ready .cube-placeholder { opacity: 0; transform: scale(.85); }
.cp-cube {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: cp-spin 7s linear infinite;
}
.cp-cube i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(201, 187, 248, 0.5);
  background:
    linear-gradient(rgba(201, 187, 248, 0.22) 1px, transparent 1px) 0 0 / 33.34% 33.34%,
    linear-gradient(90deg, rgba(201, 187, 248, 0.22) 1px, transparent 1px) 0 0 / 33.34% 33.34%,
    linear-gradient(135deg, rgba(155, 126, 240, 0.16), rgba(111, 211, 255, 0.06) 55%, rgba(255, 111, 174, 0.1));
  box-shadow: inset 0 0 28px rgba(155, 126, 240, 0.2);
}
.cp-cube i:nth-child(1) { transform: translateZ(75px); }
.cp-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(75px); }
.cp-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(75px); }
.cp-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(75px); }
.cp-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(75px); }
.cp-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(75px); }
@keyframes cp-spin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to { transform: rotateX(-24deg) rotateY(360deg); }
}
@keyframes cp-glow { 50% { opacity: .5; transform: scale(.9); } }

/* ---------- внутренние страницы ---------- */
.page { padding: 72px 0 96px; }
.page-head { max-width: 680px; }
.page-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.page-icon .i { width: 26px; height: 26px; }
.page-head h1 {
  margin: 24px 0 12px;
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.page-body { margin-top: 44px; }
.page-section { margin-top: 72px; scroll-margin-top: 110px; }
.page-section > h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.page-section > p { margin: 0 0 36px; max-width: 560px; color: var(--muted); }
.stub {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
.box {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.box-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

/* персонал */
.page-head--center { max-width: none; text-align: center; }
.page-head--center .lead { max-width: 720px; margin-inline: auto; }
.page-head .title-xl {
  display: inline-block; /* градиент по ширине текста, а не всего блока */
  margin: 0 0 20px;
  padding-bottom: .06em;
  font-size: clamp(46px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  /* два слоя: блик, который один раз проходит по тексту, и основной градиент */
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%) no-repeat,
    linear-gradient(115deg, #f3f0ff 0%, #c9bbf8 36%, #9b7ef0 68%, #e58bd8 100%);
  background-size: 45% 100%, 100% 100%;
  background-position: -100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    title-in 1s cubic-bezier(.2, .7, .2, 1) both,
    title-shine 1.5s ease-in-out .75s both;
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(14px); }
}
@keyframes title-shine {
  from { background-position: -100% 0, 0 0; }
  to { background-position: 200% 0, 0 0; }
}
.page-head .title-xl--md { font-size: clamp(36px, 6vw, 72px); }

.staff-groups { display: flex; flex-direction: column; gap: 36px; }
.role-player { --role: #b3b6bf; --role-bg: rgba(255, 255, 255, 0.04); --role-line: rgba(255, 255, 255, 0.16); }
.staff-group--curator, .role-curator { --role: #efb0f4; --role-bg: linear-gradient(135deg, rgba(155, 126, 240, 0.2), rgba(255, 111, 174, 0.16)); --role-line: rgba(222, 136, 236, 0.45); }
.staff-group--spectator, .role-spectator { --role: #ecebe8; --role-bg: rgba(255, 255, 255, 0.07); --role-line: rgba(255, 255, 255, 0.26); }
.staff-group--moder, .role-moder { --role: #93b6ff; --role-bg: rgba(86, 128, 255, 0.13); --role-line: rgba(96, 138, 255, 0.45); }
.staff-group--helper, .role-helper { --role: #f4d67c; --role-bg: rgba(244, 200, 84, 0.1); --role-line: rgba(244, 200, 84, 0.4); }
.staff-group--trainee, .role-trainee { --role: #c5f06a; --role-bg: rgba(168, 228, 70, 0.1); --role-line: rgba(168, 228, 70, 0.4); }

.staff-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.staff-group-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--role); }
.staff-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--role); box-shadow: 0 0 12px var(--role-line); }
.staff-list { display: flex; flex-direction: column; gap: 10px; }

.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 12px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color .2s;
}
.member:hover { border-color: var(--role-line); }
.member-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.status {
  flex: none;
  min-width: 124px;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--role);
  background: var(--role-bg);
  border: 1px solid var(--role-line);
}
.member-nick { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 16px; font-weight: 600; }
.member-nick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-head {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.06);
}
.member-head--fallback {
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--role);
  border: 1px solid var(--role-line);
}
.member-meta { display: flex; align-items: center; gap: 16px; flex: none; }
.member-days { display: flex; flex-direction: column; gap: 2px; min-width: 124px; white-space: nowrap; }
.member-days-top { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.member-days-top .i { width: 15px; height: 15px; color: var(--dim); }
.member-days-cap { padding-left: 22px; font-size: 11.5px; color: var(--dim); }

/* тиры: фигура рисуется двумя слоями с одинаковым clip-path —
   внешний цветной даёт обводку, внутренний тёмный с оттенком — заливку. 1 — высший, 10 — начальный. */
.tier--1  { --t: #ffcf6e; --t-fill: rgba(255, 207, 110, 0.2);  --t-glow: rgba(255, 207, 110, 0.55); --size: 40px;
  --shape: polygon(50% 0%, 63.8% 16.7%, 85.4% 14.6%, 83.3% 36.2%, 100% 50%, 83.3% 63.8%, 85.4% 85.4%, 63.8% 83.3%, 50% 100%, 36.2% 83.3%, 14.6% 85.4%, 16.7% 63.8%, 0% 50%, 16.7% 36.2%, 14.6% 14.6%, 36.2% 16.7%); }
.tier--2  { --t: #ff8fc9; --t-fill: rgba(255, 143, 201, 0.18); --t-glow: rgba(255, 143, 201, 0.45); --size: 38px;
  --shape: polygon(22% 6%, 78% 6%, 100% 36%, 50% 100%, 0% 36%); }
.tier--3  { --t: #d38cff; --t-fill: rgba(211, 140, 255, 0.18); --t-glow: rgba(211, 140, 255, 0.4);
  --shape: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%); }
.tier--4  { --t: #a98dff; --t-fill: rgba(169, 141, 255, 0.16);
  --shape: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); }
.tier--5  { --t: #7f9dff; --t-fill: rgba(127, 157, 255, 0.16);
  --shape: polygon(50% 0%, 100% 14%, 94% 60%, 50% 100%, 6% 60%, 0% 14%); }
.tier--6  { --t: #6cc4ff; --t-fill: rgba(108, 196, 255, 0.15); --size: 38px;
  --shape: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.tier--7  { --t: #5fd8c0; --t-fill: rgba(95, 216, 192, 0.14);
  --shape: polygon(50% 0%, 100% 38%, 81% 100%, 19% 100%, 0% 38%); }
.tier--8  { --t: #9ddf6f; --t-fill: rgba(157, 223, 111, 0.13);
  --shape: circle(50% at 50% 50%); }
.tier--9  { --t: #c9c48f; --t-fill: rgba(201, 196, 143, 0.12);
  --shape: inset(0 round 30%); }
.tier--10 { --t: #a3a7b1; --t-fill: rgba(163, 167, 177, 0.1); --size: 32px;
  --shape: inset(2px round 6px); }

.tier {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 58px;
  cursor: help;
  outline: none;
}
.tier-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transition: transform .2s;
}
.tier--1 .tier-art, .tier--2 .tier-art, .tier--3 .tier-art { filter: drop-shadow(0 0 7px var(--t-glow)); }
.tier:hover .tier-art, .tier:focus-visible .tier-art { transform: scale(1.08); }
.tier-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--size, 36px);
  height: var(--size, 36px);
}

/* украшения: по умолчанию скрыты, каждому тиру включаются свои */
.tier-art > i { position: absolute; display: none; pointer-events: none; }

/* крылья (1, 2), плавники (5), листья (7) */
.tier-wing { top: 50%; width: var(--wing-w, 22px); height: var(--wing-h, 20px); margin-top: calc(var(--wing-h, 20px) / -2 + var(--wing-y, -2px)); }
.tier-wing--l {
  right: calc(50% + var(--size, 36px) / 2 - 6px);
  transform-origin: 100% 50%;
  clip-path: var(--wing-l);
  background: linear-gradient(90deg, var(--t-soft), var(--t));
}
.tier-wing--r {
  left: calc(50% + var(--size, 36px) / 2 - 6px);
  transform-origin: 0% 50%;
  clip-path: var(--wing-r);
  background: linear-gradient(270deg, var(--t-soft), var(--t));
}
.tier--1, .tier--2 {
  --wing-l: polygon(100% 25%, 72% 4%, 40% 0%, 0% 12%, 30% 30%, 2% 42%, 34% 56%, 8% 70%, 42% 80%, 24% 96%, 70% 92%, 100% 72%);
  --wing-r: polygon(0% 25%, 28% 4%, 60% 0%, 100% 12%, 70% 30%, 98% 42%, 66% 56%, 92% 70%, 58% 80%, 76% 96%, 30% 92%, 0% 72%);
}
.tier--1 { --t-soft: rgba(255, 207, 110, 0.2); --wing-w: 28px; --wing-h: 26px; }
.tier--2 { --t-soft: rgba(255, 143, 201, 0.18); --wing-w: 22px; --wing-h: 20px; }
.tier--1 .tier-wing, .tier--2 .tier-wing { display: block; }
.tier--1 .tier-wing--l, .tier--2 .tier-wing--l { animation: tier-flap-l 3.2s ease-in-out infinite; }
.tier--1 .tier-wing--r, .tier--2 .tier-wing--r { animation: tier-flap-r 3.2s ease-in-out infinite; }
@keyframes tier-flap-l { 50% { transform: rotate(-9deg); } }
@keyframes tier-flap-r { 50% { transform: rotate(9deg); } }

.tier--5 {
  --t-soft: rgba(127, 157, 255, 0.25); --wing-w: 13px; --wing-h: 18px; --wing-y: -3px;
  --wing-l: polygon(100% 28%, 0% 0%, 40% 50%, 0% 100%, 100% 72%);
  --wing-r: polygon(0% 28%, 100% 0%, 60% 50%, 100% 100%, 0% 72%);
}
.tier--5 .tier-wing { display: block; }

.tier--7 { --wing-w: 9px; --wing-h: 16px; --wing-y: 9px; --wing-l: none; --wing-r: none; }
.tier--7 .tier-wing { display: block; opacity: .8; background: var(--t); }
.tier--7 .tier-wing--l { border-radius: 100% 0; transform: rotate(-32deg); right: calc(50% + var(--size, 36px) / 2 - 7px); }
.tier--7 .tier-wing--r { border-radius: 0 100%; transform: rotate(32deg); left: calc(50% + var(--size, 36px) / 2 - 7px); }

/* корона (1, 3) и ромбик (9) */
.tier-crown {
  left: 50%;
  width: 20px;
  height: 11px;
  margin-left: -10px;
  top: calc(50% - var(--size, 36px) / 2 - 8px);
  background: linear-gradient(180deg, #fff3cf, var(--t));
  clip-path: polygon(0% 100%, 0% 22%, 25% 62%, 50% 0%, 75% 62%, 100% 22%, 100% 100%);
}
.tier--1 .tier-crown { display: block; top: calc(50% - var(--size, 36px) / 2 - 9px); }
.tier--3 .tier-crown { display: block; background: var(--t); }
.tier--9 .tier-crown { display: block; width: 8px; height: 8px; margin-left: -4px; top: calc(50% - var(--size, 36px) / 2 - 7px); background: var(--t); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }

/* кольца: лучи (1), пунктир (6), точки (8) */
.tier-ring {
  left: 50%;
  top: 50%;
  width: var(--ring, 52px);
  height: var(--ring, 52px);
  margin: calc(var(--ring, 52px) / -2) 0 0 calc(var(--ring, 52px) / -2);
  border-radius: 50%;
}
.tier--1 .tier-ring {
  display: block;
  --ring: 62px;
  background: repeating-conic-gradient(var(--t-glow) 0deg 7deg, transparent 7deg 30deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 55%, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 55%, #000 62%, transparent 100%);
  animation: tier-spin 16s linear infinite;
}
.tier--6 .tier-ring { display: block; --ring: 50px; border: 1.5px dashed var(--t); opacity: .55; animation: tier-spin 12s linear infinite; }
.tier--8 .tier-ring { display: block; --ring: 48px; border: 2px dotted var(--t); opacity: .5; }
@keyframes tier-spin { to { transform: rotate(360deg); } }

/* ленты (4) */
.tier-ribbon { left: 50%; width: 26px; height: 15px; margin-left: -13px; top: calc(50% + var(--size, 36px) / 2 - 9px); }
.tier--4 .tier-ribbon { display: block; }
.tier-ribbon::before,
.tier-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 15px;
  background: var(--t);
  opacity: .85;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 74%, 0% 100%);
}
.tier-ribbon::before { left: 1px; transform: rotate(20deg); }
.tier-ribbon::after { right: 1px; transform: rotate(-20deg); }

/* искры (1, 2) */
.tier--1 .tier-art::before, .tier--1 .tier-art::after,
.tier--2 .tier-art::before, .tier--2 .tier-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  background: #fff;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  animation: tier-twinkle 2.6s ease-in-out infinite;
}
.tier--1 .tier-art::before, .tier--2 .tier-art::before { top: 6px; right: 14px; }
.tier--1 .tier-art::after, .tier--2 .tier-art::after { bottom: 7px; left: 14px; width: 5px; height: 5px; animation-delay: 1.3s; }
@keyframes tier-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.tier-badge::before,
.tier-badge::after {
  content: "";
  position: absolute;
  clip-path: var(--shape);
}
.tier-badge::before { inset: 0; background: var(--t); }
.tier-badge::after {
  inset: 2px;
  background: linear-gradient(160deg, var(--t-fill), rgba(0, 0, 0, 0) 70%), #16181f;
}
.tier-badge b {
  position: relative;
  z-index: 1;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--t);
}
.tier--1 .tier-badge b { font-size: 12px; }
.tier--2 .tier-badge b { margin-top: -3px; }
.tier--5 .tier-badge b { margin-top: -2px; }
.tier--7 .tier-badge b { margin-top: 3px; }
.tier-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 250px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #1b1d26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.tier-tip strong { display: block; margin-bottom: 3px; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: var(--t); }
.tier:hover .tier-tip, .tier:focus .tier-tip { opacity: 1; transform: none; }

.like {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 112px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 77, 94, 0.28);
  background: rgba(255, 77, 94, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.like .i { width: 24px; height: 24px; color: #ff4d5e; transition: transform .2s; }
.like b { font-family: 'Sora', sans-serif; font-weight: 600; }
.like:hover { background: rgba(255, 77, 94, 0.13); border-color: rgba(255, 77, 94, 0.5); }
.like:hover .i { transform: scale(1.12); }
.like:active { transform: scale(.95); }
.like.is-liked {
  background: rgba(255, 77, 94, 0.18);
  border-color: rgba(255, 77, 94, 0.65);
  box-shadow: 0 6px 22px rgba(255, 77, 94, 0.25);
}
.like.is-liked .i { fill: currentColor; }

/* разделы для КП */
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(18, 20, 26, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.kp-item .i { width: 20px; height: 20px; margin-bottom: 8px; color: var(--accent-ink); }
.kp-item b { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; }
.kp-item span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* шаги проверки */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 126, 240, 0.65), rgba(255, 255, 255, 0.06));
}
.step-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent-ink);
  background: #171922;
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 0 6px var(--bg);
}
.step-icon .i { width: 22px; height: 22px; }
.step-icon span {
  position: absolute;
  top: -8px;
  right: -12px;
  padding: 1px 6px;
  border-radius: 7px;
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #f3f0ff;
  background: var(--accent-2);
}
.step h4 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(240, 160, 122, 0.06);
  border: 1px solid rgba(240, 160, 122, 0.2);
}
.alert .i { width: 20px; height: 20px; margin-top: 1px; color: var(--warn); }
.alert p { margin: 0; font-size: 14px; color: #cfc6c0; }
.alert b { color: #f3d3c2; font-weight: 600; }

/* предупреждение про удалённый доступ */
.notice {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 160, 122, 0.06), rgba(240, 160, 122, 0.02));
  border: 1px solid rgba(240, 160, 122, 0.18);
}
.notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.notice-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--warn);
  background: rgba(240, 160, 122, 0.1);
  border: 1px solid rgba(240, 160, 122, 0.22);
}
.notice-icon .i { width: 17px; height: 17px; }
.notice-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; color: #f3d3c2; }
.notice-body p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #cfc6c0; }
.notice-body p + p { margin-top: 8px; }
.notice-body strong { color: #f3d3c2; font-weight: 600; }
.domain {
  padding: 1px 8px;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.notice-foot { margin-top: 14px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
button.btn { font: inherit; font-family: 'Sora', sans-serif; font-weight: 600; cursor: pointer; }

/* окно с картинкой */
.lightbox {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #171922;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(8, 9, 12, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lightbox-in .22s ease-out; }
@keyframes lightbox-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.lightbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; }
.lightbox-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.lightbox-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.lightbox-close {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.lightbox-close .i { width: 18px; height: 18px; }
.lightbox img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); background: #fff; }

/* ---------- форум ---------- */
.page-head .title-xl--sm { font-size: clamp(30px, 4.6vw, 54px); }
.tone-violet { --tone: #c9bbf8; --tone-soft: rgba(155, 126, 240, 0.12); --tone-line: rgba(155, 126, 240, 0.34); }
.tone-blue { --tone: #93b6ff; --tone-soft: rgba(86, 128, 255, 0.12); --tone-line: rgba(96, 138, 255, 0.36); }
.tone-green { --tone: #a6e07a; --tone-soft: rgba(157, 223, 111, 0.1); --tone-line: rgba(157, 223, 111, 0.32); }
.tone-pink { --tone: #f5a3c7; --tone-soft: rgba(241, 155, 189, 0.1); --tone-line: rgba(241, 155, 189, 0.34); }

.forum-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.forum-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: text;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.forum-search:focus-within { border-color: rgba(155, 126, 240, 0.6); background: rgba(155, 126, 240, 0.05); box-shadow: 0 0 0 4px rgba(155, 126, 240, 0.14); }
.forum-search .i { width: 18px; height: 18px; color: var(--dim); }
.forum-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.forum-search input::placeholder { color: var(--dim); }
.forum-toolbar .btn { height: 50px; }

.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; margin-top: 44px; }

.f-cat { border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; }
.f-cat + .f-cat { margin-top: 18px; }
.f-cat[hidden], .f-row[hidden] { display: none; }
.f-cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--tone-soft), transparent 65%);
}
.f-cat-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--tone);
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
}
.f-cat-icon .i { width: 19px; height: 19px; }
.f-cat-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.f-cat-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.f-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 150px 220px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  transition: background-color .2s;
}
.f-row + .f-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.f-row:hover { background: rgba(255, 255, 255, 0.025); }
.f-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--tone);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.f-icon .i { width: 21px; height: 21px; }
.f-row:hover .f-icon { border-color: var(--tone-line); background: var(--tone-soft); }
.f-main { min-width: 0; }
.f-link { font-family: 'Sora', sans-serif; font-size: 15.5px; font-weight: 600; color: var(--text); transition: color .2s; }
.f-link::after { content: ""; position: absolute; inset: 0; }
.f-row:hover .f-link { color: var(--tone); }
.f-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 2px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.f-lock .i { width: 12px; height: 12px; }
.f-desc { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.f-subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.f-sub {
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background-color .2s;
}
.f-sub:hover { color: var(--text); border-color: var(--tone-line); background: var(--tone-soft); }
.f-stats { display: flex; justify-content: flex-end; gap: 20px; }
.f-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.f-stat b { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
.f-stat span { font-size: 11.5px; color: var(--dim); }
.f-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f-last--empty { font-size: 13px; color: var(--dim); }
.f-last-body { display: flex; flex-direction: column; min-width: 0; }
.f-last-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-last-meta { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-head { flex: none; border-radius: 8px; image-rendering: pixelated; background: rgba(255, 255, 255, 0.06); }
.f-head--fallback {
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.f-nothing { margin: 18px 0 0; padding: 28px; border-radius: 20px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, 0.12); }

.f-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.f-box { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.f-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14.5px; font-weight: 600; }
.f-count { padding: 0 8px; border-radius: 999px; font-size: 12px; color: #9ddf6f; background: rgba(157, 223, 111, 0.1); border: 1px solid rgba(157, 223, 111, 0.3); }
.f-dl { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.f-dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.f-dl dt { color: var(--muted); }
.f-dl dd { margin: 0; font-weight: 600; }
.f-online { display: flex; flex-wrap: wrap; gap: 8px; }
.f-recent-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.f-recent { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 12px; transition: background-color .2s; }
.f-recent:hover { background: rgba(255, 255, 255, 0.04); }
.f-recent .f-head { margin-top: 2px; }
.f-recent-body { display: flex; flex-direction: column; min-width: 0; }
.f-recent-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  transition: color .2s;
}
.f-recent:hover .f-recent-title { color: var(--accent-ink); }
.f-recent-meta { margin-top: 2px; font-size: 12px; color: var(--dim); }
.f-recent-sec { font-size: 11.5px; color: var(--accent-ink); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post.is-target { animation: post-target 2.2s ease; }
@keyframes post-target {
  0%, 45% { box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(155, 126, 240, 0.25); }
}
.f-online-user { display: inline-flex; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }

/* страница раздела */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-bottom: 20px; font-size: 13.5px; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs-sep .i { width: 14px; height: 14px; vertical-align: -2px; }
.f-back { margin: 24px 0 0; }
.f-cat--subs { margin-top: 40px; }
.f-cat--subs .f-row { grid-template-columns: 46px minmax(0, 1fr) 150px 220px; }
.f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.f-bar h2 { margin: 0; font-size: 22px; font-weight: 600; }
.f-lock--lg { margin: 0; padding: 7px 12px; font-size: 13px; }
.f-lock--lg .i { width: 14px; height: 14px; }
.f-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 52px 24px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.f-empty-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 18px;
  color: var(--tone);
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
}
.f-empty-icon .i { width: 26px; height: 26px; }
.f-empty h3 { margin: 0; font-size: 18px; font-weight: 600; }
.f-empty p { margin: 0; font-size: 14px; color: var(--muted); }

/* список тем в разделе */
.t-list { border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; }
.t-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 150px 170px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  transition: background-color .2s;
}
.t-row + .t-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.t-row:hover { background: rgba(255, 255, 255, 0.025); }
.t-row.is-pinned { background: linear-gradient(90deg, rgba(155, 126, 240, 0.07), transparent 55%); }
.t-main { min-width: 0; }
.t-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.t-link { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s; }
.t-link::after { content: ""; position: absolute; inset: 0; }
.t-row:hover .t-link { color: var(--tone, var(--accent-ink)); }
.t-flag { display: inline-grid; color: var(--dim); }
.t-flag .i { width: 15px; height: 15px; }
.t-meta { margin-top: 3px; font-size: 12.5px; color: var(--dim); }
.t-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.t-stats b { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--text); }
.t-last { display: flex; align-items: center; gap: 9px; min-width: 0; }
.t-last > span { display: flex; flex-direction: column; min-width: 0; }
.t-last b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-last small { font-size: 12px; color: var(--dim); white-space: nowrap; }

.t-prefix { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.t-prefix--review { color: #f4d67c; background: rgba(244, 200, 84, 0.1); border: 1px solid rgba(244, 200, 84, 0.35); }
.t-prefix--ok { color: #9ddf6f; background: rgba(157, 223, 111, 0.1); border: 1px solid rgba(157, 223, 111, 0.35); }
.t-prefix--no { color: #f0a07a; background: rgba(240, 160, 122, 0.1); border: 1px solid rgba(240, 160, 122, 0.35); }
.t-prefix--info { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }

/* страница темы */
.crumbs--left { justify-content: flex-start; margin-bottom: 16px; }
.t-head { padding: 26px 28px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.t-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.t-badges:empty { display: none; }
.t-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.t-chip .i { width: 13px; height: 13px; }
.t-h1 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.t-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.t-head-meta b { font-weight: 600; color: var(--text); }
.t-head-meta .f-head { border-radius: 6px; }
.t-dot { color: var(--dim); }
.thread-layout { margin-top: 20px; }
.f-dd-link { color: var(--accent-ink); }
.f-dd-link:hover { text-decoration: underline; }

.posts { display: flex; flex-direction: column; gap: 14px; }
.post {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.post.is-staff { border-color: var(--role-line); box-shadow: inset 3px 0 0 var(--role); }
.post.is-new { animation: post-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes post-in { from { opacity: 0; transform: translateY(14px); } }
.post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--line);
}
.post.is-staff .post-author { background: var(--role-bg); }
.post-author .f-head { border-radius: 14px; }
.post-author-info { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.post-nick { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.post-author .status { min-width: 0; padding: 3px 10px; font-size: 12px; }
.post-op { font-size: 11.5px; color: var(--accent-ink); }
.post-ustats { font-size: 11.5px; color: var(--dim); }
.post-body { display: flex; flex-direction: column; min-width: 0; padding: 16px 22px 12px; }
.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--dim);
}
.post-top span { display: inline-flex; align-items: center; gap: 6px; }
.post-top .i { width: 14px; height: 14px; }
.post-top a { color: var(--dim); }
.post-top a:hover { color: var(--text); }
.post-content { flex: 1; padding: 14px 0 8px; font-size: 15px; line-height: 1.7; color: #d9d8d5; overflow-wrap: anywhere; }
.post-content p { margin: 0 0 12px; }
.post-content > :last-child { margin-bottom: 0; }
.post-list { margin: 0 0 12px; padding-left: 22px; }
.post-list li + li { margin-top: 6px; }
.post-list li::marker { font-weight: 600; color: var(--accent-ink); }
.post-fields { margin: 0 0 12px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.post-fields div { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.post-fields div + div { border-top: 1px solid var(--line); }
.post-fields dt { padding: 9px 14px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.025); }
.post-fields dd { margin: 0; padding: 9px 14px; font-size: 14px; }
.post-quote { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--accent); background: rgba(155, 126, 240, 0.06); font-size: 14px; color: var(--muted); }
.post-quote cite { display: block; margin-bottom: 4px; font-size: 12.5px; font-style: normal; font-weight: 600; color: var(--accent-ink); }
.post-quote p { margin: 0; }
.post-verdict { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.post-verdict .i { flex: none; width: 19px; height: 19px; }
.post-verdict--ok { color: #b5efcb; background: rgba(126, 226, 168, 0.08); border: 1px solid rgba(126, 226, 168, 0.3); }
.post-verdict--no { color: #f3d3c2; background: rgba(240, 160, 122, 0.08); border: 1px solid rgba(240, 160, 122, 0.3); }
.post-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.post-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .15s;
}
.post-btn .i { width: 16px; height: 16px; }
.post-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.post-btn:active { transform: scale(.95); }
.post-like .i { color: #ff4d5e; }
.post-like b { font-family: 'Sora', sans-serif; font-weight: 600; }
.post-like.is-liked { color: #ffb3bb; background: rgba(255, 77, 94, 0.12); border-color: rgba(255, 77, 94, 0.35); }
.post-like.is-liked .i { fill: currentColor; }

.reply { margin-top: 18px; }
.reply-note { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.12); }
.reply-note > .i { flex: none; width: 22px; height: 22px; color: var(--muted); }
.reply-note > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.reply-note b { font-size: 15px; font-weight: 600; }
.reply-note span { font-size: 13.5px; color: var(--muted); }
.reply-form { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08); }
.reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.reply-head b { color: var(--text); }
.reply-editor { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); transition: border-color .2s, box-shadow .2s; }
.reply-editor:focus-within { border-color: rgba(155, 126, 240, 0.6); box-shadow: 0 0 0 4px rgba(155, 126, 240, 0.14); }
.reply-toolbar { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.reply-toolbar button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.reply-toolbar button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.reply-toolbar .i { width: 16px; height: 16px; }
.reply-editor textarea { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; }
.reply-editor textarea::placeholder { color: var(--dim); }
.reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.reply-hint { font-size: 12.5px; color: var(--dim); }

@media (max-width: 860px) {
  .t-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .t-stats, .t-last { grid-column: 2; }
  .t-stats { flex-direction: row; align-items: center; gap: 14px; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; padding: 14px 16px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author .f-head { width: 44px; height: 44px; border-radius: 10px; }
  .post-author-info { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .post-fields div { grid-template-columns: 1fr; }
  .post-fields dt { padding-bottom: 4px; }
  .reply-foot { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .t-head { padding: 20px; }
  .post-body { padding: 14px 16px 12px; }
  .reply-note { flex-wrap: wrap; }
}

/* создание темы */
.nt-wrap, .nt-card, .nt-preview { max-width: 860px; margin-inline: auto; }
.nt-wrap { margin-top: 36px; }
.nt-card { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; padding: 26px 28px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08); }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.nt-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nt-field--wide { grid-column: 1 / -1; }
.nt-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.nt-label i { font-style: normal; color: #f0a07a; }
.nt-input,
.nt-select select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.nt-input::placeholder { color: var(--dim); }
.nt-input:focus,
.nt-select select:focus { border-color: rgba(155, 126, 240, 0.6); background: rgba(155, 126, 240, 0.05); box-shadow: 0 0 0 4px rgba(155, 126, 240, 0.14); }
.nt-input[readonly] { color: var(--muted); background: rgba(255, 255, 255, 0.02); cursor: default; }
.nt-input[readonly]:focus { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.nt-select { position: relative; }
.nt-select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.nt-select .i { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; margin-top: -9px; color: var(--dim); pointer-events: none; }
.nt-select option, .nt-select optgroup { background: #1b1d26; color: var(--text); }
.nt-select option:disabled { color: var(--dim); }
.nt-field.is-invalid .nt-input,
.nt-field.is-invalid select,
.nt-field.is-invalid .reply-editor { border-color: rgba(240, 160, 122, 0.65); box-shadow: 0 0 0 4px rgba(240, 160, 122, 0.12); }
.nt-error { font-size: 12.5px; color: #f3b89c; }
.nt-hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 13px; font-size: 13.5px; color: #cfdcf7; background: rgba(86, 128, 255, 0.07); border: 1px solid rgba(96, 138, 255, 0.25); }
.nt-hint .i { flex: none; width: 17px; height: 17px; margin-top: 2px; color: #93b6ff; }
.nt-placeholder { display: flex; align-items: center; gap: 12px; padding: 22px; border-radius: 14px; font-size: 14px; color: var(--muted); border: 1px dashed rgba(255, 255, 255, 0.12); }
.nt-placeholder .i { flex: none; width: 20px; height: 20px; }
.nt-card .reply-editor textarea { min-height: 170px; }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.nt-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-preview { margin-top: 24px; scroll-margin-top: 110px; }
.nt-preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.nt-preview-head > span:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.nt-preview-head b { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; }
.nt-empty { color: var(--dim); font-style: italic; }
@media (max-width: 700px) {
  .nt-grid { grid-template-columns: 1fr; }
  .nt-card { padding: 20px 18px; }
  .nt-actions { flex-direction: column-reverse; align-items: stretch; }
  .nt-buttons .btn { flex: 1; justify-content: center; }
}

/* всплывающее сообщение */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--text);
  background: #1d1f28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .forum-layout { grid-template-columns: 1fr; }
  .f-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .f-row, .f-cat--subs .f-row { grid-template-columns: 46px minmax(0, 1fr); row-gap: 10px; }
  .f-stats, .f-last { grid-column: 2; }
  .f-stats { justify-content: flex-start; }
  .f-stat { flex-direction: row; align-items: baseline; gap: 5px; }
}
@media (max-width: 600px) {
  .f-side { grid-template-columns: 1fr; }
  .f-row { padding: 14px 16px; gap: 12px; }
  .f-lock { margin: 6px 0 0; display: flex; width: max-content; }
}

/* ---------- окно входа ---------- */
button.btn-primary { border: 0; }
.auth {
  width: min(420px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.auth::backdrop { background: rgba(8, 9, 12, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth[open]::backdrop { animation: auth-fade .35s ease both; }
.auth.is-closing::backdrop { animation: auth-fade-out .24s ease both; }
@keyframes auth-fade { from { opacity: 0; } }
@keyframes auth-fade-out { to { opacity: 0; } }

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31, 33, 44, 0.94), rgba(20, 22, 30, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: height .35s cubic-bezier(.2, .8, .2, 1);
}
.auth-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.auth-step[hidden] { display: none; }
.auth-step.is-enter { animation: auth-step-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes auth-step-in { from { opacity: 0; transform: translateX(22px); } }
.auth-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 360px;
  height: 240px;
  margin-left: -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155, 126, 240, 0.28), transparent);
  pointer-events: none;
}
/* появление/исчезновение — на самом окне, встряска — на карточке: так они не перезапускают друг друга */
.auth[open] { animation: auth-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.auth.is-closing { animation: auth-out .24s ease-in both; }
.auth-card.is-shake { animation: auth-shake .42s ease; }
@keyframes auth-in { from { opacity: 0; transform: translateY(22px) scale(.94); filter: blur(10px); } }
@keyframes auth-out { to { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(6px); } }
@keyframes auth-shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

/* содержимое проявляется по очереди */
.auth[open] .auth-head,
.auth[open] .auth-field,
.auth[open] .auth-submit { animation: auth-rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.auth[open] .auth-head { animation-delay: .08s; }
.auth[open] .auth-field--nick { animation-delay: .15s; }
.auth[open] .auth-field--pass { animation-delay: .22s; }
.auth[open] .auth-submit { animation-delay: .29s; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(12px); } }

.auth-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 6px; }
.auth-logo { width: 56px; height: 56px; filter: drop-shadow(0 8px 24px rgba(86, 128, 255, 0.35)); }
.auth-head h2 { margin: 14px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.auth-head h2 .brand-name { font-size: inherit; }
.auth-head p { margin: 0; max-width: 300px; font-size: 13.5px; color: var(--muted); }

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.auth-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.auth-close .i { width: 17px; height: 17px; }

.auth-field { position: relative; display: flex; flex-direction: column; gap: 7px; }
.auth-label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 8px 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.auth-input:focus-within {
  border-color: rgba(155, 126, 240, 0.6);
  background: rgba(155, 126, 240, 0.05);
  box-shadow: 0 0 0 4px rgba(155, 126, 240, 0.14);
}
.auth-input > .i { width: 18px; height: 18px; color: var(--dim); transition: color .2s; }
.auth-input:focus-within > .i { color: var(--accent-ink); }
.auth-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.auth-input input::placeholder { color: var(--dim); }
.auth-input input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px #1d1f28 inset; caret-color: var(--text); }
.auth-eye {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--dim);
  cursor: pointer;
}
.auth-eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.auth-eye .i { width: 18px; height: 18px; }

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #f3d3c2;
  background: rgba(240, 160, 122, 0.08);
  border: 1px solid rgba(240, 160, 122, 0.25);
}
/* кнопка в окне без свечения: при наведении чуть больше, при нажатии пружинисто сжимается */
.auth .auth-submit,
.auth .auth-action {
  justify-content: center;
  height: 50px;
  margin-top: 6px;
  font-size: 15px;
  box-shadow: none;
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), opacity .2s;
}
.auth .auth-submit:hover,
.auth .auth-action:hover { transform: scale(1.03); box-shadow: none; }
.auth .auth-submit:active,
.auth .auth-submit.is-pressed,
.auth .auth-action:active,
.auth .auth-action.is-pressed { transform: scale(.95); transition-duration: .08s; }
.auth .auth-action[hidden] { display: none; }

/* Telegram-шаги */
.tg-badge {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3fb3ea, #1f8fcb);
  box-shadow: 0 12px 32px rgba(42, 171, 238, 0.32);
}
.tg-badge .i { width: 28px; height: 28px; margin: 2px 3px 0 0; }
.tg-badge--pulse::before,
.tg-badge--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(63, 179, 234, 0.55);
  animation: tg-ring 2.2s ease-out infinite;
}
.tg-badge--pulse::after { animation-delay: 1.1s; }
@keyframes tg-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.tg-required {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.tg-required .i { width: 13px; height: 13px; }
.tg-code {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: rgba(155, 126, 240, 0.05);
  border: 1px dashed rgba(155, 126, 240, 0.4);
}
.tg-code-label { font-size: 12px; color: var(--muted); }
.tg-code-value { grid-column: 1; font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 600; letter-spacing: .1em; color: var(--accent-ink); }
.tg-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.tg-copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.tg-copy.is-copied { color: #7ee2a8; border-color: rgba(126, 226, 168, 0.4); }
.tg-copy .i { width: 18px; height: 18px; }

.tg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #bfe3f5;
  background: rgba(42, 171, 238, 0.07);
  border: 1px solid rgba(42, 171, 238, 0.22);
}
.tg-timer { margin-left: auto; font-family: 'Sora', sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; color: #e7f6ff; }
.tg-dots { display: inline-flex; gap: 4px; }
.tg-dots i { width: 6px; height: 6px; border-radius: 50%; background: #5bc3f0; animation: tg-dot 1.2s ease-in-out infinite; }
.tg-dots i:nth-child(2) { animation-delay: .15s; }
.tg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tg-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.auth-step--confirm.is-expired .tg-status { color: #f3d3c2; background: rgba(240, 160, 122, 0.08); border-color: rgba(240, 160, 122, 0.28); }
.auth-step--confirm.is-expired .tg-dots { display: none; }
.auth-step--confirm.is-expired .tg-timer { color: #f3d3c2; }
.auth-step--confirm.is-expired .tg-badge--pulse::before,
.auth-step--confirm.is-expired .tg-badge--pulse::after { animation: none; opacity: 0; }

.auth-back {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.auth-back:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.auth-back .i { width: 15px; height: 15px; }

/* шаг «готово»: галочка рисуется */
.done-check svg { display: block; width: 76px; height: 76px; }
.done-check circle { fill: rgba(126, 226, 168, 0.08); stroke: #7ee2a8; stroke-width: 2.5; stroke-dasharray: 151; }
.done-check path { fill: none; stroke: #7ee2a8; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; }
.auth-step--done.is-enter .done-check circle { animation: draw-circle .6s ease-out both; }
.auth-step--done.is-enter .done-check path { animation: draw-check .4s ease-out .45s both; }
@keyframes draw-circle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes draw-check { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
.auth-step--done .auth-head { padding: 12px 0 8px; }

/* кнопка в навбаре после входа */
.btn-login.is-user {
  gap: 8px;
  padding: 6px 12px 6px 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.btn-login.is-user:hover { transform: none; background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn-login.is-user .i { opacity: .45; transition: opacity .2s, color .2s; }
.btn-login.is-user:hover .i { opacity: 1; color: var(--warn); }
.btn-login-head { width: 26px; height: 26px; border-radius: 7px; image-rendering: pixelated; }
.btn-login .btn-login-head--fallback {
  display: grid !important;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.auth .auth-submit.is-loading { pointer-events: none; opacity: .85; }
.auth-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: auth-spin .7s linear infinite;
}
.auth-submit.is-loading .auth-spinner { display: inline-block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .kp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .nav-link span { display: none; }
  .nav-link { padding: 10px 12px; }
  .brand { min-width: 0; }
}
@media (max-width: 600px) {
  .nav-wrap { margin-top: 16px; top: 10px; }
  .brand span, .btn-login span, .nav-sep { display: none; }
  .brand { padding: 0 8px; }
  .btn-login { padding: 11px 14px; margin-right: 2px; }
  .nav-links { justify-content: center; gap: 2px; padding-left: 0; }
  .nav-link { padding: 10px 9px; }
  .steps { grid-template-columns: 1fr; }
  .member { flex-direction: column; align-items: stretch; gap: 10px; }
  .member-meta { justify-content: space-between; }
  .status { min-width: 0; }
  .tier-tip { right: auto; left: 0; width: 230px; }
  .page { padding: 48px 0 72px; }
  .notice { padding: 16px 16px; }
  .notice-foot .btn { white-space: normal; text-align: left; }
  .lightbox-head { padding: 14px 14px 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .bg-glow, .tier-art > i, .tier-art::before, .tier-art::after, .page-head .title-xl,
  .hero h1, .hero h1 .w-in, .hero .lead, .hero-actions .btn, .cube-placeholder::before,
  .auth[open], .auth.is-closing, .auth[open]::backdrop, .auth[open] .auth-head, .auth[open] .auth-field,
  .auth[open] .auth-submit, .auth-step.is-enter, .tg-badge--pulse::before, .tg-badge--pulse::after,
  .tg-dots i, .done-check circle, .done-check path { animation: none !important; }
  .auth-card { transition: none; }
  .cp-cube { animation: none; transform: rotateX(-24deg) rotateY(35deg); }
  .btn { transition: none; }
}

/* ---------- панель КП ---------- */
.btn-danger {
  color: #fff4ee;
  border: 0;
  background: linear-gradient(135deg, #e7835e, #c95a4b);
  box-shadow: 0 10px 24px rgba(201, 90, 75, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(201, 90, 75, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16); }

.p-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.p-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: color .2s, background-color .2s, border-color .2s;
}
.p-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.p-tab.is-active { font-weight: 600; color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.p-tab.is-active .i { color: var(--accent-ink); }
.p-body { margin-top: 40px; }
.p-locked { max-width: 620px; margin: 0 auto; }
.p-locked-actions { margin-top: 14px; }

.p-head { flex: none; border-radius: 8px; image-rendering: pixelated; background: rgba(255, 255, 255, 0.06); }
.p-head--fallback {
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; color: var(--muted); }
.p-meta > span:not(.status) { display: inline-flex; align-items: center; gap: 6px; }
.p-meta .i { width: 15px; height: 15px; color: var(--dim); }
.p-meta .status { min-width: 0; padding: 4px 11px; font-size: 12.5px; }
.p-h2 { margin: 44px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.p-h3 { margin: 26px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.p-alert { margin-top: 14px; }

/* счётчики 0/3 */
.p-pips { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.p-pips-dots { display: inline-flex; gap: 4px; }
.p-pips-dots i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); }
.p-pips--warn { --pip: #ff7f73; }
.p-pips--pred { --pip: #f4d67c; }
.p-pips-dots i.on { background: var(--pip); }
.p-pips b { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600; }
.p-pips.is-zero b { color: var(--dim); }
.p-pips--warn.is-risk b { color: var(--pip); }
.p-pips--warn.is-risk .p-pips-dots i.on { box-shadow: 0 0 8px rgba(255, 127, 115, 0.6); }
.p-likes { display: inline-flex; align-items: center; gap: 6px; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; }
.p-likes .i { width: 16px; height: 16px; color: #ff4d5e; fill: currentColor; }


/* кабинет: карточка сотрудника */
.p-profile { padding: 0; overflow: hidden; }
.p-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 26px 24px;
}
/* фон шапки: цвет должности слева, мелкая сетка и плавное затухание вправо */
.p-hero::before,
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.p-hero::before {
  background: var(--role-bg);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 80%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 80%);
}
.p-hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 130% at 0% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 130% at 0% 50%, #000, transparent 75%);
}
.p-hero-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.09), rgba(10, 11, 15, 0.55) 72%);
  border: 1px solid var(--role-line);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.025), 0 18px 40px -10px var(--role-line);
}
.p-hero-avatar .p-head { width: 76px; height: 76px; border-radius: 0; background: none; image-rendering: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.p-hero-avatar .p-head--fallback { border-radius: 20px; font-size: 30px; color: var(--role); background: rgba(255, 255, 255, 0.04); border-color: var(--role-line); filter: none; }
.p-hero-main { min-width: 0; }
.p-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--role); }
.p-hero-kicker .i { width: 13px; height: 13px; }
.p-hero-main h2 { margin: 4px 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.p-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p-hero-tags .status { min-width: 0; padding: 4px 12px; font-size: 13px; }
.p-hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: rgba(10, 11, 15, 0.35); border: 1px solid var(--line); }
.p-hero-tag .i { width: 14px; height: 14px; }
.p-hero-tag--vac { color: #7fe3cf; background: rgba(95, 216, 192, 0.08); border-color: rgba(95, 216, 192, 0.3); }
.p-hero-tag--bday { color: #ffb3d9; background: rgba(255, 143, 201, 0.08); border-color: rgba(255, 143, 201, 0.34); }
.p-hero-counters {
  display: flex;
  border-radius: 18px;
  background: rgba(10, 11, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.p-counter { display: flex; flex-direction: column; gap: 8px; min-width: 104px; padding: 14px 18px; }
.p-counter + .p-counter { border-left: 1px solid var(--line); }
.p-counter > span:first-child { font-size: 12px; color: var(--dim); }
.p-counter .p-likes { font-size: 15px; }

/* статистика */
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.p-stat--red { --tone: #ff9a8f; --tone-soft: rgba(255, 127, 115, 0.1); --tone-line: rgba(255, 127, 115, 0.3); }
.p-stat--yellow { --tone: #f4d67c; --tone-soft: rgba(244, 200, 84, 0.1); --tone-line: rgba(244, 200, 84, 0.3); }
.p-stat--violet { --tone: #c9bbf8; --tone-soft: rgba(155, 126, 240, 0.12); --tone-line: rgba(155, 126, 240, 0.32); }
.p-stat {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--tone-soft), rgba(255, 255, 255, 0.015) 60%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.p-stat-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.p-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line); }
.p-stat-icon .i { width: 17px; height: 17px; }
.p-stat-num { margin-top: 14px; font-family: 'Sora', sans-serif; font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--tone); }
.p-stat-cap { font-size: 12.5px; color: var(--dim); }
.p-stat-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.p-stat-total b { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--text); }

/* карточки и график активности */
.p-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.p-card { padding: 18px 20px; }
.p-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.p-card-head > .i { width: 17px; height: 17px; color: var(--accent-ink); }
.p-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.p-card-aside { margin-left: auto; font-size: 13px; color: var(--muted); }
.p-card-aside b { font-family: 'Sora', sans-serif; color: var(--text); }
.p-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 200px; }
.p-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.p-bar-val { font-size: 12px; font-weight: 600; color: var(--muted); }
.p-bar-track { position: relative; flex: 1; width: 100%; max-width: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); overflow: hidden; }
.p-bar-track i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; background: linear-gradient(180deg, #b39cf5, rgba(124, 92, 214, 0.55)); }
.p-bar.is-today .p-bar-track i { background: linear-gradient(180deg, #e0d7fc, #9b7ef0); box-shadow: 0 0 16px rgba(155, 126, 240, 0.4); }
.p-bar-day { font-size: 12px; color: var(--dim); }
.p-bar.is-today .p-bar-day { color: var(--accent-ink); font-weight: 600; }
.p-scroll { max-height: 236px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.p-modal .p-card { margin-top: 12px; }

/* журнал */
.p-log { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.p-log-item { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.p-log-item:not(:last-child)::before { content: ""; position: absolute; top: 30px; bottom: 2px; left: 14px; width: 1px; background: var(--line); }
.p-log-icon { flex: none; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #1b1d26; border: 1px solid var(--line); }
.p-log-icon .i { width: 14px; height: 14px; }
.p-log-item--warn .p-log-icon, .p-log-item--removed .p-log-icon { color: #ff9a8f; border-color: rgba(255, 127, 115, 0.35); }
.p-log-item--pred .p-log-icon { color: #f4d67c; border-color: rgba(244, 200, 84, 0.35); }
.p-log-item--role .p-log-icon { color: var(--accent-ink); border-color: var(--accent-line); }
.p-log-item--join .p-log-icon { color: #9ddf6f; border-color: rgba(157, 223, 111, 0.35); }
.p-log-body { display: flex; flex-direction: column; min-width: 0; padding-top: 3px; }
.p-log-body b { font-size: 14px; font-weight: 600; }
.p-log-comment { margin-top: 2px; font-size: 13.5px; color: #cfcfcb; overflow-wrap: anywhere; }
.p-log-meta { margin-top: 2px; font-size: 12px; color: var(--dim); }

/* варны и преды */
.p-pens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-pen-col { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.p-pen-col--warn { --pen: #ff9a8f; --pen-line: rgba(255, 127, 115, 0.45); }
.p-pen-col--pred { --pen: #f4d67c; --pen-line: rgba(244, 200, 84, 0.45); }
.p-pen-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.p-pen-head > .i { width: 17px; height: 17px; color: var(--pen); }
.p-pen-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.p-pen-head .p-pips { margin-left: auto; }
.p-pen-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-pen {
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--pen-line);
}
.p-pen.is-off { box-shadow: none; opacity: .6; }
.p-pen-top { display: flex; align-items: flex-start; gap: 10px; }
.p-pen-reason { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.p-pen.is-off .p-pen-reason { color: var(--muted); }
.p-pen-meta { margin-top: 3px; font-size: 12px; color: var(--dim); }
.p-pen-remove {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: -4px -6px 0 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.p-pen-remove:hover { color: #ffb6ad; background: rgba(255, 127, 115, 0.1); border-color: rgba(255, 127, 115, 0.3); }
.p-pen-remove .i { width: 15px; height: 15px; }
.p-pen-life { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.p-pen-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.p-pen-track i { display: block; height: 100%; border-radius: 3px; background: var(--pen); }
.p-pen-status { margin-top: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.p-pen-empty { margin: 0; padding: 18px; border-radius: 13px; text-align: center; font-size: 13.5px; color: var(--dim); border: 1px dashed rgba(255, 255, 255, 0.1); }

/* состав: таблица */
.p-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.p-search { width: min(380px, 100%); height: 46px; }
.p-count { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.p-count span { padding: 6px 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.p-count b { font-family: 'Sora', sans-serif; color: var(--text); }
.p-count .p-count-risk { color: #ffb6ad; background: rgba(255, 127, 115, 0.07); border-color: rgba(255, 127, 115, 0.28); }
.p-count .p-count-risk b { color: #ffb6ad; }
.p-tip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.p-tip .i { width: 15px; height: 15px; }
.p-table { margin-top: 14px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; }
.p-row {
  display: grid;
  grid-template-columns: 140px minmax(150px, 1fr) 104px 104px 150px 84px 20px;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  transition: background-color .2s;
}
.p-row + .p-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.p-row--head { padding-block: 12px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--dim); background: rgba(255, 255, 255, 0.02); }
.p-row.is-me { background: linear-gradient(90deg, rgba(155, 126, 240, 0.08), transparent 60%); }
.p-row.is-clickable { cursor: pointer; outline: none; }
.p-row.is-clickable:hover { background: rgba(255, 255, 255, 0.035); }
.p-row.is-clickable:focus-visible { box-shadow: inset 0 0 0 2px rgba(155, 126, 240, 0.6); }
.p-c { display: flex; align-items: center; min-width: 0; }
.p-c .status { min-width: 0; width: 100%; padding: 5px 10px; font-size: 13px; }
.p-c--nick { gap: 10px; }
.p-nick { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-you { flex: none; padding: 1px 7px; border-radius: 7px; font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.p-c--go { justify-content: flex-end; color: var(--dim); }
.p-c--go .i { width: 16px; height: 16px; transition: transform .2s, color .2s; }
.p-row.is-clickable:hover .p-c--go .i { color: var(--text); transform: translateX(2px); }
.p-spark { display: inline-flex; align-items: center; gap: 10px; }
.p-spark-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.p-spark-bars i { width: 5px; border-radius: 2px; background: rgba(179, 156, 245, 0.75); }
.p-spark-bars i.is-zero { background: rgba(255, 255, 255, 0.1); }
.p-spark b { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.p-table-empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); }

.p-removed-box { margin-top: 28px; }
.p-reset { margin-left: auto; }
.p-removed { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-removed-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.p-removed-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.p-removed-main b { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; }
.p-removed-main .status { min-width: 0; padding: 2px 9px; font-size: 12px; }
.p-auto { padding: 1px 8px; border-radius: 7px; font-size: 11.5px; color: #ffb6ad; border: 1px solid rgba(255, 127, 115, 0.3); }
.p-removed-reason { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.p-removed-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.p-removed-meta small { font-size: 12px; color: var(--dim); }

/* окно сотрудника */
.p-modal {
  width: min(840px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #171922;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.p-modal[open] { display: flex; flex-direction: column; animation: lightbox-in .22s ease-out; }
.p-modal::backdrop { background: rgba(8, 9, 12, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.p-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 70%);
  box-shadow: inset 3px 0 0 var(--role);
}
.p-modal-head .p-head { width: 56px; height: 56px; border-radius: 14px; }
.p-modal-title { flex: 1; min-width: 0; }
.p-modal-title h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.p-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 26px; }
.p-modal-body > .nt-hint { margin-bottom: 4px; }
.p-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.p-action .i { width: 16px; height: 16px; color: var(--accent-ink); }
.p-action:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.p-action:active { transform: scale(.97); }
.p-action.is-active { background: var(--accent-soft); border-color: rgba(155, 126, 240, 0.55); }
.p-action--danger { color: #ffc2b8; }
.p-action--danger .i { color: #ff9a8f; }
.p-action--danger:hover, .p-action--danger.is-active { background: rgba(255, 127, 115, 0.1); border-color: rgba(255, 127, 115, 0.45); }

.p-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(155, 126, 240, 0.05);
  border: 1px solid var(--accent-line);
  animation: post-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
.p-form.is-danger { background: rgba(255, 127, 115, 0.05); border-color: rgba(255, 127, 115, 0.35); }
.p-form-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
.p-form-note { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); }
.p-form-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #93b6ff; }
.p-form.is-danger .p-form-note { color: #f3d3c2; }
.p-form.is-danger .p-form-note .i { color: #ff9a8f; }
.p-form .nt-label small { font-size: 12px; color: var(--dim); }
.p-form .nt-error { margin: -4px 0 0; }
.p-textarea { height: auto; min-height: 84px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.p-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* правила и документация */
.p-doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.p-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.p-side .p-search { width: 100%; }
.p-toc { display: flex; flex-direction: column; gap: 2px; }
.p-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s, opacity .2s; }
.p-toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.p-toc a span { flex: none; min-width: 26px; padding: 1px 0; border-radius: 7px; text-align: center; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); }
.p-toc a.is-dim { opacity: .4; }
.p-toc--doc { padding-top: 14px; border-top: 1px solid var(--line); }
.p-toc--doc a { padding: 6px 10px; font-size: 13.5px; }
.p-toc-cap { padding: 0 10px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.p-draft { margin-bottom: 20px; }

.p-rsec + .p-rsec { margin-top: 36px; }
.p-rsec, .p-rule { scroll-margin-top: 110px; }
.p-rsec-title { display: flex; gap: 8px; margin: 0 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.p-rsec-title span { color: var(--accent); }
.p-rule { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.p-rule + .p-rule { margin-top: 10px; }
.p-rule.is-target { animation: post-target 2.2s ease; }
.p-rule-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.p-rule-num {
  flex: none;
  padding: 3px 10px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  transition: background-color .2s, border-color .2s;
}
.p-rule-num:hover { background: rgba(155, 126, 240, 0.2); border-color: rgba(155, 126, 240, 0.55); }
.p-rule-head h3 { flex: 1; min-width: 200px; margin: 0; font-size: 16.5px; font-weight: 600; }
.p-rule-punish { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: #f3d3c2; background: rgba(240, 160, 122, 0.08); border: 1px solid rgba(240, 160, 122, 0.25); }
.p-rule-punish .i { width: 13px; height: 13px; color: var(--warn); }
.p-rule-text { margin: 10px 0 0; font-size: 15px; color: #dcdbd8; }
.p-rule-explain { display: flex; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.p-rule-explain .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: #93b6ff; }
.p-rule-explain p { margin: 0; font-size: 14px; color: var(--muted); }
.p-rule-explain b { font-weight: 600; color: var(--text); }
.p-rule-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.p-ex { padding: 11px 14px; border-radius: 12px; }
.p-ex--bad { --ex: #ffb6ad; background: rgba(255, 127, 115, 0.05); border: 1px solid rgba(255, 127, 115, 0.2); }
.p-ex--ok { --ex: #b5efcb; background: rgba(126, 226, 168, 0.05); border: 1px solid rgba(126, 226, 168, 0.2); }
.p-ex-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ex); }
.p-ex-title .i { width: 15px; height: 15px; }
.p-ex ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: #cfcfcb; }
.p-ex li + li { margin-top: 4px; }
.p-ex li::marker { color: var(--ex); }

.p-doclist { display: flex; flex-direction: column; gap: 6px; }
.p-docitem { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.p-docitem:hover { background: rgba(255, 255, 255, 0.04); }
.p-docitem.is-active { background: var(--surface); border-color: var(--accent-line); }
.p-docitem-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.p-docitem-icon .i { width: 18px; height: 18px; }
.p-docitem-icon--lg { width: 50px; height: 50px; border-radius: 15px; }
.p-docitem-icon--lg .i { width: 23px; height: 23px; }
.p-docitem-text { display: flex; flex-direction: column; min-width: 0; }
.p-docitem-text b { font-size: 14px; font-weight: 600; }
.p-docitem-text small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.p-article { padding: 26px 30px 30px; }
.p-article-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.p-article-head h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.015em; }
.p-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--dim); }
.p-art { font-size: 15px; line-height: 1.7; color: #d9d8d5; }
.p-art p { margin: 0 0 12px; }
.p-art-h { margin: 30px 0 12px; font-size: 18px; font-weight: 600; color: var(--text); scroll-margin-top: 110px; }
.p-art > .p-art-h:first-child { margin-top: 22px; }
.p-art-list { margin: 0 0 12px; padding-left: 20px; }
.p-art-list li + li { margin-top: 6px; }
.p-art-list li::marker { color: var(--accent); }
.p-art-steps { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.p-art-steps li { display: flex; gap: 14px; padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.p-art-step-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: #f3f0ff; background: var(--accent-2); }
.p-art-steps b { font-size: 15px; font-weight: 600; color: var(--text); }
.p-art-steps p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.p-art-note { margin: 4px 0 16px; }
.p-art-table { margin: 0 0 12px; border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; }
.p-art-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-art-table th, .p-art-table td { padding: 10px 14px; text-align: left; }
.p-art-table th { font-size: 12.5px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.p-art-table tr + tr td, .p-art-table tbody tr:first-child td { border-top: 1px solid var(--line); }
.p-art-roles { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.p-art-role { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.p-art .p-art-role p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.p-art-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(155, 126, 240, 0.05); border: 1px dashed rgba(155, 126, 240, 0.4); }
.p-art .p-art-quote p { margin: 0; font-size: 14.5px; }
.p-art-quote .post-btn { align-self: flex-end; }

@media (max-width: 1000px) {
  .p-doc-layout { grid-template-columns: 1fr; }
  .p-side { position: static; }
  .p-toc:not(.p-toc--doc) { flex-direction: row; flex-wrap: wrap; }
  .p-split { grid-template-columns: 1fr; }
  .p-hero { grid-template-columns: auto minmax(0, 1fr); }
  .p-hero-counters { grid-column: 1 / -1; }
  .p-counter { flex: 1; min-width: 0; }
}
@media (max-width: 860px) {
  .p-row--head { display: none; }
  .p-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 16px; }
  .p-c--role { grid-column: 1 / 2; grid-row: 1; }
  .p-c--nick { grid-column: 2 / 4; grid-row: 1; }
  .p-c--go { grid-column: 4; grid-row: 1; }
  .p-c[data-label] { flex-direction: column; align-items: flex-start; gap: 4px; }
  .p-c[data-label]::before { content: attr(data-label); font-size: 11.5px; color: var(--dim); }
  .p-pens { grid-template-columns: 1fr; }
  .p-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .p-stats { grid-template-columns: 1fr; }
  .p-row { grid-template-columns: 1fr 1fr; }
  .p-c--role { grid-column: 1 / -1; }
  .p-c--role .status { width: auto; }
  .p-c--nick { grid-column: 1 / 2; grid-row: 2; }
  .p-c--go { grid-column: 2; grid-row: 2; }
  .p-hero { gap: 16px; padding: 20px 18px; }
  .p-hero-kicker { font-size: 10.5px; letter-spacing: .05em; }
  .p-hero-avatar { width: 80px; height: 80px; border-radius: 22px; }
  .p-hero-avatar .p-head { width: 58px; height: 58px; }
  .p-counter { padding: 12px 14px; }
  .p-tiles { padding: 14px; }
  .p-profile-form { margin: 0 14px 14px; }
  .p-article { padding: 20px 18px 22px; }
  .p-modal-head { padding: 14px 14px 14px 16px; }
  .p-modal-body { padding: 14px 16px 22px; }
  .p-removed-item { grid-template-columns: 32px minmax(0, 1fr); }
  .p-removed-meta { grid-column: 2; align-items: flex-start; }
  .p-tab { padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-rule.is-target, .p-modal[open], .p-form { animation: none !important; }
}

/* кабинет: плитки статусов */
.p-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.18);
}
.p-tile {
  --tone: var(--accent-ink);
  --tone-soft: rgba(155, 126, 240, 0.08);
  --tone-line: rgba(155, 126, 240, 0.32);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--tone-soft), rgba(255, 255, 255, 0.015) 60%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color .2s;
}
.p-tile:hover { border-color: var(--tone-line); }
.p-tile--role { --tone: var(--role); --tone-soft: rgba(255, 255, 255, 0.035); --tone-line: var(--role-line); }
.p-tile--vacation { --tone: #7fe3cf; --tone-soft: rgba(95, 216, 192, 0.06); --tone-line: rgba(95, 216, 192, 0.36); }
.p-tile--birthday { --tone: #ffb3d9; --tone-soft: rgba(255, 143, 201, 0.06); --tone-line: rgba(255, 143, 201, 0.38); }
.p-tile--vacation.is-on { --tone-soft: rgba(95, 216, 192, 0.15); border-color: rgba(95, 216, 192, 0.36); }
.p-tile--birthday.is-today { --tone-soft: rgba(255, 143, 201, 0.16); border-color: rgba(255, 143, 201, 0.4); }
.p-tile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-tile-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--tone); background: rgba(10, 11, 15, 0.35); border: 1px solid var(--tone-line); }
.p-tile-icon .i { width: 16px; height: 16px; }
.p-tile-label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.p-tile-value { display: flex; align-items: center; min-height: 30px; font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.p-tile-value .status { min-width: 0; padding: 4px 12px; font-size: 13.5px; }
.p-tile--vacation.is-on .p-tile-value { color: #7fe3cf; }
.p-tile-sub { font-size: 13px; color: var(--muted); }
.p-tile--birthday.is-today .p-tile-sub { color: #ffb3d9; }
.p-tile > .p-tile-sub:not(:last-child) { margin-bottom: 12px; }
.p-tile-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 6px 10px 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--tone-line);
  background: rgba(10, 11, 15, 0.3);
  color: var(--tone);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s;
}
.p-tile-btn .i { width: 14px; height: 14px; transition: transform .2s; }
.p-tile-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.p-tile-btn:hover .i { transform: translateX(2px); }
.p-tile-btn:active { transform: scale(.96); }
.p-tile-btn.is-active { color: var(--text); background: var(--accent-soft); border-color: rgba(155, 126, 240, 0.55); }
.p-tile-btn.is-active .i { transform: rotate(90deg); }
.p-profile-form { margin: 0 20px 20px; }

/* кабинет: история и варны с предами рядом — одинаковая высота, прокрутка внутри карточки */
.p-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-card--tall { display: flex; flex-direction: column; height: 320px; }
.p-card--tall .p-card-head { flex: none; }
.p-card--tall .p-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding-bottom: 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.p-scroll { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.p-scroll::-webkit-scrollbar { width: 6px; }
.p-scroll::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.p-card--pens .p-pens { grid-template-columns: 1fr; gap: 0; }
.p-card--pens .p-pen-col { padding: 0; border: 0; border-radius: 0; background: none; }
.p-card--pens .p-pen-col + .p-pen-col { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.p-card--pens .p-pen-head { margin-bottom: 10px; }
.p-card--pens .p-pen-head h3 { font-size: 14px; }
.p-form-left { margin-right: auto; }
.p-date { color-scheme: dark; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.p-chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.p-chip.is-active { color: var(--text); background: var(--accent-soft); border-color: rgba(155, 126, 240, 0.55); }

/* отпуск в составе и окне куратора */
.p-vac { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 7px; font-size: 11px; color: #7fe3cf; background: rgba(95, 216, 192, 0.08); border: 1px solid rgba(95, 216, 192, 0.3); }
.p-vac .i { width: 12px; height: 12px; }
.p-meta > .p-meta-vac, .p-meta > .p-meta-vac .i { color: #7fe3cf; }
.p-meta > .p-meta-bday .i { color: #ffb3d9; }
.p-meta > .p-meta-bday.is-today { font-weight: 600; color: #ffb3d9; }
.p-meta > .p-meta-bday.is-empty .i { color: var(--dim); }
.p-body > .p-toolbar:first-child { margin-top: 0; }
.p-log-item--vacation .p-log-icon, .p-log-item--vacation-end .p-log-icon,
.p-log-item--vacation-request .p-log-icon, .p-log-item--vacation-cancel .p-log-icon { color: #7fe3cf; border-color: rgba(95, 216, 192, 0.35); }
.p-log-item--vacation-rejected .p-log-icon { color: #ff9a8f; border-color: rgba(255, 127, 115, 0.35); }

/* заявки на отпуск */
.p-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0f1a18;
  background: #7fe3cf;
}
.p-tab-badge[hidden] { display: none; }
.p-tile--vacation.is-pending { --tone-soft: rgba(244, 200, 84, 0.08); border-style: dashed; border-color: rgba(244, 200, 84, 0.4); }
.p-tile--vacation.is-pending .p-tile-value { color: #f4d67c; }
.p-tile--vacation.is-rejected .p-tile-sub { color: #ffb6ad; }
.p-requests { margin-bottom: 14px; }
.p-req-count { padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #7fe3cf; background: rgba(95, 216, 192, 0.1); border: 1px solid rgba(95, 216, 192, 0.3); }
.p-req-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-req {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 rgba(95, 216, 192, 0.5);
}
.p-req-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.p-req-top b { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; }
.p-req-top .status { min-width: 0; padding: 2px 9px; font-size: 12px; }
.p-req-dates { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #7fe3cf; }
.p-req-dates .i { width: 14px; height: 14px; }
.p-req-reason { font-size: 13.5px; color: #cfcfcb; overflow-wrap: anywhere; }
.p-req-meta { font-size: 12px; color: var(--dim); }
.p-req-actions { display: flex; gap: 8px; }
.p-req-actions .btn .i { width: 15px; height: 15px; }
.p-req-self { font-size: 12.5px; color: var(--dim); }
.p-req-reject { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.p-req-reject .nt-input { flex: 1; min-width: 200px; height: 40px; }
.p-req-empty { margin: 0; font-size: 13.5px; color: var(--dim); }
@media (max-width: 700px) {
  .p-req { grid-template-columns: 36px minmax(0, 1fr); }
  .p-req-actions, .p-req-self { grid-column: 2; }
}

/* ---------- панель КП: дни рождения ---------- */
.bd-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 143, 201, 0.1), rgba(255, 207, 110, 0.05));
  border: 1px solid rgba(255, 143, 201, 0.3);
}
.bd-missing > .i { width: 22px; height: 22px; color: #ffb3d9; }
.bd-missing > div { display: flex; flex: 1; flex-direction: column; min-width: 200px; }
.bd-missing b { font-size: 15px; font-weight: 600; }
.bd-missing span { font-size: 13.5px; color: var(--muted); }
.bd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.bd-stat { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.bd-stat-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #ffb3d9; background: rgba(255, 143, 201, 0.1); border: 1px solid rgba(255, 143, 201, 0.28); }
.bd-stat-icon .i { width: 18px; height: 18px; }
.bd-stat > div { display: flex; flex-direction: column; line-height: 1.25; }
.bd-stat b { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 600; }
.bd-stat span { font-size: 12.5px; color: var(--dim); }

/* открытка «Сегодня день рождения» */
.bd-today {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 30px 32px;
  border-radius: 26px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 143, 201, 0.22), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(255, 207, 110, 0.14), transparent 60%),
    #1a1a24;
  border: 1px solid rgba(255, 143, 201, 0.35);
  box-shadow: 0 26px 60px -24px rgba(255, 111, 174, 0.45);
}
.bd-today + .bd-today { margin-top: 12px; }
.bd-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bd-confetti i {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--c);
  opacity: .55;
  animation: bd-fall var(--t) linear var(--d) infinite;
}
.bd-confetti i:nth-child(3n) { width: 9px; height: 9px; border-radius: 50%; }
@keyframes bd-fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  to { transform: translate3d(24px, 340px, 0) rotate(calc(var(--r) + 540deg)); }
}
.bd-today-avatar {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), rgba(10, 11, 15, 0.55) 72%);
  border: 1px solid rgba(255, 143, 201, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 143, 201, 0.06), 0 18px 40px -12px rgba(255, 111, 174, 0.55);
}
.bd-today-avatar .p-head { width: 88px; height: 88px; border-radius: 0; background: none; image-rendering: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.bd-today-avatar .p-head--fallback { border-radius: 22px; font-size: 34px; color: #ffb3d9; background: rgba(255, 143, 201, 0.08); border-color: rgba(255, 143, 201, 0.4); filter: none; }
.bd-today-main { min-width: 0; }
.bd-kicker { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ffb3d9; }
.bd-kicker .i { width: 15px; height: 15px; }
.bd-today h2 {
  display: inline-block;
  margin: 4px 0 10px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  background: linear-gradient(110deg, #fff1f8 0%, #ffb3d9 45%, #ffcf6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bd-today-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bd-today-meta .status { min-width: 0; padding: 4px 12px; font-size: 13px; }
.bd-turns { font-size: 15px; color: var(--muted); }
.bd-turns b { font-family: 'Sora', sans-serif; color: var(--text); }
.bd-wish {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  padding: 13px 16px;
  border-radius: 15px;
  font-size: 15.5px;
  font-weight: 500;
  background: rgba(10, 11, 15, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bd-wish .i { flex: none; width: 22px; height: 22px; color: #ffcf6e; }

/* поздравления */
.bd-congrats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: inherit;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2c0f20;
  background: linear-gradient(135deg, #ffd0e6, #ff8fc9);
  box-shadow: 0 10px 24px -10px rgba(255, 111, 174, 0.7);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.bd-btn .i { width: 16px; height: 16px; }
.bd-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(255, 111, 174, 0.8); }
.bd-btn:not(:disabled):active { transform: scale(.96); }
.bd-btn:disabled { cursor: default; color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--line); box-shadow: none; }
.bd-btn.is-done:disabled { color: #ffb3d9; background: rgba(255, 143, 201, 0.1); border-color: rgba(255, 143, 201, 0.35); }
.bd-btn.is-burst { animation: bd-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bd-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } }
.bd-congrats--big .bd-btn { padding: 12px 20px; font-size: 14.5px; }
.bd-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bd-count .i { width: 15px; height: 15px; color: #ff6f9f; fill: currentColor; }
.bd-count b { font-family: 'Sora', sans-serif; color: var(--text); }
.bd-faces { display: inline-flex; align-items: center; padding-left: 6px; }
.bd-faces .p-head { margin-left: -6px; border-radius: 8px; box-shadow: 0 0 0 2px #1a1a24; }
.bd-faces-more { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }

.bd-none-today { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px dashed rgba(255, 143, 201, 0.3); }
.bd-none-today > .i { flex: none; width: 26px; height: 26px; color: #ffb3d9; }
.bd-none-today > div { display: flex; flex-direction: column; }
.bd-none-today b { font-size: 15px; font-weight: 600; }
.bd-none-today span { font-size: 13.5px; color: var(--muted); }

/* ближайшие дни рождения */
.bd-group { margin-top: 30px; }
.bd-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.bd-group-title span { padding: 0 9px; border-radius: 999px; font-size: 12px; color: #ffb3d9; background: rgba(255, 143, 201, 0.1); border: 1px solid rgba(255, 143, 201, 0.3); }
.bd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bd-item {
  display: grid;
  grid-template-columns: 58px 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color .2s;
}
.bd-item:hover { border-color: rgba(255, 143, 201, 0.32); }
.bd-item.is-me { border-color: var(--accent-line); }
.bd-leaf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 66px;
  border-radius: 15px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 143, 201, 0.18), rgba(255, 143, 201, 0.04));
  border: 1px solid rgba(255, 143, 201, 0.3);
}
.bd-leaf b { font-family: 'Sora', sans-serif; font-size: 23px; font-weight: 700; color: #ffe1ef; }
.bd-leaf span { margin-top: 3px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #ffb3d9; }
.bd-leaf small { margin-top: 3px; font-size: 10.5px; color: var(--dim); }
.bd-item > .p-head { border-radius: 11px; }
.bd-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bd-nick { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bd-item-top .status { min-width: 0; padding: 1px 8px; font-size: 11.5px; }
.bd-item-turns { font-size: 13.5px; color: var(--muted); }
.bd-item-turns b { color: var(--text); }
.bd-when { font-weight: 600; color: #ffb3d9; }
.bd-item-wish { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.bd-item-wish .i { flex: none; width: 13px; height: 13px; color: #ffcf6e; }
.bd-soon { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--dim); }
.bd-soon .i { flex: none; width: 14px; height: 14px; color: #ffb3d9; }

/* ---------- панель КП: заметки ---------- */
.nb-privacy { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(126, 226, 168, 0.05); border: 1px solid rgba(126, 226, 168, 0.22); }
.nb-privacy > .i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #7ee2a8; }
.nb-privacy b { display: block; font-size: 14.5px; font-weight: 600; }
.nb-privacy span { font-size: 13.5px; color: var(--muted); }
.nb-privacy.is-warn { background: rgba(240, 160, 122, 0.06); border-color: rgba(240, 160, 122, 0.3); }
.nb-privacy.is-warn > .i { color: var(--warn); }

.nb-tone-violet { --nb: #b39cf5; --nb-soft: rgba(155, 126, 240, 0.12); }
.nb-tone-blue { --nb: #93b6ff; --nb-soft: rgba(86, 128, 255, 0.12); }
.nb-tone-green { --nb: #9ddf6f; --nb-soft: rgba(157, 223, 111, 0.1); }
.nb-tone-yellow { --nb: #f4d67c; --nb-soft: rgba(244, 200, 84, 0.1); }
.nb-tone-pink { --nb: #ff9fcf; --nb-soft: rgba(255, 143, 201, 0.11); }

.nb { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.nb-side {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 128px);
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nb-new { justify-content: center; height: 46px; }
.nb-side .nb-search { width: 100%; height: 44px; }
.nb-count { padding: 2px 4px 0; font-size: 12px; color: var(--dim); }
.nb-list { display: flex; flex-direction: column; gap: 4px; min-height: 0; margin: 0 -6px; padding: 0 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.nb-item button {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 2px 10px;
  width: 100%;
  padding: 10px 10px 10px 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.nb-item button:hover { background: rgba(255, 255, 255, 0.04); }
.nb-item.is-active button { background: var(--nb-soft); border-color: rgba(255, 255, 255, 0.09); }
.nb-item-bar { grid-row: 1 / span 3; border-radius: 2px; background: var(--nb); }
.nb-item-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-item-pin { display: inline-flex; color: var(--nb); }
.nb-item-pin .i { width: 13px; height: 13px; }
.nb-item-preview { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-item-time { grid-column: 2 / -1; font-size: 11.5px; color: var(--dim); }
.nb-none { padding: 10px 6px; font-size: 13px; color: var(--dim); }

.nb-editor {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--nb-soft), rgba(255, 255, 255, 0.01) 200px), #16181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 3px 0 var(--nb), 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.nb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nb-colors { display: flex; gap: 8px; margin-right: auto; }
.nb-color { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--nb); cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform .15s, box-shadow .15s; }
.nb-color:hover { transform: scale(1.12); }
.nb-color.is-active { box-shadow: 0 0 0 2px #16181f, 0 0 0 4px var(--nb); }
.nb-status { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12.5px; color: var(--dim); }
.nb-status .i { width: 14px; height: 14px; color: #7ee2a8; }
.nb-status.is-saving .i { color: #f4d67c; }
.nb-status.is-error { color: #ffb6ad; }
.nb-status.is-error .i { color: #ff9a8f; }
.nb-tool { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.nb-tool .i { width: 16px; height: 16px; }
.nb-tool:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nb-tool.is-on { color: var(--nb); border-color: var(--nb); background: var(--nb-soft); }
.nb-tool--danger:hover { color: #ff9a8f; border-color: rgba(255, 127, 115, 0.45); background: rgba(255, 127, 115, 0.08); }
.nb-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; font-size: 13.5px; color: #f3d3c2; background: rgba(255, 127, 115, 0.07); border-bottom: 1px solid rgba(255, 127, 115, 0.25); }
.nb-confirm > .i { width: 16px; height: 16px; color: #ff9a8f; }
.nb-confirm > span { flex: 1; min-width: 180px; }
.nb-title { width: 100%; padding: 22px 26px 4px; border: 0; outline: 0; background: none; color: var(--text); font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.nb-title::placeholder { color: var(--dim); }
.nb-meta { padding: 0 26px 10px; font-size: 12.5px; color: var(--dim); }
/* текст на «линованной бумаге»: линии прокручиваются вместе с текстом */
.nb-text {
  flex: 1;
  width: 100%;
  min-height: 380px;
  padding: 8px 26px 20px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: #dcdbd8;
  font: inherit;
  font-size: 15.5px;
  line-height: 32px;
  background: repeating-linear-gradient(transparent 0 31px, rgba(255, 255, 255, 0.04) 31px 32px) local;
  background-position: 0 8px;
}
.nb-text::placeholder { color: var(--dim); }
.nb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.nb-foot span { display: inline-flex; align-items: center; gap: 6px; }
.nb-foot .i { width: 13px; height: 13px; }
.nb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 480px; padding: 40px 24px; text-align: center; border-radius: 22px; background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.12); }
.nb-empty-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 24px; color: #7ee2a8; background: rgba(126, 226, 168, 0.08); border: 1px solid rgba(126, 226, 168, 0.28); }
.nb-empty-icon .i { width: 34px; height: 34px; }
.nb-empty h3 { margin: 0; font-size: 21px; font-weight: 600; }
.nb-empty p { max-width: 400px; margin: 0 0 8px; color: var(--muted); }

/* ---------- панель КП: вопросы ---------- */
.qa-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 28px 26px;
  border-radius: 26px;
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(86, 128, 255, 0.16), transparent 60%), var(--surface);
  border: 1px solid rgba(96, 138, 255, 0.25);
}
.qa-hero-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 20px; color: #93b6ff; background: rgba(86, 128, 255, 0.12); border: 1px solid rgba(96, 138, 255, 0.35); }
.qa-hero-icon .i { width: 30px; height: 30px; }
.qa-hero h2 { margin: 10px 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.qa-hero p { max-width: 520px; margin: 0 0 20px; color: var(--muted); }
.qa-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(580px, 100%);
  height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(10, 11, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: text;
  transition: border-color .2s, box-shadow .2s;
}
.qa-search:focus-within { border-color: rgba(96, 138, 255, 0.65); box-shadow: 0 0 0 4px rgba(86, 128, 255, 0.15); }
.qa-search .i { width: 20px; height: 20px; color: var(--dim); }
.qa-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.qa-search input::placeholder { color: var(--dim); }
.qa-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.qa-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.qa-cat .i { width: 15px; height: 15px; }
.qa-cat small { font-size: 11.5px; color: var(--dim); }
.qa-cat:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.qa-cat.is-active { color: #dbe6ff; background: rgba(86, 128, 255, 0.16); border-color: rgba(96, 138, 255, 0.5); }
.qa-cat.is-active small { color: #93b6ff; }
.qa-found { min-height: 18px; margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.qa-group { margin-top: 28px; }
.qa-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qa-group-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #93b6ff; background: rgba(86, 128, 255, 0.1); border: 1px solid rgba(96, 138, 255, 0.3); }
.qa-group-icon .i { width: 16px; height: 16px; }
.qa-group-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.qa-group-count { font-size: 12.5px; color: var(--dim); }
.qa-items { display: flex; flex-direction: column; gap: 8px; }
.qa-item { border-radius: 16px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color .2s, background-color .2s; }
.qa-item:hover { border-color: rgba(96, 138, 255, 0.28); }
.qa-item[open] { border-color: rgba(96, 138, 255, 0.38); background: linear-gradient(180deg, rgba(86, 128, 255, 0.07), rgba(255, 255, 255, 0.015)); }
.qa-item summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; list-style: none; cursor: pointer; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:focus-visible { outline: 2px solid rgba(96, 138, 255, 0.6); outline-offset: -2px; border-radius: 16px; }
.qa-q-icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #93b6ff; background: rgba(86, 128, 255, 0.1); }
.qa-q-icon .i { width: 16px; height: 16px; }
.qa-q { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.qa-chev { display: inline-flex; color: var(--dim); }
.qa-chev .i { width: 18px; height: 18px; transition: transform .25s; }
.qa-item[open] .qa-chev .i { transform: rotate(180deg); }
.qa-a { padding: 0 20px 4px 58px; font-size: 14.5px; line-height: 1.7; color: #d4d3d0; animation: qa-in .25s ease; }
.qa-a p { margin: 0 0 10px; }
.qa-a ul { margin: 0 0 10px; padding-left: 18px; }
.qa-a li + li { margin-top: 4px; }
.qa-a li::marker { color: #93b6ff; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
.qa-a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 20px 14px 52px; }
.qa-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; color: #93b6ff; background: rgba(86, 128, 255, 0.08); border: 1px solid rgba(96, 138, 255, 0.25); transition: background-color .2s; }
.qa-link:hover { background: rgba(86, 128, 255, 0.16); }
.qa-link .i { width: 13px; height: 13px; }
.qa-mark { padding: 0 2px; border-radius: 4px; color: inherit; background: rgba(244, 200, 84, 0.28); }
.qa-nothing { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 24px; padding: 34px 24px; border-radius: 20px; text-align: center; border: 1px dashed rgba(255, 255, 255, 0.12); }
.qa-nothing .i { width: 26px; height: 26px; color: var(--dim); }
.qa-nothing b { font-size: 16px; font-weight: 600; }
.qa-nothing span { font-size: 13.5px; color: var(--muted); }
.qa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.qa-cta > .i { flex: none; width: 24px; height: 24px; color: #93b6ff; }
.qa-cta > div { display: flex; flex: 1; flex-direction: column; min-width: 200px; }
.qa-cta b { font-size: 15px; font-weight: 600; }
.qa-cta span { font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .bd-list { grid-template-columns: 1fr; }
  .nb { grid-template-columns: 1fr; }
  .nb-side { position: static; max-height: none; }
  .nb-list { max-height: 260px; }
}
@media (max-width: 600px) {
  /* семь вкладок панели на телефоне — одной строкой с прокруткой вбок, а не четырьмя рядами */
  .p-tabs { flex-wrap: nowrap; justify-content: flex-start; margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .p-tabs::-webkit-scrollbar { display: none; }
  .p-tab { flex: none; }
  .bd-today { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .bd-today-avatar { width: 96px; height: 96px; border-radius: 26px; }
  .bd-today-avatar .p-head { width: 68px; height: 68px; }
  .bd-item { grid-template-columns: 52px 36px minmax(0, 1fr); padding: 12px; }
  .nb-title { padding: 18px 18px 4px; font-size: 22px; }
  .nb-meta, .nb-foot { padding-left: 18px; padding-right: 18px; }
  .nb-text { padding-left: 18px; padding-right: 18px; }
  .qa-hero { padding: 26px 16px 20px; }
  .qa-a { padding-left: 18px; }
  .qa-a-foot { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-confetti i, .bd-btn.is-burst, .qa-a { animation: none !important; }
}

/* ---------- выпадающие списки (select.js) ---------- */
/* настоящий <select> остаётся в форме, но не виден и не ловит клики */
.nt-select.is-enhanced > select { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.nt-select.is-enhanced > .i { display: none; }
.nt-select.is-enhanced .i { position: static; top: auto; right: auto; margin-top: 0; }
.ui-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ui-select-trigger:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
.ui-select-trigger:focus-visible,
.nt-select.is-open .ui-select-trigger { outline: 0; border-color: rgba(155, 126, 240, 0.6); background: rgba(155, 126, 240, 0.05); box-shadow: 0 0 0 4px rgba(155, 126, 240, 0.14); }
.ui-select-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-select-value.is-placeholder { color: var(--dim); }
.ui-select-trigger > .i { flex: none; width: 18px; height: 18px; color: var(--dim); transition: transform .25s, color .2s; }
.nt-select.is-open .ui-select-trigger > .i { transform: rotate(180deg); color: var(--accent-ink); }
.nt-field.is-invalid .ui-select-trigger { border-color: rgba(240, 160, 122, 0.65); box-shadow: 0 0 0 4px rgba(240, 160, 122, 0.12); }

.ui-select-menu {
  position: fixed;
  z-index: 300;
  display: flex;
  flex-direction: column;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34, 36, 48, 0.98), rgba(23, 25, 33, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: ui-select-in .16s cubic-bezier(.2, .8, .2, 1);
}
.ui-select-menu.is-up { animation-name: ui-select-in-up; }
.ui-select-menu[hidden], .ui-select-menu [hidden] { display: none !important; }
@keyframes ui-select-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes ui-select-in-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.ui-select-search {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-bottom: 6px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: text;
}
.ui-select-search:focus-within { border-color: rgba(155, 126, 240, 0.5); }
.ui-select-search .i { width: 15px; height: 15px; color: var(--dim); }
.ui-select-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.ui-select-search input::placeholder { color: var(--dim); }
.ui-select-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.ui-select-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ui-select-group:first-child { padding-top: 4px; }
.ui-select-sub { padding: 7px 10px 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ui-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  scroll-margin: 6px;
}
.ui-select-option.is-indent { padding-left: 24px; }
.ui-select-option.is-active { background: rgba(155, 126, 240, 0.14); }
.ui-select-option.is-selected { font-weight: 600; color: var(--accent-ink); }
.ui-select-check { display: inline-flex; flex: none; width: 16px; opacity: 0; }
.ui-select-check .i { width: 16px; height: 16px; color: var(--accent); }
.ui-select-option.is-selected .ui-select-check { opacity: 1; }
.ui-select-label { flex: 1; min-width: 0; }
.ui-select-tag { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 500; color: var(--dim); border: 1px solid var(--line); }
.ui-select-tag .i { width: 11px; height: 11px; color: var(--dim); }
.ui-select-option.is-disabled { color: var(--dim); cursor: not-allowed; }
.ui-select-empty { padding: 14px 10px; text-align: center; font-size: 13px; color: var(--dim); }
@media (prefers-reduced-motion: reduce) {
  .ui-select-menu { animation: none; }
  .ui-select-trigger > .i { transition: none; }
}

/* статистика: переключатель периода */
.p-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 44px 0 14px; }
.p-sechead--sm { margin: 26px 0 12px; }
.p-sechead > .p-h2, .p-sechead > .p-h3 { margin: 0; }
.p-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.p-seg-btn {
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.p-seg-btn:hover { color: var(--text); }
.p-seg-btn.is-active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* карта активности */
.p-heat { --gap: 4px; margin-top: 12px; }
.p-modal .p-heat { --gap: 3px; }
.p-modal .p-heat-inner { min-width: 640px; }
.p-heat-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.p-heat-sum > div { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.p-heat-sum b { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; }
.p-heat-sum span { font-size: 12.5px; color: var(--dim); }
.p-heat-scroll { overflow-x: auto; padding: 4px 2px 6px; }
.p-heat-inner { min-width: 740px; }
.p-heat-months {
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  column-gap: var(--gap);
  height: 18px;
  margin-left: 36px;
  font-size: 11.5px;
  color: var(--dim);
}
.p-heat-months span { grid-row: 1; white-space: nowrap; }
.p-heat-body { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.p-heat-days { display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); row-gap: var(--gap); align-items: center; font-size: 11px; line-height: 1; color: var(--dim); }
.p-heat-grid {
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: var(--gap);
}
.p-heat-cell {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform .12s;
}
.p-heat-cell.l1 { background: rgba(155, 126, 240, 0.24); }
.p-heat-cell.l2 { background: rgba(155, 126, 240, 0.45); }
.p-heat-cell.l3 { background: rgba(170, 146, 246, 0.75); }
.p-heat-cell.l4 { background: linear-gradient(135deg, #e6ddfd, #a98cf5); box-shadow: 0 0 10px rgba(155, 126, 240, 0.45); }
.p-heat-cell.is-out { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.p-heat-cell.is-future { visibility: hidden; }
.p-heat-cell.is-today { outline: 1.5px solid #f3f0ff; outline-offset: 1px; }
.p-heat-grid .p-heat-cell:not(.is-future):hover { position: relative; z-index: 1; transform: scale(1.4); }
.p-heat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.p-heat-legend { display: inline-flex; align-items: center; gap: 4px; }
.p-heat-legend .p-heat-cell { width: 12px; height: 12px; border-radius: 3px; }
.p-heat-legend .p-heat-cell:first-child { margin-left: 4px; }
.p-heat-legend .p-heat-cell:last-child { margin-right: 4px; }
.p-heat-tip {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 7px 11px;
  border-radius: 10px;
  background: #1f2130;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px));
  transition: opacity .12s;
}
.p-heat-tip b { font-size: 13px; font-weight: 600; color: var(--text); }
.p-heat-tip.is-shown { opacity: 1; }

@media (max-width: 1000px) {
  .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-split--even { grid-template-columns: 1fr; }
  .p-card--tall { height: auto; max-height: 320px; }
}
@media (max-width: 700px) {
  .p-heat-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .p-tiles { grid-template-columns: 1fr; }
}

/* ---------- проверки (раздел /checks) ---------- */
.c-tone-amber { --tone: #f4d67c; --tone-soft: rgba(244, 200, 84, 0.1); --tone-line: rgba(244, 200, 84, 0.32); }
.c-tone-lilac { --tone: #c9bbf8; --tone-soft: rgba(155, 126, 240, 0.12); --tone-line: rgba(155, 126, 240, 0.34); }
.c-tone-green { --tone: #9ddf6f; --tone-soft: rgba(157, 223, 111, 0.1); --tone-line: rgba(157, 223, 111, 0.32); }
.c-tone-grey { --tone: #b3b5bd; --tone-soft: rgba(255, 255, 255, 0.05); --tone-line: rgba(255, 255, 255, 0.14); }
.c-tone-red { --tone: #ff9a8f; --tone-soft: rgba(255, 127, 115, 0.1); --tone-line: rgba(255, 127, 115, 0.34); }
.c-tone-orange { --tone: #f0a07a; --tone-soft: rgba(240, 160, 122, 0.1); --tone-line: rgba(240, 160, 122, 0.34); }
.c-tone-pink { --tone: #ff8fc0; --tone-soft: rgba(255, 143, 192, 0.1); --tone-line: rgba(255, 143, 192, 0.34); }
.c-tone-violet { --tone: #e19bff; --tone-soft: rgba(225, 155, 255, 0.1); --tone-line: rgba(225, 155, 255, 0.34); }
.c-tone-blue { --tone: #93b6ff; --tone-soft: rgba(96, 138, 255, 0.1); --tone-line: rgba(96, 138, 255, 0.32); }

.c-muted { margin: 0; font-size: 13.5px; color: var(--dim); }
.c-center { text-align: center; }
.c-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; font-size: 14px; color: var(--muted); }
.c-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent); animation: c-spin .8s linear infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }
.c-body .btn:disabled, .c-modal .btn:disabled, .c-body .post-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { opacity: .7; cursor: progress; }
.c-page--check .page-head h1, .c-page--check .page-head .lead { display: none; }
.c-page--check .page-head .p-tabs { margin-top: 0; }
.c-page--check .p-body { margin-top: 20px; }

/* плашки */
.c-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line); }
.c-badge .i { width: 14px; height: 14px; }
.c-badge.is-lg { padding: 7px 14px; font-size: 14px; border-radius: 11px; }
.c-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.c-flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.c-flag .i { width: 12px; height: 12px; }
.c-flag--repeat { color: #a9c3ff; background: rgba(96, 138, 255, 0.1); border: 1px solid rgba(96, 138, 255, 0.35); }
.c-flag--over { color: #ffb3a8; background: rgba(255, 127, 115, 0.12); border: 1px solid rgba(255, 127, 115, 0.42); }
.c-role { min-width: 0; padding: 2px 9px; font-size: 12px; }

/* соединение и серверы */
.c-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); white-space: nowrap; }
.c-live i { width: 8px; height: 8px; border-radius: 50%; background: #6c6f79; }
.c-live.is-open i { background: #7ee0a0; animation: c-pulse 2s infinite; }
.c-live.is-connecting i, .c-live.is-reconnecting i { background: #f4d67c; }
.c-live.is-closed i { background: #ff9a8f; }
@keyframes c-pulse { 0% { box-shadow: 0 0 0 0 rgba(126, 224, 160, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(126, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 224, 160, 0); } }
.c-servers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.c-server { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; font-size: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.c-server b { font-family: 'Sora', sans-serif; font-size: 10.5px; letter-spacing: .08em; }
.c-server.is-online b { color: #7ee0a0; }
.c-server.is-offline { background: rgba(255, 127, 115, 0.05); border-color: rgba(255, 127, 115, 0.3); }
.c-server.is-offline b { color: #ff9a8f; }
.c-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6c6f79; }
.c-dot.is-on { background: #7ee0a0; }
.c-dot.is-off { background: #ff9a8f; }
.c-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.c-count span.is-mine { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.c-count span.is-away { color: #ffc3dc; background: rgba(255, 143, 192, 0.06); border-color: rgba(255, 143, 192, 0.3); }

/* активные */
.c-active-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.c-active-grid > .f-empty, .c-active-grid > .c-loading { grid-column: 1 / -1; }
.c-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; color: inherit; transition: border-color .2s, transform .2s; }
.c-card:hover { border-color: rgba(155, 126, 240, 0.4); transform: translateY(-2px); }
.c-card.is-mine { box-shadow: inset 3px 0 0 var(--accent); }
.c-card.is-away { border-color: rgba(255, 143, 192, 0.3); }
.c-card-top { display: flex; align-items: center; gap: 12px; }
.c-card-top .p-head { border-radius: 10px; }
.c-card-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-card-nick { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.c-card-server { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.c-card-timer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(10, 11, 15, 0.35); border: 1px solid var(--line); }
.c-card-clock { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.c-card-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.c-card-cap .i { width: 14px; height: 14px; }
.c-card-timer.is-paused .c-card-clock { color: #f4d67c; }
.c-card-timer.is-expired .c-card-clock { color: #ff9a8f; }
.c-card-timer.is-stale .c-card-clock, .c-card-timer.is-unknown .c-card-clock { color: var(--dim); }
.c-presence { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.c-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.c-card-meta div { min-width: 0; }
.c-card-meta dt { font-size: 11.5px; color: var(--dim); }
.c-card-meta dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-card-meta dd small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.c-away { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #ffc3dc; background: rgba(255, 143, 192, 0.08); border: 1px solid rgba(255, 143, 192, 0.32); }
.c-away > .i { flex: none; width: 18px; height: 18px; }
.c-away > span { display: flex; flex-direction: column; min-width: 0; }
.c-away b { font-size: 13.5px; }
.c-away small { font-size: 12.5px; color: #e6a9c4; }
.c-away.is-expired { color: #ffb6ad; background: rgba(255, 127, 115, 0.1); border-color: rgba(255, 127, 115, 0.4); }
.c-away.is-expired small { color: #f1a39a; }

/* страница проверки */
.c-check-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.c-hero { padding: 22px; }
.c-hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.c-hero-avatar { position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), rgba(10, 11, 15, 0.5) 72%); border: 1px solid var(--accent-line); }
.c-hero-avatar .p-head { width: 64px; height: 64px; border-radius: 12px; }
.c-hero-dot { position: absolute; right: 5px; bottom: 5px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #171922; background: #6c6f79; }
.c-hero-dot.is-on { background: #7ee0a0; }
.c-hero-dot.is-off { background: #ff8fc0; }
.c-hero-kicker { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.c-hero-id { min-width: 0; }
.c-hero-id h2, .c-player h2, .c-stats-who h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.c-uuid { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.c-uuid:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.c-uuid .i { flex: none; width: 14px; height: 14px; }
.c-uuid code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.c-hero-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.c-hero .c-away { margin-top: 16px; }
.c-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.c-facts dt { font-size: 12px; color: var(--dim); }
.c-facts dd { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.c-facts dd .p-head { border-radius: 5px; }
.c-prev { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: #cfdcf7; background: rgba(96, 138, 255, 0.07); border: 1px solid rgba(96, 138, 255, 0.25); }
.c-prev > .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #93b6ff; }
.c-prev a { color: #a9c3ff; text-decoration: underline; text-underline-offset: 2px; }

.c-live-grid, .c-done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 12px; }
.c-live-grid { grid-template-areas: "timer chat" "actions chat" "grounds chat" "timeline timeline"; }
.c-done-grid { grid-template-areas: "result chat" "grounds chat" "timeline timeline"; }
.c-area-timer { grid-area: timer; }
.c-area-chat { grid-area: chat; align-self: stretch; }
.c-area-actions { grid-area: actions; }
.c-area-grounds { grid-area: grounds; }
.c-area-timeline { grid-area: timeline; }
.c-area-result { grid-area: result; }
.c-panel { padding: 18px 20px; }
.c-panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.c-panel-head > .i { width: 17px; height: 17px; color: var(--accent-ink); }
.c-panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.c-panel-aside { margin-left: auto; font-size: 12.5px; color: var(--dim); }

.c-timer-card { text-align: center; }
.c-timer { padding: 6px 0 4px; font-family: 'Sora', sans-serif; font-size: clamp(64px, 10vw, 108px); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: transparent; background: linear-gradient(180deg, #efeaff, #a98ef2); -webkit-background-clip: text; background-clip: text; }
.c-timer.is-paused { background-image: linear-gradient(180deg, #fff1c4, #e5bc4d); }
.c-timer.is-expired { background-image: linear-gradient(180deg, #ffd0c9, #ff7f73); animation: c-blink 1.2s ease-in-out infinite; }
.c-timer.is-stale, .c-timer.is-unknown { background-image: linear-gradient(180deg, #9497a0, #6c6f79); }
@keyframes c-blink { 50% { opacity: .55; } }
.c-timer-state { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.c-timer-state .i { width: 15px; height: 15px; }
.c-timer-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.c-tbtn { justify-content: center; gap: 6px; padding: 11px 10px; font-size: 13.5px; }
.c-tbtn .i { width: 15px; height: 15px; }
.c-tbtn--main { grid-column: 1 / -1; }
.c-action-error { margin: 10px 0 0; text-align: left; }
.c-hint, .c-offline { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 12.5px; text-align: left; color: var(--dim); }
.c-hint .i, .c-offline .i { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.c-offline { color: #ffb6ad; }
.c-finish { width: 100%; justify-content: center; gap: 8px; padding: 14px; font-size: 15px; }
.c-finish .i, .c-mbtn .i { width: 16px; height: 16px; }
.c-mgrid { display: grid; gap: 8px; margin-top: 8px; }
.c-mbtn { justify-content: flex-start; gap: 8px; }

.c-chat-card { display: flex; flex-direction: column; height: 100%; min-height: 520px; max-height: 780px; }
.c-chat-list { flex: 1; min-height: 240px; display: flex; flex-direction: column; gap: 10px; margin: 0 -8px; padding: 4px 8px; overflow-y: auto; }
.c-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 300px; margin: auto; font-size: 13.5px; text-align: center; color: var(--dim); }
.c-chat-empty .i { width: 28px; height: 28px; color: var(--accent-ink); opacity: .7; }
.c-msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.c-msg.is-player { align-self: flex-start; }
.c-msg.is-staff { align-self: flex-end; align-items: flex-end; }
.c-msg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; color: var(--dim); }
.c-msg-meta b { font-size: 13px; font-weight: 600; color: var(--text); }
.c-msg-time { font-variant-numeric: tabular-nums; }
.c-msg-role { padding: 0 6px; border-radius: 6px; font-size: 11px; background: rgba(255, 255, 255, 0.05); }
.c-msg.is-staff .c-msg-role { color: var(--accent-ink); background: var(--accent-soft); }
.c-msg-src { font-size: 11px; color: #93b6ff; }
.c-msg-text { padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.c-msg.is-staff .c-msg-text { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, rgba(155, 126, 240, 0.22), rgba(124, 92, 214, 0.14)); border-color: rgba(155, 126, 240, 0.35); }
.c-msg.is-pending { opacity: .6; }
.c-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-chat-form .nt-error { grid-column: 1 / -1; margin: 0; }
.c-send { gap: 8px; }
.c-send .i { width: 16px; height: 16px; }
.c-chat-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.c-chat-note .i { width: 15px; height: 15px; }

.c-grounds { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.c-grounds-type { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.c-grounds-type .i { width: 16px; height: 16px; }
.c-grounds-type.is-empty { color: var(--muted); background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.c-grounds-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.c-ref { max-width: 100%; padding: 3px 8px; border-radius: 7px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); overflow-wrap: anywhere; }
.c-ref-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #cfdcf7; background: rgba(96, 138, 255, 0.1); border: 1px solid rgba(96, 138, 255, 0.35); transition: background-color .2s; }
.c-ref-link:hover { background: rgba(96, 138, 255, 0.18); }
.c-ref-link .i { width: 15px; height: 15px; }
.c-grounds-text { margin: 0; font-size: 14px; line-height: 1.5; color: #cfcfcb; white-space: pre-wrap; overflow-wrap: anywhere; }

.c-tl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.c-tl-item { position: relative; display: grid; grid-template-columns: 46px 30px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.c-tl-item:not(:last-child)::before { content: ""; position: absolute; top: 30px; bottom: 0; left: 70px; width: 1px; background: var(--line); }
.c-tl-time { padding-top: 6px; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.c-tl-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--tone); background: #1b1d26; border: 1px solid var(--tone-line); }
.c-tl-dot .i { width: 14px; height: 14px; }
.c-tl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 5px; }
.c-tl-text { font-size: 14px; overflow-wrap: anywhere; }
.c-tl-note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.c-tl-item.is-system .c-tl-text { font-size: 13.5px; color: var(--muted); }
.c-tl-item.is-system .c-tl-dot { background: transparent; border-style: dashed; }

.c-result-hero { display: flex; align-items: center; gap: 16px; }
.c-result-big { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line); }
.c-result-big .i { width: 28px; height: 28px; }
.c-result-hero h3 { margin: 2px 0 4px; font-size: 26px; font-weight: 600; color: var(--tone); }
.c-result-hero p { margin: 0; font-size: 13.5px; color: var(--muted); }
.c-result-card .c-hero-kicker { color: var(--tone); }
.c-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-block-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.c-block-label .i { width: 14px; height: 14px; }
.c-block p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-block-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.c-evidence { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.c-evidence a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; font-size: 13.5px; color: #a9c3ff; }
.c-evidence a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-evidence .i { flex: none; width: 14px; height: 14px; }

/* окна */
.c-modal { --role: var(--accent); width: min(620px, calc(100% - 32px)); }
.c-modal--sm { width: min(460px, calc(100% - 32px)); }
.c-modal-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.c-modal-icon .i { width: 20px; height: 20px; }
.c-modal .p-modal-title h2 { margin: 0; font-size: 19px; }
.c-modal-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.c-modal .p-form { margin: 0; padding: 0; background: none; border: 0; }
.c-time-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.c-time-field input { font-family: 'Sora', sans-serif; font-size: 22px; text-align: center; }
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font: inherit; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.c-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.c-chip .i { width: 14px; height: 14px; }
.c-chip--check input { position: absolute; opacity: 0; pointer-events: none; }
.c-chip--check:has(input:checked) { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.c-chip--check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(155, 126, 240, 0.35); }
.c-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.c-results legend { margin-bottom: 8px; }
.c-result { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.c-result:hover { border-color: var(--tone-line); }
.c-result input { position: absolute; opacity: 0; pointer-events: none; }
.c-result:has(input:checked) { background: var(--tone-soft); border-color: var(--tone); box-shadow: 0 0 0 1px var(--tone-line); }
.c-result:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--tone-line); }
.c-result-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line); }
.c-result-icon .i { width: 18px; height: 18px; }
.c-result-text { display: flex; flex-direction: column; min-width: 0; }
.c-result-text b { font-size: 14px; }
.c-result-text small { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* уведомление «Ваш заказ» */
.c-notify-stack { position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.c-notify { padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(36, 38, 52, 0.98), rgba(24, 26, 35, 0.98)); border: 1px solid rgba(157, 223, 111, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: c-notify-in .28s cubic-bezier(.2, .9, .3, 1.2); }
.c-notify.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes c-notify-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.c-notify-top { display: flex; align-items: center; justify-content: space-between; }
.c-notify-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9ddf6f; }
.c-notify-kicker .i { width: 15px; height: 15px; }
.c-notify-close { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.c-notify-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.c-notify-close .i { width: 16px; height: 16px; }
.c-notify-main { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }
.c-notify-head { flex: none; border-radius: 9px; image-rendering: pixelated; }
.c-notify-main p { margin: 0; font-size: 14px; line-height: 1.4; }
.c-notify-call { width: 100%; justify-content: center; gap: 8px; }
.c-notify-call .i { width: 16px; height: 16px; }

/* история */
.c-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 20px; }
.c-filter-flags { grid-column: span 2; }
.c-filter-actions { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.c-filter-actions .nt-error { margin: 0 auto 10px 0; }
.c-hresults.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.c-htable { border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); overflow-x: auto; }
.c-hrow { display: grid; grid-template-columns: 56px minmax(140px, 1.2fr) minmax(100px, 1fr) 96px 118px 126px 112px 56px 112px 90px 118px; align-items: center; gap: 10px; min-width: 1260px; padding: 10px 16px; cursor: pointer; transition: background-color .2s; }
.c-hrow + .c-hrow { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.c-hrow:not(.c-hrow--head):hover { background: rgba(255, 255, 255, 0.035); }
.c-hrow--head { padding-block: 12px; font-size: 12px; font-weight: 500; color: var(--dim); background: rgba(255, 255, 255, 0.02); cursor: default; }
.c-hrow.is-cancelled { opacity: .62; }
.c-hc { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.c-hc--id { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--muted); }
.c-hc--id:hover { color: var(--accent-ink); }
.c-hc--player a { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.c-hc--player b { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-hc--player a:hover b { color: var(--accent-ink); }
.c-hc--player .p-head { border-radius: 6px; }
.c-hc--flags { flex-wrap: wrap; gap: 4px; }
.c-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.c-pager .btn { gap: 6px; }
.c-pager .i { width: 15px; height: 15px; }

/* игрок */
.c-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; padding: 22px; }
.c-player-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.c-player-counters { display: flex; border-radius: 18px; background: rgba(10, 11, 15, 0.4); border: 1px solid var(--line); }
.c-counter { display: flex; flex-direction: column; gap: 6px; min-width: 110px; padding: 14px 18px; }
.c-counter + .c-counter { border-left: 1px solid var(--line); }
.c-counter span { font-size: 12.5px; color: var(--dim); }
.c-counter b { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 600; line-height: 1; color: var(--tone); }
.c-player-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-player-foot > .post-btn { margin-left: auto; }
.c-player-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; margin-top: 12px; }
.c-plist { display: flex; flex-direction: column; }
.c-plist.box { padding: 8px 14px; }
.c-prow { display: grid; grid-template-columns: minmax(120px, 1.1fr) repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 10px 4px; border-radius: 10px; font-size: 13px; color: var(--muted); transition: background-color .2s; }
.c-prow + .c-prow { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.c-prow:hover { background: rgba(255, 255, 255, 0.03); }
.c-prow-date { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; color: var(--text); }
.c-prow-date .i { width: 14px; height: 14px; color: var(--dim); }
.c-prow-date b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-prow-cell { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.c-prow-go .i { width: 14px; height: 14px; color: var(--dim); }
.c-prow-flags { flex-wrap: wrap; }
.c-bans { display: flex; flex-direction: column; gap: 8px; }
.c-ban { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--tone); }
.c-ban-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.c-ban-title { font-size: 14.5px; overflow-wrap: anywhere; }
.c-ban-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.c-ban-meta b { font-weight: 500; color: var(--text); }
.c-ban-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 -8px; }

/* заказы */
.c-alert-hint { margin: 0 0 6px; }
.c-alert-hint code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.c-group-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.c-group-title .i { width: 16px; height: 16px; }
.c-group-title b { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--dim); }
.c-alerts { display: flex; flex-direction: column; gap: 8px; }
.c-alert { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; }
.c-alert .p-head { border-radius: 10px; }
.c-alert.is-matched { border-color: rgba(157, 223, 111, 0.35); background: linear-gradient(90deg, rgba(157, 223, 111, 0.07), transparent 60%), var(--surface); }
.c-alert.is-new { animation: c-glow 1.6s ease-out 3; }
@keyframes c-glow { 0% { box-shadow: 0 0 0 0 rgba(157, 223, 111, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(157, 223, 111, 0); } }
.c-alert-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.c-alert-nick { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; }
.c-alert-nick:hover { color: var(--accent-ink); }
.c-alert-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.c-alert-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.c-alert-meta .i { width: 14px; height: 14px; color: var(--dim); }
.c-alert-where b { color: var(--text); }
.c-alert-actions { display: flex; justify-content: flex-end; }
.c-alert-actions .btn { gap: 7px; }
.c-alert-actions .i, .c-alert-why .i { width: 15px; height: 15px; }
.c-alert-why { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.c-alert-actions { flex-wrap: wrap; gap: 8px; }
/* заказ с сайта */
.c-order { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; margin: 0 0 6px; }
.c-order-text { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; min-width: 0; }
.c-order-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.c-order-ico .i { width: 18px; height: 18px; }
.c-order-text b { display: block; font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; }
.c-order-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.c-order-text code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.c-order-row { display: flex; gap: 8px; flex: 1 1 340px; min-width: 0; }
.c-order-row .nt-input { flex: 1; min-width: 0; }
.c-order-row .btn { flex: none; gap: 7px; }
.c-order .nt-error { flex-basis: 100%; margin: 0; }
@media (max-width: 600px) {
  .c-alert { grid-template-columns: 44px minmax(0, 1fr); }
  .c-alert-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* статистика */
.c-stats-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; padding: 18px 20px; }
.c-stats-head > .p-head { border-radius: 12px; }
.c-stats-who { flex: 1; min-width: 180px; }
.c-stats-who h2 { margin-bottom: 0; font-size: 24px; }
.c-stats-pick { width: min(260px, 100%); }
.c-break { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.c-bars { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.c-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px 44px; align-items: center; gap: 12px; font-size: 13.5px; }
.c-bar-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tone); }
.c-bar-label .i { width: 16px; height: 16px; }
.c-bar-track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.c-bar-track i { display: block; height: 100%; border-radius: 6px; background: var(--tone); transition: width .4s ease; }
.c-bar-num { font-family: 'Sora', sans-serif; text-align: right; }
.c-bar-pct { font-size: 12.5px; text-align: right; color: var(--dim); }
.c-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-mini { --tone: var(--accent-ink); display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
.c-mini span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.c-mini .i { width: 15px; height: 15px; color: var(--tone); }
.c-mini b { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 600; color: var(--tone); }
.c-mini small { font-size: 11.5px; color: var(--dim); }
.c-more { margin: 10px 0 0; text-align: center; }
.c-team { border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; }
.c-trow { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(8, minmax(0, 1fr)); align-items: center; gap: 10px; width: 100%; padding: 10px 18px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color .2s; }
.c-trow + .c-trow { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.c-trow:not(.c-trow--head):hover { background: rgba(255, 255, 255, 0.035); }
.c-trow.is-active { background: var(--accent-soft); }
.c-trow--head { font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, 0.02); cursor: default; }
.c-tc { font-family: 'Sora', sans-serif; font-variant-numeric: tabular-nums; }
.c-tc.is-warn { color: #ff9a8f; }
.c-tc--who { display: flex; align-items: center; gap: 9px; min-width: 0; font-family: inherit; }
.c-tc--who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-tc--who .p-head { border-radius: 6px; }

/* окно куратора на «Составе» */
.c-recent-sum { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.c-recent-sum b { font-family: 'Sora', sans-serif; color: var(--text); }
.c-recent-list { display: flex; flex-direction: column; gap: 8px; }
.c-recent { display: grid; grid-template-columns: minmax(130px, 1.2fr) repeat(6, minmax(0, 1fr)); align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 13px; font-size: 13px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.c-recent-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-recent-player > span { display: flex; flex-direction: column; min-width: 0; }
.c-recent-player b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-recent-player small { font-size: 11.5px; color: var(--dim); }
.c-recent-player:hover b { color: var(--accent-ink); }
.c-recent-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.c-recent-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c-recent-actions:empty { display: none; }

@media (max-width: 1000px) {
  .c-live-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "timer" "chat" "actions" "grounds" "timeline"; }
  .c-done-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "result" "chat" "grounds" "timeline"; }
  .c-chat-card { height: auto; min-height: 0; }
  .c-chat-list { max-height: 420px; }
  .c-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-break, .c-player-grid, .c-player { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .c-htable { overflow: visible; background: none; border: 0; }
  .c-hrow { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }
  .c-hrow + .c-hrow { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .c-hrow--head { display: none; }
  .c-hc[data-label], .c-hc--flags { grid-column: 1 / -1; justify-content: space-between; font-size: 13px; }
  .c-hc[data-label]::before { content: attr(data-label); color: var(--dim); }
  .c-trow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c-trow--head { display: none; }
  .c-tc--who { grid-column: 1 / -1; }
  .c-tc[data-label]::before { content: attr(data-label); display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: var(--dim); }
  .c-recent, .c-prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .c-recent-player, .c-prow-date { grid-column: 1 / -1; }
  .c-recent-cell[data-label]::before, .c-prow-cell[data-label]::before { content: attr(data-label) ': '; color: var(--dim); }
  .c-prow-go { display: none; }
}
@media (max-width: 600px) {
  .c-hero-top { grid-template-columns: auto minmax(0, 1fr); }
  .c-hero-status { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .c-hero-avatar { width: 64px; height: 64px; border-radius: 18px; }
  .c-hero-avatar .p-head { width: 48px; height: 48px; }
  .c-timer-actions { grid-template-columns: 1fr 1fr; }
  .c-timer-actions [data-timer-set] { grid-column: 1 / -1; }
  .c-filters, .c-results, .c-minis, .c-active-grid, .c-card-meta { grid-template-columns: minmax(0, 1fr); }
  .c-filter-flags, .c-filter-actions { grid-column: auto; }
  .c-alert { grid-template-columns: 40px minmax(0, 1fr); }
  .c-alert-actions { grid-column: 1 / -1; }
  .c-alert-actions .btn { width: 100%; justify-content: center; }
  .c-bar { grid-template-columns: 120px minmax(0, 1fr) 36px; }
  .c-bar-pct { display: none; }
  .c-player-counters { width: 100%; }
  .c-counter { flex: 1; min-width: 0; padding: 12px; }
  .c-msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .c-timer.is-expired, .c-alert.is-new, .c-live.is-open i, .c-notify, .c-spinner { animation: none; }
}
