/* media-monitor – giao diện phong cách công nghệ (menu nền tối có lưới, điểm nhấn xanh dương → cyan) */
:root {
  --nav: #070D1F; --nav-2: #0C1631; --nav-line: #1A2747; --nav-text: #B8C2D9; --nav-muted: #6B7A99;
  --primary: #2563EB; --primary-dark: #1D4ED8; --accent: #06B6D4; --accent-soft: #22D3EE;
  --grad: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  --bg: #F2F5FA; --card: #FFFFFF; --border: #E2E8F2; --border-strong: #CBD5E4; --text: #0B1324; --muted: #4A5872;
  --danger: #B42318; --ok: #067647; --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -14px rgba(15,23,42,.18);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
  color: var(--text); line-height: 1.5; background-color: var(--bg);
  background-image: radial-gradient(rgba(37,99,235,.07) 1px, transparent 1px); background-size: 22px 22px; }
a { color: var(--primary); }
h1 { font-size: 23px; margin: 0 0 4px; letter-spacing: -.015em; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.005em; }
h3 { font-size: 15px; margin: 20px 0 8px; }
main h1 { display: flex; align-items: center; gap: 10px; }
main h1::before { content: ""; flex: 0 0 4px; align-self: stretch; min-height: 22px; border-radius: 4px; background: var(--grad); }

/* Khung + thanh menu */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; color: var(--nav-text); padding: 18px 12px 12px;
  display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(6,182,212,.14), transparent 60%),
    linear-gradient(180deg, var(--nav-2), var(--nav));
  border-right: 1px solid var(--nav-line); }
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 24px 24px; }
.sidebar > * { position: relative; }
.navlinks { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.brand { padding: 2px 6px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--nav-line); }
.brand-mark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; border-radius: 12px; }
.brand-mark:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.brand-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 18px rgba(34,211,238,.35), 0 4px 10px rgba(0,0,0,.4); }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 40px; line-height: 1.1; }
.brand-eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 3px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.nav-group { color: var(--nav-muted); font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; padding: 14px 12px 6px; }
.sidebar a.nav { position: relative; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--nav-text); text-decoration: none; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sidebar a.nav:hover { background: rgba(148,163,184,.10); color: #fff; }
.sidebar a.nav.active { color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(37,99,235,.55), rgba(6,182,212,.18));
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.35); }
.sidebar a.nav.active .nav-ico { opacity: 1; color: var(--accent-soft); }
.sidebar a.nav.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-soft); }
.sidebar .me { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid var(--nav-line); font-size: 13px; }
.me-row { display: flex; align-items: center; gap: 10px; }
.avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; }
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { color: var(--nav-muted); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.sidebar .me form { margin-top: 10px; }
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sidebar .me button, .sidebar .me .btn { width: 100%; min-height: 36px; padding: 0 8px; font-size: 13px; background: transparent; color: var(--nav-text); border: 1px solid var(--nav-line); }
.sidebar .me button:hover, .sidebar .me .btn:hover { background: rgba(148,163,184,.10); color: #fff; }

/* Nội dung */
main { flex: 1; min-width: 0; padding: 28px 32px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow); }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn:hover, button:hover { background: #F1F5FB; border-color: #B6C3D8; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(37,99,235,.7); }
.btn-primary:hover { background: linear-gradient(135deg, #1D4ED8 0%, #0E7490 100%); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-danger { color: var(--danger); border-color: #FDA29B; }
.btn-danger:hover { background: #FEF3F2; border-color: #F97066; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #A9B8CF; }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.btn:focus-visible, button:focus-visible, a.nav:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { margin-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filters > * { flex: 1 1 160px; }
.filters > .actions { flex: 0 0 auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #F6F8FC; }
tbody tr:hover td { background: #F8FAFE; }
tr.off td { color: #7B879C; }
td.num, .num { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.lv-khan { background: #FEE4E2; color: #912018; box-shadow: inset 0 0 0 1px #FDA29B; }
.lv-cao { background: #FEF0C7; color: #93370D; box-shadow: inset 0 0 0 1px #FEC84B; }
.lv-trung_binh { background: #DBEAFE; color: #1E3A8A; box-shadow: inset 0 0 0 1px #93C5FD; }
.lv-thap { background: #EEF1F6; color: #344054; box-shadow: inset 0 0 0 1px #D0D5DD; }
.st-ok { background: #DCFAE6; color: #085D3A; }
.st-loi { background: #FEE4E2; color: #912018; }
.st-off { background: #EEF1F6; color: #344054; }
.chip { display: inline-block; background: #EEF2F8; border-radius: 6px; padding: 1px 8px; margin: 2px 4px 2px 0; font-size: 13px; }
.chip.ctx { background: #DBEAFE; color: #1E3A8A; }
.chip.exc { background: #FEE4E2; color: #912018; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: #ECFDF3; border-color: #ABEFC6; color: #085D3A; }
.alert-err { background: #FEF3F2; border-color: #FECDCA; color: #912018; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }
.muted { color: var(--muted); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(37,99,235,.35), transparent 70%),
    radial-gradient(50% 40% at 90% 90%, rgba(6,182,212,.22), transparent 70%),
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--nav); }
.login-card { width: 100%; max-width: 420px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.login-brand .brand-icon { width: 48px; height: 48px; flex-basis: 48px; }
.login-brand .brand-text { height: 48px; }
.login-brand .brand-eyebrow { color: var(--primary); }
.login-brand .brand-name { color: var(--text); font-size: 19px; }
.login-card h1::before { display: none; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.nowrap { white-space: nowrap; }
table.compact th, table.compact td { padding: 8px 10px; font-size: 14px; }
table.compact th { font-size: 11px; }

/* Cảnh báo: hộp thư 2 cột */
.inbox { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox > * { min-width: 0; }
.inbox-list { padding: 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; margin: 0; }
.inbox-detail { margin: 0; min-height: 320px; }
.inbox-detail:focus { outline: none; }
.filters-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row > div { flex: 1 1 140px; }
.filters-stack label, .filter-row label { font-size: 13px; margin-bottom: 2px; color: var(--muted); }
#ev-list { overflow-y: auto; min-height: 0; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-height: 44px; border-radius: 8px;
  color: var(--text); text-decoration: none; border: 1px solid transparent; border-bottom-color: var(--border); }
.ev-item:hover { background: #F2F4F7; }
.ev-item.sel { background: #EEF4FF; border-color: #93B4F5; box-shadow: inset 3px 0 0 var(--primary); }
.ev-item:focus-visible { outline: 3px solid #84ADFF; outline-offset: -2px; }
.ev-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-score { font-family: var(--mono); letter-spacing: -.02em; font-weight: 700; }
.ev-time { margin-left: auto; color: var(--muted); font-size: 13px; }
.ev-title { font-weight: 600; line-height: 1.35; }
.ev-meta { color: var(--muted); font-size: 13px; }
.ev-empty { padding: 16px 12px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-title { font-size: 20px; margin: 8px 0 4px; line-height: 1.35; }
.score-big { font-family: var(--mono); letter-spacing: -.02em; font-size: 32px; font-weight: 700; line-height: 1; }
.score-big small, .stat-big small, .tile-val small { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat-big { font-family: var(--mono); letter-spacing: -.02em; font-size: 32px; font-weight: 700; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.meta-grid dt { font-size: 13px; color: var(--muted); }
.meta-grid dd { margin: 2px 0 0; font-weight: 500; }
.ai-box { background: linear-gradient(180deg, #F6F9FF, #F9FAFC); border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px; }
.ai-box h3 { margin-top: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.ai-box p { margin: 4px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: linear-gradient(180deg, #FFFFFF, #F7F9FD); }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-val { font-family: var(--mono); letter-spacing: -.02em; font-size: 22px; font-weight: 700; }
.bar { height: 6px; background: #EAECF0; border-radius: 3px; margin: 6px 0; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); }
.fb-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
/* Báo cáo */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-grid .card { margin-bottom: 16px; }
.kpi-v { font-family: var(--mono); letter-spacing: -.02em; font-size: 30px; font-weight: 700; line-height: 1.2; }
.kpi-v small { font-size: 16px; color: var(--muted); font-weight: 500; }
.kpi-l { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi-badges { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
th.num, td.num { text-align: right; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-row .bar { flex: 1; margin: 0; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Thống kê thực thể (thang hai cực: Tốt #2a78d6 ↔ Xấu #e34948, giữa xám #a9a79f) */
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-wrap { overflow-x: auto; }
svg.chart { width: 100%; min-width: 560px; height: auto; display: block; }
svg.chart line.grid { stroke: #EAECF0; stroke-width: 1; }
svg.chart line.axis { stroke: #98A2B3; stroke-width: 1; }
svg.chart text.tick { font-size: 11px; fill: #475467; font-variant-numeric: tabular-nums; }
svg.chart rect.hit { fill: transparent; }
svg.chart .bar:hover rect.hit { fill: #F2F4F7; }
svg.chart a:focus-visible rect, svg.chart a:hover rect { stroke: #101828; stroke-width: 1.5; }
.table-view summary { min-height: 44px; font-weight: 500; color: var(--primary); }
a.cnt { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 36px; min-height: 32px; padding: 0 6px;
  border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
a.cnt:hover, a.cnt-big:hover { background: #EEF4FF; }
a.cnt-big { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mini { display: flex; gap: 2px; height: 8px; margin-top: 4px; min-width: 60px; }
.mini span { border-radius: 2px; }
.idx { font-weight: 700; font-variant-numeric: tabular-nums; }
.idx.pos { color: #1c5cab; }
.idx.neg { color: #B42318; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hbars a { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 36px; gap: 8px; align-items: center; min-height: 36px;
  padding: 0 6px; border-radius: 6px; color: var(--text); text-decoration: none; }
.hbars a:hover { background: #F2F4F7; }
.hb-track { height: 10px; background: #F2F4F7; border-radius: 3px; overflow: hidden; }
.hb-track span { display: block; height: 100%; border-radius: 3px; }
.hb-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.drill-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.drill-item { border-top: 1px solid var(--border); padding: 12px 0; }
.drill-item h3 { margin: 6px 0 4px; font-size: 15px; }
.drill-item p { margin: 0 0 6px; }
.drill-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; border: 1px solid; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-list li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 4px 0; }
.src-list .src { font-weight: 600; min-width: 110px; }
/* Vận hành: phễu */
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.funnel li { display: grid; grid-template-columns: 180px 1fr 80px; gap: 12px; align-items: center; }
.funnel-bar { height: 22px; background: #F2F4F7; border-radius: 6px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; box-shadow: 0 0 12px rgba(6,182,212,.35); }
.funnel-n { font-family: var(--mono); letter-spacing: -.02em; font-weight: 700; text-align: right; }
.menu-toggle { display: none; }
.htmx-indicator { display: none; margin-left: 8px; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; padding: 10px 12px; position: static; height: auto; overflow: visible; }
  .sidebar .navlinks { display: none; flex-direction: column; gap: 4px; }
  .sidebar.open .navlinks { display: flex; }
  .menu-toggle { display: inline-flex; background: rgba(148,163,184,.08); color: #fff; border-color: var(--nav-line); }
  .brand { display: flex; align-items: center; justify-content: space-between; padding: 2px; margin: 0; border: 0; }
  .sidebar.open .navlinks { padding-top: 8px; }
  .sidebar a.nav.active::before { display: none; }
  main h1::before { min-height: 18px; }
  main { padding: 16px; }
  th.hide-sm, td.hide-sm { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .layout > main { width: 100%; }
  .meta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inbox-list { position: static; max-height: 60vh; }
  .funnel li { grid-template-columns: 1fr 64px; }
  .funnel-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* chữ đơn vị cạnh số lớn dùng font thường (font mono giãn chữ có dấu) */
.score-big small, .stat-big small, .tile-val small, .kpi-v small { font-family: "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: 0; }
/* Đăng nhập / quên mật khẩu */
.auth-link { text-align: center; margin: 16px 0 0; font-size: 14px; }
.auth-link a { font-weight: 500; }
button.linkish { min-height: 0; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 500; text-decoration: underline; cursor: pointer; }
button.linkish:hover { background: none; }
/* Người dùng: phạm vi xem */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #EEF2F8; border: 1px solid var(--border); }
.seg-opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.seg-opt:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.12); color: var(--primary); }
.seg-opt input { accent-color: var(--primary); }
.scope-pick { margin-top: 14px; }
.scope-pick > input[type=search] { max-width: 420px; margin-bottom: 10px; }
.scope-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px; background: #FBFCFE; }
.scope-group { border-bottom: 1px solid var(--border); padding: 4px 0 8px; }
.scope-group:last-child { border-bottom: 0; }
.scope-unit { min-height: 40px; }
.scope-ents { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; padding-left: 28px; }
.scope-ents .check { min-height: 34px; font-size: 14px; }
.scope-ents.covered { opacity: .5; }
