:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: #ffffff;
  --panel-soft: #fbfbfd;
  --line: rgba(60, 60, 67, 0.16);
  --line-strong: rgba(60, 60, 67, 0.28);
  --text: #1d1d1f;
  --muted: rgba(60, 60, 67, 0.68);
  --muted-strong: rgba(60, 60, 67, 0.82);
  --accent: #0f6f74;
  --accent-strong: #0a5b60;
  --accent-soft: rgba(15, 111, 116, 0.12);
  --chart-gross: #64b5ac;
  --chart-net: #0f6f74;
  --chart-new-revenue: #2a8f87;
  --chart-risk: #d14f43;
  --chart-refund: #f0a28b;
  --chart-engaged: #34c759;
  --chart-low: rgba(60, 60, 67, 0.2);
  --chart-net-positive: #188577;
  --danger: #d14f43;
  --warning: #b77a00;
  --success: #248a55;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.045);
  --shadow-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --radius: 18px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", ui-sans-serif, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", ui-sans-serif, sans-serif;
  font-family: var(--body);
}

@keyframes page-rise {
  from {
    opacity: 0.94;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-rise {
  from {
    opacity: 0.96;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 46%, #f2f3f5 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 30px 0 76px;
  animation: page-rise 260ms ease both;
}

.hero,
.filters-panel,
.source-panel,
.learning-band,
.chart-panel,
.table-section,
.insight-panel {
  border: 1px solid rgba(198, 214, 208, 0.72);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
}

.error-hero {
  grid-template-columns: 1fr;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  padding: 20px;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: 2.35rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.topbar-copy h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: normal;
}

.badge.subtle {
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
}

.hero-chart-panel {
  padding: 22px 18px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 248, 250, 0.92));
  border: 1px solid rgba(191, 208, 201, 0.56);
}

.hero-chart-panel-strong,
.metrics-strip .metric-card {
  box-shadow: var(--shadow);
}

.hero-chart-header,
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hero-chart-header h2,
.section-header h2,
.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.chart-kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-summary,
.panel-heading p,
.section-header p,
.status-message,
.status-detail,
.metric-note,
.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
  margin-top: 12px;
}

.controls > *,
.filters-panel,
.source-panel,
.topbar-copy,
.hero-copy {
  min-width: 0;
}

.filters-panel,
.source-panel {
  padding: 20px;
}

.topbar-panel {
  margin-top: 0;
  align-items: start;
}

.topbar-copy {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.hero-copy-block {
  display: grid;
  gap: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: end;
}

.filter-grid label,
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-grid-tight {
  margin-top: 0;
}

.filter-grid span,
.upload-field span {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 650;
}

input[type="date"],
input[type="file"],
input[type="search"],
select {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

input[type="date"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: rgba(15, 111, 116, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 111, 116, 0.12);
  outline: none;
}

input[type="file"] {
  padding: 10px 12px;
}

.primary-button {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(15, 111, 116, 0.88);
  border-radius: 12px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 111, 116, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  cursor: pointer;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), var(--shadow-hairline);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 111, 116, 0.28);
  transform: translateY(-1px);
}

.secondary-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.upload-grid-compact {
  margin-top: 16px;
}

.upload-field small {
  color: var(--muted);
}

.status-message {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sync-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.data-confidence-panel {
  border-color: rgba(198, 214, 208, 0.72);
}

.data-confidence-panel.review {
  border-color: rgba(183, 122, 0, 0.28);
}

.data-confidence-panel.limited {
  border-color: rgba(209, 79, 67, 0.32);
}

.confidence-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.confidence-pill,
.confidence-warning-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: normal;
}

.confidence-pill {
  min-height: 30px;
  padding: 0 12px;
}

.confidence-pill.fresh,
.confidence-warning-chip.fresh {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.confidence-pill.review,
.confidence-warning-chip.review {
  background: rgba(183, 122, 0, 0.12);
  color: var(--warning);
}

.confidence-pill.limited,
.confidence-warning-chip.limited {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.confidence-warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.confidence-warning-chip {
  min-height: 24px;
  padding: 0 9px;
}

.sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.confidence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sync-item {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid rgba(218, 213, 202, 0.62);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.sync-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.sync-item strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0;
}

.sync-item small {
  color: var(--muted);
  line-height: 1.35;
}

.confidence-source-card {
  border-color: rgba(118, 118, 128, 0.14);
}

.confidence-source-card.fresh {
  border-color: rgba(36, 138, 85, 0.2);
}

.confidence-source-card.review {
  border-color: rgba(183, 122, 0, 0.22);
}

.confidence-source-card.limited {
  border-color: rgba(209, 79, 67, 0.24);
}

.status-detail {
  margin-top: 10px;
}

.assumption-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.assumption-list li + li {
  margin-top: 6px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
  animation: section-rise 520ms ease both;
}

.metrics-strip-cash {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.metrics-strip-cash .cash-card {
  box-shadow: none;
}

.metric-definition-note {
  margin-top: 10px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.explain-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}

.today-priorities {
  margin-top: 26px;
  padding: 0 0 22px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
  animation: section-rise 300ms ease both;
}

.operator-core-section {
  border-color: rgba(15, 111, 116, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft), var(--shadow-hairline);
}

.weekly-revenue-scoreboard-section {
  margin-top: 24px;
}

.weekly-revenue-scoreboard-section > .section-header,
.student-roster-section > .section-header {
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.weekly-revenue-scoreboard-section .collapsible-body,
.student-roster-section .collapsible-body {
  padding-top: 22px;
}

.needs-attention-console {
  margin-top: 18px;
}

.priority-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 2px;
}

.priority-card {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-hairline);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.priority-card:hover {
  border-color: rgba(15, 111, 116, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06), var(--shadow-hairline);
  transform: translateY(-2px);
}

.priority-card:first-child {
  grid-column: span 2;
}

.needs-attention-grid .priority-card:first-child {
  grid-column: span 1;
}

.priority-card::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--chart-net);
}

.priority-card span,
.health-explainer-grid span,
.activation-funnel span,
.stage-list span,
.lifecycle-timeline span,
.profile-health-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: none;
}

.priority-card strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.priority-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.priority-card.good {
  border-color: rgba(36, 99, 77, 0.18);
}

.priority-card.good::before {
  background: var(--success);
}

.priority-card.watch {
  border-color: rgba(183, 122, 0, 0.22);
}

.priority-card.watch::before {
  background: var(--warning);
}

.priority-card.risk {
  border-color: rgba(209, 79, 67, 0.2);
}

.priority-card.risk::before {
  background: var(--danger);
}

.readability-panel,
.attention-panel {
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 22px;
}

.definition-item,
.attention-item {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.07);
}

.definition-item strong,
.attention-item span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.definition-item span,
.attention-item strong {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.attention-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 22px;
}

.attention-collapsible .collapsible-body {
  padding: 0 24px 22px;
}

.attention-collapsible .attention-list {
  padding: 0;
}

.metrics-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.metrics-grid-primary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metrics-grid-secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 19px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(60, 60, 67, 0.12);
  box-shadow: var(--shadow-hairline);
  animation: card-pop 260ms ease both;
}

.metric-card-primary {
  background: rgba(255, 255, 255, 0.78);
}

.metric-card-primary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(15, 111, 116, 0.58);
}

.metric-card-secondary {
  background: rgba(255, 255, 255, 0.58);
}

.metric-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.015em;
  font-weight: 700;
}

.metric-value {
  margin: 13px 0 7px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 750;
}

.metric-note {
  max-width: 24ch;
}

.learning-band {
  margin-top: 22px;
  padding: 0 24px 22px;
}

.learning-band .section-header {
  padding: 22px 0 0;
}

.learning-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.learning-explainer article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(216, 227, 223, 0.74);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.learning-explainer strong {
  color: var(--accent);
  font-size: 0.86rem;
}

.learning-explainer span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.learning-band-secondary,
.category-section,
.chart-grid-supporting .chart-panel,
.insight-panel,
.table-section {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(60, 60, 67, 0.12);
  box-shadow: var(--shadow-hairline);
}

.category-section {
  margin-top: 28px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  overflow: hidden;
  animation: section-rise 300ms ease both;
}

.category-section > .section-header {
  padding: 26px 28px 20px;
}

.collapsible-section.is-collapsed {
  background: rgba(255, 255, 255, 0.54);
}

.collapsible-body {
  padding: 0 28px 28px;
  transition: padding 180ms ease;
}

.collapsible-body > .hero,
.collapsible-body > .chart-grid {
  margin-top: 0;
}

.collapsible-header {
  align-items: center;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(199, 194, 183, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-toggle:hover {
  background: var(--accent-soft);
  border-color: rgba(21, 94, 99, 0.2);
}

.section-header-nested {
  padding: 6px 0 16px;
}

.category-explainer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.5fr);
  gap: 14px;
  margin-top: 14px;
}

.category-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.category-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card-grid-one {
  grid-template-columns: minmax(220px, 380px);
}

.category-metric-card {
  min-height: 132px;
}

.formula-note,
.inferred-explainer {
  padding: 14px 16px;
  border: 1px solid rgba(218, 213, 202, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.formula-note strong,
.inferred-explainer strong {
  color: var(--accent);
}

.inferred-explainer {
  margin-bottom: 14px;
}

.category-hero {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.category-chart-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.retention-matrix-panel {
  margin-top: 18px;
}

.coupon-cell {
  gap: 3px;
}

.metric-emphasis {
  color: var(--accent);
  font-weight: 800;
}

.inferred-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(220, 235, 233, 0.86);
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.category-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.category-diagnostic-grid .insight-panel,
.category-cohort-quality {
  border: 1px solid rgba(216, 227, 223, 0.66);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.category-cohort-quality {
  margin-top: 18px;
}

.mini-table.category-mini-table {
  min-width: 620px;
}

.hero-analytics-band {
  margin-top: 18px;
  align-items: stretch;
}

.hero-summary-card {
  display: grid;
  gap: 18px;
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.96), rgba(45, 45, 48, 0.94));
  color: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.hero-summary-card .panel-heading h2,
.hero-summary-card .panel-heading p,
.hero-summary-card .chart-kicker {
  color: rgba(255, 255, 255, 0.92);
}

.hero-summary-card .positive {
  color: #9fe2c3;
}

.hero-summary-card .negative {
  color: #ffb7a7;
}

.summary-stat-list {
  display: grid;
  gap: 12px;
}

.summary-stat {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-stat:first-child {
  padding-top: 0;
  border-top: 0;
}

.summary-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.summary-stat-value {
  font-size: 1.38rem;
  line-height: 1;
  letter-spacing: 0;
}

.summary-stat-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.87rem;
  line-height: 1.45;
}

.operations-block {
  margin-top: 26px;
}

.section-header-plain {
  padding: 0 2px;
}

.chart-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.chart-panel,
.insight-panel {
  padding: 0 0 14px;
}

.chart-panel-wide,
.insight-panel.wide {
  grid-column: span 2;
}

.section-header {
  padding: 24px 24px 14px;
}

.chart-svg {
  display: block;
  width: calc(100% - 34px);
  height: auto;
  margin: 14px 17px 2px;
}

.chart-svg path,
.chart-svg rect,
.chart-svg circle {
  transition: opacity 180ms ease, transform 180ms ease;
}

.chart-svg-small {
  width: calc(100% - 40px);
  margin: 6px 20px 0;
}

.chart-grid-line {
  stroke: rgba(191, 208, 201, 0.7);
  stroke-width: 1;
}

.chart-axis-text {
  fill: var(--muted);
  font-size: 11px;
}

.chart-callout-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-callout-value {
  fill: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.chart-axis-text-left {
  text-anchor: end;
}

.chart-axis-text-center {
  text-anchor: middle;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 24px 4px;
}

.chart-hit-zone {
  fill: transparent;
  cursor: pointer;
}

.revenue-period.selected .chart-hit-zone {
  fill: rgba(21, 94, 99, 0.08);
  stroke: rgba(21, 94, 99, 0.22);
}

.line-period-hit.selected,
.net-new-period.selected .chart-hit-zone {
  fill: rgba(21, 94, 99, 0.08);
  stroke: rgba(21, 94, 99, 0.22);
}

.chart-control-row {
  padding: 10px 24px 0;
}

.chart-control-row label {
  display: grid;
  gap: 8px;
  max-width: 240px;
}

.chart-control-row span,
.table-toolbar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.period-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 24px 8px;
}

.period-detail-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.period-detail-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.period-detail-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.period-detail-grid strong {
  font-size: 1rem;
}

.chart-detail-note {
  margin: 8px 24px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.net-new-value {
  text-anchor: middle;
  font-size: 14px;
  font-weight: 800;
}

.positive-fill {
  fill: var(--success);
}

.negative-fill {
  fill: var(--danger);
}

.insight-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 12px;
}

.insight-pill {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(218, 213, 202, 0.62);
}

.insight-pill-label {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.insight-pill-value {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.insight-pill-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.chart-empty,
.empty-state {
  padding: 16px 24px;
  color: var(--muted);
}

.snapshot-bar {
  display: flex;
  overflow: hidden;
  height: 14px;
  margin: 18px 24px 18px;
  border-radius: 999px;
  background: #e5ece9;
}

.snapshot-bar span {
  height: 100%;
}

.snapshot-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px;
}

.snapshot-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(216, 227, 223, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.cohort-heatmap {
  display: grid;
  gap: 10px;
  min-width: 820px;
}

.cohort-header-row,
.cohort-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.2fr) 70px repeat(4, minmax(64px, 1fr));
  gap: 10px;
  align-items: center;
}

.cohort-header-row {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0 2px;
}

.cohort-labels {
  display: grid;
  gap: 2px;
}

.cohort-labels span,
.cohort-size {
  color: var(--muted);
  font-size: 0.88rem;
}

.cohort-cell {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(230, 239, 235, 0.85);
  color: var(--text);
  font-weight: 700;
}

.cohort-cell strong,
.cohort-cell span {
  position: relative;
  z-index: 1;
}

.cohort-cell span {
  color: var(--muted);
  font-size: 0.78rem;
}

.retention-fill {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--chart-net);
}

.cohort-cell-empty {
  background: rgba(228, 236, 232, 0.8);
  color: var(--muted);
  opacity: 1 !important;
}

.cohort-cell-empty strong {
  font-size: 0.78rem;
}

.mini-table-shell,
.table-shell {
  overflow: auto;
}

.mini-table-shell {
  padding: 0 24px 8px;
}

.table-shell {
  padding: 0 24px 22px;
}

.operator-core-section .table-shell {
  padding-bottom: 26px;
}

.operator-core-section table th {
  background: rgba(248, 248, 250, 0.94);
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(3, minmax(130px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 0 24px 16px;
}

.roster-toolbar {
  grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(120px, 0.75fr)) auto;
}

.table-toolbar label {
  display: grid;
  gap: 8px;
}

.toolbar-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  justify-self: end;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.student-triage-table {
  min-width: 980px;
}

.mini-table {
  min-width: 100%;
}

thead th {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  font-weight: 650;
  text-transform: uppercase;
}

.mini-table thead th {
  background: transparent;
}

tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.09);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

tbody tr:hover {
  background: rgba(15, 111, 116, 0.06);
}

.student-profile-row {
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.student-profile-row:hover,
.student-profile-row:focus-visible {
  background: rgba(15, 111, 116, 0.08);
  outline: none;
}

.student-profile-row:focus-visible {
  box-shadow: inset 3px 0 0 var(--accent);
}

.student-profile-row.selected {
  background: rgba(15, 111, 116, 0.11);
  box-shadow: inset 3px 0 0 var(--accent);
}

.is-focus-col {
  background: rgba(15, 111, 116, 0.08);
}

.is-sorted-col {
  color: var(--accent);
  background: rgba(15, 111, 116, 0.1);
}

.numeric {
  text-align: right;
}

.negative {
  color: var(--danger);
}

.positive {
  color: var(--success);
}

.student-cell {
  display: grid;
  gap: 4px;
}

.student-cell span {
  color: var(--muted);
  font-size: 0.82rem;
}

.view-profile-affordance {
  appearance: none;
  border: 1px solid rgba(15, 111, 116, 0.16);
  width: fit-content;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 111, 116, 0.1);
  color: var(--accent) !important;
  cursor: pointer;
  font-size: 0.72rem !important;
  font-weight: 700;
  line-height: 1.3;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.student-profile-row:hover .view-profile-affordance,
.student-profile-row:focus-visible .view-profile-affordance,
.student-profile-row.selected .view-profile-affordance,
.view-profile-affordance:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(15, 111, 116, 0.28);
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: capitalize;
}

.status-pill.active {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.status-pill.canceled {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.status-pill.review {
  background: rgba(183, 122, 0, 0.12);
  color: var(--warning);
}

.subscription-review-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid rgba(173, 112, 42, 0.24);
  border-radius: 999px;
  background: rgba(191, 128, 42, 0.12);
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: capitalize;
}

.progress-stack {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.progress-rail {
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--chart-engaged), var(--chart-net));
}

.engagement-chip {
  display: inline-flex;
  justify-content: center;
  min-width: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
}

.mrr-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.mrr-stack span {
  font-size: 0.78rem;
  color: var(--muted);
}

.finance-score-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 14px;
}

.finance-score-strip article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-hairline);
}

.finance-score-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.finance-score-strip strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.05rem;
}

.finance-score-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.section-inline-note {
  margin: 0;
  padding: 0 24px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.engagement-chip.high {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.engagement-chip.mid {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

.engagement-chip.low {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.health-action-pill,
.domain-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.health-action-pill.recovery-due,
.health-action-pill.declining,
.health-action-pill.needs-outreach {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.health-action-pill.commercial-risk,
.health-action-pill.watch {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

.health-action-pill.stable {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.domain-chip {
  background: rgba(118, 118, 128, 0.12);
  color: var(--text);
}

.recovery-movement-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.recovery-movement-cell strong,
.next-action {
  color: var(--text);
  font-size: 0.88rem;
}

.triage-row td {
  vertical-align: top;
}

.risk-chip {
  display: inline-flex;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
}

.risk-chip.low {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.risk-chip.medium {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

.risk-chip.high {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.recovery-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.recovery-status-pill.positive {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.recovery-status-pill.negative {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.recovery-status-pill.neutral {
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
}

.recovery-score-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.roster-recovery-cell {
  display: grid;
  min-width: 260px;
  gap: 7px;
}

.roster-recovery-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.recovery-index-pill,
.recovery-risk-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.recovery-index-pill.positive,
.recovery-risk-pill.low {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.recovery-index-pill.neutral,
.recovery-risk-pill.medium {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

.recovery-index-pill.negative,
.recovery-risk-pill.high {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.roster-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.roster-recovery-domain {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
  color: var(--muted);
  font-size: 0.74rem;
}

.roster-recovery-domain strong {
  color: var(--text);
}

.support-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.support-status-pill.high {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.support-status-pill.mid {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

.support-status-pill.low {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.support-status-pill.neutral {
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
}

.support-call-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 16px;
}

.support-call-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(216, 227, 223, 0.58);
}

.support-call-row:last-child {
  border-bottom: 0;
}

.support-call-row div,
.support-call-stats {
  display: grid;
  gap: 3px;
}

.support-call-row span,
.support-call-stats span,
.support-diagnostics,
.support-rule-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.support-call-row strong,
.support-call-stats strong,
.support-rule-card strong {
  color: var(--text);
}

.support-rule-card {
  display: grid;
  gap: 8px;
  margin: 0 24px 16px;
  padding: 18px;
  border: 1px solid rgba(216, 227, 223, 0.72);
  border-radius: 18px;
  background: rgba(247, 250, 248, 0.76);
}

.support-rule-card strong {
  font-family: var(--display);
  font-size: 1.7rem;
}

.support-archive-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-hairline);
}

.support-archive-copy,
.support-archive-actions {
  display: grid;
  gap: 8px;
}

.support-archive-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.support-archive-copy p,
.support-archive-hint,
.support-archive-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.support-archive-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.support-archive-meta {
  color: var(--accent);
  font-weight: 700;
}

.support-archive-actions {
  justify-items: end;
  min-width: min(280px, 100%);
}

.support-diagnostics {
  margin: 0 24px 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 227, 223, 0.72);
}

.support-diagnostics summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.support-diagnostics ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.activation-funnel,
.stage-list,
.health-explainer-grid {
  display: grid;
  gap: 12px;
  padding: 0 24px 18px;
}

.activation-funnel article {
  display: grid;
  gap: 7px;
}

.activation-funnel article > div,
.stage-list article,
.profile-health-components article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.activation-funnel strong,
.stage-list strong,
.profile-health-card strong {
  color: var(--text);
}

.funnel-track {
  display: flex;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(224, 229, 220, 0.8);
}

.funnel-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--chart-gross), var(--chart-net));
}

.activation-funnel small {
  color: var(--muted);
  font-size: 0.76rem;
}

.stage-list article,
.health-explainer-grid article {
  padding: 12px;
  border: 1px solid rgba(218, 213, 202, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.health-explainer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-explainer-grid article {
  display: grid;
  gap: 4px;
}

.health-explainer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.health-score-card strong {
  font-size: 2.3rem;
}

.health-score-pill,
.lifecycle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.health-score-pill.high {
  background: #deeee8;
  color: #215f47;
}

.health-score-pill.mid {
  background: #edf1d7;
  color: #6b6724;
}

.health-score-pill.low {
  background: #f8e2dd;
  color: #94392f;
}

.lifecycle-pill {
  background: rgba(220, 235, 233, 0.72);
  color: var(--accent);
}

.recovery-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 18px;
}

.recovery-operator-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 14px;
}

.recovery-operator-summary article,
.recovery-domain-callouts article,
.recovery-completeness-strip article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-hairline);
}

.recovery-operator-summary span,
.recovery-domain-callouts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.recovery-operator-summary strong,
.recovery-domain-callouts strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
}

.recovery-operator-summary p,
.recovery-domain-callouts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.recovery-operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  margin-bottom: 16px;
}

.recovery-domain-panel {
  display: grid;
  gap: 12px;
  padding: 0 24px 18px;
}

.recovery-domain-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recovery-domain-heatmap {
  display: grid;
  gap: 10px;
}

.recovery-domain-heatmap article {
  display: grid;
  gap: 7px;
}

.recovery-domain-heatmap article > div:first-child,
.domain-delta-row,
.recovery-completeness-strip article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.recovery-domain-heatmap strong,
.recovery-completeness-strip strong {
  color: var(--text);
}

.domain-heat-track {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
}

.domain-heat-track span {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 111, 116, 0.62), var(--accent));
}

.recovery-completeness-strip {
  display: grid;
  gap: 10px;
  padding: 0 24px 18px;
}

.recovery-exception-shell {
  padding: 0 0 12px;
}

.recovery-exception-table {
  min-width: 960px;
}

.recovery-insight-strip article {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-hairline);
}

.recovery-insight-strip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.recovery-insight-strip strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
}

.recovery-insight-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.recovery-diagnostic-note {
  border-color: rgba(183, 122, 0, 0.18);
  background: rgba(255, 204, 0, 0.09);
}

.recovery-score-note-panel {
  margin-bottom: 16px;
}

.recovery-what-panel {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-hairline);
}

.recovery-what-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.recovery-what-grid div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.recovery-what-grid span,
.recovery-data-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.recovery-what-grid strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: 0;
}

.recovery-what-grid p,
.recovery-data-note {
  margin: 0;
  line-height: 1.45;
}

.recovery-data-note {
  margin-top: 12px;
}

.recovery-detail-shell {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(218, 213, 202, 0.58);
}

.recovery-detail-heading {
  margin-bottom: 14px;
}

.recovery-due-note {
  margin-top: 16px;
}

.recovery-bars,
.recovery-score-rows,
.recovery-movement-rows,
.recovery-distribution-rows,
.recovery-coverage-rows,
.recovery-opportunity-list,
.recovery-timeline {
  display: grid;
  gap: 12px;
  padding: 0 24px 18px;
}

.recovery-bar-row,
.recovery-score-row,
.recovery-movement-row,
.recovery-distribution-row,
.recovery-coverage-row,
.recovery-opportunity-list article {
  display: grid;
  gap: 8px;
}

.recovery-bar-row > div,
.recovery-score-row > div,
.recovery-movement-row > div,
.recovery-distribution-row > div:first-child,
.recovery-coverage-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.recovery-bar-row strong,
.recovery-score-row strong,
.recovery-movement-row strong,
.recovery-distribution-row strong,
.recovery-coverage-row strong {
  color: var(--text);
}

.recovery-bar-track,
.recovery-movement-track,
.recovery-distribution-stack,
.recovery-coverage-stack {
  display: flex;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
}

.recovery-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 111, 116, 0.58), var(--chart-net));
}

.recovery-score-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.recovery-movement-row {
  grid-template-columns: minmax(130px, 1fr) 2fr auto;
  align-items: center;
}

.recovery-movement-row > div {
  display: grid;
  gap: 2px;
}

.recovery-movement-track span,
.recovery-distribution-stack span {
  display: block;
  min-width: 2px;
  height: 100%;
}

.recovery-movement-row.positive .recovery-movement-track span {
  background: var(--success);
}

.recovery-movement-row.negative .recovery-movement-track span {
  background: var(--danger);
}

.recovery-distribution-row {
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(218, 213, 202, 0.46);
}

.recovery-distribution-row:last-child {
  border-bottom: 0;
}

.recovery-distribution-row > div:first-child {
  align-items: flex-start;
}

.recovery-distribution-row > div:first-child strong {
  max-width: 72%;
  line-height: 1.35;
}

.recovery-distribution-stack {
  height: 12px;
}

.recovery-coverage-stack {
  height: 14px;
}

.recovery-coverage-stack span {
  display: block;
  min-width: 2px;
  height: 100%;
}

.recovery-coverage-stack .submitted {
  background: var(--success);
}

.recovery-coverage-stack .missing {
  background: var(--danger);
}

.recovery-coverage-stack .not-mature {
  background: rgba(255, 204, 0, 0.8);
}

.recovery-coverage-stack .not-tracked {
  background: rgba(60, 60, 67, 0.24);
}

.recovery-distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.recovery-coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.recovery-opportunity-list article {
  padding: 13px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.recovery-opportunity-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.recovery-opportunity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.recovery-unmatched {
  margin: 0 0 4px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}

.recovery-unmatched summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

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

  .recovery-operator-grid {
    grid-template-columns: 1fr;
  }

  .recovery-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recovery-what-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .recovery-operator-summary,
  .recovery-domain-callouts {
    grid-template-columns: 1fr;
  }

  .recovery-insight-strip {
    grid-template-columns: 1fr;
  }

  .recovery-what-grid {
    grid-template-columns: 1fr;
  }

  .recovery-movement-row {
    grid-template-columns: 1fr;
  }

  .profile-recovery-movement article,
  .recovery-path-item {
    grid-template-columns: 1fr;
  }

  .profile-recovery-overview {
    grid-template-columns: 1fr;
  }

  .recovery-path-dot {
    display: none;
  }

  .recovery-path-score {
    text-align: left;
  }

  .recovery-distribution-row > div:first-child {
    display: grid;
  }

  .recovery-distribution-row > div:first-child strong {
    max-width: none;
  }

  .support-call-row,
  .support-archive-banner,
  .profile-support-list article {
    grid-template-columns: 1fr;
    display: grid;
  }

  .support-archive-actions {
    justify-items: start;
  }
}

.recovery-timeline {
  padding: 0;
}

.recovery-timeline-item {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(216, 227, 223, 0.64);
  border-radius: 13px;
  background: rgba(247, 250, 248, 0.7);
}

.recovery-timeline-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recovery-timeline-main div,
.recovery-timeline-score {
  display: grid;
  gap: 3px;
}

.recovery-timeline-main span,
.recovery-timeline-item p,
.recovery-answer-details {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.recovery-timeline-score {
  text-align: right;
}

.recovery-answer-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.recovery-answer-changes summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.recovery-answer-details div {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 227, 223, 0.64);
}

.recovery-path {
  display: grid;
  gap: 10px;
}

.profile-recovery-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-recovery-overview article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-hairline);
}

.profile-recovery-overview span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-recovery-overview strong {
  color: var(--text);
  font-size: 0.9rem;
}

.recovery-path-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.recovery-path-item p {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.recovery-path-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.28);
  box-shadow: 0 0 0 4px rgba(60, 60, 67, 0.08);
}

.recovery-path-item.submitted .recovery-path-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(36, 138, 85, 0.14);
}

.recovery-path-item.missing .recovery-path-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(209, 79, 67, 0.12);
}

.recovery-path-item.not-mature-yet .recovery-path-dot,
.recovery-path-item.optional .recovery-path-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(183, 122, 0, 0.12);
}

.recovery-path-item.not-tracked-yet .recovery-path-dot {
  background: rgba(60, 60, 67, 0.28);
  box-shadow: 0 0 0 4px rgba(60, 60, 67, 0.08);
}

.recovery-path-item strong {
  color: var(--text);
}

.recovery-path-item small,
.recovery-path-score span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.recovery-path-score {
  text-align: right;
}

.recovery-path-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.recovery-path-status.submitted {
  background: rgba(36, 138, 85, 0.12);
  color: var(--success);
}

.recovery-path-status.missing {
  background: rgba(209, 79, 67, 0.12);
  color: var(--danger);
}

.recovery-path-status.not-mature-yet {
  background: rgba(255, 204, 0, 0.16);
  color: var(--warning);
}

@media (max-width: 620px) {
  .profile-recovery-overview,
  .recovery-path-item {
    grid-template-columns: 1fr;
  }

  .recovery-path-dot {
    display: none;
  }

  .recovery-path-score {
    text-align: left;
  }
}

.profile-recovery-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.profile-recovery-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.profile-recovery-movement {
  display: grid;
  gap: 9px;
}

.profile-recovery-movement p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-recovery-movement article {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.5fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-recovery-movement article > div {
  display: grid;
  gap: 2px;
}

.profile-recovery-movement article.positive .recovery-movement-track span {
  background: var(--accent);
}

.profile-recovery-movement article.negative .recovery-movement-track span {
  background: var(--danger);
}

.profile-support-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.profile-support-list h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.profile-support-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 227, 223, 0.58);
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-support-list article:last-child {
  border-bottom: 0;
}

.profile-support-list strong {
  color: var(--text);
}

.profile-support-list.muted strong {
  color: var(--muted);
}

.profile-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  animation: modal-backdrop-in 180ms ease both;
}

.profile-drawer {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(251, 251, 253, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.22), var(--shadow-hairline);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: modal-card-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.profile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.profile-drawer-header h2 {
  margin: 4px 0 4px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-drawer-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-close-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
}

.profile-close-button:hover {
  background: var(--accent-soft);
}

.profile-summary-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-hairline);
}

.profile-summary-card > strong {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: 0;
}

.profile-summary-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-summary-card > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-summary-evidence {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-summary-evidence strong {
  color: var(--ink);
  font-weight: 650;
}

.profile-section {
  margin-top: 22px;
}

.profile-section h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-detail-item {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-hairline);
}

.profile-detail-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.profile-detail-item strong {
  align-self: center;
  font-size: 1rem;
  line-height: 1.25;
}

.profile-detail-item small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-health-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-hairline);
}

.profile-health-card > div:first-child strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 2.3rem;
  letter-spacing: 0;
}

.profile-health-card p,
.lifecycle-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.profile-health-components {
  display: grid;
  gap: 10px;
}

.profile-health-components article {
  display: grid;
  gap: 6px;
}

.lifecycle-timeline {
  display: grid;
  gap: 12px;
}

.lifecycle-timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
}

.lifecycle-timeline article:last-child {
  border-bottom: 0;
}

.lifecycle-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--chart-net);
}

.lifecycle-timeline strong {
  display: block;
  color: var(--text);
}

@media (max-width: 1180px) {
  .hero,
  .controls,
  .explain-grid,
  .chart-grid,
  .insights-grid,
  .metrics-strip,
  .category-diagnostic-grid,
  .category-explainer-grid,
  .category-card-grid,
  .category-card-grid-two,
  .category-chart-grid,
  .metrics-grid-primary,
  .metrics-grid-secondary,
  .snapshot-legend,
  .insight-pill-row,
  .finance-score-strip,
  .priority-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-panel-wide,
  .insight-panel.wide {
    grid-column: span 2;
  }

  .metrics-grid-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learning-explainer,
  .period-detail-grid,
  .table-toolbar,
  .roster-toolbar,
  .health-explainer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-count {
    justify-self: start;
  }

  .section-header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cohort-header-row,
  .cohort-row {
    grid-template-columns: minmax(120px, 1.2fr) 64px repeat(4, minmax(60px, 1fr));
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100%, calc(100vw - 32px));
    padding: 18px 0 40px;
  }

  .hero,
  .controls,
  .filter-grid,
  .explain-grid,
  .definition-grid,
  .chart-grid,
  .insights-grid,
  .metrics-strip,
  .category-diagnostic-grid,
  .category-explainer-grid,
  .category-card-grid,
  .category-card-grid-two,
  .category-card-grid-one,
  .category-chart-grid,
  .metrics-grid-primary,
  .metrics-grid-secondary,
  .learning-explainer,
  .period-detail-grid,
  .table-toolbar,
  .roster-toolbar,
  .snapshot-legend,
  .insight-pill-row,
  .finance-score-strip,
  .priority-card-grid,
  .health-explainer-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel,
  .source-panel {
    width: auto;
    max-width: 100%;
    padding: 16px;
    overflow: hidden;
    border-left: 1px solid rgba(60, 60, 67, 0.12);
    border-right: 1px solid rgba(60, 60, 67, 0.12);
    border-radius: 18px;
  }

  .topbar-copy h1 {
    font-size: 1.58rem;
    line-height: 1.08;
    max-width: min(100%, 340px);
  }

  .hero-copy {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: min(100%, 340px);
    overflow-wrap: anywhere;
  }

  .source-panel .chart-summary,
  .source-panel .panel-heading p,
  .source-panel .status-detail,
  .source-panel .status-message {
    max-width: min(100%, 340px);
    overflow-wrap: anywhere;
  }

  .hero-meta {
    gap: 8px;
  }

  .badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .sync-grid {
    grid-template-columns: 1fr;
  }

  .sync-item {
    min-width: 0;
    border-radius: 8px;
  }

  .sync-item strong,
  .sync-item span {
    overflow-wrap: anywhere;
  }

  .filter-grid {
    gap: 10px;
  }

  input[type="date"],
  input[type="file"],
  input[type="search"],
  select,
  .primary-button {
    min-height: 44px;
  }

  .today-priorities {
    margin-top: 18px;
    padding-bottom: 14px;
    border-radius: 10px;
  }

  .today-priorities .section-header {
    padding: 18px 16px 12px;
  }

  .priority-card-grid {
    gap: 10px;
    padding: 0 14px 2px;
  }

  .priority-card {
    min-height: auto;
    padding: 14px;
    gap: 6px;
  }

  .priority-card strong {
    font-size: 1.08rem;
    line-height: 1.14;
  }

  .priority-card p {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .chart-panel-wide,
  .insight-panel.wide {
    grid-column: span 1;
  }

  .priority-card:first-child {
    grid-column: span 1;
  }

  .hero {
    padding: 12px;
  }

  .category-section > .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header-actions {
    width: 100%;
  }

  .section-toggle {
    width: 100%;
  }

  .profile-drawer {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 22px;
    border-radius: 22px;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
    font-size: 2.2rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
