* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #222;
    font-family: Arial, sans-serif;
}

a {
    color: #0f6b57;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    padding: 14px 6%;
}

.brand {
    color: #222;
    font-size: 20px;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.container {
    margin: 0 auto;
    max-width: 1100px;
    padding: 28px 18px;
}

h1, h2, h3 {
    margin-top: 0;
}

.panel, .section {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 24px;
    padding: 22px;
}

.narrow {
    max-width: 520px;
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input, select, textarea {
    border: 1px solid #c9cdd2;
    border-radius: 4px;
    font: inherit;
    padding: 10px;
    width: 100%;
}

textarea {
    min-height: 90px;
}

button, .button {
    background: #0f6b57;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    padding: 10px 16px;
}

.filters {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 220px auto;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
}

.card img {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
}

.stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 24px;
}

.stats div {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px;
}

.stats strong {
    display: block;
    font-size: 30px;
}

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

td, th {
    border-bottom: 1px solid #e3e3e3;
    padding: 10px;
    text-align: left;
}

.messages p {
    background: #e9f6f0;
    border: 1px solid #b8dfce;
    border-radius: 4px;
    padding: 10px;
}

.error {
    color: #a40000;
}

.muted, small {
    color: #666;
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}
