:root {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #202735;
    background: #f4f6fa;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: #315bd6; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    min-height: 64px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid #e0e5ed;
}

.brand {
    color: #202735;
    font-weight: 750;
    font-size: 19px;
}

nav, nav form {
    display: flex;
    align-items: center;
    gap: 18px;
}

.container {
    max-width: 1000px;
    margin: 36px auto;
    padding: 0 20px;
}

h1 { margin-top: 0; }
h2 { margin-top: 0; font-size: 20px; }

.panel, .login-card {
    background: #fff;
    border: 1px solid #e0e5ed;
    border-radius: 12px;
    padding: 24px;
    margin-top: 22px;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd4e0;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    font: inherit;
}

textarea { resize: vertical; }

button {
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    background: #315bd6;
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:hover { filter: brightness(.94); }

button.secondary {
    background: #edf0f6;
    color: #202735;
}

.muted { color: #687386; }

.error {
    padding: 12px;
    border-radius: 7px;
    background: #fff0f0;
    color: #a51e2b;
    margin: 16px 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.login-card button { width: 100%; margin-top: 22px; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e9f0;
    vertical-align: top;
}

@media (max-width: 650px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    nav { flex-wrap: wrap; gap: 12px; }
    .panel { padding: 16px; overflow-x: auto; }
}
