:root {
      --cherry-gradient: linear-gradient(59deg, #4a0000 9.25%, #b00000 118.02%);
      --cherry-red: #c70606;
      --cherry-red-dark: #b00000;
      --cherry-burgundy: #4a0000;
      --cherry-ink: #2d141a;

      --bg: #fbfbfb;
      --card: #ffffff;
      --text: #2d141a;
      --muted: #514949;
      --border: #eae7e8;
      --dark: #2d141a;
      --soft: #f2f4f6;
      --accent: #c70606;
      --accent-soft: #f9e6e6;
      --glow: rgba(199, 6, 6, 0.35);

      --error-bg: #f9e6e6;
      --error-text: #950505;
      --warning-bg: #fff4e6;
      --warning-text: #9a3412;
      --notice-bg: #f9e6e6;
      --notice-text: #7d0000;
      --success-bg: #e8f5ee;
      --success-text: #166534;
      --experimental: #9a3412;
      --experimental-bg: #fff4e6;

      --shadow: 0 12px 40px rgba(45, 20, 26, 0.1);
      --radius-lg: 18px;
      --radius-xl: 22px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(199, 6, 6, 0.07), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(74, 0, 0, 0.04), transparent),
        var(--bg);
      color: var(--text);
      padding: 40px;
      line-height: 1.55;
    }

    h1, h2, h3, .header h1 {
      font-family: "Figtree", "Poppins", sans-serif;
      font-weight: 700;
    }

    .container {
      max-width: 1320px;
      margin: 0 auto;
    }

    .header {
      background: var(--cherry-gradient);
      color: white;
      padding: 36px 40px;
      border-radius: var(--radius-xl);
      margin-bottom: 24px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .header::after {
      content: "";
      position: absolute;
      top: -40%;
      right: -8%;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      pointer-events: none;
    }

    .header h1 {
      margin: 0 0 8px;
      font-size: 36px;
      letter-spacing: -0.02em;
      position: relative;
      z-index: 1;
    }

    .header p {
      margin: 0;
      color: rgba(255, 255, 255, 0.88);
      font-size: 16px;
      font-weight: 500;
      position: relative;
      z-index: 1;
      max-width: 52ch;
    }

    .controls,
    .filters,
    .scan-options {
      background: var(--card);
      padding: 20px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      margin-bottom: 16px;
      border: 1px solid var(--border);
    }

    .controls {
      display: grid;
      grid-template-columns: 160px 1fr auto auto auto;
      gap: 12px;
      align-items: center;
      margin-bottom: 12px;
    }

    .scan-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 16px 20px;
    }

    .scan-options-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
    }

    .scan-option-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px 12px;
    }

    .scan-option-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      width: 100%;
    }

    .pa11y-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      user-select: none;
      font-size: 15px;
      font-weight: 600;
      margin: 0;
    }

    .pa11y-toggle input {
      width: 18px;
      height: 18px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .experimental-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--experimental-bg);
      color: var(--experimental);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      position: relative;
    }

    .experimental-badge .tooltip-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(180, 83, 9, 0.15);
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
      cursor: help;
    }

    .experimental-badge .tooltip-text {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      left: 0;
      top: calc(100% + 10px);
      z-index: 20;
      width: min(320px, 80vw);
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--dark);
      color: #f8fafc;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.45;
      text-transform: none;
      letter-spacing: normal;
      box-shadow: 0 16px 40px rgba(45, 20, 26, 0.28);
      transition: opacity 0.2s ease, visibility 0.2s ease;
      pointer-events: none;
    }

    .experimental-badge .tooltip-text::before {
      content: "";
      position: absolute;
      top: -6px;
      left: 18px;
      border: 6px solid transparent;
      border-bottom-color: var(--dark);
    }

    .experimental-badge:hover .tooltip-text,
    .experimental-badge:focus-within .tooltip-text {
      visibility: visible;
      opacity: 1;
    }

    .scan-option-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      position: relative;
    }

    .option-info-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(176, 0, 0, 0.1);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      cursor: help;
      position: relative;
      flex-shrink: 0;
    }

    .option-info-badge .tooltip-text {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      left: 0;
      top: calc(100% + 10px);
      z-index: 20;
      width: min(300px, 80vw);
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--dark);
      color: #f8fafc;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.45;
      box-shadow: 0 16px 40px rgba(45, 20, 26, 0.28);
      transition: opacity 0.2s ease, visibility 0.2s ease;
      pointer-events: none;
    }

    .option-info-badge .tooltip-text::before {
      content: "";
      position: absolute;
      top: -6px;
      left: 10px;
      border: 6px solid transparent;
      border-bottom-color: var(--dark);
    }

    .option-info-badge:hover .tooltip-text,
    .option-info-badge:focus-within .tooltip-text {
      visibility: visible;
      opacity: 1;
    }

    .scan-options-hint {
      color: var(--muted);
      font-size: 13px;
      margin: 0;
    }

    .scan-options-subheading {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
    }

    .option-info-badge .tooltip-text--wide {
      width: min(380px, 88vw);
    }

    .option-info-badge .tooltip-text code,
    .experimental-badge .tooltip-text code {
      display: inline;
      padding: 0.1em 0.4em;
      margin: 0;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.14);
      color: #f1f5f9;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.92em;
      font-weight: 500;
      line-height: inherit;
      white-space: nowrap;
      word-break: normal;
      overflow-x: visible;
    }

    .wcag-level-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
    }

    .wcag-level-options label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      margin: 0;
    }

    .wcag-level-options input {
      width: 18px;
      height: 18px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .filters {
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding: 28px 32px;
    }

    .filters-header {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px 20px;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--border);
    }

    .filters-header h2 {
      margin: 0;
      font-size: 22px;
      letter-spacing: -0.02em;
    }

    .filters-header p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 14px;
      max-width: 42ch;
    }

    .filters-primary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }

    .filter-empty {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 14px;
      background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px 22px;
      min-height: 100%;
    }

    .filter-group--wide {
      gap: 16px;
    }

    .filter-group--wide .filter-group-head {
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .filter-group-head {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .filter-group-title {
      margin: 0;
      font-family: "Figtree", "Poppins", sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--cherry-ink);
      letter-spacing: -0.01em;
    }

    .filter-group-hint {
      margin: 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }

    .filter-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-actions button {
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 999px;
      background: white;
      color: var(--cherry-burgundy);
      box-shadow: none;
      border: 1px solid var(--border);
      filter: none;
    }

    .filter-actions button:hover:not(:disabled) {
      background: var(--accent-soft);
      border-color: #e8bcbc;
      box-shadow: none;
      transform: none;
    }

    .filter-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .filter-option {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0;
      padding: 11px 14px;
      border-radius: 12px;
      background: white;
      border: 1px solid var(--border);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .filter-option:hover {
      border-color: #e8bcbc;
      box-shadow: 0 2px 8px rgba(45, 20, 26, 0.05);
    }

    .filter-option input {
      width: 18px;
      height: 18px;
      margin: 0;
      flex-shrink: 0;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .filter-option span {
      line-height: 1.35;
    }

    .rule-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 10px;
      max-height: 360px;
      overflow: auto;
      padding: 4px;
    }

    .rule-list .filter-option {
      height: 100%;
    }

    input,
    select,
    button {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 14px;
      font-size: 15px;
      font-family: inherit;
    }

    input:focus,
    select:focus {
      outline: none;
      border-color: var(--cherry-red);
      box-shadow: 0 0 0 3px rgba(199, 6, 6, 0.15);
    }

    button {
      background: var(--cherry-gradient);
      color: white;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
      box-shadow: 0 6px 20px rgba(74, 0, 0, 0.25);
      border: none;
    }

    button:hover:not(:disabled) {
      transform: translateY(-1px);
      filter: brightness(1.05);
      box-shadow: 0 10px 28px rgba(74, 0, 0, 0.3);
    }

    button:active:not(:disabled) {
      transform: translateY(0);
      filter: brightness(0.98);
    }

    #scanButton {
      min-width: 130px;
    }

    button.secondary {
      background: white;
      color: var(--cherry-burgundy);
      box-shadow: none;
      border: 1px solid var(--border);
      filter: none;
    }

    button.secondary:hover:not(:disabled) {
      background: var(--accent-soft);
      border-color: #e8bcbc;
      box-shadow: none;
    }

    button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .status {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 20px 0;
      padding: 14px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--card);
      box-shadow: 0 4px 18px rgba(45, 20, 26, 0.06);
      font-size: 15px;
      font-weight: 500;
      line-height: 1.4;
      transition:
        background 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease,
        box-shadow 0.28s ease;
      animation: status-enter 0.3s ease;
    }

    @keyframes status-enter {
      from {
        opacity: 0;
        transform: translateY(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .status-icon {
      flex-shrink: 0;
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-family: "Figtree", sans-serif;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
    }

    .status-label {
      flex: 1;
      min-width: 0;
    }

    .status--ready {
      background: linear-gradient(135deg, #f8f9fb 0%, #f2f4f6 100%);
      border-color: #e2e8f0;
      color: var(--muted);
    }

    .status--ready .status-icon {
      background: #e2e8f0;
      color: #64748b;
      font-size: 10px;
    }

    .status--scanning {
      background: linear-gradient(135deg, #fff8f8 0%, var(--accent-soft) 100%);
      border-color: #e8bcbc;
      color: var(--cherry-burgundy);
      box-shadow: 0 4px 20px rgba(199, 6, 6, 0.08);
    }

    .status--scanning .status-icon {
      background: transparent;
      color: transparent;
      border: 3px solid rgba(199, 6, 6, 0.22);
      border-top-color: var(--accent);
      box-shadow: none;
      animation: status-spin 0.75s linear infinite;
    }

    @keyframes status-spin {
      to {
        transform: rotate(360deg);
      }
    }

    .status--complete {
      background: linear-gradient(135deg, #f0fdf4 0%, var(--success-bg) 100%);
      border-color: #bbf7d0;
      color: var(--success-text);
      box-shadow: 0 4px 18px rgba(22, 101, 52, 0.08);
    }

    .status--complete .status-icon {
      background: var(--success-text);
      color: white;
      font-size: 15px;
    }

    .status--validation,
    .status--cancelled {
      background: linear-gradient(135deg, #fffbeb 0%, var(--warning-bg) 100%);
      border-color: #fed7aa;
      color: var(--warning-text);
    }

    .status--validation .status-icon,
    .status--cancelled .status-icon {
      background: var(--warning-text);
      color: white;
      font-size: 16px;
    }

    .status--error {
      background: linear-gradient(135deg, #fff5f5 0%, var(--error-bg) 100%);
      border-color: #f5c2c2;
      color: var(--error-text);
      box-shadow: 0 4px 18px rgba(149, 5, 5, 0.08);
    }

    .status--error .status-icon {
      background: var(--error-text);
      color: white;
      font-size: 16px;
    }

    .status--cancelling {
      background: var(--soft);
      border-color: var(--border);
      color: var(--muted);
    }

    .status--cancelling .status-icon {
      background: transparent;
      color: transparent;
      border: 3px solid #cbd5e1;
      border-top-color: #64748b;
      animation: status-spin 0.75s linear infinite;
    }

    @media (prefers-reduced-motion: reduce) {
      .status,
      .status--scanning .status-icon,
      .status--cancelling .status-icon {
        animation: none;
      }

      .status--scanning .status-icon,
      .status--cancelling .status-icon {
        border-top-color: var(--accent);
      }
    }

    .scan-progress {
      display: none;
      background: var(--card);
      border-radius: 20px;
      padding: 24px 26px 22px;
      box-shadow: var(--shadow);
      margin-bottom: 20px;
      border: 1px solid var(--border);
      overflow: hidden;
      position: relative;
    }

    .scan-progress::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 3px;
      background: linear-gradient(90deg, #4a0000, #c70606, #b00000, #4a0000);
      background-size: 200% 100%;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .scan-progress.is-scanning::before {
      opacity: 1;
      animation: shimmer-bar 2s linear infinite;
    }

    @keyframes shimmer-bar {
      0% { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }

    .scan-progress.is-visible {
      display: block;
      animation: progress-enter 0.35s ease;
    }

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

    .scan-progress-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
    }

    .scan-progress-header {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
      flex: 1;
    }

    .loader-orb {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      perspective: 220px;
    }

    .scan-loader-cube {
      --cube-size: 26px;
      --cube-depth: calc(var(--cube-size) / 2);
      position: relative;
      width: var(--cube-size);
      height: var(--cube-size);
      transform-style: preserve-3d;
      animation: scan-cube-spin 2.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    }

    .scan-loader-cube span {
      position: absolute;
      inset: 0;
      border-radius: 5px;
      backface-visibility: hidden;
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .scan-loader-cube .cube-face--front {
      transform: translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #ff5c5c, var(--cherry-red));
    }

    .scan-loader-cube .cube-face--back {
      transform: rotateY(180deg) translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #6b0000, var(--cherry-burgundy));
    }

    .scan-loader-cube .cube-face--right {
      transform: rotateY(90deg) translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #e02020, #9a0000);
    }

    .scan-loader-cube .cube-face--left {
      transform: rotateY(-90deg) translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #c70606, #5c0000);
    }

    .scan-loader-cube .cube-face--top {
      transform: rotateX(90deg) translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #ff8a8a, #e83535);
    }

    .scan-loader-cube .cube-face--bottom {
      transform: rotateX(-90deg) translateZ(var(--cube-depth));
      background: linear-gradient(145deg, #4a0000, #2d141a);
    }

    @keyframes scan-cube-spin {
      0% {
        transform: rotateX(-24deg) rotateY(0deg);
      }
      100% {
        transform: rotateX(-24deg) rotateY(360deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .scan-loader-cube {
        animation: none;
        transform: rotateX(-24deg) rotateY(45deg);
      }
    }

    .scan-progress.is-complete .loader-orb,
    .scan-progress.is-cancelled .loader-orb {
      display: none;
    }

    .loader-status-icon {
      display: none;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: 900;
      flex-shrink: 0;
    }

    .scan-progress.is-complete .loader-status-icon {
      display: flex;
      background: var(--success-bg);
      color: var(--success-text);
    }

    .scan-progress.is-cancelled .loader-status-icon {
      display: flex;
      background: var(--warning-bg);
      color: var(--warning-text);
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .loader-steps {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 18px;
    }

    .loader-step {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      background: #fff;
      border: 1px solid var(--border);
      transition: all 0.25s ease;
    }

    .loader-step-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #d4cccc;
      flex-shrink: 0;
    }

    .loader-step.is-active {
      color: var(--accent);
      background: var(--accent-soft);
      border-color: #e8a0a0;
      box-shadow: 0 0 0 3px rgba(199, 6, 6, 0.12);
    }

    .loader-step.is-active .loader-step-dot {
      background: var(--accent);
      animation: pulse-dot 1s ease-in-out infinite;
    }

    .loader-step.is-done {
      color: var(--success-text);
      background: var(--success-bg);
      border-color: #a7f3d0;
    }

    .loader-step.is-done .loader-step-dot {
      background: var(--success-text);
    }

    .loader-step.is-hidden {
      display: none;
    }

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

    .scan-progress-message {
      margin: 0;
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      word-break: break-word;
    }

    button.cancel {
      background: #fef2f2;
      color: #b91c1c;
      border-color: #fecaca;
      padding: 10px 14px;
      font-size: 14px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    button.cancel:hover:not(:disabled) {
      background: #fee2e2;
    }

    .progress-visual {
      position: relative;
    }

    .progress-track {
      height: 36px;
      background: #f2f4f6;
      border: 1px solid var(--border);
      border-radius: 999px;
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 1px 3px rgba(45, 20, 26, 0.06);
    }

    .progress-fill {
      position: absolute;
      inset: 0 auto 0 0;
      height: 100%;
      width: 0%;
      background: linear-gradient(59deg, #c70606 9.25%, #e83838 118.02%);
      border-radius: 999px;
      transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
      min-width: 0;
      z-index: 0;
    }

    .scan-progress.is-complete .progress-fill {
      background: linear-gradient(90deg, #047857, #10b981);
    }

    .scan-progress.is-cancelled .progress-fill {
      background: linear-gradient(90deg, #b45309, #f59e0b);
    }

    .progress-label {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 22px;
      max-width: calc(100% - 24px);
      padding: 0 9px;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.03em;
      color: var(--text);
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.85);
      border-radius: 999px;
      box-shadow: 0 1px 4px rgba(45, 20, 26, 0.1);
      pointer-events: none;
      z-index: 1;
      white-space: nowrap;
      box-sizing: border-box;
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-top: 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }

    .progress-meta #progressPercent {
      color: var(--cherry-red);
      font-weight: 800;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
    }

    .scan-summary {
      background: var(--soft);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px 18px;
      margin-bottom: 24px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--text);
    }

    .scan-summary em {
      color: var(--muted);
      font-style: normal;
    }

    .stat {
      background: white;
      border-radius: 16px;
      padding: 20px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .stat strong {
      display: block;
      font-size: 30px;
      margin-bottom: 4px;
      color: var(--cherry-red);
    }

    .stat span {
      color: var(--muted);
      font-size: 14px;
    }

    .stat.stat--hidden strong.stat-hidden {
      color: var(--muted);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .page {
      background: white;
      border-radius: var(--radius-lg);
      overflow: hidden;
      margin-top: 18px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .page-header {
      padding: 22px 24px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      cursor: pointer;
      border-bottom: 1px solid transparent;
    }

    .page-header:hover {
      background: var(--soft);
    }

    .page.is-open .page-header {
      border-bottom-color: var(--border);
    }

    .page h2 {
      margin: 0;
      font-size: 17px;
      word-break: break-all;
    }

    .page-summary {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0;
    }

    .summary-tags {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .summary-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .summary-tag-value {
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
    }

    .summary-tag-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      opacity: 0.9;
    }

    .summary-tag-visible {
      background: var(--soft);
      color: var(--text);
      border-color: var(--border);
    }

    .summary-tag-visible .summary-tag-value {
      color: var(--cherry-red);
    }

    .summary-tag-axe {
      background: var(--accent-soft);
      color: var(--cherry-burgundy);
      border-color: #e8bcbc;
    }

    .summary-tag-pa11y {
      background: #fff4e6;
      color: #9a3412;
      border-color: #fcd9b0;
    }

    .toggle-icon {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--cherry-burgundy);
      font-weight: 900;
      font-size: 20px;
    }

    .page-content {
      display: none;
      padding: 20px 24px 24px;
    }

    .page.is-open .page-content {
      display: block;
    }

    .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 18px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 12px;
    }

    .tab {
      border: 1px solid var(--border);
      background: white;
      color: var(--text);
      border-radius: 999px;
      padding: 9px 14px;
      font-size: 14px;
      font-weight: 800;
    }

    .tab.is-active {
      background: var(--cherry-gradient);
      color: white;
      border-color: transparent;
      box-shadow: 0 4px 14px rgba(74, 0, 0, 0.2);
    }

    .issue {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px;
      margin-top: 14px;
      background: #fafafa;
    }

    .issue-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .issue h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .issue p {
      margin: 8px 0;
    }

    .badge {
      display: inline-flex;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .badge.error {
      background: var(--error-bg);
      color: var(--error-text);
    }

    .badge.warning {
      background: var(--warning-bg);
      color: var(--warning-text);
    }

    .badge.notice {
      background: var(--notice-bg);
      color: var(--notice-text);
    }

    .badge.axe {
      background: var(--accent-soft);
      color: var(--cherry-burgundy);
    }

    .badge.pa11y {
      background: #fff4e6;
      color: #9a3412;
    }

    .badge.tier {
      background: #f3e8ff;
      color: #6b21a8;
    }

    .meta {
      color: var(--muted);
      font-size: 13px;
    }

    .raw-rule {
      display: inline-block;
      margin-top: 4px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      color: var(--muted);
      word-break: break-all;
    }

    .issue code {
      display: block;
      background: var(--cherry-ink);
      color: #f2f4f6;
      padding: 12px;
      border-radius: 10px;
      overflow-x: auto;
      margin-top: 10px;
      font-size: 13px;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .empty {
      color: var(--success-text);
      background: var(--success-bg);
      padding: 12px;
      border-radius: 12px;
      margin: 0;
      font-weight: 700;
    }

    .failed {
      color: var(--error-text);
      background: var(--error-bg);
      padding: 12px;
      border-radius: 12px;
      margin: 0;
      font-weight: 700;
    }

    .aaa-tab-hint {
      margin: 0 0 14px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid #d8b4fe;
      background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
      color: #5b21b6;
      font-size: 14px;
      line-height: 1.5;
    }

    .link-button {
      display: inline;
      padding: 0;
      border: 0;
      background: none;
      color: var(--cherry-red);
      font: inherit;
      font-weight: 700;
      text-decoration: underline;
      cursor: pointer;
      box-shadow: none;
      filter: none;
      transform: none;
    }

    .link-button:hover {
      color: var(--cherry-burgundy);
      background: none;
      box-shadow: none;
    }

    .snapshot-block {
      margin-top: 14px;
    }

    .snapshot-block img {
      display: block;
      width: 100%;
      max-height: 420px;
      object-fit: contain;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
    }

    .snapshot-block figcaption {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .page-snapshot {
      margin-bottom: 18px;
    }

    .page-snapshot img {
      max-height: 320px;
    }

    .scan-queue {
      margin-top: 8px;
    }

    .scan-queue-title {
      margin: 0 0 6px;
      font-size: 20px;
      color: var(--text);
    }

    .scan-queue-hint {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 14px;
    }

    .page-label {
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-size: 11px;
      font-weight: 700;
      color: var(--cherry-red);
      margin: 0 0 6px;
    }

    .page-placeholder {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px 24px;
      margin-bottom: 14px;
      box-shadow: var(--shadow);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .page-placeholder--scanning {
      border-color: #e8a0a0;
      box-shadow: 0 0 0 3px rgba(199, 6, 6, 0.1);
    }

    .page-placeholder--complete {
      border-color: #a7f3d0;
      background: linear-gradient(180deg, #ffffff, #f8fffb);
    }

    .page-placeholder--failed {
      border-color: #fecaca;
      background: #fffbfb;
    }

    .page-placeholder-url {
      margin: 0;
      font-size: 16px;
      word-break: break-all;
      font-weight: 700;
    }

    .page-placeholder-status {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .page-placeholder--scanning .page-placeholder-status {
      color: var(--cherry-red);
    }

    .placeholder-shimmer {
      margin-top: 14px;
      height: 10px;
      border-radius: 999px;
      background: linear-gradient(90deg, #eae7e8 0%, #f9e6e6 50%, #eae7e8 100%);
      background-size: 200% 100%;
      animation: placeholder-shimmer 1.2s ease-in-out infinite;
    }

    .placeholder-shimmer + .placeholder-shimmer {
      width: 72%;
      margin-top: 8px;
    }

    @keyframes placeholder-shimmer {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }

    .page-placeholder-badge {
      flex-shrink: 0;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      background: var(--soft);
      color: var(--muted);
    }

    .page-placeholder--scanning .page-placeholder-badge {
      background: var(--accent-soft);
      color: var(--cherry-red);
    }

    .page-placeholder--complete .page-placeholder-badge {
      background: #e8f5ee;
      color: #166534;
    }

    .page-placeholder--failed .page-placeholder-badge {
      background: #f9e6e6;
      color: #950505;
    }

    @media (max-width: 1000px) {
      body {
        padding: 20px;
      }

      .controls,
      .stats {
        grid-template-columns: 1fr;
      }

      .filters {
        padding: 20px;
      }

      .filters-primary {
        grid-template-columns: 1fr;
      }

      .rule-list {
        grid-template-columns: 1fr;
      }

      .scan-options {
        flex-direction: column;
        align-items: flex-start;
      }

      .page-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .page-summary {
        width: 100%;
        flex-wrap: wrap;
      }

      .summary-tags {
        width: 100%;
      }
    }
