* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Inter, Arial, sans-serif; }
body {
    margin: 0; min-height: 100vh; display: grid; place-items: center;
    padding: 24px; background: #f2f6f4; color: #173b32;
}
.auth-card, .dashboard-card {
    width: min(100%, 460px); background: #fff; border: 1px solid #dce8e2;
    border-radius: 18px; padding: 34px; box-shadow: 0 18px 50px rgba(20, 58, 46, .08);
}
.dashboard-card { width: min(100%, 720px); }
.brand-mark {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 14px; background: #e1f2eb; color: #087653; font-weight: 800;
}
.eyebrow { color: #087653; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 8px 0; font-size: 28px; }
.muted, .small-note { color: #64766e; line-height: 1.55; }
.small-note { margin-top: 20px; font-size: 12px; }
label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 700; }
input, select {
    width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #ccd9d2;
    border-radius: 9px; background: #fff; color: #173b32; font: inherit;
}
input:focus, select:focus { outline: 3px solid #d6eee4; border-color: #16835f; }
.primary-button {
    width: 100%; margin-top: 22px; min-height: 48px; border: 0; border-radius: 9px;
    background: #087653; color: #fff; font-weight: 800; cursor: pointer;
}
.primary-button:hover { background: #065e42; }
.alert { padding: 12px 14px; margin: 16px 0; border-radius: 9px; font-size: 13px; }
.alert.error { background: #fff0ef; color: #9c3028; }
.alert.success { background: #e9f7ef; color: #17653e; }
a { color: #087653; font-weight: 700; }


.wide-card, .form-card {
    width: min(100%, 1120px); margin: 24px auto; padding: 30px;
    background: #fff; border: 1px solid #dce8e2; border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20,58,46,.07);
}
.form-card { width: min(100%, 760px); }
.page-header, .section-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.page-header h1 { margin: 4px 0; }
.admin-nav { display:flex; gap:8px; border-bottom:1px solid #e5ece8; margin:24px 0; padding-bottom:12px; }
.admin-nav a { text-decoration:none; padding:9px 12px; border-radius:8px; }
.admin-nav a.active { background:#e8f5ee; }
.button-link { display:inline-block; padding:11px 15px; border-radius:9px; background:#087653; color:white; text-decoration:none; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.stat-card { padding:18px; border:1px solid #e1eae5; border-radius:12px; background:#fbfdfc; }
.stat-card span { display:block; color:#64766e; font-size:13px; }
.stat-card strong { display:block; margin-top:9px; font-size:28px; }
.section-block { margin-top:30px; }
.section-block h2 { font-size:19px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:700px; }
th,td { padding:13px 12px; text-align:left; border-bottom:1px solid #edf1ee; font-size:13px; }
th { color:#60736a; background:#f8faf9; }
small { color:#75857e; }
.status { display:inline-block; padding:5px 9px; border-radius:99px; font-size:11px; font-weight:700; background:#edf1ef; }
.status.active { color:#17653e; background:#e5f5eb; }
.status.inactive { color:#6a6252; background:#f4f0e8; }
.status.suspended { color:#9c3028; background:#fff0ef; }
.filter-form { display:grid; grid-template-columns:1fr 190px auto; gap:10px; margin:18px 0; }
.primary-button.compact { width:auto; margin:0; padding:0 18px; }
.pagination { display:flex; justify-content:space-between; gap:12px; padding-top:18px; color:#64766e; font-size:13px; }
.pagination a { margin-left:12px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.form-grid .full { grid-column:1/-1; }
textarea { width:100%; padding:11px 12px; border:1px solid #ccd9d2; border-radius:9px; font:inherit; resize:vertical; }
@media(max-width:700px) {
    .wide-card,.form-card { margin:0; padding:20px; border-radius:0; min-height:100vh; }
    .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .filter-form { grid-template-columns:1fr; }
    .page-header { align-items:flex-start; flex-direction:column; }
    .form-grid { grid-template-columns:1fr; }
    .form-grid .full { grid-column:auto; }
}
