/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --bg:          #f8f7f4;
  --bg2:         #ffffff;
  --bg3:         #f0efe9;
  --bg4:         #e8e7e0;
  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(0,0,0,0.14);
  --text:        #18181a;
  --text2:       #52525b;
  --text3:       #a1a1aa;
  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --green-dim:   #dcfce7;
  --red:         #dc2626;
  --red-bg:      #fef2f2;
  --red-dim:     #fee2e2;
  --amber:       #d97706;
  --amber-bg:    #fffbeb;
  --amber-dim:   #fef3c7;
  --blue:        #2563eb;
  --blue-bg:     #eff6ff;
  --blue-dim:    #dbeafe;
  --gray-bg:     #f4f4f5;
  --gray-dim:    #e4e4e7;
  --ring-track:  rgba(0,0,0,0.06);
  --radius-sm:   5px;
  --radius-md:   9px;
  --radius-lg:   13px;
  --topbar-h:    56px;
  --font-mono:   'Cascadia Code', 'SF Mono', 'Fira Code', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #111113;
    --bg2:         #1c1c1f;
    --bg3:         #28282c;
    --bg4:         #333338;
    --border:      rgba(255,255,255,0.07);
    --border2:     rgba(255,255,255,0.13);
    --text:        #e4e4e7;
    --text2:       #a1a1aa;
    --text3:       #52525b;
    --green:       #4ade80;
    --green-bg:    #052e16;
    --green-dim:   #14532d;
    --red:         #f87171;
    --red-bg:      #2d1515;
    --red-dim:     #450a0a;
    --amber:       #fbbf24;
    --amber-bg:    #2d1f07;
    --amber-dim:   #451a03;
    --blue:        #60a5fa;
    --blue-bg:     #0d1f3c;
    --blue-dim:    #1e3a5f;
    --gray-bg:     #27272a;
    --gray-dim:    #3f3f46;
    --ring-track:  rgba(255,255,255,0.08);
  }
}

/* ── Base ── */
html, body { height: 100%; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* ════════════════════════════════════════
   APP SHELL
════════════════════════════════════════ */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ════════════════════════════════════════
   TOPBAR
════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 0.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Select */
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.12s;
  min-width: 220px;
}

.select-wrap select:focus { border-color: var(--blue); }

.sel-arrow {
  position: absolute;
  right: 9px;
  width: 10px;
  height: 10px;
  color: var(--text3);
  pointer-events: none;
}

/* IG Toggle */
.ig-toggle {
  display: flex;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.ig-btn {
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.02em;
}

.ig-btn:hover { color: var(--text); background: var(--bg4); }

.ig-btn.ig-active {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Topbar right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Compliance pill */
.compliance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-ring-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.cp-ring {
  width: 36px;
  height: 36px;
}

.cp-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
}

.cp-meta {
  display: flex;
  flex-direction: column;
}

.cp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.cp-sub {
  font-size: 10px;
  color: var(--text3);
}

/* Topbar stats */
.topbar-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.tbs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-left: 0.5px solid var(--border2);
}

.tbs-val {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.tbs-label {
  font-size: 9px;
  color: var(--text3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
.main-content {
  flex: 1;
  padding: 18px 20px 60px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Empty state */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 80px 20px;
  color: var(--text3);
}

.es-icon { margin-bottom: 4px; }
.es-title { font-size: 15px; font-weight: 600; color: var(--text2); }
.es-sub { font-size: 12px; text-align: center; max-width: 300px; }

/* Dashboard wrapper */
#dashboard { display: flex; flex-direction: column; gap: 14px; }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.section {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

/* ════════════════════════════════════════
   TREND SECTION
════════════════════════════════════════ */
.trend-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 800px) {
  .trend-section { grid-template-columns: 1fr; }
}

.trend-left { display: flex; flex-direction: column; }

#trend-chart {
  width: 100%;
  height: 100px;
  display: block;
}

/* Summary stats grid */
.trend-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-card {
  background: var(--bg3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card-label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.stat-card-delta {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.delta-up   { color: var(--green); }
.delta-down { color: var(--red); }
.delta-flat { color: var(--text3); }

/* ════════════════════════════════════════
   TABLE SECTION
════════════════════════════════════════ */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.vt-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.vt-btn.vt-active {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vt-btn:hover:not(.vt-active) { color: var(--text); background: var(--bg4); }

/* Tab row */
.tab-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.tab-btn {
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: 0.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); background: var(--bg3); }

.tab-btn.tab-active {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border2);
  font-weight: 600;
}

/* Table empty */
.tbl-empty {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  padding: 36px 0;
}

/* ════════════════════════════════════════
   IG GROUP HEADER
════════════════════════════════════════ */
.ig-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
  margin-top: 4px;
}

.ig-group-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ig1-badge { background: var(--blue-dim);  color: var(--blue); }
.ig2-badge { background: var(--amber-dim); color: var(--amber); }
.ig3-badge { background: var(--gray-dim);  color: var(--text2); }

.ig-group-count {
  font-size: 11px;
  color: var(--text3);
}

.ig-group-line {
  flex: 1;
  height: 0.5px;
  background: var(--border2);
}

/* ════════════════════════════════════════
   CONTROL ROWS
════════════════════════════════════════ */
.ctrl-list { display: flex; flex-direction: column; }

.ctrl-row {
  border-bottom: 0.5px solid var(--border);
}

.ctrl-row:last-child { border-bottom: none; }

.ctrl-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
  user-select: none;
}

.ctrl-row-head:hover { background: var(--bg3); }
.ctrl-row.row-open .ctrl-row-head { background: var(--bg3); }

.ctrl-id {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text3);
  min-width: 90px;
  flex-shrink: 0;
}

.ctrl-ig-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.ctrl-lv-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--bg4);
  color: var(--text2);
}

.ctrl-title {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctrl-status-bar-wrap {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ctrl-status-bar-track {
  height: 4px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}

.ctrl-status-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.ctrl-status-bar-pct {
  font-size: 10px;
  color: var(--text3);
  text-align: right;
}

.ctrl-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.badge-auto     { background: var(--blue-dim);  color: var(--blue); }
.badge-manual   { background: var(--amber-dim); color: var(--amber); }
.badge-pass     { background: var(--green-dim); color: var(--green); }
.badge-fail     { background: var(--red-dim);   color: var(--red); }
.badge-risk     { background: var(--gray-dim);  color: var(--text2); }
.badge-na       { background: var(--blue-dim);  color: var(--blue); }
.badge-attn     { background: var(--amber-dim); color: var(--amber); }

.ctrl-chevron {
  font-size: 14px;
  color: var(--text3);
  transition: transform 0.18s;
  flex-shrink: 0;
  line-height: 1;
}

.chevron-open { transform: rotate(90deg); }

/* Expanded control */
.ctrl-expanded {
  padding: 10px 14px 14px 14px;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
  animation: slideDown 0.14s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.exp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
  margin-top: 4px;
}

/* Asset list inside expanded control */
.asset-list-inner {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.asset-inner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.1s;
}

.asset-inner-row:last-child { border-bottom: none; }
.asset-inner-row:hover { background: var(--bg3); }

.asset-inner-name {
  font-size: 11px;
  font-family: var(--font-mono);
  flex: 1;
  color: var(--text);
}

.asset-inner-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.ais-pass { background: var(--green-dim); color: var(--green); }
.ais-fail { background: var(--red-dim);   color: var(--red); }
.ais-risk { background: var(--gray-dim);  color: var(--text2); }
.ais-na   { background: var(--blue-dim);  color: var(--blue); }
.ais-attn { background: var(--amber-dim); color: var(--amber); cursor: pointer; }
.ais-attn:hover { opacity: 0.8; }

/* ════════════════════════════════════════
   ASSET ROWS
════════════════════════════════════════ */
.asset-row-outer {
  border-bottom: 0.5px solid var(--border);
}

.asset-row-outer:last-child { border-bottom: none; }

.asset-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
  user-select: none;
}

.asset-row-head:hover { background: var(--bg3); }
.asset-row-outer.row-open .asset-row-head { background: var(--bg3); }

.asset-type-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg4);
  color: var(--text2);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.asset-name-main {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text);
  flex: 1;
}

.asset-compliance-bar-wrap {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Asset expanded — controls grouped by IG */
.asset-expanded {
  padding: 10px 14px 14px;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
  animation: slideDown 0.14s ease;
}

.asset-ig-group { margin-bottom: 10px; }

.asset-ig-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.aig-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.aig-line {
  flex: 1;
  height: 0.5px;
  background: var(--border2);
}

.asset-ctrl-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.asset-ctrl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 0.5px solid var(--border);
}

.asset-ctrl-row:last-child { border-bottom: none; }

.asset-ctrl-id {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  min-width: 80px;
  flex-shrink: 0;
}

.asset-ctrl-title {
  font-size: 11px;
  color: var(--text2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   TO-FIX PRIORITY ROWS
════════════════════════════════════════ */
.tofix-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 0.5px solid var(--border);
}

.tofix-row:last-child { border-bottom: none; }

.tofix-priority {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.pri-1 { background: var(--red-dim);   color: var(--red); }
.pri-2 { background: var(--amber-dim); color: var(--amber); }
.pri-3 { background: var(--gray-dim);  color: var(--text2); }

.tofix-ctrl-id {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  min-width: 80px;
  flex-shrink: 0;
}

.tofix-title {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tofix-affected {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   CHANGES ROWS
════════════════════════════════════════ */
.changes-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 0.5px solid var(--border);
}

.changes-row:last-child { border-bottom: none; }

.change-direction {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.chg-improved { background: var(--green-dim); color: var(--green); }
.chg-degraded { background: var(--red-dim);   color: var(--red); }
.chg-new      { background: var(--blue-dim);  color: var(--blue); }

.change-ctrl-id {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  min-width: 80px;
  flex-shrink: 0;
}

.change-title {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-from-to {
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 440px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalPop 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 0.5px solid var(--border);
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
}

.modal-close:hover { color: var(--text); background: var(--bg3); }

.modal-body { padding: 14px 16px; }

.modal-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.modal-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ms-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.ms-btn:hover { background: var(--bg4); color: var(--text); }

.ms-btn.ms-selected {
  background: var(--bg2);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 0 0 0 2px var(--blue-dim);
}

.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mf-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.mf-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
}

.req { color: var(--red); }

.mf-input {
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  width: 100%;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s;
}

.mf-input:focus { border-color: var(--blue); }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid var(--border);
}

.btn-primary {
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  cursor: pointer;
  transition: opacity 0.1s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.btn-secondary:hover { background: var(--bg3); }

/* ════════════════════════════════════════
   UTILITY
════════════════════════════════════════ */
.hidden { display: none !important; }

/* color helpers */
.c-pass { color: var(--green); }
.c-fail { color: var(--red); }
.c-risk { color: var(--text2); }
.c-na   { color: var(--blue); }
.c-attn { color: var(--amber); }
