/* dashboard/styles.css — Self-contained styles for the thesis dashboard. */

:root {
  --bg:         #f6f7f9;
  --bg-soft:    #ecf0f4;
  --panel:      #ffffff;
  --ink:        #14161b;
  --ink-2:      #3a3f49;
  --ink-3:      #6a7180;
  --line:       #e3e6ec;
  --line-2:     #eef0f4;
  --c-7b:       oklch(55% 0.13 250);
  --c-rgb:      oklch(70% 0.13 60);
  --c-win:      oklch(52% 0.17 145);
  --c-win-bg:   oklch(95% 0.04 145);
  --c-err:      oklch(55% 0.20 25);
  --shadow-sm:  0 1px 2px rgba(20,22,27,0.04);
  --shadow-md:  0 4px 16px rgba(20,22,27,0.06);
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; background: var(--bg); min-height: 100vh; }
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
.dim { color: var(--ink-3); }
.kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }

a { color: var(--ink); text-decoration: none; }

/* ===== Shell + side nav ============================================ */
.dash-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.dash-nav {
  position: sticky; top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.dash-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line-2);
}
.dash-brand-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg);
  display: grid; place-items: center;
}
.dash-brand-name { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.dash-brand-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.dash-nav-list { flex: 1; padding: 12px 8px 16px; display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: background 0.12s ease, color 0.12s ease;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--panel); }
.nav-item.active .nav-num { color: rgba(255,255,255,0.6); }
.nav-num { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-3); min-width: 18px; }
.nav-label { flex: 1; }

.dash-nav-foot {
  border-top: 1px solid var(--line-2);
  padding: 12px 14px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.nav-extra { font-size: 12px; color: var(--ink-3); }
.nav-extra:hover { color: var(--ink); }

/* ===== Main ======================================================= */
.dash-main {
  max-width: 1180px;
  padding: 36px 40px 80px;
  margin: 0 auto;
  width: 100%;
}

.dash-footer {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
  text-align: center;
}

/* ===== HERO ======================================================= */
.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0, oklch(60% 0.10 250 / 0.06), transparent 60%),
              radial-gradient(circle at 0% 100%, oklch(70% 0.13 60 / 0.05), transparent 50%);
  pointer-events: none;
}
.hero-l { position: relative; }
.hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; margin-bottom: 16px; }
.hero-title {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 8px; line-height: 1.15;
}
.hero-sub { font-size: 15px; color: var(--ink-2); margin-bottom: 28px; line-height: 1.4; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta > div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta > div > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.hero-meta > div > b { font-size: 13px; font-weight: 500; }

.hero-r {
  position: relative;
  background: var(--c-win-bg);
  border: 1px solid oklch(85% 0.08 145);
  border-radius: 10px;
  padding: 22px 24px;
}
.hero-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: oklch(35% 0.12 145); font-weight: 600; margin-bottom: 12px; }

.hero-metric-stack {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid oklch(85% 0.08 145 / 0.5);
  border-bottom: 1px solid oklch(85% 0.08 145 / 0.5);
  margin-bottom: 12px;
}
.hero-metric {
  display: grid; grid-template-columns: 88px 1fr auto;
  align-items: baseline; gap: 12px;
}
.hero-metric-l { font-size: 12px; color: oklch(30% 0.12 145); font-weight: 600; }
.hero-metric-v {
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: 26px; line-height: 1; letter-spacing: -0.02em;
  color: var(--c-win);
}
.hero-metric-u { font-size: 14px; margin-left: 2px; opacity: 0.7; font-weight: 400; }
.hero-metric-ci { font-size: 11px; color: oklch(35% 0.12 145); opacity: 0.85; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hero-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; padding: 3px 8px;
  background: var(--panel);
  border: 1px solid oklch(85% 0.08 145);
  border-radius: 999px;
  color: oklch(30% 0.12 145);
}

/* ===== Section shell ============================================== */
.ds-section { margin-bottom: 56px; scroll-margin-top: 24px; }
.sect-hd { margin-bottom: 20px; }
.sect-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.sect-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.sect-sub { font-size: 13.5px; color: var(--ink-3); max-width: 720px; line-height: 1.5; }

/* Generic callout */
.callout {
  margin-top: 18px; padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--ink-2);
  border-radius: 6px;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.5;
}
.callout b { color: var(--ink); font-weight: 600; }

/* ===== KPIs ======================================================= */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.kpi-lbl { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.kpi-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi-half { display: flex; flex-direction: column; gap: 4px; }
.kpi-tag {
  font-size: 9.5px; padding: 2px 7px;
  color: #fff; border-radius: 3px;
  align-self: flex-start;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.kpi-num { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.kpi-delta {
  font-size: 11.5px; color: var(--c-win); font-weight: 600;
  background: var(--c-win-bg); padding: 4px 10px; border-radius: 4px;
  align-self: flex-start;
  display: flex; gap: 6px; align-items: center;
}
.kpi-delta span { color: oklch(35% 0.10 145); }

/* ===== Model cards ================================================ */
.model-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 10px;
  padding: 22px 24px 18px;
  display: flex; flex-direction: column; gap: 18px;
}
.m-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-pill {
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.m-arch { font-size: 12.5px; color: var(--ink-3); }

.m-bands-section { display: flex; flex-direction: column; gap: 8px; }
.m-bands-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 600; }
.m-bands-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-band-chip {
  font-size: 11px; padding: 3px 9px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
}

.m-stats { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 12.5px; }
.m-stats dt { color: var(--ink-3); }
.m-stats dd { margin: 0; color: var(--ink); }

.m-link {
  margin-top: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.m-link:hover { color: var(--ink); }

/* ===== Class distribution ========================================= */
.dist-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
}
.dist-hd { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; }
.dist-title { font-size: 16px; font-weight: 600; }
.dist-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dist-total span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.dist-total b { font-size: 16px; font-weight: 500; }

.dist-donut-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}
.dist-donut { display: flex; align-items: center; justify-content: center; }
.dist-donut-svg { width: 100%; max-width: 320px; height: auto; display: block; }
.donut-slice-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  fill: #fff;
}
.donut-center-l { font-size: 12px; fill: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.donut-center-v { font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.donut-center-s { font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: var(--ink-3); }

.dist-legend { display: flex; flex-direction: column; gap: 4px; }
.dist-leg-row {
  display: grid;
  grid-template-columns: 14px 1fr 70px 100px;
  align-items: center; gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  text-align: left;
}
.dist-leg-row:hover { background: var(--bg); }
.dist-leg-row.on { background: var(--bg); border-color: var(--line); }
.dist-leg-dot { width: 14px; height: 14px; border-radius: 4px; }
.dist-leg-cls { font-size: 13px; color: var(--ink); font-weight: 500; }
.dist-leg-pct { font-size: 12.5px; color: var(--ink); font-weight: 500; text-align: right; }
.dist-leg-px { font-size: 11.5px; color: var(--ink-3); text-align: right; }

.dist-caption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.dist-caption b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .dist-donut-wrap { grid-template-columns: 1fr; }
}

/* ===== Method cards (M1–M4 descriptions) ========================== */
.meth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.meth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.meth-id { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; }
.meth-name { font-size: 16px; font-weight: 600; }
.meth-short { font-size: 12px; color: var(--ink-3); font-style: italic; margin-bottom: 4px; }
.meth-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0; }

/* ===== Global results table ======================================= */
.results-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.results-table th {
  background: var(--bg);
  font-weight: 600; font-size: 12px; text-align: center;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.results-table .grp-row th { font-size: 13px; border-bottom: 1px solid var(--line-2); }
.results-table th.th-7b { color: var(--c-7b); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.results-table th.th-rgb { color: var(--c-rgb); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.results-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line-2); }
.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table .meth-cell { text-align: left; font-size: 12.5px; }
.results-table .meth-cell-name { color: var(--ink-3); margin-left: 8px; font-weight: normal; font-size: 11.5px; }
.results-table .cell-7b { background: oklch(55% 0.13 250 / 0.03); }
.results-table .cell-rgb { background: oklch(70% 0.13 60 / 0.04); }
.results-table .best { font-weight: 600; }
.results-table .star { color: var(--c-win); margin-left: 4px; font-size: 11px; }

/* ===== Method OA bars ============================================= */
.mb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mb-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.mb-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.mb-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: var(--panel);
  font-weight: 600;
}
.mb-name { font-size: 14px; font-weight: 600; }
.mb-bars { display: flex; flex-direction: column; gap: 8px; }
.mb-bar-row { display: grid; grid-template-columns: 60px 1fr 80px; align-items: center; gap: 10px; }
.mb-l { font-size: 12px; color: var(--ink-3); }
.mb-track { height: 12px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.mb-bar { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.mb-v { font-size: 12px; text-align: right; font-weight: 500; }
.mb-delta {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.mb-delta > span { color: var(--ink-3); }
.mb-delta > b { font-size: 14px; }

/* ===== Per-class F1 bars ========================================== */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.pc-col-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.pc-pill { color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.pc-row { display: grid; grid-template-columns: 100px 1fr 50px; align-items: center; gap: 12px; padding: 5px 0; }
.pc-cls { font-size: 12.5px; }
.pc-track { height: 8px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.pc-bar { height: 100%; border-radius: 2px; }
.pc-v { font-size: 12px; text-align: right; }

/* ===== Delta chart ================================================ */
.delta-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.delta-bars { display: flex; flex-direction: column; gap: 10px; }
.delta-row { display: grid; grid-template-columns: 110px 1fr 70px 160px; align-items: center; gap: 14px; }
.delta-cls { font-size: 13px; font-weight: 500; }
.delta-track { height: 14px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.delta-bar { height: 100%; border-radius: 3px; }
.delta-v { font-size: 12.5px; font-weight: 600; color: var(--c-win); text-align: right; }
.delta-ctx { font-size: 11.5px; }

/* ===== Confusion matrix =========================================== */
.cm-section { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.cm-controls { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.cm-ctrl-grp { display: flex; align-items: center; gap: 10px; }
.cm-ctrl-l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg-b {
  background: var(--panel); border: 0; cursor: pointer;
  font: inherit; padding: 6px 14px; font-size: 12.5px;
  color: var(--ink-2);
}
.seg-b + .seg-b { border-left: 1px solid var(--line); }
.seg-b.on { background: var(--ink); color: var(--bg); }

.cm-grid-wrap { overflow-x: auto; }
.cm-grid { border-collapse: separate; border-spacing: 2px; margin: 0 auto; }
.cm-grid th, .cm-grid td { width: 70px; height: 52px; text-align: center; }
.cm-grid .cm-corner { width: 80px; }
.cm-grid .cm-axis-h { font-size: 11px; color: var(--ink-3); font-weight: 500; text-align: center; letter-spacing: 0.06em; }
.cm-grid .cm-axis-v { font-size: 11px; color: var(--ink-3); font-weight: 500; width: 30px; }
.cm-grid .cm-axis-v div { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.06em; }
.cm-grid .cm-collab { background: var(--bg); font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; }
.cm-grid .cm-rowlab { background: var(--bg); font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; }
.cm-cell {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  font-weight: 500; border-radius: 3px;
  transition: transform 0.1s ease;
}
.cm-cell.cm-diag { font-weight: 700; font-size: 13px; }
.cm-cell.cm-zero { color: var(--line); background: var(--panel) !important; border: 1px solid var(--line-2); }
.cm-legend { display: flex; gap: 24px; margin-top: 16px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; }
.cm-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.cm-legend .sw-zero { background: var(--panel); border: 1px solid var(--line); }

/* ===== McNemar contingency ======================================== */
.mcn-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; }
.mcn-h { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; }
.mcn-title { font-size: 16px; font-weight: 600; }
.mcn-pvalue { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mcn-pvalue span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.mcn-pvalue b { font-size: 18px; }

.mcn-grid {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.mcn-blank, .mcn-coltitle, .mcn-rowtitle { padding: 8px 12px; }
.mcn-coltitle, .mcn-rowtitle { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.mcn-coltitle { text-align: center; align-self: center; }
.mcn-rowtitle { display: flex; align-items: center; }
.mcn-cell {
  background: var(--bg);
  border-radius: 8px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.mcn-cell.mcn-a { background: oklch(96% 0.02 250); }
.mcn-cell.mcn-b { background: oklch(96% 0.04 250); border: 1px solid oklch(85% 0.10 250 / 0.4); }
.mcn-cell.mcn-c { background: oklch(96% 0.04 60); border: 1px solid oklch(85% 0.10 60 / 0.4); }
.mcn-cell.mcn-d { background: var(--bg); }
.mcn-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--ink-3); }
.mcn-n { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.mcn-pct { font-size: 11.5px; color: var(--ink-3); }

.mcn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.mcn-stats > div { display: flex; flex-direction: column; gap: 4px; }
.mcn-stat-l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.mcn-stat-v { font-size: 16px; font-weight: 500; }
.mcn-stat-v.big { font-size: 22px; }
.mcn-stat-foot { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* ===== Bootstrap CI bars ========================================== */
.bs-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; }
.bs-rows { display: flex; flex-direction: column; gap: 14px; }
.bs-row { display: grid; grid-template-columns: 160px 1fr 220px; gap: 18px; align-items: center; }
.bs-label { font-size: 13.5px; font-weight: 600; }

.ci-bar-track {
  position: relative; height: 14px; background: var(--bg);
  border-radius: 3px;
  overflow: visible;
}
.ci-zero-line { position: absolute; left: 0; top: -4px; bottom: -4px; width: 2px; background: var(--c-err); opacity: 0.4; border-radius: 1px; }
.ci-bar { position: absolute; top: 0; bottom: 0; background: var(--c-win); border-radius: 3px; opacity: 0.7; }
.ci-mean { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--c-win); border-radius: 1px; }

.bs-num { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.bs-mean { font-size: 15px; font-weight: 600; color: var(--c-win); }
.bs-ci { font-size: 11.5px; color: var(--ink-3); }

.bs-axis {
  position: relative; margin-top: 18px; padding-top: 6px;
  display: grid; grid-template-columns: 160px 1fr 220px; gap: 18px;
}
.bs-null { color: var(--c-err); font-size: 10.5px; }
.bs-axis-line { border-top: 1px dashed var(--line); margin-top: 8px; }
.bs-axis-ticks {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-3);
  padding-top: 4px;
}

/* ===== Bootstrap distributions (density curves) =================== */
.theory-block {
  background: oklch(97% 0.02 250);
  border: 1px solid oklch(85% 0.06 250);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.theory-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(35% 0.13 250);
  font-weight: 700;
  margin-bottom: 10px;
}
.theory-body { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.theory-body p { margin: 0 0 10px; }
.theory-body p:last-child { margin-bottom: 0; }
.theory-body b { color: var(--ink); font-weight: 600; }
.theory-formula {
  background: var(--panel);
  border: 1px solid oklch(85% 0.06 250);
  border-radius: 6px;
  padding: 10px 16px;
  margin: 10px 0;
  font-size: 13px;
  text-align: center;
}
.theory-hypotheses {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px;
  background: var(--panel);
  border-radius: 6px;
  padding: 12px 14px;
  border-left: 3px solid oklch(35% 0.13 250);
}
.theory-h0, .theory-ha, .theory-decision {
  font-size: 12.5px;
  line-height: 1.5;
}
.theory-h0 b { color: oklch(55% 0.20 25); }
.theory-ha b { color: oklch(52% 0.17 145); }
.theory-decision { padding-top: 6px; border-top: 1px dashed oklch(85% 0.06 250); margin-top: 4px; }
.theory-decision b { color: var(--ink); }

/* Bootstrap row picker + metric selector */
.bs-row { transition: background 0.12s ease, box-shadow 0.12s ease; padding: 8px 10px; border-radius: 6px; }
.bs-row:hover { background: var(--bg); }
.bs-row-picked { background: var(--bg); box-shadow: inset 3px 0 0 var(--ink); }
.bs-picker {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
}
.bs-picker-l { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 600; }

/* McNemar per-case analysis */
.case-analysis { margin-top: 20px; }
.case-hd {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 12px;
}
.case-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.case-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.case-tag {
  display: inline-block;
  background: #cbd5e1;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.case-item p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.case-item p b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
}
.bsd-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.bsd-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.bsd-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.bsd-leg-i { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); }
.bsd-leg-sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.bsd-leg-sw-ci { background: oklch(52% 0.17 145 / 0.75); }
.bsd-leg-sw-tail { background: oklch(52% 0.17 145 / 0.20); }
.bsd-leg-sw-mean { width: 3px; height: 14px; background: oklch(35% 0.13 145); }
.bsd-leg-sw-null { width: 3px; height: 14px; background: oklch(55% 0.20 25); }

.bsd-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.bsd-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.bsd-label-sub { font-size: 10.5px; fill: var(--ink-3); font-weight: 500; }
.bsd-tick { font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.bsd-axtitle { font-size: 11.5px; fill: var(--ink); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bsd-ci-label { font-size: 10px; fill: oklch(35% 0.13 145); font-weight: 700; }
.bsd-hover-l { font-size: 10.5px; fill: var(--ink-3); font-weight: 500; }
.bsd-hover-v { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.pcm-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  font-size: 12.5px;
}
.pcm-table th {
  background: var(--bg);
  font-weight: 600; font-size: 11.5px; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.pcm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.pcm-table tbody tr:last-child td { border-bottom: 0; }
.pcm-table tr.pcm-sig { background: var(--c-win-bg); }
.pcm-table .pcm-driver { font-size: 11.5px; color: var(--ink-2); }
.sig-cell { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 3px; }
.sig-yes { background: var(--c-win); color: #fff; }
.sig-no  { background: var(--bg); color: var(--ink-3); }
.pill-7b-sm { display: inline-block; background: var(--c-7b); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; }
.pill-rgb-sm { display: inline-block; background: var(--c-rgb); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; }

/* ===== Convergent validity ======================================== */
.conv-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.conv-table th { background: var(--bg); font-weight: 600; font-size: 11.5px; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.conv-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.conv-table tbody tr:last-child td { border-bottom: 0; }
.conv-yes { color: var(--c-win); font-weight: 600; }
.conv-callout { background: var(--c-win-bg); border-left-color: var(--c-win); }

/* ===== Findings cards ============================================= */
.find-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.find-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.find-num {
  font-size: 32px; font-weight: 500; color: oklch(80% 0.04 250);
  letter-spacing: -0.04em; line-height: 1;
  position: absolute; right: 20px; top: 18px;
}
.find-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.35; padding-right: 32px; }
.find-body { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.find-stats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line); padding-top: 12px; }
.find-stats li { display: flex; justify-content: space-between; font-size: 11.5px; }
.find-stats span { color: var(--ink-3); }
.find-stats b { color: var(--c-win); font-weight: 600; }

/* ===== Pipeline =================================================== */

/* ===== Project info ============================================== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.proj-row { padding: 14px 22px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.proj-row:nth-child(even) { border-right: 0; }
.proj-row:nth-last-child(-n+2) { border-bottom: 0; }
.proj-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.proj-v { font-size: 13.5px; font-weight: 500; }

/* ===== Parity scatter (interactive) =============================== */
.parity-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.parity-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.parity-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--ink-2); }
.parity-leg-item { display: flex; align-items: center; gap: 6px; }
.parity-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.parity-dot.parity-sig { background: oklch(52% 0.17 145); border: 1.5px solid oklch(40% 0.15 145); }
.parity-dot.parity-ns { background: oklch(75% 0.04 250); border: 1.5px solid oklch(55% 0.04 250); }
.parity-leg-size { display: flex; align-items: center; gap: 4px; }
.parity-dot-sm, .parity-dot-md, .parity-dot-lg { background: oklch(75% 0.04 250); border-radius: 50%; border: 1.5px solid oklch(55% 0.04 250); display: inline-block; }
.parity-dot-sm { width: 7px; height: 7px; }
.parity-dot-md { width: 12px; height: 12px; }
.parity-dot-lg { width: 18px; height: 18px; }

.parity-filter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.parity-filter input { accent-color: var(--ink); }

.parity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.parity-plot-wrap { background: linear-gradient(180deg, #fafbfc 0%, var(--panel) 100%); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; }
.parity-svg { width: 100%; height: auto; display: block; }
.parity-axlabel { font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.parity-axtitle { font-size: 12px; fill: var(--ink); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.parity-diaglabel { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; fill: var(--ink-3); font-style: italic; letter-spacing: 0.04em; }
.parity-zonelabel { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.85; }
.parity-ptlabel { font-size: 11.5px; fill: var(--ink-2); font-weight: 500; pointer-events: none; }
.parity-ptlabel-focus { fill: var(--ink); font-weight: 700; font-size: 12.5px; }
.parity-pt circle { transition: transform 0.12s ease; }
.parity-pt:hover circle { transform: scale(1.08); transform-origin: center; }

/* Detail panel */
.parity-detail {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 18px 20px;
  overflow: hidden;
}
.pdetail-help { color: var(--ink-3); font-size: 13px; font-style: italic; }
.pdetail-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pdetail-cls { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
.pdetail-sig {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  padding: 3px 8px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.03em;
}
.pdetail-sig.on { background: oklch(52% 0.17 145); color: #fff; }
.pdetail-sig.off { background: var(--line); color: var(--ink-3); }

.pdetail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdetail-row.pdetail-hero { margin-bottom: 14px; }
.pdetail-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.pdetail-v.big { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }

.pdetail-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pdetail-st { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.pdetail-row2 { display: flex; gap: 16px; }
.pdetail-bar-row { display: flex; align-items: center; gap: 8px; }
.pdetail-tag { color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.pdetail-num { font-size: 13.5px; font-weight: 500; }

.pdetail-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pdetail-table th { text-align: right; padding: 4px 6px; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pdetail-table th:first-child { text-align: left; }
.pdetail-table td { padding: 4px 6px; text-align: right; }
.pdetail-table td:first-child { text-align: left; }

.pdetail-cont { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pdetail-cont-cell {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.pdetail-cont-cell span { font-size: 10px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; }
.pdetail-cont-cell b { font-size: 14px; font-weight: 500; }
.pdetail-cont-cell.hi-7b { border-color: oklch(85% 0.08 250); background: oklch(98% 0.02 250); }
.pdetail-cont-cell.hi-rgb { border-color: oklch(85% 0.08 60); background: oklch(98% 0.02 60); }

.pdetail-driver { margin-top: 14px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.pdetail-driver .pdetail-st { display: block; margin-bottom: 4px; }

@media (max-width: 900px) {
  .parity-body { grid-template-columns: 1fr; }
}

/* ===== Parity class legend ======================================== */
.parity-class-legend {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px;
}
.parity-class-chip {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  border-radius: 5px;
  padding: 4px 10px;
  font: inherit; font-size: 11.5px; color: var(--ink-2);
  cursor: pointer; transition: all 0.12s ease;
}
.parity-class-chip:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
.parity-class-chip.active { background: var(--panel); border-color: var(--ink-2); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.parity-class-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.parity-class-star { font-size: 9px; color: var(--c-win); margin-left: 1px; }
.parity-controls-r { display: flex; align-items: center; gap: 16px; }
.parity-ring.sig {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; border: 1.8px dashed oklch(52% 0.17 145);
  background: oklch(85% 0.10 145 / 0.4);
}

/* ===== Metrics explained ========================================== */
.metrics-explained .metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.metric-def-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.met-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.met-sym { font-size: 22px; font-weight: 600; color: var(--c-7b); letter-spacing: -0.02em; line-height: 1; }
.met-name { font-size: 14px; font-weight: 600; margin-top: 4px; }
.met-diagram { flex-shrink: 0; }
.met-formula {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--ink); font-weight: 500;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.met-formula sub { font-size: 0.7em; vertical-align: -0.2em; }
.mfrac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 4px; }
.mfrac > span:first-child { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.mfrac > span:last-child { padding-top: 1px; }
.formula-pair { display: flex; gap: 18px; flex-wrap: wrap; }
.met-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.cmhint-axis { font-family: 'IBM Plex Mono', monospace; font-size: 6px; fill: var(--ink-3); font-weight: 500; }

@media (max-width: 900px) {
  .metrics-explained .metrics-grid { grid-template-columns: 1fr; }
}

/* ===== Null distribution explorer ================================= */
.nullx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.nullx-class-strip {
  display: flex; gap: 4px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nullx-chip {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  border-radius: 5px; padding: 6px 12px;
  font: inherit; font-size: 12px; color: var(--ink-2);
  cursor: pointer; transition: all 0.12s ease;
}
.nullx-chip:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
.nullx-chip.active { background: var(--panel); border-color: var(--ink-2); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.nullx-chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.nullx-chip-star { font-size: 9px; color: var(--c-win); }

.nullx-summary {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg); border-radius: 8px;
}
.nullx-sumcell { display: flex; flex-direction: column; gap: 2px; }
.nullx-l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); font-weight: 600; }
.nullx-v { font-size: 14px; font-weight: 500; }
.nullx-v.big { font-size: 22px; letter-spacing: -0.01em; }

.nullx-foot { font-size: 11px; color: var(--ink-3); font-weight: 400; font-family: 'IBM Plex Sans', sans-serif; letter-spacing: 0.02em; margin-left: 4px; }

.nullx-help {
  margin-top: 14px; margin-bottom: 14px;
  padding: 12px 14px;
  background: oklch(96% 0.03 250);
  border: 1px solid oklch(85% 0.08 250 / 0.6);
  border-radius: 6px;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.nullx-help b { color: var(--ink); }

.nullx-plot-wrap { background: linear-gradient(180deg, #fafbfc 0%, var(--panel) 100%); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; }
.nullx-svg { width: 100%; height: auto; display: block; }
.nullx-axlabel { font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.nullx-axtitle { font-size: 11.5px; fill: var(--ink); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nullx-anno { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; fill: var(--ink-3); }
.nullx-anno-b { font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: oklch(40% 0.15 145); font-weight: 700; }
.nullx-anno-c { font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: oklch(50% 0.13 60); font-weight: 700; }

.nullx-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.5px; color: var(--ink-2);
}
.nullx-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.nullx-legend .sw.vline { width: 3px; height: 14px; }

@media (max-width: 900px) {
  .nullx-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Results visualisation (mini bar grid) ====================== */
.rviz-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; margin-top: 20px; }
.rviz-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.rviz-title { font-size: 15px; font-weight: 600; }
.rviz-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); }
.rviz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.rviz-grid {
  display: grid;
  grid-template-columns: 70px repeat(4, 1fr);
  gap: 6px;
  align-items: stretch;
}
.rviz-corner {}
.rviz-col-hd, .rviz-row-hd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.rviz-row-hd { background: var(--bg); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.rviz-cell {
  background: var(--bg);
  border-radius: 5px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.rviz-bar-row { display: flex; align-items: center; gap: 8px; }
.rviz-track { flex: 1; height: 6px; background: var(--panel); border-radius: 2px; overflow: hidden; }
.rviz-fill { height: 100%; border-radius: 2px; }
.rviz-v { font-size: 10.5px; min-width: 38px; text-align: right; color: var(--ink); }
.rviz-na { font-size: 12px; color: var(--ink-3); text-align: center; padding: 8px 0; }
.proj-row { padding: 14px 22px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.proj-row:nth-child(even) { border-right: 0; }
.proj-row:nth-last-child(-n+2) { border-bottom: 0; }
.proj-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; }
.proj-v { font-size: 13.5px; font-weight: 500; }

/* ===== Responsive ================================================= */
@media (max-width: 1100px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-nav { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-nav-list { flex-direction: row; flex-wrap: wrap; }
  .nav-item { flex: 0 0 auto; }
  .dash-nav-foot { flex-direction: row; gap: 14px; }
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .model-cards, .meth-grid, .pc-grid, .mb-grid, .find-grid { grid-template-columns: 1fr; }
  .find-grid { grid-template-columns: 1fr; }
  .bs-row, .bs-axis { grid-template-columns: 120px 1fr 160px; }
  .mcn-grid { grid-template-columns: 100px 1fr 1fr; }
}
