.manta-skip-links { position: absolute; top: 0; left: 0; padding: 0; margin: 0; z-index: 9999; }
.manta-skip-link { position: absolute; left: -999px; top: -999px; background: #0a5cc2; color: #fff; padding: 10px 14px; text-decoration: none; font-weight: 600; }
.manta-skip-link:focus { left: 10px; top: 10px; outline: 3px solid #fff; box-shadow: 0 0 0 3px #0a5cc2; }

.manta-widget { position: fixed; bottom: 24px; z-index: 9998; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.manta-position-right { right: 24px; }
.manta-position-left { left: 24px; }
.manta-widget .manta-toggle { display: flex; align-items: center; gap: 8px; background: #0a5cc2; color: #fff; border: none; border-radius: 999px; padding: 10px 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.16); }
.manta-widget .manta-toggle:focus { outline: 3px solid #fff; outline-offset: 2px; }
.manta-widget .manta-panel { display: none; margin-top: 10px; background: #fff; color: #1f2933; border-radius: 12px; border: 1px solid #e5e7eb; padding: 12px; width: 260px; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.manta-widget.manta-open .manta-panel { display: block; }
.manta-panel h3 { margin: 8px 0; font-size: 14px; }
.manta-group { margin-bottom: 10px; }
.manta-row { display: flex; gap: 6px; }
.manta-control { flex: 1 1 auto; padding: 8px; border-radius: 8px; border: 1px solid #d3d6dc; background: #f6f7fb; cursor: pointer; }
.manta-control:focus { outline: 2px solid #0a5cc2; }
.manta-toggle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.manta-toggle-list li { display: flex; align-items: center; }
.manta-toggle-list input[type="checkbox"] { margin-right: 8px; }
.manta-reset { width: 100%; margin-top: 6px; }

/* Preference classes */
body.manta-contrast { filter: invert(0); background: #0e0e0e; color: #f5f5f5; }
body.manta-contrast img, body.manta-contrast video { filter: invert(1) hue-rotate(180deg); }
body.manta-underline a { text-decoration: underline !important; }
body.manta-pause * { animation-play-state: paused !important; transition: none !important; }
body.manta-focus-boost :focus { box-shadow: 0 0 0 3px rgba(10,92,194,0.3); outline-color: #0a5cc2; }
body.manta-readable { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; }
body.manta-spacing { letter-spacing: 0.04em; line-height: 1.6; }

body.manta-text-large { font-size: 112%; }
body.manta-text-xlarge { font-size: 125%; }
body.manta-text-xxlarge { font-size: 140%; }

.manta-size-small .manta-toggle { padding: 8px 10px; }
.manta-size-large .manta-toggle { padding: 14px 18px; font-size: 16px; }

@media (max-width: 782px) {
    .manta-widget { bottom: 14px; right: 14px; left: auto; }
    .manta-widget .manta-panel { width: calc(100vw - 32px); }
}
