* { box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0;
    background: #0f1115;
    color: #e6e6e6;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #171a21;
    border-bottom: 1px solid #2a2e38;
}
header h1 { font-size: 18px; margin: 0; }
.user-bar { font-size: 14px; color: #9aa0ab; }
.user-bar a { color: #6fb1ff; }

.filters {
    display: flex;
    gap: 16px;
    align-items: end;
    padding: 16px 24px;
    flex-wrap: wrap;
}
.filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #9aa0ab;
}
.filters input, .filters select {
    padding: 6px 8px;
    background: #1c2028;
    border: 1px solid #2a2e38;
    color: #e6e6e6;
    border-radius: 4px;
}
.filters button {
    padding: 7px 16px;
    background: #2e6fd9;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}
.filters .reset { color: #9aa0ab; font-size: 13px; }

.count { padding: 0 24px; color: #9aa0ab; font-size: 13px; }

table {
    width: 100%;
    border-collapse: collapse;
    padding: 0 24px;
    font-size: 13px;
}
th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #21252e;
    white-space: nowrap;
}
th { color: #9aa0ab; font-weight: 600; position: sticky; top: 0; background: #0f1115; }
td.reasoning { white-space: normal; max-width: 320px; color: #b8bcc4; }
tr.row-correct { background: rgba(60, 180, 100, 0.08); }
tr.row-incorrect { background: rgba(220, 80, 80, 0.08); }

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-form {
    background: #171a21;
    border: 1px solid #2a2e38;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
}
.login-form h1 { margin: 0 0 8px; font-size: 20px; text-align: center; }
.login-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9aa0ab; }
.login-form input {
    padding: 8px;
    background: #1c2028;
    border: 1px solid #2a2e38;
    color: #e6e6e6;
    border-radius: 4px;
}
.login-form button {
    margin-top: 8px;
    padding: 10px;
    background: #2e6fd9;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 600;
}
.login-form .error { color: #ff8080; font-size: 13px; margin: 0; }
