/* Super Admin console + sign-in. Self-contained: loads no dashboard stylesheet,
   so nothing here can leak into (or be overridden by) the role dashboards. */

:root {
    --sa-navy: #0b1f3f;
    --sa-navy-2: #12305c;
    --sa-navy-3: #1b3f75;
    --sa-accent: #2a78d6;
    --sa-accent-ink: #1c5cab;
    --sa-cyan: #00b8e6;
    --sa-bg: #f3f5f9;
    --sa-surface: #ffffff;
    --sa-line: #e3e8f0;
    --sa-line-2: #eef1f6;
    --sa-ink: #0f1b2d;
    --sa-ink-2: #44526a;
    --sa-ink-3: #6b7890;
    --sa-good: #0c8a0c;
    --sa-good-bg: #e7f6e7;
    --sa-warn: #9a6400;
    --sa-warn-bg: #fff4dc;
    --sa-bad: #c02f2f;
    --sa-bad-bg: #fdecec;
    --sa-info: #1c5cab;
    --sa-info-bg: #e8f1fc;
    --sa-radius: 10px;
    --sa-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .05);
    --sa-sidebar-w: 248px;
    --sa-font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sa-mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.sa-body, body.sa-auth-body {
    font-family: var(--sa-font);
    color: var(--sa-ink);
    background: var(--sa-bg);
    font-size: 14px;
    line-height: 1.45;
}
code, .sa-mono { font-family: var(--sa-mono); font-size: .86em; }
[hidden] { display: none !important; }
a { color: var(--sa-accent-ink); }

/* ------------------------------------------------------------------ Auth -- */
body.sa-auth-body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, #1b3f75 0, #0b1f3f 55%, #071428 100%);
}
.sa-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.sa-auth-card {
    width: 100%; max-width: 440px; background: var(--sa-surface); border-radius: 14px;
    padding: 28px 28px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border-top: 4px solid var(--sa-cyan);
}
.sa-auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sa-auth-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--sa-line); }
.sa-auth-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sa-accent-ink); }
.sa-auth-title { margin: 2px 0 0; font-size: 20px; line-height: 1.25; }
.sa-auth-lede { color: var(--sa-ink-2); margin: 0 0 16px; }
.sa-auth-form { display: grid; gap: 12px; }
.sa-auth-rules { margin: 0; padding-left: 18px; color: var(--sa-ink-3); font-size: 13px; }
.sa-auth-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sa-line-2); font-size: 13px; color: var(--sa-ink-3); }
.sa-auth-foot a { text-decoration: none; }

/* ------------------------------------------------------------- Controls -- */
.sa-field { display: grid; gap: 5px; }
.sa-field > span { font-weight: 600; font-size: 13px; color: var(--sa-ink-2); }
.sa-field input, .sa-field select, .sa-field textarea, .sa-input, .sa-select {
    font: inherit; color: var(--sa-ink); background: #fff;
    border: 1px solid #cdd5e1; border-radius: 8px; padding: 9px 11px; min-height: 38px;
    width: 100%;
}
.sa-field textarea { min-height: 96px; resize: vertical; }
.sa-input:focus, .sa-select:focus, .sa-field input:focus, .sa-field select:focus, .sa-field textarea:focus {
    outline: 2px solid rgba(42, 120, 214, .35); border-color: var(--sa-accent);
}
.sa-field input[readonly] { background: var(--sa-bg); color: var(--sa-ink-2); }
.sa-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sa-ink-2); white-space: nowrap; }

.sa-btn {
    font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border-radius: 8px; padding: 8px 14px; min-height: 36px; border: 1px solid transparent; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.sa-btn:disabled { opacity: .55; cursor: not-allowed; }
.sa-btn--primary { background: var(--sa-accent); color: #fff; }
.sa-btn--primary:hover:not(:disabled) { background: var(--sa-accent-ink); }
.sa-btn--danger { background: var(--sa-bad); color: #fff; }
.sa-btn--danger:hover:not(:disabled) { background: #9f2222; }
.sa-btn--ghost { background: #fff; color: var(--sa-ink-2); border-color: #cdd5e1; }
.sa-btn--ghost:hover:not(:disabled) { border-color: var(--sa-accent); color: var(--sa-accent-ink); }
.sa-btn--sm { padding: 5px 10px; min-height: 30px; font-size: 13px; }
.sa-btn--block { width: 100%; }
.sa-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--sa-line);
    background: #fff; color: var(--sa-ink-2); cursor: pointer; text-decoration: none;
}
.sa-icon-btn:hover { color: var(--sa-accent-ink); border-color: var(--sa-accent); }
.sa-inline-form { margin: 0; display: inline-flex; }

.sa-alert { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.sa-alert--error { background: var(--sa-bad-bg); color: var(--sa-bad); }
.sa-alert--success { background: var(--sa-good-bg); color: var(--sa-good); }
.sa-alert--info, .sa-alert--warning { background: var(--sa-warn-bg); color: var(--sa-warn); }

/* --------------------------------------------------------------- Layout -- */
.sa-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sa-sidebar-w); background: var(--sa-navy);
    color: #c9d6ea; display: flex; flex-direction: column; z-index: 40;
}
.sa-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sa-sidebar-brand img { width: 38px; height: 38px; border-radius: 8px; background: #fff; object-fit: contain; }
.sa-sidebar-brand strong { display: block; color: #fff; font-size: 14px; }
.sa-sidebar-brand span { font-size: 12px; color: var(--sa-cyan); font-weight: 600; }
.sa-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.sa-nav-group { margin: 14px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7f93b3; }
.sa-nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px;
    color: #c9d6ea; text-decoration: none; font-weight: 500; margin-bottom: 2px;
}
.sa-nav a i { width: 18px; text-align: center; color: #8fa6c8; }
.sa-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sa-nav a.is-active { background: var(--sa-navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--sa-cyan); }
.sa-nav a.is-active i { color: var(--sa-cyan); }
.sa-nav-badge { margin-left: auto; background: var(--sa-bad); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.sa-sidebar-foot { padding: 12px 10px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sa-switch {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none;
    background: rgba(0, 184, 230, .12); color: #e6f7ff; font-weight: 600;
}
.sa-switch:hover { background: rgba(0, 184, 230, .22); }

.sa-main { margin-left: var(--sa-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.sa-header {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
    padding: 12px 24px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--sa-line);
    backdrop-filter: blur(6px);
}
.sa-header-title { min-width: 0; flex: 1 1 auto; }
.sa-header-title h1 { margin: 0; font-size: 19px; }
.sa-header-sub { display: block; font-size: 12.5px; color: var(--sa-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.sa-who { display: grid; text-align: right; line-height: 1.2; padding: 0 4px; white-space: nowrap; }
.sa-who-name { font-weight: 600; font-size: 13px; }
.sa-who-meta { font-size: 11.5px; color: var(--sa-ink-3); }
.sa-menu-btn { display: none; }
.sa-dot-count { position: absolute; top: -5px; right: -5px; background: var(--sa-bad); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 1px 5px; }

.sa-content { padding: 20px 24px 40px; flex: 1; min-width: 0; }
.sa-section { display: none; }
.sa-section.is-active { display: block; }
.sa-section > * + * { margin-top: 16px; }

/* ---------------------------------------------------------------- Cards -- */
.sa-card { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 16px 18px; box-shadow: var(--sa-shadow); min-width: 0; }
.sa-card--flush { padding: 0; overflow: hidden; }
.sa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sa-card-head--pad { padding: 14px 18px 0; }
.sa-card-head h2 { margin: 0; font-size: 15px; }
.sa-card h3 { margin: 16px 0 8px; font-size: 13.5px; color: var(--sa-ink-2); }
.sa-grid { display: grid; gap: 16px; }
.sa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-muted { color: var(--sa-ink-3); font-size: 12.5px; }
.sa-note { color: var(--sa-ink-3); font-size: 12.5px; margin: 10px 2px 0; }
.sa-link { font-size: 13px; text-decoration: none; font-weight: 600; }
.sa-empty { color: var(--sa-ink-3); padding: 18px; text-align: center; font-size: 13px; }
.sa-banner { border-radius: var(--sa-radius); padding: 12px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.sa-banner--warn { background: var(--sa-warn-bg); color: var(--sa-warn); border: 1px solid #f4d48c; }
.sa-banner--bad { background: var(--sa-bad-bg); color: var(--sa-bad); border: 1px solid #f3b8b8; }

/* KPI tiles */
.sa-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sa-kpi { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 14px 16px; box-shadow: var(--sa-shadow); }
.sa-kpi-label { font-size: 12px; color: var(--sa-ink-3); font-weight: 600; display: flex; gap: 7px; align-items: center; }
.sa-kpi-value { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sa-kpi-sub { font-size: 12px; color: var(--sa-ink-3); margin-top: 2px; }
.sa-kpis--compact .sa-kpi-value { font-size: 21px; }
.sa-kpi--link { cursor: pointer; }
.sa-kpi--link:hover { border-color: var(--sa-accent); }

.sa-chart { position: relative; height: 240px; }

/* Horizontal bar list (role / status breakdowns) */
.sa-bars { display: grid; gap: 9px; }
.sa-bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.sa-bar-label { color: var(--sa-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-bar-track { height: 10px; background: var(--sa-line-2); border-radius: 4px; overflow: hidden; }
.sa-bar-fill { height: 100%; background: var(--sa-accent); border-radius: 0 4px 4px 0; }
.sa-bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sa-bar-sub { font-weight: 400; color: var(--sa-ink-3); font-size: 11.5px; }

/* Feed */
/* minmax(0, ...) tracks: a grid's implicit 'auto' track grows to its widest line, and a
   long issue in the feed pushed the page past the edge of a 320px phone. */
.sa-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.sa-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sa-line-2); font-size: 13px; overflow-wrap: anywhere; }
.sa-feed li:last-child { border-bottom: 0; }
.sa-feed-time { color: var(--sa-ink-3); font-size: 12px; white-space: nowrap; }

/* -------------------------------------------------------------- Toolbars -- */
.sa-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sa-toolbar .sa-input { width: 260px; max-width: 100%; }
.sa-toolbar .sa-select { width: auto; }
.sa-spacer { flex: 1; }
.sa-seg { display: inline-flex; border: 1px solid #cdd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.sa-seg button { font: inherit; font-size: 13px; border: 0; background: transparent; padding: 7px 12px; cursor: pointer; color: var(--sa-ink-2); border-right: 1px solid var(--sa-line); }
.sa-seg button:last-child { border-right: 0; }
.sa-seg button.is-active { background: var(--sa-accent); color: #fff; }
.sa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sa-line); overflow-x: auto; }
.sa-tabs button { font: inherit; font-weight: 600; font-size: 13.5px; background: none; border: 0; padding: 9px 14px; color: var(--sa-ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.sa-tabs button.is-active { color: var(--sa-accent-ink); border-bottom-color: var(--sa-accent); }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-chips:empty { display: none; }
.sa-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--sa-line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--sa-ink-2); }
.sa-chip b { color: var(--sa-ink); }

/* ---------------------------------------------------------------- Tables -- */
.sa-table-wrap { overflow-x: auto; }
.sa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sa-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--sa-ink-3); font-weight: 700; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--sa-line); white-space: nowrap; position: sticky; top: 0; }
.sa-table td { padding: 9px 12px; border-bottom: 1px solid var(--sa-line-2); vertical-align: top; }
.sa-table tbody tr:hover { background: #f8fbff; }
.sa-table tr.is-clickable { cursor: pointer; }
.sa-table td.num, .sa-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sa-table .sa-cell-strong { font-weight: 600; }
.sa-table .sa-cell-sub { color: var(--sa-ink-3); font-size: 12px; }
.sa-table--log td { font-size: 12.5px; }
.sa-table .sa-wrap { max-width: 520px; overflow-wrap: anywhere; }
.sa-table .sa-actions { white-space: nowrap; text-align: right; }
.sa-table .sa-empty-row td { text-align: center; color: var(--sa-ink-3); padding: 24px; }
.sa-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--sa-ink-3); border-top: 1px solid var(--sa-line-2); }
.sa-pager:empty { display: none; }
.sa-details { margin: 6px 0 0; padding: 8px 10px; background: #0f1b2d; color: #d7e2f3; border-radius: 6px; font-family: var(--sa-mono); font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }

/* Badges */
.sa-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--sa-line-2); color: var(--sa-ink-2); }
.sa-badge--good { background: var(--sa-good-bg); color: var(--sa-good); }
.sa-badge--warn { background: var(--sa-warn-bg); color: var(--sa-warn); }
.sa-badge--bad { background: var(--sa-bad-bg); color: var(--sa-bad); }
.sa-badge--info { background: var(--sa-info-bg); color: var(--sa-info); }
.sa-badge--super { background: #0b1f3f; color: #7fe3ff; }
.sa-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #b8c2d2; }
.sa-dot--on { background: #0ca30c; box-shadow: 0 0 0 3px rgba(12, 163, 12, .15); }

/* Posture checks */
.sa-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.sa-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--sa-line-2); }
.sa-checks .sa-check-icon { font-size: 16px; padding-top: 1px; }
.sa-checks .is-pass .sa-check-icon { color: var(--sa-good); }
.sa-checks .is-warn .sa-check-icon { color: #c98500; }
.sa-checks .is-fail .sa-check-icon { color: var(--sa-bad); }
.sa-checks .is-info .sa-check-icon { color: var(--sa-info); }
.sa-checks strong { display: block; font-size: 13.5px; }
.sa-checks span { color: var(--sa-ink-2); font-size: 12.5px; }

/* Key/value lists */
.sa-kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.sa-kv dt { color: var(--sa-ink-3); }
.sa-kv dd { margin: 0; overflow-wrap: anywhere; }

.sa-form { display: grid; gap: 12px; }
.sa-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sa-toggle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sa-line-2); }
.sa-toggle-row:last-child { border-bottom: 0; }
.sa-toggle-row p { margin: 2px 0 0; color: var(--sa-ink-3); font-size: 12.5px; }
.sa-switch-input { position: relative; width: 42px; height: 24px; flex: none; }
.sa-switch-input input { opacity: 0; width: 0; height: 0; position: absolute; }
.sa-switch-input span { position: absolute; inset: 0; background: #cdd5e1; border-radius: 999px; cursor: pointer; transition: background .15s; }
.sa-switch-input span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sa-switch-input input:checked + span { background: var(--sa-accent); }
.sa-switch-input input:checked + span::after { transform: translateX(18px); }
.sa-switch-input input:focus-visible + span { outline: 2px solid rgba(42, 120, 214, .5); outline-offset: 2px; }

/* Messages iframe */
.sa-section--frame.is-active { display: flex; }
.sa-frame-wrap { position: relative; flex: 1; height: calc(100vh - 120px); min-height: 520px; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); overflow: hidden; }
.sa-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.sa-frame-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--sa-ink-3); }

/* Drawer */
.sa-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.sa-drawer.is-open { visibility: visible; }
.sa-drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 31, 63, .35); opacity: 0; transition: opacity .2s; }
.sa-drawer.is-open .sa-drawer-backdrop { opacity: 1; }
.sa-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--sa-bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
.sa-drawer.is-open .sa-drawer-panel { transform: none; }
.sa-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--sa-line); }
.sa-drawer-head h2 { margin: 0; font-size: 16px; }
.sa-drawer-body { overflow-y: auto; padding: 16px 18px 30px; display: grid; gap: 14px; align-content: start; }
.sa-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sa-timeline li { border-left: 2px solid var(--sa-line); padding: 0 0 0 12px; font-size: 13px; }
.sa-timeline .sa-tl-meta { color: var(--sa-ink-3); font-size: 12px; }

/* Modal */
.sa-modal { position: fixed; inset: 0; z-index: 80; background: rgba(11, 31, 63, .45); display: none; align-items: center; justify-content: center; padding: 16px; }
.sa-modal.is-open { display: flex; }
.sa-modal-box { background: #fff; border-radius: 12px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.sa-modal-box h2 { margin: 0 0 12px; font-size: 17px; }
.sa-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sa-secret { display: flex; gap: 8px; align-items: center; background: var(--sa-bg); border: 1px dashed #b6c2d4; border-radius: 8px; padding: 10px 12px; font-family: var(--sa-mono); font-size: 15px; word-break: break-all; }

/* Toasts */
.sa-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.sa-toast { background: var(--sa-navy); color: #fff; padding: 11px 14px; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.sa-toast--error { background: var(--sa-bad); }
.sa-toast--success { background: #146c2e; }

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 1199px) {
    .sa-checks { grid-template-columns: 1fr; }
    .sa-header .sa-btn--ghost.sa-hide-sm { padding: 8px 10px; }
}
@media (max-width: 1280px) and (min-width: 1024px) {
    .sa-who-meta { display: none; }
}
@media (max-width: 1023px) {
    .sa-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.25); }
    body.sa-nav-open .sa-sidebar { transform: none; }
    .sa-main { margin-left: 0; }
    .sa-menu-btn { display: inline-flex; }
    .sa-grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .sa-header { padding: 10px 16px; gap: 10px; }
    .sa-content { padding: 16px 16px 32px; }
    .sa-hide-sm, .sa-who { display: none; }
    .sa-header-sub { display: none; }
    .sa-toolbar .sa-input { width: 100%; }
    .sa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sa-kpi { padding: 12px; }
    .sa-kpi-value { font-size: 22px; }
    .sa-bar-row { grid-template-columns: 110px 1fr 56px; }
    .sa-kv { grid-template-columns: 1fr; gap: 2px; }
    .sa-kv dd { margin-bottom: 8px; }
    .sa-auth-card { padding: 22px 18px 16px; }
}
