:root {
    --ink: #07111f;
    --navy: #0c1a2f;
    --soft: #f3f6fa;
    --line: #dce3ec;
    --muted: #68748a;
    --gold: #d9a52b;
    --crimson: #a92935;
    --green: #1f8a57;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.auth-screen {
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 20px;
    padding: clamp(14px, 2vw, 24px);
    overflow: hidden;
    background: radial-gradient(circle at 70% 20%, rgba(217, 165, 43, .22), transparent 24rem), linear-gradient(135deg, #07111f, #10233e 52%, #091523);
}

.auth-card, .auth-panel, .panel, .stat {
    border: 1px solid rgba(220, 227, 236, .9);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(7, 17, 31, .14);
}

.auth-card, .auth-panel {
    align-self: center;
    padding: clamp(22px, 3vw, 30px);
    color: white;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

.auth-card h1 { margin: clamp(16px, 3vh, 24px) 0 6px; font-size: clamp(32px, 4.5vw, 50px); line-height: 1; }
.auth-card p { margin: 0 0 clamp(16px, 3vh, 22px); color: #c7d2e4; }
.auth-panel { min-height: min(500px, calc(100svh - 48px)); display: grid; place-items: center; background: linear-gradient(40deg, rgba(169, 41, 53, .22), rgba(217, 165, 43, .16)); }
.auth-panel div { max-width: 360px; padding: 28px; border-radius: 8px; background: rgba(7, 17, 31, .62); }
.auth-panel span, .auth-panel strong { display: block; }
.auth-panel strong { margin-top: 10px; font-size: clamp(22px, 3vw, 26px); line-height: 1.15; }

.logo-pair { display: flex; align-items: center; }
.logo-pair img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: white; border: 1px solid rgba(255,255,255,.65); }
.logo-pair img + img { margin-left: -13px; }
.logo-pair.small img { width: 42px; height: 42px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 292px 1fr; background: linear-gradient(135deg, #eef3f9 0%, #f8fafc 54%, #f2f5f9 100%); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; color: white; background: linear-gradient(180deg, var(--navy), #07111f); box-shadow: 18px 0 50px rgba(7, 17, 31, .22); overflow: hidden; }
.brand { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; }
.brand strong, .brand span { display: block; }
.brand span, .role-box label { color: #aebbd0; font-size: 12px; }
.user-chip { display: grid; gap: 4px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.06); }
.user-chip strong, .user-chip span { display: block; }
.user-chip span { color: #aebbd0; font-size: 12px; }
.nav { display: grid; gap: 5px; }
.nav button { min-height: 36px; padding: 0 11px; text-align: left; color: #c7d2e4; background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 14px; }
.nav button:hover { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.nav button.active { color: white; background: linear-gradient(135deg, #c0202e, #a92935); border-color: rgba(169,41,53,.6); box-shadow: 0 4px 14px rgba(169,41,53,.35); }
.role-box { margin-top: auto; display: grid; gap: 7px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.06); }
.role-box select { color: white; background: rgba(7,17,31,.62); border-color: rgba(255,255,255,.16); }
.role-box select:disabled { opacity: 1; }
.role-box a { color: #f5cf65; font-size: 13px; font-weight: 800; text-decoration: none; }

.workspace { min-width: 0; padding: 28px; }
.notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgba(31, 138, 87, .24); border-radius: 8px; color: #145538; background: #f4fbf7; font-weight: 700; }
.notice.warning { color: #7a4e06; background: #fff8e7; border-color: rgba(217, 165, 43, .35); }
.notice a { color: var(--crimson); }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
h1 { margin: 0 0 5px; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
h2 { margin: 0 0 8px; font-size: 20px; }
p { color: var(--muted); line-height: 1.5; }
.view { display: none; }
.view.active { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; }
.btn-gold { color: #07111f; background: linear-gradient(135deg, #f5cf65, var(--gold)); box-shadow: 0 14px 28px rgba(217, 165, 43, .28); }
.btn-light { color: var(--navy); background: white; border-color: var(--line); }
.btn-outline { color: #dfe9f8; background: transparent; border-color: rgba(255,255,255,.2); }
.btn:disabled { cursor: not-allowed; opacity: .45; }
a.btn { text-decoration: none; }

.stats-grid, .dashboard-grid, .content-grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.dashboard-grid, .content-grid { grid-template-columns: 2fr 1fr; }
.panel, .stat { background: rgba(255,255,255,.9); }
.panel { min-width: 0; padding: 18px; margin-bottom: 18px; }
.stat { min-height: 130px; padding: 18px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 108px; height: 108px; border-radius: 22px; background: rgba(16, 35, 62, .08); transform: rotate(18deg); }
.stat.gold::after { background: rgba(217,165,43,.18); }
.stat.crimson::after { background: rgba(169,41,53,.14); }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 10px; font-size: 36px; }
.stat--sm { min-height: 90px; padding: 12px 14px; }
.stat--sm::after { width: 76px; height: 76px; right: -18px; bottom: -22px; }
.stat--sm span { font-size: 11px; }
.stat--sm strong { margin-top: 6px; font-size: 26px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head.compact { align-items: center; }

.chart-bars { height: 260px; display: flex; align-items: end; gap: 14px; padding: 26px; border-radius: 8px; background: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(104,116,138,.13) 50px); perspective: 700px; }
.chart-bars span { flex: 1; min-width: 22px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #e7bf56, #a92935); box-shadow: 0 14px 26px rgba(169,41,53,.2); transform: rotateX(6deg); }
.report-meter { height: 18px; margin: 12px 0 18px; overflow: hidden; border-radius: 999px; background: #fde8eb; }
.report-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--crimson)); }

.district-row, .access-list div, .district-cards article, .user-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: white; margin-bottom: 10px; }
.user-row { align-items: center; }
.user-row strong, .user-row span { display: block; }
.user-row span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.district-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.district-cards article { display: grid; justify-content: start; }
.district-cards span, .district-row span { color: var(--muted); font-size: 13px; }

.form-stack { display: grid; gap: 12px; }
.form-stack label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #4b5870; }
.auth-card .form-stack label { color: #dfe9f8; }
input, select, .search { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: white; }
small { color: #8defbd; }
.error-text { color: #ffb5bd; }
.muted-note { color: var(--muted); }
.auth-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: #b9c7da;
    font-size: 13px;
}
.auth-reset-link {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(245,207,101,.42);
    border-radius: 8px;
    color: #07111f;
    background: linear-gradient(180deg, #f8d979, #d9a52b);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 3px 0 #8f6813, 0 12px 24px rgba(217,165,43,.18);
    font-weight: 900;
}
.auth-reset-link:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 1px 0 #8f6813, 0 8px 16px rgba(217,165,43,.14);
}
.reset-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(3, 10, 22, .68);
    backdrop-filter: blur(10px);
}
.reset-overlay.open { display: grid; }
.reset-dialog {
    width: min(520px, 100%);
    max-height: min(700px, calc(100svh - 36px));
    overflow: auto;
    padding: 18px;
    color: #dfe9f8;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: #0b2942;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 0 #03101c, 0 28px 70px rgba(0,0,0,.42);
}
.reset-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.reset-head span {
    display: block;
    margin-bottom: 4px;
    color: #f5cf65;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.reset-head h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}
.reset-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    color: #dfe9f8;
    background: rgba(255,255,255,.08);
    font-weight: 900;
}
.reset-message {
    display: block;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(245,207,101,.28);
    border-radius: 8px;
    color: #ffe9a6;
    background: rgba(245,207,101,.09);
}
.reset-message.success {
    color: #8defbd;
    border-color: rgba(141,239,189,.25);
    background: rgba(31,138,87,.12);
}
.reset-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(3, 16, 28, .48);
}
.reset-tab {
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    color: #b9c7da;
    background: transparent;
    font-weight: 900;
}
.reset-tab.active {
    color: #07111f;
    background: linear-gradient(180deg, #f8d979, #d9a52b);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 3px 0 #8f6813;
}
.reset-pane { display: none; }
.reset-pane.active { display: grid; gap: 12px; }
.reset-pane p {
    margin: 0;
    color: #b9c7da;
    font-size: 13px;
}
.reset-dialog .form-stack label { color: #dfe9f8; }
.code-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.code-paste {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(245,207,101,.42);
    border-radius: 8px;
    color: #07111f;
    background: linear-gradient(180deg, #f8d979, #d9a52b);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 3px 0 #8f6813;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.code-paste:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 1px 0 #8f6813;
}
.code-hint {
    color: #9fb0c7;
    font-size: 11px;
    font-weight: 700;
}
.reset-login-link {
    width: 100%;
    min-height: 38px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: #f5cf65;
    background: rgba(255,255,255,.06);
    font-weight: 900;
}
.reset-login-link:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.district-result-filter {
    min-width: min(280px, 100%);
}
.district-result-filter label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.district-result-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle { position: absolute; right: 10px; background: none; border: none; cursor: pointer; color: #94a3b8; padding: 4px; display: flex; align-items: center; transition: color .15s; }
.pw-toggle:hover { color: #334155; }

.table-wrap { overflow-x: auto; }
.member-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.member-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; text-align: left; }
.member-table td, .member-table th { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.member-table td { font-size: 14px; }
.member-table td strong, .member-table td span { display: block; }
.member-table td span { color: var(--muted); font-size: 12px; margin-top: 3px; }
mark { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
mark.ok { color: var(--green); background: #e3f5ec; }
mark.pending { color: var(--crimson); background: #fde8eb; }
/* Exam result badges */
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.badge-pass { background: #d1fae5; color: #065f46; }
.badge-fail { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef9c3; color: #92400e; }
.badge-approved { background: #dbeafe; color: #1e40af; }
.badge-published { background: #d1fae5; color: #065f46; }

.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.inline-actions .btn { min-height: 30px; padding: 0 9px; font-size: 12px; }

/* ── Dashboard Pro ───────────────────────────────────────────────────── */

.dash-welcome { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding: 15px 20px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(7,17,31,.06); }
.dash-greeting { font-size: 16px; font-weight: 700; color: var(--ink); }
.dash-greeting strong { color: var(--crimson); }
.dash-date { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* District bar chart */
.dist-chart { display: grid; gap: 8px; }
.dist-chart-row { display: grid; grid-template-columns: 130px 1fr 28px; align-items: center; gap: 10px; }
.dist-chart-label { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-chart-track { height: 7px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.dist-chart-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c0202e, #8b1a24); transition: width .55s ease; }
.dist-chart-count { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }

/* Right column stacks naturally */
.dash-right { display: grid; gap: 18px; align-content: start; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; transition: background .15s, border-color .15s, box-shadow .15s; line-height: 1.3; }
.quick-action:hover { background: white; border-color: #c0c9d6; box-shadow: 0 3px 10px rgba(7,17,31,.1); }
.quick-action.qa-urgent { background: #fff1f2; border-color: #fecaca; color: var(--crimson); }
.quick-action.qa-urgent:hover { background: #fee2e2; }
.qa-icon { font-size: 1.3rem; }

/* CH mini summary */
.ch-mini { display: grid; gap: 0; }
.ch-mini-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ch-mini-row:last-of-type { border-bottom: none; }
.ch-mini-row strong { color: var(--ink); font-size: 14px; }
.ch-mini-alert { color: var(--crimson) !important; }
.ch-mini-total { font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; border-bottom: none; }
.ch-mini-total span, .ch-mini-total strong { color: var(--ink) !important; font-weight: 700; }

/* ── Users Pro ────────────────────────────────────────────────────────── */

.users-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.users-tabs { display:flex; gap:4px; flex-wrap:wrap; }
.users-tab { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:99px; background:var(--soft); font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; transition:all .15s; }
.users-tab:hover { background:white; border-color:#c0c9d6; color:var(--ink); }
.users-tab.active { background:linear-gradient(135deg,#c0202e,#a92935); color:white; border-color:rgba(169,41,53,.5); box-shadow:0 3px 10px rgba(169,41,53,.25); }
.users-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:17px; padding:0 5px; border-radius:99px; background:rgba(0,0,0,.1); font-size:11px; font-weight:700; }
.users-tab.active .users-tab-count { background:rgba(255,255,255,.25); }
.users-search { width:220px; min-height:36px; padding:0 14px; border:1px solid var(--line); border-radius:99px; font-size:13px; background:white; outline:none; transition:border-color .15s, box-shadow .15s; }
.users-search:focus { border-color:#a92935; box-shadow:0 0 0 3px rgba(169,41,53,.1); }

.users-table { width:100%; min-width:640px; border-collapse:collapse; }
.users-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; text-align:left; padding:10px 12px; border-bottom:2px solid var(--line); font-weight:700; }
.users-table td { padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.users-table tbody tr { transition:background .1s; }
.users-table tbody tr:hover { background:#f8fafb; }
.users-table tbody tr.usr-hidden { display:none !important; }

.user-avatar { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; font-size:13px; font-weight:800; flex-shrink:0; }
.ua-director   { background:#fde8eb; color:#a92935; }
.ua-executive  { background:#dbeafe; color:#1e40af; }
.ua-education  { background:#ede9fe; color:#5b21b6; }
.ua-district   { background:#fef3c7; color:#92400e; }
.ua-default    { background:#f1f5f9; color:var(--muted); }

.user-name-cell { display:flex; align-items:center; gap:10px; }
.user-name-info strong { display:block; font-size:13px; color:var(--ink); }
.user-name-info span  { display:block; font-size:12px; color:var(--muted); margin-top:1px; }

.role-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:99px; font-size:11px; font-weight:700; white-space:nowrap; }
.role-director    { background:#fde8eb; color:#a92935; }
.role-chairperson { background:#dbeafe; color:#1e40af; }
.role-secretary   { background:#d1fae5; color:#065f46; }
.role-education   { background:#ede9fe; color:#5b21b6; }
.role-district    { background:#fef3c7; color:#92400e; }

.user-status-dot { display:inline-flex; align-items:center; gap:5px; font-size:12px; }
.user-status-dot::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:currentColor; }
.user-status-dot.active   { color:#16a34a; }
.user-status-dot.inactive { color:#94a3b8; }
.user-pwd-warn { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:#92400e; background:#fef3c7; padding:2px 7px; border-radius:99px; margin-top:4px; }

#drawerAddUser { z-index:1002; }
#overlayAddUser { z-index:1001; }

/* ── Districts Pro ───────────────────────────────────────────────────── */

.dist-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.dist-search { width:220px; min-height:36px; padding:0 14px; border:1px solid var(--line); border-radius:99px; font-size:13px; background:white; outline:none; transition:border-color .15s, box-shadow .15s; }
.dist-search:focus { border-color:#a92935; box-shadow:0 0 0 3px rgba(169,41,53,.1); }
.dist-table { width:100%; min-width:620px; border-collapse:collapse; }
.dist-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; text-align:left; padding:10px 12px; border-bottom:2px solid var(--line); font-weight:700; }
.dist-table td { padding:12px 12px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:middle; }
.dist-table tbody tr { transition:background .1s; }
.dist-table tbody tr:hover { background:#f8fafb; }
.dist-table tbody tr.dist-hidden { display:none !important; }
.dist-code-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:99px; background:#f1f5f9; color:var(--muted); font-size:11px; font-weight:700; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; }
.dist-code-badge.missing { background:#fee2e2; color:#991b1b; }
.dist-mem-count { font-size:13px; font-weight:700; color:var(--ink); }
.dist-mem-bar-track { height:5px; background:#eef1f5; border-radius:99px; overflow:hidden; margin-top:5px; min-width:60px; }
.dist-mem-bar { height:100%; border-radius:inherit; background:linear-gradient(90deg,#c0202e,#8b1a24); transition:width .5s ease; }
.dist-person { font-size:13px; color:var(--ink); }
.dist-person.unassigned { color:var(--muted); font-style:italic; }
#drawerAddDistrict { z-index:1002; }
#overlayAddDistrict { z-index:1001; }

/* ── Members Pro ─────────────────────────────────────────────────────── */

.mem-stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mem-stat-chip { display: flex; flex-direction: column; gap: 3px; padding: 11px 18px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(7,17,31,.05); min-width: 90px; }
.mem-stat-chip span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mem-stat-chip strong { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mem-stat-chip.gold strong { color: #92610a; }
.mem-stat-chip.crimson strong { color: var(--crimson); }
.mem-stat-chip.ok strong { color: #065f46; }
.mem-stat-chip.warn strong { color: #92400e; }

.mem-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mem-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mem-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; }
.mem-tab:hover { background: white; border-color: #c0c9d6; color: var(--ink); }
.mem-tab.active { background: linear-gradient(135deg,#c0202e,#a92935); color: white; border-color: rgba(169,41,53,.5); box-shadow: 0 3px 10px rgba(169,41,53,.25); }
.mem-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 17px; padding: 0 5px; border-radius: 99px; background: rgba(0,0,0,.1); font-size: 11px; font-weight: 700; }
.mem-tab.active .mem-tab-count { background: rgba(255,255,255,.25); }
.mem-toolbar-right { display: flex; align-items: center; gap: 8px; }
.mem-search { width: 220px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; background: white; outline: none; transition: border-color .15s, box-shadow .15s; }
.mem-search:focus { border-color: #a92935; box-shadow: 0 0 0 3px rgba(169,41,53,.1); }

.track-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.track-mg   { background: #fef3c7; color: #92400e; }
.track-syl  { background: #ede9fe; color: #5b21b6; }
.track-both { background: #dbeafe; color: #1e40af; }

#drawerAddMember { z-index: 1002; }
#overlayAddMember { z-index: 1001; }

/* ── Church Heritage Pro ──────────────────────────────────────────────── */

/* Workflow banner */
.ch-workflow { display: flex; margin-bottom: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(7,17,31,.06); }
.ch-step { flex: 1; padding: 13px 16px; background: white; position: relative; border-right: 1px solid var(--line); }
.ch-step:last-child { border-right: none; }
.ch-step::after { content: "›"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--line); z-index: 2; pointer-events: none; }
.ch-step:last-child::after { display: none; }
.ch-step-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.ch-step-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #e9ecf0; color: var(--muted); font-size: 11px; font-weight: 800; flex-shrink: 0; }
.ch-step-role { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ch-step-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.ch-step-count { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.ch-step--done { background: #f0fdf4; }
.ch-step--done .ch-step-num { background: #6ee7b7; color: #065f46; }
.ch-step--done .ch-step-label { color: #065f46; }
.ch-step--active { background: #fffbeb; }
.ch-step--active .ch-step-num { background: #fcd34d; color: #78350f; }
.ch-step--active .ch-step-label { color: #78350f; }

/* 5-col stats */
.ch-stats { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.stat-mini-bar { height: 3px; border-radius: 99px; background: rgba(0,0,0,.1); margin-top: 8px; overflow: hidden; }
.stat-mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s ease; }

/* Toolbar */
.ch-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ch-tabs { display: flex; background: var(--soft); border-radius: 8px; padding: 3px; gap: 2px; flex-shrink: 0; }
.ch-tab { padding: .28rem .75rem; border-radius: 6px; border: none; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.ch-tab:hover { color: var(--ink); }
.ch-tab.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.13); }
.ch-tab sup { font-size: 10px; margin-left: 2px; opacity: .6; }
.ch-search { position: relative; }
.ch-search input { min-height: 34px; padding: 0 10px 0 30px; font-size: 13px; width: 210px; }
.ch-search::before { content: "⌕"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.ch-toolbar-right { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; }

/* Score bar in table */
.score-cell { display: flex; align-items: center; gap: 8px; min-width: 90px; }
.score-bar { flex: 0 0 46px; height: 5px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: inherit; }
.bar-pass { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-fail { background: linear-gradient(90deg, #f87171, #ef4444); }

/* Button variants */
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn-approve { color: #065f46; background: #d1fae5; border-color: #6ee7b7; }
.btn-approve:hover { background: #a7f3d0; }
.btn-return { color: #78350f; background: #fef9c3; border-color: #fcd34d; }
.btn-return:hover { background: #fef08a; }
.action-btns { display: flex; gap: 4px; justify-content: flex-end; }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .01em; }

/* Table row states */
.member-table tbody tr { transition: background .1s; }
.member-table tbody tr:hover { background: #f8fafb; }
.member-table tbody tr.row-published td:not(:last-child) { opacity: .78; }
.member-table tbody tr.row-hidden { display: none !important; }

/* Slide-in drawers */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(7,17,31,.42); z-index: 200; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; width: 430px; max-width: 96vw; height: 100vh; background: white; z-index: 201; overflow-y: auto; transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1); box-shadow: -20px 0 60px rgba(7,17,31,.18); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: white; z-index: 1; flex-shrink: 0; }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-close { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; padding: 5px 7px; border-radius: 6px; }
.drawer-close:hover { background: var(--soft); color: var(--ink); }
.drawer-body { padding: 20px 22px; flex: 1; overflow-y: auto; }
.drawer-footer { padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfc; flex-shrink: 0; }

/* Import drop zone */
.drop-zone { border: 2px dashed var(--line); border-radius: 10px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; background: var(--soft); transition: border-color .2s, background .2s; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--gold); background: #fffdf5; }
.drop-zone-icon { font-size: 2rem; display: block; margin-bottom: .35rem; }
.drop-zone p { margin: 0; font-size: 13px; line-height: 1.5; }

/* Publish modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(7,17,31,.54); z-index: 300; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: 14px; padding: 28px; max-width: 440px; width: 92vw; box-shadow: 0 32px 80px rgba(7,17,31,.28); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes noticePulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.notice-pulse { animation: noticePulse 1.2s ease-in-out infinite; }
.modal-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.modal-box h3 { margin: 0 0 8px; font-size: 18px; }
.modal-box > p { margin: 0 0 22px; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Empty state */
.ch-empty { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.ch-empty-icon { font-size: 2.8rem; display: block; margin-bottom: .5rem; }
.ch-empty strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.ch-empty p { margin: 0 0 1rem; font-size: 14px; }

@media (max-width: 1050px) {
    .app-shell, .auth-screen, .dashboard-grid, .content-grid, .stats-grid, .district-cards { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .role-box { position: static; margin-top: 18px; }
    .auth-screen { overflow: auto; max-height: none; }
    .auth-panel { display: none; }
}

@media (max-width: 720px) {
    .workspace, .auth-screen { padding: 18px; }
    .topbar, .panel-head { align-items: stretch; flex-direction: column; }
    .member-table, .member-table tbody, .member-table tr, .member-table td { display: block; min-width: 0; width: 100%; }
    .member-table thead { display: none; }
    .member-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .member-table td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; text-align: right; }
    .member-table td::before { content: attr(data-label); flex: 0 0 86px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: left; text-transform: uppercase; }
}

/* ── MEZC Tactile UI Refresh ─────────────────────────────────────────── */

:root {
    --ink: #0a1728;
    --navy: #071a2d;
    --navy-2: #0b2942;
    --soft: #eef2f6;
    --line: #d5dce5;
    --muted: #637086;
    --gold: #d9aa2b;
    --gold-dark: #a97812;
    --teal: #087681;
    --teal-dark: #055761;
    --crimson: #ad2035;
    --green: #178457;
    --surface: #ffffff;
    --surface-raised: 0 1px 0 rgba(255,255,255,.96) inset, 0 3px 0 #d6dce4, 0 10px 24px rgba(7,26,45,.08);
    --control-raised: 0 1px 0 rgba(255,255,255,.48) inset, 0 3px 0 var(--teal-dark), 0 8px 16px rgba(5,87,97,.18);
    font-family: "Segoe UI Variable", "Aptos", Inter, ui-sans-serif, system-ui, sans-serif;
}

body {
    background: #eef2f6;
}

h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

h2,
h3,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

.app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
    background: #eef2f6;
}

.sidebar {
    padding: 14px 11px;
    background: var(--navy);
    box-shadow: 8px 0 24px rgba(7,26,45,.16);
    border-right: 1px solid rgba(255,255,255,.08);
}

.brand {
    gap: 9px;
    margin: -2px -1px 8px;
    padding: 3px 3px 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar .logo-pair.small img {
    width: 36px;
    height: 36px;
}

.brand strong {
    font-size: 14px;
    line-height: 1.15;
}

.brand span,
.role-box label {
    font-size: 10.5px;
}

.logo-pair img {
    box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 7px 16px rgba(0,0,0,.2);
}

.user-chip,
.role-box {
    padding: 8px 10px;
    border-color: rgba(255,255,255,.14);
    background: #0b2942;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 0 #04111e, 0 9px 18px rgba(0,0,0,.16);
}

.user-chip {
    margin-bottom: 9px;
}

.user-chip strong {
    font-size: 13px;
}

.user-chip span {
    font-size: 10.5px;
}

.nav {
    gap: 4px;
}

.nav button {
    min-height: 33px;
    padding: 0 10px;
    border-radius: 7px;
    color: #c6d3e1;
    font-size: 12.5px;
    font-weight: 650;
    transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav button:hover {
    color: #fff;
    background: #0b2942;
    border-color: rgba(255,255,255,.11);
    transform: translateX(2px);
}

.nav button.active {
    color: #fff;
    background: var(--teal);
    border-color: #16909a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 3px 0 #044c55, 0 8px 16px rgba(0,0,0,.2);
    transform: translateY(-1px);
}

.role-box {
    gap: 5px;
}

.role-box select {
    min-height: 35px;
    font-size: 12px;
}

.role-box a {
    font-size: 11.5px;
}

.workspace {
    padding: 24px 28px 32px;
}

.topbar {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8dee6;
}

.topbar p {
    margin: 0;
}

.auth-screen {
    background: var(--navy);
}

.auth-card,
.auth-panel {
    border-color: rgba(255,255,255,.16);
    background: #0b2942;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 0 #03101c, 0 22px 48px rgba(0,0,0,.28);
}

.auth-panel {
    background: #0d334c;
}

.auth-panel div {
    background: rgba(7,26,45,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.3), 0 14px 28px rgba(0,0,0,.2);
}

.panel,
.stat,
.dash-welcome,
.mem-stat-chip {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--surface-raised);
}

.panel {
    padding: 18px;
    margin-bottom: 20px;
}

.stat {
    min-height: 112px;
    padding: 16px;
    overflow: visible;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat:hover,
.mem-stat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 #fff inset, 0 4px 0 #cbd3dd, 0 14px 28px rgba(7,26,45,.11);
}

.stat::after {
    display: none;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat strong {
    margin-top: 8px;
    font-size: 32px;
    color: var(--ink);
}

.stat.gold {
    border-top: 3px solid var(--gold);
}

.stat.crimson {
    border-top: 3px solid var(--crimson);
}

.stat--sm {
    min-height: 84px;
}

.stat--sm strong {
    font-size: 25px;
}

.dash-welcome {
    padding: 14px 18px;
}

.dash-greeting strong {
    color: var(--teal);
}

.btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.16), 0 1px 0 rgba(0,0,0,.16);
}

.btn-gold {
    color: #1d1908;
    background: var(--gold);
    border-color: #e6be4b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 3px 0 var(--gold-dark), 0 8px 16px rgba(169,120,18,.18);
}

.btn-gold:hover:not(:disabled) {
    background: #e2b437;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 0 var(--gold-dark), 0 11px 20px rgba(169,120,18,.22);
}

.btn-light {
    color: var(--navy);
    background: #fff;
    border-color: var(--line);
    box-shadow: inset 0 1px 0 #fff, 0 3px 0 #c9d1da, 0 7px 14px rgba(7,26,45,.08);
}

.btn-light:hover:not(:disabled) {
    border-color: #bcc7d2;
    background: #f9fbfd;
    box-shadow: inset 0 1px 0 #fff, 0 4px 0 #c3ccd6, 0 10px 18px rgba(7,26,45,.1);
}

.btn-outline {
    color: #e9f2fa;
    background: #0b2942;
    border-color: rgba(255,255,255,.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #03101c;
}

.btn-approve {
    color: #fff;
    background: var(--teal);
    border-color: #16909a;
    box-shadow: var(--control-raised);
}

.btn-approve:hover {
    background: #0a828d;
}

.btn-return {
    color: #523b07;
    background: #f3cf69;
    border-color: #dfb83e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 0 #b58b20;
}

.btn--sm {
    min-height: 33px;
    padding: 0 12px;
    border-radius: 7px;
}

input,
select,
textarea,
.search,
.users-search,
.dist-search,
.mem-search {
    border-color: #cbd4df;
    border-radius: 7px;
    background: #fbfcfe;
    color: var(--ink);
    box-shadow: inset 0 2px 4px rgba(7,26,45,.08), 0 1px 0 #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus,
select:focus,
textarea:focus,
.users-search:focus,
.dist-search:focus,
.mem-search:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(7,26,45,.05), 0 0 0 3px rgba(8,118,129,.14);
}

.quick-actions {
    gap: 10px;
}

.quick-action {
    min-height: 72px;
    padding: 11px 10px;
    border-radius: 8px;
    background: #fff;
    border-color: var(--line);
    box-shadow: inset 0 1px 0 #fff, 0 3px 0 #c9d1da, 0 7px 14px rgba(7,26,45,.07);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: #b9c5d1;
    box-shadow: inset 0 1px 0 #fff, 0 4px 0 #c2ccd6, 0 11px 20px rgba(7,26,45,.1);
}

.quick-action:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 3px rgba(7,26,45,.1), 0 1px 0 #c9d1da;
}

.quick-action:nth-child(1) {
    color: #4b3906;
    background: #f0c64e;
    border-color: #ddb12d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 0 #ae8015, 0 8px 16px rgba(174,128,21,.16);
}

.quick-action.qa-urgent {
    color: #fff;
    background: var(--crimson);
    border-color: #c13b4d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 0 #791323, 0 8px 16px rgba(121,19,35,.18);
}

.quick-action.qa-urgent:hover {
    background: #b9283e;
}

.mem-stat-chip {
    border-radius: 8px;
}

.users-tabs,
.mem-tabs {
    gap: 7px;
}

.users-tab,
.mem-tab {
    min-height: 34px;
    border-radius: 7px;
    background: #fff;
    box-shadow: inset 0 1px 0 #fff, 0 2px 0 #cbd3dc;
}

.users-tab:hover,
.mem-tab:hover {
    border-color: #b8c4d0;
    transform: translateY(-1px);
}

.users-tab.active,
.mem-tab.active {
    color: #fff;
    background: var(--teal);
    border-color: #16909a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 0 var(--teal-dark), 0 7px 14px rgba(5,87,97,.16);
}

.ch-tabs {
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e9eef3;
    box-shadow: inset 0 2px 4px rgba(7,26,45,.08);
}

.ch-tab {
    min-height: 30px;
    border-radius: 6px;
}

.ch-tab.active {
    color: #fff;
    background: var(--teal);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 var(--teal-dark), 0 5px 10px rgba(5,87,97,.14);
}

.ch-workflow {
    border-radius: 8px;
    box-shadow: var(--surface-raised);
}

.ch-step {
    background: #fff;
}

.ch-step--done {
    background: #eefaf5;
}

.ch-step--active {
    background: #fff8df;
}

.district-row,
.access-list div,
.district-cards article,
.user-row {
    border-radius: 7px;
    box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d7dde5, 0 6px 12px rgba(7,26,45,.05);
}

.member-table,
.users-table,
.dist-table {
    border: 1px solid var(--line);
    border-radius: 7px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

.member-table th,
.users-table th,
.dist-table th {
    background: #e9eef3;
    color: #516076;
    border-bottom: 1px solid #cbd4df;
}

.member-table tbody tr:hover,
.users-table tbody tr:hover,
.dist-table tbody tr:hover {
    background: #f1f8f8;
}

.badge,
.role-badge,
.track-badge,
.dist-code-badge,
mark {
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 1px 0 rgba(7,26,45,.12);
}

.drawer {
    border-left: 1px solid #cbd4df;
    box-shadow: -5px 0 0 rgba(7,26,45,.08), -24px 0 54px rgba(7,26,45,.2);
}

.drawer-head {
    background: #fff;
    box-shadow: 0 3px 10px rgba(7,26,45,.06);
}

.drawer-footer {
    background: #eef2f6;
    box-shadow: 0 -3px 10px rgba(7,26,45,.05);
}

.drop-zone {
    border-radius: 8px;
    background: #eef4f6;
    box-shadow: inset 0 2px 5px rgba(7,26,45,.07);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--teal);
    background: #e9f7f7;
}

.modal-box {
    border: 1px solid #cbd4df;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 #fff, 0 5px 0 #bcc6d1, 0 30px 70px rgba(7,26,45,.28);
}

.notice {
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(7,26,45,.1), 0 7px 14px rgba(7,26,45,.06);
}

.chart-bars {
    background-color: #f6f8fa;
}

.dist-chart-bar {
    background: var(--teal);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 var(--teal-dark);
}

.report-meter span {
    background: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 29px;
    }

    .workspace {
        padding: 16px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat {
        min-height: 92px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .users-tab,
    .mem-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}
