:root {
    --accent: #2c6e49;
    --border: #d9d9d9;
    --bg: #f7f7f5;
}

* { box-sizing: border-box; }

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

header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 { font-size: 1.2rem; margin: 0; }
header a { color: var(--accent); text-decoration: none; }
nav a { margin-left: 1.5rem; font-weight: 600; }
nav .whoami { margin-left: 1.5rem; color: #666; }

main {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

label { display: block; margin-bottom: 0.3rem; font-weight: 600; }

input[type="text"] {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    background: white;
    color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    margin: 0.3rem 0.5rem 1rem 0;
}

button.primary {
    background: var(--accent);
    color: white;
}

button.remove-row {
    border-color: #b33;
    color: #b33;
}

.flashes {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    list-style: none;
}

.ok { color: var(--accent); font-weight: 600; }
.warn { color: #b33; font-weight: 600; }
.hint { color: #777; font-size: 0.9rem; margin-top: -0.75rem; }

.filter-form { margin-bottom: 1rem; }
.filter-form input, .filter-form select { width: auto; display: inline-block; }
.summary { color: #555; font-weight: 600; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.inline-form input[type="text"] { width: auto; flex: 1; }
.inline-form button { margin: 0; }
