*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, sans-serif;
    background: #1c2023;
    color: #dde3e8;
    min-height: 100vh;
}

/* ── Header ── */
header {
    background: #252c31;
    border-bottom: 1px solid #3a4a54;
    padding: 0.75rem 1.5rem;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.site-title { font-size: 1.3rem; font-weight: 700; color: #a8d8ea; }
nav a { color: #8fa8b8; text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
nav a:hover { color: #dde3e8; }

/* ── Main ── */
main { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; }

/* ── Banners ── */
.update-banner {
    background: #2c3840; border-left: 4px solid #a8d8ea;
    padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem;
    font-size: 0.9rem;
}
.offseason-banner {
    background: #2c3840; border-left: 4px solid #5a7080;
    padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem;
    font-size: 0.9rem; color: #8fa8b8;
}

/* ── Status grid ── */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.group h3 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: #8fa8b8; margin-bottom: 0.4rem; padding-bottom: 0.25rem;
    border-bottom: 1px solid #3a4a54;
}
.group h3.subgroup { margin-top: 0.75rem; }

.item {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0.3rem; border-radius: 4px;
    cursor: pointer; font-size: 0.82rem; line-height: 1.3;
}
.item input[type=checkbox] { accent-color: #a8d8ea; flex-shrink: 0; }
.item span:first-of-type { flex: 1; }

/* Status colours */
.item.open   { background: rgba(72,187,120,0.30); }
.item.closed { background: rgba(245,101,101,0.28); }
.item.standby{ background: rgba(236,201,75,0.28); }
.item.unknown{ background: rgba(143,168,184,0.18); }

.badge {
    font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.35rem;
    border-radius: 3px; flex-shrink: 0;
}
.badge.open    { background: #1e4d35; color: #9ae6b4; }
.badge.closed  { background: #4a1f1f; color: #feb2b2; }
.badge.standby { background: #4a3510; color: #fefcbf; }
.badge.unknown { background: #2c3840; color: #5a7080; }

/* ── Status actions ── */
.status-actions {
    margin-top: 1rem; display: flex; gap: 1rem; align-items: center;
}
.last-scrape { font-size: 0.8rem; color: #5a7080; margin-left: auto; }

/* ── Cards ── */
.card {
    background: #252c31; border: 1px solid #3a4a54;
    border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem;
}
.card.center { max-width: 380px; margin: 3rem auto; }
.card h3 { font-size: 1rem; margin-bottom: 1rem; color: #a8d8ea; }

/* ── Forms ── */
label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; color: #8fa8b8; }
label input:not([type=checkbox]), label select { display: block; width: 100%; margin-top: 0.25rem; }
input[type=text], input[type=email], input[type=password], input[type=number] {
    background: #4a6275; border: 1px solid #5a7585; color: #ffffff;
    padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.9rem;
    width: 100%;
}
input:focus { outline: 2px solid #a8d8ea; }

button {
    background: #3a6a80; color: #fff; border: none;
    padding: 0.5rem 1.25rem; border-radius: 4px; cursor: pointer;
    font-size: 0.9rem; font-weight: 600;
}
button:hover { background: #2d5468; }
.btn-on  { background: #1e4d35; }
.btn-on:hover  { background: #163828; }
.btn-off { background: #3a4a54; }
.btn-off:hover { background: #2c3840; }
.btn-danger { background: #4a1f1f; }
.btn-danger:hover { background: #3a1515; }

/* ── Settings wrap ── */
.settings-wrap { max-width: 700px; }
.settings-wrap h2 { margin-bottom: 1rem; }
section.card h3 { border-bottom: 1px solid #3a4a54; padding-bottom: 0.5rem; }

/* ── Checkbox list (settings) ── */
.checkbox-list { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.checkbox-list label { color: #dde3e8; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.checkbox-list strong { color: #8fa8b8; font-size: 0.75rem; text-transform: uppercase; margin-top: 0.5rem; }

/* ── Admin table ── */
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #3a4a54; }
th { color: #8fa8b8; font-weight: 600; }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── Messages ── */
.error   { color: #fc8181; margin-bottom: 0.75rem; font-size: 0.9rem; }
.success { color: #68d391; margin-bottom: 0.75rem; font-size: 0.9rem; }

a { color: #a8d8ea; text-decoration: none; }
a:hover { text-decoration: underline; }
