:root { --accent:#2563eb; --ok:#16a34a; --danger:#dc2626; --muted:#6b7280; --border:#e5e7eb; --bg:#f9fafb; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:#111827; }
header { background:#fff; border-bottom:1px solid var(--border); padding:14px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
header h1 { font-size:18px; margin-right:auto; }
header a { color:var(--accent); text-decoration:none; font-size:14px; font-weight:500; }
nav { display:flex; gap:14px; flex-wrap:wrap; }
main { padding:24px; max-width:1100px; margin:0 auto; }
h2 { font-size:16px; margin-bottom:14px; }
.card { background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px; margin-bottom:16px; }
.card .k { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.card .v { font-size:26px; font-weight:700; margin-top:6px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
th,td { text-align:left; padding:10px 12px; font-size:13px; border-bottom:1px solid var(--border); vertical-align:middle; }
th { background:#f3f4f6; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
tr:last-child td { border-bottom:none; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:600; }
.badge.ok { background:#dcfce7; color:var(--ok); }
.badge.muted { background:#f3f4f6; color:var(--muted); }
.badge.danger { background:#fee2e2; color:var(--danger); }
.badge.accent { background:#dbeafe; color:#1e40af; }
.err { color:#b91c1c; padding:12px; background:#fee2e2; border-radius:8px; margin-bottom:16px; display:none; }
.okmsg { color:#15803d; padding:12px; background:#dcfce7; border-radius:8px; margin-bottom:16px; display:none; }
.form { background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px; display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-bottom:18px; }
label { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
input, select { border:1px solid var(--border); border-radius:6px; padding:8px 10px; font-size:14px; }
input[type=text], input[type=email], input[type=date], select { min-width:140px; }
button { background:var(--accent); color:#fff; border:none; border-radius:6px; padding:10px 16px; font-size:14px; font-weight:600; cursor:pointer; }
button.ghost { background:#f3f4f6; color:#374151; }
button.danger { background:var(--danger); }
.note { color:var(--muted); font-size:12px; margin-bottom:14px; }
a.btn { display:inline-block; background:var(--accent); color:#fff; border-radius:6px; padding:8px 14px; font-size:13px; font-weight:600; text-decoration:none; margin-left:8px; }
