.policy-insights-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.policy-insights-page .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.policy-insights-page .page-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.policy-insights-page .page-head-lead {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: none;
}

.policy-insights-page .page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.insights-report-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.insights-overview-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 8px;
}

.insights-table-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.insights-table-panel--gaps {
  overflow: auto;
}

.insights-gaps-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: min-content;
}

.insights-table-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.insights-table-panel--gaps .insights-table-block {
  flex: 0 0 auto;
  min-height: 280px;
  max-height: 50vh;
}

.insights-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.policy-insights-page .list-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.policy-insights-page .list-scroll .policy-list-table {
  border-collapse: collapse;
}

.policy-insights-page .insights-report-table {
  width: 100%;
  table-layout: fixed;
}

.policy-insights-page .insights-report-table tbody tr {
  cursor: default;
}

.policy-insights-page .insights-report-table tbody tr:hover {
  background: transparent;
}

.policy-insights-page .insights-report-table th,
.policy-insights-page .insights-report-table td {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.policy-insights-page .insights-report-table th {
  white-space: nowrap;
}

.policy-insights-page .insights-report-table .insights-primary-col,
.policy-insights-page .insights-report-table th[data-col="policy"],
.policy-insights-page .insights-report-table th[data-col="decision"],
.policy-insights-page .insights-report-table th[data-col="title"] {
  width: auto;
  min-width: 0;
}

.policy-insights-page .insights-report-table .col-num {
  width: 88px;
  min-width: 88px;
  white-space: nowrap;
}

.policy-insights-page .insights-report-table .col-updated {
  width: 128px;
  min-width: 128px;
  white-space: nowrap;
}

.policy-insights-page .insights-report-table .col-status {
  width: 108px;
  min-width: 108px;
  white-space: nowrap;
}

.policy-insights-page .insights-report-table--metrics .col-num {
  width: 76px;
  min-width: 76px;
}

.policy-insights-page .insights-report-table--metrics .col-updated {
  width: 112px;
  min-width: 112px;
}

.policy-insights-page .insights-developers-table {
  table-layout: auto;
  min-width: 980px;
}

.policy-insights-page .insights-developers-table th,
.policy-insights-page .insights-developers-table td {
  overflow: visible;
}

.policy-insights-page .insights-developers-table th {
  white-space: normal;
  line-height: 1.35;
  word-break: normal;
}

.policy-insights-page .insights-developers-table .col-num {
  width: auto;
  min-width: 92px;
}

.policy-insights-page .insights-developers-table .col-status {
  width: auto;
  min-width: 108px;
}

.policy-insights-page .insights-developers-table .insights-primary-col {
  min-width: 180px;
}

.policy-insights-page .list-pagination {
  flex-shrink: 0;
  margin-top: 10px;
}

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

@media (max-width: 980px) {
  .insights-kpi-groups {
    grid-template-columns: 1fr;
  }
}

.insights-kpi-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px 14px 14px;
}

.insights-kpi-group-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.insights-kpi-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

@media (max-width: 1200px) {
  .insights-summary-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 560px) {
  .insights-summary-kpis {
    grid-template-columns: 1fr;
  }
}

.insights-summary-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 14px 16px;
  min-width: 0;
  text-align: center;
}

.insights-summary-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.insights-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--subtle);
  flex-shrink: 0;
}

.insights-kpi-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insights-kpi-icon--sessions {
  color: #4a6d9a;
  background: color-mix(in srgb, #4a6d9a 12%, var(--panel-soft));
}

.insights-kpi-icon--standards {
  color: #5f6b7a;
  background: color-mix(in srgb, #5f6b7a 12%, var(--panel-soft));
}

.insights-kpi-icon--rating {
  color: #9a7b14;
  background: color-mix(in srgb, #9a7b14 12%, var(--panel-soft));
}

.insights-kpi-icon--recommendations {
  color: #4a6d9a;
  background: color-mix(in srgb, #4a6d9a 12%, var(--panel-soft));
}

.insights-kpi-icon--closeout {
  color: #2f6b34;
  background: color-mix(in srgb, #2f6b34 12%, var(--panel-soft));
}

.policy-insights-page .insights-summary-card--rate .insights-kpi-value {
  color: var(--text);
}

.insights-kpi-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.insights-kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-insights-page .insights-kpi-value {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.policy-insights-page .insights-kpi-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.insights-kpi-card--rate .insights-kpi-value {
  color: var(--text);
}

.insights-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.insights-section-head-text {
  flex: 1 1 320px;
  min-width: 0;
}

.insights-section-head .insights-table-toolbar {
  margin-bottom: 0;
}

.insights-section-title {
  margin: 0 0 6px;
}

.insights-section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 62ch;
}

.insights-rate-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.insights-rate-cell.is-low {
  color: #9a5b14;
}

.insights-rate-cell.is-strong {
  color: #2f6b34;
}


.policy-insights-page .insights-filters {
  margin-bottom: 8px;
}

.insights-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.insights-trend-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 14px 16px;
}

.insights-trend-chart {
  display: grid;
  gap: 8px;
}

.insights-trend-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.insights-trend-bucket {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.insights-trend-track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.insights-trend-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.82;
}

.insights-trend-metric {
  color: var(--subtle);
  font-size: 12.5px;
  white-space: nowrap;
}

.insights-trend-empty {
  margin: 0;
  font-size: 13px;
}

.insights-report-tabs {
  margin-bottom: 10px;
  flex-shrink: 0;
  justify-content: flex-start;
}

.policy-insights-page .decision-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: #a3a3a3;
  margin: 0 0 3px;
}

.policy-insights-page .insights-policy-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.policy-insights-page .insights-policy-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.policy-insights-page .list-policy-cell .decision-text {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--subtle);
  line-height: 1.35;
}

.policy-insights-page .list-policy-cell .tier-pill {
  margin-top: 4px;
}

.insights-reco-cell {
  display: grid;
  gap: 3px;
}

.insights-reco-title {
  font-size: var(--td-size);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.insights-reco-meta {
  font-size: var(--meta-size);
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
