.prometei-a11y,
.prometei-a11y * {
    box-sizing: border-box;
}

.prometei-a11y {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.prometei-a11y__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.prometei-a11y__toggle,
.prometei-a11y__icon-btn,
.prometei-a11y button {
    font: inherit;
}

.prometei-a11y__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.prometei-a11y__symbol,
.prometei-a11y__symbol svg {
    display: block;
    width: 34px;
    height: 34px;
}

.prometei-a11y__symbol svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prometei-a11y__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(360px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 120px));
    overflow: auto;
    padding: 18px;
    border: 2px solid #111827;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.prometei-a11y__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.prometei-a11y__head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.prometei-a11y__icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #111827;
    background: #f9fafb;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.prometei-a11y__group {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
}

.prometei-a11y__group h3 {
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prometei-a11y__segmented,
.prometei-a11y__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prometei-a11y__option,
.prometei-a11y__segmented button,
.prometei-a11y__actions button,
.prometei-a11y__reset {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    color: #111827;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.prometei-a11y__option {
    width: 100%;
    text-align: left;
}

.prometei-a11y button.is-active {
    border-color: #111827;
    color: #ffffff;
    background: #111827;
}

.prometei-a11y__reset {
    width: 100%;
    margin-top: 12px;
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.prometei-a11y__guide {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    pointer-events: none;
    border-top: 3px solid rgba(250, 204, 21, 0.95);
    border-bottom: 3px solid rgba(250, 204, 21, 0.95);
    background: rgba(250, 204, 21, 0.16);
    z-index: -1;
}

html[data-a11y-text-scale="115"] {
    font-size: 115%;
}

html[data-a11y-text-scale="130"] {
    font-size: 130%;
}

html[data-a11y-text-scale="150"] {
    font-size: 150%;
}

html[data-a11y-line-height="1"] body {
    line-height: 1.85 !important;
}

html[data-a11y-letter-spacing="1"] body {
    letter-spacing: 0.08em !important;
    word-spacing: 0.12em !important;
}

html[data-a11y-readable-font="1"] body {
    font-family: Arial, Helvetica, sans-serif !important;
}

html[data-a11y-underline-links="1"] a {
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
}

html[data-a11y-grayscale="1"] body > :not(.prometei-a11y) {
    filter: grayscale(1);
}

html[data-a11y-pause-motion="1"] *,
html[data-a11y-pause-motion="1"] *::before,
html[data-a11y-pause-motion="1"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
}

html[data-a11y-hide-images="1"] img,
html[data-a11y-hide-images="1"] picture,
html[data-a11y-hide-images="1"] video,
html[data-a11y-text-only="1"] img,
html[data-a11y-text-only="1"] picture,
html[data-a11y-text-only="1"] video,
html[data-a11y-text-only="1"] svg {
    display: none !important;
}

html[data-a11y-hide-images="1"] .prometei-a11y img,
html[data-a11y-hide-images="1"] .prometei-a11y picture,
html[data-a11y-hide-images="1"] .prometei-a11y video,
html[data-a11y-text-only="1"] .prometei-a11y img,
html[data-a11y-text-only="1"] .prometei-a11y picture,
html[data-a11y-text-only="1"] .prometei-a11y video,
html[data-a11y-text-only="1"] .prometei-a11y svg {
    display: initial !important;
}

html[data-a11y-text-only="1"] *,
html[data-a11y-contrast="high"] *,
html[data-a11y-contrast="dark"] *,
html[data-a11y-contrast="light"] *,
html[data-a11y-contrast="yellow"] * {
    text-shadow: none !important;
    box-shadow: none !important;
}

html[data-a11y-text-only="1"] body {
    color: #111827 !important;
    background: #ffffff !important;
}

html[data-a11y-contrast="high"] body,
html[data-a11y-contrast="high"] body *:not(.prometei-a11y):not(.prometei-a11y *) {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #000000 !important;
}

html[data-a11y-contrast="dark"] body,
html[data-a11y-contrast="dark"] body *:not(.prometei-a11y):not(.prometei-a11y *) {
    color: #ffffff !important;
    background-color: #000000 !important;
    border-color: #ffffff !important;
}

html[data-a11y-contrast="light"] body,
html[data-a11y-contrast="light"] body *:not(.prometei-a11y):not(.prometei-a11y *) {
    color: #111827 !important;
    background-color: #f8fafc !important;
    border-color: #111827 !important;
}

html[data-a11y-contrast="yellow"] body,
html[data-a11y-contrast="yellow"] body *:not(.prometei-a11y):not(.prometei-a11y *) {
    color: #fde047 !important;
    background-color: #000000 !important;
    border-color: #fde047 !important;
}

html[data-a11y-grayscale="1"] .prometei-a11y,
html[data-a11y-text-only="1"] .prometei-a11y,
html[data-a11y-contrast] .prometei-a11y {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-a11y-grayscale="1"] .prometei-a11y__toggle,
html[data-a11y-text-only="1"] .prometei-a11y__toggle,
html[data-a11y-contrast] .prometei-a11y__toggle {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: #111827 !important;
    box-shadow: 0 0 0 4px #facc15, 0 14px 34px rgba(15, 23, 42, 0.26) !important;
}

html[data-a11y-grayscale="1"] .prometei-a11y__panel,
html[data-a11y-text-only="1"] .prometei-a11y__panel,
html[data-a11y-contrast] .prometei-a11y__panel {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #111827 !important;
}

html[data-a11y-focus-highlight="1"] :focus,
html[data-a11y-focus-highlight="1"] :focus-visible {
    outline: 4px solid #facc15 !important;
    outline-offset: 4px !important;
}

@media (max-width: 575.98px) {
    .prometei-a11y {
        right: 12px;
        bottom: 12px;
    }

    .prometei-a11y__panel {
        right: -4px;
        bottom: 68px;
    }
}
