/* CHIEL_WOW_GOLD_V140 | Premium Gold
   Nieuwe visuele laag voor CHIEL HOME en de gekoppelde CHIEL-apps.
   Presentatie uitsluitend: geen Homey-, camera-, video-, 3D-, status- of API-logica.
   Scope is expliciet: html[data-chiel-wow="140"].
   Ontwerp: champagne-goud, diepe inkt, zacht glas, warme lichtval.
*/
html[data-chiel-wow="140"]{
  color-scheme:dark;
  --wow-night:#0c0b09;
  --wow-ink:#16130e;
  --wow-surface:#241e14;
  --wow-raised:#34291a;
  --wow-gold:#ffd978;
  --wow-gold-soft:#ffe9b2;
  --wow-gold-deep:#bd872b;
  --wow-line:rgba(246,202,102,.27);
  --wow-line-strong:rgba(255,220,135,.62);
  --wow-text:#fff8e9;
  --wow-muted:#cfc3ad;
  --wow-shadow:0 22px 65px rgba(0,0,0,.33);
  --bg:#0c0b09;
  --bg-2:#19150e;
  --panel:rgba(37,30,19,.91);
  --panel-strong:rgba(48,38,22,.94);
  --card:rgba(40,32,20,.95);
  --card2:rgba(53,40,23,.95);
  --line:rgba(246,202,102,.24);
  --line-strong:rgba(255,216,127,.49);
  --text:#fff8e9;
  --muted:#cfc3ad;
  --soft:#ab9b80;
  --blue:#ffd978;
  --blue-2:#e4af4a;
  --sea:#ffd978;
  --gold:#ffe1a0;
  --accent:#ffd978;
  --primary:#ffd978;
  --v2-cyan:#ffe0a0;
  --v2-blue:#ffe6b0;
  --v2-border:rgba(255,219,130,.32);
  --v2-ink:#fff7e8;
  --chiel-bg:#0c0b09;
  --chiel-bg-deep:#080908;
  --chiel-surface:#241e14;
  --chiel-surface-raised:#3b2d1a;
  --chiel-surface-soft:#2b2418;
  --chiel-border:rgba(246,202,102,.27);
  --chiel-border-strong:rgba(255,219,134,.52);
  --chiel-text:#fff8e9;
  --chiel-text-muted:#cfc3ad;
  --chiel-blue:#ffd978;
  --chiel-gold:#ffe0a0;
  --chiel-yellow:#ffd978;
  --radius-xl:30px;
  --radius-lg:24px;
}
html[data-chiel-wow="140"] body{
  color:var(--wow-text)!important;
  background:
    radial-gradient(ellipse 50% 36% at 84% -6%,rgba(196,134,38,.20),transparent 79%),
    radial-gradient(ellipse 35% 40% at -12% 55%,rgba(126,88,31,.10),transparent 84%),
    linear-gradient(154deg,#11100d 0%,#0c0d0c 49%,#080909 100%)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
html[data-chiel-wow="140"] body,
html[data-chiel-wow="140"] button,
html[data-chiel-wow="140"] input,
html[data-chiel-wow="140"] select,
html[data-chiel-wow="140"] textarea{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-chiel-wow="140"] :is(h1,h2,h3,.section-title,.page-title,.group-head h3){
  letter-spacing:-.037em;
  text-wrap:balance;
}
html[data-chiel-wow="140"] :is(p,.lead,.sub,.hint,.card p,.group-head p){
  line-height:1.55;
}
html[data-chiel-wow="140"] :is(.section-kicker,.eyebrow,.home-v2-eyebrow,.home3d-kicker,.page-kicker,.promo-kicker){
  color:var(--wow-gold)!important;
  letter-spacing:.13em;
}
html[data-chiel-wow="140"] :is(a,button,input,select,textarea,[role="button"]):focus-visible{
  outline:3px solid #ffdf8c!important;
  outline-offset:3px!important;
}
html[data-chiel-wow="140"] ::selection{
  background:rgba(255,210,102,.36);
  color:#fff;
}
/* Top rail: elegant machined-gold bevel, understated translucency. */
html[data-chiel-wow="140"] :is(.ecosystem-nav,.chiel-ecosystem-nav,.side-rail,.sidebar,.side-nav,.topbar,.appbar,.main-nav){
  border:1px solid rgba(255,218,128,.32)!important;
  background:
    linear-gradient(130deg,rgba(67,49,23,.88),rgba(30,27,20,.97) 57%,rgba(20,21,19,.97))!important;
  box-shadow:inset 0 1px rgba(255,234,180,.14),0 13px 37px rgba(0,0,0,.28)!important;
  -webkit-backdrop-filter:blur(22px) saturate(115%);
  backdrop-filter:blur(22px) saturate(115%);
}
html[data-chiel-wow="140"] :is(.ecosystem-nav a,.chiel-ecosystem-nav a,.side-rail a,.sidebar a){
  color:#e0d1b5!important;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease!important;
}
html[data-chiel-wow="140"] :is(.ecosystem-nav a.active,.chiel-ecosystem-nav a.active,.ecosystem-nav a[aria-current="page"],.chiel-ecosystem-nav a[aria-current="page"],.nav-link.active,.nav-link[aria-current="page"]){
  color:#2a1b07!important;
  border-color:#ffe3a1!important;
  background:linear-gradient(140deg,#ffeab2 0%,#ffd36b 60%,#eab149 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.42),0 5px 14px rgba(147,92,19,.23)!important;
}
html[data-chiel-wow="140"] :is(.nav-mark,.chiel-nav-mark,.brandmark){
  border:1px solid rgba(255,211,114,.56)!important;
  color:#ffecbd!important;
  background:linear-gradient(140deg,#77511f,#3a2919)!important;
  box-shadow:0 5px 20px rgba(0,0,0,.18)!important;
}
/* Signature: warm photo-led homepage hero. Keep image itself unchanged. */
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage{
  border:1px solid rgba(255,222,141,.57)!important;
  border-radius:32px!important;
  background-color:#15110c!important;
  box-shadow:0 37px 100px rgba(0,0,0,.46),0 0 0 1px rgba(238,184,77,.10),inset 0 1px rgba(255,246,217,.13)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage:after{
  background:linear-gradient(90deg,rgba(18,14,10,.91) 0%,rgba(21,17,12,.80) 43%,rgba(18,16,13,.22) 100%),
             linear-gradient(0deg,rgba(12,12,11,.46),transparent 56%)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage .hero-content h1{
  font-size:clamp(2.65rem,6.1vw,5.55rem)!important;
  line-height:1.035!important;
  letter-spacing:-.07em!important;
  background:linear-gradient(112deg,#fffdf4 0%,#fff1cc 40%,#ffd677 85%,#f0bd54 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  text-shadow:none!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage .lead{
  color:#e4d8c6!important;
  max-width:560px!important;
}
html[data-chiel-wow="140"] :is(.home-v2-main-action,.home3d-primary,.btn-primary,.button-primary,.primary-btn,.button.primary,.btn.primary):not(.danger):not(.error){
  color:#291c0a!important;
  border:1px solid #ffedbe!important;
  background:linear-gradient(130deg,#fff0c1,#ffda79 46%,#edb74c 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.6),0 10px 28px rgba(174,114,22,.22)!important;
}
html[data-chiel-wow="140"] :is(.home-v2-main-action,.home3d-primary,.btn-primary,.button-primary,.primary-btn):hover{
  filter:brightness(1.055);
  transform:translateY(-2px);
}
html[data-chiel-wow="140"] :is(.hero-action,.home-v2-text-link,.home3d-secondary,.ghost,.btn-secondary,.secondary-btn):not(.danger):not(.error){
  border-color:rgba(255,219,136,.45)!important;
  background:linear-gradient(140deg,rgba(82,59,26,.84),rgba(41,33,21,.91))!important;
  color:#ffe8b2!important;
}
html[data-chiel-wow="140"] :is(.hero-console,.console-core,.console-grid>div){
  border-color:rgba(255,211,111,.35)!important;
  background:linear-gradient(145deg,rgba(58,40,22,.87),rgba(25,24,20,.92))!important;
}
/* House feature: premium editorial feel; leave 3D materials intact. */
html[data-chiel-wow="140"] .home3d-feature{
  border:1px solid rgba(255,213,115,.35)!important;
  background:
   radial-gradient(ellipse at 72% 38%,rgba(183,126,33,.16),transparent 48%),
   linear-gradient(136deg,#302318 0%,#191712 57%,#111310 100%)!important;
  box-shadow:inset 0 1px rgba(255,242,200,.12),0 28px 82px rgba(0,0,0,.35)!important;
}
html[data-chiel-wow="140"] .home3d-story h2{
  line-height:1.065!important;
  color:#fff8ec!important;
}
html[data-chiel-wow="140"] .home3d-story h2 em{
  background:linear-gradient(110deg,#fff0c4,#f3c56f,#d9a24a)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
html[data-chiel-wow="140"] .home3d-intro{color:#d7c7aa!important}
html[data-chiel-wow="140"] .home3d-dome{
  border:1px solid rgba(255,207,103,.46)!important;
  background:radial-gradient(ellipse at 48% 49%,rgba(182,121,29,.16),transparent 57%),
             radial-gradient(circle at 50% 43%,#3a2b19 0%,#171915 62%,#0c1010 100%)!important;
  box-shadow:inset 0 0 60px rgba(241,182,77,.08),0 27px 75px rgba(0,0,0,.37)!important;
}
html[data-chiel-wow="140"] :is(.home3d-controls button,.home3d-float-label){
  border-color:rgba(255,214,119,.50)!important;
  background:rgba(56,39,22,.85)!important;
  color:#ffe8ba!important;
}
/* Editorial section containers with gold-light edge detail. */
html[data-chiel-wow="140"] :is(.portal-group,.home-v2-favorites,.panel:not(.scene-panel),.settings-card,.service-card,.info-card,.control-card,.dashboard-card,.system-card,.weather-card,.music-card,.video-card){
  position:relative;
  border-color:var(--wow-line)!important;
  background:linear-gradient(151deg,rgba(50,39,24,.96),rgba(25,25,20,.97) 66%,rgba(20,22,20,.97))!important;
  box-shadow:inset 0 1px rgba(255,232,177,.09),0 20px 52px rgba(0,0,0,.25)!important;
}
html[data-chiel-wow="140"] :is(.portal-group,.home-v2-favorites,.home3d-feature){
  border-radius:28px!important;
}
html[data-chiel-wow="140"] :is(.portal-group,.home-v2-favorites,.card,.home-v2-quick-card){
  isolation:isolate;
}
html[data-chiel-wow="140"] :is(.portal-group,.home-v2-favorites)::after{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,226,143,.48),transparent);
  pointer-events:none;
  z-index:0;
}
html[data-chiel-wow="140"] .portal-group .group-symbol{
  background:linear-gradient(140deg,rgba(159,107,34,.31),rgba(65,46,26,.64))!important;
  border-color:rgba(255,222,136,.48)!important;
  color:#ffe9b2!important;
  border-radius:15px!important;
}
html[data-chiel-wow="140"] .group-count{
  background:rgba(92,62,26,.38)!important;
  color:#ffe2a4!important;
  border-color:rgba(255,213,115,.32)!important;
}
html[data-chiel-wow="140"] .section-head h2,
html[data-chiel-wow="140"] .home-v2-section-top h2{
  color:#fff5df!important;
}
html[data-chiel-wow="140"] .section-head p,
html[data-chiel-wow="140"] .home-v2-section-top p{
  color:var(--wow-muted)!important;
}
/* Tiles: an understated glass sheen and clear interaction, no layout disruption. */
html[data-chiel-wow="140"] :is(.portal-group .card,.home-v2-quick-card,.home-v2-favorite-grid>a,.dashboard-card,.service-card){
  position:relative;
  border:1px solid rgba(255,214,122,.28)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(70,52,29,.84),rgba(36,32,24,.97) 48%,rgba(27,28,24,.99))!important;
  box-shadow:inset 0 1px rgba(255,238,195,.12),0 16px 38px rgba(0,0,0,.24)!important;
  transition:transform .23s cubic-bezier(.2,.8,.2,1),border-color .23s ease,box-shadow .23s ease!important;
}
html[data-chiel-wow="140"] :is(.portal-group .card,.home-v2-quick-card,.home-v2-favorite-grid>a):is(:hover,:focus-visible){
  transform:translateY(-3px);
  border-color:rgba(255,219,130,.76)!important;
  box-shadow:inset 0 1px rgba(255,247,221,.20),0 24px 52px rgba(0,0,0,.34),0 0 29px rgba(207,144,37,.09)!important;
}
html[data-chiel-wow="140"] .portal-group .card h3{
  font-size:clamp(1.2rem,2vw,1.49rem)!important;
  line-height:1.15!important;
  color:#fff8eb!important;
}
html[data-chiel-wow="140"] .portal-group .card p{
  color:#d7c8ac!important;
}
html[data-chiel-wow="140"] :is(.portal-group .card .icon,.home-v2-quick-symbol){
  color:#fff0ca!important;
  border:1px solid rgba(255,217,117,.54)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,#765321,#41301b)!important;
  box-shadow:inset 0 1px rgba(255,250,222,.15),0 8px 22px rgba(0,0,0,.25)!important;
}
html[data-chiel-wow="140"] :is(.portal-group .card .domain,.portal-group .card .go,.home-v2-quick-arrow,.home-v2-text-link){
  color:#f1c878!important;
}
html[data-chiel-wow="140"] :is(.favorite-toggle,.favorite-btn,.star-btn,.icon-btn,.home-chip,.floating-btn){
  color:#ffe6b1!important;
  border-color:rgba(255,218,125,.58)!important;
  background:linear-gradient(138deg,#5d4626,#29251d)!important;
  box-shadow:0 8px 21px rgba(0,0,0,.21)!important;
}
html[data-chiel-wow="140"] :is(.favorite-toggle,.favorite-btn,.star-btn)[aria-pressed="true"]{
  color:#271b09!important;
  background:linear-gradient(125deg,#ffe8a5,#ffd06a)!important;
}
html[data-chiel-wow="140"] :is(.status,.badge,.pill,.chip,.label,.module-filter){
  border-color:rgba(255,214,123,.43)!important;
  background:linear-gradient(145deg,#504025,#29261e)!important;
  color:#e9d9b8!important;
}
html[data-chiel-wow="140"] :is(.status.ok,.pill.ok,.status.online,.badge.success){color:#84efbd!important}
html[data-chiel-wow="140"] :is(.status.warn,.pill.warn,.badge.warning){color:#ffcd7c!important}
html[data-chiel-wow="140"] :is(.status.off,.status.error,.badge.error,.pill.error){color:#ff9c9c!important}
html[data-chiel-wow="140"] :is(.module-filter.active,.module-filter[aria-pressed="true"],.tab.active,[role="tab"][aria-selected="true"]){
  background:linear-gradient(130deg,#ffe8ae,#ffd16e)!important;
  color:#271b08!important;
  border-color:#ffe7a7!important;
}
/* App-specific chrome: distinct from imagery, weather radar and live video. */
html[data-chiel-wow="140"] :is(.topbar,.head,.page-head,.weather-head,.music-head,.camera-head){
  border-color:rgba(255,211,118,.40)!important;
  background:linear-gradient(148deg,rgba(72,51,27,.92),rgba(30,29,23,.96))!important;
}
html[data-chiel-wow="140"] :is(.card-head,.group-head,.section-head,.panel-head) {
  border-color:rgba(255,217,127,.28)!important;
}
html[data-chiel-wow="140"] :is(.action,.actions a,.actions button,.tabs button,.ghost,.toolbar button):not(.danger):not(.error){
  border-color:rgba(255,216,127,.39)!important;
}
html[data-chiel-wow="140"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  color:#fff7e7!important;
  border-color:rgba(255,214,113,.4)!important;
  background-color:rgba(23,22,18,.95)!important;
}
html[data-chiel-wow="140"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]){
  accent-color:#ffd46a!important;
}
/* Phone: rhythm, breathing room and reliable tap targets. */
@media(max-width:700px){
 html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage{
  border-radius:25px!important;
 }
 html[data-chiel-wow="140"] .portal-group{
  padding:16px!important;
  border-radius:24px!important;
 }
 html[data-chiel-wow="140"] .portal-group .card{
  min-height:176px;
  padding:20px!important;
 }
 html[data-chiel-wow="140"] :is(.home-v2-quick-card,.home-v2-favorite-grid>a){
  border-radius:18px!important;
 }
 html[data-chiel-wow="140"] :is(.ecosystem-nav a,.chiel-ecosystem-nav a,.hero-action,.home3d-links a){
  min-height:44px;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-chiel-wow="140"] :is(.portal-group .card,.home-v2-quick-card,.favorite-toggle,.hero-action){
  transition:none!important;
  animation:none!important;
 }
}

/* WOW GOLD v140 finishing: no navy panels between otherwise-gold tiles. */
html[data-chiel-wow="140"] .home-pulse .pulse-cell{
 border:1px solid rgba(255,216,119,.40)!important;
 border-radius:19px!important;
 background:linear-gradient(147deg,#493721 0%,#2b261d 57%,#1e211d 100%)!important;
 box-shadow:inset 0 1px rgba(255,232,182,.12),0 13px 34px rgba(0,0,0,.25)!important;
}
html[data-chiel-wow="140"] .home-pulse .pulse-cell.primary{
 background:linear-gradient(137deg,#64471f 0%,#342919 54%,#21221c 100%)!important;
 border-color:rgba(255,219,125,.60)!important;
}
html[data-chiel-wow="140"] .home-pulse .pulse-cell :is(strong,small){
 color:#fff0cc!important;
}
html[data-chiel-wow="140"] .home-pulse .pulse-cell>span:not(.pulse-live){
 color:#e7c786!important;
}
html[data-chiel-wow="140"] .home-pulse .pulse-cell .pulse-live{
 color:#ffdf96!important;
}
/* Actual availability dots and success/warning/error logic stay untouched. */
html[data-chiel-wow="140"] .promo-video{
 border-color:rgba(255,215,120,.43)!important;
 background:
  radial-gradient(circle at 88% 16%,rgba(205,145,43,.17),transparent 38%),
  linear-gradient(147deg,#34291c 0%,#191a18 100%)!important;
 box-shadow:inset 0 1px rgba(255,232,171,.12),0 21px 53px rgba(0,0,0,.27)!important;
}
html[data-chiel-wow="140"] .promo-visual{
 border-color:rgba(255,214,117,.38)!important;
 background:linear-gradient(145deg,#3f301f,#1a1b19)!important;
}
html[data-chiel-wow="140"] :is(.promo-cta,.promo-play){
 color:#ffecbd!important;
 border-color:rgba(255,213,114,.56)!important;
 background:linear-gradient(143deg,#685022,#30251c)!important;
}
html[data-chiel-wow="140"] :is(.promo-kicker,.promo-label){
 color:#efc879!important;
}
html[data-chiel-wow="140"] .home-v2-favorite-grid>a span{
 color:#f0c872!important;
}
html[data-chiel-wow="140"] .home-v2-favorite-grid>a:hover,
html[data-chiel-wow="140"] .home-v2-favorite-grid>a:focus-visible{
 background:linear-gradient(145deg,#5d4527,#2e291e)!important;
 border-color:rgba(255,215,122,.76)!important;
 outline-color:#ffdf8d!important;
}

/* CHIEL_COLOR_PARITY_V1
   Uniform ink/champagne chrome across modules still using old hard-coded blue.
   Presentation only: video, camera, canvas, scene and API behavior are untouched.
   Keep semantic status colors separate from branding.
*/
html[data-chiel-wow="140"] :where(.card,.tile,.metric,.stat,.stat-card,.widget-item,.widget-card,.check,.check-card,.module-card,.feature-card,.notice-card,.info-box,.health-card):not(.scene-panel,.scene-card,.video-frame,.video-stage,.media-card,.player,.danger,.error,.warning,.warn,.success,.ok,.bad){
  background:linear-gradient(150deg,rgba(55,42,24,.96),rgba(22,22,19,.97))!important;
  border-color:var(--wow-line)!important;
  color:var(--wow-text);
}
html[data-chiel-wow="140"] :where(button,.btn,.mini,.corelink,.backlink,.action-button,.tab,.back):not(.danger,.error,.warning,.warn,.success,.ok,.off){
  border-color:rgba(255,214,115,.42)!important;
  background:linear-gradient(137deg,rgba(83,60,30,.95),rgba(32,29,23,.96))!important;
  color:#ffe9b5!important;
}
html[data-chiel-wow="140"] :where(.top,.page-top,.masthead,.nav-bar):not(.scene-stage,.video-stage){
  border-color:var(--wow-line)!important;
  background:linear-gradient(145deg,rgba(55,40,22,.97),rgba(22,23,20,.97))!important;
}
html[data-chiel-wow="140"] body > .overlay:not([role="dialog"]){
  background:linear-gradient(180deg,rgba(17,15,12,.97),rgba(10,11,10,.985))!important;
}
html[data-chiel-wow="140"] :where(a:not(.danger,.error,.warning,.warn,.success,.ok,.off,.btn-primary,.primary-btn,.primary,.active)){
  color:var(--wow-gold-soft)!important;
}
html[data-chiel-wow="140"] :is(.chip.safe,.chip.ok,.chip.success,.pill.success,.status.ready,.status.success,.badge.ok,.status.online){
  color:#84efbd!important;
}
html[data-chiel-wow="140"] :is(.chip.open,.chip.pending,.chip.warn,.chip.warning,.status.pending,.status.warning,.pill.warning,.badge.warning){
  color:#ffcd7c!important;
}
html[data-chiel-wow="140"] :is(.chip.bad,.chip.error,.chip.danger,.status.failed,.status.bad,.status.error,.pill.error,.badge.failed,.badge.danger){
  color:#ff9c9c!important;
}

/* CHIEL_COLOR_PARITY_V1_NIGHT_GLASS_FIX
   Outrank the old Night Glass :is() panel rules without changing video stages.
*/
html[data-chiel-wow="140"] body :is(.card,.panel:not(.scene-panel),.item,.box,.kpi,.check,.device,.climate-stat){
  background:linear-gradient(150deg,rgba(55,42,24,.96),rgba(22,22,19,.97))!important;
  border-color:var(--wow-line)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.24),inset 0 1px rgba(255,223,153,.09)!important;
}

/* CHIEL_RESPONSIVE_ENERGY_WEATHER_GRID_V1
   Keep weather tiles inside the Energy dashboard on tablet and desktop.
   Video/3D scenes and controls are unchanged.
*/
html[data-chiel-wow="140"] main[data-energy-canonical="v1"] .weather {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))!important;
}
