/* Accessibility widget — ported from razpro.co */
.a11y-fab{
  position:fixed;bottom:24px;right:24px;z-index:150;width:54px;height:54px;display:flex;align-items:center;justify-content:center;
  background:#1a73e8;border:none;border-radius:50%;color:#fff;cursor:pointer;box-shadow:0 8px 24px -6px rgba(0,0,0,.6);
  transition:transform .2s var(--ease),box-shadow .2s ease,background .2s;
}
.a11y-fab svg{width:30px;height:30px}
.a11y-fab:hover{transform:scale(1.06);background:#1662c4;box-shadow:0 10px 30px -6px rgba(0,0,0,.7)}
.a11y-fab:focus-visible,.a11y-panel button:focus-visible,.a11y-panel a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* in the studio the sidebar owns the bottom-right corner */
body.studio .a11y-fab{right:auto;left:24px}
body.studio .a11y-panel{right:auto;left:24px}

.a11y-panel{
  position:fixed;bottom:88px;right:24px;z-index:151;width:260px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-card-hover);padding:14px;display:flex;flex-direction:column;gap:8px;
  animation:fade-up .25s var(--ease) both;
}
.a11y-panel-head{display:flex;align-items:center;justify-content:space-between;font-weight:800;color:var(--text-hi);padding-bottom:6px;border-bottom:1px solid var(--border);margin-bottom:4px}
.a11y-panel-head button{background:transparent;border:none;color:var(--text-2);cursor:pointer;font-size:1rem;padding:4px;border-radius:6px}
.a11y-row{display:flex;align-items:center;justify-content:space-between;color:var(--text);font-size:14px}
.a11y-btn-group{display:flex;gap:6px}
.a11y-btn-group button{width:34px;height:34px;border-radius:8px;border:1px solid var(--border);background:rgba(209,209,209,.06);color:var(--text);cursor:pointer;font-size:14px;font-family:inherit}
.a11y-btn-group button:disabled{opacity:.4;cursor:default}
.a11y-toggle,.a11y-reset{text-align:right;padding:9px 12px;border-radius:10px;border:1px solid var(--border);background:rgba(209,209,209,.04);color:var(--text);font-size:14px;font-family:inherit;cursor:pointer}
.a11y-toggle:hover,.a11y-reset:hover{border-color:var(--border-hover)}
.a11y-toggle[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:800}
.a11y-reset{margin-top:4px;text-align:center;color:var(--text-2)}
.a11y-statement{text-align:center;font-size:13px;color:var(--text-2);text-decoration:underline;text-underline-offset:3px;padding:2px}
@media (max-width:640px){
  .a11y-fab{bottom:20px;right:16px}
  .a11y-panel{right:16px;left:16px;width:auto;bottom:84px}
  body.studio .a11y-fab{left:16px}
  body.studio .a11y-panel{left:16px;right:16px}
}

/* effects, toggled on <html> */
html.a11y-text-1 body{zoom:1.1}
html.a11y-text-2 body{zoom:1.2}
html.a11y-text-3 body{zoom:1.32}

html.a11y-contrast body{background:#000!important}
html.a11y-contrast body::after,html.a11y-contrast .page-glow{display:none!important}
html.a11y-contrast *{background-color:transparent;color:#ffee00!important;border-color:#ffee00!important;text-shadow:none!important;box-shadow:none!important}
html.a11y-contrast :is(.card,.btn,.pill,.choice,.seg,.inp,.side,.topbar,.chip,.tag,.font-card,.music,.toggle,.check,.drop,.composer,.note,.tabs2,.ctl,.toast,.a11y-panel,.a11y-toggle,.a11y-reset,.a11y-btn-group button,.summary,.eta,.file-list li,.price,.feat,.aud,.compare-col,.style-desc,.rv-stage,.rv-side,.proj-new,.auth,.consent){background:#000!important;border:1px solid #ffee00!important}
html.a11y-contrast :is(.btn-primary,.pill.on,.choice.on,.seg button.on,.tabs2 button.on,.a11y-toggle[aria-pressed="true"],.play,.stepper li.on,.badge){background:#ffee00!important}
html.a11y-contrast :is(.btn-primary,.pill.on,.choice.on,.seg button.on,.tabs2 button.on,.a11y-toggle[aria-pressed="true"],.play,.stepper li.on,.badge),
html.a11y-contrast :is(.btn-primary,.pill.on,.choice.on,.seg button.on,.tabs2 button.on,.a11y-toggle[aria-pressed="true"],.play,.stepper li.on,.badge) *{color:#000!important}
html.a11y-contrast .a11y-fab{background:#ffee00!important;color:#000!important}
html.a11y-contrast .a11y-fab *{color:#000!important}
html.a11y-contrast :is(h1,h2) .hl{-webkit-text-fill-color:#ffee00!important;background:none!important}

html.a11y-grayscale{filter:grayscale(1)}
html.a11y-underline-links a{text-decoration:underline!important}
html.a11y-no-motion,html.a11y-no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-no-motion .reveal{opacity:1!important;transform:none!important;filter:none!important}
html.a11y-readable-font,html.a11y-readable-font *{font-family:Arial,Helvetica,sans-serif!important;letter-spacing:normal!important}
