/* Sportiva 3.5 — palettes shared by management and athlete portals.
 * Historical preference keys stay stable across upgrades.
 * Explicit palettes take precedence over inherited organization inline colors;
 * Arena keeps the organization palette unchanged. */

:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="biazon"]{--s2-card:#fff;--s2-card-2:#f7f9fc;--s2-text:#17283f;--s2-muted:#61718a;--s2-line:#e2e8f0}

.s2p-shell[data-biazon-theme="biazon"]{--s2p-navy:var(--sportiva-primary,#102f63);--s2p-navy-dark:var(--s2-navy-2,#102448);--s2p-blue:var(--sportiva-secondary,#2563eb);--s2p-orange:var(--sportiva-accent,#f47b20);--s2p-bg:var(--sportiva-bg,#f4f7fb)}

html[data-biazon-theme="shotokan"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="shotokan"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="shotokan"] [style*="--sportiva-primary"]{
  --s2-navy:#521621!important;
  --s2-navy-2:#271018!important;
  --s2-blue:#b52a40!important;
  --s2-blue-soft:#fff0f3!important;
  --s2-orange:#c12e43!important;
  --s2-orange-soft:#fff0f3!important;
  --s2-bg:#faf6f7!important;
  --s2-card:#ffffff!important;
  --s2-card-2:#fff9fa!important;
  --s2-text:#2d2026!important;
  --s2-muted:#705c65!important;
  --s2-line:#e9dce1!important;
  --s2p-navy:#521621!important;
  --s2p-navy-dark:#271018!important;
  --s2p-blue:#b52a40!important;
  --s2p-blue-soft:#fff0f3!important;
  --s2p-orange:#c12e43!important;
  --s2p-orange-soft:#fff0f3!important;
  --s2p-ink:#2d2026!important;
  --s2p-muted:#705c65!important;
  --s2p-bg:#faf6f7!important;
  --s2p-card:#ffffff!important;
  --s2p-card-2:#fff9fa!important;
  --s2p-line:#e9dce1!important;
  --sportiva-primary:#521621!important;
  --sportiva-secondary:#b52a40!important;
  --sportiva-accent:#c12e43!important;
  --sportiva-bg:#faf6f7!important;
}

html[data-biazon-theme="kuro"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="kuro"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="kuro"] [style*="--sportiva-primary"]{
  --s2-navy:#172236!important;
  --s2-navy-2:#0d1523!important;
  --s2-blue:#9abaff!important;
  --s2-blue-soft:#1f304e!important;
  --s2-orange:#9abaff!important;
  --s2-orange-soft:#24334d!important;
  --s2-bg:#0d1523!important;
  --s2-card:#172131!important;
  --s2-card-2:#1d2a3e!important;
  --s2-text:#edf3fc!important;
  --s2-muted:#b2c0d4!important;
  --s2-line:#344359!important;
  --s2p-navy:#172236!important;
  --s2p-navy-dark:#0d1523!important;
  --s2p-blue:#9abaff!important;
  --s2p-blue-soft:#1f304e!important;
  --s2p-orange:#9abaff!important;
  --s2p-orange-soft:#24334d!important;
  --s2p-ink:#edf3fc!important;
  --s2p-muted:#b2c0d4!important;
  --s2p-bg:#0d1523!important;
  --s2p-card:#172131!important;
  --s2p-card-2:#1d2a3e!important;
  --s2p-line:#344359!important;
  --sportiva-primary:#172236!important;
  --sportiva-secondary:#9abaff!important;
  --sportiva-accent:#9abaff!important;
  --sportiva-bg:#0d1523!important;
  --s2-green:#67d6ad!important;
  --s2-red:#ff9d9d!important;
  --s2-yellow:#f1cd79!important;
}

html[data-biazon-theme="tatame"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="tatame"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="tatame"] [style*="--sportiva-primary"]{
  --s2-navy:#163e35!important;
  --s2-navy-2:#102b25!important;
  --s2-blue:#237864!important;
  --s2-blue-soft:#e8f3ee!important;
  --s2-orange:#9a4d30!important;
  --s2-orange-soft:#fff0e6!important;
  --s2-bg:#f4f7f3!important;
  --s2-card:#ffffff!important;
  --s2-card-2:#f6faf6!important;
  --s2-text:#1d332c!important;
  --s2-muted:#5d7266!important;
  --s2-line:#dce6df!important;
  --s2p-navy:#163e35!important;
  --s2p-navy-dark:#102b25!important;
  --s2p-blue:#237864!important;
  --s2p-blue-soft:#e8f3ee!important;
  --s2p-orange:#9a4d30!important;
  --s2p-orange-soft:#fff0e6!important;
  --s2p-ink:#1d332c!important;
  --s2p-muted:#5d7266!important;
  --s2p-bg:#f4f7f3!important;
  --s2p-card:#ffffff!important;
  --s2p-card-2:#f6faf6!important;
  --s2p-line:#dce6df!important;
  --sportiva-primary:#163e35!important;
  --sportiva-secondary:#237864!important;
  --sportiva-accent:#9a4d30!important;
  --sportiva-bg:#f4f7f3!important;
}

html[data-biazon-theme="ouro"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="ouro"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="ouro"] [style*="--sportiva-primary"]{
  --s2-navy:#28251f!important;
  --s2-navy-2:#171610!important;
  --s2-blue:#89631c!important;
  --s2-blue-soft:#f7f0df!important;
  --s2-orange:#89631c!important;
  --s2-orange-soft:#faf1dd!important;
  --s2-bg:#faf8f2!important;
  --s2-card:#ffffff!important;
  --s2-card-2:#fcfaf5!important;
  --s2-text:#302c24!important;
  --s2-muted:#756b58!important;
  --s2-line:#e7e1d5!important;
  --s2p-navy:#28251f!important;
  --s2p-navy-dark:#171610!important;
  --s2p-blue:#89631c!important;
  --s2p-blue-soft:#f7f0df!important;
  --s2p-orange:#89631c!important;
  --s2p-orange-soft:#faf1dd!important;
  --s2p-ink:#302c24!important;
  --s2p-muted:#756b58!important;
  --s2p-bg:#faf8f2!important;
  --s2p-card:#ffffff!important;
  --s2p-card-2:#fcfaf5!important;
  --s2p-line:#e7e1d5!important;
  --sportiva-primary:#28251f!important;
  --sportiva-secondary:#89631c!important;
  --sportiva-accent:#89631c!important;
  --sportiva-bg:#faf8f2!important;
}

html[data-biazon-theme="branco"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="branco"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="branco"] [style*="--sportiva-primary"]{
  --s2-navy:#28374b!important;
  --s2-navy-2:#1b283a!important;
  --s2-blue:#3261b8!important;
  --s2-blue-soft:#eaf0fc!important;
  --s2-orange:#3261b8!important;
  --s2-orange-soft:#eaf0fc!important;
  --s2-bg:#f8fafc!important;
  --s2-card:#ffffff!important;
  --s2-card-2:#f3f6fa!important;
  --s2-text:#1c2c42!important;
  --s2-muted:#61718a!important;
  --s2-line:#dfe6ef!important;
  --s2p-navy:#28374b!important;
  --s2p-navy-dark:#1b283a!important;
  --s2p-blue:#3261b8!important;
  --s2p-blue-soft:#eaf0fc!important;
  --s2p-orange:#3261b8!important;
  --s2p-orange-soft:#eaf0fc!important;
  --s2p-ink:#1c2c42!important;
  --s2p-muted:#61718a!important;
  --s2p-bg:#f8fafc!important;
  --s2p-card:#ffffff!important;
  --s2p-card-2:#f3f6fa!important;
  --s2p-line:#dfe6ef!important;
  --sportiva-primary:#28374b!important;
  --sportiva-secondary:#3261b8!important;
  --sportiva-accent:#3261b8!important;
  --sportiva-bg:#f8fafc!important;
}

html[data-biazon-theme="sakura"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="sakura"],
:is(.s2-app,.s2p-shell,.s2-public-shell)[data-biazon-theme="sakura"] [style*="--sportiva-primary"]{
  --s2-navy:#442a51!important;
  --s2-navy-2:#2a1a35!important;
  --s2-blue:#89528f!important;
  --s2-blue-soft:#f6edf7!important;
  --s2-orange:#89528f!important;
  --s2-orange-soft:#f6edf7!important;
  --s2-bg:#faf7fb!important;
  --s2-card:#ffffff!important;
  --s2-card-2:#fcf9fd!important;
  --s2-text:#32223d!important;
  --s2-muted:#766180!important;
  --s2-line:#e8dfeb!important;
  --s2p-navy:#442a51!important;
  --s2p-navy-dark:#2a1a35!important;
  --s2p-blue:#89528f!important;
  --s2p-blue-soft:#f6edf7!important;
  --s2p-orange:#89528f!important;
  --s2p-orange-soft:#f6edf7!important;
  --s2p-ink:#32223d!important;
  --s2p-muted:#766180!important;
  --s2p-bg:#faf7fb!important;
  --s2p-card:#ffffff!important;
  --s2p-card-2:#fcf9fd!important;
  --s2p-line:#e8dfeb!important;
  --sportiva-primary:#442a51!important;
  --sportiva-secondary:#89528f!important;
  --sportiva-accent:#89528f!important;
  --sportiva-bg:#faf7fb!important;
}


/* A comfortable theme chooser; remains usable without JavaScript. */
.s2-theme-popover{border-radius:20px!important;border:1px solid var(--s2-line,#e2e8f0)!important;box-shadow:0 24px 70px #0d1d3730!important}
.s2-theme-popover .s2-theme-head{padding:18px 18px 14px;border-bottom:1px solid var(--s2-line,#e2e8f0)}
.s2-theme-popover .s2-theme-head strong{font-size:17px;font-weight:700;letter-spacing:-.025em}
.s2-theme-popover .s2-theme-head small{display:block;max-width:28ch;line-height:1.5;font-size:12px;margin-top:4px}
.s2-theme-popover .s2-theme-grid{padding:12px;gap:8px}
.s2-theme-popover .s2-theme-option{min-height:78px;border-radius:13px;padding:12px 30px 12px 12px!important;gap:12px;box-shadow:none;transition:background .16s,border-color .16s}
.s2-theme-popover .s2-theme-option strong{font-size:14px;font-weight:700;letter-spacing:0}
.s2-theme-popover .s2-theme-option small{font-size:12px;font-weight:400;line-height:1.45}
.s2-theme-popover .s2-theme-swatches{height:44px;border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000d}
.s2-theme-popover .s2-theme-admin{padding:0 14px 16px}
.s2-theme-popover .s2-theme-admin button{min-height:44px;border-radius:11px;font-size:13px;font-weight:650}
.s2-theme-popover .s2-theme-default-badge{font-size:10px!important;letter-spacing:.03em;text-transform:uppercase}
.s2-theme-popover .s2-theme-option:focus-visible{outline:3px solid var(--s2-blue,#2563eb);outline-offset:2px}
.sportiva-ui-icon{width:20px;height:20px;display:block;flex:0 0 20px}
/* Older dark-mode rules use literal black backgrounds; unify the primary surfaces. */
html[data-biazon-theme="kuro"] body,
html[data-biazon-theme="kuro"] .s2-app{background:var(--s2-bg)!important;color:var(--s2-text)!important}
.s2-app[data-biazon-theme="kuro"] :is(.sportiva-card,.sportiva-kpis article,.sportiva-intel-summary article,.sportiva-quick>div>a,.sportiva-settings-form,.sportiva-demo-banner,.sportiva-review article,.sportiva-ob-form){background:var(--s2-card)!important;border-color:var(--s2-line)!important;color:var(--s2-text)!important}
.s2-app[data-biazon-theme="kuro"] :is(.sportiva-funnel>div,.sportiva-funnel-rate,.sportiva-health,.sportiva-link-btn,.sportiva-kpis article>div>span){background:var(--s2-card-2)!important;color:var(--s2-text)!important;border-color:var(--s2-line)!important}
.s2-app[data-biazon-theme="kuro"] .sportiva-demo-banner{border-left-color:#d5b66a!important}
.s2-app[data-biazon-theme="kuro"] .sportiva-kpis p.is-good{color:var(--s2-green)!important}
.s2-app[data-biazon-theme="kuro"] .sportiva-kpis p.is-bad{color:var(--s2-red)!important}
@media(prefers-reduced-motion:reduce){.s2-theme-popover,.s2-theme-option{transition:none!important}}

.s2-app[data-biazon-theme="kuro"]{--s2-on-primary:#0d1523!important}
html[data-biazon-theme="kuro"] .s2-app .s2-sidebar{background:linear-gradient(165deg,var(--s2-navy),var(--s2-navy-2))!important}
html[data-biazon-theme="kuro"] .s2-app .s2-sidebar-user{background:rgba(0,0,0,.12)!important;border-color:var(--s2-line)!important}
