:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #e3e7ee;
    --text: #1f2430;
    --muted: #6b7280;
    --accent: #2f5cff;
    --accent-weak: #eef2ff;
    --green: #0f9d58;
    --green-weak: #e6f4ea;
    --red: #d93025;
    --red-weak: #fce8e6;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ---- top nav ---- */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    height: 54px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

nav a:hover { color: var(--accent); }

nav form { margin: 0 0 0 auto; }

button, .btn {
    font: inherit;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: filter .15s;
}

button:hover, .btn:hover { filter: brightness(.93); }

/* ---- layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

h1 { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 24px 0 10px; text-transform: none; letter-spacing: .02em; }

ul { margin: 0; padding-left: 18px; }
ul li { margin: 4px 0; color: var(--text); }

/* ---- card ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
}

/* ---- data tables ---- */
table.data {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 13px;
}

table.data thead th {
    background: #f2f4f7;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data tbody td,
table.data tbody th {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table.data tbody tr:last-child td,
table.data tbody tr:last-child th { border-bottom: 0; }

table.data tbody tr:hover { background: var(--accent-weak); }

table.data tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    background: #fafbfc;
    white-space: nowrap;
}

/* number-ish cells lean monospace for alignment */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* pass / fail pills */
.pass { color: var(--green); font-weight: 600; }
.fail { color: var(--red); font-weight: 600; }

/* small muted annotation */
.muted-note { color: var(--muted); font-size: 12px; }

/* ---- disclaimer ---- */
.disclaimer {
    margin-top: 24px;
    padding: 14px 18px;
    background: #fbfbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

/* ---- login ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .08);
    padding: 32px 30px;
    width: 100%;
    max-width: 360px;
}

.login-card h1 { font-size: 18px; margin: 0 0 6px; text-align: center; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

input[type=text], input[type=password] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

input[type=text]:focus, input[type=password]:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-weak);
}

.login-card button { width: 100%; padding: 11px; margin-top: 4px; font-weight: 600; }

.alert { padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: var(--red-weak); color: var(--red); }
.alert-ok { background: var(--green-weak); color: var(--green); }

.hint { color: var(--muted); font-size: 12px; text-align: center; margin: 18px 0 0; }
