:root {
    --green: #1b5e20;
    --green-dark: #123f16;
    --bg: #f4f6f4;
    --border: #d7ddd6;
    --text: #222;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 24px 16px 60px;
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
}

.wrap.wide { max-width: 1100px; }
.wrap.narrow { max-width: 380px; }
.wrap.center { text-align: center; }

h1 {
    margin-top: 0;
    color: var(--green-dark);
    font-size: 1.5rem;
}

.hero-photo {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lede { color: #555; line-height: 1.5; }

.hint {
    color: #777;
    font-size: 0.82rem;
    margin: 4px 0 0;
}

label {
    display: block;
    font-weight: 600;
    margin: 16px 0 6px;
    font-size: 0.92rem;
}

input, select, button {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.row > div { min-width: 0; }

button {
    margin-top: 24px;
    background: var(--green);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
}
button:hover { background: var(--green-dark); }

.button {
    display: inline-block;
    background: var(--green);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
}
.button:hover { background: var(--green-dark); }

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}
.alert-error { background: #fdecea; color: #92160b; border: 1px solid #f3c3bd; }

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-bar div { font-size: 0.88rem; color: #555; }
.admin-bar a { color: var(--green-dark); }

.stats { color: #555; font-size: 0.9rem; }

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filters select, .filters input { width: auto; flex: 1; min-width: 160px; }
.filters button { width: auto; margin-top: 0; padding: 10px 18px; }
.filters a { align-self: center; font-size: 0.9rem; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th { background: #eef3ee; color: var(--green-dark); }
small { color: #777; }

@media (max-width: 480px) {
    .row { grid-template-columns: 1fr; }
}
