@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://fonts.cdnfonts.com/s/19808/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#acc-widget {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 10000;
}

#acc-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #8aca38;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(6, 96, 105, 0.45);
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

#acc-toggle:hover,
#acc-toggle[aria-expanded="true"] {
    background: #066069;
    transform: scale(1.06);
}

#acc-toggle svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    flex-shrink: 0;
}

#acc-panel {
    position: absolute;
    bottom: 66px;
    left: 0;
    width: 420px;
    max-width: calc(100vw - 24px);
    background: #f5f8f6;
    border-radius: 18px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0s linear 0.26s;
    display: flex;
    flex-direction: column;
    max-height: calc(92vh - 80px);
    overflow: hidden;
}

#acc-panel.acc-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0s;
}

.acc-panel-header {
    background: linear-gradient(135deg, #066069 0%, #1e7d62 55%, #8aca38 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
}

.acc-panel-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
}

.acc-panel-title svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    flex-shrink: 0;
}

.acc-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.acc-header-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.acc-header-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.acc-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #b0ccc8 transparent;
}

.acc-body::-webkit-scrollbar {
    width: 5px;
}

.acc-body::-webkit-scrollbar-track {
    background: transparent;
}

.acc-body::-webkit-scrollbar-thumb {
    background: #b0ccc8;
    border-radius: 3px;
}

.acc-section {
    background: #fff;
    border-radius: 14px;
    margin: 10px 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(6, 96, 105, 0.07);
}

.acc-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #066069;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
}

.acc-font-row {
    display: flex;
    align-items: center;
    background: #eef6f0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    gap: 8px;
}

.acc-font-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-font-icon svg {
    width: 20px;
    height: 20px;
    fill: #066069;
}

.acc-font-text {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    flex: 1;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
}

.acc-font-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-font-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #8aca38;
    background: #fff;
    color: #066069;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.acc-font-btn:hover {
    background: #8aca38;
    color: #fff;
}

.acc-font-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.acc-font-btn:disabled:hover {
    background: #fff;
    color: #066069;
}

#acc-font-level {
    font-size: 13px;
    font-weight: 800;
    color: #066069;
    min-width: 38px;
    text-align: center;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.acc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px 8px;
    border-radius: 12px;
    border: 2px solid #ddeae7;
    background: #f7fbf9;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-size: 10px;
    font-weight: 600;
    color: #444;
    text-align: center;
    line-height: 1.3;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
    min-height: 68px;
}

.acc-btn svg {
    width: 22px;
    height: 22px;
    fill: #066069;
    flex-shrink: 0;
    transition: fill 0.2s;
}

.acc-btn:hover {
    border-color: #8aca38;
    background: #f0f9e8;
}

.acc-btn.acc-active {
    border-color: #8aca38;
    background: #8aca38;
    color: #fff;
}

.acc-btn.acc-active svg {
    fill: #fff;
}

.acc-profile-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acc-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7fbf9;
    border: 2px solid #ddeae7;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.acc-profile-item:hover {
    border-color: #8aca38;
    background: #f0f9e8;
}

.acc-profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acc-profile-icon svg {
    width: 20px;
    height: 20px;
    fill: #066069;
}

.acc-profile-info {
    flex: 1;
}

.acc-profile-name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
    line-height: 1.3;
}

.acc-profile-desc {
    font-size: 10px;
    color: #777;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
    line-height: 1.3;
    margin-top: 2px;
}

.acc-toggle-wrap {
    position: relative;
    flex-shrink: 0;
}

.acc-toggle-wrap input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.acc-toggle-track {
    display: block;
    width: 38px;
    height: 22px;
    background: #cdd8d5;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.25s;
    position: relative;
}

.acc-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.acc-toggle-wrap input:checked + .acc-toggle-track {
    background: #8aca38;
}

.acc-toggle-wrap input:checked + .acc-toggle-track::after {
    transform: translateX(16px);
}

.acc-lang-select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 2px solid #ddeae7;
    background: #f7fbf9;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23066069' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.acc-lang-select:focus {
    border-color: #066069;
}

.acc-footer {
    padding: 10px 12px 14px;
    flex-shrink: 0;
    background: #f5f8f6;
}

#acc-reset {
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    border: none;
    background: #066069;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: proxima-nova, proxima-nova-yedek, Arial, sans-serif;
    letter-spacing: 0.3px;
}

#acc-reset:hover {
    background: #8aca38;
    transform: translateY(-1px);
}

#acc-reset:active {
    transform: translateY(0);
}

#acc-rg {
    position: fixed;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(138, 202, 56, 0.18);
    border-top: 2px solid rgba(138, 202, 56, 0.5);
    border-bottom: 2px solid rgba(138, 202, 56, 0.5);
    pointer-events: none;
    z-index: 9998;
    transition: top 0.04s linear;
}

html.acc-fw body *:not(#acc-widget):not(#acc-widget *) {
    font-weight: bold !important;
}

html.acc-lh body *:not(#acc-widget):not(#acc-widget *) {
    line-height: 1.9 !important;
}

html.acc-ls body *:not(#acc-widget):not(#acc-widget *) {
    letter-spacing: 0.1em !important;
    word-spacing: 0.16em !important;
}

html.acc-dyslexia body *:not(#acc-widget):not(#acc-widget *) {
    font-family: 'OpenDyslexic', Arial, sans-serif !important;
}

html.acc-hl a:not([id^="acc-"]):not(.acc-btn):not(.acc-font-btn):not(.acc-header-btn) {
    background-color: #8aca38 !important;
    color: #fff !important;
    text-decoration: underline !important;
    border-radius: 2px;
    padding: 0 2px;
}

html.acc-hh h1:not(#acc-widget *),
html.acc-hh h2:not(#acc-widget *),
html.acc-hh h3:not(#acc-widget *),
html.acc-hh h4:not(#acc-widget *),
html.acc-hh h5:not(#acc-widget *),
html.acc-hh h6:not(#acc-widget *) {
    background: linear-gradient(90deg, #eef6f0 0%, transparent 100%) !important;
    border-left: 4px solid #066069 !important;
    padding-left: 10px !important;
    border-radius: 0 4px 4px 0;
}

html.acc-sf *:not(#acc-widget):not(#acc-widget *):hover {
    outline: 3px solid #8aca38 !important;
    outline-offset: 2px !important;
}

html.acc-lc,
html.acc-lc * {
    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='M8,2 L8,30 L15,22 L19,32 L23,30 L19,20 L28,20 Z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 8 2, pointer !important;
}

html.acc-ps h1:not(#acc-widget *), html.acc-ps h2:not(#acc-widget *),
html.acc-ps h3:not(#acc-widget *), html.acc-ps h4:not(#acc-widget *),
html.acc-ps h5:not(#acc-widget *), html.acc-ps h6:not(#acc-widget *) {
    outline: 2px dashed #8aca38 !important;
    outline-offset: 2px !important;
}

html.acc-ps nav:not(#acc-widget *) {
    outline: 2px dashed #1e7d62 !important;
    outline-offset: 2px !important;
}

html.acc-ps main:not(#acc-widget *),
html.acc-ps [role="main"]:not(#acc-widget *) {
    outline: 2px dashed #066069 !important;
    outline-offset: 2px !important;
}

html.acc-ps header:not(#acc-widget *) {
    outline: 2px dashed #0f413c !important;
    outline-offset: 2px !important;
}

html.acc-ps footer:not(#acc-widget *) {
    outline: 2px dashed #6ab453 !important;
    outline-offset: 2px !important;
}

html.acc-ps aside:not(#acc-widget *) {
    outline: 2px dashed #1e7d62 !important;
    outline-offset: 2px !important;
}

html.acc-ps section:not(#acc-widget *),
html.acc-ps article:not(#acc-widget *) {
    outline: 1px dashed #b0ccc8 !important;
    outline-offset: 1px !important;
}

html.acc-mono {
    filter: grayscale(100%);
}

html.acc-mono #acc-widget {
    filter: grayscale(0);
}

html.acc-low-sat {
    filter: saturate(0.4);
}

html.acc-low-sat #acc-widget {
    filter: saturate(1);
}

html.acc-high-sat {
    filter: saturate(2.5);
}

html.acc-high-sat #acc-widget {
    filter: saturate(1);
}

html.acc-high-contrast {
    filter: contrast(180%) brightness(105%);
}

html.acc-high-contrast #acc-widget {
    filter: contrast(1) brightness(1);
}

html.acc-light-contrast body {
    background: #ffffff !important;
    color: #000000 !important;
}

html.acc-light-contrast *:not(#acc-widget):not(#acc-widget *):not(img):not(svg):not(video) {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #333 !important;
}

html.acc-dark-contrast body {
    background: #0a0a0a !important;
    color: #ffffff !important;
}

html.acc-dark-contrast *:not(#acc-widget):not(#acc-widget *):not(img):not(svg):not(video) {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

html.acc-dark-contrast a:not(#acc-widget *) {
    color: #8aca38 !important;
}

html.acc-no-anim *,
html.acc-no-anim *::before,
html.acc-no-anim *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

html.acc-hide-img img:not(#acc-widget img) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.acc-focus-highlight *:focus {
    outline: 3px solid #8aca38 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(138, 202, 56, 0.3) !important;
}

@media (max-width: 991px) {
    #acc-widget {
        left: 0;
        right: auto;
        top: calc(50% - 24px);
        bottom: auto;
    }

    #acc-toggle {
        width: 30px;
        height: 46px;
        border-radius: 0 6px 6px 0;
        background: #066069;
        box-shadow: 2px 4px 14px rgba(6, 96, 105, 0.35);
        justify-content: center;
        padding: 0;
    }

    #acc-toggle:hover,
    #acc-toggle[aria-expanded="true"] {
        background: #054e56;
        transform: none;
    }

    #acc-toggle svg {
        width: 18px;
        height: 18px;
    }

    #acc-panel {
        position: fixed;
        left: 8px;
        right: auto;
        top: 50%;
        bottom: auto;
        width: min(380px, calc(100vw - 16px));
        max-height: 80vh;
        transform: translate(-12px, -50%);
    }

    #acc-panel.acc-open {
        transform: translate(0, -50%);
    }
}

@media (max-width: 480px) {
    #acc-panel {
        width: calc(100vw - 16px);
        max-height: 80vh;
    }

    .acc-grid {
        gap: 5px;
    }

    .acc-btn {
        font-size: 9px;
        padding: 8px 2px 6px;
        min-height: 60px;
    }

    .acc-btn svg {
        width: 18px;
        height: 18px;
    }
}
