/* KnoxDefender console. Tokens follow docs/DESIGN.md */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-2: #edf1f5;
  --ink: #17212f;
  --ink-2: #526175;
  --ink-3: #8593a5;
  --accent: #15803d;
  --accent-2: #166534;
  --accent-soft: #e8f5ec;
  --accent-ring: rgba(21, 128, 61, .28);
  --ok: #15803d;
  --ok-bg: #e8f5ec;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #dc2626;
  --bad-ink: #b91c1c;
  --bad-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #e0ecff;
  --neutral-bg: #f1f5f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);
  --font: Inter, "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.85rem; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 1.12rem; letter-spacing: -.01em; margin: 0 0 .9rem; }
h3 { font-size: .95rem; margin: 1.25rem 0 .5rem; }
p { margin: .25rem 0 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85em; }
.muted { color: var(--ink-2); }
.small { font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.tone-ok { color: var(--ok); }
.tone-warn { color: var(--warn); }
.is-bad { color: var(--bad) !important; font-weight: 600; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1.1rem .9rem 1rem; z-index: 40; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; padding: .1rem .4rem 1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 1rem .7rem .35rem; border-top: 1px solid var(--line-2); margin-top: .4rem; }
.nav-section:first-child { border-top: 0; margin-top: 0; padding-top: .25rem; }
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .58rem .7rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .93rem; }
.nav-link .icon { color: var(--ink-2); }
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.nav-link.active .icon { color: var(--accent); }
.soon-pill { margin-left: auto; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--neutral-bg); padding: .08rem .4rem; border-radius: 999px; }
.sidebar-foot { border-top: 1px solid var(--line-2); padding-top: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.user-card { display: flex; align-items: center; gap: .65rem; padding: .45rem .5rem; }
.user-card strong { display: block; font-size: .9rem; }
.user-card small { color: var(--ink-2); font-size: .8rem; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 30; }
.crumbs { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); font-size: .92rem; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--ink-2); }
.crumbs strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.global-search { margin-left: auto; position: relative; display: flex; align-items: center; gap: .5rem; width: min(420px, 38vw); border: 1px solid var(--line); border-radius: 8px; padding: 0 .75rem; height: 40px; color: var(--ink-3); background: var(--surface); }
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.global-search input { border: 0; outline: 0; padding: 0; height: 100%; flex: 1; background: transparent; font-size: .9rem; min-width: 0; }
.global-search input:focus { outline: 0; box-shadow: none; }
.search-pop { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; z-index: 50; }
.search-pop a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .65rem; border-radius: 6px; color: var(--ink); }
.search-pop a:hover, .search-pop a:focus { background: var(--bg); text-decoration: none; }
.search-pop .muted { padding: .55rem .65rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.nav-toggle { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50; }
.menu-head { padding: .5rem .65rem .6rem; border-bottom: 1px solid var(--line-2); margin-bottom: .3rem; }
.menu-head strong, .menu-head small { display: block; }
.menu-head small { color: var(--ink-2); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .5rem .65rem; border-radius: 6px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); text-decoration: none; }

.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: .85rem; flex: none; }
.avatar-sq { border-radius: 8px; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.tone-1 { background: #e2e8f0; color: #334155; }
.tone-2 { background: #dcfce7; color: #166534; }
.tone-3 { background: #e0ecff; color: #1d4ed8; }
.tone-4 { background: #fdf0d5; color: #92400e; }
.tone-5 { background: #ede9fe; color: #5b21b6; }
.tone-6 { background: #ccfbf1; color: #0f766e; }

.content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; outline: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.page-head .muted { font-size: 1.02rem; }
.page-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.foot-note { text-align: right; margin: 0; }

/* ---------- Components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 1.25rem 1.4rem; }
.panel.flush { padding: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.panel-head.padded { padding: 1.1rem 1.4rem .9rem; border-bottom: 1px solid var(--line-2); align-items: center; }
.panel-head.padded h2 { margin: 0; }
.panel-tools { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.kpi { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.25rem; color: var(--ink); position: relative; }
a.kpi:hover { text-decoration: none; border-color: #cfd8e3; }
.kpi-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kpi-icon .icon { width: 24px; height: 24px; }
.kpi-ok { background: var(--accent-soft); color: var(--accent); }
.kpi-bad { background: var(--bad-bg); color: var(--bad); }
.kpi-muted { background: var(--neutral-bg); color: var(--ink-3); }
.kpi-body { min-width: 0; flex: 1; }
.kpi-label { color: var(--ink); font-size: .93rem; }
.kpi-value-row { display: flex; align-items: center; gap: .75rem; }
.kpi-value { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi.is-soon .kpi-value { color: var(--ink-3); }
.kpi-sub { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .85rem; margin-top: .35rem; }
.kpi-chev { position: absolute; right: 1rem; bottom: 1.2rem; color: var(--ink-2); width: 18px; height: 18px; }
.spark { width: 64px; height: 24px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--accent-2); border-color: #bfe3cb; }
.badge-warn { background: var(--warn-bg); color: #92400e; border-color: #fcd98a; }
.badge-bad { background: var(--bad-bg); color: var(--bad-ink); border-color: #fecaca; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: #c7dafe; }
.badge-neutral { background: var(--neutral-bg); color: var(--ink-2); border-color: var(--line); }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .8rem 1.4rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-weight: 500; color: var(--ink-2); font-size: .86rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.row-link { cursor: pointer; }
.row-title { color: var(--ink); font-weight: 600; }
.org-cell { display: flex; align-items: center; gap: .8rem; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.chev { width: 40px; color: var(--ink-2); }
td.actions { text-align: right; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: .6rem 1.05rem; font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn-sm { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .65rem; font: inherit; font-size: .82rem; font-weight: 500; color: var(--ink); cursor: pointer; margin-left: .25rem; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 600; font-size: .9rem; }

.select-wrap { position: relative; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding-left: .75rem; color: var(--ink-2); font-weight: 400; flex-direction: row; }
.select-wrap select { border: 0; padding: .55rem 2rem .55rem .1rem; background: transparent; font-size: .93rem; color: var(--ink); width: auto; cursor: pointer; }
.select-wrap select:focus { outline: 0; box-shadow: none; }
.select-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search-inline { display: flex; flex-direction: row; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 8px; padding: 0 .7rem; height: 38px; color: var(--ink-3); font-weight: 400; }
.search-inline.wide { flex: 1; max-width: 520px; }
.search-inline input { border: 0; padding: 0; height: 100%; font-size: .9rem; }
.search-inline input:focus { outline: 0; box-shadow: none; }
.search-inline:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.alert { display: flex; gap: .55rem; align-items: flex-start; border-radius: 8px; padding: .8rem 1rem; font-size: .92rem; border: 1px solid transparent; }
.alert.error { background: var(--bad-bg); color: var(--bad-ink); border-color: #fecaca; }
.alert.warn { background: var(--warn-bg); color: #92400e; border-color: #fcd98a; }
.alert.success { background: var(--ok-bg); color: var(--accent-2); border-color: #bfe3cb; }
.demo-banner { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--info-bg); color: var(--info); border: 1px solid #c7dafe; border-radius: 8px; padding: .6rem 1rem; font-size: .9rem; }

.empty { text-align: center; padding: 2.25rem 1.5rem; }
.empty-icon { width: 36px; height: 36px; color: var(--ink-3); }
.empty-title { font-weight: 600; margin-top: .5rem; }
.empty .muted { max-width: 420px; margin: .25rem auto 1rem; font-size: .9rem; }

/* Chart + ring */
.chart { margin: .5rem 0 0; }
.chart svg { width: 100%; height: 240px; display: block; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--ink-2); font-size: 12px; font-family: var(--font); }
.chart .area { fill: rgba(21, 128, 61, .12); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .pt { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-ok { background: var(--accent); }
.ring { position: relative; width: 168px; margin: .25rem auto 1rem; }
.ring svg { width: 168px; height: 168px; display: block; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 14; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: .8rem; color: var(--ink-2); max-width: 90px; line-height: 1.3; }
.check-list { list-style: none; margin: 0 0 .75rem; padding: 0; border-top: 1px solid var(--line-2); }
.check-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; font-size: .92rem; }
.check-list li span { flex: 1; }

/* Priority queue */
.prio-list { list-style: none; margin: 0; padding: .3rem .7rem .7rem; }
.prio-list li + li { border-top: 1px solid var(--line-2); }
.prio-item { display: flex; align-items: flex-start; gap: .85rem; width: 100%; text-align: left; background: none; border: 0; padding: .9rem .7rem; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.prio-item:hover { background: var(--bg); }
.prio-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sev-high { background: var(--bad-bg); color: var(--bad); }
.sev-medium { background: var(--warn-bg); color: var(--warn); }
.sev-low { background: var(--info-bg); color: var(--info); }
.prio-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prio-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; white-space: nowrap; }

/* Organization page */
.org-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; flex-wrap: wrap; }
.org-identity { display: flex; gap: 1rem; align-items: center; }
.org-identity h1 { font-size: 1.5rem; }
.org-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.facts { margin: 0; display: grid; gap: .1rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: flex; gap: .8rem; padding: .6rem 0; }
.step-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: var(--accent); }
.steps-list li.done .step-mark { border-color: var(--accent); background: var(--accent-soft); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.module-tile { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.module-tile:hover { border-color: #cfd8e3; background: #fafbfd; text-decoration: none; }
.module-tile .icon { color: var(--ink-2); }
.module-tile > div { flex: 1; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.soon-panel { max-width: 760px; }
.soon-icon { width: 40px; height: 40px; color: var(--accent); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.feature-list li { display: flex; gap: .55rem; align-items: center; }

/* Drawer */
.drawer-scrim, .nav-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 60; }
.nav-scrim { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 70; display: flex; flex-direction: column; animation: slide-in .18s ease-out; }
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.1rem; }
.drawer-body h3 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Forms */
.stack { display: flex; flex-direction: column; gap: .95rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: .5rem; padding-top: 1.6rem; font-weight: 500; }
input, select { font: inherit; font-weight: 400; padding: .58rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
input:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.actions-row { display: flex; justify-content: flex-end; gap: .5rem; }
dialog { border: 0; border-radius: 14px; padding: 1.5rem; width: min(580px, calc(100vw - 2rem)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }

/* Bare pages (sign-in, MFA, consent result) */
body.bare { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--bg); }
.auth-card { width: min(430px, 100%); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-card h1 { font-size: 1.5rem; }
.brand-center { justify-content: center; padding-bottom: .25rem; }
.qr { display: grid; place-items: center; }
.qr svg { width: 200px; height: 200px; }
.secret { text-align: center; margin: 0; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }

.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; padding: .75rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); max-width: 380px; z-index: 90; }
.toast.error { background: var(--bad-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-scrim { display: block; }
  .nav-toggle { display: inline-grid; }
  .topbar { padding: 0 1rem; gap: .5rem; }
  .crumbs { display: none; }
  .global-search { width: auto; flex: 1; }
  .content { padding: 1rem; }
  .row { grid-template-columns: 1fr; }
  label.check { padding-top: 0; }
  h1 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .table th, .table td { padding: .7rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
