/* MACHIEL_ECOSYSTEM_3D_V1
   One visual language for the real portal, dashboard, weather and broadcasters.
   No fabricated status, weather, stats or fake video frames.
   All adjustments are scoped to opted-in pages via html[data-machiel-ecosystem].
*/
html[data-machiel-ecosystem]{
 color-scheme:dark;
 --machiel-ink:#f5f8ff;--machiel-soft:#c4d2ed;--machiel-sky:#78d8ff;
 --machiel-aqua:#72f4ee;--machiel-violet:#b28dff;--machiel-rose:#f99bdc;
 --machiel-line:rgba(156,189,255,.29);
 --machiel-glass:linear-gradient(145deg,rgba(27,44,93,.85) 0%,rgba(14,31,65,.94) 53%,rgba(15,17,51,.96) 100%);
 --machiel-glass-soft:linear-gradient(148deg,rgba(31,51,105,.72),rgba(8,22,52,.86));
 --machiel-depth:0 24px 65px rgba(0,6,27,.48),0 0 38px rgba(92,87,246,.1),inset 0 1px rgba(255,255,255,.14);
 background:#050d24;
}
html[data-machiel-ecosystem] body{
 background:
 radial-gradient(ellipse 48% 26% at 5% 0%,rgba(66,114,240,.18),transparent 83%),
 radial-gradient(ellipse 44% 30% at 100% 18%,rgba(160,63,233,.16),transparent 83%),
 radial-gradient(ellipse 52% 42% at 45% 106%,rgba(50,150,220,.11),transparent 87%),
 linear-gradient(150deg,#060b22,#080f27 46%,#080e21 100%)!important;
 color:var(--machiel-ink);
}
html[data-machiel-ecosystem] body::after{
 content:"";position:fixed;z-index:0;inset:0;pointer-events:none;opacity:.45;
 background:repeating-linear-gradient(90deg,transparent 0,transparent 94px,rgba(114,128,244,.026) 95px,transparent 96px),
 repeating-linear-gradient(0deg,transparent 0,transparent 94px,rgba(128,113,240,.024) 95px,transparent 96px);
 -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 80%);
 mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 80%);
}
html[data-machiel-ecosystem] body>:where(main,.app-shell,.wrap,.shell,.main-content){position:relative;z-index:1}
html[data-machiel-ecosystem] :where(button,a,input,select,summary):focus-visible{
 outline:2px solid #92f4ff!important;outline-offset:3px!important;
}
html[data-machiel-ecosystem] :is(.machiel-design-brand){
 display:inline-flex;align-items:center;gap:10px;vertical-align:middle;
}
html[data-machiel-ecosystem] .machiel-design-mark{
 display:inline-grid;place-items:center;width:36px;height:36px;flex:none;
 border-radius:12px;border:1px solid rgba(171,231,255,.62);color:white;
 background:linear-gradient(135deg,#149bd8,#304dde 51%,#c456ed);
 box-shadow:0 7px 24px rgba(48,133,249,.32),inset 0 1px rgba(255,255,255,.38);
 font-weight:900;font-size:21px;line-height:1;letter-spacing:-.045em;
}
html[data-machiel-ecosystem] .machiel-glass-3d{
 --machiel-mx:50%;--machiel-my:15%;--machiel-rx:0deg;--machiel-ry:0deg;
 position:relative;transform-style:preserve-3d;
 border:1px solid var(--machiel-line);
 background:var(--machiel-glass);box-shadow:var(--machiel-depth);
}
html[data-machiel-ecosystem] .machiel-glass-3d::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
 background:radial-gradient(420px circle at var(--machiel-mx) var(--machiel-my),rgba(129,145,255,.16),transparent 64%);
 opacity:.8;
}
html[data-machiel-ecosystem] .machiel-glass-3d>*{position:relative}
html[data-machiel-ecosystem] .machiel-sheen{position:relative;overflow:hidden;isolation:isolate}
html[data-machiel-ecosystem] .machiel-sheen::after{
 content:"";position:absolute;z-index:0;inset:0;pointer-events:none;border-radius:inherit;
 background:linear-gradient(120deg,transparent 23%,rgba(200,231,255,.062) 35%,transparent 47%);
}
html[data-machiel-ecosystem] .machiel-sheen>*{position:relative;z-index:1}

/* MACHIEL PORTAL: functional 3D house, catalog, favorites and nav remain intact. */
html[data-machiel-ecosystem="portal"] .wrap{max-width:1480px}
html[data-machiel-ecosystem="portal"] .ecosystem-nav{
 border:1px solid rgba(133,172,255,.38);
 background:linear-gradient(130deg,rgba(22,37,90,.94),rgba(14,22,57,.96))!important;
 box-shadow:0 16px 43px rgba(0,5,23,.36),inset 0 1px rgba(255,255,255,.14)!important;
}
html[data-machiel-ecosystem="portal"] .ecosystem-nav .active{
 background:linear-gradient(120deg,rgba(44,137,234,.4),rgba(131,64,221,.36))!important;
 border-color:rgba(143,192,255,.7)!important;
}
html[data-machiel-ecosystem="portal"] .ecosystem-nav .nav-mark{
 border-color:rgba(175,233,255,.52);
 background:linear-gradient(135deg,#25b9ec,#4665fa 58%,#bb5ee6);
 box-shadow:0 5px 20px rgba(49,122,239,.3);
}
html[data-machiel-ecosystem="portal"] .hero.depth-stage{
 border-color:rgba(147,160,250,.49)!important;
 background:linear-gradient(105deg,rgba(8,16,54,.92),rgba(10,28,67,.73)),url("/house-hero.webp") center/cover!important;
 box-shadow:0 38px 115px rgba(0,2,22,.6),0 0 75px rgba(107,82,247,.15),inset 0 1px rgba(255,255,255,.18)!important;
}
html[data-machiel-ecosystem="portal"] .hero.depth-stage .hero-content h1{
 background:linear-gradient(105deg,#fff 20%,#a7e6ff 65%,#d7a5ff);
 -webkit-background-clip:text;background-clip:text;color:transparent;
}
html[data-machiel-ecosystem="portal"] .home-v2-eyebrow{color:var(--machiel-aqua)}
html[data-machiel-ecosystem="portal"] .home-v2-main-action{
 background:linear-gradient(115deg,#85e9f7,#7987ff 55%,#c58cff)!important;
 box-shadow:0 13px 38px rgba(72,126,250,.35)!important;
 border-color:rgba(229,244,255,.85)!important;
}
html[data-machiel-ecosystem="portal"] :is(.hero-console,.home3d-feature,.home-v2-favorites,.portal-group,.module-tools,.pulse-cell){
 border-color:rgba(137,177,255,.32)!important;
 background:var(--machiel-glass)!important;
 box-shadow:var(--machiel-depth)!important;
}
html[data-machiel-ecosystem="portal"] .home3d-feature{
 background:radial-gradient(ellipse 53% 66% at 84% 42%,rgba(117,72,217,.21),transparent 74%),var(--machiel-glass)!important;
}
html[data-machiel-ecosystem="portal"] .home3d-dome{
 box-shadow:0 24px 85px rgba(0,4,30,.58),0 0 75px rgba(82,114,247,.18),inset 0 1px rgba(255,255,255,.2)!important;
 border-color:rgba(151,197,255,.48)!important;
}
html[data-machiel-ecosystem="portal"] :is(.home-v2-quick-card,.home-v2-favorite-grid>a,.tile-shell>.card){
 border-color:rgba(144,168,254,.34)!important;
 background:var(--machiel-glass-soft)!important;
 box-shadow:0 19px 53px rgba(0,7,33,.35),inset 0 1px rgba(255,255,255,.11)!important;
}
html[data-machiel-ecosystem="portal"] .home-v2-quick-card:nth-child(3n+2){
 background:linear-gradient(147deg,rgba(62,34,117,.8),rgba(18,26,69,.97))!important;
}
html[data-machiel-ecosystem="portal"] .home-v2-quick-card:nth-child(3n){
 background:linear-gradient(147deg,rgba(21,61,107,.87),rgba(37,20,78,.94))!important;
}
html[data-machiel-ecosystem="portal"] .home-v2-quick-symbol{
 background:linear-gradient(135deg,rgba(30,165,234,.3),rgba(119,65,217,.28))!important;
 box-shadow:0 11px 28px rgba(27,56,166,.26),inset 0 1px rgba(255,255,255,.28)!important;
}
html[data-machiel-ecosystem="portal"] .home-v2-quick-arrow{color:var(--machiel-aqua)}
html[data-machiel-ecosystem="portal"] .home-v2-quick-card:is(:hover,:focus-visible){
 border-color:rgba(168,219,255,.75)!important;
 box-shadow:0 26px 75px rgba(16,10,65,.49),0 0 30px rgba(108,108,243,.14)!important;
}
html[data-machiel-ecosystem="portal"] .portal-head h2{color:var(--machiel-ink)}
html[data-machiel-ecosystem="portal"] .home-v2-showcase .promo-video{
 border-color:rgba(153,155,246,.38)!important;
 background:linear-gradient(125deg,rgba(34,29,96,.95),rgba(9,23,58,.98))!important;
}

/* DASHBOARD: only exterior glass surfaces; keep floors, iframes and Homey clickable. */
html[data-machiel-ecosystem="dashboard"] .shell{
 --chiel-bg:#070d24;--chiel-surface:#111e48;--chiel-surface-raised:#172954;
 --chiel-text:#f4f8ff;--chiel-text-muted:#bacbe6;
}
html[data-machiel-ecosystem="dashboard"] :is(.topbar,.pill,.quick-actions,.primary-grid>.card){
 border-color:rgba(142,177,251,.36)!important;
 background:var(--machiel-glass)!important;
 box-shadow:var(--machiel-depth)!important;
}
html[data-machiel-ecosystem="dashboard"] .topbar{
 border-radius:23px!important;
 background:linear-gradient(116deg,rgba(22,53,105,.94),rgba(39,22,86,.94))!important;
}
html[data-machiel-ecosystem="dashboard"] :is(.brandmark,.view-icon){
 background:linear-gradient(130deg,rgba(25,164,234,.54),rgba(134,76,238,.46))!important;
}
html[data-machiel-ecosystem="dashboard"] .primary-grid>.card>.card-head{
 background:linear-gradient(110deg,rgba(25,62,112,.97),rgba(39,29,99,.93))!important;
}
html[data-machiel-ecosystem="dashboard"] #chiel3dFocusControls{
 border-color:rgba(135,175,252,.37)!important;
 background:linear-gradient(128deg,rgba(16,45,96,.85),rgba(46,26,92,.8))!important;
}
html[data-machiel-ecosystem="dashboard"] :is(.chiel-floor-select,.chiel-view-switch){
 border-color:rgba(143,177,253,.4)!important;
 background:linear-gradient(128deg,rgba(23,52,104,.9),rgba(26,26,76,.95))!important;
}
html[data-machiel-ecosystem="dashboard"] .primary-grid>.card iframe{max-width:100%;border:0}

/* WEATHER: preserve live temperature, radar controls and forecast details. */
html[data-machiel-ecosystem="weather"] .app-shell{position:relative;z-index:1}
html[data-machiel-ecosystem="weather"] .side-rail{
 background:linear-gradient(155deg,rgba(20,41,92,.98),rgba(18,15,57,.99))!important;
 border-right:1px solid rgba(145,166,252,.31)!important;
}
html[data-machiel-ecosystem="weather"] :is(.card,.side-mini,.hero,.metric,.weatherman-card){
 border-color:rgba(138,170,247,.33)!important;
 background:var(--machiel-glass)!important;
 box-shadow:var(--machiel-depth)!important;
}
html[data-machiel-ecosystem="weather"] .hero{
 background:radial-gradient(ellipse at 70% 42%,rgba(90,137,245,.22),transparent 58%),var(--machiel-glass)!important;
}
html[data-machiel-ecosystem="weather"] :is(.nav-link.active,.chiel-refresh-btn){
 border-color:rgba(144,203,254,.55)!important;
 background:linear-gradient(120deg,rgba(44,129,226,.38),rgba(115,63,215,.3))!important;
}
html[data-machiel-ecosystem="weather"] .hero-temp{
 background:linear-gradient(130deg,#fff,#a8ddff 72%,#d5b1ff);
 -webkit-background-clip:text;background-clip:text;color:transparent;
}
html[data-machiel-ecosystem="weather"] :is(.weatherman-stage,.weather-scene){
 border-color:rgba(158,170,250,.39)!important;
 box-shadow:0 0 57px rgba(99,84,238,.18),inset 0 1px rgba(255,255,255,.11);
}

/* JOURNAAL: player and audio logic untouched; accent the real live edition. */
html[data-machiel-ecosystem="news"] :is(.navigation,.mast,.stage,.broadcast,.card,.journaal-archive,.edition-toolbar){
 border-color:rgba(139,178,255,.35)!important;
 background:var(--machiel-glass)!important;
 box-shadow:var(--machiel-depth)!important;
}
html[data-machiel-ecosystem="news"] .mast{
 background:radial-gradient(ellipse 65% 100% at 100% 15%,rgba(106,65,211,.20),transparent),var(--machiel-glass)!important;
}
html[data-machiel-ecosystem="news"] :is(.stage,.video-wrap){
 box-shadow:0 34px 90px rgba(1,5,33,.54),0 0 60px rgba(75,101,238,.18)!important;
}
html[data-machiel-ecosystem="news"] :is(.navigation a,.edition-button,.edition-refresh-button){
 border-radius:12px;
}
html[data-machiel-ecosystem="news"] .navigation a[aria-current="page"]{
 background:linear-gradient(120deg,rgba(48,146,232,.32),rgba(115,65,211,.3))!important;
}

/* KIM: entertainment remains rose/gold, integrated with the shared cyan/violet glass. */
html[data-machiel-ecosystem="boulevard"]{
 --machiel-line:rgba(202,151,255,.38);
 --machiel-glass:linear-gradient(138deg,rgba(51,31,94,.91),rgba(25,26,73,.96) 59%,rgba(47,19,75,.96));
}
html[data-machiel-ecosystem="boulevard"] :is(.top,.hero,.real-stage,.broadcast,.card,.section,.transcript,.player-shell){
 border-color:rgba(182,139,255,.4)!important;
 background:var(--machiel-glass)!important;
 box-shadow:0 26px 72px rgba(5,3,30,.5),0 0 37px rgba(168,86,239,.13),inset 0 1px rgba(255,255,255,.16)!important;
}
html[data-machiel-ecosystem="boulevard"] .top{border-radius:19px}
html[data-machiel-ecosystem="boulevard"] .hero{
 background:radial-gradient(ellipse 67% 60% at 100% 22%,rgba(218,69,172,.20),transparent 75%),var(--machiel-glass)!important;
}
html[data-machiel-ecosystem="boulevard"] :is(.pill,.card .status,#boulevard-check-edition){
 border-color:rgba(235,162,245,.48)!important;
 background:linear-gradient(120deg,rgba(130,58,173,.5),rgba(67,34,107,.72))!important;
}
html[data-machiel-ecosystem="boulevard"] :is(h1,h2,.eyebrow){text-shadow:0 8px 37px rgba(186,84,249,.18)}
html[data-machiel-ecosystem="boulevard"] video{
 border-radius:18px;max-width:100%;box-shadow:0 15px 45px rgba(3,2,22,.52);
}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html[data-machiel-ecosystem] .machiel-glass-3d.machiel-lift{
  transition:transform .24s cubic-bezier(.2,.84,.2,1),box-shadow .24s ease,border-color .24s ease;
 }
 html[data-machiel-ecosystem] .machiel-glass-3d.machiel-lift:hover{
  transform:perspective(1050px) translateY(-5px) rotateX(var(--machiel-rx)) rotateY(var(--machiel-ry));
  border-color:rgba(153,198,255,.65);
  box-shadow:0 30px 76px rgba(6,5,45,.54),0 0 30px rgba(132,92,255,.15),inset 0 1px rgba(255,255,255,.2);
 }
}
@media(max-width:760px){
 html[data-machiel-ecosystem] body::after{opacity:.22}
 html[data-machiel-ecosystem] :is(.machiel-glass-3d,.topbar,.hero,.card,.portal-group){box-shadow:0 15px 36px rgba(2,5,26,.3),inset 0 1px rgba(255,255,255,.1)!important}
 html[data-machiel-ecosystem="portal"] .home-v2-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-machiel-ecosystem="portal"] .home-v2-quick-card{min-width:0;transform:none!important}
 html[data-machiel-ecosystem="news"] :is(.mast,.stage,.broadcast){border-radius:18px}
 html[data-machiel-ecosystem="weather"] .side-rail{box-shadow:none!important}
}
@media(hover:none),(pointer:coarse){
 html[data-machiel-ecosystem] .machiel-glass-3d{transform:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-machiel-ecosystem] .machiel-glass-3d,
 html[data-machiel-ecosystem] .machiel-sheen,
 html[data-machiel-ecosystem] .machiel-glass-3d *{transition:none!important;animation:none!important;transform:none!important}
 html[data-machiel-ecosystem] body::after{display:none}
}

@media(min-width:1101px){
 html[data-machiel-ecosystem="portal"] .home-v2-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Shared neon/glass appearance for the public standalone modules. */
html[data-machiel-ecosystem="video"] :is(.shell,.hero,.card,.panel,.video-panel,.chiel-ecosystem-nav),
html[data-machiel-ecosystem="music"] :is(.music-shell,.music-head,.music-card,.card,.panel,.music-home),
html[data-machiel-ecosystem="work"] :is(.topbar,.hero .card,.card,.chip,.tabs,.view,.panel),
html[data-machiel-ecosystem="settings"] :is(aside,main section,.card,.panel,nav,.btn),
html[data-machiel-ecosystem="guides"] :is(.top,.hero,.card,.panel,.video-item,.chiel-ecosystem-nav){
 border-color:rgba(151,183,255,.36)!important;
 background:var(--machiel-glass)!important;
 box-shadow:var(--machiel-depth)!important;
}
html[data-machiel-ecosystem="video"] :is(.hero,.card,.panel,.video-panel),
html[data-machiel-ecosystem="music"] :is(.music-head,.music-card,.card,.panel),
html[data-machiel-ecosystem="work"] :is(.hero .card,.card,.panel),
html[data-machiel-ecosystem="guides"] :is(.hero,.card,.panel,.video-item){
 border-radius:20px;
}
html[data-machiel-ecosystem="video"] :is(.chiel-ecosystem-nav,.hero),
html[data-machiel-ecosystem="work"] :is(.chiel-ecosystem-nav,.topbar),
html[data-machiel-ecosystem="guides"] :is(.chiel-ecosystem-nav,.top){
 background:linear-gradient(115deg,rgba(24,58,111,.92),rgba(46,24,94,.95))!important;
 border-color:rgba(156,187,253,.43)!important;
 box-shadow:0 19px 46px rgba(4,5,39,.38),inset 0 1px rgba(255,255,255,.15)!important;
}
html[data-machiel-ecosystem="video"] h1,
html[data-machiel-ecosystem="music"] .music-title h1,
html[data-machiel-ecosystem="work"] .hero h2,
html[data-machiel-ecosystem="guides"] .hero h1{
 background:linear-gradient(115deg,#fff 12%,#a7e8fb 64%,#d1a9ff);
 background-clip:text;-webkit-background-clip:text;color:transparent;
}
html[data-machiel-ecosystem="music"] .music-mark{
 background:linear-gradient(135deg,#24bdea,#5477f7,#bb66e7)!important;
 box-shadow:0 12px 32px rgba(75,104,247,.34),inset 0 1px rgba(255,255,255,.3);
}
html[data-machiel-ecosystem="music"] .music-shell{max-width:1200px}
html[data-machiel-ecosystem="work"] .tab.active{
 background:linear-gradient(118deg,rgba(38,145,225,.35),rgba(138,70,231,.32))!important;
 border-color:rgba(158,195,255,.58)!important;
}
html[data-machiel-ecosystem="settings"] aside{
 background:linear-gradient(150deg,#151a48,#101e42 57%,#17123b)!important;
}
html[data-machiel-ecosystem="settings"] main section{
 border-radius:18px;overflow-wrap:anywhere;
}
html[data-machiel-ecosystem="settings"] nav a:is(:hover,:focus-visible),
html[data-machiel-ecosystem="settings"] .btn:is(:hover,:focus-visible){
 border-color:rgba(148,209,255,.61)!important;
 background:linear-gradient(115deg,rgba(37,117,206,.30),rgba(131,69,218,.25))!important;
}
html[data-machiel-ecosystem="video"] video,
html[data-machiel-ecosystem="guides"] video{
 max-width:100%;border-radius:16px;box-shadow:0 19px 57px rgba(3,5,29,.43);
}
html[data-machiel-ecosystem="video"] .chiel-nav-mark,
html[data-machiel-ecosystem="work"] .chiel-nav-mark,
html[data-machiel-ecosystem="guides"] .chiel-nav-mark{
 background:linear-gradient(135deg,#159ed2,#526ced,#bd6bea)!important;
 box-shadow:0 7px 25px rgba(48,92,237,.28);
}
@media(max-width:760px){
 html[data-machiel-ecosystem="video"] :is(.hero,.card,.panel),
 html[data-machiel-ecosystem="music"] :is(.music-head,.music-card,.card),
 html[data-machiel-ecosystem="work"] :is(.hero .card,.card),
 html[data-machiel-ecosystem="settings"] main section,
 html[data-machiel-ecosystem="guides"] :is(.hero,.card){
  box-shadow:0 13px 29px rgba(1,5,27,.33),inset 0 1px rgba(255,255,255,.1)!important;
 }
}
