:root {
  --side: #2f4050;
  --side-2: #293846;
  --muted: #a7b1c2;
  --green: #13ae38;
  --reset: #4d7198;
  --link: #1a5fb4;
  --line: #e7e7e7;
  --text: #222;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: var(--text); background: #fff; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.shell { display: flex; min-height: 100vh; }
.side { width: 220px; flex: 0 0 220px; background: var(--side); color: #fff; display: flex; flex-direction: column; }
.logo { padding: 16px 14px 10px; font-weight: 800; font-size: 22px; letter-spacing: .2px; }
.logo span { color: var(--green); }
.logo small { display: block; margin-top: 2px; font-size: 9px; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.nav { flex: 1; overflow: auto; padding-bottom: 8px; }
.sec { color: #fff; font-size: 13px; font-weight: 700; padding: 12px 14px 4px; }
.item, .sub {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: transparent; border: 0; color: var(--muted); text-align: left; padding: 7px 14px; font-size: 12px;
}
.sub { padding-left: 28px; }
.item.active, .sub.active { background: var(--side-2); color: #fff; }
.item:hover, .sub:hover { color: #fff; }
.side-foot { padding: 12px 14px 16px; display: flex; align-items: center; gap: 8px; }
.lang { color: var(--muted); font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.top {
  height: 52px; border-bottom: 1px solid #eee; display: flex; align-items: center;
  justify-content: flex-end; gap: 16px; padding: 0 16px; font-size: 13px;
}
.top select { height: 28px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.btn-green { background: var(--green); color: #fff; border: 0; border-radius: 3px; padding: 8px 16px; font-weight: 700; }
.btn-reset { background: var(--reset); color: #fff; border: 0; border-radius: 3px; padding: 8px 22px; font-weight: 700; min-width: 140px; }
.btn-green:disabled, .btn-reset:disabled { opacity: .55; cursor: default; }
.content { padding: 14px 16px 28px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; margin-bottom: 8px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; }
.field input, .field select { width: 100%; height: 32px; border: 1px solid #d9d9d9; border-radius: 2px; padding: 0 8px; background: #fff; }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.err { color: #c0392b; min-height: 16px; margin: 6px 0; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th { text-align: center; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid #ddd; white-space: nowrap; background: #fafafa; }
td { text-align: center; padding: 8px 6px; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.link { color: var(--link); font-weight: 700; background: none; border: 0; padding: 0; }
tr.banned td { background: #fdecec; }
.pill { display: inline-flex; align-items: center; gap: 4px; color: #d9534f; border: 1px solid #d9534f; border-radius: 12px; padding: 2px 8px; font-weight: 700; }
.users-head { color: #fff; font-size: 13px; font-weight: 700; padding: 10px 14px 2px; }
.icon-btn { width: 22px; height: 22px; border: 0; border-radius: 3px; background: #f2f2f2; color: #333; font-weight: 700; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 2px; }
.dot.on { background: #13ae38; }
.dot.off { background: #d9534f; }
.pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 10px; }
.pager button { background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 4px 10px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.card { background: #f7f8fa; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.card b { display: block; font-size: 18px; margin-top: 4px; }
.panel { max-width: 460px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.crumb { margin-bottom: 8px; color: #555; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 16px; }
.modal { width: min(420px, 100%); background: #fff; border-radius: 4px; padding: 16px; }
.modal h3 { margin: 0 0 10px; }
.modal input { width: 100%; height: 34px; border: 1px solid #ccc; padding: 0 8px; }
.row-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: #e9ecf2; }
.login-card { width: min(400px, 92vw); background: #fff; border-radius: 4px; overflow: hidden; }
.login-card header { background: var(--side); color: #fff; padding: 16px 18px; font-size: 20px; font-weight: 800; }
.login-card header span { color: var(--green); }
.login-card form { padding: 16px 18px 20px; }
.login-card label { display: block; margin: 8px 0 4px; }
.login-card input { width: 100%; height: 34px; border: 1px solid #ccc; padding: 0 8px; }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: 100%; }
  .filters, .cards { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; height: auto; padding: 8px; justify-content: flex-start; }
}
