/**
 * Accessibility Checker Pro - Dark Inside Design System
 * Version: 25.2.0 - Shared --acc-green token (Phase 1.5)
 *
 * v25.2.0 Changes (2026-04-11) — Phase 1.5 Shared Color Token:
 * - ADDED:  --acc-green: rgb(34, 197, 94) to :root (matches Doc Checker brand).
 * - ADDED:  --acc-green-dark: rgb(21, 128, 61) for hover/active states.
 * - ADDED:  --acc-green-light: rgba(34, 197, 94, 0.08) for tinted backgrounds.
 * - ADDED:  --acc-red-dark: rgb(185, 28, 28) for symmetry with PDF Checker.
 * - REFACTOR: --acc-success now aliases var(--acc-green) — backwards-compatible
 *             with all v25.1.0 selectors that referenced --acc-success.
 * - REFACTOR: --acc-success-light now aliases var(--acc-green-light).
 * - INTENT:   Dark Inside Design system PRESERVED — Web Checker primary button
 *             remains linear-gradient(135deg, var(--acc-dark), #243044) by design.
 *             Tomas confirmed Variant A (do NOT change Web primary to blue gradient).
 * - SCOPE:    :root variables only. NO selectors changed. NO visual diff expected
 *             on the live site — this is a tokenization step only, preparing for
 *             future cross-tool refactors.
 *
 * v25.1.0 Changes (2026-04-11) — Post-deploy visual polish:
 * - FIX: Action buttons (AI Explain / Show in Preview / Copy Issue) had 3
 *        different padding/font-size/border-radius values causing visual drift
 *        and staircase effect on desktop. Unified to height:36px, padding:0 14px,
 *        font-size:13px, border-radius:6px via high-specificity selector
 *        (.accessibility-report .issue-item .{btn-class}).
 * - FIX: Mobile — buttons now shrink to height:34px, padding:0 12px and wrap
 *        gracefully instead of stacking with inconsistent widths.
 * - FIX: .fix-suggestion now has margin-bottom:12px to create breathing room
 *        before action button row (was flush against buttons).
 * - FIX: SVG icons unified to 14px (desktop) / 13px (mobile). Copy button was
 *        13px while AI Explain and Show in Preview were 14px.
 * - APPROACH: CSS-only fix, no HTML changes required. Base styles in
 *        ai-explain.css and earlier in this file remain intact as fallback;
 *        new unified layer overrides them only inside .issue-item context.
 *
 * v25.0.0 Changes (2026-04-11) — Phase 1.3 Unified Brand Sync:
 * - SYNCED: Score circle 100→120px (inner 70→85px), --score-percentage→--score-pct,
 *           track bg --acc-border→rgba(255,255,255,0.08), label color --acc-dark→--acc-gray.
 *           REQUIRES sync in script.js (line ~4704) AND report-generator.php (line ~645).
 * - SYNCED: Issue header/description margin-bottom space-md→space-sm (tighter, matches PDF/Doc).
 * - ADDED:  .issue-item.info-issue { border-left-color: var(--acc-blue) } for future info items.
 * - SYNCED: Primary button #normal_check_btn height 42→50px (blue gradient KEPT — Web brand color).
 * - SYNCED: Secondary button #force_refresh_btn height 42→50px (alignment with primary).
 * - RENAMED: @keyframes fadeIn → @keyframes acp-fadeIn (prevents WP theme/Bricks collisions).
 * - ADDED:  ~170 lines of acp-ai-summary-* CSS (FIXES BUG: Web AI Summary was rendering unstyled).
 *           Synced from PDF pdf-style.css v2.0.0 lines 3019-3199. Purple accent (#7c3aed) is
 *           shared "AI" color across all 3 tools regardless of brand color.
 * - KEPT:   All 4 brand colors (Web=blue, PDF=red, Doc=green strategy / Varianta B).
 * - KEPT:   All Web-only components: WCAG Coverage hero, navigator, markers, tab order overlay,
 *           PHP/JS source badges, severity filters, framework fix guides.
 * - KEPT:   .accessibility-checker-tool/.accessibility-report namespace (Bricks Builder safe).
 *
 * v24.0.0 Changes (2025-02-26):
 * - REDESIGN: Light tech background (#f0f4f8) with 80px grid lines
 * - REDESIGN: All components dark inside (dark cards, dark stat boxes, dark tabs)
 * - UPDATED: Dark issue items, dark progress bars, dark detection categories
 * - KEPT: All existing selectors, class names, functional behavior, component order
 * - KEPT: WCAG Coverage hero (already dark)
 *
 * v23.2.0 Changes (2025-02-25):
 * - MODERNIZED: Full visual sync with homepage-v5 / header / footer design
 *
 * v23.1.0 Changes (2025-02-20):
 * - NEW: .acp-stylesheet-banner - amber banner above iframe for CSS load failures
 *
 * v23.0.0 Changes (2025-02-01):
 * - NEW: .sr-only class for screen reader only content
 * - NEW: .skip-link styles with focus visibility
 * - NEW: :focus-visible styles for all interactive elements
 * - NEW: Disabled state styles for buttons
 * 
 * COLOR PALETTE (only these 4 + derived):
 * --color-red: rgb(220, 38, 38)      - Errors, PHP issues, Level A
 * --color-blue: rgb(30, 95, 153)     - Primary, JS issues  
 * --color-gray: rgb(51, 65, 85)      - Text, secondary
 * --color-dark: rgb(26, 34, 52)      - Dark backgrounds, code
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   Scoped to plugin only - won't affect Bricks Builder
   ============================================ */

.accessibility-checker-tool,
.accessibility-report {
  /* Primary 4 Colors */
  --acc-red: rgb(220, 38, 38);
  --acc-red-dark: rgb(185, 28, 28);
  --acc-blue: rgb(30, 95, 153);
  --acc-gray: rgb(51, 65, 85);
  --acc-dark: rgb(26, 34, 52);

  /* v25.2.0: Brand green (Doc Checker primary) — added to shared palette
     so all 3 tools can reference identical green via var(--acc-green).
     Used by: Doc Checker .docac-analyze-btn, future shared success states.
     Hex equivalent: #22c55e (matches Tailwind green-500). */
  --acc-green: rgb(34, 197, 94);
  --acc-green-dark: rgb(21, 128, 61);
  --acc-green-light: rgba(34, 197, 94, 0.08);

  /* Derived Light Versions */
  --acc-red-light: rgba(220, 38, 38, 0.08);
  --acc-blue-light: rgba(30, 95, 153, 0.08);
  --acc-gray-light: rgba(51, 65, 85, 0.05);
  --acc-dark-light: rgba(26, 34, 52, 0.03);

  /* Derived for success — v25.2.0: --acc-success kept as alias of --acc-green
     to preserve backwards compatibility with v25.1.0 selectors. */
  --acc-success: var(--acc-green);
  --acc-success-light: var(--acc-green-light);
  
  /* Derived for warning */
  --acc-warning: rgb(180, 83, 9);
  --acc-warning-light: rgba(180, 83, 9, 0.08);
  
  /* Neutrals */
  --acc-white: #ffffff;
  --acc-bg: #f0f4f8;
  --acc-border: rgba(0, 0, 0, 0.08);
  --acc-border-dark: var(--acc-dark);
  --acc-text: var(--acc-gray);
  --acc-text-light: rgba(51, 65, 85, 0.7);
  
  /* v24.0.0: Dark inside card system */
  --acc-glass-border: rgba(255, 255, 255, 0.06);
  --acc-glass-border-light: rgba(255, 255, 255, 0.04);
  
  /* v24.0.0: Dark card backgrounds */
  --acc-card-bg: linear-gradient(135deg, rgba(26,34,52,0.97), rgba(15,23,42,0.97));
  --acc-card-flat: rgba(26, 34, 52, 0.95);
  --acc-card-border: 1px solid rgba(255, 255, 255, 0.06);
  --acc-card-radius: 8px;
  --acc-inner-radius: 6px;
  
  /* Typography - v23.2.0: DM Sans + Space Mono */
  --acc-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --acc-font-code: 'Space Mono', 'SF Mono', Monaco, 'Courier New', monospace;
  --acc-text-body: clamp(1.4rem, 1.2vw + 0.75rem, 1.8rem);
  --acc-text-small: clamp(1.2rem, 1vw + 0.5rem, 1.4rem);
  --acc-text-xsmall: clamp(1rem, 0.8vw + 0.4rem, 1.2rem);
  --acc-text-h1: clamp(2.5rem, 6vw + 1rem, 5rem);
  --acc-text-h2: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
  --acc-text-h3: clamp(1.75rem, 4vw + 0.25rem, 3rem);
  --acc-text-h4: clamp(1.5rem, 3.5vw + 0.1rem, 2.5rem);
  --acc-text-h5: clamp(1.4rem, 3vw, 2rem);
  --acc-text-h6: clamp(1.4rem, 2.5vw, 1.8rem);
  
  /* Spacing */
  --acc-space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --acc-space-sm: clamp(0.5rem, 1vw, 1rem);
  --acc-space-md: clamp(1rem, 2vw, 2rem);
  --acc-space-lg: clamp(2rem, 3vw, 4rem);
  
  /* Border - v23.2.0: Updated radii for modern look */
  --acc-border-thin: 1px;
  --acc-radius: 6px;
  --acc-radius-md: 10px;
  --acc-radius-lg: 14px;
  --acc-radius-pill: 100px;
  --acc-border-radius: 6px;
  --acc-border-radius-lg: 10px;
  
  /* Transitions - v23.2.0: 0.2s default */
  --acc-transition-fast: 0.2s ease;
  --acc-transition-normal: 0.3s ease;
  
  /* Shadows - v23.2.0: Refined, less aggressive */
  --acc-shadow-sm: 0 1px 3px rgba(26, 34, 52, 0.04), 0 1px 2px rgba(26, 34, 52, 0.03);
  --acc-shadow-md: 0 4px 12px rgba(26, 34, 52, 0.06), 0 2px 4px rgba(26, 34, 52, 0.04);
  --acc-shadow-lg: 0 12px 32px rgba(26, 34, 52, 0.08), 0 4px 8px rgba(26, 34, 52, 0.04);
}

/* ============================================
   GLOBAL RESETS
   ============================================ */

.accessibility-checker-tool,
.accessibility-checker-tool *,
.accessibility-report,
.accessibility-report * {
  box-sizing: border-box;
}

/* ============================================
   ACCESSIBILITY UTILITY CLASSES
   ============================================ */

/* Screen reader only - visually hidden but accessible */
.accessibility-checker-tool .sr-only,
.accessibility-report .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip Link - visible on focus */
.accessibility-checker-tool .skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acc-dark);
  color: var(--acc-white);
  padding: 12px 24px;
  border-radius: var(--acc-border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--acc-text-small);
  z-index: 10000;
  transition: top 0.2s ease;
}

.accessibility-checker-tool .skip-link:focus {
  top: 10px;
  outline: 3px solid var(--acc-warning);
  outline-offset: 2px;
}

/* Focus visible for all interactive elements */
.accessibility-checker-tool button:focus-visible,
.accessibility-checker-tool a:focus-visible,
.accessibility-checker-tool input:focus-visible,
.accessibility-checker-tool select:focus-visible,
.accessibility-checker-tool [role="tab"]:focus-visible,
.accessibility-checker-tool [role="tabpanel"]:focus-visible {
  outline: 3px solid var(--acc-warning);
  outline-offset: 2px;
}

/* Disabled state */
.accessibility-checker-tool button[disabled],
.accessibility-checker-tool button[aria-busy="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ============================================
   MAIN CONTAINER
   ============================================ */

.accessibility-checker-tool {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--acc-space-lg);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  line-height: 1.6;
  color: var(--acc-gray);
  background: var(--acc-bg);
  position: relative;
}

/* v24.0.0: Tech grid pattern overlay */
.accessibility-checker-tool::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,95,153,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,95,153,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure all direct children are above grid */
.accessibility-checker-tool > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.accessibility-checker-tool h1,
.accessibility-report h1 {
  font-size: var(--acc-text-h1);
  font-weight: 700;
  color: var(--acc-dark);
  margin-bottom: var(--acc-space-md);
}

.accessibility-checker-tool h2,
.accessibility-report h2 {
  font-size: var(--acc-text-h2);
  font-weight: 600;
  color: var(--acc-dark);
  margin-bottom: var(--acc-space-md);
}

.accessibility-checker-tool h3,
.accessibility-report h3 {
  font-size: var(--acc-text-h3);
  font-weight: 600;
  color: var(--acc-dark);
  margin-bottom: var(--acc-space-sm);
}

.accessibility-checker-tool h4,
.accessibility-report h4 {
  font-size: var(--acc-text-h4);
  font-weight: 600;
  color: var(--acc-dark);
  margin-bottom: var(--acc-space-sm);
}

.accessibility-checker-tool p,
.accessibility-report p {
  font-size: var(--acc-text-small);
  color: var(--acc-gray);
  margin-bottom: var(--acc-space-sm);
}

/* ============================================
   FORM - DOMINANT INPUT WITH BUTTONS INSIDE
   ============================================ */

.accessibility-checker-tool form,
.accessibility-checker-tool .url-form,
.accessibility-checker-tool #accessibility-form {
  margin-bottom: var(--acc-space-lg);
}

.accessibility-checker-tool .form-group {
  margin-bottom: var(--acc-space-md);
  position: relative;
}

.accessibility-checker-tool .form-group > label {
  display: block;
  margin-bottom: var(--acc-space-sm);
  font-weight: 500;
  font-size: var(--acc-text-small);
  color: var(--acc-gray);
}

/* DOMINANT INPUT ROW - Input + Buttons Below */
.accessibility-checker-tool .url-input,
.accessibility-checker-tool #url_to_check,
.accessibility-checker-tool input[type="url"] {
  width: 100%;
  padding: var(--acc-space-md) var(--acc-space-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--acc-inner-radius);
  font-size: var(--acc-text-small);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--acc-transition-fast);
  min-height: 70px;
}

.accessibility-checker-tool .url-input:focus,
.accessibility-checker-tool #url_to_check:focus,
.accessibility-checker-tool input[type="url"]:focus {
  outline: none;
  border-color: var(--acc-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 153, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.accessibility-checker-tool .url-input::placeholder,
.accessibility-checker-tool input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Button Group - Positioned inside input */
.accessibility-checker-tool .button-group {
  display: flex;
  flex-direction: row;
  gap: var(--acc-space-sm);
  margin-top: var(--acc-space-sm);
  width: auto;
}

/* ============================================
   DESKTOP LOCK - Prevent mobile styles on desktop
   ============================================ */
@media (min-width: 769px) {
  /* Main container */
  .accessibility-checker-tool {
    width: 100% !important;
    max-width: 1400px !important;
    padding: var(--acc-space-lg) !important;
  }
  
  /* Input field - full width */
  .accessibility-checker-tool .url-input,
  .accessibility-checker-tool #url_to_check,
  .accessibility-checker-tool input[type="url"] {
    width: 100% !important;
    min-height: 70px !important;
    font-size: var(--acc-text-small) !important;
    padding: var(--acc-space-md) var(--acc-space-lg) !important;
  }
  
  /* Buttons - horizontal row */
  .accessibility-checker-tool .button-group {
    flex-direction: row !important;
    width: auto !important;
    gap: var(--acc-space-sm) !important;
  }
  
  .accessibility-checker-tool .check-button,
  .accessibility-checker-tool button[type="submit"] {
    width: auto !important;
    min-width: 150px !important;
    padding: var(--acc-space-sm) var(--acc-space-md) !important;
  }
  
  /* Force Fresh Check - visible on desktop */
  .accessibility-checker-tool .check-button:last-child {
    display: inline-flex !important;
  }
  
  /* Preloader / Progress container - full width */
  .accessibility-checker-tool .analysis-progress-container {
    width: 100% !important;
    padding: var(--acc-space-lg) !important;
    margin: var(--acc-space-md) 0 !important;
  }
  
  .accessibility-checker-tool .analysis-progress-header {
    font-size: var(--acc-text-h5) !important;
    text-align: center !important;
  }
  
  .accessibility-checker-tool .analysis-progress-bar {
    width: 100% !important;
    height: 8px !important;
  }
  
  .accessibility-checker-tool .analysis-progress-text {
    font-size: var(--acc-text-small) !important;
    text-align: center !important;
  }
  
  .accessibility-checker-tool .analysis-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: var(--acc-space-md) !important;
  }
  
  .accessibility-checker-tool .analysis-step {
    font-size: var(--acc-text-small) !important;
    padding: 8px 12px !important;
  }
}

/* Buttons - submit-button class */
.accessibility-checker-tool .submit-button,
.accessibility-checker-tool .check-button,
.accessibility-checker-tool button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--acc-space-sm) var(--acc-space-md);
  border: none;
  border-radius: var(--acc-radius-md);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--acc-transition-fast);
  white-space: nowrap;
  min-height: 50px;
}

/* Primary Button - Gradient */
.accessibility-checker-tool .submit-button.primary,
.accessibility-checker-tool .check-button:first-of-type,
.accessibility-checker-tool button[type="submit"]:not(.secondary) {
  background: linear-gradient(135deg, var(--acc-dark), #243044);
  color: var(--acc-white);
  box-shadow: 0 2px 8px rgba(26, 34, 52, 0.15);
}

.accessibility-checker-tool .submit-button.primary:hover,
.accessibility-checker-tool .check-button:first-of-type:hover,
.accessibility-checker-tool button[type="submit"]:not(.secondary):hover {
  background: linear-gradient(135deg, #243044, var(--acc-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 34, 52, 0.2);
}

/* Secondary Button - Blue Gradient */
.accessibility-checker-tool .submit-button.secondary,
.accessibility-checker-tool .force-refresh,
.accessibility-checker-tool .check-button.force-refresh {
  background: linear-gradient(135deg, var(--acc-blue), #2563eb) !important;
  color: var(--acc-white) !important;
  box-shadow: 0 2px 8px rgba(30, 95, 153, 0.15);
}

.accessibility-checker-tool .submit-button.secondary:hover,
.accessibility-checker-tool .force-refresh:hover {
  background: linear-gradient(135deg, #184c7a, var(--acc-blue)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 95, 153, 0.25);
}

.accessibility-checker-tool button:disabled,
.accessibility-checker-tool .submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tool Description */
.accessibility-checker-tool .tool-description {
  font-size: var(--acc-text-small);
  color: var(--color-text-light);
  margin-bottom: var(--acc-space-md);
}

/* ============================================
   PRELOADER / PROGRESS
   ============================================ */

.accessibility-checker-tool .analysis-progress-container {
  display: none;
  background: var(--acc-card-bg);
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  padding: var(--acc-space-lg);
  margin: var(--acc-space-md) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.accessibility-checker-tool .analysis-progress-container.active {
  display: block;
  animation: acp-fadeIn 0.3s ease;
}

.accessibility-checker-tool .analysis-progress-header {
  font-size: var(--acc-text-h5);
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: var(--acc-space-md);
}

/* Progress Bar */
.accessibility-checker-tool .analysis-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--acc-space-md);
}

.accessibility-checker-tool .analysis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px;
  transition: width 0.4s ease;
  position: relative;
}

.accessibility-checker-tool .analysis-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.accessibility-checker-tool .analysis-progress-text {
  text-align: center;
  font-size: var(--acc-text-small);
  color: rgba(255, 255, 255, 0.5);
}

/* Progress Steps */
.accessibility-checker-tool .analysis-steps-list {
  list-style: none;
  padding: 0;
  margin: var(--acc-space-md) 0 0 0;
  display: grid;
  gap: var(--acc-space-xs);
}

.accessibility-checker-tool .analysis-step {
  display: flex;
  align-items: center;
  gap: var(--acc-space-sm);
  padding: var(--acc-space-sm) var(--acc-space-md);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-border-radius);
  font-size: var(--acc-text-small);
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--acc-transition-fast);
}

.accessibility-checker-tool .analysis-step::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.accessibility-checker-tool .analysis-step.active {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  font-weight: 500;
}

.accessibility-checker-tool .analysis-step.active::before {
  background: var(--acc-blue);
  animation: pulse 1s infinite;
}

.accessibility-checker-tool .analysis-step.completed {
  color: #4ade80;
}

.accessibility-checker-tool .analysis-step.completed::before {
  background: var(--acc-success);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================
   QUEUE STATUS CARD (v21.1.0)
   ============================================ */

.accessibility-checker-tool .queue-status-card {
  display: none;
  background: linear-gradient(135deg, #1a2234 0%, #0f172a 100%);
  border-radius: var(--acc-radius-lg);
  padding: 24px;
  margin: 16px 0 12px 0;
  color: #fff;
  text-align: center;
  animation: queueFadeIn 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(26, 34, 52, 0.15);
}

.accessibility-checker-tool .queue-status-card.active {
  display: block;
}

.accessibility-checker-tool .queue-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 95, 153, 0.08), transparent);
  animation: queueShimmer 3s infinite;
}

@keyframes queueShimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

@keyframes queueFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.accessibility-checker-tool .queue-status-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.accessibility-checker-tool .queue-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: queuePulse 1.5s ease-in-out infinite;
}

@keyframes queuePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.accessibility-checker-tool .queue-status-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f59e0b;
}

.accessibility-checker-tool .queue-position-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.accessibility-checker-tool .queue-position-number {
  font-family: var(--acc-font-body);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.accessibility-checker-tool .queue-position-suffix {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.accessibility-checker-tool .queue-status-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.accessibility-checker-tool .queue-status-message span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Processing state - blue gradient */
.accessibility-checker-tool .queue-status-card.processing {
  background: linear-gradient(135deg, #0c2d48 0%, #1a4971 100%);
}

.accessibility-checker-tool .queue-status-card.processing .queue-status-dot {
  background: #3b82f6;
  animation-name: processingPulse;
}

@keyframes processingPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.accessibility-checker-tool .queue-status-card.processing .queue-status-label {
  color: #60a5fa;
}

.accessibility-checker-tool .queue-status-card.processing .queue-position-number {
  font-size: 20px;
  font-weight: 600;
}

.accessibility-checker-tool .queue-status-card.processing .queue-position-suffix {
  display: none;
}

/* Completed flash */
.accessibility-checker-tool .queue-status-card.completed {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  animation: queueComplete 0.3s ease;
}

@keyframes queueComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.accessibility-checker-tool .queue-status-card.completed .queue-status-dot {
  background: #34d399;
  animation: none;
}

.accessibility-checker-tool .queue-status-card.completed .queue-status-label {
  color: #34d399;
}

/* Mobile queue card */
@media (max-width: 768px) {
  .accessibility-checker-tool .queue-status-card {
    padding: 20px 16px;
    margin: 12px 0 8px 0;
  }
  
  .accessibility-checker-tool .queue-position-number {
    font-size: 40px;
  }
}

/* Loading Indicator */
.accessibility-checker-tool .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--acc-space-lg);
  gap: var(--acc-space-md);
}

/* ============================================
   STAT BOXES
   ============================================ */

.accessibility-report .stat-box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--acc-space-md);
  margin-bottom: var(--acc-space-lg);
}

.accessibility-report .stat-box {
  padding: var(--acc-space-md);
  background: var(--acc-card-flat);
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  text-align: center;
  transition: all var(--acc-transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.accessibility-report .stat-box:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.accessibility-report .stat-box .count {
  display: block;
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-h3);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--acc-space-xs);
  letter-spacing: -0.02em;
}

.accessibility-report .stat-box .label {
  font-size: var(--acc-text-xsmall);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stat Box States */
.accessibility-report .stat-box.success { border-top: 2px solid #4ade80; border-left: none; }
.accessibility-report .stat-box.success .count { color: #4ade80; }

.accessibility-report .stat-box.critical { border-top: 2px solid #f87171; border-left: none; }
.accessibility-report .stat-box.critical .count { color: #f87171; }

.accessibility-report .stat-box.warning { border-top: 2px solid #fbbf24; border-left: none; }
.accessibility-report .stat-box.warning .count { color: #fbbf24; }

.accessibility-report .stat-box.info { border-top: 2px solid #3b82f6; border-left: none; }
.accessibility-report .stat-box.info .count { color: #60a5fa; }

/* Loading Scan Effect for Stat Boxes (JS Issues, Total Issues) */
.accessibility-report .stat-box.loading-scan {
  position: relative;
  overflow: hidden;
}

.accessibility-report .stat-box.loading-scan::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 95, 153, 0.3), transparent);
  animation: scannerMove 1.5s ease-in-out infinite;
}

/* Specific styling for JS and Total boxes during loading */
#js-issues-count.loading-scan,
#total-issues-count.loading-scan {
  border-top-color: var(--acc-blue) !important;
}

#js-issues-count.loading-scan .count,
#total-issues-count.loading-scan .count {
  color: var(--acc-blue) !important;
  opacity: 0.6;
}

@keyframes scannerMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   TAB SYSTEM
   ============================================ */

.accessibility-report .tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--acc-space-md);
  padding: 6px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--acc-card-radius);
  border: var(--acc-card-border);
}

.accessibility-report .tab-button {
  flex: 1;
  min-width: fit-content;
  padding: 10px var(--acc-space-md);
  background: transparent;
  border: none;
  border-radius: var(--acc-inner-radius);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--acc-transition-fast);
}

.accessibility-report .tab-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.accessibility-report .tab-button.active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.accessibility-report .tab-content {
  display: none !important;
  padding: var(--acc-space-md);
  background: linear-gradient(135deg, rgba(26,34,52,0.97), rgba(15,23,42,0.97)) !important;
  background-color: rgba(26, 34, 52, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--acc-card-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* v24.0.0: White text inside dark tab content */
.accessibility-report .tab-content h3,
.accessibility-report .tab-content h4 {
  color: #fff;
}

.accessibility-report .tab-content p,
.accessibility-report .tab-content span,
.accessibility-report .tab-content strong {
  color: rgba(255, 255, 255, 0.7);
}

.accessibility-report .tab-content strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Score circle text inside dark containers */
.accessibility-report .score-label {
  color: var(--acc-dark);
}

.accessibility-report .tab-content .score-label {
  color: rgba(255, 255, 255, 0.85);
}

.accessibility-report .tab-content .score-info {
  color: rgba(255, 255, 255, 0.5);
}

.accessibility-report .tab-content .score-number {
  color: #fff;
}

/* Summary h3 inside dark container */
.accessibility-report .tab-content .summary-container h3 {
  color: #fff;
}

/* Loading JS issues text */
.accessibility-report .tab-content .loading-js-issues {
  color: rgba(255, 255, 255, 0.5);
}

.accessibility-report .tab-content.active {
  display: block !important;
  animation: acp-fadeIn 0.3s ease;
}

/* v25.0.0: Renamed fadeIn → acp-fadeIn to prevent WP theme/Bricks collisions */
@keyframes acp-fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub-tabs */
.sub-tabs-nav {
  display: flex;
  gap: var(--acc-space-xs);
  margin-bottom: var(--acc-space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--acc-space-xs);
}

.sub-tab-button {
  padding: var(--acc-space-sm) var(--acc-space-md);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-size: var(--acc-text-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--acc-transition-fast);
}

.sub-tab-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

.sub-tab-button.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
  font-weight: 600;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

/* ============================================
   ISSUE ITEMS - UNIFIED DESIGN
   ============================================ */

.accessibility-report .issue-section {
  margin: var(--acc-space-md) 0;
}

.accessibility-report .issue-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--acc-space-md);
  padding-bottom: var(--acc-space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accessibility-report .issue-count-badge {
  padding: var(--acc-space-xs) var(--acc-space-sm);
  border-radius: var(--acc-radius-pill);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-xsmall);
  font-weight: 600;
  background: var(--acc-blue);
  color: var(--acc-white);
}

/* ============================================
   ISSUE ITEM - BASE STYLES (PHP)
   All issues have consistent layout
   ============================================ */

.accessibility-report .issue-item {
  margin-bottom: var(--acc-space-md);
  padding: var(--acc-space-md);
  background: rgba(26, 34, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  border-left: 2px solid var(--acc-red);
  transition: all var(--acc-transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accessibility-report .issue-item:last-child {
  margin-bottom: 0;
}

.accessibility-report .issue-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: rgba(26, 34, 52, 0.7);
  transform: translateY(-1px);
}

/* PHP Issue - Explicit class (red border) */
.accessibility-report .issue-item.php-issue {
  border-left-color: var(--acc-red);
  background: rgba(26, 34, 52, 0.6);
}

/* JS/Puppeteer Issue - Blue border */
.accessibility-report .issue-item.puppeteer-issue,
.accessibility-report .issue-item.js-issue {
  border-left-color: var(--acc-blue);
  background: rgba(26, 34, 52, 0.6);
}

/* =====================================================
   SEVERITY-BASED ISSUE STYLING - v1.1.0 (2025-01-31)
   ===================================================== */

/* v1.1.0: Severity-based border color (overrides source-based) */
.accessibility-report .issue-item.critical-issue {
  border-left-color: var(--acc-red) !important;
}

.accessibility-report .issue-item.warning-issue {
  border-left-color: var(--acc-warning) !important;
}

/* v25.0.0: info-issue for informational items (synced from PDF/Doc) */
.accessibility-report .issue-item.info-issue {
  border-left-color: var(--acc-blue) !important;
}

/* Severity badge positioning - ensure it's visible next to issue number */
.accessibility-report .issue-header .severity-badge {
  margin-left: 8px;
  margin-right: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--acc-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Make critical badge more prominent */
.accessibility-report .issue-header .severity-badge.critical {
  background: var(--acc-red);
  color: white;
  box-shadow: none;
}

/* Warning badge styling */
.accessibility-report .issue-header .severity-badge.warning {
  background: var(--acc-warning);
  color: white;
  box-shadow: none;
}

/* Puppeteer Section Wrapper */
.accessibility-report .puppeteer-section,
.accessibility-report .issue-section.puppeteer-section {
  margin-top: var(--acc-space-lg);
  padding: var(--acc-space-md);
  background: rgba(30, 95, 153, 0.08);
  border-radius: var(--acc-inner-radius);
}

.accessibility-report .puppeteer-section > h4 {
  color: var(--acc-blue);
  margin-bottom: var(--acc-space-md);
  font-size: var(--acc-text-h5);
}

/* Issue Header — v25.0.0: Synced to PDF/Doc (space-sm margin-bottom, tighter) */
.accessibility-report .issue-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--acc-space-sm);
  margin-bottom: var(--acc-space-sm);
  padding-bottom: var(--acc-space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accessibility-report .issue-title,
.accessibility-report .issue-header h5 {
  font-size: var(--acc-text-small);
  font-weight: 600;
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* Issue Description — v25.0.0: Synced to PDF/Doc (space-sm margin-bottom, tighter) */
.accessibility-report .issue-description {
  font-size: var(--acc-text-small);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--acc-space-sm);
  line-height: 1.6;
}

/* Page Level Note - for issues without specific element */
.accessibility-report .page-level-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
  margin: 8px 0;
}

/* ============================================
   BADGES - UNIFIED SYSTEM
   ============================================ */

.accessibility-report .badge,
.accessibility-report .wcag-level,
.accessibility-report .wcag-criteria,
.accessibility-report .source-badge,
.accessibility-report .location-badge,
.accessibility-report .severity-badge,
.accessibility-report .issue-number-badge,
.accessibility-report .high-impact-badge,
.accessibility-report .error-line-badge,
.accessibility-report .wcag-22-badge,
.accessibility-report .criterion-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-family: var(--acc-font-body);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--acc-radius-pill);
  white-space: nowrap;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
  box-shadow: none;
}

/* Issue Number Badge - PHP (red) */
.accessibility-report .issue-number-badge {
  background: var(--acc-red);
  color: var(--acc-white);
  min-width: 28px;
  padding: 3px 10px;
  font-family: var(--acc-font-body);
  font-size: 12px;
}

/* Issue Number Badge - JS (blue) */
.accessibility-report .issue-number-badge.js-badge,
.accessibility-report .puppeteer-issue .issue-number-badge {
  background: var(--acc-blue);
}

/* WCAG Level Badges - Default */
.accessibility-report .wcag-level,
.accessibility-report .criterion-level {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* WCAG Level Badge Colors - Filled style for issue headers */
.accessibility-report .wcag-level.level-a {
  background: var(--acc-red) !important;
  border-color: var(--acc-red) !important;
  color: var(--acc-white) !important;
}

.accessibility-report .wcag-level.level-aa {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: var(--acc-white) !important;
}

.accessibility-report .wcag-level.level-aaa {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: var(--acc-white) !important;
}

/* Criterion Level - Outline style for coverage table */
.accessibility-report .criterion-level.level-a,
.accessibility-report .badge.level-a {
  border-color: var(--acc-red);
  color: var(--acc-red);
}

.accessibility-report .criterion-level.level-aa,
.accessibility-report .badge.level-aa {
  border-color: var(--acc-warning);
  color: var(--acc-warning);
}

.accessibility-report .criterion-level.level-aaa,
.accessibility-report .badge.level-aaa {
  border-color: #9c27b0;
  color: #9c27b0;
}

/* Manual Verification Badge */
.accessibility-report .manual-verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  font-size: 10px;
  font-weight: 500;
  border-radius: var(--acc-radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.2);
}


/* WCAG Criteria Badge */
.accessibility-report .wcag-criteria {
  background: var(--acc-dark);
  color: var(--acc-white);
}

/* Source Badges */
.accessibility-report .source-badge.php,
.accessibility-report .badge.source-php {
  background: var(--acc-red);
  color: var(--acc-white);
}

.accessibility-report .source-badge.js,
.accessibility-report .source-badge.puppeteer,
.accessibility-report .badge.source-js,
.accessibility-report .badge.source-puppeteer {
  background: var(--acc-blue);
  color: var(--acc-white);
}

/* Severity Badges - v22.36: Simplified to Critical and Warning only */
.accessibility-report .severity-badge.critical,
.accessibility-report .badge.severity-critical {
  background: var(--acc-red);
  color: var(--acc-white);
}

.accessibility-report .severity-badge.warning,
.accessibility-report .badge.severity-warning {
  background: var(--acc-warning);
  color: var(--acc-white);
}

/* Legacy support - map old values to new */
.accessibility-report .severity-badge.serious,
.accessibility-report .severity-badge.moderate,
.accessibility-report .severity-badge.minor {
  background: var(--acc-warning);
  color: var(--acc-white);
}

/* Location Badge */
.accessibility-report .location-badge {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Impact Badge */
.accessibility-report .high-impact-badge {
  background: var(--acc-warning);
  color: var(--acc-white);
}

/* Screen Reader Impact Badges */
.accessibility-report .sr-impact-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--acc-border-radius);
  text-transform: capitalize;
}

.accessibility-report .sr-impact-badge.impact-high {
  background: var(--acc-warning);
  color: var(--acc-white);
}

.accessibility-report .sr-impact-badge.impact-medium {
  background: #fbbf24;
  color: #1f2937;
}

.accessibility-report .sr-impact-badge.impact-low {
  background: var(--acc-border);
  color: var(--acc-text);
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.accessibility-report .issue-element,
.accessibility-report .code-context,
.accessibility-report .code-context-section,
.accessibility-report .syntax-highlighted,
.accessibility-report pre {
  display: block;
  padding: var(--acc-space-md);
  margin: var(--acc-space-sm) 0;
  background: var(--acc-dark);
  border-radius: var(--acc-radius-md);
  overflow-x: auto;
}

.accessibility-report .code-context-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--acc-blue);
}

.accessibility-report .code-context-section h6 {
  margin: 0 0 var(--acc-space-sm) 0;
  color: var(--acc-blue);
  font-size: var(--acc-text-small);
  font-weight: 600;
}

.accessibility-report .code-context-section pre {
  margin: 0;
}

.accessibility-report .issue-element code,
.accessibility-report .code-context code,
.accessibility-report .syntax-highlighted code,
.accessibility-report code,
.accessibility-report pre code {
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  color: #aabfc9;
  background: transparent;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  display: block;
}

/* Inline code */
.accessibility-report p code,
.accessibility-report span code {
  display: inline;
  padding: 0.2em 0.5em;
  background: rgba(15, 23, 42, 0.6);
  color: #aabfc9;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Code Context - Max 3 lines */
.accessibility-report .code-context pre,
.accessibility-report .syntax-highlighted pre,
.accessibility-report pre code {
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

/* Error line highlight */
.accessibility-report .error-line,
.accessibility-report .code-context .highlight-line {
  background: rgba(220, 38, 38, 0.12);
  border-left: 2px solid var(--acc-red);
  display: block;
  margin: 0 -12px;
  padding: 0 12px;
}

/* Issue Suggestion */
.accessibility-report .issue-suggestion {
  padding: var(--acc-space-md);
  background: rgba(34, 197, 94, 0.08);
  border-left: 2px solid var(--acc-success);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
  margin-top: var(--acc-space-sm);
}

.accessibility-report .issue-suggestion strong {
  color: #4ade80;
}

/* ============================================
   SHOW IN PREVIEW BUTTON
   ============================================ */

.accessibility-report .show-in-preview-btn,
.show-in-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--acc-blue), #2563eb);
  color: var(--acc-white);
  border: none;
  border-radius: var(--acc-radius-md);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--acc-transition-fast);
  margin-top: var(--acc-space-sm);
}

.accessibility-report .show-in-preview-btn:hover,
.show-in-preview-btn:hover {
  background: linear-gradient(135deg, #184c7a, var(--acc-blue));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 95, 153, 0.25);
}

.accessibility-report .show-in-preview-btn svg,
.show-in-preview-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   IFRAME PREVIEW
   ============================================ */

.accessibility-report .report-preview-section {
  margin: var(--acc-space-md) 0;
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: var(--acc-card-flat);
}

.accessibility-report .preview-container h3 {
  padding: var(--acc-space-md);
  margin: 0;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--acc-text-h5);
  color: #fff;
}

.accessibility-report .iframe-wrapper {
  position: relative;
  width: 100%;
  background: #0f172a;
}

/* v24.0.0: Live Preview header (injected by script.js with inline bg) needs dark text */
.accessibility-report .live-preview-header,
.accessibility-checker-tool .live-preview-header {
  color: var(--acc-dark) !important;
}

.accessibility-report .live-preview-header strong,
.accessibility-checker-tool .live-preview-header strong {
  color: var(--acc-dark) !important;
}

.accessibility-report .website-preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
  background: var(--acc-white);
}

/* Live Iframe Section */
.live-iframe-section {
  width: 100%;
  max-width: 100%;
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  overflow: hidden;
  margin-bottom: var(--acc-space-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: var(--acc-card-flat);
}

.live-iframe-section > div:first-child {
  padding: var(--acc-space-sm) var(--acc-space-md);
  background: rgba(30, 95, 153, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--acc-text-small);
  color: rgba(255, 255, 255, 0.7);
}

/* Iframe Loading */
.iframe-hybrid-loading {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 52, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--acc-space-md);
  z-index: 10;
  color: var(--acc-white);
}

.iframe-hybrid-loading.hybrid-scanning::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 95, 153, 0.4), transparent);
  animation: scannerMove 2s ease-in-out infinite;
}

/* Hybrid Stats */
.hybrid-stats-compact {
  background: rgba(30, 95, 153, 0.1);
  padding: 8px 15px;
  border-radius: var(--acc-inner-radius);
  margin-bottom: var(--acc-space-md);
  font-size: var(--acc-text-small);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   QUICK NAVIGATOR
   ============================================ */

.issue-navigator {
  background: var(--acc-card-flat);
  border: var(--acc-card-border);
  border-top: none;
  border-radius: 0 0 var(--acc-card-radius) var(--acc-card-radius);
  padding: var(--acc-space-md);
  margin-bottom: var(--acc-space-md);
}

.navigator-title {
  font-size: var(--acc-text-small);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--acc-space-sm);
}

.navigator-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--acc-space-md);
  margin-bottom: var(--acc-space-sm);
  padding: var(--acc-space-sm) var(--acc-space-md);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  font-size: var(--acc-text-xsmall);
  color: rgba(255, 255, 255, 0.5);
}

.navigator-legend .legend-item {
  display: flex;
  align-items: center;
  gap: var(--acc-space-xs);
}

.navigator-legend .legend-color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* v22.0: Simplified legend - just PHP/JS */
.navigator-legend .legend-color.php { background: var(--acc-red); }
.navigator-legend .legend-color.js { background: var(--acc-blue); }

/* Category Section */
.category-section {
  margin-bottom: var(--acc-space-sm);
  padding: var(--acc-space-sm);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-section > div:first-child {
  font-size: var(--acc-text-xsmall);
  font-weight: 600;
  margin-bottom: var(--acc-space-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Navigator Boxes Container */
.navigator-boxes,
.category-section > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Issue Nav Box - v22.0: All boxes full color */
.issue-nav-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--acc-font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--acc-transition-fast);
  background: var(--acc-red);
  color: var(--acc-white);
}

.issue-nav-box:hover {
  transform: scale(1.15);
  z-index: 10;
}

.issue-nav-box.js-issue {
  background: var(--acc-blue);
}

/* v22.0: REMOVED light/dark marker styles - all boxes now full color */

/* v22.100: Hidden marker dimming — Tab Order overlay marks hidden issues */
.issue-nav-box.acp-nav-hidden {
  opacity: 0.25 !important;
  filter: grayscale(0.6) !important;
  pointer-events: auto;
  position: relative;
}
.issue-nav-box.acp-nav-hidden:hover {
  opacity: 0.5 !important;
  filter: grayscale(0.3) !important;
}

/* More Button */
.issue-nav-box.more-btn {
  min-width: 32px;
  padding: 0 8px;
  background: var(--acc-gray);
}

/* Menu Label */
.menu-label {
  display: inline-block;
  background: #9c27b0;
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 600;
}

/* ============================================
   WCAG 2.2 COVERAGE OVERVIEW
   ============================================ */

/* ============================================
   WCAG COVERAGE OVERVIEW - Clean Design
   ============================================ */

.wcag-coverage-section,
.accessibility-report .wcag-coverage,
.accessibility-report [class*="wcag-principle"] {
  margin: 20px 0;
  background: rgba(26, 34, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--acc-card-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section headers like "1. Perceivable" */
.wcag-coverage-section h4,
.accessibility-report .wcag-coverage h4,
.accessibility-report [class*="wcag-principle"] > h4 {
  margin: 0;
  padding: 14px 18px;
  font-family: var(--acc-font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Legend row */
.wcag-coverage-legend,
.accessibility-report .wcag-coverage > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Coverage Grid */
.wcag-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}

/* Each criterion row */
.wcag-coverage-item,
.accessibility-report [style*="display: flex"][style*="align-items: center"][style*="padding: 0.75rem"] {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  background: transparent !important;
  gap: 12px !important;
  font-size: 14px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.wcag-coverage-item:last-child {
  border-bottom: none;
}

.wcag-coverage-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Status icon column */
.wcag-coverage-item .status-icon,
.accessibility-report [style*="width: 2rem"][style*="text-align: center"] {
  width: 24px !important;
  min-width: 24px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

/* Criterion ID like "1.3.4" - keep on one line */
.wcag-coverage-item .criterion-id,
.accessibility-report [style*="width: 4rem"][style*="font-weight: 600"] {
  width: 50px !important;
  min-width: 50px !important;
  font-weight: 600 !important;
  color: #fff !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Criterion name and description */
.wcag-coverage-item .criterion-info,
.accessibility-report [style*="flex: 1"] {
  flex: 1 !important;
  min-width: 0 !important;
}

.wcag-coverage-item .criterion-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.wcag-coverage-item .criterion-name small,
.wcag-coverage-item .criterion-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-left: 4px;
}

/* Level badge (A, AA, AAA) */
.wcag-coverage-item .level-badge,
.accessibility-report [style*="width: 3rem"][style*="text-align: center"][style*="border-radius: 4px"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

/* Status label */
.wcag-coverage-item .status-label,
.accessibility-report [style*="width: 5rem"][style*="text-align: right"] {
  width: 70px !important;
  min-width: 70px !important;
  text-align: right !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  flex-shrink: 0 !important;
}

/* Coverage Summary Stats */
.wcag-coverage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(26, 34, 52, 0.6);
  border-radius: var(--acc-card-radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wcag-coverage-summary .summary-item {
  text-align: center;
  padding: 8px 16px;
}

.wcag-coverage-summary .summary-item .count {
  font-family: var(--acc-font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.wcag-coverage-summary .summary-item.passed .count { color: #4ade80; }
.wcag-coverage-summary .summary-item.failed .count { color: #f87171; }
.wcag-coverage-summary .summary-item.total .count { color: #fff; }

.wcag-coverage-summary .summary-item .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SCORE CIRCLES
   ============================================ */

.accessibility-report .score-circles-container {
  display: flex;
  justify-content: center;
  gap: var(--acc-space-lg);
  flex-wrap: wrap;
  margin: var(--acc-space-lg) 0;
}

.accessibility-report .score-circle-wrapper {
  text-align: center;
}

/* v25.0.0: Score circle synced to PDF/Doc v2.0.0:
   - Size 100x100 → 120x120 (inner 70 → 85)
   - Variable --score-percentage → --score-pct (JS sync REQUIRED in script.js)
   - Track background: --acc-border → rgba(255,255,255,0.08) (subtle on dark)
   - Fallback: 100 → 0 (prevents flash of full circle on load)
   - Label color: --acc-dark → --acc-gray (matches PDF/Doc, lighter for subtitle role)
*/
.accessibility-report .score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: conic-gradient(
    from -90deg,
    var(--circle-color, var(--acc-success)) 0deg,
    var(--circle-color, var(--acc-success)) calc(var(--score-pct, 0) * 3.6deg),
    rgba(255, 255, 255, 0.08) calc(var(--score-pct, 0) * 3.6deg),
    rgba(255, 255, 255, 0.08) 360deg
  );
}

.accessibility-report .score-circle::before {
  content: '';
  position: absolute;
  width: 85px;
  height: 85px;
  background: #1a2234;
  border-radius: 50%;
}

.accessibility-report .score-circle.success { --circle-color: var(--acc-success); }
.accessibility-report .score-circle.warning { --circle-color: var(--acc-warning); }
.accessibility-report .score-circle.critical { --circle-color: var(--acc-red); }

.accessibility-report .score-number {
  position: relative;
  z-index: 1;
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-h4);
  font-weight: 700;
  color: #fff;
}

.accessibility-report .score-label {
  margin-top: var(--acc-space-sm);
  font-size: var(--acc-text-small);
  font-weight: 600;
  color: var(--acc-gray);
}

.accessibility-report .score-info {
  font-size: var(--acc-text-xsmall);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ============================================
   OTHER ELEMENTS
   ============================================ */

/* Compliance Notification */
.accessibility-checker-tool .compliance-notification {
  padding: var(--acc-space-md);
  margin-bottom: var(--acc-space-lg);
  border-radius: var(--acc-card-radius);
  border: var(--acc-card-border);
  background: var(--acc-card-flat);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.accessibility-checker-tool .compliance-notification.success {
  border-left: 2px solid var(--acc-success);
  background: rgba(34, 197, 94, 0.08);
}

.accessibility-checker-tool .compliance-notification.failure {
  border-left: 2px solid var(--acc-red);
  background: rgba(220, 38, 38, 0.08);
}

/* Error Message */
.accessibility-checker-tool .error-message,
.accessibility-checker-tool .accessibility-tool-error {
  padding: var(--acc-space-md);
  background: rgba(220, 38, 38, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-left: 2px solid var(--acc-red);
  border-radius: 0 var(--acc-radius-md) var(--acc-radius-md) 0;
  color: var(--acc-red);
  margin: var(--acc-space-md) 0;
}

/* No Issues Message */
.no-issues-message {
  padding: var(--acc-space-lg);
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--acc-inner-radius);
  text-align: center;
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Back to Navigator */
.back-to-nav-top,
.back-to-navigator-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(135deg, #1e5f99, #2563eb) !important;
  color: #ffffff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(30, 95, 153, 0.5), 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  opacity: 1 !important;
}

.back-to-nav-top:hover,
.back-to-navigator-btn:hover {
  background: linear-gradient(135deg, #184c7a, #1e5f99) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30, 95, 153, 0.55), 0 3px 10px rgba(0,0,0,0.25);
}

/* Tooltip - stays within viewport */
.tooltip,
.quick-tooltip {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--acc-radius-md);
  font-family: var(--acc-font-body);
  font-size: 13px;
  z-index: 100000;
  max-width: 350px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  white-space: pre-wrap;
  pointer-events: none;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

/* MENU label on navigator boxes */
.menu-label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  margin-left: 3px;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* v22.0: All boxes are full color now, so menu-label always has light text */
.issue-nav-box .menu-label {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Issue Highlighted State */
.issue-item.issue-highlighted {
  outline: 3px solid var(--acc-warning);
  outline-offset: 2px;
  background: var(--color-warning-light) !important;
}

/* Fallback Reason Badge - inline with other badges */
.fallback-reason-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 3px 10px;
  border-radius: var(--acc-radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================
   REPORT INFO - Grid Layout
   ============================================ */

.accessibility-report .report-info {
  background: var(--acc-card-flat);
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  padding: var(--acc-space-md);
  margin-bottom: var(--acc-space-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.accessibility-report .report-info-header {
  font-size: var(--acc-text-h5);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--acc-space-md);
  padding-bottom: var(--acc-space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid pro URL, Date, Standard */
.accessibility-report .report-info > p.report-url,
.accessibility-report .report-info > p.report-date,
.accessibility-report .report-info > p.report-standard {
  display: inline-block;
  width: calc(33.333% - var(--acc-space-sm));
  margin: 0 var(--acc-space-xs) var(--acc-space-sm) 0;
  padding: var(--acc-space-sm);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  font-size: var(--acc-text-small);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.7);
}

.accessibility-report .report-info > p.report-url strong,
.accessibility-report .report-info > p.report-date strong,
.accessibility-report .report-info > p.report-standard strong {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--acc-text-xsmall);
  margin-bottom: 4px;
}

.accessibility-report .report-info > p.report-url a {
  color: #60a5fa;
  word-break: break-all;
}

/* ============================================
   PROGRESS BARS - Compliance Metrics
   ============================================ */

.progress-bars-section {
  margin-top: var(--acc-space-md);
  padding-top: var(--acc-space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bars-header {
  font-size: var(--acc-text-small);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--acc-space-sm);
}

.progress-bar-item {
  margin-bottom: var(--acc-space-sm);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-name {
  font-size: var(--acc-text-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.progress-value {
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small);
  font-weight: 700;
  color: #fff;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--acc-radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--acc-radius-pill);
  transition: width 0.6s ease;
  position: relative;
}

/* Progress bar colors */
.progress-bar-fill.passed {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}
.progress-bar-fill.level-aa {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.progress-bar-fill.level-a {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Shimmer animation for progress bars */
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmerProgress 2s infinite;
}

@keyframes shimmerProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   HIDE TITLE (user has own in Bricks)
   ============================================ */

.accessibility-report .report-header > h2:first-of-type {
  display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  /* CRITICAL: Prevent horizontal overflow and viewport issues */
  html, body {
    overflow-x: hidden !important;
  }
  
  .accessibility-checker-tool,
  .accessibility-report {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }
  
  /* All children respect container */
  .accessibility-checker-tool *,
  .accessibility-report * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Input field - 16px minimum to prevent iOS zoom */
  .accessibility-checker-tool .url-input,
  .accessibility-checker-tool #url_to_check {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
  
  /* Buttons stack vertically */
  .accessibility-checker-tool .button-group {
    position: static;
    transform: none;
    margin-top: 10px;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .accessibility-checker-tool .check-button,
  .accessibility-checker-tool button[type="submit"] {
    width: 100% !important;
    padding: 12px !important;
  }
  
  /* Force Fresh Check button */
  .accessibility-checker-tool .check-button:last-child {
    display: none;
  }
  
  /* Iframe Preview - responsive */
  .accessibility-report .iframe-wrapper,
  .accessibility-report .preview-container {
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .accessibility-report .iframe-wrapper iframe,
  .accessibility-report .website-preview-iframe {
    width: 100% !important;
    height: 200px !important;
    transform: none !important;
  }
  
  /* Report header responsive */
  .accessibility-report .report-preview-section {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .accessibility-report .preview-container,
  .accessibility-report .report-info {
    width: 100% !important;
    flex: none !important;
  }
  
  /* Tabs stack vertically */
  .accessibility-report .tabs-nav {
    flex-direction: column !important;
    gap: 5px !important;
  }
  
  .accessibility-report .tab-button {
    width: 100% !important;
    padding: 10px !important;
    font-size: 13px !important;
  }
  
  /* Stat boxes - 2 columns on tablet, 1 on phone */
  .accessibility-report .stat-box-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .accessibility-report .stat-box {
    padding: 12px !important;
  }
  
  .accessibility-report .stat-value {
    font-size: 24px !important;
  }
  
  .accessibility-report .stat-label {
    font-size: 11px !important;
  }
  
  /* Issue items responsive */
  .accessibility-report .issue-item {
    padding: 10px !important;
  }
  
  /* Fix suggestion - use full width on mobile */
  .accessibility-report .fix-suggestion {
    padding: 10px !important;
  }
  
  /* Framework badge + text: stack vertically on mobile */
  .accessibility-report .framework-specific-fix {
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .accessibility-report .issue-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  
  .accessibility-report .issue-header h5 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  
  /* Badges wrap properly */
  .accessibility-report .issue-header > span,
  .accessibility-report .wcag-level,
  .accessibility-report .wcag-criteria,
  .accessibility-report .wcag-22-badge,
  .accessibility-report .criterion-level {
    font-size: 10px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
  }
  
  /* Code context scrollable */
  .accessibility-report .code-context-section {
    overflow-x: auto !important;
  }
  
  .accessibility-report .code-context-section pre,
  .accessibility-report .code-context-section code {
    font-size: 11px !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }
  
  /* Element selector scrollable */
  .accessibility-report p code,
  .accessibility-report .issue-item code {
    font-size: 11px !important;
    word-break: break-all !important;
    display: inline-block !important;
    max-width: 100% !important;
  }
  
  /* Report info */
  .accessibility-report .report-info > p.report-url,
  .accessibility-report .report-info > p.report-date,
  .accessibility-report .report-info > p.report-standard {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
    word-break: break-word !important;
  }
  
  /* Progress bars */
  .accessibility-report .progress-bar-item {
    padding: 8px 0 !important;
  }
  
  /* Mobile preloader - v22.6: Overlay is handled separately */
  /* Keep basic styles for fallback */
  .accessibility-checker-tool .analysis-progress-container {
    display: none;
  }
  
  .accessibility-checker-tool .analysis-progress-container.active {
    display: block !important;
  }
  
  .accessibility-checker-tool .loading-indicator {
    display: flex !important;
  }
  
  .accessibility-checker-tool .loading-indicator.hidden {
    display: none !important;
  }
  
  /* Navigator compact */
  .issue-navigator {
    padding: 10px !important;
  }
  
  /* Navigator boxes - responsive with MENU */
  .issue-nav-box {
    width: 24px !important;
    height: 24px !important;
    font-size: 9px !important;
    padding: 0 2px !important;
  }
  
  .issue-nav-box:has(.menu-label) {
    width: auto !important;
    min-width: 24px !important;
    padding: 0 4px !important;
  }
  
  .menu-label {
    font-size: 6px !important;
    padding: 0 2px !important;
    margin-left: 2px !important;
  }
  
  .quick-tooltip {
    max-width: 250px !important;
    font-size: 10px !important;
  }
  
  /* WCAG coverage grid */
  .wcag-coverage-grid {
    grid-template-columns: 1fr !important;
  }
  
  .wcag-coverage-summary {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  /* WCAG Coverage Overview - Mobile responsive rows */
  .wcag-coverage-item,
  .accessibility-report [style*="display: flex"][style*="align-items: center"][style*="padding: 0.75rem"] {
    flex-wrap: wrap !important;
    padding: 10px 12px !important;
    gap: 6px 10px !important;
  }
  
  /* Status icon - smaller */
  .wcag-coverage-item .status-icon,
  .accessibility-report [style*="width: 2rem"] {
    width: 20px !important;
    min-width: 20px !important;
    font-size: 12px !important;
  }
  
  /* Criterion ID - compact */
  .wcag-coverage-item .criterion-id,
  .accessibility-report [style*="width: 4rem"][style*="font-weight: 600"] {
    width: 40px !important;
    min-width: 40px !important;
    font-size: 12px !important;
  }
  
  /* Criterion name - full width on new line */
  .wcag-coverage-item .criterion-info,
  .accessibility-report [style*="flex: 1"] {
    flex: 1 1 100% !important;
    order: 3 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
  }
  
  /* Level badge - inline with ID */
  .wcag-coverage-item .level-badge,
  .accessibility-report [style*="width: 3rem"][style*="border-radius: 4px"] {
    min-width: 28px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    order: 2 !important;
  }
  
  /* Status label - next to level badge */
  .wcag-coverage-item .status-label,
  .accessibility-report [style*="width: 5rem"][style*="text-align: right"] {
    width: auto !important;
    min-width: auto !important;
    font-size: 10px !important;
    order: 4 !important;
    margin-left: auto !important;
  }
  
  /* Hide description on mobile */
  .wcag-coverage-item .criterion-name small,
  .wcag-coverage-item .criterion-desc {
    display: none !important;
  }
  
  /* Score circle smaller */
  .accessibility-report .score-circle,
  .accessibility-report .accessibility-score-circle {
    width: 120px !important;
    height: 120px !important;
  }
  
  /* Summary container */
  .accessibility-report .summary-container {
    padding: 12px !important;
  }
  
  .accessibility-report .summary-container h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller on phones */
  .accessibility-report .stat-box-container {
    grid-template-columns: 1fr !important;
  }
  
  .accessibility-report .stat-box {
    padding: 10px !important;
  }
  
  .accessibility-report .stat-value {
    font-size: 20px !important;
  }
  
  /* Issue items even more compact */
  .accessibility-report .issue-item {
    padding: 8px !important;
  }
  
  .accessibility-report .fix-suggestion {
    padding: 8px !important;
  }
  
  .accessibility-report .issue-header h5 {
    font-size: 13px !important;
  }
  
  /* Hide some less important badges on very small screens */
  .accessibility-report .wcag-22-badge,
  .accessibility-report .error-line-badge {
    display: none !important;
  }
  
  /* Score circle even smaller */
  .accessibility-report .score-circle,
  .accessibility-report .accessibility-score-circle {
    width: 100px !important;
    height: 100px !important;
  }
  
  /* Navigator even more compact */
  .issue-nav-box {
    width: 22px !important;
    height: 22px !important;
    font-size: 8px !important;
  }
}

/* ============================================
   PRINT & ACCESSIBILITY
   ============================================ */

@media print {
  .accessibility-checker-tool .url-form,
  .accessibility-report .tabs-nav,
  .accessibility-report .action-button,
  .accessibility-report .preview-container,
  .issue-navigator,
  .back-to-nav-top,
  .back-to-navigator-btn,
  .show-in-preview-btn {
    display: none !important;
  }
  
  .accessibility-report .tab-content {
    display: block !important;
  }
  
  .accessibility-report .issue-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Exception: Progress bar must still animate */
  .accessibility-checker-tool .analysis-progress-fill {
    transition: width 0.3s linear !important;
  }
}

/* ============================================
   MOBILE OVERLAY PRELOADER - v22.6
   Fixed overlay with full progress bar inside
   ============================================ */

.analysis-progress-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.analysis-progress-overlay.active {
  display: flex !important;
}

.analysis-progress-overlay .analysis-progress-container.mobile-card {
  display: block !important;
  background: var(--acc-white, #ffffff);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analysis-progress-overlay .analysis-progress-header {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}

.analysis-progress-overlay .analysis-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.analysis-progress-overlay .analysis-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px;
  transition: width 0.4s ease;
  -webkit-transition: width 0.4s ease;
  position: relative;
}

.analysis-progress-overlay .analysis-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

.analysis-progress-overlay .analysis-progress-text {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.analysis-progress-overlay .analysis-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-progress-overlay .analysis-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.analysis-progress-overlay .analysis-step::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.analysis-progress-overlay .analysis-step.active {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  font-weight: 500;
}

.analysis-progress-overlay .analysis-step.active::before {
  background: #60a5fa;
  animation: pulse 1s infinite;
}

.analysis-progress-overlay .analysis-step.completed {
  color: #4ade80;
}

.analysis-progress-overlay .analysis-step.completed::before {
  background: #4ade80;
}

/* ============================================
   UTILITY CLASSES - Replacing inline styles
   Version: 20.7.0
   ============================================ */

/* Line Height Utilities */
.accessibility-report .line-height-relaxed {
  line-height: 1.8;
}

.accessibility-report .line-height-relaxed.margin-reset {
  margin: 0;
}

.accessibility-report .line-height-relaxed.margin-v-md {
  margin: 1rem 0;
}

/* Flex Utilities */
.accessibility-report .flex-center-gap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Margin Utilities */
.accessibility-report .mt-0 { margin-top: 0; }
.accessibility-report .mt-sm { margin-top: 1rem; }
.accessibility-report .mt-md { margin-top: 2rem; }
.accessibility-report .mt-lg { margin-top: 3rem; }
.accessibility-report .mb-sm { margin-bottom: 1rem; }
.accessibility-report .mb-md { margin-bottom: 2rem; }
.accessibility-report .m-0 { margin: 0; }

/* Padding Utilities */
.accessibility-report .px-md { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Text Color Utilities */
.accessibility-report .text-success { color: #4caf50; }
.accessibility-report .text-error { color: #c62828; }
.accessibility-report .text-error-light { color: #d32f2f; }
.accessibility-report .text-warning { color: #f57c00; }
.accessibility-report .text-warning-dark { color: #e65100; }

/* Font Utilities */
.accessibility-report .text-lg { font-size: 1.1em; }
.accessibility-report .text-xl { font-size: 1.2em; }
.accessibility-report .text-2xl { font-size: 2rem; }
.accessibility-report .font-semibold { font-weight: 600; }

/* DDA Compliance Box */
/* DDA Compliance Inline Badge (pod score circle) */
.accessibility-report .dda-compliance-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}

.accessibility-report .dda-ci-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.accessibility-report .dda-ci-standard {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(51, 65, 85, 0.55);
}

/* Compliant state */
.accessibility-report .dda-compliance-inline.dda-ci-compliant {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.accessibility-report .dda-compliance-inline.dda-ci-compliant .dda-ci-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.accessibility-report .dda-compliance-inline.dda-ci-compliant .dda-ci-label {
  color: #34d399;
}

/* Non-compliant state */
.accessibility-report .dda-compliance-inline.dda-ci-non-compliant {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.accessibility-report .dda-compliance-inline.dda-ci-non-compliant .dda-ci-icon {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}
.accessibility-report .dda-compliance-inline.dda-ci-non-compliant .dda-ci-label {
  color: #f87171;
}

/* Legacy DDA compliance box (kept for backwards compat, hidden) */
.accessibility-report .dda-compliance-box {
  padding: 2rem;
  border-left: 2px solid;
  border-radius: var(--acc-inner-radius);
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accessibility-report .dda-compliance-box.compliant {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
}

.accessibility-report .dda-compliance-box.non-compliant {
  background: rgba(220, 38, 38, 0.1);
  border-left-color: #dc2626;


/* ============================================================
   JURISDICTION CONTEXT — v1.1.0 (Oblast 7)
   Copied 1:1 from pdf-style.css .pdfac-country-select patterns
   ============================================================ */

/* Wrap — flex: 1 so it fills available space in .button-group */
.accessibility-checker-tool .acp-jurisdiction-form-wrap {
  position: relative;
  flex: 0 0 auto;
}

/* Select — identical to PDF Checker */
.accessibility-checker-tool .acp-jurisdiction-form-select {
  width: auto;
  min-width: 220px;
  height: 50px;
  padding: 0 32px 0 18px;
  border-radius: var(--acc-inner-radius);
  font-family: var(--acc-font-body);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: 0.2s;
}

.accessibility-checker-tool .acp-jurisdiction-form-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.accessibility-checker-tool .acp-jurisdiction-form-select:focus {
  outline: none;
  border-color: var(--acc-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 153, 0.2);
}

.accessibility-checker-tool .acp-jurisdiction-form-select option {
  background: #1a2234;
  color: #fff;
}

/* Custom arrow — identical to PDF Checker */
.accessibility-checker-tool .acp-jurisdiction-form-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

/* Static label (single country) — identical to pdfac-single-country */
.accessibility-checker-tool .acp-jurisdiction-form-static {
  height: 50px;
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--acc-inner-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

/* ── REPORT INTRO NOTE ── */
.acp-jurisdiction-intro {
  font-size: var(--acc-text-xsmall);
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  line-height: 1.5;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(42, 194, 229, 0.35);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
}
/* ── SCAN FORM WIDGET ── */
/* Wraps the dropdown — sits inside .button-group next to buttons */
.acp-jurisdiction-form-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Dropdown select */
.acp-jurisdiction-form-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--acc-font-body);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 10px 36px 10px 14px;
  cursor: pointer;
  transition: border-color var(--acc-transition-fast), background var(--acc-transition-fast);
  outline: none;
  min-width: 220px;
}

.acp-jurisdiction-form-select:hover,
.acp-jurisdiction-form-select:focus {
  border-color: rgba(42, 194, 229, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* Custom arrow */
.acp-jurisdiction-form-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Static label (single country — no dropdown) */
.acp-jurisdiction-form-static {
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* ── REPORT INTRO NOTE ── */
/* 1-line legal context shown above tabs in report */
.acp-jurisdiction-intro {
  font-size: var(--acc-text-xsmall);
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  line-height: 1.5;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(42, 194, 229, 0.35);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
}

/* Responsive */
@media (max-width: 600px) {
  .acp-jurisdiction-form-select {
    min-width: 160px;
    font-size: 1.1rem;
  }
  .acp-jurisdiction-form-static {
    font-size: 1.1rem;
  }
}
/* Widget container — sits inside .report-tabs, above .tabs-nav */
#acp-jurisdiction-widget {
  margin-bottom: 12px;
}

/* Intro note — 1-line legal context */
.acp-jurisdiction-intro {
  font-size: var(--acc-text-xsmall);
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 10px;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(42, 194, 229, 0.35);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
}

/* Selector row */
.acp-jurisdiction-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* "Testing for:" label */
.acp-jurisdiction-label {
  font-size: var(--acc-text-xsmall);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dropdown wrapper — needed for custom arrow */
.acp-jurisdiction-selector {
  position: relative;
}

/* Dropdown select */
.acp-jurisdiction-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--acc-inner-radius);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-xsmall);
  font-weight: 500;
  padding: 6px 32px 6px 12px;
  cursor: pointer;
  transition: border-color var(--acc-transition-fast), background var(--acc-transition-fast);
  outline: none;
}

.acp-jurisdiction-select:hover,
.acp-jurisdiction-select:focus {
  border-color: rgba(42, 194, 229, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

/* Custom dropdown arrow */
.acp-jurisdiction-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Static label (single country — no dropdown) */
.acp-jurisdiction-static {
  font-size: var(--acc-text-xsmall);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--acc-inner-radius);
}

/* Responsive */
@media (max-width: 600px) {
  .acp-jurisdiction-selector {
    gap: 6px;
  }
  .acp-jurisdiction-select {
    font-size: 1.1rem;
    width: 100%;
  }
  .acp-jurisdiction-intro {
    font-size: 1.1rem;
  }
}
}

.accessibility-report .dda-compliance-box.compact {
  margin: 1rem 0 2rem 0;
}

.accessibility-report .dda-compliance-box h3 {
  margin-top: 0;
}

.accessibility-report .dda-compliance-box.compliant h3 {
  color: #4ade80;
}

.accessibility-report .dda-compliance-box.non-compliant h3 {
  color: #f87171;
}

/* Info Box */
.accessibility-report .info-box {
  padding: 1.5rem;
  border-left: 2px solid;
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
  margin-top: 2rem;
}

.accessibility-report .info-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
}

.accessibility-report .info-box.neutral {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.2);
}

/* Summary Box */
.accessibility-report .summary-box {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Grid Utilities */
.accessibility-report .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.accessibility-report .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.accessibility-report .grid-3.border-top {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* WCAG Legend */
.accessibility-report .wcag-legend {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* WCAG Principle Header */
.accessibility-report .wcag-principle-header {
  padding: 1rem;
  margin: 0;
  border-radius: 8px 8px 0 0;
  color: #fff;
}

.accessibility-report .wcag-principle-header.perceivable { background: #1565c0; }
.accessibility-report .wcag-principle-header.operable { background: #2e7d32; }
.accessibility-report .wcag-principle-header.understandable { background: #ef6c00; }
.accessibility-report .wcag-principle-header.robust { background: #6a1b9a; }

/* WCAG Criteria Items Container */
.accessibility-report .wcag-criteria-items {
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* Issue Section Spacing */
.accessibility-report .issue-section.spaced {
  margin-top: 3rem;
}

.accessibility-report .issue-section.spaced-sm {
  margin-top: 2rem;
}

/* Issue Description Text */
.accessibility-report .issue-description-text {
  padding: 0 1.5rem;
  font-weight: 600;
}

.accessibility-report .issue-description-text.critical {
  color: #d32f2f;
}

.accessibility-report .issue-description-text.warning {
  color: #f57c00;
}

/* WCAG Coverage Table Widths */
.accessibility-report .wcag-cell-status {
  width: 2rem;
  text-align: center;
}

.accessibility-report .wcag-cell-level {
  width: 3rem;
  text-align: center;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.accessibility-report .wcag-cell-level.level-a { background: #d32f2f; }
.accessibility-report .wcag-cell-level.level-aa { background: #f57c00; }
.accessibility-report .wcag-cell-level.level-aaa { background: #1976d2; }

.accessibility-report .wcag-cell-id {
  width: 4rem;
  font-weight: 600;
  color: #333;
}

.accessibility-report .wcag-cell-coverage {
  width: 5rem;
  text-align: right;
  font-size: 0.85rem;
  color: #666;
}

/* Iframe Blocked Message */
.accessibility-report .iframe-blocked-message,
.accessibility-checker-tool .blocked-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.accessibility-report .iframe-blocked-title,
.accessibility-checker-tool .iframe-blocked-title {
  margin: 20px 0 15px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.accessibility-report .iframe-blocked-desc,
.accessibility-checker-tool .iframe-blocked-desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: #bbb;
  line-height: 1.6;
}

.accessibility-report .iframe-blocked-tips,
.accessibility-checker-tool .iframe-blocked-tips {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.accessibility-report .iframe-blocked-tips p,
.accessibility-checker-tool .iframe-blocked-tips p {
  margin: 0 0 12px;
}

.accessibility-report .iframe-blocked-tips p:last-child,
.accessibility-checker-tool .iframe-blocked-tips p:last-child {
  margin-bottom: 0;
}

.accessibility-report .iframe-blocked-tips .tip-success,
.accessibility-checker-tool .iframe-blocked-tips .tip-success { color: #81c784; }

.accessibility-report .iframe-blocked-tips .tip-info,
.accessibility-checker-tool .iframe-blocked-tips .tip-info { color: #90caf9; }

.accessibility-report .iframe-blocked-tips .tip-hint,
.accessibility-checker-tool .iframe-blocked-tips .tip-hint { color: #ce93d8; }

/* Live Preview Header */
.accessibility-report .live-preview-header,
.accessibility-checker-tool .live-preview-header {
  padding: 10px;
  font-weight: 600;
}

.accessibility-report .live-preview-subtitle,
.accessibility-checker-tool .live-preview-subtitle {
  font-size: 12px;
  color: #64748b !important;
  font-weight: normal;
}

/* Live Iframe Wrapper */
/* v22.82: overflow-x changed from auto to hidden - prevents horizontal scrollbar
   when sites have body overflow from sliders (Elementor Swiper, Slick etc.) */
.accessibility-report .live-iframe-wrapper,
.accessibility-checker-tool .live-iframe-wrapper {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #0f172a;
}

/* Preview Unavailable Note */
.accessibility-report .preview-unavailable-note,
.accessibility-checker-tool .preview-unavailable-note {
  color: #dc2626;
  font-size: 12px;
}

/* Hybrid Stats PHP/JS counts */
.accessibility-report .hybrid-stats-compact .php-count,
.accessibility-checker-tool .hybrid-stats-compact .php-count {
  color: #dc2626;
}

.accessibility-report .hybrid-stats-compact .js-count,
.accessibility-checker-tool .hybrid-stats-compact .js-count {
  color: #1e5f99;
}

/* Issue Count Badge in Navigator */
.accessibility-report .nav-issue-count {
  color: #dc2626;
  font-size: 12px;
}

/* Stats in Navigator Header */
.accessibility-report .nav-stats-inline {
  font-size: 12px;
}

.accessibility-report .nav-stats-inline .php-count {
  color: #dc2626;
}

.accessibility-report .nav-stats-inline .js-count {
  color: #1e5f99;
}

/* Additional Color Utilities */
.accessibility-report .text-blue { color: #2196f3; }
.accessibility-report .text-orange { color: #ff9800; }
.accessibility-report .text-gray-muted { color: #9e9e9e; }
.accessibility-report .text-level-a { color: #dc2626; }
.accessibility-report .text-level-aa { color: #f59e0b; }
.accessibility-report .text-wcag22 { color: #3b82f6; }

/* Font Size Utilities */
.accessibility-report .text-lg-fixed { font-size: 1.5rem; }

/* WCAG Criterion Row */
.accessibility-report .wcag-criterion-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.accessibility-report .wcag-criterion-row:last-child {
  border-bottom: none;
}

.accessibility-report .wcag-criterion-status {
  width: 2rem;
  text-align: center;
}

.accessibility-report .wcag-criterion-id {
  width: 4rem;
  font-weight: 600;
  color: #fff;
}

.accessibility-report .wcag-criterion-name {
  flex: 1;
}

.accessibility-report .wcag-criterion-name small {
  color: rgba(255, 255, 255, 0.45);
}

.accessibility-report .wcag-criterion-level {
  width: 3rem;
  text-align: center;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.accessibility-report .wcag-criterion-level.level-a { background: #d32f2f; }
.accessibility-report .wcag-criterion-level.level-aa { background: #f57c00; }
.accessibility-report .wcag-criterion-level.level-aaa { background: #1976d2; }

.accessibility-report .wcag-criterion-coverage {
  width: 5rem;
  text-align: right;
  font-size: 0.85rem;
  color: #666;
}

/* Status Icon Colors */
.accessibility-report .status-auto { color: #4caf50; }
.accessibility-report .status-partial { color: #ff9800; }
.accessibility-report .status-planned { color: #2196f3; }
.accessibility-report .status-manual { color: #9e9e9e; }

/* ============================================
   FRAMEWORK FIX GUIDES (v1.0.1 - 2025-01-24)
   ============================================ */

.fix-suggestion {
    margin-top: 12px;
    margin-bottom: 12px; /* v25.1.0: Space before action button row */
    padding: 14px 18px;
    background: rgba(30, 95, 153, 0.1);
    border-left: 2px solid var(--acc-blue);
    border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
    font-size: var(--acc-text-small);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.fix-suggestion strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 6px;
}

.framework-specific-fix {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--acc-border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.framework-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--acc-dark);
    color: var(--acc-white);
    font-family: var(--acc-font-body);
    font-size: var(--acc-text-xsmall);
    font-weight: 600;
    border-radius: var(--acc-radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   QUICK NAVIGATOR - SEVERITY FILTERS
   v22.35
   ============================================ */

.navigator-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--acc-inner-radius);
}

.severity-filter-btn {
  padding: 6px 16px;
  font-family: var(--acc-font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--acc-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--acc-transition-fast);
  text-transform: uppercase;
}

.severity-filter-btn.filter-critical {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.severity-filter-btn.filter-critical.active,
.severity-filter-btn.filter-critical:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.severity-filter-btn.filter-warning {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

.severity-filter-btn.filter-warning.active,
.severity-filter-btn.filter-warning:hover {
  background: #ea580c;
  color: white;
  border-color: #ea580c;
}

.severity-filter-btn.filter-all {
  background: var(--acc-dark);
  color: white;
}

.severity-filter-btn.filter-all.active {
  box-shadow: 0 0 0 2px var(--acc-blue);
}

/* ============================================
   QUICK NAVIGATOR - +N BUTTON TOOLTIP
   v20.9.0
   ============================================ */

/* +N More button tooltip */
.issue-nav-box.more-btn {
  position: relative;
  cursor: pointer;
}

.issue-nav-box.more-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acc-dark);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  margin-bottom: 6px;
  z-index: 100;
}

.issue-nav-box.more-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   SCREEN READER TEST - EXPLANATION NOTE
   v20.9.0
   ============================================ */

.screen-reader-count-note {
  background: rgba(30, 95, 153, 0.1);
  border-left: 2px solid var(--acc-blue);
  padding: 12px 16px;
  margin: 10px 0 15px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0 var(--acc-inner-radius) var(--acc-inner-radius) 0;
}

.screen-reader-count-note strong {
  color: #fff;
}

/* ============================================
   WCAG Coverage Tab - v5.0.0 Hero Design
   ============================================ */

/* Container */
.wcag-coverage-container {
  padding: 20px;
}

/* Hero Section */
.cov-hero {
  background: linear-gradient(135deg, #1a2234 0%, #0f172a 100%);
  border-radius: var(--acc-radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(26, 34, 52, 0.12);
}

.cov-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cov-hero-title h3 {
  margin: 0;
  color: #fff;
  font-family: var(--acc-font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cov-hero-title p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.cov-hero-percent {
  text-align: right;
}

.cov-percent-number {
  display: block;
  font-family: var(--acc-font-body);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cov-percent-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: 2px;
}

/* Progress bar */
.cov-progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--acc-radius-pill);
  height: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cov-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: var(--acc-radius-pill);
  transition: width 0.6s ease;
}

/* Level breakdown */
.cov-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cov-level-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--acc-radius-md);
  padding: 12px 16px;
}

.cov-level-card.cov-level-a { border-left: 2px solid #ef4444; }
.cov-level-card.cov-level-aa { border-left: 2px solid #f59e0b; }
.cov-level-card.cov-level-aaa { border-left: 2px solid #3b82f6; }

.cov-level-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cov-level-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cov-level-checks {
  font-family: var(--acc-font-body);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.cov-level-checks-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.cov-level-criteria {
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}

.cov-level-a .cov-level-criteria { color: #ef4444; }
.cov-level-aa .cov-level-criteria { color: #f59e0b; }
.cov-level-aaa .cov-level-criteria { color: #3b82f6; }

/* Category grid */
.detection-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.detection-category {
  background: rgba(26, 34, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--acc-inner-radius);
  padding: 14px 18px;
  border-left: 2px solid var(--acc-blue, #1e5f99);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--acc-transition-fast);
}

.detection-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: rgba(26, 34, 52, 0.7);
  transform: translateY(-1px);
}

.category-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.category-header {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.category-badge {
  background: var(--acc-blue, #1e5f99);
  color: #fff;
  font-family: var(--acc-font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--acc-radius-pill);
  min-width: 20px;
  text-align: center;
  line-height: 1.4;
}

.detection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detection-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.detection-item:last-child {
  border-bottom: none;
}

.detection-check {
  color: #22c55e;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.detection-name {
  flex: 1;
  color: rgba(255, 255, 255, 0.7);
}

.detection-wcag {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: var(--acc-radius-pill);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--acc-font-body);
  flex-shrink: 0;
}

.detection-level {
  padding: 2px 8px;
  border-radius: var(--acc-radius-pill);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.detection-level.level-a { background: var(--acc-red, #dc2626); }
.detection-level.level-aa { background: #f59e0b; }
.detection-level.level-aaa { background: #3b82f6; }

/* ============================================
   PDF Export Button (moved from inline)
   ============================================ */
.pdf-export-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--acc-border, #e2e8f0);
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: none;
  border-radius: var(--acc-radius-md);
  font-family: var(--acc-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--acc-transition-fast);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.pdf-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.pdf-download-btn:active {
  transform: translateY(0);
}

.pdf-download-btn svg {
  flex-shrink: 0;
}

/* ============================================
   Technology Stack (moved from inline)
   ============================================ */
.technology-stack-section {
  background: var(--acc-card-flat);
  border: var(--acc-card-border);
  border-radius: var(--acc-card-radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tech-stack-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--acc-blue);
  margin-bottom: 15px;
}

.tech-boxes {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tech-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--acc-inner-radius);
  padding: 15px 25px;
  text-align: center;
  min-width: 120px;
  transition: all var(--acc-transition-fast);
}

.tech-box:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tech-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ============================================
   WCAG Coverage Responsive - Mobile
   ============================================ */
@media (max-width: 600px) {
  .cov-hero {
    padding: 16px 18px;
  }

  .cov-hero-header {
    flex-direction: row;
  }
  
  .cov-percent-number {
    font-size: 28px;
  }
  
  .cov-levels {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .cov-level-row {
    gap: 4px;
  }
  
  .cov-level-checks {
    font-size: 18px;
  }
  
  .detection-categories {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .cov-hero-title h3 {
    font-size: 16px;
  }
  
  .cov-hero-title p {
    font-size: 12px;
  }
  
  .detection-item {
    font-size: 12px;
  }
}

/* ============================================
   Stylesheet Health Banner (v23.1.0)
   Shown above iframe when CSS fails to load
   ============================================ */
.acp-stylesheet-banner {
  margin: 0 0 0 0;
  border: 1px solid #f59e0b;
  border-left: 1px solid #f59e0b;
  border-radius: 0 0 6px 6px;
  background: #fffbeb;
  overflow: hidden;
}

.acp-stylesheet-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  color: #92400e;
  font-size: 13px;
  line-height: 1.4;
}

.acp-stylesheet-banner-content svg {
  color: #f59e0b;
  margin-top: 1px;
}

.acp-stylesheet-banner-text {
  flex: 1;
}

.acp-stylesheet-banner-text strong {
  color: #78350f;
}

.acp-stylesheet-banner-text em {
  font-style: normal;
  font-weight: 600;
}

.acp-stylesheet-banner-text em.acp-banner-ok {
  color: #65a30d;
}

.acp-stylesheet-banner-text em.acp-banner-warn {
  color: #dc2626;
}

.acp-stylesheet-banner-close {
  background: none;
  border: none;
  color: #92400e;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.6;
  flex-shrink: 0;
}

.acp-stylesheet-banner-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .acp-stylesheet-banner-content {
    font-size: 12px;
    padding: 8px 10px;
  }
}
/* ==============================================
   SEARCH BAR RESTYLE v5.0 - Dark Inside Design
   v24.0.0 - Dark card with gradient
   ============================================== */

/* Container: dark card */
.accessibility-checker-tool {
    padding: 24px 28px !important;
    background: var(--acc-bg) !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Hide label */
.accessibility-checker-tool .form-group > label {
    display: none !important;
}

/* Tighter gap between input and buttons */
.accessibility-checker-tool .form-group {
    margin-bottom: 10px !important;
}

/* v24.0.0: Dark input card wrapper */
.accessibility-checker-tool form,
.accessibility-checker-tool .url-form,
.accessibility-checker-tool #accessibility-form {
    background: var(--acc-card-bg) !important;
    border: var(--acc-card-border) !important;
    border-radius: var(--acc-card-radius) !important;
    padding: 24px !important;
    margin-bottom: var(--acc-space-lg) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Blue orb decoration */
.accessibility-checker-tool form::before,
.accessibility-checker-tool #accessibility-form::before {
    content: '' !important;
    position: absolute !important;
    top: -40px !important;
    right: -40px !important;
    width: 120px !important;
    height: 120px !important;
    background: radial-gradient(circle, rgba(30, 95, 153, 0.15), transparent 70%) !important;
    pointer-events: none !important;
}

/* Input: transparent inside dark card */
.accessibility-checker-tool .url-input {
    height: 48px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--acc-inner-radius) !important;
    font-family: var(--acc-font-body) !important;
    font-size: var(--acc-text-small, 14px) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.accessibility-checker-tool .url-input:focus {
    border-color: var(--acc-blue, #1e5f99) !important;
    box-shadow: 0 0 0 3px rgba(30, 95, 153, 0.25) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.accessibility-checker-tool .url-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Button row */
.accessibility-checker-tool .button-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 0 !important;
}

/* Primary button - gradient (blue = Web brand color; kept from v24)
   v25.0.0: Height 42 → 50px to match PDF (red btn) + Doc (green btn) proportions */
.accessibility-checker-tool #normal_check_btn {
    height: 50px !important;
    padding: 0 24px !important;
    border-radius: var(--acc-inner-radius) !important;
    font-family: var(--acc-font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--acc-blue, #1e5f99), #2563eb) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(30, 95, 153, 0.3) !important;
    transition: all 0.2s ease !important;
}

.accessibility-checker-tool #normal_check_btn:hover {
    background: linear-gradient(135deg, #184c7a, var(--acc-blue, #1e5f99)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 95, 153, 0.4) !important;
}

/* Secondary button - ghost (v25.0.0: 42 → 50 for alignment with primary) */
.accessibility-checker-tool #force_refresh_btn {
    height: 50px !important;
    padding: 0 18px !important;
    border-radius: var(--acc-inner-radius) !important;
    font-family: var(--acc-font-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}

.accessibility-checker-tool #force_refresh_btn:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Remove bottom margin on form */
.accessibility-checker-tool .url-form {
    margin-bottom: 0 !important;
}
/* ============================================
   END - v24.0.0
   ============================================ */

/* ============================================
   MOBILE FIX - Must be AFTER search bar restyle
   to win CSS cascade (both use !important,
   later rule wins). v24.0.0
   ============================================ */
@media (max-width: 768px) {
  .accessibility-checker-tool {
    padding: 12px 14px !important;
  }
  
  .accessibility-checker-tool .url-input {
    height: 44px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  .accessibility-checker-tool #normal_check_btn,
  .accessibility-checker-tool #force_refresh_btn {
    height: 44px !important;
  }
  
  .accessibility-checker-tool form,
  .accessibility-checker-tool #accessibility-form {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .accessibility-checker-tool {
    padding: 8px 10px !important;
  }
  
  .accessibility-checker-tool form,
  .accessibility-checker-tool #accessibility-form {
    padding: 12px !important;
  }
}

/* ============================================
   COPY ISSUE BUTTON (v1.4.0)
   ============================================ */

.acp-copy-issue-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-right: 8px;
  padding: 6px 14px;
  background: rgba(51, 65, 85, 0.5);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--acc-border-radius, 6px);
  font-family: var(--acc-font-body, Arial, sans-serif);
  font-size: var(--acc-text-small, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.acp-copy-issue-btn:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.acp-copy-issue-btn.copied {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border-color: rgba(5, 150, 105, 0.3);
}

.acp-copy-issue-btn svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   ACTION BUTTONS UNIFICATION (v25.1.0)
   Forces consistent sizing/spacing across AI Explain, Show in
   Preview, and Copy Issue buttons. Uses high-specificity selector
   (.accessibility-report .issue-item .btn) to override base rules
   in ai-explain.css (.acp-ai-btn) and legacy rules earlier in
   this file (.show-in-preview-btn, .acp-copy-issue-btn).

   Fixes visual drift reported 2026-04-11:
   - 3 different padding/font-size/border-radius values
   - 3 different margin-top values causing staircase effect
   - No spacing between .fix-suggestion and button row
   - Buttons stack vertically on mobile (no flex wrapper in HTML)

   Approach: No HTML changes required. CSS wraps buttons into a
   horizontal row via display:inline-flex + consistent baseline,
   and the first action button gets a top margin to space it from
   .fix-suggestion while subsequent siblings inherit it via :not().
   ═══════════════════════════════════════════════════════════ */

/* Unified baseline — all 3 action buttons in issue-item */
.accessibility-report .issue-item .acp-ai-btn,
.accessibility-report .issue-item .show-in-preview-btn,
.accessibility-report .issue-item .acp-copy-issue-btn {
  /* Sizing */
  height: 36px;
  padding: 0 14px;
  /* Typography */
  font-family: var(--acc-font-body);
  font-size: var(--acc-text-small, 13px);
  font-weight: 500;
  line-height: 1;
  /* Shape */
  border-radius: var(--acc-border-radius, 6px);
  /* Layout — inline-flex so buttons sit in a row with icon alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Spacing — uniform gap between siblings, top margin for row */
  margin: 10px 8px 0 0;
  /* Behavior */
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

/* Last button in row — remove right margin to prevent layout drift */
.accessibility-report .issue-item .acp-ai-btn:last-child,
.accessibility-report .issue-item .show-in-preview-btn:last-child,
.accessibility-report .issue-item .acp-copy-issue-btn:last-child {
  margin-right: 0;
}

/* Icon sizing — unified to 14px across all 3 buttons */
.accessibility-report .issue-item .acp-ai-btn svg,
.accessibility-report .issue-item .show-in-preview-btn svg,
.accessibility-report .issue-item .acp-copy-issue-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile — ensure buttons remain inline and wrap gracefully.
   The issue-item is already block-level so inline-flex children
   will wrap naturally when they don't fit. We just need to make
   sure the margin doesn't cause overflow. */
@media (max-width: 600px) {
  .accessibility-report .issue-item .acp-ai-btn,
  .accessibility-report .issue-item .show-in-preview-btn,
  .accessibility-report .issue-item .acp-copy-issue-btn {
    /* Slightly smaller on mobile to fit 2-3 per row */
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    margin: 8px 6px 0 0;
  }
  .accessibility-report .issue-item .acp-ai-btn svg,
  .accessibility-report .issue-item .show-in-preview-btn svg,
  .accessibility-report .issue-item .acp-copy-issue-btn svg {
    width: 13px;
    height: 13px;
  }
}

/* ═══════════════════════════════════════════════════════════
   AI SUMMARY BOX — acp-ai-summary-* (v25.0.0)
   Synced from PDF Checker pdf-style.css v2.0.0 (lines 3019-3199).
   Purple accent (#7c3aed) is shared "AI" color across all 3 tools
   (PDF, Doc, Web all use purple regardless of brand color — AI is
   a cross-tool feature with its own visual identity).
   Adapted for Web prefixes:
     pdfac-ai-summary-loading  →  acp-ai-summary-loading-inner
     pdf-report                →  accessibility-report
     (no .pdfac-ai-summary-content equivalent — Web has explicit content div)
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.accessibility-report .acp-ai-summary-wrap {
  margin: 0 0 16px;
}

/* ── Main button — dark card + purple left border ── */
.accessibility-report .acp-ai-summary-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 20px;
  background: var(--acc-card-flat);
  border: var(--acc-card-border);
  border-left: 3px solid #7c3aed;
  border-radius: var(--acc-card-radius);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--acc-font-body);
}
.accessibility-report .acp-ai-summary-btn:hover:not(:disabled) {
  background: rgba(26, 34, 52, 0.98);
  border-left-color: #a78bfa;
  color: #fff;
}
.accessibility-report .acp-ai-summary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.accessibility-report .acp-ai-summary-btn[aria-expanded="true"] {
  border-radius: var(--acc-card-radius) var(--acc-card-radius) 0 0;
  border-left-color: #a78bfa;
  border-bottom-color: transparent;
}

/* ── Icon circle ── */
.accessibility-report .acp-ai-summary-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
  color: #a78bfa;
}

/* ── Labels ── */
.accessibility-report .acp-ai-summary-btn-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.accessibility-report .acp-ai-summary-btn-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.accessibility-report .acp-ai-summary-btn-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* ── CTA pill ── */
.accessibility-report .acp-ai-summary-btn-cta {
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.accessibility-report .acp-ai-summary-btn:hover:not(:disabled) .acp-ai-summary-btn-cta {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
}

/* ── Expandable box — same dark card as AI Explain ── */
.accessibility-report .acp-ai-summary-box {
  background: rgba(26, 34, 52, 0.95);
  border: var(--acc-card-border);
  border-top: none;
  border-left: 3px solid #7c3aed;
  border-radius: 0 0 var(--acc-card-radius) var(--acc-card-radius);
  padding: 18px 20px;
}

/* ── Loading (Web uses -loading-inner suffix; PDF uses -loading) ── */
.accessibility-report .acp-ai-summary-loading-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  padding: 4px 0;
}

/* ── Content wrapper (Web-only; PDF renders directly into box) ── */
.accessibility-report .acp-ai-summary-content {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Header inside box ── */
.accessibility-report .acp-ai-summary-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.accessibility-report .acp-ai-summary-header svg {
  stroke: #a78bfa;
  flex-shrink: 0;
}

/* ── Summary text ── */
.accessibility-report .acp-ai-summary-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.accessibility-report .acp-ai-summary-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 12px;
  margin-bottom: 3px;
}
.accessibility-report .acp-ai-summary-label:first-child {
  margin-top: 0;
}
.accessibility-report .acp-ai-summary-cached {
  margin-left: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Error ── */
.accessibility-report .acp-ai-summary-error {
  font-size: 13px;
  color: rgba(248, 113, 113, 0.85);
  padding: 4px 0;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .accessibility-report .acp-ai-summary-btn {
    padding: 13px 16px;
    gap: 12px;
  }
  .accessibility-report .acp-ai-summary-btn-icon {
    width: 32px;
    height: 32px;
  }
  .accessibility-report .acp-ai-summary-btn-sub,
  .accessibility-report .acp-ai-summary-btn-cta {
    display: none;
  }
}
