:root {
  --bg: #f5f6f8; --card: #fff; --text: #1c2430; --muted: #5d6877; --line: #e2e6ec;
  --accent: #0b5cad; --accent-text: #fff; --error-bg: #fdecec; --error-text: #8a1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f; --card: #1c222c; --text: #e8ecf2; --muted: #9aa5b5; --line: #2c3442;
    --accent: #5aa2e8; --accent-text: #0d1117; --error-bg: #3a1c1c; --error-text: #f4b4b4;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.top { display: flex; justify-content: space-between; align-items: center;
       padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; letter-spacing: .02em; }
main { max-width: 860px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 420px; margin: 40px auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
label { display: block; margin: 14px 0 4px; font-weight: 500; }
input[type=text], input[type=password] {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { margin-top: 18px; width: 100%; padding: 11px; font: inherit; font-weight: 600;
         color: var(--accent-text); background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }
button.link { width: auto; margin: 0 0 0 12px; padding: 0; background: none; color: var(--accent);
              font-weight: 500; text-decoration: underline; }
.logout { display: flex; align-items: center; margin: 0; }
.error { background: var(--error-bg); color: var(--error-text); padding: 10px 12px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; font-size: .85rem; color: var(--muted); font-weight: 500; }
.num { text-align: right; white-space: nowrap; }
.hash { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
a { color: var(--accent); }
@media (max-width: 560px) { th:nth-child(3), td:nth-child(3) { display: none; } }
