:root {
  --fpat-filter-color: none;
  --fpat-filter-invert: invert(0);
  --fpat-filter-brightness: brightness(1);
  --fpat-filter-contrast: contrast(1);
  --fpat-filter-saturation: saturate(1);
  --fpat-filter-grayscale: grayscale(0);
}

.fpat-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fpat-root,
.fpat-root * {
  box-sizing: border-box;
}

.fpat-root {
  position: fixed;
  z-index: 2147483000;
  width: var(--fpat-launcher-size, 52px);
  height: var(--fpat-launcher-size, 52px);
  color: var(--fpat-panel-text, #171717);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-transform: none !important;
  direction: ltr;
  isolation: isolate;
}

.fpat-root[hidden],
.fpat-root [hidden],
.fpat-skip-links [hidden] {
  display: none !important;
}

.fpat-root[data-fpat-launcher-hidden="1"] {
  pointer-events: none;
}

.fpat-root[data-fpat-launcher-hidden="1"] .fpat-trigger,
.fpat-root[data-fpat-launcher-hidden="1"] .fpat-dialog,
.fpat-root[data-fpat-launcher-hidden="1"] .fpat-backdrop {
  display: none !important;
}

.fpat-position--bottom-right {
  right: var(--fpat-offset-x, 16px);
  bottom: var(--fpat-offset-y, 16px);
}

.fpat-position--bottom-left {
  left: var(--fpat-offset-x, 16px);
  bottom: var(--fpat-offset-y, 16px);
}

.fpat-position--middle-right {
  right: var(--fpat-offset-x, 16px);
  top: calc(50% - var(--fpat-launcher-half, 26px));
}

.fpat-position--middle-left {
  left: var(--fpat-offset-x, 16px);
  top: calc(50% - var(--fpat-launcher-half, 26px));
}

.fpat-trigger {
  display: grid;
  place-items: center;
  width: var(--fpat-launcher-size, 52px);
  height: var(--fpat-launcher-size, 52px);
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--fpat-accent, #574cd5);
  color: var(--fpat-launcher-icon, #fff);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  appearance: none;
}

.fpat-shape--rounded-square .fpat-trigger {
  border-radius: 14px;
}

.fpat-trigger:hover {
  filter: brightness(0.94);
}

.fpat-trigger:focus-visible,
.fpat-root button:focus-visible,
.fpat-root select:focus-visible,
.fpat-root a:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px var(--fpat-accent, #574cd5) !important;
}

.fpat-trigger__icon,
.fpat-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.fpat-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.fpat-dialog {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: var(--fpat-panel-bg, #fff);
  color: var(--fpat-panel-text, #171717);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.fpat-position--bottom-right .fpat-dialog {
  right: 0;
  bottom: calc(var(--fpat-launcher-size, 52px) + 12px);
}

.fpat-position--bottom-left .fpat-dialog {
  left: 0;
  bottom: calc(var(--fpat-launcher-size, 52px) + 12px);
}

.fpat-position--middle-right .fpat-dialog {
  right: calc(var(--fpat-launcher-size, 52px) + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.fpat-position--middle-left .fpat-dialog {
  left: calc(var(--fpat-launcher-size, 52px) + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.fpat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px 10px 16px;
  background: var(--fpat-accent, #574cd5);
  color: var(--fpat-launcher-icon, #fff);
}

.fpat-header__title-wrap,
.fpat-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fpat-header h2 {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.fpat-back,
.fpat-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
  appearance: none;
}

.fpat-back {
  font-size: 21px;
}

.fpat-language {
  width: 58px;
  min-height: 40px;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  font: inherit;
  font-size: 13px;
}

.fpat-language option {
  background: #fff;
  color: #171717;
}

.fpat-body {
  min-height: 0;
  padding: 4px 14px 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.fpat-subview {
  padding-top: 16px;
}

.fpat-section {
  margin: 0;
  padding: 15px 0 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fpat-section:last-child {
  border-bottom: 0;
}

.fpat-section h3,
.fpat-subview > h3,
.fpat-structure-group h4,
.fpat-statement h4 {
  margin: 0 0 10px !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.fpat-section h3,
.fpat-subview > h3 {
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.045em !important;
}

.fpat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.fpat-control {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 66px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: var(--fpat-panel-bg, #fff);
  color: var(--fpat-panel-text, #171717);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.fpat-control:hover {
  border-color: var(--fpat-accent, #574cd5);
  background: rgba(var(--fpat-accent-rgb, 87, 76, 213), 0.055);
}

.fpat-control[aria-pressed="true"] {
  border-color: var(--fpat-accent, #574cd5);
  box-shadow: inset 0 0 0 1px var(--fpat-accent, #574cd5);
}

.fpat-control__glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(var(--fpat-accent-rgb, 87, 76, 213), 0.1);
  color: var(--fpat-accent, #574cd5);
  font-size: 16px;
  font-weight: 800;
}

.fpat-control__label {
  min-width: 0;
  font-weight: 650;
}

.fpat-control__state {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.fpat-control[aria-pressed="true"] .fpat-control__state {
  background: var(--fpat-accent, #574cd5);
}

.fpat-levels {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: flex;
  gap: 3px;
}

.fpat-levels span {
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.16);
}

.fpat-levels span[data-active="1"] {
  background: var(--fpat-accent, #574cd5);
}

.fpat-control--secondary {
  opacity: 0.8;
}

.fpat-select-control {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
}

.fpat-select-control select {
  min-height: 40px;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  background: var(--fpat-panel-bg, #fff);
  color: var(--fpat-panel-text, #171717);
  font: inherit;
}

.fpat-select-control small {
  grid-column: 1 / -1;
  opacity: 0.72;
  font-size: 11px;
  font-weight: 400;
}

.fpat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--fpat-panel-bg, #fff);
}

.fpat-footer__button {
  min-height: 40px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--fpat-accent, #574cd5);
  color: var(--fpat-launcher-icon, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.fpat-footer__button--quiet {
  background: transparent;
  color: var(--fpat-panel-text, #171717);
  text-decoration: underline;
}

.fpat-structure-group {
  margin: 16px 0;
}

.fpat-structure-group h4,
.fpat-statement h4 {
  font-size: 15px !important;
}

.fpat-structure-list {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.fpat-structure-list li {
  margin: 0 !important;
  padding-left: calc((var(--fpat-heading-level, 1) - 1) * 8px);
}

.fpat-structure-list button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: var(--fpat-panel-bg, #fff);
  color: var(--fpat-panel-text, #171717);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.fpat-statement {
  font-size: 13px;
  line-height: 1.55;
}

.fpat-statement p,
.fpat-statement ul {
  margin: 0 0 12px !important;
}

.fpat-statement ul {
  padding-left: 20px !important;
}

.fpat-statement__note {
  padding: 10px;
  border-left: 3px solid var(--fpat-accent, #574cd5);
  background: rgba(var(--fpat-accent-rgb, 87, 76, 213), 0.06);
}

.fpat-statement__reviewed {
  opacity: 0.78;
}

.fpat-statement-page {
  max-width: 850px;
}

.fpat-reading-line {
  position: fixed;
  z-index: 2147482998;
  top: 0;
  left: 0;
  width: 100vw;
  height: 3px;
  border-top: 2px solid #111;
  border-bottom: 1px solid #fff;
  pointer-events: none;
  transform: translateY(50vh);
}

.fpat-reading-mask {
  position: fixed;
  z-index: 2147482997;
  top: 0;
  left: 0;
  width: 100vw;
  height: 56px;
  background: transparent;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.68);
  pointer-events: none;
  transform: translateY(calc(50vh - 28px));
}

.fpat-tooltip {
  position: fixed;
  z-index: 2147482999;
  max-width: min(360px, calc(100vw - 16px));
  padding: 7px 10px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  font: 600 13px/1.4 system-ui, sans-serif;
  pointer-events: none;
}

.fpat-skip-links {
  position: fixed;
  z-index: 2147483647;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 6px;
}

.fpat-skip-links a {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fpat-skip-links a:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border: 3px solid #fff;
  border-radius: 6px;
  outline: 3px solid #111;
  background: #111;
  color: #fff;
  font: 700 15px/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.fpat-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.fpat-word-prefix {
  font-weight: 800 !important;
}

body.fpat-dialog-open {
  overflow: hidden;
}

html[data-fpat-text-size="1"] { font-size: 112.5% !important; }
html[data-fpat-text-size="2"] { font-size: 125% !important; }
html[data-fpat-text-size="3"] { font-size: 150% !important; }

html[data-fpat-line-height="1"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label):not(.fpat-root *) { line-height: 1.65 !important; }
html[data-fpat-line-height="2"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label):not(.fpat-root *) { line-height: 1.85 !important; }
html[data-fpat-line-height="3"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label):not(.fpat-root *) { line-height: 2.05 !important; }

html[data-fpat-letter-spacing="1"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label, a):not(.fpat-root *) { letter-spacing: 0.04em !important; word-spacing: 0.08em !important; }
html[data-fpat-letter-spacing="2"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label, a):not(.fpat-root *) { letter-spacing: 0.08em !important; word-spacing: 0.16em !important; }
html[data-fpat-letter-spacing="3"] body :where(p, li, dd, dt, blockquote, figcaption, td, th, label, a):not(.fpat-root *) { letter-spacing: 0.12em !important; word-spacing: 0.24em !important; }

html[data-fpat-readable-font="1"] body { font-family: Arial, Helvetica, system-ui, sans-serif !important; }
html[data-fpat-readable-font="1"] body :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, caption, th, td, a, button, input, select, textarea, label, summary):not(.fpat-root *) {
  font-family: inherit !important;
}
html[data-fpat-dyslexia-font="1"] body {
  font-family: var(--fpat-dyslexia-font, Verdana, Arial, sans-serif) !important;
}
html[data-fpat-dyslexia-font="1"] body :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, caption, th, td, a, button, input, select, textarea, label, summary):not(.fpat-root *) {
  font-family: inherit !important;
  letter-spacing: 0.035em !important;
  word-spacing: 0.08em !important;
}
.fpat-root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }

@media (pointer: fine) {
  html[data-fpat-larger-cursor="1"] body,
  html[data-fpat-larger-cursor="1"] body *:not(.fpat-root):not(.fpat-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 3v29l8-8 6 13 5-3-6-12h12z' fill='%23fff' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, auto !important;
  }
}

html[data-fpat-hide-images="1"] body img { opacity: 0 !important; }
html[data-fpat-hide-images="1"] body a img,
html[data-fpat-hide-images="1"] body button img,
html[data-fpat-hide-images="1"] .fpat-root img { opacity: 1 !important; }
html[data-fpat-hide-images="1"] body *:not(.fpat-root):not(.fpat-root *) { background-image: none !important; }

html[data-fpat-highlight-links="1"] body a:not(.fpat-root a):not(.fpat-skip-links a) {
  text-decoration: underline !important;
  text-decoration-thickness: 0.16em !important;
  text-underline-offset: 0.18em !important;
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}

html[data-fpat-stop-animations="1"] *,
html[data-fpat-stop-animations="1"] *::before,
html[data-fpat-stop-animations="1"] *::after {
  scroll-behavior: auto !important;
  animation-delay: 0s !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-delay: 0s !important;
  transition-duration: 0.001ms !important;
  caret-color: auto !important;
}

html[data-fpat-contrast="1"] { --fpat-filter-contrast: contrast(1.25); }
html[data-fpat-contrast="2"] { --fpat-filter-contrast: contrast(1.5); }
html[data-fpat-brightness="1"] { --fpat-filter-brightness: brightness(0.82); }
html[data-fpat-brightness="2"] { --fpat-filter-brightness: brightness(1.18); }
html[data-fpat-saturation="1"] { --fpat-filter-saturation: saturate(0.45); }
html[data-fpat-saturation="2"] { --fpat-filter-saturation: saturate(1.55); }
html[data-fpat-invert-colors="1"] { --fpat-filter-invert: invert(1); }
html[data-fpat-grayscale="1"] { --fpat-filter-grayscale: grayscale(1); }
html[data-fpat-color-filter="red-green"] { --fpat-filter-color: url("#fpat-filter-red-green"); }
html[data-fpat-color-filter="green-red"] { --fpat-filter-color: url("#fpat-filter-green-red"); }
html[data-fpat-color-filter="blue-yellow"] { --fpat-filter-color: url("#fpat-filter-blue-yellow"); }

html[data-fpat-visual-active="1"] body > *:not(#fpat-root):not(#wpadminbar):not(.fpat-svg-filters):not(.fpat-skip-links) {
  filter: var(--fpat-filter-color) var(--fpat-filter-invert) var(--fpat-filter-brightness) var(--fpat-filter-contrast) var(--fpat-filter-saturation) var(--fpat-filter-grayscale) !important;
}

@media (max-width: 520px) {
  .fpat-root {
    transform: none;
  }

  .fpat-position--middle-right,
  .fpat-position--middle-left {
    top: auto;
    bottom: var(--fpat-offset-y, 16px);
  }

  .fpat-position--middle-right { right: var(--fpat-offset-x, 16px); left: auto; }
  .fpat-position--middle-left { left: var(--fpat-offset-x, 16px); right: auto; }

  .fpat-dialog,
  .fpat-position--bottom-right .fpat-dialog,
  .fpat-position--bottom-left .fpat-dialog,
  .fpat-position--middle-right .fpat-dialog,
  .fpat-position--middle-left .fpat-dialog {
    position: fixed;
    inset: auto 8px 8px 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    transform: none;
  }

  .fpat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .fpat-grid { grid-template-columns: 1fr; }
  .fpat-select-control { grid-template-columns: 1fr; }
  .fpat-select-control small { grid-column: 1; }
  .fpat-header h2 { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .fpat-root *,
  .fpat-root *::before,
  .fpat-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .fpat-root,
  .fpat-skip-links,
  .fpat-reading-line,
  .fpat-reading-mask,
  .fpat-tooltip {
    display: none !important;
  }
}
