:root {
    --gk-a11y-red: #ef3328;
    --gk-a11y-navy: #071522;
    --gk-a11y-cream: #f7f4ee;
}

#gk-a11y-root,
#gk-a11y-root * {
    box-sizing: border-box;
}

#gk-a11y-root {
    position: relative;
    z-index: 2147483000;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--gk-a11y-navy);
}

#gk-a11y-root [hidden] {
    display: none !important;
}

.gk-a11y-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff493f, #d91f1a);
    color: #fff;
    box-shadow:
        0 0 0 3px #e6b13d,
        0 0 0 7px var(--gk-a11y-navy),
        0 16px 34px rgba(7, 21, 34, 0.32);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
    z-index: 2147483004;
}

.gk-a11y-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 0 3px #f0c65f,
        0 0 0 7px var(--gk-a11y-navy),
        0 20px 42px rgba(7, 21, 34, 0.38);
}

.gk-a11y-launcher:focus-visible,
.gk-a11y-close:focus-visible,
.gk-a11y-option:focus-visible,
.gk-a11y-reset:focus-visible {
    outline: 3px solid #f5b82e;
    outline-offset: 3px;
}

.gk-a11y-launcher svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gk-a11y-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 13, 22, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 2147483001;
}

.gk-a11y-panel {
    position: fixed;
    display: block;
    right: 24px;
    bottom: 96px;
    width: min(440px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 120px));
    overflow: hidden;
    border: 1px solid rgba(7, 21, 34, 0.1);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(2, 13, 22, 0.34);
    z-index: 2147483003;
    animation: gk-a11y-panel-in 220ms ease-out both;
}

@keyframes gk-a11y-panel-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gk-a11y-panel__header {
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
    min-height: 88px;
    margin: 0;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #e8edf1;
    background: linear-gradient(135deg, #fff 0%, #f8fafb 100%);
    box-shadow: none;
    transform: none;
}

.gk-a11y-panel__mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid #fff;
    background: linear-gradient(145deg, #ff493f, #d91f1a);
    color: #fff;
    box-shadow:
        0 0 0 2px #e6b13d,
        0 0 0 5px var(--gk-a11y-navy);
}

.gk-a11y-panel__mark svg {
    width: 29px;
    height: 29px;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gk-a11y-panel__heading {
    min-width: 0;
    flex: 1;
}

.gk-a11y-panel__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--gk-a11y-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gk-a11y-panel__title {
    margin: 0;
    color: #101821;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.gk-a11y-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gk-a11y-red);
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.gk-a11y-panel__body {
    max-height: calc(min(760px, 100dvh - 120px) - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    scrollbar-width: thin;
    scrollbar-color: #a8b2bb transparent;
}

.gk-a11y-intro {
    margin: 0 2px 16px;
    color: #65717e;
    font-size: 13px;
    line-height: 1.65;
}

.gk-a11y-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.gk-a11y-option {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    border: 1px solid #e5ebef;
    border-radius: 16px;
    background: #fff;
    color: #111820;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 5px 16px rgba(7, 21, 34, 0.045);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.gk-a11y-option:hover {
    transform: translateY(-2px);
    border-color: #bcc8d1;
}

.gk-a11y-option[aria-pressed="true"] {
    border-color: var(--gk-a11y-red);
    background: #fff3f2;
    box-shadow: inset 0 0 0 1px var(--gk-a11y-red);
}

.gk-a11y-option__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}

.gk-a11y-option__icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gk-a11y-option__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.gk-a11y-option__state {
    display: block;
    color: #8a96a1;
    font-size: 10px;
}

.gk-a11y-option[aria-pressed="true"] .gk-a11y-option__state {
    color: var(--gk-a11y-red);
    font-weight: 700;
}

.gk-a11y-reset {
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--gk-a11y-navy);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.gk-a11y-status {
    min-height: 20px;
    margin: 10px 2px 0;
    color: #5d6975;
    font-size: 11px;
    text-align: center;
}

.gk-a11y-guide {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: #ffcf33;
    box-shadow: 0 0 0 1px rgba(7, 21, 34, 0.9), 0 0 18px rgba(255, 207, 51, 0.7);
    pointer-events: none;
    z-index: 2147482998;
}

.gk-a11y-mask {
    position: fixed;
    left: 0;
    right: 0;
    height: calc(50% - 72px);
    background: rgba(1, 8, 14, 0.78);
    pointer-events: none;
    z-index: 2147482997;
}

.gk-a11y-mask--top {
    top: 0;
}

.gk-a11y-mask--bottom {
    bottom: 0;
}

html.gk-a11y-large-text {
    font-size: 112.5%;
}

html.gk-a11y-emphasize-links body a {
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
    outline: 2px dashed currentColor;
    outline-offset: 3px;
}

html.gk-a11y-strong-cursor,
html.gk-a11y-strong-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='44' viewBox='0 0 38 44'%3E%3Cpath d='M4 3v31l9-8 7 15 7-4-7-14h12z' fill='%23fff' stroke='%23071522' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto !important;
}

html.gk-a11y-left-align body :where(p, h1, h2, h3, h4, h5, h6, li, blockquote, figcaption) {
    text-align: left !important;
}

html.gk-a11y-high-contrast {
    filter: contrast(1.45);
}

html.gk-a11y-grayscale {
    filter: grayscale(1);
}

html.gk-a11y-low-saturation {
    filter: saturate(0.35);
}

html.gk-a11y-hide-images body img {
    opacity: 0 !important;
}

@media (max-width: 640px) {
    .gk-a11y-launcher {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .gk-a11y-panel {
        right: 8px;
        bottom: 80px;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 94px);
        border-radius: 22px;
    }

    .gk-a11y-panel__header {
        min-height: 78px;
        padding: 17px 16px 14px;
    }

    .gk-a11y-panel__mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .gk-a11y-panel__title {
        font-size: 19px;
        line-height: 1.12;
    }

    .gk-a11y-panel__body {
        max-height: calc(100dvh - 176px);
        padding: 13px;
    }

    .gk-a11y-option {
        min-height: 101px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-a11y-panel,
    .gk-a11y-launcher,
    .gk-a11y-option {
        animation: none;
        transition: none;
    }
}
