:root {
    color-scheme: light;
    --brand: #1b7a43;
    --brand-dark: #145c33;
    --border: #d8dee3;
    --text: #1f2933;
    --bg: #f7f9f8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--brand);
}

.site-header .brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.site-header nav { display: flex; gap: 1rem; align-items: center; }

.site-header nav a, .site-header nav button {
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.inline-form { display: inline; }

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.5rem;
}

h1, h2, h3 { color: var(--brand-dark); }

form.card, .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }

input, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

button, .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.1rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

button:hover, .btn:hover { background: var(--brand-dark); }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success { background: #e3f6e8; border: 1px solid #b6e3c3; }
.alert-error { background: #fbe9e9; border: 1px solid #f1bcbc; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }

.muted { color: #5b6670; font-size: 0.9rem; }

.score-form { display: flex; gap: 0.5rem; align-items: center; }
.score-form input { width: 4.5rem; }
