
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #100a16;
  --bg-soft: #1b1022;
  --panel: rgba(35, 19, 43, .72);
  --panel-light: rgba(58, 29, 65, .55);
  --pink: #f28bd8;
  --pink-bright: #ff55cf;
  --pink-soft: #ffc4ed;
  --purple: #a76bfa;
  --purple-bright: #bd78ff;
  --text: #fff2fc;
  --muted: #bda8c2;
  --green: #62e89b;
  --border: rgba(255, 157, 230, .22);
  --shadow: 0 12px 45px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(159, 58, 157, .20), transparent 38%),
    radial-gradient(ellipse at 85% 35%, rgba(106, 57, 161, .17), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(210, 63, 166, .12), transparent 45%),
    var(--bg);
  overflow-x: hidden;
}

/* Атмосферный фон */

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: -2;
  opacity: .45;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 150px,
      rgba(255, 126, 224, .055) 151px,
      transparent 153px 300px
    );
  animation: backgroundMove 32s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .18;
  background-image:
    radial-gradient(circle, #ffb4ec 1px, transparent 1.8px),
    radial-gradient(circle, #c18cff 1px, transparent 1.8px);
  background-size: 85px 85px, 130px 130px;
  background-position: 0 0, 35px 45px;
  animation: particleDrift 30s linear infinite;
}

@keyframes backgroundMove {
  from { transform: translateX(-5%); }
  to { transform: translateX(5%); }
}

@keyframes particleDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: .20;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.ambient-one {
  top: 10%;
  left: -180px;
  background: #ed55c8;
}

.ambient-two {
  right: -180px;
  bottom: 5%;
  background: #9852ff;
  animation-delay: -7s;
}

@keyframes ambientFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 45px); }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc0ed;
  box-shadow:
    120px 140px 5px #ff9be4,
    350px 300px 8px #d38cff,
    650px 100px 5px #ff9be4,
    850px 450px 8px #d38cff,
    1050px 180px 6px #ff9be4,
    1250px 550px 8px #d38cff,
    1450px 250px 5px #ff9be4;
  animation: floatingParticles 18s linear infinite;
}

.particles::after {
  left: 40%;
  top: 20%;
  animation-delay: -9s;
  opacity: .55;
}

@keyframes floatingParticles {
  0% { transform: translateY(0); opacity: .2; }
  50% { opacity: .8; }
  100% { transform: translateY(-180px); opacity: .1; }
}

/* Верхняя панель */

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 10, 25, .78);
  backdrop-filter: blur(22px);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand-emblem {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 29px;
  color: var(--pink-soft);
  border-radius: 14px;
  background: linear-gradient(145deg, #e85bc4, #783ac5);
  box-shadow: 0 0 25px rgba(242, 91, 210, .35);
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-name span {
  color: var(--pink);
}

.brand-caption,
.eyebrow {
  color: var(--pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 4px;
}

.topbar-status,
.system-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  50% { opacity: .5; box-shadow: 0 0 4px var(--green); }
}

/* Основная сетка */

.app-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 25px;
  min-height: calc(100vh - 120px);
}

/* Боковое меню */

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 130px);
  min-height: 530px;
  display: flex;
  flex-direction: column;
  padding: 19px 13px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: linear-gradient(160deg, rgba(55, 27, 63, .78), rgba(21, 12, 29, .88));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04);
}

.sidebar-heading {
  color: #9e83a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 10px 12px 20px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #d5bcd9;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: .28s ease;
}

.nav-link:hover {
  color: white;
  background: rgba(232, 95, 204, .12);
  border-color: rgba(242, 139, 216, .18);
  transform: translateX(3px);
}

.nav-link.active {
  color: white;
  background: linear-gradient(100deg, rgba(236, 87, 200, .30), rgba(151, 76, 213, .18));
  border-color: rgba(255, 153, 227, .62);
  box-shadow: 0 0 20px rgba(232, 78, 197, .17), inset 0 0 16px rgba(255, 255, 255, .035);
}

.nav-icon {
  width: 23px;
  font-size: 21px;
  color: var(--pink);
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  margin-top: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.profile-crown {
  font-size: 26px;
  color: #ffd58b;
}

.profile-card small,
.profile-card strong {
  display: block;
}

.profile-card small {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.profile-card strong {
  font-size: 12px;
}

.logout-button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 115, 163, .28);
  border-radius: 11px;
  background: rgba(222, 65, 134, .10);
  color: #ffc1dc;
  font-family: inherit;
  cursor: pointer;
  transition: .25s;
}

.logout-button:hover {
  background: rgba(222, 65, 134, .25);
  box-shadow: 0 0 20px rgba(255, 91, 180, .18);
}

/* Контент */

.main-content {
  min-width: 0;
  animation: contentEnter .7s ease both;
}

@keyframes contentEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
}

.page-heading h1 {
  margin: 8px 0;
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -.8px;
}

.page-heading p,
.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.system-badge {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 11px 15px;
  background: rgba(255,255,255,.035);
  white-space: nowrap;
}

/* Стеклянные панели */

.panel,
.table-panel,
.info-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(55, 28, 65, .68), rgba(23, 14, 32, .82));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035);
}

.tab {
  animation: tabAppear .45s cubic-bezier(.2,.8,.2,1) both;
}

.tab.hidden,
.hidden {
  display: none !important;
}

@keyframes tabAppear {
  from { opacity: 0; transform: translateY(13px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tab.panel {
  padding: 27px;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 6px 0 7px;
  font-size: 23px;
}

.section-symbol {
  font-size: 38px;
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255, 110, 213, .5);
}

.month-label,
.mini-badge {
  color: var(--pink-soft);
  border: 1px solid rgba(242, 139, 216, .3);
  border-radius: 30px;
  background: rgba(230, 89, 199, .10);
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Карточки статистики */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}

.metric-card {
  position: relative;
  min-height: 125px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid rgba(246, 140, 224, .4);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(97, 40, 103, .38), rgba(30, 16, 42, .82));
  box-shadow: 0 8px 28px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.06);
  transition: transform .3s, box-shadow .3s;
}

.metric-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  top: -70px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(60px);
  opacity: .18;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(235, 85, 204, .16);
}

.metric-card small {
  display: block;
  color: #d9bfdc;
  font-size: 12px;
  margin-bottom: 12px;
}

.metric-card strong {
  display: block;
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 800;
  color: white;
  text-shadow: 0 0 18px rgba(255, 159, 230, .16);
}

/* Таблица */

.table-panel {
  overflow: hidden;
}

.table-toolbar {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border);
}

.table-toolbar h3,
.panel-heading h3 {
  margin: 0;
  font-size: 15px;
}

.table-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.search-input {
  max-width: 280px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th {
  color: var(--pink-soft);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 133, 220, .07);
  white-space: nowrap;
}

td {
  color: #f7e8f8;
  font-size: 12px;
}

th, td {
  padding: 15px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

th:first-child,
td:first-child {
  text-align: left;
  padding-left: 22px;
}

tbody tr {
  transition: background .22s;
}

tbody tr:hover {
  background: rgba(255, 123, 218, .075);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 11px;
}

/* Кнопки */

button {
  font-family: inherit;
}

.primary-button {
  border: 1px solid rgba(255, 191, 237, .45);
  border-radius: 12px;
  padding: 12px 18px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(110deg, #df5dbb, #9854d4);
  box-shadow: 0 5px 20px rgba(215, 75, 190, .22);
  cursor: pointer;
  transition: .25s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(238, 86, 211, .4);
  filter: brightness(1.12);
}

.primary-button:active {
  transform: scale(.97);
}

.danger {
  background: linear-gradient(110deg, #a93675, #773c8e);
  color: white;
  border: 1px solid rgba(255, 150, 215, .3);
  border-radius: 11px;
  padding: 11px 17px;
  cursor: pointer;
}

/* Нижние блоки */

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 17px;
}

.info-panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-placeholder {
  margin-top: 20px;
}

.activity-placeholder p {
  color: var(--muted);
  font-size: 11px;
}

.activity-bars {
  height: 100px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: repeating-linear-gradient(to bottom, transparent 0 24px, rgba(255,255,255,.045) 25px);
}

.activity-bars span {
  flex: 1;
  height: var(--bar);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(to top, #a64dd3, #fa91da);
  box-shadow: 0 0 16px rgba(236, 100, 216, .22);
  animation: barAppear .9s ease both;
  transform-origin: bottom;
}

@keyframes barAppear {
  from { transform: scaleY(.05); opacity: .3; }
  to { transform: scaleY(1); opacity: 1; }
}

.welcome-message {
  text-align: center;
  padding: 17px;
}

.welcome-symbol {
  color: var(--pink);
  font-size: 37px;
  text-shadow: 0 0 22px var(--pink);
  margin-bottom: 10px;
}

.welcome-message strong {
  display: block;
  font-size: 14px;
}

.welcome-message p {
  color: var(--muted);
  font-size: 11px;
}

/* Формы */

input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(244, 152, 222, .25);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
  color: white;
  background: rgba(12, 8, 19, .65);
  font-family: inherit;
  font-size: 13px;
  transition: .25s;
}

input::placeholder {
  color: #927b99;
}

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(239, 107, 206, .10), 0 0 18px rgba(239, 107, 206, .10);
}

.inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline input {
  flex: 1;
}

.add-form {
  margin-bottom: 23px;
}

.settings-card {
  max-width: 480px;
  padding: 18px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.settings-card label {
  display: block;
  color: var(--pink-soft);
  font-size: 12px;
  margin-bottom: 11px;
}

.subheading {
  margin: 25px 0 13px;
  font-size: 15px;
  color: var(--pink-soft);
}

/* Списки */

.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(244, 152, 222, .18);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  transition: .25s;
}

.item:hover {
  border-color: rgba(255, 147, 222, .45);
  background: rgba(239, 111, 205, .07);
}

.item strong,
.item span {
  color: var(--text);
}

.item input {
  max-width: 125px;
  margin-left: auto;
}

.item button {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 11px;
}

/* Авторизация */

.login-panel {
  max-width: 450px;
  margin: 70px auto;
  padding: 35px;
  text-align: center;
  box-shadow: 0 15px 60px rgba(0,0,0,.35), 0 0 45px rgba(226, 83, 195, .09);
}

.login-logo {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 19px;
  color: white;
  font-size: 37px;
  background: linear-gradient(140deg, #e66bc8, #9251cf);
  box-shadow: 0 0 32px rgba(232, 90, 202, .35);
}

.login-panel h2 {
  margin: 10px 0;
  font-size: 25px;
}

.login-panel > p {
  color: var(--muted);
  font-size: 12px;
}

.login-panel form {
  margin-top: 25px;
  text-align: left;
}

.login-panel label {
  display: block;
  margin: 15px 0 8px;
  color: var(--pink-soft);
  font-size: 12px;
}

.login-panel form button {
  width: 100%;
  margin-top: 20px;
}

.error {
  color: #ff849e !important;
}

/* Подвал */

.site-footer {
  max-width: 1700px;
  margin: 0 auto;
  padding: 10px 28px 24px;
  display: flex;
  justify-content: space-between;
  color: #816c89;
  font-size: 9px;
  letter-spacing: 2px;
}

/* Адаптация */

@media (max-width: 1050px) {
  .app-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    padding: 18px;
    gap: 15px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .topbar-status {
    display: none;
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    padding: 13px;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    padding: 12px;
  }

  .sidebar-heading,
  .sidebar-bottom {
    display: none;
  }

  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }

  .nav-link {
    flex: 1 1 135px;
    padding: 10px;
    font-size: 11px;
  }

  .nav-icon {
    font-size: 17px;
    width: 18px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .system-badge {
    font-size: 9px;
  }

  .cards {
    gap: 9px;
  }

  .metric-card {
    min-height: 105px;
    padding: 14px;
  }

  .metric-card small {
    font-size: 10px;
  }

  .metric-card strong {
    font-size: 21px;
  }

  .table-toolbar,
  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input {
    max-width: none;
  }

  .tab.panel {
    padding: 18px 13px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .month-label {
    font-size: 8px;
  }

  .inline {
    flex-wrap: wrap;
  }

  .inline input,
  .inline button {
    width: 100%;
    max-width: none;
  }

  .item {
    align-items: stretch;
  }

  .item input {
    margin-left: 0;
  }

  .site-footer {
    padding: 10px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* ==========================================
   PRISON EVO — ВКЛАДКА МОДЕРАТОРЫ
   Остальные разделы сайта не затрагиваются.
========================================== */

#mods .add-form {
  padding: 15px;
  border: 1px solid rgba(244, 152, 222, .22);
  border-radius: 16px;
  background: rgba(12, 8, 19, .32);
}

#mods .staff-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 5px 0 20px;
}

#mods .staff-overview > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid rgba(244, 152, 222, .2);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(83, 38, 91, .34),
    rgba(19, 12, 28, .65)
  );
}

#mods .staff-overview span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

#mods .staff-overview strong {
  color: var(--pink-soft);
  font-size: 25px;
}

#mods .staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#mods .staff-card {
  --rank-color: var(--pink);
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--rank-color) 45%, transparent);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(54, 28, 64, .78),
    rgba(17, 11, 25, .88)
  );
  box-shadow: inset 0 1px rgba(255,255,255,.04),
    0 9px 28px rgba(0,0,0,.18);
  transition: .25s ease;
}

#mods .staff-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  top: -95px;
  border-radius: 50%;
  background: var(--rank-color);
  filter: blur(55px);
  opacity: .2;
  pointer-events: none;
}

#mods .staff-card:hover {
  transform: translateY(-3px);
  border-color: var(--rank-color);
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--rank-color) 16%, transparent);
}

#mods .staff-card.is-disabled {
  opacity: .68;
  filter: saturate(.7);
}

#mods .staff-card-open {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 8px 13px;
  align-items: center;
  width: 100%;
  padding: 17px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#mods .staff-avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid
    color-mix(in srgb, var(--rank-color) 60%, transparent);
  border-radius: 14px;
  color: var(--rank-color);
  background: color-mix(in srgb, var(--rank-color) 13%, #160e20);
  font-size: 27px;
  text-shadow: 0 0 15px var(--rank-color);
}

#mods .staff-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#mods .staff-card-main strong {
  overflow: hidden;
  color: white;
  font-size: 15px;
  text-overflow: ellipsis;
}

#mods .staff-rank {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid
    color-mix(in srgb, var(--rank-color) 60%, transparent);
  border-radius: 20px;
  color: var(--rank-color);
  background: color-mix(in srgb, var(--rank-color) 12%, transparent);
  font-size: 10px;
  font-weight: 800;
}

#mods .staff-status {
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

#mods .staff-card.is-disabled .staff-status {
  color: #d9a5ca;
}

#mods .staff-card-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#mods .staff-card-stats span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#mods .staff-card-stats small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

#mods .staff-card-stats b {
  color: white;
  font-size: 15px;
}

#mods .staff-card-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

#mods .staff-card-foot i {
  color: var(--pink-soft);
  font-style: normal;
  font-weight: 700;
}

#mods .staff-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 15px;
  border: 1px dashed rgba(244, 152, 222, .25);
  border-radius: 16px;
  color: var(--pink);
  font-size: 30px;
}

#mods .staff-empty strong {
  color: white;
  font-size: 14px;
}

#mods .staff-empty span {
  color: var(--muted);
  font-size: 11px;
}

/* Архив */

#mods .staff-archive {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 152, 222, .18);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

#mods .staff-archive summary {
  color: var(--pink-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#mods .staff-archive summary span {
  margin-left: 7px;
  color: var(--muted);
}

#mods .staff-archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}

#mods .staff-archive-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}

#mods .staff-archive-row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#mods .staff-archive-row b {
  color: white;
  font-size: 12px;
}

#mods .staff-archive-row small {
  color: var(--muted);
  font-size: 10px;
}

#mods .staff-archive-row button {
  padding: 8px 10px;
  font-size: 10px;
}

/* Кнопки */

#mods .secondary,
.staff-modal .secondary {
  padding: 10px 13px;
  border: 1px solid rgba(244, 152, 222, .27);
  border-radius: 10px;
  color: var(--pink-soft);
  background: rgba(231, 104, 205, .09);
  cursor: pointer;
}

#mods .danger,
.staff-modal .danger {
  padding: 10px 13px;
  font-size: 11px;
}

/* Модальное окно профиля */

.staff-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 9, .78);
  backdrop-filter: blur(9px);
}

.staff-modal-box {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 157, 230, .35);
  border-radius: 21px;
  background: linear-gradient(145deg, #291832, #120b1b 75%);
  box-shadow: 0 25px 90px rgba(0,0,0,.6),
    0 0 40px rgba(231, 85, 198, .12);
}

.staff-modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: rgba(255,255,255,.06);
  font-size: 24px;
  cursor: pointer;
}

.staff-profile-head {
  --rank-color: var(--pink);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 35px 22px 0;
}

.staff-profile-avatar {
  display: grid;
  flex: 0 0 76px;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid
    color-mix(in srgb, var(--rank-color) 65%, transparent);
  border-radius: 20px;
  color: var(--rank-color);
  background: color-mix(in srgb, var(--rank-color) 13%, #160e20);
  font-size: 42px;
  text-shadow: 0 0 22px var(--rank-color);
}

.staff-profile-head h2 {
  margin: 6px 0 9px;
  color: white;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.staff-profile-state {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

/* Статистика профиля */

.staff-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 14px;
}

.staff-profile-stats > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.staff-profile-stats small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .8px;
}

.staff-profile-stats b {
  color: white;
  font-size: 19px;
}

.staff-profile-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.staff-profile-meta span {
  flex: 1;
  padding: 12px;
  border-radius: 11px;
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 10px;
}

.staff-profile-meta strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 12px;
}

.staff-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* История событий */

.staff-event-section h3 {
  margin: 20px 0 13px;
  color: var(--pink-soft);
  font-size: 15px;
}

.staff-event-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(244, 152, 222, .18);
  border-radius: 13px;
  background: rgba(0,0,0,.16);
}

.staff-event-form input,
.staff-event-form select,
.staff-event-form textarea,
.staff-editor-form input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(244, 152, 222, .25);
  border-radius: 9px;
  outline: none;
  color: white;
  background: rgba(12,8,19,.72);
  font: inherit;
  font-size: 12px;
}

.staff-event-form select {
  color-scheme: dark;
}

.staff-event-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.staff-event-form input[type="date"],
.staff-event-form button {
  grid-column: 1 / -1;
}

.staff-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 15px;
}

.staff-event {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  gap: 10px;
  padding: 0 0 17px;
}

.staff-event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: -2px;
  width: 1px;
  background: rgba(244,152,222,.25);
}

.staff-event-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px currentColor;
}

.event-promotion .staff-event-dot {
  background: #62e89b;
}

.event-demotion .staff-event-dot,
.event-ban .staff-event-dot {
  background: #ff758f;
}

.event-warning .staff-event-dot,
.event-mute .staff-event-dot {
  background: #ffc36f;
}

.staff-event-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.staff-event-top b {
  color: white;
  font-size: 12px;
}

.staff-event-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.staff-event p,
.staff-no-events {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Форма редактирования */

.staff-editor-title {
  margin: 8px 0 20px;
}

.staff-editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staff-editor-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--pink-soft);
  font-size: 11px;
  font-weight: 700;
}

.staff-color-field {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 400;
}

.staff-color-field input {
  width: 58px;
  height: 42px;
  padding: 4px;
}

.staff-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
}

/* Адаптация под телефон */

@media (max-width: 760px) {
  #mods .staff-grid {
    grid-template-columns: 1fr;
  }

  #mods .staff-overview {
    gap: 7px;
  }

  #mods .staff-overview > div {
    padding: 11px;
  }

  #mods .staff-overview strong {
    font-size: 21px;
  }

  .staff-modal {
    padding: 8px;
  }

  .staff-modal-box {
    max-height: 94vh;
    padding: 20px 15px;
  }

  .staff-profile-head {
    align-items: flex-start;
    gap: 12px;
  }

  .staff-profile-avatar {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .staff-profile-head h2 {
    font-size: 20px;
  }

  .staff-event-form {
    grid-template-columns: 1fr;
  }

  .staff-event-form textarea,
  .staff-event-form input[type="date"],
  .staff-event-form button {
    grid-column: auto;
  }

  .staff-profile-meta {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  #mods .staff-card-open {
    grid-template-columns: 43px minmax(0,1fr);
    padding: 13px;
  }

  #mods .staff-avatar {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }

  #mods .staff-status {
    grid-column: 2;
  }

  #mods .staff-card-foot {
    flex-direction: column;
  }

  #mods .staff-archive-row {
    flex-wrap: wrap;
  }

  #mods .staff-archive-row > span {
    flex-basis: 100%;
  }

  .staff-profile-stats {
    gap: 6px;
  }

  .staff-profile-stats > div {
    padding: 10px 8px;
  }

  .staff-profile-stats b {
    font-size: 16px;
  }
}