[hidden] { display: none !important; }
:root { --bg:#f5f7fb; --card:#fff; --line:#e4e7ec; --text:#101828; --muted:#667085; --brand:#2563eb; --brand-dark:#1d4ed8; --danger:#b42318; --ok:#067647; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
.primary { border: 0; border-radius: 7px; background: var(--brand); color: #fff; padding: 9px 15px; }
.primary:hover { background: var(--brand-dark); }
.ghost { border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #344054; padding: 8px 13px; }
.ghost:hover { background: #f9fafb; }
.muted { color: var(--muted); }
.error { color: var(--danger); white-space: pre-wrap; min-height: 18px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #e8efff, transparent 40%), var(--bg); }
.login-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 20px 60px rgb(16 24 40 / 8%); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.brand-mark.small { width: 28px; height: 28px; font-size: 14px; margin: 0; border-radius: 7px; }
.login-card h1 { margin: 0 0 4px; font-size: 24px; }
.login-card form { margin-top: 22px; }
label { display: grid; gap: 6px; margin-bottom: 13px; font-size: 13px; color: #344054; }
input { width: 100%; padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; outline: none; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
.login-card .primary { width: 100%; margin-top: 6px; padding: 11px; }
.app { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { background: #0f172a; color: #cbd5e1; padding: 20px 14px; display: flex; flex-direction: column; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 2px 8px; }
.sidebar nav { display: grid; gap: 4px; }
.nav { text-align: left; border: 0; border-radius: 7px; padding: 10px 12px; background: transparent; color: #cbd5e1; }
.nav.active { background: #1d4ed8; color: #fff; }
.nav:hover:not(:disabled) { background: #1e293b; }
.muted-item { opacity: .45; cursor: default; }
.sidebar-foot { margin-top: auto; padding: 10px 12px; font-size: 12px; color: #94a3b8; border-top: 1px solid #1e293b; }
.main { padding: 26px 30px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar h1 { margin: 0; font-size: 24px; }
.topbar p { margin: 2px 0 0; }
.userbox { display: flex; gap: 10px; align-items: center; color: #344054; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar input { max-width: 300px; }
.toolbar-actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid #eaecf0; text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fcfcfd; }
tbody tr:hover { background: #f9fafb; }
.badge { display: inline-flex; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.badge.active { background: #ecfdf3; color: var(--ok); }
.badge.suspended { background: #fef3f2; color: var(--danger); }
.row-actions { display: flex; gap: 6px; }
.row-actions button { padding: 5px 9px; font-size: 12px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgb(16 24 40 / 22%); }
dialog::backdrop { background: rgb(15 23 42 / 45%); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 18px; font-size: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: #101828; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgb(16 24 40 / 25%); }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .sidebar { flex-direction: row; flex-wrap: wrap; gap: 10px; } .sidebar nav { display: flex; } .sidebar-foot { display: none; } .main { padding: 18px; } .stats { grid-template-columns: 1fr; } .toolbar { flex-direction: column; align-items: stretch; } .toolbar input { max-width: none; } }
.dialog-body { padding: 24px; }
.warn-box { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; padding: 10px 12px; border-radius: 8px; }
.secret { display: block; word-break: break-all; background: #f8fafc; border: 1px dashed #98a2b3; padding: 12px; border-radius: 8px; font-size: 14px; }
