/* ===== Link Health Check modal ===== */
.lh-dialog {
  width: min(560px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg, #fff);
  color: var(--text-main, #222);
  border: 1px solid var(--panel-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.lh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border, #e2e8f0);
}
.lh-title { font-size: 15px; font-weight: 700; }
.lh-close {
  background: transparent; border: none; color: var(--text-dim, #94a3b8);
  font-size: 16px; cursor: pointer; width: 28px; height: 28px; border-radius: 8px;
}
.lh-close:hover { background: var(--card-hover-bg, #f1f5f9); color: var(--text-main, #222); }
.lh-progress-wrap { padding: 12px 16px 4px; }
.lh-progress-bar {
  height: 8px; border-radius: 99px; background: var(--card-hover-bg, #f1f5f9);
  overflow: hidden; border: 1px solid var(--panel-border, #e2e8f0);
}
.lh-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width .2s ease;
}
.lh-progress-text { font-size: 11px; color: var(--text-dim, #94a3b8); margin-top: 6px; }
.lh-results {
  flex: 1 1 auto; overflow-y: auto; padding: 8px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.lh-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(80px, 1.2fr) auto auto;
  align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--card-bg, #f8fafc);
  border: 1px solid var(--panel-border, #e2e8f0);
}
.lh-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-url { font-size: 11px; color: var(--text-dim, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
.lh-badge-ok { background: rgba(34, 197, 94, .15); color: #16a34a; }
.lh-badge-broken { background: rgba(239, 68, 68, .15); color: #dc2626; }
.lh-badge-suspect { background: rgba(234, 179, 8, .18); color: #ca8a04; }
.lh-badge-error { background: rgba(148, 163, 184, .2); color: #64748b; }
.lh-row-del { font-size: 11px; padding: 4px 10px; margin: 0; }
.lh-footer {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--panel-border, #e2e8f0);
}
.lh-summary { flex: 1 1 auto; font-size: 11px; color: var(--text-dim, #94a3b8); }
.lh-footer .modal-btn { font-size: 12px; }
