.cms_summary {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  color: #172033;
}

.cms_summary[hidden] { display: none !important; }
.cms_summary.is-loading,
.cms_summary.is-error { display: block; color: #52627a; font-size: 12px; }
.cms_summary.is-error { border-color: #fecaca; background: #fff7f7; color: #b42318; }
.cms_summary_main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.cms_source_icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; background: #dbeafe; color: #1d4ed8; font-weight: 900; }
.cms_summary_main strong,
.cms_summary_main p { display: block; min-width: 0; margin: 0; }
.cms_summary_main strong { font-size: 13px; }
.cms_summary_main p { margin-top: 3px; color: #52627a; font-size: 11px; overflow-wrap: anywhere; }
.cms_summary_metrics,
.cms_summary_actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cms_summary_metrics span { border-radius: 999px; padding: 5px 8px; background: #fff; color: #52627a; font-size: 10px; font-weight: 750; }
.cms_summary_metrics .cms_level { background: #dbeafe; color: #1d4ed8; }
.cms_summary_metrics .is-warning { background: #fff7ed; color: #c2410c; }
.cms_summary_actions { justify-content: flex-end; }
.cms_summary_actions button,
.cms_report_shell button { min-height: 30px; border: 1px solid #93c5fd; border-radius: 8px; padding: 0 9px; background: #fff; color: #1d4ed8; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.cms_summary.is-compact { margin: 0 20px 10px; width: calc(100% - 40px); }

.cms_report_dialog { width: min(720px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); }
.cms_report_dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(5px); }
.cms_report_shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(780px, calc(100vh - 32px)); }
.cms_report_shell > header,
.cms_report_shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.cms_report_shell > footer { justify-content: flex-end; border-top: 1px solid #e2e8f0; border-bottom: 0; }
.cms_report_shell h2 { margin: 3px 0 0; font-size: 18px; }
.cms_report_shell header span { color: #1d4ed8; font-size: 11px; font-weight: 800; }
.cms_report_shell header button { min-width: 34px; font-size: 18px; }
.cms_report_shell > [data-cms-report-body] { overflow: auto; padding: 18px; }
.cms_report_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cms_report_grid > div,
.cms_report_meta,
.cms_corrections article { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; background: #f8fafc; }
.cms_report_grid span,
.cms_report_grid strong { display: block; }
.cms_report_grid span { color: #64748b; font-size: 10px; }
.cms_report_grid strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 12px; }
.cms_report_meta { margin-top: 10px; }
.cms_report_meta p,
.cms_corrections p { margin: 5px 0; color: #52627a; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.cms_corrections { display: grid; gap: 8px; margin-top: 12px; }
.cms_corrections h3 { margin: 0; font-size: 13px; }
.cms_corrections article strong,
.cms_corrections article span { display: block; font-size: 11px; }
.cms_corrections article span { margin-top: 3px; color: #c2410c; }

@media (max-width: 1120px) {
  .cms_summary { grid-template-columns: minmax(0, 1fr) auto; }
  .cms_summary_actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .cms_summary { grid-template-columns: 1fr; }
  .cms_summary_metrics { justify-content: flex-start; }
  .cms_report_grid { grid-template-columns: 1fr; }
}
