/* SpecialtyPulse: a quiet, readable analytical workspace. */
:root {
  --navy: #102235;
  --navy-mid: #183246;
  --navy-light: #244355;
  --teal: #0A7E8C;
  --teal-lt: #55BCC8;
  --teal-xlt: #80D4DE;
  --gold: #F4A830;
  --gold-lt: #FAC84A;
  --white: #F3F7FA;
  --ice: #D8E3ED;
  --muted: #A7B9C8;
  --border: #334A5E;
  --border-gold: rgba(244, 168, 48, 0.45);
  --surface: #152B3E;
  --surface-lt: #1C3549;
  --font-sans: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
  --text-kpi: 34px;
  --text-stat: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; width: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
}
::selection { background: var(--teal-xlt); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal-xlt); outline-offset: 3px; }
button { font: inherit; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.app { display: flex; flex-direction: column; height: 100%; min-height: 0; width: 100%; }

/* The header and navigation stay fixed; every page scrolls in the main pane. */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-logo {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--teal-lt);
  border-radius: 2px;
  color: var(--teal-xlt);
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.header-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.header-subtitle { font-size: 13px; color: var(--muted); margin-top: 1px; }
.header-right { flex-shrink: 0; }
.header-meta { font-size: 12px; color: var(--muted); text-align: right; }
.header-meta span { display: block; }
.header-meta .val { color: var(--ice); font-size: 13px; margin-top: 2px; }
.tab-bar {
  display: flex; gap: 8px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}
.tab-btn {
  padding: 13px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--teal-xlt); border-bottom-color: var(--teal-xlt); }
.tab-btn:focus-visible { outline-offset: -4px; }
.page-content { flex: 1; min-height: 0; min-width: 0; padding: 24px 32px 0; overflow-y: auto; }
.page-loading { padding: 32px 0; }
.demo-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border); font-size: 13px; }
.demo-toolbar nav { display: flex; gap: 20px; flex-shrink: 0; }
.demo-toolbar a, .calculation-check a { color: var(--teal-xlt); text-underline-offset: 3px; }
.demo-about { min-width: 0; flex: 1; color: var(--muted); }
.demo-about summary { cursor: pointer; color: var(--ice); }
.demo-about-body { max-width: 78ch; padding-top: 12px; }
.demo-about-body p + p { margin-top: 12px; }
.calculation-check { border-block: 1px solid var(--border); padding: 14px 0; font-size: 13px; line-height: 1.6; }
.calculation-check summary { cursor: pointer; color: var(--ice); }
.calculation-check-body { max-width: 78ch; padding-top: 12px; color: var(--muted); }
.calculation-check-body p { margin: 0 0 12px; }
.calculation-check-body ol { margin: 0 0 12px; padding-left: 22px; }
.calculation-check-body li + li { margin-top: 8px; }
.period-label { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.review-links { display: flex; gap: 12px 24px; flex-wrap: wrap; margin: 20px 0; }
.review-links button { text-align: left; line-height: 1.6; }

.standalone-note { margin-top: 32px; padding: 18px 0 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-status-row { display: flex; justify-content: flex-start; margin-bottom: 18px; }
.data-note { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--muted); }
.data-note strong { color: var(--ice); font-weight: 600; }

/* Panels are flat sections; space and type, rather than nested cards, set hierarchy. */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.page-grid > *, .main-grid > * { min-width: 0; }
.page-grid > .data-note { grid-column: 1 / -1; margin-bottom: 0; }
.span-full, .panel-wide { grid-column: 1 / -1; }
.panel, .chart-panel { border-top: 1px solid var(--border); padding: 20px 0 0; min-width: 0; }
.panel-header, .chart-panel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-title { color: var(--white); font-size: 16px; font-weight: 600; line-height: 1.4; }
.panel-count { color: var(--muted); font-size: 12px; }
.panel-header-right { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.chart-panel-body { min-height: 100px; }

/* Summary metrics are separated by rules, not color-coded boxes. */
.kpi-row { display: flex; gap: 0; padding: 4px 0 20px; }
.kpi-card { flex: 1; min-width: 0; padding: 0 24px; border-left: 1px solid var(--border); }
.kpi-card:first-child { border-left: none; padding-left: 0; }
.kpi-card:last-child { padding-right: 0; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.kpi-value { color: var(--white); font-size: var(--text-kpi); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.kpi-sub { color: var(--muted); font-size: 12px; }
.insight-strip { display: flex; gap: 0; flex-wrap: wrap; padding: 0 0 4px; }
.insight-card { flex: 1 1 220px; min-width: 0; padding: 0 24px; border-left: 1px solid var(--border); }
.insight-card:first-child { padding-left: 0; border-left: none; }
.insight-card:last-child { padding-right: 0; }
.insight-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.insight-value { color: var(--white); font-size: var(--text-stat); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.insight-detail { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.focus-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-left: 2px solid var(--teal-xlt); background: var(--surface); }
.focus-chip-label, .focus-chip-note { color: var(--muted); font-size: 13px; }
.focus-chip-value { color: var(--white); font-size: 14px; font-weight: 600; }
.focus-chip-clear { margin-left: auto; padding: 5px 10px; border: 1px solid var(--border); border-radius: 2px; background: transparent; color: var(--ice); font-size: 13px; cursor: pointer; }
.focus-chip-clear:hover { border-color: var(--teal-xlt); }

/* Procedure comparisons keep names in the document, outside chart axes. */
.procedure-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.procedure-controls label { color: var(--muted); font-size: 13px; font-weight: 500; }
.procedure-controls select { min-width: 220px; max-width: 100%; padding: 9px 32px 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; color: var(--white); font: inherit; cursor: pointer; }
.procedure-controls select:disabled { cursor: default; color: var(--muted); }
.procedure-ranking { list-style: none; }
.procedure-ranking-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) 130px; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid #263D51; }
.procedure-ranking-row:last-child { border-bottom: none; }
.procedure-identity { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.procedure-rank { width: 20px; flex-shrink: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.procedure-name { display: block; color: var(--ice); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.procedure-code { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.procedure-volume { min-width: 0; }
.procedure-measure { display: block; color: var(--ice); font-size: 13px; font-variant-numeric: tabular-nums; }
.procedure-bar-track { width: 100%; height: 9px; margin-top: 9px; background: var(--surface-lt); }
.procedure-bar { height: 100%; background: var(--teal-xlt); }
.procedure-payment { text-align: right; }
.procedure-measure-label { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Tables retain their width on small screens and scroll within their section. */
.data-table-wrap, .matrix-scroll { overflow: auto; max-height: 480px; scrollbar-width: thin; }
.overdue-table td:nth-child(1), .overdue-table td:nth-child(5), .overdue-table td:nth-child(6), .overdue-table td:nth-child(7) { white-space: nowrap; }
.data-table, .matrix-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .matrix-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--navy);
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 500;
  text-align: left; white-space: nowrap;
}
.data-table th { cursor: pointer; user-select: none; }
.data-table th:hover, .data-table th.sorted { color: var(--teal-xlt); }
.sort-arrow { font-size: 10px; }
.data-table td, .matrix-table td { padding: 12px; border-bottom: 1px solid #263D51; vertical-align: middle; color: var(--ice); font-size: 13px; }
.data-table tr:hover td, .matrix-table tr:hover td { background: var(--surface); }
.data-table tr:last-child td, .matrix-table tr:last-child td { border-bottom: none; }
.data-table tbody tr.clickable { cursor: pointer; }
.pressure-badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid; border-radius: 2px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.user-email { font-size: 13px; color: var(--ice); }
.role-pill { display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; color: var(--ice); }
.access-cell, .notes-cell { color: var(--muted); font-size: 12px; }
.access-all, .access-filter { font-size: 12px; color: var(--ice); }
.access-states { display: flex; flex-wrap: wrap; gap: 4px; max-width: 300px; }
.state-chip { padding: 1px 4px; border: 1px solid var(--border); border-radius: 2px; color: var(--ice); font-family: var(--font-mono); font-size: 11px; }

/* Governance status uses explicit text; colored dots never imply a live connection. */
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; color: var(--ice); }
.status-badge.pass { color: #A3E5BC; }
.status-badge.fail { color: #FCA5A5; border-color: rgba(248, 113, 113, 0.5); }
.status-badge.loading, .status-badge.sample { color: var(--muted); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pulse-dot.green { background: #A3E5BC; }
.pulse-dot.red { background: #FCA5A5; }
.pulse-dot.gray { background: var(--muted); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 20px; }
.role-card { padding-bottom: 16px; border-bottom: 1px solid #263D51; }
.role-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.role-name { font-size: 13px; font-weight: 500; color: var(--ice); text-transform: lowercase; }
.role-name::first-letter { text-transform: uppercase; }
.role-icon { display: none; }
.role-count { font-size: 30px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.role-desc { font-size: 12px; color: var(--muted); }
.check-list { margin: 0; display: flex; flex-direction: column; gap: 0; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #263D51; }
.check-icon { font-size: 13px; min-width: 16px; margin-top: 1px; }
.check-icon.pass { color: #A3E5BC; }
.check-icon.fail, .check-msg.fail { color: #FCA5A5; }
.check-icon.loading { color: var(--muted); }
.check-body { flex: 1; min-width: 0; }
.check-name { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 3px; }
.check-msg { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.pdp-note { margin-bottom: 14px; padding-left: 12px; border-left: 2px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--muted); }
.pdp-note strong { color: var(--ice); font-weight: 600; }
.empty-state { padding: 24px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--muted); font-size: 14px; }
.empty-icon { display: none; }
.skeleton { background: var(--surface-lt); min-height: 14px; border-radius: 2px; }

/* Optional summaries sit below the evidence, with the same hierarchy as other tools. */
.exec-brief { margin-top: 32px; border-top: 1px solid var(--border); }
.exec-brief > summary { padding: 16px 0; cursor: pointer; color: var(--ice); font-size: 15px; font-weight: 500; }
.exec-brief[open] > summary { margin-bottom: 4px; }
.exec-brief-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 0; }
.exec-brief-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.exec-brief-title { color: var(--ice); font-size: 15px; font-weight: 600; }
.exec-brief-sub, .exec-brief-unavail { color: var(--muted); font-size: 13px; }
.exec-brief-actions { display: flex; align-items: center; gap: 14px; }
.exec-brief-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 2px;
  background: transparent; color: var(--teal-xlt); font-size: 13px; font-weight: 500; cursor: pointer;
}
.exec-brief-btn:hover:not(:disabled) { background: var(--surface-lt); border-color: var(--teal-xlt); }
.exec-brief-link { background: transparent; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.exec-brief-link:hover { color: var(--white); }
.exec-brief-body { padding: 0 0 20px; }
.exec-brief-text { font-size: 14px; line-height: 1.7; color: var(--ice); max-width: 85ch; }
.brief-evidence { margin: 18px 0; overflow-x: auto; color: var(--muted); font-size: 13px; }
.brief-evidence > summary { cursor: pointer; padding-bottom: 10px; }
ul.brief-evidence { padding-left: 20px; }
.brief-evidence li + li { margin-top: 8px; }
.brief-evidence p + p { margin-top: 10px; }
.brief-evidence table { width: 100%; min-width: 560px; border-collapse: collapse; }
.brief-evidence th, .brief-evidence td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--border); font-size: 12px; }
.brief-evidence th { color: var(--ice); font-weight: 500; }
/* Charts use sans-serif labels and monospace only for tooltip values. */
.recharts-text { fill: var(--muted) !important; font-family: var(--font-sans) !important; }
.recharts-cartesian-grid-horizontal line, .recharts-cartesian-grid-vertical line { stroke: #263D51; }
.recharts-tooltip-wrapper { font-size: 12px; }
.recharts-legend-item-text { color: var(--ice) !important; font-family: var(--font-sans) !important; font-size: 12px !important; }
.chart-tip { background: var(--navy); border: 1px solid var(--border); border-radius: 2px; padding: 10px 12px; font-size: 12px; max-width: 340px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2); }
.chart-tip-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.chart-tip-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.chart-tip-dot { width: 7px; height: 7px; flex-shrink: 0; }
.chart-tip-name { color: var(--muted); }
.chart-tip-value { margin-left: auto; padding-left: 14px; color: var(--white); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.info-tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1; cursor: help; position: relative; vertical-align: middle; text-transform: none; flex-shrink: 0; }
.info-tip:hover, .info-tip:focus { border-color: var(--teal-xlt); color: var(--teal-xlt); }
.info-tip:hover::after, .info-tip:focus::after { content: attr(data-tip); position: absolute; top: 150%; right: 0; width: 280px; max-width: 70vw; padding: 12px; border: 1px solid var(--border); border-radius: 2px; background: var(--navy); color: var(--ice); font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; z-index: 100; pointer-events: none; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #456074; border-radius: 2px; }

@media (max-width: 1024px) {
  .page-grid, .main-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { flex-wrap: wrap; row-gap: 24px; }
  .kpi-card { flex: 1 1 40%; }
  .kpi-card:nth-child(odd) { border-left: none; padding-left: 0; }
  .insight-card { flex-basis: 30%; }
}
@media (max-width: 700px) {
  .header { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .header-title { font-size: 18px; }
  .header-meta { text-align: left; }
  .header-right { padding-left: 46px; width: 100%; }
  .header-meta span { display: inline; }
  .header-meta .val { font-size: 12px; margin-left: 8px; }
  .tab-bar { padding: 0 12px; gap: 0; }
  .tab-btn { padding: 12px 10px; font-size: 13px; }
  .page-content { padding: 20px 16px 0; }
  .page-grid, .main-grid { gap: 24px; }
  .panel, .chart-panel { padding-top: 16px; }
  .panel-header, .chart-panel-header { gap: 8px; }
  .panel-title { font-size: 15px; }
  .panel-header-right { flex-wrap: wrap; }
  .kpi-card { padding: 0 16px; }
  .kpi-value { font-size: 28px; }
  .insight-strip { flex-direction: column; gap: 20px; }
  .insight-card { padding: 0; border-left: none; flex: auto; }
  .insight-value { font-size: 19px; margin-top: 5px; }
  .procedure-controls { align-items: stretch; flex-direction: column; gap: 6px; }
  .procedure-controls select { width: 100%; min-width: 0; }
  .procedure-ranking-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 12px 20px; }
  .procedure-identity { grid-column: 1 / -1; gap: 10px; }
  .procedure-volume { padding-left: 30px; }
  .procedure-payment { align-self: start; }
  .role-grid { column-gap: 16px; }
  .role-name { font-size: 12px; }
  .exec-brief-heading { gap: 6px; }
  .exec-brief-actions { width: 100%; }
  .standalone-note { margin-top: 24px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.pipeline-receipt-link { display: inline-block; margin-left: 20px; }

.review-workspace { border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.review-handoff { padding-bottom: 24px; font-size: 13px; line-height: 1.6; }
.review-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; padding: 4px 0 24px; }
.review-start h2 { color: var(--white); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.review-start p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.pipeline-scope-control { margin-top: 14px; }
.review-start-button { padding: 12px 20px; border: 1px solid var(--teal-xlt); border-radius: 2px; background: var(--teal-xlt); color: var(--navy); font-weight: 600; cursor: pointer; }
.review-start-button:hover { background: var(--ice); border-color: var(--ice); }
.review-handoff > summary, .review-evaluation > summary { cursor: pointer; color: var(--ice); font-weight: 500; }
.review-handoff-body { max-width: 86ch; color: var(--muted); }
.review-handoff-body p { margin: 0 0 14px; }
.review-handoff-body h3 { color: var(--white); font-size: 16px; margin: 18px 0 10px; }
.review-handoff-body ul, .review-handoff-body ol { padding-left: 22px; margin: 0 0 18px; }
.review-handoff-body li + li { margin-top: 8px; }
.review-handoff .procedure-controls { margin: 14px 0; flex-wrap: wrap; }
.review-handoff select { max-width: 100%; }
.review-status { font-size: 12px; }
.pipeline-hygiene { border-left: 2px solid var(--gold); padding: 4px 16px; color: var(--ice); }
.pipeline-hygiene h2 { font-size: 17px; margin: 0 0 10px; }
.pipeline-hygiene p { margin: 0 0 10px; line-height: 1.6; }
.pipeline-hygiene p:last-child { margin-bottom: 0; }
.review-questions { margin: 18px 0; }
.review-questions > div { border-top: 1px solid var(--border); padding: 12px 0; }
.review-questions dt { color: var(--ice); font-weight: 500; }
.review-questions dd { margin: 4px 0 0; }
.review-handoff a { color: var(--teal-xlt); text-underline-offset: 3px; }
.review-evaluation { border-top: 1px solid var(--border); padding-top: 14px; }
.review-evaluation[open] > summary { margin-bottom: 12px; }
.review-evaluation { margin-top: 20px; }
.review-evaluation p { margin: 12px 0; }
.review-evaluation ul { padding-left: 22px; }
.review-evaluation li + li { margin-top: 8px; }
.review-editor { border-top: 1px solid var(--border); padding: 8px 0 20px; }
.review-editor h4 { color: var(--ice); font-size: 13px; margin: 18px 0 10px; }
.review-fields { display: grid; gap: 8px; margin: 18px 0; }
.review-fields label { color: var(--ice); margin-top: 8px; font-weight: 500; }
.review-fields input, .review-fields textarea { width: 100%; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; color: var(--white); font: inherit; line-height: 1.6; }
.review-fields textarea { resize: vertical; }
.review-fields input::placeholder, .review-fields textarea::placeholder { color: var(--muted); }
.review-evidence > li { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; }
.review-evidence span { overflow-wrap: anywhere; }
.review-evidence-summary { color: var(--muted); font-size: 12px; margin: 4px 0 8px !important; }
.review-evidence-detail { margin-top: 6px; }
.review-evidence-detail > summary { cursor: pointer; color: var(--teal-xlt); font-size: 12px; }
.review-evidence-detail[open] { margin-bottom: 18px; }
.review-context { margin-bottom: 20px; }
.review-checklist { color: var(--muted); font-size: 12px; }
.review-editor > a { display: inline-block; margin-bottom: 10px; }
.account-discovery { margin: 20px 0; padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.account-discovery h4 span { color: var(--muted); font-weight: 400; }
.account-example { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border); overflow-wrap: anywhere; }
.account-example > summary { cursor: pointer; color: var(--ice); }
.account-example .review-questions { margin: 10px 0; }
.account-example .procedure-add:disabled { color: var(--muted); cursor: default; }
.procedure-with-action { grid-template-columns: minmax(200px, 1.4fr) minmax(120px, 1fr) 100px 112px; gap: 20px; }
.procedure-add { padding: 8px 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 2px; color: var(--teal-xlt); font-size: 13px; cursor: pointer; }
.procedure-add:hover { border-color: var(--teal-xlt); }
.comparison-controls { margin-bottom: 20px; }
.comparison-controls select { min-width: 0; }
.comparison-controls #comparison-procedure { flex: 1 1 300px; }
@media (max-width: 700px) {
  .comparison-controls #comparison-procedure { flex: initial; }
}
.comparison-heading { color: var(--ice); font-size: 16px; margin-bottom: 14px; }
.procedure-evidence { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 20px; }
.procedure-evidence p { margin: 14px 0; }
.procedure-evidence a { color: var(--teal-xlt); text-underline-offset: 3px; }
.procedure-evidence code { overflow-wrap: anywhere; font-size: 11px; }
.comparison-table-wrap { width: 100%; overflow-x: auto; }
.comparison-table { width: 100%; min-width: 420px; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
.comparison-table th { color: var(--ice); font-weight: 500; }
.comparison-table th span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.review-evidence li > div { min-width: 0; flex: 1; }
@media (max-width: 800px) {
  .procedure-with-action { grid-template-columns: minmax(0, 1fr) 110px; gap: 12px 20px; }
  .procedure-with-action .procedure-identity { grid-column: 1 / -1; }
  .procedure-with-action .procedure-add { grid-column: 1 / -1; justify-self: start; margin-left: 30px; }
}
@media (max-width: 600px) {
  .review-start { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .review-start h2 { font-size: 23px; }
  .review-start-button { justify-self: start; }
}

/* Short summaries lead; methodology stays available on demand. */
.pipeline-scope-control { margin-top: 14px; }
.pipeline-hygiene-metrics { display: flex; flex-wrap: wrap; gap: 6px 24px; font-variant-numeric: tabular-nums; }
.pipeline-hygiene-metrics strong { color: var(--white); }
.data-table-block { min-width: 0; max-width: 100%; }
.paginated-table .data-table-wrap { max-height: none; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 12px; }
.table-pagination > div { display: flex; align-items: center; gap: 12px; }
.table-pagination button { padding: 7px 11px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface); color: var(--ice); cursor: pointer; }
.table-pagination button:hover:not(:disabled) { border-color: var(--teal-xlt); color: var(--white); }
.table-pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.table-page-count { font-variant-numeric: tabular-nums; }
@media (min-width: 701px) {
  .pipeline-kpis { flex-wrap: nowrap; }
  .pipeline-kpis .kpi-card { flex: 1; padding: 0 24px; border-left: 1px solid var(--border); }
  .pipeline-kpis .kpi-card:first-child { padding-left: 0; border-left: none; }
  .pipeline-kpis .kpi-card:last-child { padding-right: 0; }
}
@media (max-width: 600px) {
  .demo-toolbar { flex-wrap: wrap; gap: 12px; }
  .demo-about { flex-basis: 100%; }
  .table-pagination > div { gap: 8px; }
}

