:root {
    --green: #1f6f3f;
    --green-dark: #15522e;
    --yellow: #f2c94c;
    --yellow-soft: #fff4c2;
    --bg: #f6f8f5;
    --text: #1d1d1d;
    --muted: #68706a;
    --border: #d9dfd8;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--green-dark);
    text-decoration: none;
}

.topbar {
    background: var(--green);
    color: white;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 4px solid var(--yellow);
}

.topbar a {
    color: white;
    margin-left: .75rem;
}

.brand {
    display: block;
    font-size: .8rem;
    opacity: .9;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.narrow {
    max-width: 420px;
    margin: 3rem auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 800px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

h1, h2 {
    margin-top: 0;
}

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

input, select, textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
    margin-top: .35rem;
    font: inherit;
}

button {
    background: var(--green);
    color: white;
    border: 0;
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--green-dark);
}

.alert {
    border-radius: .5rem;
    padding: .75rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fff0ee;
    color: var(--danger);
    border: 1px solid #ffd0ca;
}

.pill {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    padding: .25rem .5rem;
    border-radius: 999px;
    margin-right: .5rem;
}

.list {
    display: grid;
    gap: .75rem;
}

.list-row {
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .75rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

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

th, td {
    border-bottom: 1px solid var(--border);
    padding: .6rem;
    text-align: left;
}

th {
    background: var(--yellow-soft);
}

.num {
    text-align: right;
}

.footer {
    color: var(--muted);
    font-size: .85rem;
    padding: 2rem 1rem;
    text-align: center;
}
