/*
 * Epic Scanner: front-end styles (plugin 0.5.0). Loaded only on pages that carry [epic_scanner_portal] or
 * [epic_scanner_upsell]; never admin.css or the compliance engine's stylesheet. Built on the theme's
 * Bootstrap classes.
 *
 * Section 1: the sample's styles, copied unchanged from the epicpaths.com child theme
 * (epicpaths-website da4525b, _bootscore-custom.scss lines 1898-1933, 1949-1951, 1960-1965,
 * 2033-2477, 2491-2513 and 2515-2554; plain CSS, nothing to compile). Theme 1.2.9 drops them.
 * Section 2: the plugin's own focus rings for its surfaces (the theme drops its selectors for them).
 * Section 3: the member view: the site's look for the wp-admin class names the screens use.
 * Section 4: the screens' own component styles, an exact copy of admin.css (tested).
 */

/* ===== 1. The sample (from the theme, unchanged) ===== */
/* ==========================================================================
   SAMPLE SCANNER UPSELL & DESTINATION PORTAL (Phase 2 Ready)
   ========================================================================== */
.epic-scanner-upsell-card,
.epic-scanner-sample-portal {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
  --bs-card-bg: #0b1a29;
  --bs-card-color: #ffffff;
  border: 2px solid rgba(100, 223, 223, 0.3) !important;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(11, 26, 41, 0.25);
}

.epic-scanner-sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(100, 223, 223, 0.14);
  color: #64dfdf;
  border: 1px solid rgba(100, 223, 223, 0.45);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
}

.epic-scanner-finding-table th {
  background-color: #11253a;
  color: #64dfdf;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.epic-scanner-sample-portal code,
.epic-scanner-upsell-card code,
#scanner-bot-info code,
.epic-scanner-code-box code {
  color: #64dfdf !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}
/* ==========================================================================
   SAMPLE SCANNER PORTAL SEMANTIC CLASSES (No Inline Styles - S2)
   ========================================================================== */
.epic-scanner-portal-wrapper {
  background-color: #f8fafc;
}

.epic-badge-slate-pill {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 0.78rem;
}

.epic-scanner-lead-copy {
  max-width: 780px;
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.65;
}

.epic-scanner-sub-copy {
  max-width: 720px;
  color: #334155;
}

.epic-scanner-sample-portal .epic-scanner-lead-copy,
.epic-scanner-sample-portal .epic-scanner-sub-copy,
.epic-scanner-upsell-card .epic-scanner-lead-copy,
.epic-scanner-upsell-card .epic-scanner-sub-copy,
.epic-scanner-bot-card .epic-scanner-lead-copy,
.epic-scanner-bot-card .epic-scanner-sub-copy,
.epic-scanner-viewport-header .epic-scanner-sub-copy {
  color: #cbd5e1 !important;
}

.epic-scanner-hero-lead {
  color: #f1f5f9;
  line-height: 1.65;
}

.epic-scanner-meta-bar {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(100, 223, 223, 0.3);
}

.epic-scanner-meta-label {
  color: #cbd5e1;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.epic-scanner-body-copy {
  color: #334155;
  line-height: 1.65;
}

.epic-scanner-card-copy {
  color: #334155;
  line-height: 1.6;
}

.epic-scanner-donut-card {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

.epic-scanner-donut-box {
  width: 240px;
  height: 240px;
}

.epic-scanner-svg-label-light {
  fill: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}

.epic-scanner-svg-label-dark {
  fill: #0b1a29;
  font-size: 9.5px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}

.epic-scanner-svg-center-num {
  fill: #0b1a29;
  font-size: 26px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}

.epic-scanner-svg-center-sub {
  fill: #334155;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
}

.epic-ring-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.epic-swatch-violation { background-color: #b91c1c; }
.epic-swatch-review { background-color: #f59e0b; }
.epic-swatch-wcag-own { background-color: #1d4ed8; }
.epic-swatch-wcag-tp { background-color: #93c5fd; }
.epic-swatch-bp-own { background-color: #0f766e; }
.epic-swatch-bp-tp { background-color: #5eead4; }
.epic-swatch-crit { background-color: #991b1b; }
.epic-swatch-ser { background-color: #c2410c; }
.epic-swatch-mod { background-color: #eab308; }
.epic-swatch-min { background-color: #475569; }

.epic-badge-live {
  background-color: #065f46 !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.epic-badge-planned {
  background-color: #fef3c7 !important;
  color: #78350f !important;
  border: 1px solid #d97706 !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.epic-badge-reach-global {
  background-color: #991b1b !important;
  color: #ffffff !important;
  font-size: 0.72rem;
}

.epic-badge-reach-template {
  background-color: #1e3a8a !important;
  color: #ffffff !important;
  font-size: 0.72rem;
}

.epic-badge-reach-multiple {
  background-color: #0f766e !important;
  color: #ffffff !important;
  font-size: 0.72rem;
}

.epic-badge-reach-single {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border: 1px solid #94a3b8;
  font-size: 0.72rem;
}

.epic-badge-moderate {
  background-color: #fef08a !important;
  color: #0b1a29 !important;
  border: 1px solid #ca8a04;
}

.epic-badge-minor {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border: 1px solid #94a3b8;
}

.epic-badge-thirdparty-scope {
  background-color: #e0f2fe !important;
  color: #0c4a6e !important;
  border: 1px solid #0284c7;
  font-size: 0.75rem;
}

.epic-scanner-cat-tab {
  background-color: #f1f5f9 !important;
  color: #0b1a29 !important;
  border: 2px solid #475569 !important;
  font-weight: 700;
  min-height: 38px;
}

.epic-scanner-cat-tab.active {
  background-color: #0b1a29 !important;
  color: #64dfdf !important;
  border: 2px solid #0b1a29 !important;
}

.epic-scanner-size-btn {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid #64dfdf !important;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 36px;
}

.epic-scanner-size-btn.active {
  background-color: #64dfdf !important;
  color: #0b1a29 !important;
  border-color: #64dfdf !important;
}

.epic-scanner-findings-table-wrap {
  background-color: #ffffff;
  border-color: #64748b !important;
}

.epic-scanner-findings-caption {
  color: #0b1a29;
  background-color: #f1f5f9;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cbd5e1;
}

.epic-scanner-findings-table {
  font-size: 0.84rem;
}

.epic-scanner-findings-table thead th {
  background-color: #0b1a29;
  color: #ffffff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.epic-scanner-details summary {
  cursor: pointer;
  color: #0b1a29;
  font-weight: 700;
  padding: 0.25rem 0;
}

.epic-scanner-details-body {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  margin-top: 0.4rem;
  min-width: 260px;
}

.epic-engine-section-card {
  border-top: 5px solid #0b1a29 !important;
}

.epic-scan-type-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
}

.epic-donut-center-overlay {
  pointer-events: none;
  line-height: 1.1;
  width: 72px;
}

.epic-donut-center-count {
  color: #0b1a29 !important;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.epic-donut-center-label {
  color: #334155 !important;
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.epic-scanner-donut-caption {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  font-size: 0.78rem;
  line-height: 1.45;
}

.epic-scanner-data-table-wrap {
  border-color: rgba(100, 223, 223, 0.3) !important;
  background-color: #0f2338;
}

.epic-scanner-data-table {
  --bs-table-bg: transparent;
  --bs-table-color: #f8fafc;
  --bs-table-border-color: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.epic-scanner-data-table code {
  color: #64dfdf;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.epic-scanner-table-caption {
  color: #64dfdf;
  background-color: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.epic-status-symbol {
  display: inline-block;
  width: 1.1rem;
  font-weight: 800;
  text-align: center;
  margin-right: 0.2rem;
}

.epic-status-pass {
  color: #64dfdf !important;
}

.epic-status-fixed {
  color: #38bdf8 !important;
}

.epic-status-fail {
  color: #ff9f43 !important;
}

.epic-status-review {
  color: #fde047 !important;
}

.epic-status-serious {
  color: #fca5a5 !important;
}

.epic-status-thirdparty {
  color: #cbd5e1 !important;
}

.epic-text-fail {
  color: #ff9f43 !important;
}

.epic-scanner-callout-note {
  background-color: #f1f5f9 !important;
  border-left: 4px solid #0b1a29 !important;
  color: #0f172a !important;
  font-size: 0.82rem;
  line-height: 1.5;
}

.epic-scanner-viewport-header {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.epic-sample-viewport-tab {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #64dfdf !important;
}

.epic-sample-viewport-tab.active {
  background-color: #64dfdf !important;
  color: #0b1a29 !important;
  border: 2px solid #64dfdf !important;
}

.epic-tab-badge-navy {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
}

.epic-tab-badge-orange {
  background-color: #ff9f43 !important;
  color: #0b1a29 !important;
}

.epic-badge-navy-white {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
}

.epic-badge-navy-cyan {
  background-color: #0b1a29 !important;
  color: #64dfdf !important;
}

.epic-badge-critical {
  background-color: #991b1b !important;
  color: #ffffff !important;
}

.epic-badge-serious {
  background-color: #ff9f43 !important;
  color: #0b1a29 !important;
}

.epic-badge-rule {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

.epic-finding-card-header {
  background-color: #f8fafc;
}

.epic-finding-card-header-mobile {
  background-color: #fff7ed;
}

.epic-scanner-code-box {
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
}

.epic-scanner-frame-callout {
  background-color: #eff6ff;
  border-left: 4px solid #0284c7;
  color: #0f172a;
}

.epic-workflow-step-cyan {
  border-top: 4px solid #64dfdf !important;
}

.epic-workflow-step-orange {
  border-top: 4px solid #ff9f43 !important;
}

.epic-workflow-step-teal {
  border-top: 4px solid #20c997 !important;
}
.epic-btn-navy-cta {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
  border: 2px solid #0b1a29 !important;
}

.epic-btn-navy-cta:hover,
.epic-btn-navy-cta:focus-visible {
  background-color: #1a2845 !important;
  color: #64dfdf !important;
}

.epic-btn-orange-cta {
  background-color: #ff9f43 !important;
  color: #0b1a29 !important;
  border: 2px solid #ff9f43 !important;
}

.epic-btn-orange-cta:hover,
.epic-btn-orange-cta:focus-visible {
  background-color: #f26e24 !important;
  color: #0b1a29 !important;
}
.epic-scanner-bot-card {
  background-color: #0b1a29 !important;
  color: #ffffff !important;
  --bs-card-bg: #0b1a29;
  --bs-card-color: #ffffff;
  border: 1px solid rgba(100, 223, 223, 0.35) !important;
}

.epic-scanner-ua-box {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(100, 223, 223, 0.3);
}

.epic-icon-cyan {
  color: #64dfdf !important;
}

.epic-icon-orange {
  color: #ff9f43 !important;
}

.epic-icon-teal {
  color: #20c997 !important;
}

.epic-icon-emerald {
  color: #15803d !important;
}

.epic-icon-amber {
  color: #b45309 !important;
}

.epic-icon-sky {
  color: #0284c7 !important;
}

.epic-link-cyan {
  color: #64dfdf !important;
}

/* ===== 2. Focus rings on the plugin's surfaces =====
 * The same two styles the theme used for these surfaces (da4525b lines 2629-2632, 2643, 2667-2669):
 * on the dark surfaces a lime ring (#36f710, about 10.7:1 on the navy); on light or coloured controls
 * inside them a two-part ring, white inside and navy outside (about 17:1), so it shows on any
 * background. Class selectors, so they hold over the theme's general :where() rings. */
.epic-scanner-sample-portal :is(a, button, input, textarea, select, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible,
.epic-scanner-upsell-card :is(a, button, input, textarea, select, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible,
.epic-scanner-bot-card :is(a, button, input, textarea, select, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible,
.epic-scanner-viewport-header :is(a, button, input, textarea, select, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible {
  outline: 2px solid #36f710 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

.epic-scanner-portal-wrapper :is(.epic-btn-cyan-cta, .epic-btn-orange-cta, .epic-btn-navy-cta, .epic-sample-viewport-tab.active, .epic-scanner-size-btn.active, .epic-scanner-cat-tab.active):focus-visible,
.epic-scanner-upsell-card .epic-btn-cyan-cta:focus-visible,
.esc-front :is(a, button, input, textarea, select, summary, [role="button"], [tabindex="0"]):focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 7px #0b1a29 !important;
}

/* ===== 2b. The sample at narrow widths (reflow, WCAG 1.4.10) =====
 * The theme's markup uses Bootstrap badges, which never wrap, and long words in headings. On a narrow
 * screen they may wrap and break, so nothing runs past the edge. */
.epic-scanner-portal-wrapper .badge,
.epic-scanner-upsell-card .badge {
  white-space: normal;
  text-align: left;
}

.epic-scanner-portal-wrapper,
.epic-scanner-upsell-card {
  overflow-wrap: anywhere;
}

.epic-scanner-portal-wrapper .d-flex > *,
.epic-scanner-portal-wrapper .row > *,
.epic-scanner-upsell-card .d-flex > * {
  min-width: 0;
}

/* The two ring charts are a fixed 240 px; with the theme's padding at 320 px there can be less. */
.epic-scanner-portal-wrapper .epic-scanner-donut-box {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.epic-scanner-portal-wrapper [role="region"] {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
}

/* ===== 3. The member view =====
 * The screens render with the class names they use in wp-admin (.button, .notice, .widefat, …), which
 * the site doesn't style. These rules give them the site's look, on its Bootstrap: the compliance
 * engine's front-end colours (matrix-style.css: blue #29347D for actions, slate #334155 text, #cbd5e1
 * borders, its error and success tints) and the site's navy. Everything is scoped to .esc-front. */
.esc-front {
  color: #1f2937;
  font-family: system-ui, -apple-system, sans-serif;
}

.esc-front h1 {
  color: #0b1a29;
  font-weight: 800;
  margin-bottom: 1rem;
}

.esc-front h2,
.esc-front h3 {
  color: #0b1a29;
  font-weight: 700;
}

.esc-front a:not(.button):not(.btn) {
  color: #1e40af;
  text-decoration: underline;
}

.esc-front .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* inline-block, not inline-flex: a flex box drops the spaces between text and an element, so "as
 * <abbr>CSV</abbr>" read "asCSV" (owner, 22 Nov). */
.esc-front .button,
.esc-front button.button,
.esc-front a.button {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 2px solid #29347D;
  border-radius: 6px;
  background: #ffffff;
  color: #29347D;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.esc-front .button:hover {
  background: #dfe2f0;
}

.esc-front .button-primary,
.esc-front a.button-primary,
.esc-front button.button-primary {
  background: #29347D;
  color: #ffffff;
}

.esc-front .button-primary:hover {
  background: #1e2860;
  color: #ffffff;
}

.esc-front .esc-button-delete.button {
  border-color: #a50e0e;
  color: #a50e0e;
  background: #ffffff;
}

.esc-front .esc-button-delete.button:hover {
  background: #f9e6e6;
}

.esc-front .notice {
  border: 1px solid #cbd5e1;
  border-left: 4px solid #29347D;
  background: #ffffff;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.esc-front .notice p {
  margin: 0.25rem 0;
}

.esc-front .notice-error {
  border-left-color: #a50e0e;
  background: #f9e6e6;
}

.esc-front .notice-success {
  border-left-color: #065f46;
  background: #e8f3ee;
}

.esc-front .notice-warning {
  border-left-color: #92400e;
  background: #fef3c7;
}

.esc-front .notice-info {
  border-left-color: #1e40af;
  background: #dfe2f0;
}

.esc-front .widefat {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.esc-front .widefat th,
.esc-front .widefat td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.esc-front .widefat thead th {
  background: #f1f5f9;
  color: #0b1a29;
}

.esc-front .striped > tbody > tr:nth-child(odd) {
  background: #f8fafc;
}

.esc-front input[type="url"],
.esc-front input[type="text"],
.esc-front input[type="search"],
.esc-front input[type="number"],
.esc-front textarea,
.esc-front select {
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
}

/* Controls as wide as their content (0.5.1; on staging the theme made the Screen size select full width
 * and pushed its Show button underneath). Selects and short inputs size to what they hold, with their
 * button beside them; a row wraps only when the screen is narrow. The long fields (the New scan address,
 * the host lists) are full width up to a readable maximum. */
.esc-front select,
.esc-front input[type="search"],
.esc-front input[type="text"]:not(.regular-text) {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.esc-front input[type="number"] {
  display: inline-block;
  width: 8em;
  max-width: 100%;
}

.esc-front input.regular-text,
.esc-front textarea {
  display: block;
  width: 100%;
  max-width: 32rem;
}

.esc-front .description {
  color: #334155;
}

.esc-front .esc-front-refused {
  margin: 1rem 0;
}

.esc-front-notice {
  border-left: 4px solid #0b1a29;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  color: #0b1a29;
  margin: 0;
}

/* Reflow (WCAG 1.4.10): on the site the screens sit inside the theme's own padding, so less room than
 * in wp-admin. The chart and its key may shrink below their usual widths, the card's padding narrows,
 * and nothing but a table's own scroll region may be wider than the screen. */
.esc-front .esc-chart > *,
.esc-front .esc-card-body > * {
  min-width: 0;
}

.esc-front .esc-wrap,
.esc-front .esc-card,
.esc-front .esc-card-body {
  max-width: 100%;
  min-width: 0;
}

/* position: relative, so the region also clips the screen-reader text inside its table (absolutely
 * positioned, so otherwise placed against the theme's nearest positioned block, widening the page). */
.esc-front .esc-table-scroll,
.esc-front [role="region"] {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
}

.esc-front .esc-tablist {
  flex-wrap: wrap;
}

@media (max-width: 30rem) {
  .esc-front .esc-tab {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .esc-front .esc-card {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .esc-front .esc-chart-figure {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ===== 3a. The teaser cards (0.5.1): text on the left, the small ring chart with its figures on the
 * right, the actions below; one column on a narrow screen. Both cards are dark (the sample's
 * .epic-scanner-upsell-card), so text is white or the theme's light copy colours. ===== */
.esc-teaser-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.esc-teaser-main {
  flex: 1 1 18rem;
  min-width: 0;
}

.esc-teaser-side {
  flex: 0 1 30rem;
  min-width: 0;
}

/* The chart on its own white card (0.5.2, owner): the rings with their slice labels and the key for
 * the outer and middle rings, each count written out; the inner ring's key is left to the results page. */
.esc-chart-card {
  background: #ffffff;
  color: #1f2937;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 100%;
}

.esc-chart-card-caption {
  margin: 0 0 0.5rem;
  color: #0b1a29;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.esc-chart--small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.esc-chart--small .esc-chart-figure {
  flex: 0 1 12rem;
  width: 12rem;
  max-width: 100%;
}

.esc-chart--small .esc-ring-key {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.9rem;
}

.esc-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.esc-teaser-secondary {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== 3b. The page about the scanner ([epic_scanner_bot]) ===== */
.esc-bot-page {
  color: #1f2937;
  max-width: 60rem;
}

.esc-bot-page h1,
.esc-bot-page h2,
.esc-bot-page h3 {
  color: #0b1a29;
}

.esc-bot-page h2 {
  margin-top: 2rem;
}

.esc-bot-page a {
  color: #1e40af;
  text-decoration: underline;
}

.esc-bot-page .esc-bot-code {
  background: #0b1a29;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.esc-bot-page .esc-bot-code code {
  color: #f8fafc !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.9rem;
}

/* ===== 4. The screens' own component styles =====
 * The results card, the ring chart, tables, pagination and the New scan form, copied unchanged from
 * assets/css/admin.css (admin.css itself is never loaded on the front end). Every rule there is
 * prefixed esc-, so it can't touch the theme. A test (front-member.test.js) fails if this copy and
 * admin.css ever differ: change admin.css, then copy it here between the two markers. */
/* BEGIN copy of admin.css */
/* Epic Scanner admin screens. Everything is prefixed esc- so it can't clash with the compliance
   engine or WordPress; no inline styles anywhere (compliance-engine commandment 5). */

.esc-wrap {
  max-width: 64rem;
}

.esc-lead {
  font-size: 1.05em;
  max-width: 48rem;
}

.esc-section {
  margin: 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #c3c4c7;
}

.esc-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0.75rem 0;
}

.esc-facts dt {
  font-weight: 600;
}

.esc-facts dd {
  margin: 0;
}

.esc-secret {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #2271b1;
  background: #f0f6fc;
}

.esc-secret label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.esc-secret-value {
  width: 100%;
  max-width: 40rem;
  font-family: ui-monospace, monospace;
}

.esc-textarea {
  display: block;
  width: 100%;
  max-width: 32rem;
  font-family: ui-monospace, monospace;
  /* Lines wrap, so only vertical scrolling is needed. Also stops axe reporting the field as "partially
     obscured" by itself (it can't tell the background behind a box that scrolls both ways). */
  overflow-x: hidden;
  overflow-y: auto;
}

.esc-settings-form label[for="esc-allowed-domains"] {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Descriptions under fields: a little darker than WordPress's own grey, for contrast. */
.esc-wrap .description {
  color: #50575e;
}

/* Scans list. */
.esc-engine-status {
  margin: 0.5rem 0 1rem;
}

/* Tables wrap only between words. A table wider than the screen scrolls sideways in its region
   (.esc-table-scroll) instead of breaking words; only addresses and code may break anywhere. */
.esc-table td,
.esc-table th,
.esc-mini-table td,
.esc-mini-table th {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  vertical-align: top;
}

.esc-table .esc-url,
.esc-table .esc-target,
.esc-table .esc-rule {
  overflow-wrap: anywhere;
}

.esc-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.esc-table-scroll:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.esc-target {
  display: block;
  font-weight: 600;
}

.esc-meta {
  display: block;
  color: #50575e;
}

.esc-inline-form {
  margin: 0;
}

.esc-button-delete.button {
  color: #b32d2e;
  border-color: #b32d2e;
}

.esc-button-delete.button:hover,
.esc-button-delete.button:focus {
  color: #8a2424;
  border-color: #8a2424;
}

/* Pagination: centred, each target at least 2rem (32 px) square (WCAG 2.5.8 asks for 24). */
.esc-pagination {
  margin: 1rem 0;
  text-align: center;
}

.esc-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.esc-pagination li {
  margin: 0;
}

.esc-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #c3c4c7;
  border-radius: 0.25rem;
  background: #fff;
  color: #2271b1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

a.esc-page:hover {
  border-color: #2271b1;
  background: #f0f6fc;
  color: #135e96;
}

a.esc-page:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
  box-shadow: none;
}

.esc-page--current {
  border-color: #2271b1;
  background: #2271b1;
  color: #fff;
  font-weight: 600;
}

.esc-page--off {
  color: #a7aaad;
  border-color: #dcdcde;
}

.esc-page-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.esc-page-count {
  margin: 0.4rem 0 0;
  color: #50575e;
}

@media (forced-colors: active) {
  .esc-page--current {
    border-width: 2px;
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }
}

/* New scan form. */
.esc-form {
  max-width: 48rem;
}

.esc-field {
  margin: 1.25rem 0;
}

.esc-field > label,
.esc-field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.esc-field p {
  margin: 0.25rem 0;
}

.esc-option-help {
  display: block;
  margin-left: 1.75rem;
}

.esc-field-error {
  color: #b32d2e;
  font-weight: 600;
}

.esc-field [aria-invalid="true"] {
  border-color: #b32d2e;
  box-shadow: 0 0 0 1px #b32d2e;
}

.esc-errors h2 {
  margin: 0.5em 0;
}

.esc-errors ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.esc-details {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.esc-details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0;
}

.esc-details summary:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* Results screen (decision 0003 A). Chart colours are the compliance engine's own (ep-analytics.js):
   impact critical #831843, serious #7e22ce, moderate #1d4ed8, minor #0f766e, Not Rated #64748b;
   violations #dc2626, needs review #cbd5e1. The chart is decoration; the tables carry the data. */
.esc-back {
  margin: 0.5rem 0 0;
}

.esc-views ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.esc-views a[aria-current="page"] {
  font-weight: 600;
  color: #1d2327;
  text-decoration-thickness: 2px;
}

.esc-card {
  container-type: inline-size;
  margin: 1rem 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.esc-card h2 {
  margin-top: 0.25rem;
}

.esc-card-subtitle {
  color: #50575e;
  max-width: 60rem;
}

/* Screen-size selector (replaces the Phase 3 third-party filter). */
.esc-size-form p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

.esc-size-form label {
  font-weight: 600;
}

.esc-legacy-note {
  padding: 0.4rem 0.75rem;
  border-left: 4px solid #2271b1;
  background: #f0f6fc;
}

.esc-card-body {
  display: grid;
  grid-template-columns: minmax(12rem, 32rem) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

@container (max-width: 60rem) {
  .esc-card-body {
    grid-template-columns: 1fr;
  }
}

/* The chart with its key beside it when there is room, under it when there isn't. */
.esc-chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* The chart: the SVG rings with the total and slice labels as HTML on top. */
.esc-chart-figure {
  position: relative;
  flex: 1 1 14rem;
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1;
  container-type: inline-size;
}

.esc-rings {
  display: block;
  width: 100%;
  height: auto;
}

.esc-ring-track {
  fill: none;
  stroke: #f1f5f9;
}

.esc-arc {
  fill: none;
}

.esc-arc--violations { stroke: #dc2626; }
.esc-arc--incomplete { stroke: #cbd5e1; }
.esc-arc--wcag { stroke: #1e40af; }
.esc-arc--wcag-third { stroke: #93c5fd; }
.esc-arc--bp { stroke: #0f766e; }
.esc-arc--bp-third { stroke: #5eead4; }
.esc-arc--critical { stroke: #831843; }
.esc-arc--serious { stroke: #7e22ce; }
.esc-arc--moderate { stroke: #1d4ed8; }
.esc-arc--minor { stroke: #0f766e; }
.esc-arc--not-rated { stroke: #64748b; }

/* The total, in the white centre: one text element on its own white background. */
/* The total: a white circle that fits inside the inner ring's hole (36% of the chart; the hole is 39.5%),
   so it never covers a ring. Sizes follow the chart's width (container units). */
.esc-chart-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36%;
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #1d2327;
  font-size: 4.4cqi;
  line-height: 1.15;
  text-align: center;
}

.esc-chart-centre-text {
  display: block;
}

.esc-chart-centre-text::first-line {
  font-size: 2.1em;
  font-weight: 800;
}

/* 100,000 and up, then 100,000,000 and up: smaller numbers so they still fit. */
.esc-chart-centre--long .esc-chart-centre-text::first-line {
  font-size: 1.5em;
}

.esc-chart-centre--huge .esc-chart-centre-text::first-line {
  font-size: 1.15em;
}

/* Slice labels, at the slice's middle angle (classes in 5-degree steps, set below) and ring radius,
   placed with CSS trigonometry rather than inline styles. Each label has its slice's colour as its
   background, so it reads as text on the slice, and axe can check its contrast. */
.esc-slice {
  position: absolute;
  left: calc(50% + var(--esc-r) * sin(var(--esc-a)));
  top: calc(50% - var(--esc-r) * cos(var(--esc-a)));
  transform: translate(-50%, -50%);
  /* Small vertical padding so the text's own box stays inside its background (axe checks this), and a
     size that fits within the narrowest ring. */
  padding: 0.15em 0.25em;
  border-radius: 0.2em;
  font-size: clamp(0.6rem, 3.6cqi, 0.75rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* Text on each slice colour: white on dark colours, near-black on light ones. Contrast (WCAG 1.4.3,
   4.5:1 for this size): white on #dc2626 4.8, #1e40af 8.7, #0f766e 5.5, #831843 9.4, #7e22ce 7.0,
   #1d4ed8 6.7, #64748b 4.8; #1d2327 on #cbd5e1 10.7, #93c5fd 8.8, #5eead4 10.9. */
.esc-on-violations { background: #dc2626; color: #fff; }
.esc-on-incomplete { background: #cbd5e1; color: #1d2327; }
.esc-on-wcag { background: #1e40af; color: #fff; }
.esc-on-wcag-third { background: #93c5fd; color: #1d2327; }
.esc-on-bp { background: #0f766e; color: #fff; }
.esc-on-bp-third { background: #5eead4; color: #1d2327; }
.esc-on-critical { background: #831843; color: #fff; }
.esc-on-serious { background: #7e22ce; color: #fff; }
.esc-on-moderate { background: #1d4ed8; color: #fff; }
.esc-on-minor { background: #0f766e; color: #fff; }
.esc-on-not-rated { background: #64748b; color: #fff; }

/* Ring radii as a share of the chart's width: 165, 126 and 90 of 400. */
.esc-slice--outer { --esc-r: 41.25%; }
.esc-slice--middle { --esc-r: 31.5%; }
.esc-slice--inner { --esc-r: 22.5%; font-size: clamp(0.55rem, 3.2cqi, 0.7rem); } /* the narrowest ring */

.esc-a-0 { --esc-a: 0deg; }
.esc-a-5 { --esc-a: 5deg; }
.esc-a-10 { --esc-a: 10deg; }
.esc-a-15 { --esc-a: 15deg; }
.esc-a-20 { --esc-a: 20deg; }
.esc-a-25 { --esc-a: 25deg; }
.esc-a-30 { --esc-a: 30deg; }
.esc-a-35 { --esc-a: 35deg; }
.esc-a-40 { --esc-a: 40deg; }
.esc-a-45 { --esc-a: 45deg; }
.esc-a-50 { --esc-a: 50deg; }
.esc-a-55 { --esc-a: 55deg; }
.esc-a-60 { --esc-a: 60deg; }
.esc-a-65 { --esc-a: 65deg; }
.esc-a-70 { --esc-a: 70deg; }
.esc-a-75 { --esc-a: 75deg; }
.esc-a-80 { --esc-a: 80deg; }
.esc-a-85 { --esc-a: 85deg; }
.esc-a-90 { --esc-a: 90deg; }
.esc-a-95 { --esc-a: 95deg; }
.esc-a-100 { --esc-a: 100deg; }
.esc-a-105 { --esc-a: 105deg; }
.esc-a-110 { --esc-a: 110deg; }
.esc-a-115 { --esc-a: 115deg; }
.esc-a-120 { --esc-a: 120deg; }
.esc-a-125 { --esc-a: 125deg; }
.esc-a-130 { --esc-a: 130deg; }
.esc-a-135 { --esc-a: 135deg; }
.esc-a-140 { --esc-a: 140deg; }
.esc-a-145 { --esc-a: 145deg; }
.esc-a-150 { --esc-a: 150deg; }
.esc-a-155 { --esc-a: 155deg; }
.esc-a-160 { --esc-a: 160deg; }
.esc-a-165 { --esc-a: 165deg; }
.esc-a-170 { --esc-a: 170deg; }
.esc-a-175 { --esc-a: 175deg; }
.esc-a-180 { --esc-a: 180deg; }
.esc-a-185 { --esc-a: 185deg; }
.esc-a-190 { --esc-a: 190deg; }
.esc-a-195 { --esc-a: 195deg; }
.esc-a-200 { --esc-a: 200deg; }
.esc-a-205 { --esc-a: 205deg; }
.esc-a-210 { --esc-a: 210deg; }
.esc-a-215 { --esc-a: 215deg; }
.esc-a-220 { --esc-a: 220deg; }
.esc-a-225 { --esc-a: 225deg; }
.esc-a-230 { --esc-a: 230deg; }
.esc-a-235 { --esc-a: 235deg; }
.esc-a-240 { --esc-a: 240deg; }
.esc-a-245 { --esc-a: 245deg; }
.esc-a-250 { --esc-a: 250deg; }
.esc-a-255 { --esc-a: 255deg; }
.esc-a-260 { --esc-a: 260deg; }
.esc-a-265 { --esc-a: 265deg; }
.esc-a-270 { --esc-a: 270deg; }
.esc-a-275 { --esc-a: 275deg; }
.esc-a-280 { --esc-a: 280deg; }
.esc-a-285 { --esc-a: 285deg; }
.esc-a-290 { --esc-a: 290deg; }
.esc-a-295 { --esc-a: 295deg; }
.esc-a-300 { --esc-a: 300deg; }
.esc-a-305 { --esc-a: 305deg; }
.esc-a-310 { --esc-a: 310deg; }
.esc-a-315 { --esc-a: 315deg; }
.esc-a-320 { --esc-a: 320deg; }
.esc-a-325 { --esc-a: 325deg; }
.esc-a-330 { --esc-a: 330deg; }
.esc-a-335 { --esc-a: 335deg; }
.esc-a-340 { --esc-a: 340deg; }
.esc-a-345 { --esc-a: 345deg; }
.esc-a-350 { --esc-a: 350deg; }
.esc-a-355 { --esc-a: 355deg; }

.esc-ring-key {
  flex: 1 1 11rem;
  margin: 0;
  color: #50575e;
}

.esc-ring-key-title {
  margin: 0.5rem 0 0.15rem;
  font-weight: 600;
  color: #1d2327;
}

.esc-ring-key ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.esc-ring-key li {
  margin: 0.1rem 0;
}

.esc-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.4rem;
  border: 1px solid #1d2327;
  vertical-align: -0.05rem;
}

.esc-swatch--violations { background: #dc2626; }
.esc-swatch--incomplete { background: #cbd5e1; }
.esc-swatch--wcag { background: #1e40af; }
.esc-swatch--wcag-third { background: #93c5fd; }
.esc-swatch--bp { background: #0f766e; }
.esc-swatch--bp-third { background: #5eead4; }
.esc-swatch--critical { background: #831843; }
.esc-swatch--serious { background: #7e22ce; }
.esc-swatch--moderate { background: #1d4ed8; }
.esc-swatch--minor { background: #0f766e; }
.esc-swatch--not-rated { background: #64748b; }

.esc-mini-table tfoot th,
.esc-mini-table tfoot td {
  font-weight: 600;
  border-top: 1px solid #c3c4c7;
}

.esc-mini-table {
  margin: 0 0 1rem;
}

.esc-mini-table caption {
  text-align: left;
  font-weight: 600;
  padding: 0.25rem 0;
}

/* Number columns: the header is centred, and the numbers sit right-aligned in a box as wide as the
   table's widest number (esc-nw-N), centred under it, so digits line up and the header goes with them. */
.esc-table .esc-number,
.esc-mini-table .esc-number {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.esc-n {
  display: inline-block;
  min-width: var(--esc-nw, 3ch);
  text-align: right;
}

.esc-nw-1 { --esc-nw: 3ch; }
.esc-nw-2 { --esc-nw: 3ch; }
.esc-nw-3 { --esc-nw: 3ch; }
.esc-nw-4 { --esc-nw: 4ch; }
.esc-nw-5 { --esc-nw: 5ch; }
.esc-nw-6 { --esc-nw: 6ch; }
.esc-nw-7 { --esc-nw: 7ch; }
.esc-nw-8 { --esc-nw: 8ch; }
.esc-nw-9 { --esc-nw: 9ch; }
.esc-nw-10 { --esc-nw: 10ch; }
.esc-nw-11 { --esc-nw: 11ch; }
.esc-nw-12 { --esc-nw: 12ch; }

.esc-tablist {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #c3c4c7;
}

.esc-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  color: #2271b1;
  font: inherit;
  cursor: pointer;
}

.esc-tab[aria-selected="true"] {
  border-color: #c3c4c7;
  background: #fff;
  color: #1d2327;
  font-weight: 600;
  margin-bottom: -1px;
  box-shadow: inset 0 3px 0 #2271b1; /* selected state shown by shape and weight, not colour alone */
}

.esc-tab:focus-visible,
.esc-tabpanel:focus-visible,
.esc-element summary:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.esc-guidance {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #2271b1;
  background: #f0f6fc;
}

.esc-actions h3 {
  font-size: 1em;
  margin: 1rem 0 0.25rem;
}

/* Delete confirmation. */
.esc-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

/* Flex, not inline-block: inline-block forms made axe unable to place the text that follows them. */
.esc-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.esc-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.esc-filter-grid label {
  display: block;
  font-weight: 600;
}

.esc-clear {
  margin-left: 0.75rem;
}

/* Reach (Phase 3b item 7): Global, Template, Multiple or Single, as a badge under the page count. The border
   carries the meaning in forced colours; the fill only tints it. All text is #1d2327 (at least 13:1). */
.esc-badge {
  display: block;
  width: max-content;
  margin: 0.3rem auto 0;
  padding: 0.05rem 0.5rem;
  border: 1px solid;
  border-radius: 999px;
  color: #1d2327;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.esc-badge--global { border-color: #2271b1; background: #f0f6fc; }
.esc-badge--template { border-color: #0f766e; background: #effaf8; }
.esc-badge--multiple { border-color: #646970; background: #fff; }
.esc-badge--single { border-color: #8c8f94; background: #f6f7f7; }

.esc-reach-help {
  max-width: 60rem;
}

.esc-range {
  font-weight: 600;
}

.esc-rule {
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

.esc-element summary {
  cursor: pointer;
  color: #2271b1;
}

.esc-element dl {
  margin: 0.5rem 0;
}

.esc-element dt {
  font-weight: 600;
  margin-top: 0.35rem;
}

.esc-element dd {
  margin: 0;
}

.esc-element pre,
.esc-element code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.esc-element ul {
  list-style: disc;
  margin: 0 0 0 1.25rem;
}

@media (max-width: 40rem) {
  .esc-facts {
    grid-template-columns: 1fr;
  }

  /* Narrow screens: the table keeps its headers and wraps to the screen instead of scrolling. */
  .esc-table td,
  .esc-table th {
    padding: 0.35rem;
  }
}

/* Choose pages (Phase 3c): one fieldset per template group. The warning uses a border and bold text,
   not colour alone. */
.esc-choose-warning {
  max-width: 60rem;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #996800;
  background: #fcf9e8;
}

.esc-choose-warning p {
  margin: 0.4rem 0;
}

.esc-choose-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.esc-choose-search label {
  font-weight: 600;
}

.esc-choose-count {
  font-weight: 600;
  font-size: 1.05em;
}

.esc-choose-group {
  max-width: 60rem;
  margin: 0 0 1rem;
  padding: 0.5rem 1rem 0.75rem;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.esc-choose-group legend {
  padding: 0.15rem 0.6rem;
  border: 1px solid #8c8f94;
  border-radius: 0.2rem;
  background: #fff;
  color: #1d2327;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.esc-choose-group > .esc-meta {
  margin: 0 0 0.5rem;
}

.esc-choose-pages {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.esc-choose-pages li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0.2rem 0;
}

.esc-choose-pages label {
  overflow-wrap: anywhere;
}

.esc-meta.esc-inline-meta {
  display: inline;
}

.esc-choose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Not scanned view: left-out pages counted by reason (Phase 3c step 5). */
.esc-left-counts {
	list-style: disc;
	margin-left: 1.5em;
}

/* Scan progress panel (Phase 3c step 6b). */
.esc-progress {
	max-width: 40rem;
	padding: 0.5rem 1.25rem 1rem;
	border: 1px solid #c3c4c7;
	background: #fff;
}
.esc-progress-label {
	font-size: 1rem;
}
.esc-progress-bar {
	display: block;
	width: 100%;
	height: 1.25rem;
	accent-color: #2271b1;
}
/* END copy of admin.css */
