:root {
  --primary: #1d3f8f;
  --accent: #e4002b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --card: #fff;
  --ok: #15803d;
  --err: #b91c1c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 20px; margin: 36px 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.secondary { background: transparent; color: var(--primary); border: 1px solid currentColor; }
.btn.danger { background: transparent; color: var(--err); border: 1px solid currentColor; }
.btn.small { padding: 6px 12px; font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.msg { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.muted { color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; padding: 0;
}
.pw-eye:hover { color: var(--ink); background: var(--bg); }
