.a11y-trigger,
.a11y-panel {
    --a11y-green: #1d563b;
    --a11y-leaf: #c5e477;
    --a11y-ink: #173326;
    --a11y-muted: #75857b;
    --a11y-line: #e2e9e1;
    --a11y-wash: #e8f2e5;
    font-family: 'DM Sans', sans-serif;
}

.a11y-trigger {
    position: fixed;
    z-index: 10001;
    top: 34%;
    right: 0;
    display: grid;
    width: 54px;
    height: 60px;
    place-items: center;
    border: 0;
    border-radius: 14px 0 0 14px;
    background: var(--a11y-green);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 48, 25, .2);
}

.a11y-trigger svg { width: 31px; height: 31px; }
.a11y-trigger:hover { width: 60px; }
.a11y-trigger:focus-visible, .a11y-panel button:focus-visible { outline: 3px solid var(--a11y-leaf); outline-offset: 2px; }

.a11y-panel {
    position: fixed;
    z-index: 10002;
    inset: 0 0 0 auto;
    display: flex;
    width: min(340px, calc(100vw - 48px));
    max-height: 100dvh;
    flex-direction: column;
    border-left: 5px solid var(--a11y-green);
    background: #fff;
    color: var(--a11y-ink);
    box-shadow: -12px 0 35px rgba(18, 59, 42, .16);
}

.a11y-panel[hidden] { display: none; }
.a11y-panel-header { display: flex; min-height: 60px; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--a11y-line); }
.a11y-panel-mark { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 9px; background: var(--a11y-wash); color: var(--a11y-green); }
.a11y-panel-mark svg { width: 20px; height: 20px; }
.a11y-heading { min-width: 0; flex: 1; }
.a11y-heading strong, .a11y-heading small { display: block; }
.a11y-heading strong { color: var(--a11y-ink); font-size: 13px; font-weight: 700; }
.a11y-heading small { margin-top: 2px; color: var(--a11y-muted); font-size: 10px; font-weight: 600; }
.a11y-close { width: 34px; height: 34px; border: 0; background: transparent; color: var(--a11y-muted); cursor: pointer; font-size: 21px; }
.a11y-panel-body { min-height: 0; flex: 1; overflow-y: auto; padding: 12px; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a11y-option { position: relative; display: flex; min-height: 82px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 1px solid var(--a11y-line); border-radius: 8px; background: #fff; color: #4f6655; cursor: pointer; text-align: center; }
.a11y-option:hover { border-color: #a9c49b; background: #f8fbf6; }
.a11y-option[aria-pressed="true"] { border-color: #7d9d66; background: #f1f7e9; color: var(--a11y-green); box-shadow: inset 0 0 0 1px #7d9d66; }
.a11y-option-icon { display: grid; min-height: 18px; place-items: center; color: var(--a11y-green); font-size: 16px; font-weight: 700; line-height: 1; }
.a11y-option-icon svg { width: 17px; height: 17px; }
.a11y-option-label { font-size: 10px; font-weight: 700; line-height: 1.25; }
.a11y-option-rule { display: flex; gap: 5px; }
.a11y-option-rule i { width: 15px; border-top: 1px solid #b9d994; }
.a11y-section-label { margin: 18px 0 8px; color: #829681; font-size: 10px; font-weight: 700; }
.a11y-toggle-list { display: grid; gap: 7px; }
.a11y-toggle { display: flex; min-height: 43px; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--a11y-line); border-radius: 8px; background: #fff; color: #4f6655; cursor: pointer; text-align: left; }
.a11y-toggle:hover { border-color: #a9c49b; }
.a11y-toggle[aria-pressed="true"] { border-color: #7d9d66; background: #f5f9ef; }
.a11y-toggle-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 7px; background: var(--a11y-wash); color: var(--a11y-green); }
.a11y-toggle-icon svg { width: 15px; height: 15px; }
.a11y-toggle-label { min-width: 0; flex: 1; font-size: 10px; font-weight: 700; }
.a11y-switch { position: relative; width: 36px; height: 20px; flex: 0 0 36px; border-radius: 12px; background: #dfe7df; transition: background .16s ease; }
.a11y-switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(22, 38, 57, .2); content: ''; transition: transform .16s ease; }
.a11y-toggle[aria-pressed="true"] .a11y-switch { background: var(--a11y-green); }
.a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(16px); }
.a11y-panel-footer { padding: 10px 12px 14px; border-top: 1px solid var(--a11y-line); }
.a11y-reset { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; background: var(--a11y-green); color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.a11y-reset:hover { background: #17462f; }
.a11y-reset svg { width: 16px; height: 16px; }
.a11y-guide { position: fixed; z-index: 10000; right: 0; left: 0; height: 3px; border-top: 1px solid rgba(29, 86, 59, .7); border-bottom: 1px solid rgba(29, 86, 59, .35); background: rgba(197, 228, 119, .2); pointer-events: none; }

html.a11y-high-contrast body { filter: contrast(1.45); }
html.a11y-saturation body { filter: saturate(1.8); }
html.a11y-high-contrast.a11y-saturation body { filter: contrast(1.45) saturate(1.8); }
html.a11y-pause-motion *, html.a11y-pause-motion *::before, html.a11y-pause-motion *::after { scroll-behavior: auto !important; animation-play-state: paused !important; transition-duration: 0s !important; }
html.a11y-dyslexia body { font-family: Verdana, sans-serif !important; }
html.a11y-line-spacing :is(p, li, label, td, th, small, figcaption) { line-height: 1.8 !important; }
html.a11y-letter-spacing :is(p, li, label, td, th, small, figcaption, button, input, select) { letter-spacing: .07em !important; }
html.a11y-colorblind :is(a, .status-pill, .role-pill, button) { outline: 1px solid currentColor; outline-offset: 1px; }
html.a11y-highlight-titles :is(h1, h2, h3, h4, h5, h6) { outline: 3px solid #e2a900 !important; outline-offset: 3px; background-color: rgba(255, 232, 140, .22) !important; }
html.a11y-highlight-links a { outline: 3px solid #e2a900 !important; outline-offset: 2px; background-color: rgba(255, 232, 140, .28) !important; text-decoration: underline !important; }
html.a11y-bold-text :is(p, li, label, td, th, small, button, a) { font-weight: 700 !important; }
html.a11y-large-cursor, html.a11y-large-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='42' viewBox='0 0 36 42'%3E%3Cpath d='M4 3v28l7-7 5 13 6-2-5-13h11L4 3Z' fill='%23fff' stroke='%23143220' stroke-width='2'/%3E%3C/svg%3E") 2 2, auto !important; }

@media (max-width: 480px) {
    .a11y-trigger { top: auto; right: 0; bottom: 22%; width: 48px; height: 54px; }
    .a11y-panel { width: min(320px, calc(100vw - 42px)); }
    .a11y-option { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .a11y-panel *, .a11y-panel *::before, .a11y-panel *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}