* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 system-ui, sans-serif; background: #f6f6f7; color: #1b1b1f; }
[hidden] { display: none !important; }
nav { position: fixed; inset: 0 auto 0 0; width: 216px; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: #17171b; overflow-y: auto; }
nav strong { color: #fff; font-size: 16px; padding: 0 10px 12px; }
nav span { color: #8b8b94; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 16px 10px 4px; }
nav a { color: #d4d4d8; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
nav a:hover { background: #26262c; }
nav a.on { background: #34343c; color: #fff; font-weight: 600; }
nav button { margin-top: auto; background: transparent; color: #d4d4d8; border-color: #3f3f46; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px; }
nav:not([hidden]) + main { margin-left: 216px; max-width: 1180px; }
@media (max-width: 760px) {
  nav { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  nav span { display: none; }
  nav button { margin: 0 0 0 auto; }
  nav:not([hidden]) + main { margin-left: 0; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 14px 16px; color: inherit; text-decoration: none; }
a.stat:hover { border-color: #999; }
.stat strong { font-size: 24px; line-height: 1.2; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.two > div { min-width: 0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bars i { display: block; width: 100%; background: #3b5bdb; border-radius: 4px 4px 0 0; }
.bars small { color: #666; font-size: 11px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eee; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.good { background: #e3f5e8; color: #17663a; }
button.premium { background: #fff4d6; color: #7a5200; border-color: #e0b04a; }
.mini { width: 40px; height: 58px; object-fit: cover; border-radius: 4px; background: #e4e4e7; }
.filters { margin-bottom: 16px; }
.access { margin: 12px 0; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
label { display: block; font-weight: 600; font-size: 13px; }
input, select, textarea { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #bbb; border-radius: 6px; font: inherit; background: #fff; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 4px 0 0; }
.row > input, .row > select { width: auto; flex: 1; margin: 0; }
.check { font-weight: 400; margin-right: 12px; }
button { padding: 8px 14px; border: 1px solid #1b1b1f; border-radius: 6px; background: #1b1b1f; color: #fff; font: inherit; cursor: pointer; }
button.plain { background: #fff; color: #1b1b1f; border-color: #bbb; }
button.danger { background: #fff; color: #a4161a; border-color: #a4161a; }
button:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.scroll { overflow-x: auto; }
progress { width: 100%; }
.muted { color: #666; }
.error { color: #a4161a; white-space: pre-wrap; }
.thumb { height: 90px; display: block; margin-top: 8px; border-radius: 4px; }
#toast { position: fixed; bottom: 16px; right: 16px; max-width: 360px; padding: 12px 16px; border-radius: 6px; background: #1b1b1f; color: #fff; }
