:root { --violet:#7C2AE8; --ink:#12121A; --muted:#8A8A99; --line:#E4E4EA; --bg:#F4F4F6; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--violet); text-decoration:none; } a:hover { text-decoration:underline; }
nav { background:#fff; border-bottom:1px solid var(--line); padding:12px 20px; display:flex; align-items:center; gap:16px; position:sticky; top:0; }
nav .brand { font-weight:800; cursor:pointer; }
nav .spacer { flex:1; }
main { max-width:1100px; margin:0 auto; padding:24px 20px 60px; }
h1 { font-size:22px; margin:0 0 16px; }
h2 { font-size:15px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); margin:28px 0 10px; }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
table { border-collapse:collapse; width:100%; font-size:13.5px; }
th,td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top; max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
th { background:#fafafa; font-weight:700; }
tr:hover td { background:#faf7ff; }
.scroll { overflow-x:auto; }
.btn { display:inline-block; background:var(--violet); color:#fff; padding:9px 16px; border-radius:10px; border:0; font:inherit; font-weight:600; cursor:pointer; }
.btn.ghost { background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn.danger { background:#E5484D; }
.btn.sm { padding:5px 10px; font-size:12.5px; border-radius:8px; }
input[type=text],input[type=password],textarea,select { width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; background:#fff; }
textarea { min-height:80px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; }
label { display:block; margin:14px 0 4px; font-weight:600; }
label .t { color:var(--muted); font-weight:400; font-size:12px; }
.row-actions { display:flex; gap:8px; }
.muted { color:var(--muted); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.tile { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; cursor:pointer; }
.tile .n { font-size:24px; font-weight:800; }
.tools { display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.error { background:#fdecec; color:#b3261e; padding:10px 14px; border-radius:10px; margin-bottom:14px; }
.pk { color:var(--violet); }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; }
.login-box { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; width:320px; }
.login-box h1 { font-size:20px; margin:0 0 4px; }
.login-box p.sub { color:var(--muted); margin:0 0 18px; }
.login-box input { margin-bottom:12px; }
.login-box button { width:100%; padding:12px; border-radius:12px; }
.hidden { display:none; }
