/* Styles for mod-domainx.js: Registration Lookup, Compare Domains, Bulk Certificate Expiry (dx-), plus the Bulk Audit upload (bk-upload). */

/* ---------- shared ---------- */
.dx-dim { color: var(--muted); }
.hint.dx-flush { padding: 0; }
.dx-note { padding: 12px 16px; font: 13px var(--mono); color: var(--muted); }
.dx-flags { display: grid; gap: 8px; }
.dx-flag strong { font-weight: 600; }
.pill.dx-code { text-transform: none; letter-spacing: .02em; }
.dx-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 12.5px var(--mono); color: var(--muted); }
.dx-sep { flex-basis: 100%; height: 0; }

/* ---------- raw JSON ---------- */
.dx-raw-b { display: grid; gap: 10px; padding: 12px 14px; min-width: 0; }
.dx-raw-b .code { max-height: 420px; overflow: auto; white-space: pre; word-break: normal; }
.dx-raw-b .hint a { word-break: break-all; }

/* ---------- compare ---------- */
.card-b > .dx-cmp-wrap { margin: -16px -18px 0; }
.dx-cmp th:nth-child(2), .dx-cmp th:nth-child(3) { text-transform: none; letter-spacing: .02em; color: var(--fg); }
.dx-cmp td { width: 37%; }
.dx-cmp td.dx-check { width: 26%; }
.dx-check strong { font-weight: 600; color: var(--fg); }
.dx-badge {
  display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid rgba(255,181,71,.5); border-radius: 99px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); vertical-align: 1px;
}
.dx-cmp .pill, .dx-xt .pill { flex-shrink: 0; }
.dx-cmp tr.dx-diff td { background: rgba(255,181,71,.06); }
.dx-cmp tr.dx-diff td:first-child { box-shadow: inset 2px 0 0 var(--amber); }

/* ---------- bulk certificate expiry ---------- */
.dx-xt td { white-space: nowrap; }
.dx-xt td.bk-wait, .dx-xt td.bk-err { white-space: normal; }

/* ---------- Bulk Audit upload ---------- */
.bk-upload { position: relative; cursor: pointer; }
.bk-upload input { position: absolute; width: 0; height: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; padding: 0; }
.bk-upload:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }

@media (max-width: 640px) {
  .dx-cmp td, .dx-cmp td.dx-check { width: 100%; }
  .dx-cmp tr.dx-diff td:first-child { box-shadow: none; }
  .dx-cmp tr.dx-diff { box-shadow: inset 2px 0 0 var(--amber); }
  table.t[data-cards].dx-cmp td.dx-check { padding-top: 6px; padding-bottom: 6px; }
  .dx-xt td { white-space: normal; }
}
