.mld-panel {
  min-width: 0;
  border: 1px solid var(--line, #e2e6ee);
  border-radius: 10px;
  background: var(--card, #fff);
}

.mld-title {
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--acc-weak, #eef1ff);
  color: var(--acc-ink, #3d4fe0);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.mld-panel[open] > .mld-title { border-radius: 9px 9px 0 0; }

.mld-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px 13px;
}

.mld-body [hidden] { display: none !important; }
.mld-body p { margin: 0; }
.mld-message.mld-error { color: var(--del, #b73847); }

.mld-totals,
.mld-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mld-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg, #f6f7fa);
  color: var(--sub, #626d80);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mld-badge[data-status='ready'] { background: var(--ok-weak, #eaf7f0); color: var(--ok, #167653); }
.mld-badge[data-status='review'],
.mld-badge[data-status='partial'] { background: var(--warn-weak, #fff6e7); color: var(--warn, #925b10); }
.mld-badge[data-status='missing'] { background: var(--del-weak, #fff0f2); color: var(--del, #b73847); }

.mld-controls,
.mld-paging {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.mld-controls .mlw-field { width: auto; min-width: 108px; flex: 0 1 auto; gap: 3px; }
.mld-controls select { min-height: 32px; }
.mld-controls > .mlw-button { min-height: 32px; }

.mld-scroll {
  max-width: 100%;
  max-height: 365px;
  overflow: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line, #e2e6ee);
  border-radius: 8px;
}

.mld-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: start;
}

.mld-table th,
.mld-table td {
  min-width: 105px;
  padding: 8px;
  border: 0;
  border-block-end: 1px solid var(--line, #e2e6ee);
  border-inline-end: 1px solid var(--line, #e2e6ee);
  vertical-align: top;
  text-align: start;
}

.mld-table th:last-child,
.mld-table td:last-child { border-inline-end: 0; }
.mld-table tbody tr:last-child > * { border-block-end: 0; }

.mld-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--bg, #f6f7fa);
  color: var(--sub, #626d80);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.mld-table thead th:first-child { z-index: 2; }
.mld-table th:first-child {
  position: sticky;
  inset-inline-start: 0;
  min-width: 118px;
  max-width: 12rem;
}

.mld-table tbody th {
  background: var(--card, #fff);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mld-table td.mld-excluded { background: var(--bg, #f6f7fa); color: var(--sub, #626d80); }

.mld-issues {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  color: var(--sub, #626d80);
  font-size: 11px;
}

.mld-issue[data-severity='error'] { color: var(--del, #b73847); }
.mld-issue[data-severity='warning'] { color: var(--warn, #925b10); }
.mld-path {
  display: block;
  max-width: 11rem;
  overflow: hidden;
  margin-top: 5px;
  color: var(--sub, #626d80);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mld-table .mld-inspect {
  min-height: 26px;
  margin-top: 5px;
  padding: 1px 5px;
  color: var(--acc-ink, #3d4fe0);
  font-size: 11px;
}

.mld-page {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  color: var(--sub, #626d80);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mld-page > .mlw-button {
  width: 32px;
  min-height: 30px;
  padding: 0;
  font-size: 16px;
}

@media (max-width: 520px) {
  .mld-title { padding-inline: 10px; }
  .mld-body { padding-inline: 9px; }
  .mld-controls .mlw-field { min-width: 90px; }
  .mld-table { table-layout: fixed; }
  .mld-table th,
  .mld-table td { min-width: 0; padding: 7px; overflow-wrap: anywhere; }
  .mld-table th:first-child { width: 45%; min-width: 0; }
  .mld-path { max-width: 100%; }
}
