:root {
  color-scheme: light;
  --page: #f6f8fb;
  --surface: #ffffff;
  --ink: #1d2939;
  --muted: #667085;
  --line: #dde4ee;
  --soft-line: #edf2f7;
  --report-teal: #23677a;
  --report-ink: #163c4a;
  --report-band: #e7f3f6;
  --report-paper: #fbfdfe;
  --report-coral: #ff916d;
  --sidebar: #12324a;
  --coral: #ff916d;
  --blue: #5fb1c3;
  --teal: #23677a;
  --red: #d64f5f;
  --amber: #d18a2b;
  --gray: #9aa4b2;
  --shadow: 0 5px 14px rgba(15, 23, 42, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.mobile-menu-toggle,
.mobile-nav-backdrop {
  display: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 20px 14px;
  background: var(--sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  padding: 0 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  justify-items: start;
  gap: 11px;
}

.brand-name {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.brand-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo-vmac {
  width: 158px;
  max-height: 80px;
  object-position: left center;
}

.brand-logo-pcdc {
  width: 152px;
  max-height: 78px;
  object-position: left center;
}

.brand-subtitle {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 760;
}

.nav-item.active {
  background: #ffffff;
  color: var(--sidebar);
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-weight: 900;
}

.source-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.source-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.source-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  line-height: 1.42;
}

.content {
  padding: 22px 28px 34px;
  min-width: 0;
  max-width: 1500px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dashboard-header h1 {
  margin: 0 0 5px;
  font-size: 1.76rem;
  line-height: 1.08;
}

.dashboard-header p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.report-link-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--sidebar);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.report-link-button span:first-child {
  font-size: 0.92rem;
}

.filter-bar {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 90px 120px minmax(340px, 1fr) 210px 220px;
  gap: 12px;
  align-items: end;
  box-shadow: var(--shadow);
}

.mobile-filter-summary {
  display: none;
}

.filter-bar label {
  display: grid;
  gap: 6px;
}

.filter-bar > label:nth-of-type(3) {
  grid-column: 4;
}

.filter-bar > label:nth-of-type(4) {
  grid-column: 5;
}

.filter-bar label span {
  color: #344054;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

select:disabled {
  background: #f3f6f9;
  color: #667085;
  cursor: not-allowed;
}

.control-disabled {
  opacity: 0.74;
}

input[type="month"] {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.range-tabs {
  grid-column: 3 / 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.range-tabs button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: #344054;
  font-weight: 820;
}

.range-tabs button:last-child {
  border-right: 0;
}

.range-tabs button.active {
  background: var(--sidebar);
  color: #ffffff;
}

.custom-date-controls {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 140px repeat(2, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}

.custom-date-controls[hidden] {
  display: none;
}

.comparison-date-controls {
  grid-column: 1 / 4;
}

.control-heading {
  margin: 0;
  align-self: center;
  color: var(--report-ink);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.section-subheading {
  margin: 8px 0 10px;
}

.section-subheading h3 {
  margin: 0;
  color: var(--report-ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.accounting-subheading {
  margin-top: 2px;
}

.summary-box {
  min-height: 142px;
  padding: 15px 15px 13px;
  border: 1px solid #cbd9e3;
  border-top: 6px solid var(--coral);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
  display: grid;
  align-content: start;
  gap: 6px;
}

.summary-box.summary-blue {
  border-top-color: var(--blue);
}

.summary-box.summary-teal {
  border-top-color: var(--teal);
}

.summary-box.summary-amber {
  border-top-color: var(--amber);
}

.summary-box.summary-red {
  border-top-color: var(--red);
}

.summary-box.summary-gray {
  border-top-color: var(--gray);
  background: #f8fafc;
}

.summary-value {
  font-size: 1.8rem;
  line-height: 1.02;
  font-weight: 900;
  color: var(--report-ink);
}

.summary-label {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 900;
}

.summary-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.summary-periods {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 780;
}

.summary-comparison {
  min-height: 34px;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 760;
}

.summary-comparison strong {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 920;
}

.comparison-good .summary-comparison {
  color: #197a4f;
}

.comparison-bad .summary-comparison {
  color: #bd3d4b;
}

.comparison-unavailable .summary-comparison,
.comparison-unavailable .summary-periods {
  color: #7b8794;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -2px 0 22px;
}

.insight-card {
  min-height: 238px;
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 3px;
  background: #ffffff;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.insight-card.status-preliminary {
  border-top-color: var(--amber);
}

.insight-card.status-incomplete,
.insight-card.status-blocked {
  border-top-color: var(--gray);
}

.insight-card header {
  display: grid;
  gap: 5px;
}

.insight-card header span {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  background: #f7fafc;
  color: #344054;
  font-size: 0.66rem;
  font-weight: 880;
  text-transform: uppercase;
}

.insight-card h3 {
  margin: 0;
  color: var(--report-ink);
  font-size: 0.96rem;
  line-height: 1.15;
}

.insight-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 720;
}

.insight-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.insight-card dl div {
  display: grid;
  gap: 2px;
}

.insight-card dt {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card dd {
  margin: 0;
  color: #293548;
  font-size: 0.78rem;
  line-height: 1.32;
  font-weight: 670;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

.section-heading {
  margin: 4px 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #d7e5eb;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.chart-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid #bfd5dd;
  border-top: 8px solid var(--report-teal);
  border-radius: 2px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(
      to bottom,
      rgba(35, 103, 122, 0.035) 0,
      rgba(35, 103, 122, 0.035) 34px,
      transparent 34px,
      transparent 68px
    );
  box-shadow: 0 10px 22px rgba(18, 50, 74, 0.075);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.detail-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.chart-card {
  min-height: 0;
  padding: 0;
  border: 1px solid #bfd5dd;
  border-radius: 2px;
  background: var(--report-paper);
  box-shadow: none;
  overflow: hidden;
}

.chart-stack > .chart-card:first-child,
.chart-stack > .chart-card.chart-trend {
  grid-column: span 2;
}

.chart-card header {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background: var(--surface);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.chart-card:nth-child(even) header {
  background: var(--surface);
}

.slide-kicker {
  padding: 13px 10px;
  background: var(--report-coral);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.16;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.chart-card:nth-child(odd) .slide-kicker {
  background: var(--report-teal);
}

.chart-card header div {
  padding: 12px 14px 11px;
  border-bottom: 1px solid #d7e5eb;
}

.chart-card h3 {
  margin: 0 0 3px;
  font-size: 1.02rem;
  line-height: 1.18;
  color: var(--report-ink);
  font-weight: 900;
}

.chart-card header p {
  margin: 0;
  color: #55707a;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 720;
}

.stacked-bars,
.mix-list,
.watchlist {
  display: grid;
  gap: 0;
}

.report-table {
  margin: 0;
  border: 1px solid #c3dce4;
  border-left: 0;
  border-right: 0;
  overflow: hidden;
}

.report-table-head {
  min-height: 36px;
  padding: 0 10px;
  background: var(--report-teal);
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.stack-row,
.mix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  color: #344054;
  font-size: 0.74rem;
  font-weight: 790;
}

.stack-row:nth-child(even),
.mix-row:nth-child(even) {
  background: var(--report-band);
}

.stack-row .track,
.mix-row .track {
  grid-column: 1 / -1;
}

.track {
  height: 11px;
  border-radius: 0;
  background: #f0f5f7;
  overflow: hidden;
}

.track i {
  height: 100%;
  display: block;
  border-radius: 0;
}

.stat-strip {
  margin: 10px 13px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stat-strip span {
  padding: 5px 7px;
  border-left: 4px solid var(--report-teal);
  border-radius: 4px;
  background: #f7fafb;
  color: #2e3b44;
  font-size: 0.72rem;
  font-weight: 850;
}

.vertical-bars,
.trend-grid {
  margin: 0;
  min-height: 178px;
  padding: 13px 12px 10px;
  border: 1px solid #c3dce4;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      to top,
      #ffffff 0,
      #ffffff 27px,
      #eef4f7 28px
    );
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
  align-items: end;
}

.vertical-bar,
.trend-month {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.bar-area,
.mini-bars {
  height: 118px;
  width: 100%;
  border-bottom: 2px solid var(--report-teal);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.bar-area i {
  width: min(34px, 70%);
  min-height: 10px;
  display: block;
  border-radius: 0;
}

.mini-bars i {
  width: 14px;
  min-height: 8px;
  display: block;
  border-radius: 0;
}

.watchlist div {
  padding: 9px 10px;
  border-bottom: 1px solid #dce8ed;
  display: grid;
  gap: 4px;
}

.watchlist div:nth-child(even) {
  background: var(--report-band);
}

.watchlist div:last-child {
  border-bottom: 0;
}

.watchlist span {
  color: var(--report-teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.watchlist strong {
  color: #243042;
  font-size: 0.84rem;
}

.legend {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

.so-what {
  margin: 0;
  padding: 12px 14px;
  border-left: 0;
  border-top: 4px solid var(--report-coral);
  background: var(--report-band);
  color: #344054;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 720;
}

.clean-report-preview {
  --clean-navy: #092544;
  --clean-blue: #266392;
  --clean-teal: #2d8f8e;
  --clean-green: #539a70;
  --clean-gold: #e5ac44;
  --clean-coral: #c95e52;
  --clean-ink: #242b34;
  --clean-muted: #606a76;
  --clean-line: #dee4ec;
  --clean-soft: #e4f1fb;
}

.clean-report-preview .section-heading {
  margin: 8px 0 14px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--clean-line);
}

.clean-report-preview .section-heading h2 {
  color: var(--clean-navy);
  font-size: 1.22rem;
}

.clean-report-preview .section-heading p {
  max-width: 760px;
  color: var(--clean-muted);
}

.clean-chart-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.clean-chart-stack > .chart-card:first-child,
.clean-chart-stack > .chart-card.chart-trend {
  grid-column: auto;
}

.clean-report-preview .clean-chart-card {
  min-height: 326px;
  border: 1px solid var(--clean-line);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.clean-report-preview .clean-chart-card::before {
  content: "";
  display: block;
  height: 4px;
  flex: 0 0 4px;
  background: var(--card-accent, var(--clean-blue));
}

.clean-report-preview .clean-chart-card header {
  min-height: 74px;
  padding: 16px 16px 10px;
  background: #ffffff;
  display: block;
  grid-template-columns: none;
}

.clean-report-preview .clean-chart-card header div {
  padding: 0;
  border-bottom: 0;
}

.clean-report-preview .clean-chart-card h3 {
  margin-bottom: 3px;
  color: var(--clean-navy);
  font-size: 0.98rem;
  line-height: 1.12;
  font-weight: 900;
}

.clean-report-preview .clean-chart-card header p {
  color: var(--clean-muted);
  font-size: 0.71rem;
  line-height: 1.28;
  font-weight: 650;
}

.clean-report-preview .clean-chart-card header .period-label {
  margin-top: 6px;
  color: var(--clean-blue);
  font-size: 0.68rem;
  line-height: 1.22;
  font-weight: 820;
}

.clean-report-preview .clean-chart-card .report-table,
.clean-report-preview .clean-chart-card .vertical-bars,
.clean-report-preview .clean-chart-card .trend-grid {
  margin: 0 16px;
  border: 0;
  background: #ffffff;
}

.clean-report-preview .clean-chart-card .report-table,
.clean-report-preview .clean-chart-card .vertical-bars,
.clean-report-preview .clean-chart-card .trend-grid,
.clean-report-preview .clean-chart-card .stat-strip,
.clean-report-preview .clean-chart-card .legend,
.clean-report-preview .clean-chart-card .trace-metric {
  flex: 0 0 auto;
}

.clean-report-preview .clean-chart-card .report-table-head {
  min-height: 26px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--clean-line);
  background: #ffffff;
  color: var(--clean-blue);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.clean-report-preview .stack-row,
.clean-report-preview .mix-row {
  min-height: 44px;
  padding: 8px 0 9px;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
  font-size: 0.73rem;
  font-weight: 760;
}

.clean-report-preview .stack-row:nth-child(even),
.clean-report-preview .mix-row:nth-child(even),
.clean-report-preview .watchlist div:nth-child(even) {
  background: #ffffff;
}

.clean-report-preview .track {
  height: 8px;
  background: #edf2f7;
}

.clean-report-preview .clean-chart-card .stat-strip {
  margin: 10px 16px 0;
  gap: 8px;
}

.clean-report-preview .clean-chart-card .stat-strip span {
  padding: 0;
  border-left: 0;
  background: transparent;
  color: var(--clean-blue);
  font-size: 0.69rem;
}

.clean-report-preview .vertical-bars,
.clean-report-preview .trend-grid {
  min-height: 166px;
  padding: 8px 0 2px;
  background:
    linear-gradient(to top, var(--clean-line) 1px, transparent 1px) 0 100% / 100% 40px,
    #ffffff;
}

.clean-report-preview .chart-trend .trend-grid {
  min-height: 186px;
  padding-top: 2px;
}

.clean-report-preview .vertical-bar,
.clean-report-preview .trend-month {
  gap: 6px;
  color: var(--clean-muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.clean-report-preview .vertical-bar strong {
  order: 1;
  color: var(--clean-navy);
  font-size: 0.82rem;
  line-height: 1;
}

.clean-report-preview .bar-area {
  order: 2;
  height: 98px;
  border-bottom: 1px solid #cdd6e1;
  gap: 0;
}

.clean-report-preview .vertical-bar span {
  order: 3;
  max-width: 82px;
  line-height: 1.15;
}

.clean-report-preview .bar-area i {
  width: min(24px, 52%);
}

.clean-report-preview .mini-bars {
  height: 108px;
  border-bottom: 1px solid #cdd6e1;
}

.clean-report-preview .mini-bars i {
  width: 11px;
}

.clean-report-preview .watchlist div {
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
}

.clean-report-preview .chart-watchlist .report-table {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.clean-report-preview .chart-watchlist .watchlist {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.clean-report-preview .chart-watchlist .watchlist div {
  align-content: center;
}

.clean-report-preview .watchlist span {
  color: var(--clean-blue);
  font-size: 0.7rem;
}

.clean-report-preview .watchlist strong {
  color: var(--clean-ink);
  font-size: 0.78rem;
  line-height: 1.28;
}

.clean-report-preview .legend {
  margin: 10px 18px 0;
  gap: 10px 12px;
  flex-wrap: wrap;
  font-size: 0.69rem;
}

.clean-report-preview .trend-month em {
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  color: var(--clean-muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.clean-report-preview .trend-month.status-actual em {
  border-color: rgba(45, 143, 142, 0.4);
  background: rgba(45, 143, 142, 0.08);
  color: var(--clean-teal);
}

.clean-report-preview .trend-month.status-preliminary em {
  border-color: rgba(229, 172, 68, 0.48);
  background: rgba(229, 172, 68, 0.12);
  color: #8a5a11;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
}

.status-dot.status-actual {
  color: var(--clean-teal);
  background: var(--clean-teal);
}

.status-dot.status-preliminary {
  color: var(--clean-gold);
}

.status-dot.status-forecast {
  color: var(--clean-blue);
  border-style: dashed;
}

.status-dot.status-blocked {
  color: var(--gray);
  border-radius: 2px;
}

.clean-report-preview .so-what {
  margin: auto 16px 0;
  padding: 11px 12px;
  border-top: 0;
  border-radius: 5px;
  background: var(--clean-soft);
  color: var(--clean-ink);
  font-size: 0.76rem;
  line-height: 1.36;
  font-weight: 650;
}

.clean-report-preview .so-what strong {
  color: var(--clean-navy);
  font-weight: 900;
}

.trace-metric {
  margin: 8px 16px 10px;
  border-top: 1px solid #edf1f5;
  color: var(--clean-muted);
  font-size: 0.71rem;
}

.trace-metric summary {
  padding-top: 8px;
  color: var(--clean-blue);
  font-weight: 850;
  cursor: pointer;
}

.trace-metric p {
  margin: 6px 0 0;
  line-height: 1.32;
}

.clean-report-preview .color-coral {
  background: var(--clean-coral);
}

.clean-report-preview .color-blue {
  background: var(--clean-blue);
}

.clean-report-preview .color-teal {
  background: var(--clean-teal);
}

.clean-report-preview .color-red {
  background: var(--clean-coral);
}

.clean-report-preview .color-amber {
  background: var(--clean-gold);
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.report-actions button {
  min-height: 172px;
  padding: 18px 16px 16px;
  border: 1px solid var(--clean-line, var(--line));
  border-top: 4px solid var(--clean-blue, var(--report-teal));
  border-radius: 3px;
  background: #ffffff;
  color: var(--sidebar);
  display: grid;
  align-content: start;
  gap: 7px;
  text-align: left;
  font-weight: 850;
}

.report-actions button:nth-child(2) {
  border-top-color: var(--clean-teal, var(--report-teal));
}

.report-actions button:nth-child(3) {
  border-top-color: var(--clean-coral, var(--report-coral));
}

.report-actions button:nth-child(4) {
  border-top-color: var(--clean-gold, var(--amber));
}

.report-actions button:nth-child(5) {
  border-top-color: var(--clean-navy, var(--sidebar));
}

.report-actions button span {
  color: var(--clean-navy, var(--sidebar));
  font-size: 0.98rem;
  line-height: 1.12;
  font-weight: 900;
}

.report-actions button small {
  color: var(--clean-blue, var(--report-teal));
  font-size: 0.68rem;
  line-height: 1.22;
  font-weight: 820;
}

.report-actions button p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.34;
  font-weight: 670;
}

.report-actions button strong {
  align-self: end;
  color: var(--teal);
  font-size: 0.72rem;
  line-height: 1.25;
}

.report-actions button em {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.report-actions button.export-available {
  cursor: pointer;
}

.report-actions button.export-available em {
  border-color: rgba(45, 143, 142, 0.36);
  background: rgba(45, 143, 142, 0.08);
  color: var(--teal);
}

.report-actions button.export-available strong {
  color: var(--sidebar);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-actions button.export-blocked {
  cursor: not-allowed;
  opacity: 0.72;
}

.color-coral {
  background: var(--report-coral);
}

.color-blue {
  background: var(--report-teal);
}

.color-teal {
  background: #4fa8b9;
}

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

.color-amber {
  background: var(--amber);
}

.color-gray {
  background: var(--gray);
}

.comparison-trend {
  min-height: 192px;
  margin: 0 16px;
  padding: 8px 0 2px;
  background:
    linear-gradient(to top, var(--clean-line, #dee4ec) 1px, transparent 1px) 0 100% / 100% 40px,
    #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
  align-items: end;
}

.trend-pair {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--clean-muted, var(--muted));
  font-size: 0.66rem;
  text-align: center;
  font-weight: 760;
}

.trend-pair.selected-period {
  color: var(--clean-navy, var(--sidebar));
}

.trend-pair.selected-period strong {
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef6f9;
}

.trend-values {
  min-height: 28px;
  display: grid;
  gap: 2px;
  color: var(--clean-navy, var(--sidebar));
  font-size: 0.6rem;
  line-height: 1.05;
}

.trend-values span:nth-child(2) {
  color: #7b8794;
}

.trend-bars {
  height: 108px;
  width: 100%;
  border-bottom: 1px solid #cdd6e1;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.trend-bars i {
  width: min(15px, 32%);
  min-height: 8px;
  display: block;
  border-radius: 0;
}

.trend-pair strong,
.trend-pair em {
  line-height: 1.1;
}

.trend-pair em {
  color: #8a95a3;
  font-size: 0.58rem;
  font-style: normal;
}

@media (max-width: 1220px) {
  .chart-stack {
    grid-template-columns: 1fr;
  }

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

  .chart-stack > .chart-card:first-child,
  .chart-stack > .chart-card.chart-trend {
    grid-column: auto;
  }

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

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

@media (max-width: 980px) {
  .mobile-menu-toggle {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--sidebar);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(9, 37, 68, 0.36);
  }

  .mobile-nav-backdrop.is-open {
    display: block;
  }

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(320px, 100vw);
    max-width: 100vw;
    min-height: 100vh;
    padding: 18px max(16px, env(safe-area-inset-left)) 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 160ms ease;
    box-shadow: 18px 0 34px rgba(15, 23, 42, 0.22);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar .brand {
    padding-left: 0;
    padding-right: 0;
    justify-items: start;
  }

  .sidebar .brand-logo-vmac,
  .sidebar .brand-logo-pcdc {
    width: min(188px, calc(100vw - 40px));
    max-width: 100%;
  }

  .sidebar .nav-item {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    white-space: normal;
  }

  .sidebar .nav-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 16px 12px 26px;
  }

  .mobile-filter-summary {
    margin: 0 0 12px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    box-shadow: var(--shadow);
  }

  #mobile-filters-toggle {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--sidebar);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
  }

  #active-filter-summary {
    margin: 0;
    color: var(--sidebar);
    font-size: 0.78rem;
    line-height: 1.22;
    font-weight: 850;
  }

  .filter-bar {
    display: none;
  }

  .filter-bar.is-open {
    display: grid;
  }

  .nav-group,
  .summary-grid,
  .insight-grid,
  .custom-date-controls,
  .chart-stack,
  .clean-chart-stack,
    .detail-grid,
    .detail-grid-three,
    .report-actions {
    grid-template-columns: 1fr;
  }

  .filter-bar > label:nth-of-type(3),
  .filter-bar > label:nth-of-type(4),
  .range-tabs,
  .custom-date-controls,
  .comparison-date-controls {
    grid-column: auto;
  }

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

  .dashboard-header,
  .header-actions {
    display: grid;
    white-space: normal;
  }

  .dashboard-header h1 {
    font-size: 1.42rem;
  }

  .summary-grid {
    gap: 10px;
  }

  .summary-box {
    min-height: 0;
  }

  .clean-report-preview .clean-chart-card {
    min-height: 0;
  }

  .comparison-trend,
  .clean-report-preview .vertical-bars,
  .clean-report-preview .trend-grid {
    min-height: 170px;
    margin: 0 12px;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 7px;
  }

  .stack-row,
  .mix-row,
  .watchlist div {
    grid-template-columns: 1fr;
  }
}
