:root {
  --bg: #f5f6f8; --card: #fff; --text: #1d2330; --muted: #667085; --line: #e3e6ec;
  --brand: #1f5eff; --brand-dark: #1749c7; --danger: #c62828; --ok: #1b7f4b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem 1.25rem; background: #101828; }
.topbar a, .topbar .linklike { color: #fff; text-decoration: none; }
.topbar .brand { font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.container { max-width: 1080px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.card.narrow { max-width: 460px; margin-inline: auto; }
.card.medium { max-width: 640px; margin-inline: auto; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=file], select {
  width: 100%; padding: .6rem .7rem; border: 1px solid #c9ced8; border-radius: 8px; font: inherit; background: #fff;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.btn, button.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn-secondary { background: #e9ecf2; color: var(--text); }
.btn-secondary:hover { background: #dce0e8; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #9f1f1f; }
.btn-sm { padding: .3rem .65rem; font-size: .85rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-error { background: #fdecea; border-color: #f5b5b0; color: #7a1c14; }
.alert-ok { background: #e7f6ee; border-color: #a6dcc0; color: #11593a; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 1 auto; }
.row.spread { justify-content: space-between; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; align-items: end; }
.filters label { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .94rem; }
th a { color: inherit; text-decoration: none; white-space: nowrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #e9ecf2; display: inline-block; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #475467; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e9ecf2; }
.badge-admin { background: #e3ebff; color: #1749c7; }
.badge-active { background: #e7f6ee; color: var(--ok); }
.badge-disabled { background: #fdecea; color: var(--danger); }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.pager a, .pager span { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.profile-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.checkbox { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.checkbox input { width: auto; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr; } }
