/* BricksFA Theme Runtime — scoped design tokens, no Jet Panel selectors. */
html[data-bfa-theme]{color-scheme:light;background:var(--bfa-background,#fafaf7)}
html[data-bfa-theme="dark"]{color-scheme:dark}
html[data-bfa-theme] body.bfa-theme-body{background-color:var(--bfa-background,#fafaf7);color:var(--bfa-foreground,#111827)}
@media(prefers-reduced-motion:reduce){html.bfa-theme-ready body,html.bfa-theme-ready .bfa-theme-surface,html.bfa-theme-ready [class*="bfa-"]{transition:none!important}}

/* Optional helpers for native Bricks composition. */
.bfa-theme-bg{background-color:var(--bfa-background)!important;color:var(--bfa-foreground)!important}
.bfa-theme-card{background-color:var(--bfa-card)!important;color:var(--bfa-card-foreground)!important;border-color:var(--bfa-border)!important}
.bfa-theme-muted{background-color:var(--bfa-muted)!important;color:var(--bfa-muted-foreground)!important}
.bfa-theme-accent{background-color:var(--bfa-accent)!important;color:var(--bfa-accent-foreground)!important}
.bfa-theme-primary{background-color:var(--bfa-primary)!important;color:var(--bfa-primary-foreground)!important}
.bfa-theme-secondary{background-color:var(--bfa-secondary)!important;color:var(--bfa-secondary-foreground)!important}
.bfa-theme-border{border-color:var(--bfa-border)!important}
.bfa-theme-text{color:var(--bfa-foreground)!important}
.bfa-theme-muted-text{color:var(--bfa-muted-foreground)!important}
.bfa-theme-ring:focus-visible{outline:2px solid var(--bfa-ring)!important;outline-offset:3px}

/* Theme switcher */
.bfa-theme-switcher{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-family:inherit;color:var(--bfa-foreground,#111827)}
.bfa-theme-switcher[data-align="center"]{justify-content:center}.bfa-theme-switcher[data-align="end"]{justify-content:flex-end}
.bfa-theme-switcher__segmented{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--bfa-border,#e5e7eb);border-radius:12px;background:var(--bfa-card,#fff);padding:4px;box-shadow:0 4px 18px rgba(15,23,42,.035)}
.bfa-theme-switcher__btn{appearance:none;-webkit-appearance:none;display:inline-flex;min-width:38px;min-height:36px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;background:transparent;padding:7px 10px;color:var(--bfa-muted-foreground,#6b7280);font:inherit;font-size:12px;font-weight:800;line-height:1;cursor:pointer;transition:background-color .16s ease,color .16s ease,transform .16s ease}
.bfa-theme-switcher__btn:hover{background:var(--bfa-muted,#f3f4f6);color:var(--bfa-foreground,#111827)}
.bfa-theme-switcher__btn.is-active{background:var(--bfa-primary,#facc15);color:var(--bfa-primary-foreground,#111827)}
.bfa-theme-switcher__btn:focus-visible,.bfa-theme-switcher__select:focus-visible{outline:2px solid var(--bfa-ring,#facc15);outline-offset:2px}
.bfa-theme-switcher__icon{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center}.bfa-theme-switcher__icon svg{display:block;width:100%;height:100%;stroke:currentColor}
.bfa-theme-switcher[data-style="icons"] .bfa-theme-switcher__btn{width:38px;padding:7px}.bfa-theme-switcher[data-style="icons"] .bfa-theme-switcher__label{display:none}
.bfa-theme-switcher__select{min-height:40px;border:1px solid var(--bfa-border,#e5e7eb);border-radius:10px;background:var(--bfa-card,#fff);padding:0 12px;color:var(--bfa-card-foreground,#111827);font:inherit;font-size:13px;font-weight:750}
.bfa-theme-switcher__toggle{appearance:none;display:inline-flex;min-height:40px;align-items:center;gap:9px;border:1px solid var(--bfa-border,#e5e7eb);border-radius:999px;background:var(--bfa-card,#fff);padding:5px 10px 5px 6px;color:var(--bfa-card-foreground,#111827);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.bfa-theme-switcher__toggle-track{position:relative;width:42px;height:24px;border-radius:999px;background:var(--bfa-muted,#f3f4f6)}
.bfa-theme-switcher__toggle-knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--bfa-primary,#facc15);transition:transform .18s ease}
[data-bfa-theme="dark"] .bfa-theme-switcher__toggle-knob{transform:translateX(18px)}
@media(max-width:767px){.bfa-theme-switcher__btn{min-width:36px;min-height:34px;padding:6px 8px}.bfa-theme-switcher__label{font-size:11px}}
