/* Skip to main content link - WCAG 2.4.1 */
    .a11y-skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: #feca2c;
      color: #000;
      padding: 8px 16px;
      text-decoration: none;
      font-weight: bold;
      z-index: 100000;
      border-radius: 0 0 4px 0;
      transition: top 0.2s;
      font-family: Arial, sans-serif;
    }
    .a11y-skip-link:focus {
      top: 0;
      outline: 3px solid #000;
    }

    /* Focus visible styles - WCAG 2.4.7 */
    *:focus-visible {
      outline: 3px solid #feca2c !important;
      outline-offset: 2px !important;
    }

    /* Screen reader only class - WCAG best practice */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* Professional Accessibility Toolbar Container
       Z-index hierarchy:
       - Accessibility statement modal: 1000004 (highest)
       - Accessibility toggle: 1000003
       - Accessibility toolbar: 1000002
       - Cookie banner: 999999
       - Reading guide/mask: 99997-99998
    */
    #a11y-toolbar {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%) translateX(100%); /* Completely hidden by default */
      background: #ffffff;
      border: 2px solid #feca2c;
      border-right: none;
      border-radius: 12px 0 0 12px;
      box-shadow: -4px 0 20px rgba(0,0,0,0.15);
      z-index: 1000002; /* Above cookie banner */
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
      font-family: Arial, Helvetica, sans-serif;
      width: 360px;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      opacity: 0;
      pointer-events: none;
    }

    #a11y-toolbar.expanded {
      transform: translateY(-50%) translateX(0); /* Visible - slides in from right */
      opacity: 1;
      pointer-events: all;
    }

    #a11y-toolbar.dragging {
      transition: none;
    }

    /* Collapsed toolbar must stay off-canvas (site CSS / iframe transforms can override defaults) */
    #a11y-toolbar:not(.expanded) {
      transform: translateY(-50%) translateX(100%) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Floating Toggle Button - Independent of toolbar */
    /* Positioned at bottom right for maximum visibility */
    #a11y-toggle {
      position: fixed !important;
      right: 20px !important;
      bottom: 20px !important;
      transform: translateY(0) !important;
      background: linear-gradient(135deg, #feca2c 0%, #e5b622 100%) !important;
      color: #000 !important;
      border: 3px solid #000 !important;
      border-radius: 50% !important;
      width: 60px !important;
      height: 60px !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 30px !important;
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
      z-index: 1000003 !important; /* Must stay above cookie banner */
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: all !important;
    }

    /* Hide toggle button when toolbar is expanded */
    #a11y-toggle.hidden {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.3);
    }

    #a11y-toggle:hover {
      background: linear-gradient(135deg, #e5b622 0%, #d4a520 100%);
      transform: scale(1.15);
      box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    }

    #a11y-toggle.hidden:hover {
      transform: scale(0.3);
    }

    #a11y-toggle:focus {
      outline: 3px solid #4169E1;
      outline-offset: 3px;
    }

    #a11y-toggle:active {
      transform: scale(1.05);
    }

    /* Pulse animation for floating button */
    #a11y-toggle::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: #feca2c;
      animation: a11y-pulse 2s infinite;
      z-index: -1;
      opacity: 0;
    }

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

    /* Toolbar Header */
    #a11y-toolbar-header {
      background: linear-gradient(135deg, #feca2c 0%, #e5b622 100%);
      color: #000;
      padding: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 12px 0 0 0;
      cursor: move;
      user-select: none;
    }

    #a11y-toolbar-title {
      font-size: 18px;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #a11y-close-btn {
      background: transparent;
      border: none;
      color: #000;
      font-size: 24px;
      cursor: pointer;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: all 0.2s;
    }

    #a11y-close-btn:hover {
      background: rgba(0,0,0,0.1);
    }

    /* Toolbar Content */
    #a11y-toolbar-content {
      padding: 20px;
      overflow-y: auto;
      flex: 1;
      max-height: calc(90vh - 70px);
    }

    /* Control Groups */
    .a11y-control-group {
      margin-bottom: 24px;
    }

    .a11y-control-group-title {
      font-size: 14px;
      font-weight: bold;
      color: #333;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid #feca2c;
    }

    .a11y-control-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    /* Control Buttons */
    .a11y-control-btn {
      background: #f5f5f5;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      padding: 12px;
      cursor: pointer;
      font-size: 13px;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      text-align: center;
      min-height: 70px;
      justify-content: center;
    }

    .a11y-control-btn:hover {
      background: #feca2c;
      border-color: #feca2c;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .a11y-control-btn:focus {
      outline: 3px solid #000;
      outline-offset: 2px;
    }

    .a11y-control-btn.active {
      background: #feca2c;
      border-color: #e5b622;
      font-weight: bold;
    }

    .a11y-control-icon {
      font-size: 24px;
      line-height: 1;
    }

    .a11y-control-label {
      font-size: 11px;
      line-height: 1.3;
    }

    /* Reset Button */
    .a11y-reset-btn {
      width: 100%;
      background: #dc2626;
      color: white;
      border: none;
      border-radius: 8px;
      padding: 12px;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 10px;
    }

    .a11y-reset-btn:hover {
      background: #b91c1c;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    /* Accessibility Modes */
    
    /* High Contrast Mode - WCAG 1.4.3 */
    body.a11y-high-contrast {
      background: #000 !important;
      color: #fff !important;
    }
    body.a11y-high-contrast * {
      background-color: #000 !important;
      color: #fff !important;
      border-color: #fff !important;
    }
    body.a11y-high-contrast a {
      color: #feca2c !important;
      text-decoration: underline !important;
    }
    body.a11y-high-contrast button {
      background-color: #feca2c !important;
      color: #000 !important;
      border: 2px solid #fff !important;
    }

    /* Negative Contrast */
    /* Apply filter to html instead of body to avoid affecting fixed positioned elements */
    html.a11y-negative-contrast {
      filter: invert(1) hue-rotate(180deg);
    }
    html.a11y-negative-contrast img,
    html.a11y-negative-contrast video {
      filter: invert(1) hue-rotate(180deg);
    }
    
    /* Reset filter on accessibility elements to prevent positioning issues */
    html.a11y-negative-contrast #a11y-toolbar,
    html.a11y-negative-contrast #a11y-toggle,
    html.a11y-negative-contrast #a11y-statement-modal,
    html.a11y-negative-contrast #a11y-statement-modal * {
      filter: none !important;
    }

    /* Grayscale - WCAG for color blindness */
    /* Apply filter to html instead of body to avoid affecting fixed positioned elements */
    html.a11y-grayscale {
      filter: grayscale(100%);
    }
    
    /* Reset filter on accessibility elements to prevent positioning issues */
    html.a11y-grayscale #a11y-toolbar,
    html.a11y-grayscale #a11y-toggle,
    html.a11y-grayscale #a11y-statement-modal,
    html.a11y-grayscale #a11y-statement-modal * {
      filter: none !important;
    }

    /* Readable Font */
    body.a11y-readable-font,
    body.a11y-readable-font * {
      font-family: Arial, Helvetica, sans-serif !important;
    }

    /* Link Highlighting - WCAG 1.4.1 */
    body.a11y-highlight-links a {
      background-color: #feca2c !important;
      color: #000 !important;
      padding: 2px 6px !important;
      border-radius: 3px !important;
      font-weight: bold !important;
      text-decoration: underline !important;
      box-shadow: 0 0 0 2px #000 !important;
    }

    /* Title Highlighting */
    body.a11y-highlight-titles h1,
    body.a11y-highlight-titles h2,
    body.a11y-highlight-titles h3,
    body.a11y-highlight-titles h4,
    body.a11y-highlight-titles h5,
    body.a11y-highlight-titles h6 {
      background-color: #feca2c !important;
      color: #000 !important;
      padding: 4px 8px !important;
      border-left: 4px solid #000 !important;
    }

    /* Reading Guide - WCAG visual aid */
    #a11y-reading-guide {
      position: fixed;
      left: 0;
      right: 0;
      height: 3px;
      background: #feca2c;
      pointer-events: none;
      z-index: 99998;
      display: none;
      box-shadow: 0 0 0 2px #000, 0 50px 0 100vh rgba(0,0,0,0.5), 0 -50px 0 100vh rgba(0,0,0,0.5);
    }

    body.a11y-reading-guide #a11y-reading-guide {
      display: block;
    }

    /* Reading Mask */
    #a11y-reading-mask {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      z-index: 99997;
      display: none;
    }

    body.a11y-reading-mask #a11y-reading-mask {
      display: block;
      background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0,0,0,0.8) 100%);
    }

    /* Big Cursor */
    body.a11y-big-cursor,
    body.a11y-big-cursor * {
      cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><path d="M6 6 L6 56 L22 40 L30 56 L38 52 L30 36 L48 36 Z" fill="black" stroke="white" stroke-width="4"/></svg>') 0 0, auto !important;
    }

    /* Stop Animations - WCAG 2.2.2 */
    body.a11y-stop-animations * {
      animation-duration: 0s !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0s !important;
    }

    /* Keyboard Navigation Mode */
    body.a11y-keyboard-nav *:focus {
      outline: 4px solid #feca2c !important;
      outline-offset: 4px !important;
      box-shadow: 0 0 0 6px rgba(254, 202, 44, 0.3) !important;
    }

    /* Text Spacing - WCAG 1.4.12 */
    body.a11y-text-spacing * {
      line-height: 1.8 !important;
      letter-spacing: 0.12em !important;
      word-spacing: 0.16em !important;
    }

    /* Font Size Indicator */
    #a11y-font-size-indicator {
      display: none;
      position: fixed;
      bottom: 20px;
      right: 80px;
      background: rgba(0,0,0,0.8);
      color: #feca2c;
      padding: 10px 15px;
      border-radius: 8px;
      font-weight: bold;
      z-index: 99999;
      font-size: 16px;
    }
    
    /* Accessibility Statement Modal - Highest z-index for proper layering */
    #a11y-statement-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      z-index: 1000004; /* Above toggle/toolbar/cookie banner */
      align-items: center;
      justify-content: center;
      padding: 20px;
      overflow-y: auto;
    }
    
    #a11y-statement-modal.show {
      display: flex;
    }
    
    #a11y-statement-content {
      background: white;
      border-radius: 12px;
      max-width: 800px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
      position: relative;
      margin: auto;
    }
    
    #a11y-statement-header {
      background: linear-gradient(135deg, #4169E1 0%, #3451b2 100%);
      color: white;
      padding: 24px;
      border-radius: 12px 12px 0 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 10;
    }
    
    #a11y-statement-header h2 {
      margin: 0;
      font-size: 24px;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    #a11y-statement-close {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    
    #a11y-statement-close:hover {
      background: rgba(255,255,255,0.3);
      transform: scale(1.1);
    }
    
    #a11y-statement-body {
      padding: 32px;
      line-height: 1.8;
      color: #333;
    }
    
    #a11y-statement-body h3 {
      color: #4169E1;
      font-size: 20px;
      margin-top: 24px;
      margin-bottom: 12px;
      font-weight: 600;
    }
    
    #a11y-statement-body h3:first-child {
      margin-top: 0;
    }
    
    #a11y-statement-body p {
      margin-bottom: 16px;
      font-size: 15px;
      color: #444;
    }
    
    #a11y-statement-body ul {
      margin: 16px 0;
      padding-left: 24px;
    }
    
    #a11y-statement-body li {
      margin-bottom: 8px;
      font-size: 15px;
      color: #444;
    }
    
    #a11y-statement-body a {
      color: #4169E1;
      text-decoration: none;
      font-weight: 600;
    }
    
    #a11y-statement-body a:hover {
      text-decoration: underline;
    }
    
    #a11y-statement-body .highlight-note {
      background: #f0f7ff;
      border-left: 4px solid #4169E1;
      padding: 16px;
      margin: 20px 0;
      border-radius: 4px;
    }
    
    #a11y-statement-body .highlight-note p {
      margin: 0;
    }

    /* RTL Support for Hebrew */
    [data-a11y-language="he"] #a11y-toolbar {
      right: auto;
      left: 0;
      border-left: none;
      border-right: 2px solid #feca2c;
      border-radius: 0 12px 12px 0;
      transform: translateY(-50%) translateX(-100%);
    }
    
    [data-a11y-language="he"] #a11y-toolbar.expanded {
      transform: translateY(-50%) translateX(0);
    }

    [data-a11y-language="he"] #a11y-toolbar:not(.expanded) {
      transform: translateY(-50%) translateX(-100%) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    
    [data-a11y-language="he"] #a11y-toggle {
      right: auto !important;
      left: 20px !important;
    }
    
    [data-a11y-language="he"] #a11y-toolbar-header {
      border-radius: 0 12px 0 0;
    }
    
    [data-a11y-language="he"] #a11y-font-size-indicator {
      right: auto;
      left: 80px;
    }
    
    [data-a11y-language="he"] .a11y-skip-link {
      left: auto;
      right: 0;
      border-radius: 0 0 0 4px;
    }
    
    /* Owner-selected accessibility button position (overrides corner + RTL defaults) */
    #a11y-toggle { top: auto !important; bottom: 20px !important; left: auto !important; right: 20px !important; }
    [data-a11y-language="he"] #a11y-toggle { top: auto !important; bottom: 20px !important; left: auto !important; right: 20px !important; }
  

    /* Responsive Design */
    @media (max-width: 480px) {
      #a11y-toolbar {
        width: 100%;
        border-radius: 0;
      }
      #a11y-toolbar:not(.expanded) {
        transform: translateY(-50%) translateX(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
      }
      [data-a11y-language="he"] #a11y-toolbar:not(.expanded) {
        transform: translateY(-50%) translateX(-100%) !important;
      }
      #a11y-toolbar.expanded {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
      }
      #a11y-toggle {
        width: 50px;
        height: 50px;
        right: 10px !important;
        bottom: 20px; /* Adjusted for better visibility */
        font-size: 24px;
      }
      [data-a11y-language="he"] #a11y-toggle {
        right: auto !important;
        left: 10px !important;
      }
      #a11y-toggle.hidden {
        transform: scale(0.3);
      }
      #a11y-toggle:hover {
        transform: scale(1.1);
      }
      #a11y-statement-modal {
        padding: 0;
      }
      #a11y-statement-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
      }
      #a11y-statement-header {
        border-radius: 0;
      }
      #a11y-statement-body {
        padding: 20px;
      }
      #a11y-statement-header h2 {
        font-size: 18px;
      }
    }
  
    /* ── Accessibility assist (webydo-a11y-assist:v2) ── */
    .a11y-assist-group .a11y-control-btn[aria-pressed="true"] { background: #feca2c; border-color: #e5b622; font-weight: bold; }
    .a11y-assist-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; font: 13px Arial, sans-serif; }
    .a11y-assist-row select, .a11y-assist-row input[type="range"] { flex: 1 1 140px; min-height: 36px; font: 14px Arial, sans-serif; }
    .a11y-assist-row label { min-width: 96px; font-size: 12px; color: #333; }
    .a11y-assist-slider { display: grid; grid-template-columns: 100px 1fr 34px; gap: 8px; align-items: center; margin: 6px 0; font: 12px Arial, sans-serif; color: #333; }
    .a11y-assist-slider output { text-align: center; font-weight: bold; }
    .a11y-assist-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
    .a11y-assist-pills button { border: 2px solid #cfcfcf; background: #fff; border-radius: 999px; padding: 6px 12px; font: 12px Arial, sans-serif; cursor: pointer; color: #111; }
    .a11y-assist-pills button[aria-pressed="true"] { background: #feca2c; border-color: #e5b622; font-weight: bold; }
    .a11y-assist-pills button:focus { outline: 3px solid #000; outline-offset: 1px; }
    .a11y-assist-hue { width: 100%; height: 28px; -webkit-appearance: none; appearance: none; border-radius: 6px; background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000); border: 0; }
    .a11y-assist-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #111; cursor: pointer; }
    .a11y-assist-link-btn { background: none; border: 0; color: #1a56db; text-decoration: underline; cursor: pointer; font: 13px Arial, sans-serif; padding: 4px 0; }
    .a11y-tts-current { outline: 3px solid #feca2c !important; outline-offset: 3px !important; }
    html.a11y-tts-click-mode body { cursor: help; }
    #a11y-assist-toast, #a11y-voice-status { position: fixed; left: 50%; transform: translateX(-50%); z-index: 100003; background: #111; color: #fff; padding: 10px 16px; border-radius: 999px; font: 14px/1.3 Arial, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: min(92vw, 560px); text-align: center; }
    #a11y-assist-toast { bottom: 92px; }
    #a11y-voice-status { top: 12px; background: #b91c1c; }
    #a11y-voice-status::before { content: '●'; margin-inline-end: 8px; animation: a11yVoicePulse 1s infinite; }
    @keyframes a11yVoicePulse { 50% { opacity: .3; } }
    #a11y-alt-tip { position: fixed; z-index: 100003; background: #111; color: #fff; padding: 8px 12px; border-radius: 6px; font: 14px/1.35 Arial, sans-serif; max-width: 320px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
    html.a11y-alttext-mode img:hover, html.a11y-alttext-mode img:focus { outline: 3px solid #feca2c !important; outline-offset: 2px !important; }
    #a11y-vkeyboard { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100002; background: #f4f4f4; border-top: 3px solid #feca2c; padding: 10px 8px 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.2); font-family: Arial, sans-serif; direction: ltr; }
    #a11y-vkeyboard .a11y-vk-row { display: flex; justify-content: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
    #a11y-vkeyboard button { min-width: 44px; min-height: 44px; padding: 0 10px; border: 2px solid #cfcfcf; border-radius: 8px; background: #fff; color: #111; font-size: 20px; cursor: pointer; }
    #a11y-vkeyboard button:hover, #a11y-vkeyboard button:focus { background: #feca2c; border-color: #e5b622; outline: 3px solid #000; outline-offset: 1px; }
    #a11y-vkeyboard button.a11y-vk-wide { min-width: 96px; font-size: 15px; }
    #a11y-vkeyboard button.a11y-vk-on { background: #feca2c; }
    .a11y-assist-modal { position: fixed; inset: 0; z-index: 100004; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
    .a11y-assist-modal .a11y-assist-card { background: #fff; color: #111; width: min(600px, 94vw); max-height: 84vh; overflow: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); font: 15px/1.45 Arial, sans-serif; padding: 18px 20px 22px; }
    .a11y-assist-card h2 { font-size: 20px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .a11y-assist-card h3 { font-size: 15px; margin: 16px 0 6px; border-bottom: 2px solid #feca2c; padding-bottom: 4px; }
    .a11y-assist-card ul { margin: 0; padding: 0; list-style: none; }
    .a11y-assist-card li { margin: 6px 0; }
    .a11y-assist-card .a11y-assist-close { background: #111; color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; }
    .a11y-assist-card .a11y-assist-primary { background: #feca2c; color: #111; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; font: bold 14px Arial, sans-serif; }
    .a11y-assist-card input, .a11y-assist-card textarea, .a11y-assist-card select { width: 100%; box-sizing: border-box; border: 2px solid #cfcfcf; border-radius: 8px; padding: 10px; font: 14px Arial, sans-serif; margin: 4px 0 10px; }
    .a11y-assist-card input:focus, .a11y-assist-card textarea:focus, .a11y-assist-card select:focus, .a11y-assist-card button:focus { outline: 3px solid #000; outline-offset: 1px; }
    .a11y-assist-card .a11y-assist-empty { color: #666; font-style: italic; }
    .a11y-pm-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
    .a11y-pm-tabs button { flex: 1; border: 2px solid #cfcfcf; background: #f7f7f7; border-radius: 8px; padding: 8px; cursor: pointer; font: 14px Arial, sans-serif; }
    .a11y-pm-tabs button[aria-selected="true"] { background: #feca2c; border-color: #e5b622; font-weight: bold; }
    .a11y-pm-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: #fafafa; border: 1px solid #e3e3e3; border-radius: 6px; padding: 8px 10px; margin: 4px 0; cursor: pointer; font: inherit; color: #111; }
    .a11y-pm-item:hover, .a11y-pm-item:focus { background: #feca2c; outline: 3px solid #000; outline-offset: 1px; }
    .a11y-pm-badge { background: #1a56db; color: #fff; border-radius: 6px; padding: 2px 6px; font: bold 12px Arial, sans-serif; min-width: 28px; text-align: center; }
    #a11y-pagemap.a11y-assist-modal { justify-content: flex-end; align-items: stretch; }
    #a11y-pagemap .a11y-assist-card { width: min(520px, 94vw); max-height: none; border-radius: 0; }
    html.a11y-saturate-high { filter: saturate(1.8); }
    html.a11y-saturate-low { filter: saturate(.35); }
    html.a11y-contrast-boost { filter: contrast(1.35); }
    html.a11y-saturate-high.a11y-contrast-boost { filter: saturate(1.8) contrast(1.35); }
    html.a11y-saturate-low.a11y-contrast-boost { filter: saturate(.35) contrast(1.35); }
    html.a11y-light-contrast body, html.a11y-light-contrast body *:not(#a11y-toolbar):not(#a11y-toolbar *):not(.a11y-assist-ui):not(.a11y-assist-ui *):not(img):not(video):not(svg):not(svg *) { background-color: #fff !important; color: #111 !important; border-color: #444 !important; }
    html.a11y-light-contrast body a:not(#a11y-toolbar *) { color: #0000ee !important; text-decoration: underline !important; }
    body.a11y-enlarge-targets a:not(#a11y-toolbar *):not(.a11y-assist-ui *), body.a11y-enlarge-targets button:not(#a11y-toolbar *):not(.a11y-assist-ui *):not(#a11y-toggle), body.a11y-enlarge-targets [role="button"]:not(#a11y-toolbar *):not(.a11y-assist-ui *), body.a11y-enlarge-targets input[type="submit"], body.a11y-enlarge-targets input[type="button"] { font-size: 1.12em !important; line-height: 1.5 !important; min-height: 44px !important; padding-top: .45em !important; padding-bottom: .45em !important; }
    body.a11y-highlight-buttons a:hover, body.a11y-highlight-buttons button:hover, body.a11y-highlight-buttons [role="button"]:hover, body.a11y-highlight-buttons input:hover, body.a11y-highlight-buttons select:hover { outline: 3px solid #ff6a00 !important; outline-offset: 2px !important; }
    html.a11y-lh-1 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { line-height: 1.5 !important; } html.a11y-lh-2 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { line-height: 1.8 !important; } html.a11y-lh-3 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { line-height: 2.1 !important; } html.a11y-lh-4 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { line-height: 2.5 !important; }
    html.a11y-ws-1 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { word-spacing: .12em !important; } html.a11y-ws-2 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { word-spacing: .25em !important; } html.a11y-ws-3 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { word-spacing: .4em !important; } html.a11y-ws-4 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { word-spacing: .6em !important; }
    html.a11y-ls-1 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { letter-spacing: .05em !important; } html.a11y-ls-2 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { letter-spacing: .1em !important; } html.a11y-ls-3 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { letter-spacing: .16em !important; } html.a11y-ls-4 body *:not(#a11y-toolbar *):not(.a11y-assist-ui *) { letter-spacing: .24em !important; }
    html.a11y-zoom-125 { zoom: 1.25; } html.a11y-zoom-150 { zoom: 1.5; } html.a11y-zoom-200 { zoom: 2; }
    #a11y-lens { position: fixed; z-index: 100003; background: #fff; color: #111; border: 3px solid #111; border-radius: 10px; padding: 12px 16px; font: 24px/1.4 Arial, sans-serif; max-width: min(90vw, 640px); box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; }
    #a11y-focus-frame { position: fixed; z-index: 100001; pointer-events: none; border-radius: 6px; box-shadow: 0 0 0 200vmax rgba(0,0,0,.6); transition: top .08s, left .08s, width .08s, height .08s; }
    #a11y-grid { position: fixed; z-index: 100003; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
    #a11y-grid div { border: 2px dashed rgba(255,106,0,.9); display: flex; align-items: center; justify-content: center; font: bold 44px Arial, sans-serif; color: #fff; text-shadow: 0 0 6px #000, 0 0 2px #000; }
    #a11y-grid-help, #a11y-smartnav-help { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 100004; background: #111; color: #fff; padding: 10px 14px; border-radius: 10px; font: 14px Arial, sans-serif; max-width: 92vw; text-align: center; }
    .a11y-smartnav-current { outline: 4px solid #ff6a00 !important; outline-offset: 3px !important; }
    html.a11y-btn-hidden #a11y-toggle { display: none !important; }
    html.a11y-sr-mode *:focus { outline: 4px solid #ff6a00 !important; outline-offset: 2px !important; }
    #a11y-dict-pop { position: fixed; z-index: 100004; background: #fff; color: #111; border: 2px solid #111; border-radius: 10px; padding: 12px 14px; font: 15px/1.45 Arial, sans-serif; max-width: min(92vw, 420px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
    #a11y-dict-pop b { font-size: 17px; }
    @media (prefers-reduced-motion: reduce) { #a11y-voice-status::before { animation: none; } #a11y-focus-frame { transition: none; } }