:root {
    --dka11y-scale: 1;
    --dka11y-line-height: normal;
    --dka11y-letter-spacing: normal;
}

.dka11y-root {
    --dka11y-accent: #E36414;
    --dka11y-ink: #0f172a;
    --dka11y-muted: #64748b;
    --dka11y-border: #e2e8f0;
    --dka11y-soft: #f8fafc;
    --dka11y-soft-accent: #fff7ed;
    position: relative;
    z-index: 2147483000;
    font-family: inherit;
}

.dka11y-root *,
.dka11y-root *::before,
.dka11y-root *::after {
    box-sizing: border-box;
}

.dka11y-trigger {
    position: fixed;
    z-index: 2147483003;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    background: var(--dka11y-accent) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-radius .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.dka11y-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22), 0 3px 10px rgba(15, 23, 42, .12);
}

.dka11y-trigger:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--dka11y-accent), 0 16px 34px rgba(15, 23, 42, .22);
}

.dka11y-person-svg {
    display: block;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dka11y-person-svg path {
    fill: none;
}

.dka11y-pos-right .dka11y-trigger { right: 20px; }
.dka11y-pos-left .dka11y-trigger { left: 20px; }
.dka11y-vpos-top .dka11y-trigger { top: 130px; }
.dka11y-vpos-center .dka11y-trigger { top: 50%; transform: translateY(-50%); }
.dka11y-vpos-center .dka11y-trigger:hover { transform: translateY(calc(-50% - 2px)); }
.dka11y-vpos-bottom .dka11y-trigger { bottom: 24px; }

.dka11y-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.dka11y-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dka11y-panel {
    position: fixed;
    top: 14px;
    bottom: 14px;
    z-index: 2147483002;
    width: min(500px, calc(100vw - 28px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fff !important;
    color: var(--dka11y-ink) !important;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24), 0 8px 26px rgba(15, 23, 42, .10);
    opacity: 0;
    visibility: hidden;
    transition: transform .24s cubic-bezier(.22,.8,.3,1), opacity .18s ease, visibility .18s ease;
}

.dka11y-pos-right .dka11y-panel {
    right: 14px;
    transform: translateX(calc(100% + 34px));
}

.dka11y-pos-left .dka11y-panel {
    left: 14px;
    transform: translateX(calc(-100% - 34px));
}

.dka11y-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.dka11y-panel-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 28px 24px;
    background: #fff !important;
    color: var(--dka11y-ink) !important;
    border-bottom: 1px solid var(--dka11y-border);
}

.dka11y-head-copy {
    min-width: 0;
}

.dka11y-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--dka11y-accent) !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .16em;
}

.dka11y-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--dka11y-accent);
}

.dka11y-panel-head h2 {
    margin: 0;
    color: var(--dka11y-ink) !important;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.02em;
}

.dka11y-panel-head p {
    max-width: 365px;
    margin: 8px 0 0;
    color: var(--dka11y-muted) !important;
    font-size: 14px;
    line-height: 1.5;
}

.dka11y-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dka11y-border);
    border-radius: 13px;
    background: var(--dka11y-soft) !important;
    color: var(--dka11y-ink) !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.dka11y-close:hover {
    background: #fff !important;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.dka11y-close svg,
.dka11y-control-icon svg,
.dka11y-reset svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dka11y-panel-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 24px;
    background: #f8fafc !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dka11y-panel-scroll::-webkit-scrollbar { width: 8px; }
.dka11y-panel-scroll::-webkit-scrollbar-track { background: transparent; }
.dka11y-panel-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.dka11y-section {
    margin: 0 0 18px;
    padding: 18px;
    background: #fff !important;
    border: 1px solid var(--dka11y-border);
    border-radius: 18px;
}

.dka11y-section:last-child { margin-bottom: 0; }

.dka11y-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dka11y-section-title h3 {
    margin: 0;
    color: var(--dka11y-ink) !important;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.dka11y-section-title span {
    color: #94a3b8 !important;
    font-size: 11px;
    white-space: nowrap;
}

.dka11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dka11y-control {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--dka11y-border);
    border-radius: 14px;
    background: #fff !important;
    color: var(--dka11y-ink) !important;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dka11y-control:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.dka11y-control:focus-visible,
.dka11y-stepper button:focus-visible,
.dka11y-close:focus-visible,
.dka11y-reset:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--dka11y-accent) 30%, transparent);
    outline-offset: 2px;
}

.dka11y-control[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--dka11y-accent) 55%, #fff);
    background: var(--dka11y-soft-accent) !important;
}

.dka11y-control-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    background: var(--dka11y-soft) !important;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.dka11y-control[aria-pressed="true"] .dka11y-control-icon {
    color: var(--dka11y-accent) !important;
    background: #fff !important;
    border-color: color-mix(in srgb, var(--dka11y-accent) 24%, #fff);
}

.dka11y-control-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.dka11y-control-copy strong {
    color: var(--dka11y-ink) !important;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
}

.dka11y-control-copy small {
    color: var(--dka11y-muted) !important;
    font-size: 11px;
    line-height: 1.35;
}

.dka11y-switch {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e2e8f0 !important;
    transition: background .15s ease;
}

.dka11y-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
    transition: transform .15s ease;
}

.dka11y-control[aria-pressed="true"] .dka11y-switch {
    background: var(--dka11y-accent) !important;
}

.dka11y-control[aria-pressed="true"] .dka11y-switch span {
    transform: translateX(14px);
}

.dka11y-control-stepper {
    grid-template-columns: 42px minmax(0, 1fr);
    cursor: default;
}

.dka11y-control-stepper:hover {
    transform: none;
    box-shadow: none;
}

.dka11y-stepper {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.dka11y-stepper button {
    width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--dka11y-border);
    border-radius: 10px;
    background: var(--dka11y-soft) !important;
    color: var(--dka11y-ink) !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.dka11y-stepper button:hover {
    border-color: var(--dka11y-accent);
    color: var(--dka11y-accent) !important;
}

.dka11y-stepper > span {
    color: #475569 !important;
    font-size: 11px;
    text-align: center;
}

.dka11y-panel-footer {
    padding: 16px 20px 18px;
    background: #fff !important;
    border-top: 1px solid var(--dka11y-border);
}

.dka11y-reset {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid var(--dka11y-border);
    border-radius: 12px;
    background: #fff !important;
    color: #334155 !important;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.dka11y-reset:hover {
    border-color: #cbd5e1;
    background: var(--dka11y-soft) !important;
}

.dka11y-panel-footer p {
    margin: 9px 0 0;
    color: #94a3b8 !important;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

body.dka11y-panel-open {
    overflow: hidden !important;
}

.dka11y-reading-line {
    left: 0;
    right: 0;
    height: 3px;
    background: #facc15;
    box-shadow: 0 0 0 1px #0f172a;
}


html.dka11y-reading-line-on .dka11y-reading-line { display: block; }

html.dka11y-readable-font body,
html.dka11y-readable-font body *:not(.dka11y-root):not(.dka11y-root *) {
    font-family: Arial, Verdana, sans-serif !important;
}

html.dka11y-bold body :where(p, li, td, th, label, input, textarea, select, button):not(.dka11y-root):not(.dka11y-root *) {
    font-weight: 600 !important;
}

html.dka11y-center body main,
html.dka11y-center body main *:not(input):not(textarea):not(select):not(option):not(.dka11y-root):not(.dka11y-root *) {
    text-align: center !important;
}

html.dka11y-hide-images body img:not(.dka11y-root img),
html.dka11y-hide-images body picture:not(.dka11y-root picture),
html.dka11y-hide-images body video:not(.dka11y-root video) {
    visibility: hidden !important;
}

html.dka11y-hide-images body [style*="background-image"]:not(.dka11y-root):not(.dka11y-root *) {
    background-image: none !important;
}

html.dka11y-highlight-links body a:not(.dka11y-root a) {
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 3px !important;
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

html.dka11y-highlight-content body main :is(h1,h2,h3,h4,h5,h6,p,li,article,section):not(.dka11y-root):not(.dka11y-root *) {
    outline: 2px solid #facc15 !important;
    outline-offset: 3px !important;
}

html.dka11y-stop-animations body *:not(.dka11y-root):not(.dka11y-root *) ,
html.dka11y-stop-animations body *:not(.dka11y-root):not(.dka11y-root *)::before,
html.dka11y-stop-animations body *:not(.dka11y-root):not(.dka11y-root *)::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
}

html.dka11y-focus-outline body :focus-visible:not(.dka11y-root):not(.dka11y-root *) {
    outline: 4px solid #facc15 !important;
    outline-offset: 4px !important;
}

html.dka11y-monochrome body > *:not(.dka11y-root) {
    filter: grayscale(1) !important;
}

html.dka11y-light-contrast body {
    background: #fff !important;
    color: #111 !important;
}

html.dka11y-light-contrast body :where(main,header,footer,nav,section,article,aside):not(.dka11y-root):not(.dka11y-root *) {
    background-color: #fff !important;
    color: #111 !important;
}

html.dka11y-high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.dka11y-high-contrast body :where(main,header,footer,nav,section,article,aside,div):not(.dka11y-root):not(.dka11y-root *) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.dka11y-high-contrast body a:not(.dka11y-root a) {
    color: #ffea00 !important;
}

html.dka11y-large-cursor body,
html.dka11y-large-cursor body *:not(.dka11y-root):not(.dka11y-root *) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M5 3v29l7-7 6 12 6-3-6-12h11z' fill='white' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") 5 3, auto !important;
}

html {
    font-size: calc(100% * var(--dka11y-scale));
    letter-spacing: var(--dka11y-letter-spacing);
}

html body,
html body p,
html body li,
html body td,
html body th {
    line-height: var(--dka11y-line-height);
}

/* Panel musí zostať vizuálne stabilný aj pri zapnutých globálnych režimoch. */
.dka11y-root,
.dka11y-root * {
    letter-spacing: normal;
    line-height: normal;
}

@media (max-width: 760px) {
    .dka11y-panel {
        top: 0;
        bottom: 0;
        width: 100vw;
        border-radius: 0;
        border: 0;
    }

    .dka11y-pos-right .dka11y-panel { right: 0; }
    .dka11y-pos-left .dka11y-panel { left: 0; }
    .dka11y-panel-head { padding: 22px 20px 20px; }
    .dka11y-panel-head h2 { font-size: 23px; }
    .dka11y-panel-scroll { padding: 14px; }
    .dka11y-section { padding: 14px; }
}

@media (max-width: 520px) {
    .dka11y-grid { grid-template-columns: 1fr; }
    .dka11y-control { min-height: 88px; }
    .dka11y-trigger { width: 56px; height: 56px; border-radius: 999px; }
    .dka11y-pos-right .dka11y-trigger { right: 14px; }
    .dka11y-pos-left .dka11y-trigger { left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .dka11y-trigger,
    .dka11y-panel,
    .dka11y-backdrop,
    .dka11y-control,
    .dka11y-switch,
    .dka11y-switch span,
    .dka11y-close {
        transition: none !important;
    }
}
