/* SENTINEL · rough prototype for kevinhorek.com/lab · layout and components (colour tokens live in style.css) */
html, body { height: 100%; }
body { margin: 0; font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); font-size: 15px; }
button { color: inherit; }
a { color: var(--color-primary); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100dvh - var(--lab-bar-h, 0px)); }
.sidebar { position: sticky; top: var(--lab-bar-h, 0px); height: calc(100dvh - var(--lab-bar-h, 0px)); background: var(--color-surface); border-right: 1px solid var(--color-divider); display: flex; flex-direction: column; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; border-bottom: 1px solid var(--color-divider); }
.brand b { font-size: 14px; letter-spacing: .14em; }
.brand small { display: block; font-size: 11px; color: var(--color-text-faint); letter-spacing: .02em; margin-top: 2px; }
.nav { padding: 12px; display: grid; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-faint); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--radius-md); color: var(--color-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: background var(--transition-interactive), color var(--transition-interactive); }
.nav a:hover { background: var(--color-surface-dynamic); color: var(--color-text); }
.nav a.active { background: var(--color-primary-highlight); color: var(--color-primary); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .count { margin-left: auto; font-size: 11px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 999px; background: var(--color-notification-highlight); color: var(--color-notification); }
.side-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--color-divider); font-size: 12px; color: var(--color-text-faint); line-height: 1.5; }
.side-foot b { color: var(--color-text-muted); font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: var(--lab-bar-h, 0px); z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in oklab, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); }
.topbar h1 { font-size: 15px; font-weight: 600; margin: 0 auto 0 0; }
.topbar h1 small { color: var(--color-text-faint); font-weight: 400; margin-left: 8px; font-size: 13px; }
.search { display: flex; align-items: center; gap: 8px; width: min(360px, 40vw); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 12px; height: 40px; }
.search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 18%, transparent); }
.search svg { width: 16px; height: 16px; color: var(--color-text-faint); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-md); color: var(--color-text-muted); flex: none; }
.icon-btn:hover { background: var(--color-surface-dynamic); color: var(--color-text); }
.icon-btn svg { width: 18px; height: 18px; }
.hamburger { display: none; }
.snapshot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.snapshot i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); }
.view { padding: 24px 28px 48px; display: grid; gap: 20px; max-width: 2200px; width: 100%; box-sizing: border-box; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-head h2 { font-size: clamp(22px, 2vw, 28px); margin: 0; letter-spacing: -.01em; }
.view-head p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 14px; max-width: 70ch; }

/* ---------- primitives ---------- */
.card { background: var(--color-surface); border: 1px solid color-mix(in oklab, var(--color-text) 7%, transparent); border-radius: var(--radius-lg); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.card-head .sub { font-size: 12px; color: var(--color-text-faint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--transition-interactive), border-color var(--transition-interactive); white-space: nowrap; text-decoration: none; color: var(--color-text); }
.btn:hover { background: var(--color-surface-dynamic); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--color-primary); border-color: var(--color-primary); color: #0b1416; }
.btn.primary:hover { background: color-mix(in oklab, var(--color-primary) 85%, white); }
[data-theme="light"] .btn.primary { color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--color-text-muted); }
.btn.ghost:hover { background: var(--color-surface-dynamic); color: var(--color-text); }
.btn.danger { color: var(--color-notification); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.sev-CRITICAL { background: var(--color-notification-highlight); color: var(--color-notification); }
.sev-HIGH { background: var(--color-orange-highlight); color: var(--color-orange); }
.sev-MEDIUM { background: var(--color-gold-highlight); color: var(--color-gold); }
.sev-LOW { background: var(--color-success-highlight); color: var(--color-success); }
.b-exploited { background: color-mix(in oklab, var(--color-notification) 18%, transparent); color: var(--color-notification); }
.b-quiet { background: var(--color-surface-dynamic); color: var(--color-text-faint); }
.b-ok { background: var(--color-success-highlight); color: var(--color-success); }
.b-prog { background: var(--color-blue-highlight); color: var(--color-blue); }
.b-risk { background: var(--color-purple-highlight); color: var(--color-purple); }
.b-alert { background: var(--color-gold-highlight); color: var(--color-gold); }
.cve-id { font-family: var(--font-mono); font-size: 13px; color: var(--color-primary); font-weight: 500; }
.bar { height: 8px; background: var(--color-surface-dynamic); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.16, 1, .3, 1); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-border); background: transparent; font-size: 13px; font-weight: 500; color: var(--color-text-muted); cursor: pointer; }
.chip:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.chip.on { background: var(--color-primary-highlight); border-color: var(--color-primary); color: var(--color-primary); }
.select, .input, .textarea { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); min-height: 40px; padding: 0 12px; font-size: 14px; color: var(--color-text); }
.textarea { padding: 10px 12px; min-height: 88px; width: 100%; box-sizing: border-box; resize: vertical; font-family: inherit; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--color-primary); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .grow { flex: 1 1 220px; }
.empty { text-align: center; padding: 48px 16px; color: var(--color-text-muted); }
.empty svg { width: 28px; height: 28px; color: var(--color-text-faint); margin: 0 auto 10px; }
.switch { position: relative; width: 48px; height: 44px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; left: 2px; right: 2px; top: 9px; bottom: 9px; border-radius: 999px; background: var(--color-surface-dynamic); border: 1px solid var(--color-border); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-text-muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--color-primary); border-color: var(--color-primary); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpi { display: grid; gap: 8px; }
.kpi .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 14px; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }
.kpi .delta { font-size: 12px; color: var(--color-text-muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--color-notification); box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-notification) 40%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-col { display: grid; gap: 20px; min-width: 0; }
.chart-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 20px; }
.chart-box { position: relative; height: 260px; }
.donut-box { position: relative; max-width: 240px; margin: 0 auto; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center b { font-size: 30px; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 12px; color: var(--color-text-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--color-text-muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 4px; border-bottom: 1px solid var(--color-divider); cursor: pointer; border-radius: var(--radius-md); }
.queue-item:last-child { border-bottom: 0; }
.queue-item:hover { background: var(--color-surface-offset); }
.queue-item .t { font-size: 14px; font-weight: 500; }
.queue-item .m { font-size: 12px; color: var(--color-text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.queue-item .r { text-align: right; display: grid; gap: 6px; justify-items: end; align-content: center; }
.queue-item .bar { width: 110px; }
.sys-row { display: grid; gap: 8px; padding: 10px 0; }
.sys-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sys-row .top span:last-child { font-size: 12px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.feed-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-divider); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item svg { width: 16px; height: 16px; color: var(--color-primary); margin-top: 2px; }
.feed-item time { display: block; font-size: 11px; color: var(--color-text-faint); margin-top: 2px; }
.watch-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-divider); cursor: pointer; }
.watch-item:last-child { border-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--color-text) 7%, transparent); background: var(--color-surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); background: var(--color-surface-offset); padding: 12px 14px; border-bottom: 1px solid var(--color-divider); white-space: nowrap; }
table.data th button { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; min-height: 28px; }
table.data th button:hover, table.data th.sorted button { color: var(--color-text); }
table.data th .arrow { font-size: 10px; opacity: .5; }
table.data th.sorted .arrow { opacity: 1; color: var(--color-primary); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--color-divider); vertical-align: middle; }
table.data tbody tr { cursor: pointer; transition: background var(--transition-interactive); }
table.data tbody tr:hover { background: var(--color-surface-offset); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.desc { min-width: 220px; max-width: 340px; }
.cell-sub { display: block; font-size: 12px; color: var(--color-text-faint); margin-top: 2px; }
.mini-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; font-size: 12px; color: var(--color-text-muted); }
.mini-bar .bar { flex: 1; height: 6px; }
.cards { display: none; gap: 12px; }
.item-card { background: var(--color-surface); border: 1px solid color-mix(in oklab, var(--color-text) 7%, transparent); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 10px; cursor: pointer; }
.item-card:hover { border-color: var(--color-border); }
.item-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-card .title { font-size: 15px; font-weight: 500; }
.result-count { font-size: 13px; color: var(--color-text-muted); }

/* ---------- systems + actors ---------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.group-card { cursor: pointer; display: grid; gap: 12px; text-align: left; font: inherit; color: inherit; }
.group-card.on { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary) inset; }
.group-card .gname { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.group-card .gname svg { width: 18px; height: 18px; color: var(--color-primary); }
.group-card .gstats { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-muted); }
.actor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.actor { display: grid; gap: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.actor:hover { border-color: var(--color-border); }
.actor .top { display: flex; gap: 14px; align-items: flex-start; }
.actor .flag { font-size: 28px; line-height: 1; }
.actor h3 { margin: 0; font-size: 17px; }
.actor .alias { font-size: 13px; color: var(--color-text-muted); margin-top: 3px; }
.actor p { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--color-surface-dynamic); color: var(--color-text-muted); }

/* ---------- drawer, toast ---------- */
.scrim { position: fixed; inset: var(--lab-bar-h, 0px) 0 0 0; background: rgb(0 0 0 / .55); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: var(--lab-bar-h, 0px); right: 0; bottom: 0; width: min(560px, 100vw); background: var(--color-surface); border-left: 1px solid var(--color-border); z-index: 61; transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .28s; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--color-divider); }
.drawer-head h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { padding: 20px 22px 32px; overflow-y: auto; display: grid; gap: 22px; align-content: start; }
.drawer h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.drawer p { margin: 0; font-size: 14px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.kv div span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-faint); }
.kv div b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--color-divider); margin-bottom: 8px; cursor: pointer; }
.check-row:hover { background: var(--color-surface-offset); }
.check-row input { width: 20px; height: 20px; accent-color: var(--color-primary); flex: none; }
.check-row .grow { flex: 1; min-width: 0; }
.check-row .grow b { display: block; font-size: 14px; font-weight: 500; }
.check-row .grow span { font-size: 12px; color: var(--color-text-muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--color-text-muted); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 80; max-width: min(92vw, 480px); padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-surface-2); border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); box-shadow: var(--shadow-md); font-size: 14px; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reports + settings ---------- */
.report { max-width: none; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
@media (max-width: 1200px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
.report-grid > section, .report section { min-width: 0; }
.report-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--color-divider); padding-bottom: 18px; margin-bottom: 18px; }
.report-head h3 { margin: 0; font-size: 22px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { background: var(--color-surface-offset); border-radius: var(--radius-md); padding: 14px; }
.metric b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.metric span { font-size: 12px; color: var(--color-text-muted); }
.report section { margin-top: 24px; }
.report h4 { margin: 0 0 10px; font-size: 15px; }
.report ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: 14px; line-height: 1.7; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.setting:last-child { border-bottom: 0; }
.setting b { display: block; font-size: 14px; font-weight: 500; }
.setting span { font-size: 13px; color: var(--color-text-muted); }
.range { width: 100%; accent-color: var(--color-primary); height: 44px; }
.source { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
.source:last-child { border-bottom: 0; }
.source .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); flex: none; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot-note { font-size: 12px; color: var(--color-text-faint); line-height: 1.6; padding: 4px 2px; }

/* ---------- responsive ---------- */
@media (min-width: 1700px) { .view { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: var(--lab-bar-h, 0px); left: 0; bottom: 0; height: auto; width: 272px; transform: translateX(-100%); visibility: hidden; transition: transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .25s; z-index: 62; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
  .hamburger { display: inline-grid; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .chart-row { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .table-wrap.as-cards { display: none; }
  .cards { display: grid; }
  .snapshot { display: none; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .topbar h1 small { display: none; }
  .search { width: auto; flex: 1 1 auto; min-width: 0; }
  .topbar h1 { display: none; }
  .view { padding: 18px 16px 40px; gap: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpis .card:last-child { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .two { grid-template-columns: 1fr; }
  .btn, .chip, .select, .input, .search { min-height: 44px; }
  .nav a { min-height: 46px; }
  .icon-btn { width: 44px; height: 44px; }
  .queue-item { grid-template-columns: 1fr; }
  .queue-item .r { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: start; gap: 10px; }
  .actor-grid { grid-template-columns: 1fr; }
  .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 400px) { .kpi .value { font-size: 26px; } }
@media print {
  .lab-bar, .sidebar, .topbar, .report-actions, .toast { display: none !important; }
  .app { display: block; } body { background: #fff; color: #111; }
  .card { border-color: #ddd; }
}

@media (max-width: 760px) { button.tag { min-height: 44px !important; padding: 0 12px; } }
