/* ─── A11y panel ─── */
#screen-a11y {
    background: var(--bg);
    width: auto;
    min-width: 360px;
    height: auto;
    min-height: 640px;
    margin: auto;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.a11y-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

.a11y-section-title {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    margin-top: 18px;
}


/* One setting row (label + toggle button). */
.a11y-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 8px;
}

.a11y-row-info {
    flex: 1;
}

.a11y-row-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.a11y-row-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}


/* On / off toggle switch button. */
.toggle-btn {
    background: var(--surface3);
    border: 1.5px solid var(--border2);
    border-radius: 24px;
    width: 48px;
    height: 26px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.toggle-btn[aria-pressed='true'] {
    background: var(--green);
    border-color: var(--green);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s var(--ease-out);
}

.toggle-btn[aria-pressed='true']::after {
    transform: translateX(22px);
}

