/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4d;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3d8bfd;
  --accent-muted: #2563c9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

main {
  padding: 1.5rem 2rem;
  max-width: 1200px;
}

p.placeholder {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.summary-card-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.summary-card-value {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.summary-card-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

table.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.numeric {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--border);
  color: var(--text);
}

.badge-positive {
  color: #7dd3a8;
}

.badge-negative {
  color: #f0a8a8;
}

.trend-placeholder {
  padding: 0.25rem 0;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 120px;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.trend-bar-wrap {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.trend-bar {
  width: 100%;
  max-width: 48px;
  margin-top: auto;
  background: linear-gradient(180deg, var(--accent), var(--accent-muted));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

.trend-bar-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

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

.admin-grid {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.app-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-brand a {
  color: var(--text);
}

.app-brand a:hover {
  text-decoration: none;
  color: var(--accent);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.main-nav a[data-active="true"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.auth-placeholder {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
}

/* Confidence / evidence badge pattern (Phase 1 MVP). */
.badge-complete {
  color: #7dd3a8;
}

.badge-partial {
  color: #fbbf24;
}

.badge-low-confidence {
  color: #f0a8a8;
}

.badge-unmapped {
  color: #94a3b8;
}

/* Persistent top filter bar (mock controls until Prisma wiring). */
.filter-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 20, 25, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.filter-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  outline: none;
}

.filter-apply {
  white-space: nowrap;
  background: linear-gradient(180deg, var(--accent), var(--accent-muted));
  border: none;
  color: #07111a;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.filter-apply:hover {
  filter: brightness(1.06);
}

@media (max-width: 1100px) {
  .filter-bar-inner {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.admin-subnav {
  display: flex;
  gap: 0.75rem;
  margin: -0.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-subnav-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.admin-subnav-link.active,
.admin-subnav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.admin-subnav-link.active {
  font-weight: 600;
}

.admin-module-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.admin-module-card:hover {
  border-color: var(--accent-muted);
  text-decoration: none;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 0.75rem 1rem;
  gap: 0.75rem 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-input:-moz-read-only {
  opacity: 0.85;
}

.form-input:read-only {
  opacity: 0.85;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-muted);
  color: #fff;
}

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

.btn-danger {
  background: #5c2b2b;
  border-color: #7a3a3a;
}

.config-status-draft {
  background: #3a3a2a;
}

.config-status-active {
  background: #1f4d3a;
}

.config-status-retired {
  background: #3a3a3a;
}


/* Operational reporting layout and keyboard access. */
:focus-visible { outline: 3px solid #8fc7ff; outline-offset: 3px; }
.skip-link { position:fixed; left:1rem; top:-5rem; padding:.8rem 1rem; background:var(--surface); z-index:100; }
.skip-link:focus { top:1rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
main { width:100%; max-width:1600px; margin:0 auto; }
.report-context { display:flex; gap:1.2rem; align-items:center; flex-wrap:wrap; border-block:1px solid var(--border); padding:1rem 0; margin-bottom:1.5rem; color:var(--muted); }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-gap:1rem; gap:1rem; margin:1.25rem 0; }
.queue-links { display:flex; gap:1.5rem; flex-wrap:wrap; margin:1.5rem 0; }
.clinical-caveat { padding:1rem; border-left:3px solid #bfa260; background:var(--surface); line-height:1.6; }
.panel { margin-bottom:1.25rem; }
.data-table th { text-align:left; } .data-table tbody tr:hover { background:rgba(130,170,210,.06); }
.table-wrap { overflow-x:auto; max-width:100%; }
button,input,select { min-height:36px; } input[type=checkbox] { min-height:20px; }
.filter-bar-inner { flex-wrap:wrap; } .main-nav { flex-wrap:wrap; }
@media(max-width:850px) { .summary-grid,.two-col { grid-template-columns:1fr 1fr; } main { padding:1rem; } }
@media(max-width:560px) { .summary-grid,.two-col { grid-template-columns:1fr; } .report-context { gap:.65rem; } }

.comparison-heading {display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;}
.comparison-heading label {font-size:.8rem;color:var(--muted);}
.data-table tbody th {text-transform:none;font-weight:500;letter-spacing:normal;}
.trend-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:1rem; }
.trend-controls label { display:flex; flex-direction:column; gap:.35rem; max-width:100%; }
.trend-controls select,.trend-controls input { padding:.5rem; max-width:100%; }
.trend-controls p { flex-basis:100%; }
.trend-chart { margin:1.5rem 0; }
.trend-chart svg { width:100%; max-height:380px; }
.trend-legend { display:flex; flex-wrap:wrap; gap:1rem; list-style:none; padding:0; }
.trend-legend span { display:inline-block; width:1.25rem; height:.3rem; margin-right:.4rem; vertical-align:middle; }

/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/enterprise.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
/* TORCH presentation tokens. Data and authorization remain server-owned. */
:root { --bg:#f3f6f8; --surface:#fff; --border:#d9e2e8; --text:#203442; --muted:#526575; --accent:#076b70; --accent-muted:#08585d; --radius:10px; }
body { font-size:14px; line-height:1.5; }
.app-shell { display:flex; min-height:100vh; }
.app-workspace { flex:1 1; min-width:0; }
.app-sidebar { flex:0 0 238px; width:238px; position:-webkit-sticky; position:sticky; top:0; height:100vh; overflow-y:auto; background:#142e3a; color:#edf4f7; padding:24px 14px; }
.sidebar-brand { display:flex; align-items:center; gap:12px; font-size:23px; font-weight:750; letter-spacing:.08em; padding:0 8px 20px; }
.sidebar-brand small { display:block; font-size:10px; font-weight:400; letter-spacing:.02em; }
.brand-mark { display:grid; place-items:center; width:34px; height:38px; border:1px solid #7aaeb1; border-radius:8px; color:#b4e2db; }
.nav-toggle { background:transparent; color:#d5e5eb; border:1px solid #52707d; border-radius:6px; width:100%; font-size:11px; min-height:30px; cursor:pointer; }
.main-nav { display:block; margin-top:24px; }
.nav-group { margin-bottom:22px; }
.nav-group-title { color:#a8c0cd; font-size:10px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; margin:0 12px 6px; }
.main-nav a { display:flex; align-items:center; gap:11px; padding:10px 12px; border:0; border-radius:6px; color:#d5e5eb; font-size:13px; margin:2px 0; }
.main-nav a svg { flex-shrink:0; }
.main-nav a:hover { background:#264654; color:#fff; }
.main-nav a[data-active="true"] { background:#315661; color:#fff; box-shadow:inset 3px 0 #91d8cc; }
.sidebar-footer { color:#a8c0cd; font-size:11px; padding:8px 12px; }
.nav-collapsed { width:82px; flex-basis:82px; padding-inline:10px; }
.nav-collapsed .nav-label,.nav-collapsed .nav-group-title { display:none; }
.nav-collapsed .sidebar-brand { padding-inline:12px; }
.nav-collapsed .nav-toggle { font-size:10px; line-height:1.2; padding:6px 2px; }
.nav-collapsed .main-nav a { justify-content:center; }
.app-header { min-height:65px; padding:14px 30px; }
.workspace-label { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.02em; }
.auth-placeholder { border:0; background:var(--bg); border-radius:30px; padding:5px 12px; overflow-wrap:anywhere; }
main { padding:28px 30px 48px; }
.page-header { margin-bottom:24px; }
.page-title { font-size:28px; letter-spacing:-.035em; font-weight:650; }
.page-subtitle { max-width:85ch; margin-top:5px; }
h2,.section-title { font-size:17px; letter-spacing:-.015em; margin-top:0; }
h3 { font-size:14px; }
p { line-height:1.65; }
p a,li a { text-decoration:underline; text-underline-offset:3px; }
.panel { padding:22px; border-radius:var(--radius); box-shadow:0 1px 2px #20344204; }
.summary-card { padding:22px; border-radius:var(--radius); border-top:3px solid #80a9ab; }
.summary-card-label { text-transform:none; letter-spacing:0; font-size:12px; font-weight:600; }
.summary-card-value { font-size:32px; letter-spacing:-.04em; margin:10px 0; }
.summary-card-hint { font-size:12px; }
.report-context { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:12px 16px; gap:16px; font-size:12px; }
.queue-links a { border:1px solid var(--border); padding:10px 14px; border-radius:6px; background:var(--surface); font-weight:600; font-size:12px; }
.clinical-caveat { background:#fffaf0; border-left-color:#aa7921; color:#625025; padding:12px 16px; font-size:12px; }
.filter-bar { position:relative; background:var(--surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
.filter-bar-inner { max-width:none; padding:16px 30px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.filter-label { text-transform:none; font-size:12px; font-weight:600; letter-spacing:0; }
input,select,textarea { background:var(--surface); color:var(--text); font:inherit; border:1px solid #8a9ca9; border-radius:6px; padding:8px; max-width:100%; }
.filter-select { font-size:13px; border-color:#8a9ca9; }
button { font:inherit; cursor:pointer; }
.filter-apply,.btn-primary { background:var(--accent); color:white; border-radius:6px; }
.filter-apply:hover { background:var(--accent-muted); filter:none; }
.filter-select:focus-visible { outline:3px solid #076b70; }
:focus-visible { outline:3px solid #076b70; outline-offset:3px; }
.app-sidebar :focus-visible { outline-color:#aee4d8; }
.table-wrap { background:var(--surface); }
table.data-table th,table.data-table td { padding:13px 14px; vertical-align:top; }
table.data-table thead th { background:#f3f6f8; color:#405565; text-transform:none; font-size:12px; font-weight:650; letter-spacing:0; }
table.data-table .numeric { text-align:right; }
table.data-table tbody tr:hover td { background:#f4f9f9; }
table.data-table tbody th { color:var(--text); }
caption { text-align:left; padding:12px 14px; font-weight:600; color:var(--muted); font-size:12px; }
.badge { font-size:11px; padding:3px 7px; border:1px solid #c5d1da; background:#edf1f5; color:#405565; font-weight:600; }
.badge-positive,.badge-complete,.config-status-active { color:#166044; background:#eaf5ed; border-color:#b8d9c4; }
.badge-negative,.badge-due { color:#845017; background:#fff3df; border-color:#ddc598; }
.badge-partial,.badge-low-confidence,.badge-review,.config-status-draft { color:#36577b; background:#ecf2fa; border-color:#c5d6ea; }
.badge-unmapped,.badge-unknown,.config-status-retired { color:#4a5b6b; background:#edf1f5; border-color:#c5d1da; }
.btn-danger { color:#fff; }
details { padding:12px 0; }
summary { color:var(--accent); cursor:pointer; font-weight:600; }
.methodology { border-top:1px solid var(--border); margin-top:16px; font-size:12px; }
.workflow-steps { display:flex; gap:12px; flex-wrap:wrap; padding:0; list-style:none; margin:0 0 22px; counter-reset:step; }
.workflow-steps a { display:block; padding:9px 14px; border:1px solid var(--border); border-radius:6px; background:white; font-size:12px; text-decoration:none; }
.workflow-steps a:before { counter-increment:step; content:counter(step) '  '; font-weight:700; margin-right:8px; }
.filter-group { min-width:0; border:0; border-top:1px solid var(--border); padding:18px 0; margin:0; }
.filter-group legend { font-size:13px; font-weight:700; padding:0 10px 0 0; }
.population-form { display:block !important; }
.distribution-bars { list-style:none; padding:0; }
.distribution-bars li { padding:8px 0; }
.distribution-bars meter { display:block; width:100%; height:14px; accent-color:var(--accent); }
.trend-chart { padding:12px; background:#fafcfd; border:1px solid var(--border); border-radius:8px; }
.trend-legend { font-size:12px; }
.admin-subnav { flex-wrap:wrap; margin-top:0; }
.admin-subnav-link { padding:6px 10px; border-radius:5px; }
.admin-subnav-link.active { color:var(--accent); background:#e7f2f2; }
@media(min-width:1100px) { .table-wrap { max-height:650px; } table.data-table thead th { position:-webkit-sticky; position:sticky; top:0; z-index:1; } }
@media(max-width:1100px) { .app-sidebar { width:210px; flex-basis:210px; } .app-sidebar.nav-collapsed { width:82px; flex-basis:82px; } .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .app-shell { display:block; } .app-sidebar,.app-sidebar.nav-collapsed { position:relative; width:100%; height:auto; padding:12px 16px; } .sidebar-brand { padding:0; font-size:19px; } .sidebar-brand small,.sidebar-footer { display:none; } .nav-toggle { width:auto; position:absolute; right:16px; top:16px; padding:6px 10px; } .main-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-gap:8px; gap:8px; margin-top:18px; } .nav-group { margin-bottom:8px; } .nav-collapsed .main-nav { display:none; } .nav-collapsed .sidebar-brand .nav-label { display:block; } .app-header { padding:12px 16px; } main { padding:22px 16px; } .filter-bar-inner { padding:16px; grid-template-columns:repeat(2,minmax(0,1fr)); } .panel { padding:16px; } .page-title { font-size:24px; } }
@media(max-width:450px) { .summary-grid,.two-col { grid-template-columns:1fr; } .filter-bar-inner { grid-template-columns:1fr; } .nav-toggle { max-width:130px; } }
@media print { .app-sidebar,.app-header,.filter-bar { display:none; } .app-shell { display:block; } main { padding:0; } .panel { page-break-inside:avoid; break-inside:avoid; } }
.population-shortcuts { display:flex; justify-content:flex-end; align-items:center; gap:12px; flex-wrap:wrap; padding:0 0 18px; font-size:12px; }
.population-shortcuts span { color:var(--muted); margin-right:auto; }
.payer-stats > div { border:1px solid var(--border); border-radius:8px; padding:16px; background:#f8fafb; }
.payer-stats dt { font-size:12px; }
.payer-controls label { font-size:12px; }
.payer-stats > section { min-width:0; }
.payer-stats > section ul { padding-left:18px; font-size:13px; }
.payer-controls button { border:1px solid var(--accent-muted); }
.filter-group .payer-controls { margin-top:5px; }
.patient-identity { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); grid-gap:12px 24px; gap:12px 24px; padding:0; list-style:none; font-size:13px; }
@media(min-width:761px) and (max-width:1250px) { .two-col { grid-template-columns:1fr; } }
.coverage-bars { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); grid-gap:14px 28px; gap:14px 28px; padding:0; list-style:none; }
.coverage-bars li { display:grid; grid-template-columns:1fr auto; grid-gap:5px 14px; gap:5px 14px; font-size:12px; }
.coverage-bars meter { width:100%; height:16px; grid-column:1/-1; }
.card-grid:has(.admin-module-card) { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
/* Grid children must shrink so dense tables scroll inside their own region. */
.two-col > *, .summary-grid > *, .panel, .section { min-width:0; }
.comparison-heading select { max-width:100%; }
.payer-stats, .report-context { min-width:0; overflow-wrap:anywhere; }

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/torch-brand.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* Official TORCH identity. Clinical state colors remain independent of the brand. */
:root {
 --torch-orange:#b73500; --torch-orange-dark:#943000; --torch-orange-soft:#fff0e6;
 --torch-navy:#102f46; --torch-blue:#2a628c; --torch-blue-light:#e9f1f7;
 --torch-white:#fff; --torch-warm:#f7f6f3; --torch-line:#dce2e6;
 --torch-slate:#536575; --torch-green:#176341; --torch-green-soft:#eaf5ed;
 --torch-amber:#805400; --torch-amber-soft:#fff5df; --torch-red:#a82a2a;
 --torch-gray:#edf1f4; --torch-shadow:0 2px 7px rgb(16 47 70 / 4%);
 --bg:var(--torch-warm); --surface:var(--torch-white); --text:var(--torch-navy);
 --muted:var(--torch-slate); --border:var(--torch-line); --accent:var(--torch-orange-dark); --accent-muted:var(--torch-orange);
}
.app-sidebar { background:var(--torch-orange-dark); padding:18px 12px; }
.sidebar-brand { justify-content:center; padding:0 0 16px; }
.torch-logo { display:block; width:auto; height:172px; max-width:100%; object-fit:contain; padding:10px; background:var(--torch-white); border-radius:5px; }
.nav-collapsed .torch-logo { height:78px; padding:4px; }
.nav-collapsed .sidebar-brand { padding:0 0 14px; }
.nav-toggle { color:var(--torch-white); border-color:rgb(255 255 255 / 65%); }
.nav-group { margin-bottom:17px; }
.nav-group-title,.sidebar-footer { color:var(--torch-white); }
.main-nav { margin-top:18px; }
.main-nav a { color:var(--torch-white); }
.main-nav a:hover { color:var(--torch-white); background:rgb(255 255 255 / 12%); }
.main-nav a[data-active="true"] { background:var(--torch-orange-soft); color:var(--torch-orange-dark); box-shadow:inset 3px 0 var(--torch-white); }
.sidebar-footer { text-align:center; font-family:Georgia,serif; font-style:italic; border-top:1px solid rgb(255 255 255 / 50%); margin:22px 12px 0; padding-top:16px; }
.app-sidebar :focus-visible { outline-color:var(--torch-white); }
.main-nav a[data-active="true"]:focus-visible { outline-color:var(--torch-navy); }
.workspace-label { text-transform:uppercase; letter-spacing:.12em; font-size:10px; color:var(--torch-navy); }
.workspace-label span { margin:0 10px; color:var(--muted); }
.panel,.summary-card { box-shadow:var(--torch-shadow); }
.summary-card { border-top:1px solid var(--border); position:relative; padding:18px; }
.summary-card:before { content:""; display:block; width:24px; height:3px; background:var(--torch-blue); margin-bottom:12px; }
.summary-card-value { color:var(--torch-navy); }
.executive-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.executive-kpis .summary-card-value { font-size:29px; }
.executive-kpis .summary-card:nth-child(2):before { background:var(--torch-orange); }
.executive-kpis .summary-card:nth-child(3):before { background:var(--torch-amber); }
.executive-kpis .summary-card:nth-child(4):before { background:var(--torch-slate); }
.torch-welcome { padding:22px 26px; margin-bottom:22px; border:1px solid var(--border); border-left:5px solid var(--torch-orange); border-radius:8px; background:var(--torch-orange-soft); display:flex; gap:24px; justify-content:space-between; align-items:center; }
.torch-welcome .page-header { margin:0; }
.torch-welcome .page-title { font-size:28px; }
.torch-welcome .rural-identity { color:var(--torch-orange-dark); text-transform:uppercase; letter-spacing:.18em; font-size:10px; font-weight:700; min-width:140px; border-left:1px solid var(--torch-orange); padding-left:22px; }
.executive-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr; grid-gap:16px; gap:16px; align-items:stretch; }
.executive-grid > * { min-width:0; }
.executive-grid .panel { padding:18px; }
.executive-grid h2 { font-size:15px; }
.executive-grid .coverage-bars { display:block; }
.executive-grid .coverage-bars li { margin:12px 0; }
.population-total { display:flex; align-items:baseline; gap:10px; margin:14px 0; font-size:12px; color:var(--muted); }
.population-total strong { font-size:32px; color:var(--text); letter-spacing:-.04em; }
.opportunity-list { padding:0; list-style:none; }
.opportunity-list li { padding:13px 0; border-bottom:1px solid var(--border); display:flex; gap:12px; align-items:center; justify-content:space-between; }
.opportunity-list strong { font-size:23px; font-feature-settings:"tnum"; font-variant-numeric:tabular-nums; }
.opportunity-list a { font-size:12px; }
.network-summary { list-style:none; padding:0; }
.network-summary li { margin-bottom:14px; }
.network-summary li > div { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.network-summary meter { width:100%; height:14px; }
.torch-mission { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 24px; background:var(--torch-orange-soft); border-radius:8px; margin-top:20px; }
.torch-mission strong { color:var(--torch-orange-dark); }
.torch-mission p { margin:5px 0; font-size:12px; }
.torch-mission em { font-family:Georgia,serif; font-size:18px; }
.clinical-caveat { color:var(--torch-amber); background:var(--torch-amber-soft); border-left-color:var(--torch-amber); }
.badge-review,.badge-partial,.config-status-draft { color:var(--torch-amber); background:var(--torch-amber-soft); border-color:var(--torch-amber); }
.badge-unknown,.badge-unmapped,.badge-low-confidence,.config-status-retired { color:var(--torch-slate); background:var(--torch-gray); border-color:var(--border); }
.badge-positive,.badge-complete,.config-status-active { color:var(--torch-green); background:var(--torch-green-soft); }
.badge-due,.badge-negative { color:var(--torch-orange-dark); background:var(--torch-orange-soft); border-color:var(--torch-orange); }
.btn-primary,.filter-apply,.payer-controls button { background:var(--torch-orange-dark); border-color:var(--torch-orange-dark); color:var(--torch-white); }
:focus-visible,.filter-select:focus-visible { outline-color:var(--torch-blue); }
.admin-subnav-link.active { background:var(--torch-orange-soft); color:var(--torch-orange-dark); }
.trend-chart { background:var(--torch-white); }
meter { accent-color:var(--torch-blue); }
meter::-webkit-meter-bar { background:var(--torch-gray); border:0; border-radius:2px; }
meter::-webkit-meter-optimum-value { background:var(--torch-blue); border-radius:2px; }
meter::-moz-meter-bar { background:var(--torch-blue); }
.filter-bar-inner { gap:12px; }
.filter-help { padding:0 30px 12px; display:flex; justify-content:space-between; gap:12px; align-items:center; font-size:11px; color:var(--muted); }
.filter-help button { min-height:30px; padding:4px 12px; background:var(--surface); border:1px solid var(--border); border-radius:5px; color:var(--accent); }
@media(max-width:1250px) { .executive-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .executive-grid { grid-template-columns:1fr 1fr; } .executive-grid > :last-child { grid-column:1/-1; } }
@media(max-width:760px) { .torch-logo { height:82px; } .sidebar-brand { justify-content:flex-start; padding-bottom:0; } .nav-collapsed .torch-logo { height:64px; } .torch-welcome { padding:18px; } .torch-welcome .rural-identity { display:none; } .executive-grid { grid-template-columns:1fr; } .executive-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .torch-mission { display:block; } .filter-help { padding:0 16px 12px; } }
@media(max-width:450px) { .executive-kpis { grid-template-columns:1fr; } }

/* Focused executive polish; data semantics and shared component structure are unchanged. */
.app-sidebar:not(.nav-collapsed) { width:218px; flex-basis:218px; }
.app-sidebar { padding-top:14px; }
.torch-logo { height:150px; }
.sidebar-brand { padding-bottom:12px; }
.main-nav { margin-top:14px; }
.nav-group { margin-bottom:14px; }
.main-nav a { padding:9px 10px; gap:10px; }
.torch-welcome { background:var(--torch-warm); border:0; border-radius:0; padding:14px 0 20px; margin-bottom:14px; }
.torch-welcome .page-title { font-size:34px; line-height:1.15; }
.torch-welcome .rural-identity { font-family:Georgia,serif; font-size:11px; }
.executive-kpis .summary-card { padding:14px 12px; }
.executive-kpis .summary-card:before { margin-bottom:8px; }
.executive-kpis .summary-card-value { margin:8px 0; font-size:28px; }
.executive-kpis .summary-card-hint { font-size:11px; }
.executive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.executive-grid .panel { margin-bottom:0; padding:18px; }
.executive-grid h2 { font-size:17px; }
.executive-grid .comparison-heading > a { font-size:12px; white-space:nowrap; }
.performance-summary { list-style:none; padding:0; }
.performance-summary li { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,1fr); grid-gap:14px; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); font-size:12px; }
.performance-summary li > div { display:flex; gap:10px; align-items:center; }
.performance-summary meter { flex:1 1; min-width:0; height:20px; }
.performance-summary strong { min-width:45px; font-feature-settings:"tnum"; font-variant-numeric:tabular-nums; }
.network-summary li { border-bottom:1px solid var(--border); padding-bottom:10px; }
.torch-mission { background:transparent; border-top:1px solid var(--border); border-radius:0; padding:16px 0; }
.filter-bar-inner { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 20px; padding-block:14px 8px; }
.filter-help { padding-bottom:10px; }
.report-context { padding:8px 12px; }
@media (max-width:1250px) { .executive-grid > :last-child { grid-column:auto; } }
@media (max-width:760px) {
 .app-sidebar:not(.nav-collapsed) { width:100%; flex-basis:auto; }
 .torch-logo { height:82px; }
 .executive-grid { grid-template-columns:1fr; }
 .filter-bar-inner { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .torch-welcome .page-title { font-size:28px; }
}
@media (max-width:450px) { .filter-bar-inner { grid-template-columns:1fr; } .performance-summary li { grid-template-columns:1fr; gap:4px; } }
.user-administration { display:grid; grid-template-columns:minmax(0,1fr); grid-gap:20px; gap:20px; }
.user-administration > .panel { min-width:0; }
.user-directory { min-width:850px; width:100%; }
.user-directory th:first-child { min-width:240px; }
.user-administration form { max-width:960px; }
.user-administration form label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.user-administration form label:has(input[type=checkbox]) { flex-direction:row; align-items:center; }
.user-administration form input:not([type=checkbox]),.user-administration form select { width:100%; }
.user-administration fieldset fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-gap:14px; gap:14px; padding:18px; border:1px solid var(--border); border-radius:8px; }
.user-administration button { min-height:36px; padding:6px 14px; }
.organization-selection { grid-column:1/-1; padding:12px 20px; border:1px solid var(--border); border-radius:6px; }
.organization-selection summary { cursor:pointer; font-weight:600; }
.organization-selection label { display:inline-flex; flex-direction:column; vertical-align:top; gap:6px; width:min(100%,360px); padding:10px; }
.organization-selection select { width:100%; }
@media(max-width:650px){.user-administration fieldset fieldset{grid-template-columns:1fr;}}
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #faf7f2; }
.auth-card { width: min(100%, 440px); background: white; border: 1px solid #e3d9ce; border-top: 5px solid #b44b19; border-radius: 12px; padding: 32px; box-shadow: 0 12px 36px #112a4110; color: #112a41; }
.auth-card > img { display: block; margin: 0 auto 22px; object-fit: contain; }
.auth-card h1 { font-size: 23px; line-height: 1.35; text-align: center; margin: 0 0 10px; }
.auth-card h2 { font-size: 16px; font-weight: 400; text-align: center; margin: 0 0 28px; }
.auth-card label { display: grid; grid-gap: 8px; gap: 8px; font-weight: 600; }
.auth-card input { width: 100%; padding: 11px; border: 1px solid #a6b0b9; border-radius: 5px; }
.auth-card button { background: #a84112; color: white; border: 0; border-radius: 5px; padding: 12px; font-weight: 600; }
.auth-card a.auth-provider-button { display: block; text-align: center; text-decoration: none; background: #a84112; color: white; border-radius: 5px; padding: 12px; font-weight: 600; }
.auth-card button.link-button { background: none; color: #a84112; padding: 0; font-weight: 400; text-decoration: underline; cursor: pointer; }
.auth-card button.link-button:disabled { color: #8a8a8a; cursor: default; }
.auth-card a { color: #9b3d13; }

