/* dc_scan_error_modal_html — the floating scan-error list's own rules, kept
 * here because the Anvil server strips a template's <style> block. Rules are
 * scoped by their selector preludes.
 *
 * ROOT. The form root is the .dcsem-root div itself, so its rule stays BARE
 * and byte-identical, position: fixed and all: this is an overlay pinned to
 * the viewport, not a screen in the nav port, so the guide's screen-root rule
 * does not reach it.
 *
 * THE HIDE NEEDS NO DESIGNER GATE. .dcsem-root { display: none } is the empty
 * state. The designer canvas loads this head-linked asset, so it shows what
 * first paint shows, and the section carries no live class to gate on.
 *
 * ORDER. This asset is a head <link>, so it loads after theme/assets/theme.css
 * and before the dependency's runtime theme injection. Nothing ties: every class here is dcsem-prefixed and is
 * declared in no other template, in theme.css or in
 * px-shared-dependencies-anvil, and .px-anvil-reset on the root only ever
 * declares DESCENDANT rules, never the element's own. The only unprefixed
 * competitor would be an element selector on <button>, which loses to a class
 * on specificity whatever the order.
 *
 * SCOPING. :where(.dcsem-root) adds zero specificity, so every scoped rule keeps
 * exactly the weight its bare selector had. No @keyframes, no url(), no
 * @font-face and no .themed-scrollbar rule here.
 */

.dcsem-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: transparent;
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  font-family: var(--px-font);
}
:where(.dcsem-root) .dcsem-card {
  pointer-events: auto;
  background: #ffffff;
  color: var(--px-text-primary);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--px-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--px-border);
  display: flex;
  flex-direction: column;
}
:where(.dcsem-root) .dcsem-header {
  background: #c62828;
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-top-left-radius: var(--px-radius);
  border-top-right-radius: var(--px-radius);
}
:where(.dcsem-root) .dcsem-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px 16px;
}
:where(.dcsem-root) .dcsem-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-sm);
  background: #fff7f7;
}
:where(.dcsem-root) .dcsem-row-text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--px-text-primary);
  min-width: 0;
  word-break: break-word;
}
:where(.dcsem-root) .dcsem-row-text .dcsem-row-meta {
  font-size: 11px;
  color: var(--px-text-muted);
  display: block;
  margin-top: 2px;
}
:where(.dcsem-root) .dcsem-row-text .dcsem-row-msg {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: #b91c1c;
}
:where(.dcsem-root) .dcsem-row-text .dcsem-row-home {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--px-text-primary);
}
:where(.dcsem-root) .dcsem-ack-btn {
  flex: 0 0 auto;
  background: #c62828;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--px-radius-sm);
  cursor: pointer;
}
:where(.dcsem-root) .dcsem-ack-btn:hover { background: #b91c1c; }
:where(.dcsem-root) .dcsem-ack-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.35);
}
