.ct-a11y-launch {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 10040;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #123056;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ct-a11y-launch:focus-visible,
.ct-a11y-close:focus-visible,
.ct-a11y-row:focus-visible,
.ct-a11y-tile:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.ct-a11y {
    position: fixed;
    left: 18px;
    bottom: 88px;
    z-index: 10050;
    width: min(392px, calc(100vw - 24px));
    max-height: calc(100vh - 110px);
    display: none;
    font-family: Inter, "Segoe UI", sans-serif;
}

.ct-a11y.is-open { display: block; }

.ct-a11y-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 110px);
    background: #eef2f8;
    border: 3px solid #2f6fe4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    color: #172033;
}

.ct-a11y.is-oversized .ct-a11y-panel {
    transform: scale(1.08);
    transform-origin: left bottom;
}

.ct-a11y-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #10233f;
    color: #fff;
    padding: 12px 12px 12px 14px;
}

.ct-a11y-title {
    background: #2f6fe4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    padding: 6px 10px;
}

.ct-a11y-keys {
    color: #d5deea;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ct-a11y-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ct-a11y-body {
    overflow: auto;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.ct-a11y-row,
.ct-a11y-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 14px;
    padding: 14px 16px;
    color: #1d283a;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ct-a11y-switch { cursor: default; }

.ct-a11y-row svg,
.ct-a11y-tile svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    flex-shrink: 0;
}

.ct-a11y-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ct-a11y-tile {
    min-height: 112px;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 16px;
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1d283a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}

.ct-a11y-tile svg { width: 28px; height: 28px; }

.ct-a11y-tile.is-on,
.ct-a11y-row.is-on {
    border-color: #2f6fe4;
    box-shadow: inset 0 0 0 1px #2f6fe4;
    background: #f4f8ff;
}

.ct-a11y-toggle {
    margin-left: auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: 0;
    background: #d5dbe6;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.ct-a11y-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.ct-a11y-toggle.is-on { background: #2f6fe4; }
.ct-a11y-toggle.is-on::after { transform: translateX(20px); }

.ct-a11y-back {
    border: 0;
    background: transparent;
    color: #2f6fe4;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.ct-a11y-note {
    margin: 0;
    color: #5c6b82;
    font-size: 12px;
    text-align: center;
}

html.a11y-pause *,
html.a11y-pause *::before,
html.a11y-pause *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.a11y-links a {
    text-decoration: underline !important;
    outline: 2px solid #eab308 !important;
    outline-offset: 2px;
    background-color: #fff4b8 !important;
}

html.a11y-text { font-size: 18px; }

html.a11y-spacing body {
    letter-spacing: 0.06em !important;
    word-spacing: 0.14em !important;
    line-height: 1.75 !important;
}

html.a11y-hide-images img:not(.ct-a11y img) {
    opacity: 0 !important;
}

html.a11y-dyslexia body,
html.a11y-dyslexia button,
html.a11y-dyslexia input,
html.a11y-dyslexia select,
html.a11y-dyslexia textarea {
    font-family: Lexend, "Comic Sans MS", sans-serif !important;
}

html.a11y-cursor,
html.a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M6 4l8 26 4-10 10-4z' fill='%23111' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

.ct-a11y-tip {
    position: fixed;
    z-index: 10060;
    max-width: 240px;
    background: #10233f;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 6px;
    pointer-events: none;
}
