:root {
    color-scheme: light;
    --ink: #17382f;
    --muted: #61736d;
    --green: #176b50;
    --green-dark: #0f503c;
    --cream: #f6f3ea;
    --gold: #dcae4c;
    --line: #dbe3df;
    --danger: #a62d2d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, sans-serif; }
a { color: var(--green); }
.topbar { background: var(--ink); color: white; }
.topbar-inner, main { width: min(1180px, calc(100% - 32px)); margin: auto; }
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: white; text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.topbar nav { display: flex; align-items: center; gap: 14px; }
.topbar nav a { color: white; }
main { padding: 28px 0 56px; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 4px 18px rgba(23,56,47,.06); }
.login { max-width: 440px; margin: 9vh auto; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h1, h2 { line-height: 1.15; margin-top: 0; }
.muted { color: var(--muted); }
.flash, .error { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.flash { background: #e1f4e9; color: #15593f; }
.error { background: #f9e2e2; color: #802020; }
.button, button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 10px 15px; background: var(--green); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--green-dark); }
.button.secondary { background: #edf3f0; color: var(--ink); }
.button.danger, button.danger { background: var(--danger); }
.link-button { padding: 0; background: transparent; color: white; text-decoration: underline; font-weight: 400; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1px solid #b8c7c1; border-radius: 8px; padding: 10px 11px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.full { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.actions form { margin: 0; }
.actions button { padding: 7px 10px; font-size: .9rem; }
.status { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #e1f4e9; color: #15593f; font-size: .84rem; font-weight: 700; }
.status.off { background: #ecefed; color: #5d6965; }
.preview { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-item { width: 140px; }
.gallery-item img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.section { margin-top: 24px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 720px) {
    .grid, .grid-3 { grid-template-columns: 1fr; }
    .heading { align-items: flex-start; flex-direction: column; }
    .topbar-inner { align-items: flex-start; padding: 14px 0; flex-direction: column; }
}

