/* Legacy brand font import removed: typography.css owns all UI type in v1.8.8. */

:root{
  --helium-color-canvas:var(--sa-canvas,var(--he-p-F7F7F6));
  --helium-color-canvas-health:var(--sa-canvas-health,var(--he-p-E7E8E7));
  --helium-color-porcelain:var(--sa-porcelain,var(--he-p-FFFFFF));
  --helium-color-surface:var(--he-p-FFFFFF80);
  --helium-color-surface-strong:var(--he-p-FFFFFF9E);
  --helium-color-surface-soft:var(--he-p-FFFFFF6B);
  --helium-color-border:var(--he-p-FFFFFF6B);
  --helium-color-border-strong:var(--he-p-FFFFFF94);
  --helium-color-ink:var(--sa-ink,var(--he-p-242627));
  --helium-color-muted:var(--sa-muted,var(--he-p-72767A));
  --helium-color-lime:var(--sa-lime,var(--he-p-0062CB));
  --helium-color-green:var(--sa-green,var(--he-p-348BD3));
  --helium-color-forest:var(--sa-forest,var(--he-p-123A5C));
  --helium-color-lilac:var(--sa-lilac,var(--he-p-AA8FE7));
  --helium-color-violet:var(--sa-violet,var(--he-p-8B8BDF));
  --helium-color-pink:var(--sa-pink,var(--he-p-F292E3));
  --helium-color-peach:var(--sa-peach,var(--he-p-F5CBF8));
  --helium-color-apricot:var(--sa-apricot,var(--he-p-FED2AD));
  --helium-color-orange:var(--sa-orange,var(--he-p-FFA12B));
  --helium-glass-blur:24px;
  --helium-glass-shadow:0 18px 48px -30px var(--he-p-24262729), 0 4px 18px -12px var(--he-p-24262714);
  --helium-radius-card:32px;
  --helium-radius-control:22px;
  --sa-font-display:"Funnel Display", Inter, system-ui, sans-serif;
  /* Backward compatible aliases */
  --foam:var(--helium-color-canvas-health);
  --paper:var(--helium-color-surface-strong);
  --current:var(--helium-color-lime);
  --aqua:var(--helium-color-green);
  --brand-midnight:var(--helium-color-forest);
  --brand-azure:var(--helium-color-green);
  --brand-aqua:var(--helium-color-lilac);
}
html,body{background:var(--helium-color-canvas)!important;color:var(--helium-color-ink)!important;}
body{font-family:var(--helium-font-family,system-ui,sans-serif)!important;}
:is(h1,h2,h3,.hero-copy h1,.portal-hero h1,.section-head h2,.lower-heading h2,.hm-intro h1,.hm-pattern h2,.play-hero h1,.play-card h2,.lab-title,.tile-art strong,.main-title,.health-header-row h1){font-family:var(--sa-font-display)!important;letter-spacing:-.05em!important;}
:is(.brand-font,.play-kicker,.hm-eyebrow,.section .eyebrow,.tile-label,.lower-heading h2,.hm-pattern-num,.hero-subtitle){font-family:var(--sa-font-display)!important;}

/* White cards -> frosted glass */
:is(.stat,.lower-card,.small-biomarker,.product-card,.results-card,.health-action-card,.health-small-card,.screen-tile,.play-card,.hm-pattern,.hm-guide,.hm-tab-result,.hm-gliding-result,.hm-stack-viewport,.hm-wizard,.hm-fluid,.hm-switch-wrap,.hm-search-results,.hm-fold,.hm-fold-head,.hm-preview,.hm-overlay-detail,.hm-side-bottom,.lab-shell,.he-floating-menu,.dialog,.sa-card--glass,.card,.panel,.surface-card,.content-card,.hero-stat,.sidebar-card,.device-tabs button,.select-label select,.view-switch .views-trigger){
  background:var(--helium-color-surface)!important;
  backdrop-filter:blur(var(--helium-glass-blur)) saturate(1.06)!important;
  -webkit-backdrop-filter:blur(var(--helium-glass-blur)) saturate(1.06)!important;
  border:1px solid var(--helium-color-border)!important;
  box-shadow:var(--helium-glass-shadow)!important;
}
:is(.stat,.lower-card,.small-biomarker,.product-card,.results-card,.health-action-card,.screen-tile,.play-card,.hm-pattern,.hm-guide,.hm-tab-result,.hm-gliding-result,.hm-stack-viewport,.hm-wizard,.hm-fluid,.hm-switch-wrap,.hm-search-results,.hm-fold,.hm-fold-head,.hm-preview,.hm-overlay-detail,.lab-shell,.dialog,.sa-card--glass,.card,.panel,.surface-card,.content-card,.hero-stat,.sidebar-card){border-radius:var(--helium-radius-card)!important;corner-shape:squircle!important;}
:is(.btn,.hm-btn,.play-primary,.play-secondary,.hm-replay,.iconbtn,.small-action,.see-all,.lower-link,.hm-icon-btn,.hm-close,.dialog-close,.action,.chip,.badge,.timeline-bubble,.he-filter-trigger,.he-mode-button,.he-job-tags span,.device-tabs button,.view-switch .views-trigger,.hm-tabs,.hm-toolbar,.hm-density-controls,.hm-garland-tabs,.play-tabs){border-radius:var(--helium-radius-control)!important;corner-shape:squircle!important;}

/* Remove leftover blue system accents */
:is(.hm-primary,.play-primary,.helium-motion-cta,.hm-brand-glyph,.hm-current,.hm-gliding-scroll button.active,.hm-switch[aria-checked=true],.play-quick-toggle,.view-switch,.challenge-status,.yellow-tag,.btn.lime,.btn-primary,.cta-primary){background:var(--helium-color-lime)!important;color:var(--helium-color-ink)!important;}
:is(.hm-primary:hover,.play-primary:hover,.helium-motion-cta:hover,.btn.lime:hover,.btn-primary:hover,.cta-primary:hover){background:color-mix(in oklab,var(--helium-color-lime) 82%, white)!important;}
:is(.hm-quiet,.play-secondary,.device-tabs button.active,.he-mode-button[aria-pressed=true],.hm-tabs button[aria-selected=true],.hm-toolbar button.active,.hm-density-controls button[aria-pressed=true],.hm-garland-tabs button[aria-selected=true],.play-tabs button[aria-selected=true],.hm-tab-ind,.play-tab-indicator){background:var(--he-p-FFFFFF94)!important;color:var(--helium-color-forest)!important;}
:is(.hm-intro h1 em,.play-hero h1 em,.helium-motion-promo h2 em,.hm-pattern h2,.section-head h2 a,.text-link,.lower-link,.portal-footer a,.main-footer a,.health-footer a,.hm-topbar a:last-child){color:var(--helium-color-forest)!important;}
:is(.hm-intro-bars i,.play-hero-pulse i,.hm-brand-glyph,.hm-intro-number span,.hm-gliding-scroll button.active,.play-slider-wrap output,.hm-range-wrap output){background-color:var(--helium-color-forest)!important;}
:is(.play-tab-detail small,.hm-eyebrow,.hm-pattern-num,.lower-card>p,.section-head p,.portal-footer,.main-footer,.health-footer,.hm-topbar,.hm-side-link,.hm-sidebar-patterns a,.hm-selected,.hm-search-results button small,.hm-guide p,.play-card p,.play-kicker){color:color-mix(in oklab,var(--helium-color-ink) 65%, white)!important;}

/* Carousel + general squircle tightening; preserve true circular charts */
:is(.hm-carousel,.hm-cards-track,.hm-float-card,.play-slide-viewport,.play-slide,.play-slide,.hm-collection-card,.hm-swipe-card,.hm-elong-card,.hm-adaptive a,.hm-garland-row,.hm-range-wrap output,.play-slider-wrap output,.hm-intro-glass,.play-hero,.play-card,.challenge-card,.smart-forecast,.big-challenge){border-radius:34px!important;corner-shape:squircle!important;}
.hm-float-card,.play-slide{min-height:230px;background:linear-gradient(145deg,var(--he-p-FFFFFF8F),var(--he-p-FFFFFF66))!important;border:1px solid var(--helium-color-border)!important;box-shadow:var(--helium-glass-shadow)!important;}
.hm-carousel .hm-float-card.is-active,.hm-carousel .hm-float-card[aria-current="true"],.play-slide-viewport .play-slide{background:linear-gradient(145deg,color-mix(in oklab,var(--helium-color-green) 12%,white),color-mix(in oklab,var(--helium-color-lilac) 22%,white))!important;}

/* Better sliders */
:is(.hm-range-wrap,.play-slider-wrap){position:relative;}
:is(.hm-range-wrap input[type="range"],.play-slider-wrap input[type="range"],input.range,.range){-webkit-appearance:none;appearance:none;width:100%;height:14px;border-radius:999px;outline:none;border:0;background:linear-gradient(90deg,var(--helium-color-forest) 0 var(--hm-percent,50%),var(--he-p-24262729) var(--hm-percent,50%) 100%)!important;box-shadow:inset 0 1px 1px var(--he-p-FFFFFF80), inset 0 0 0 1px var(--he-p-24262714)!important;}
:is(.hm-range-wrap input[type="range"],.play-slider-wrap input[type="range"],input.range,.range)::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:32px;height:32px;border-radius:16px;corner-shape:squircle;background:radial-gradient(circle at 32% 28%,var(--he-p-FFFFFF) 0 22%,var(--helium-color-lime) 24% 70%,color-mix(in oklab,var(--helium-color-forest) 28%,white) 100%);border:3px solid var(--he-p-FFFFFFEB);box-shadow:0 10px 24px -16px var(--he-p-2426276B), 0 2px 8px var(--he-p-0F233E38);cursor:pointer;}
:is(.hm-range-wrap input[type="range"],.play-slider-wrap input[type="range"],input.range,.range)::-moz-range-thumb{width:32px;height:32px;border:3px solid var(--he-p-FFFFFFEB);border-radius:16px;background:var(--helium-color-lime);box-shadow:0 10px 24px -16px var(--he-p-2426276B), 0 2px 8px var(--he-p-0F233E38);cursor:pointer;}
:is(.hm-range-wrap input[type="range"],.play-slider-wrap input[type="range"],input.range,.range)::-webkit-slider-runnable-track{height:14px;border-radius:999px;background:transparent;}
:is(.hm-range-wrap input[type="range"],.play-slider-wrap input[type="range"],input.range,.range)::-moz-range-track{height:14px;border-radius:999px;background:var(--he-p-24262724);}
.hm-range-wrap output,.play-slider-wrap output{background:var(--helium-color-forest)!important;color:white!important;padding:10px 14px!important;border-radius:18px!important;box-shadow:0 16px 30px -18px var(--he-p-0F233E59)!important;}
.play-slider-value,.hm-range-value{background:var(--he-p-FFFFFF75)!important;border:1px solid var(--helium-color-border)!important;border-radius:28px!important;padding:24px 26px!important;backdrop-filter:blur(20px) saturate(1.04)!important;-webkit-backdrop-filter:blur(20px) saturate(1.04)!important;}

/* Specific fixes */
.donut-chart{position:relative;background:conic-gradient(var(--helium-color-lime) 0 55%,var(--helium-color-lilac) 55% 85%,var(--he-p-5F6D7F) 85% 100%)!important;}
.donut-chart:before{background:color-mix(in oklab,var(--helium-color-forest) 94%, white)!important;}
.play-topbar,.hm-topbar{background:var(--he-p-FFFFFF94)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;}
.play-topbar,.hm-topbar,.hm-sidebar,.side-panel,.finance-sidebar,.health-aside,.health-sidebar,.system-nav{border-color:var(--he-p-FFFFFF57)!important;}
.hm-sidebar,.finance-sidebar,.health-aside,.health-sidebar,.system-nav{background:var(--he-p-FFFFFF70)!important;backdrop-filter:blur(24px)!important;-webkit-backdrop-filter:blur(24px)!important;}
.hm-pattern,.play-card{overflow:hidden!important;}
.hm-pattern .hm-demo,.play-card{min-width:0!important;}
.play-card .play-tabs,.hm-tabs,.hm-toolbar,.hm-density-controls,.hm-garland-tabs{padding:6px!important;background:var(--he-p-FFFFFF61)!important;border:1px solid var(--he-p-FFFFFF57)!important;}

/* Kill common old blue tokens where still referenced */
.helium-brand-swatch code,.hm-side-link:hover,.hm-current span,.he-job-glyph,.hm-adaptive a::before,.hm-garland-row span,.hm-preview,.hm-fold-head strong,.hm-dotmetric{color:var(--helium-color-forest)!important;}
.play-hero-pulse i:nth-child(2n),.hm-intro-bars i:nth-child(2n){background:var(--helium-color-lilac)!important;}
.play-hero-pulse i:nth-child(3n),.hm-intro-bars i:nth-child(3n){background:var(--helium-color-lime)!important;}

/* Version marker friendly */
.helium-brand-palette-heading h3{font-family:var(--sa-font-display)!important;}
