/* Superadmin console — its own frame: sidebar + content (no social-network chrome). */
body.admin { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.admin-side {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.admin-brand { display: flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; padding: 4px 6px; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.admin-brand strong { font-family: var(--font-display); letter-spacing: .08em; }
.admin-brand small { color: var(--orange, var(--gold)); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.admin-nav a {
  position: relative; display: flex; align-items: center; gap: 10px; flex: none; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap;
}
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a[aria-current="page"] { background: color-mix(in srgb, var(--leaf) 14%, transparent); color: var(--leaf); }
.admin-nav svg { width: 18px; height: 18px; flex: none; }
.admin-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--root); color: #fff; font-size: 11px; display: grid; place-items: center; }
.admin-side__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.admin-side__foot .btn--block { width: auto; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.admin-title { margin: 0; font-size: var(--fs-lg, 1.25rem); font-family: var(--font-display); }
.admin-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--s4); }
.admin-back { align-self: flex-start; }
.admin-alert { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 12px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--orange, var(--gold)) 50%, var(--border)); background: color-mix(in srgb, var(--orange, var(--gold)) 10%, transparent); }
.admin-alert svg { width: 20px; height: 20px; color: var(--orange, var(--gold)); }
.admin-alert span { flex: 1; }
.admin-danger { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed color-mix(in srgb, var(--root) 50%, var(--border)); align-items: flex-end; }
.admin-danger label { display: flex; flex-direction: column; gap: 4px; }
.admin .stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); }
.admin .stat { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.admin .stat:hover { transform: translateY(-2px); border-color: var(--leaf); }
.admin .stat__n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--leaf); }
.admin .stat--reports .stat__n, .admin .stat--claims .stat__n { color: var(--root); }
.admin .stat--new_week .stat__n { color: var(--orange, var(--gold)); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 180px; }
.bars__day { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bars__cols { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bars__bar { width: 40%; min-height: 2px; border-radius: 4px 4px 0 0; }
.bars__bar--users, .dot--users { background: var(--leaf); }
.bars__bar--posts, .dot--posts { background: var(--orange, var(--gold)); }
.bars small { color: var(--muted); font-size: 11px; }
.bars__legend { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.bh-0 { height: 0%; }
.bh-1 { height: 5%; }
.bh-2 { height: 10%; }
.bh-3 { height: 15%; }
.bh-4 { height: 20%; }
.bh-5 { height: 25%; }
.bh-6 { height: 30%; }
.bh-7 { height: 35%; }
.bh-8 { height: 40%; }
.bh-9 { height: 45%; }
.bh-10 { height: 50%; }
.bh-11 { height: 55%; }
.bh-12 { height: 60%; }
.bh-13 { height: 65%; }
.bh-14 { height: 70%; }
.bh-15 { height: 75%; }
.bh-16 { height: 80%; }
.bh-17 { height: 85%; }
.bh-18 { height: 90%; }
.bh-19 { height: 95%; }
.bh-20 { height: 100%; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .chip-btn { text-decoration: none; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--surface-2); }
.status--active { color: var(--leaf); background: color-mix(in srgb, var(--leaf) 14%, transparent); }
.status--onboarding { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.status--suspended, .status--deleted { color: var(--root); background: color-mix(in srgb, var(--root) 14%, transparent); }
.audit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.mini-input { width: 90px; height: 32px; padding: 0 8px; }
.log { margin: 0; max-height: 420px; overflow: auto; padding: var(--s3); border-radius: 10px; background: var(--surface-2); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.admin .table td form { display: inline-flex; }
.announce { display: flex; align-items: center; gap: var(--s2); padding: 10px 16px; font-size: var(--fs-sm); text-align: center; justify-content: center;
  background: color-mix(in srgb, var(--leaf) 12%, var(--surface)); border-bottom: 1px solid var(--border); }
.announce--warning { background: color-mix(in srgb, var(--orange, var(--gold)) 16%, var(--surface)); }
.announce svg { width: 18px; height: 18px; flex: none; }
.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: var(--s5); text-align: center; }
.maintenance-page .card { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
@media (min-width: 960px) {
  .admin-shell { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto; }
  .admin-side { position: sticky; top: 0; height: 100vh; border-bottom: 0; border-right: 1px solid var(--border); padding: var(--s4) var(--s3); }
  .admin-nav { flex-direction: column; overflow: visible; flex: 1; }
  .admin-side__foot { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .admin-side__foot .btn--block { width: 100%; }
  .admin-content { padding: var(--s5); }
}
.admin-danger input, .mini-input {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; letter-spacing: .06em;
}
.admin-danger input { max-width: 260px; }
.admin-danger input:focus, .mini-input:focus { outline: 2px solid var(--root); outline-offset: 1px; }
.admin-side, .admin-main { min-width: 0; }
.admin-shell { overflow-x: clip; }
