.m-legal-modal,
.m-report-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.m-legal-modal__backdrop,
.m-report-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 22, 0.55);
}

.m-legal-modal__panel,
.m-report-sheet__panel {
  position: relative;
  margin: 8vh auto 0;
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.m-legal-modal__body,
.m-legal-body {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-height: 48vh;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.65;
}

.m-legal-modal__foot,
.m-legal-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

[data-m-report-filters] a,
[data-m-agreement-card] h2,
[data-m-report-case] h1 {
  overflow-wrap: break-word;
  word-break: normal;
}

.m-review-item {
  min-width: 0;
}

.m-review-title,
.m-review-brief {
  overflow-wrap: break-word;
  word-break: normal;
}

.m-queue-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.45rem 0 0;
  color: #e6cf8c;
  text-decoration: none;
}

.m-queue-proof img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(230, 207, 140, 0.28);
}

.m-queue-proof span {
  font-size: 0.82rem;
}
