:root { --bg:#f5f6f8; --card:#fff; --text:#1d2330; --muted:#667085; --line:#e4e7ec; --accent:#2f6fde; --danger:#c4320a; --ok:#067647; --warn:#b54708; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 "Segoe UI", system-ui, sans-serif; background:var(--bg); color:var(--text); }
header { background:#1d2330; color:#fff; padding:0 20px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
header .brand { font-weight:600; padding:14px 0; margin-right:12px; }
header a { color:#cfd4dc; text-decoration:none; padding:14px 2px; }
header a:hover, header a.active { color:#fff; }
header form { margin-left:auto; }
main { max-width:1180px; margin:22px auto; padding:0 16px; }
h1 { font-size:20px; margin:0 0 14px; }
h2 { font-size:16px; margin:22px 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; }
table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
tr:last-child td { border-bottom:none; }
.muted { color:var(--muted); }
.ok { color:var(--ok); font-weight:600; } .bad { color:var(--danger); font-weight:600; } .warn { color:var(--warn); font-weight:600; }
label { display:block; font-weight:600; margin:10px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], textarea, input[type=search] {
    width:100%; max-width:420px; padding:7px 9px; border:1px solid #cfd4dc; border-radius:6px; font:inherit; background:#fff; }
textarea { max-width:100%; min-height:80px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
button, .button { display:inline-block; padding:7px 13px; border-radius:6px; border:1px solid var(--accent); background:var(--accent);
    color:#fff; font:inherit; cursor:pointer; text-decoration:none; }
button.secondary, .button.secondary { background:#fff; color:var(--accent); }
button.danger { background:var(--danger); border-color:var(--danger); }
form.inline { display:inline; }
.message { padding:10px 12px; border-radius:6px; margin-bottom:14px; background:#ecfdf3; color:var(--ok); border:1px solid #abefc6; }
.error { padding:10px 12px; border-radius:6px; margin-bottom:14px; background:#fef3f2; color:var(--danger); border:1px solid #fecdca; }
.login { max-width:380px; margin:70px auto; }
code, .mono { font-family:Consolas, "Cascadia Mono", monospace; font-size:12.5px; word-break:break-all; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; }
.checkbox { display:flex; gap:8px; align-items:center; font-weight:400; }