:root {
    --bg: #090c10;
    --surface: #10151b;
    --surface-2: #151b23;
    --surface-3: #1b232d;
    --border: #25303c;
    --border-soft: #1d2732;
    --text: #f4f7f9;
    --muted: #8c9aa8;
    --muted-2: #667584;
    --accent: #9eea4a;
    --accent-strong: #b8ff5a;
    --accent-soft: rgba(158, 234, 74, .11);
    --blue: #62b4ff;
    --warning: #f6c85f;
    --danger: #ff7373;
    --success: #7ce3a1;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --radius: 18px;
    --content-width: 1720px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #f2f5f0;
    --surface: #ffffff;
    --surface-2: #f7f9f5;
    --surface-3: #edf2e9;
    --border: #d7dfd3;
    --border-soft: #e6ebe3;
    --text: #182019;
    --muted: #617064;
    --muted-2: #879388;
    --accent: #65a920;
    --accent-strong: #4f8c14;
    --accent-soft: rgba(94, 158, 28, .1);
    --blue: #277cc5;
    --warning: #ad7910;
    --danger: #c94343;
    --success: #27854d;
    --shadow: 0 20px 60px rgba(30, 54, 24, .09);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 18px; border-right: 1px solid var(--border-soft); background: color-mix(in srgb, var(--surface) 91%, transparent); z-index: 50; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; text-transform: uppercase; letter-spacing: -.03em; }
.brand > span:last-child { display: flex; gap: 5px; align-items: baseline; }
.brand strong { font-size: 18px; letter-spacing: -.04em; }
.brand small { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-10deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 55%; align-self: end; }
.brand-mark i:nth-child(2) { height: 78%; align-self: end; }
.brand-mark i:nth-child(3) { height: 100%; }

.nav-list { display: flex; flex-direction: column; gap: 4px; margin-top: 42px; }
.nav-list > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-weight: 650; transition: .18s ease; }
.nav-list > a:hover { color: var(--text); background: var(--surface-2); }
.nav-list > a.active { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { display: grid; place-items: center; width: 20px; font-size: 17px; color: var(--accent); }
.nav-label { margin: 24px 12px 5px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; }
.theme-toggle { width: 100%; border: 0; background: transparent; padding: 10px 12px; display: flex; gap: 10px; align-items: center; color: var(--muted); cursor: pointer; border-radius: 10px; }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.account { margin-top: 10px; padding: 13px 8px 2px; border-top: 1px solid var(--border-soft); display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 9px; align-items: center; }
.account > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.account strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account small { color: var(--muted); font-size: 10px; }
.avatar, .user-cell i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-style: normal; font-weight: 800; color: #102000; background: linear-gradient(145deg, var(--accent-strong), var(--accent)); }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; }
.icon-button:hover { background: var(--surface-3); color: var(--text); }

.main-content { min-width: 0; padding: 24px clamp(18px, 2.4vw, 38px) 44px; }
.mobile-header { display: none; }
.page-heading { max-width: var(--content-width); margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.page-heading h1 { margin: 4px 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.055em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; max-width: 650px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.date-stamp, .range-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: 13px; color: var(--muted); font-weight: 650; }
.back-link:hover { color: var(--accent); }

.filter-card, .result-section, .table-card, .form-card, .security-strip { max-width: var(--content-width); margin-left: auto; margin-right: auto; border: 1px solid var(--border-soft); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-card { padding: 17px 18px; margin-bottom: 14px; }
.filter-heading, .section-heading, .table-card-heading, .card-title, .table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.filter-heading { margin-bottom: 13px; }
.filter-heading h2, .section-heading h2, .table-card-heading h2, .card-title h2 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.025em; }
.live-chip { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-grid { display: grid; grid-template-columns: 1.2fr 1.5fr 140px 140px 150px minmax(190px, .85fr); gap: 9px; align-items: end; }
.filter-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.filter-label, .field > span { font-size: 11px; color: var(--muted); font-weight: 750; }
.filter-label small { color: var(--muted-2); font-size: 9px; font-weight: 650; }
input, select, .multi-select summary { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; outline: none; }
input:focus, select:focus, .multi-select[open] summary { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--muted-2); }
.multi-select { position: relative; }
.multi-select summary { list-style: none; display: flex; align-items: center; cursor: pointer; padding-right: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary:after { content: "⌄"; position: absolute; right: 13px; color: var(--muted); }
.multi-menu { position: absolute; top: calc(100% + 7px); left: 0; min-width: 100%; width: max-content; max-width: min(460px, 80vw); max-height: 330px; overflow: auto; padding: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.multi-menu label { min-width: 260px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; }
.multi-menu label:hover { background: var(--surface-2); }
.multi-menu input, .check-row input, .toggle-row input, .checkbox-grid input { width: 16px; height: 16px; accent-color: var(--accent); }
.multi-menu small { color: var(--muted-2); font-size: 10px; }
.menu-group { position: sticky; top: -8px; z-index: 1; margin: 7px -2px 3px; padding: 7px 9px 4px; background: var(--surface); color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.button { min-height: 42px; padding: 0 16px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; font-weight: 780; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #142000; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.button.text { min-height: 32px; padding: 0; color: var(--accent); }
.button.full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.filter-actions-inline { min-width: 190px; display: grid; grid-template-columns: 1fr; gap: 5px; }
.filter-submit, .filter-refresh { min-height: 40px; width: 100%; }
.filter-refresh { min-height: 29px; padding: 4px 12px; font-size: 10px; }

.notice, .flash { max-width: var(--content-width); margin: 10px auto; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 11px; }
.notice.warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); color: var(--warning); }
.notice.subtle summary { cursor: pointer; }
.notice p { margin: 8px 0 0; }
.persistence-notice { display: flex; align-items: center; gap: 11px; border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.persistence-notice > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.persistence-notice strong { color: var(--text); }
.persistence-notice small { color: var(--muted); }
.persistence-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.flash { margin-top: -20px; margin-bottom: 20px; }
.flash.success { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); color: var(--success); }
.flash.error, .form-error { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }

.result-section { padding: 18px; margin-top: 14px; }
.section-heading { margin-bottom: 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; }
.kpi-card { min-width: 0; container-type: inline-size; padding: 13px 14px; border: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 12px; }
.kpi-card.accent { background: linear-gradient(145deg, var(--accent-soft), var(--surface-2) 65%); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.kpi-card > span { display: block; min-height: 27px; color: var(--muted); font-size: 10px; font-weight: 700; }
.kpi-card strong { display: block; font-size: clamp(16px, 10cqw, 23px); line-height: 1.18; letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-card small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 8px; }
.insight-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; margin-top: 10px; }
.chart-card { min-width: 0; min-height: 260px; padding: 15px; border: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 13px; }
.card-title { margin-bottom: 12px; }
.card-title h3 { margin: 3px 0 0; font-size: 15px; }
.card-title > span { color: var(--muted-2); font-size: 11px; }
.bar-chart { height: 190px; display: flex; gap: 8px; align-items: flex-end; overflow-x: auto; padding: 20px 3px 0; border-bottom: 1px solid var(--border); }
.bar-column { height: 100%; min-width: 36px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-column i { width: min(25px, 70%); min-height: 3px; display: block; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, var(--accent-strong), var(--accent)); box-shadow: 0 0 20px var(--accent-soft); }
.bar-column small, .bar-value { max-width: 65px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: 8px; }
.bar-value { color: var(--muted); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.rank-item span { color: var(--muted); }
.progress { height: 5px; margin-top: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.empty-chart { min-height: 170px; display: grid; place-items: center; color: var(--muted-2); text-align: center; }
.empty-state { max-width: var(--content-width); min-height: 260px; margin: 14px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-state h2 { margin: 20px 0 7px; color: var(--text); font-size: 20px; }
.empty-state p { margin-bottom: 0; }
.compact-state { min-height: 240px; }
.empty-orbit { width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; position: relative; }
.empty-orbit:before { content: ""; position: absolute; width: 72px; height: 28px; border: 1px solid var(--border); border-radius: 50%; transform: rotate(-24deg); }
.empty-orbit i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }

.table-card { overflow: hidden; }
.consolidated-breakdown { margin-top: 10px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 13px; background: var(--surface-2); }
.consolidated-breakdown table { min-width: 820px; table-layout: fixed; }
.consolidated-breakdown th, .consolidated-breakdown td { padding-left: 10px; padding-right: 10px; font-size: 10px; }
.consolidated-breakdown th:first-child { width: 18%; }
.consolidated-breakdown th:nth-child(2) { width: 22%; }
.consolidated-breakdown td:nth-child(2) { white-space: normal; }
.consolidated-breakdown td:nth-child(n+3), .consolidated-breakdown th:nth-child(n+3) { text-align: right; }
.table-card + .table-card { margin-top: 18px; }
.table-card-heading, .table-toolbar { padding: 19px 21px; border-bottom: 1px solid var(--border-soft); }
.table-card-heading h2 { font-size: 17px; }
.table-toolbar > span { color: var(--muted); font-size: 11px; }
.search-form { display: flex; gap: 8px; width: min(460px, 100%); }
.search-form input { flex: 1; }
.table-scroll { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th { padding: 12px 17px; text-align: left; color: var(--muted-2); background: var(--surface-2); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 17px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.summary-row td { background: color-mix(in srgb, var(--muted) 18%, var(--surface-2)); color: var(--text); font-weight: 750; border-top-color: var(--border); }
.summary-row:hover td { background: color-mix(in srgb, var(--muted) 22%, var(--surface-2)); }
.cell-primary, td strong { color: var(--text); font-weight: 750; }
.cell-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; color: var(--muted); }
.money { color: var(--text); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-3); }
.status.success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.status.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.status.neutral { color: var(--muted); }
.actions { text-align: right; }
.empty-cell { padding: 50px; text-align: center; color: var(--muted-2); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell i { width: 32px; height: 32px; }
.user-cell span { display: flex; flex-direction: column; }
.user-cell small { color: var(--muted-2); }
.pagination { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border-soft); }
.pagination > div { display: flex; gap: 7px; }

.security-strip { padding: 17px 20px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.security-strip > div { display: flex; align-items: center; gap: 12px; }
.security-strip span:not(.security-icon), .security-strip > div:last-child { display: flex; flex-direction: column; }
.security-strip small { color: var(--muted); }
.security-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.security-strip > div:last-child { align-items: flex-end; }
.security-strip > div:last-child strong { font-size: 22px; }

.form-layout { max-width: 1050px; margin: 0 auto; }
.form-card { padding: 23px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.form-error { padding: 10px 12px; margin: 15px 0; border: 1px solid; border-radius: 9px; }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.toggle-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 11px; cursor: pointer; }
.toggle-row input { margin-top: 2px; }
.toggle-row span { display: flex; flex-direction: column; }
.toggle-row small { color: var(--muted); }
.inline-search { margin: 17px 0 12px; }
.checkbox-grid { max-height: 420px; overflow: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-grid label { display: grid; grid-template-columns: 17px 1fr; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 10px; cursor: pointer; }
.checkbox-grid label:hover { border-color: var(--border); }
.checkbox-grid label > span { display: flex; flex-direction: column; }
.checkbox-grid small { color: var(--muted); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.empty-mini { margin: 8px; color: var(--muted-2); font-size: 11px; }

.guest-body { overflow: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); }
.login-story { padding: clamp(40px, 7vw, 96px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 78% 32%, var(--accent-soft), transparent 35%), linear-gradient(135deg, #0c1116, #111921); }
html[data-theme="light"] .login-story { background: radial-gradient(circle at 78% 32%, var(--accent-soft), transparent 35%), linear-gradient(135deg, #ecf3e7, #f7faf5); }
.login-story:after { content: ""; position: absolute; width: 520px; height: 520px; right: -270px; top: 18%; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 50%; box-shadow: 0 0 0 70px color-mix(in srgb, var(--accent) 3%, transparent), 0 0 0 150px color-mix(in srgb, var(--accent) 2%, transparent); }
.login-brand { padding: 0; position: relative; z-index: 1; }
.login-story h1 { margin: 14px 0 18px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.07em; position: relative; z-index: 1; }
.login-story h1 em { color: var(--accent); font-style: normal; }
.login-story p { max-width: 520px; color: var(--muted); font-size: 17px; }
.login-proof { display: flex; flex-wrap: wrap; gap: 13px 24px; color: var(--muted); font-size: 11px; position: relative; z-index: 1; }
.login-proof b { color: var(--accent); margin-right: 5px; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.auth-card { width: min(390px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card h2 { margin: 5px 0; font-size: 30px; letter-spacing: -.045em; }
.auth-card p { color: var(--muted); }
.check-row { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 11px; cursor: pointer; }
.theme-toggle.floating { position: absolute; top: 24px; right: 24px; width: 38px; }
.login-note { position: absolute; bottom: 25px; color: var(--muted-2); text-align: center; }
.menu-backdrop { display: none; }

@media (max-width: 1250px) {
    .filter-grid { grid-template-columns: 1fr 1.4fr repeat(2, 140px); }
    .filter-field:nth-last-of-type(1), .filter-actions-inline { grid-column: span 1; }
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 265px; transition: transform .22s ease; box-shadow: var(--shadow); }
    body.menu-open .sidebar { transform: translateX(0); }
    .menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); }
    body.menu-open .menu-backdrop { display: block; }
    .main-content { padding: 0 18px 50px; }
    .mobile-header { height: 64px; margin: 0 -18px 24px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
    .brand.compact { padding: 0; }
    .brand.compact .brand-mark { width: 23px; height: 23px; }
    .page-heading { align-items: flex-start; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .filter-field.wide, .filter-field.wider { grid-column: span 2; }
    .filter-actions-inline { width: 100%; }
    .insight-grid { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; }
}

@media (max-width: 620px) {
    .page-heading { flex-direction: column; align-items: stretch; }
    .page-heading h1 { font-size: 34px; }
    .filter-card, .result-section, .form-card { padding: 17px; border-radius: 14px; }
    .filter-heading { align-items: flex-start; }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-field.wide, .filter-field.wider { grid-column: span 1; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-card strong { font-size: 19px; }
    .section-heading, .table-card-heading, .table-toolbar, .security-strip { align-items: flex-start; flex-direction: column; }
    .form-grid, .toggle-grid, .checkbox-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
    .pagination { align-items: flex-start; gap: 10px; flex-direction: column; }
    .login-panel { padding: 26px; }
    .login-note { padding: 0 20px; }
}
