.mdsrg-report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0;
}

.mdsrg-report-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.mdsrg-report-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.mdsrg-report-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdsrg-report-card-body {
  flex: 1;
  min-height: 0;
  padding: 20px 22px 14px;
}

.mdsrg-report-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.mdsrg-report-description {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 8px;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.75;
  overscroll-behavior: contain;
}

.mdsrg-report-description:focus {
  outline: 2px solid rgba(17, 24, 39, 0.18);
  outline-offset: 2px;
}

.mdsrg-report-description p {
  margin: 0 0 12px;
}

.mdsrg-report-description p:last-child {
  margin-bottom: 0;
}

.mdsrg-report-card-footer {
  padding: 0 22px 22px;
}

.mdsrg-open-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mdsrg-open-report:hover,
.mdsrg-open-report:focus {
  opacity: 0.88;
  transform: translateY(-1px);
}

.mdsrg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.mdsrg-modal.is-open {
  display: block;
}

.mdsrg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.mdsrg-modal-dialog {
  position: absolute;
  inset: 4vh 4vw;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.mdsrg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mdsrg-modal-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.mdsrg-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mdsrg-iframe-wrap {
  flex: 1;
  min-height: 0;
}

.mdsrg-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

html.mdsrg-modal-open,
html.mdsrg-modal-open body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mdsrg-modal-dialog {
    inset: 0;
    border-radius: 0;
  }

  .mdsrg-modal-header {
    padding: 12px 14px;
  }

  .mdsrg-report-list {
    grid-template-columns: 1fr;
  }
}
