/* M1Y.ONE premium desktop design (owner 2026-11-15, reference image): black / emerald / metallic-gold dashboard panels,
   thin gold frames with a soft edge glow and a subtle gold-green wave wallpaper inside, harmonised typography, the new
   gold coin in the top-right button. Website and the Windows / Mac app only:
   every rule starts with html:not(.is-app), so the installed phone app is untouched. Signal cards are protected: no rule
   here selects .session-signal-card, .closed-row or anything inside them; their containers (the Crypto / CFD signal pane) keep their width and look, because the cards are
   translucent and any change behind them would change how they look. */
html:not(.is-app){
 --m1y-gold:#e9c46a;--m1y-gold-2:#f6d27a;--m1y-gold-line:rgba(226,184,92,.62);--m1y-panel:rgba(5,10,9,.82);
 --m1y-wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='1.2'%3E%3Cpath d='M0 190 C200 120 380 230 600 170 S1000 110 1200 160' stroke='%23e9c46a' stroke-opacity='.22'/%3E%3Cpath d='M0 205 C220 140 400 240 620 185 S1010 125 1200 178' stroke='%23e9c46a' stroke-opacity='.14'/%3E%3Cpath d='M0 175 C180 110 420 215 640 150 S980 95 1200 140' stroke='%2334e09a' stroke-opacity='.14'/%3E%3Cpath d='M0 220 C240 170 430 245 650 205 S1020 150 1200 196' stroke='%2334e09a' stroke-opacity='.10'/%3E%3C/g%3E%3C/svg%3E");
}
/* ---- ordinary panels (home boards and cards, page sections) ---- */
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design):not(.control-page):not(.app-home) :is(.mk-panel,.cz-card,.analysis-card-link,.outlook-section,.calendar-board,.edu-course,.contact-box,.account-card,.legal-card){
 border:1px solid var(--m1y-gold-line)!important;border-radius:16px!important;
 background-color:var(--m1y-panel)!important;
 box-shadow:inset 0 1px 0 rgba(255,226,150,.16),inset 0 0 0 1px rgba(255,214,120,.05),0 0 18px rgba(233,180,70,.16),0 18px 44px rgba(0,0,0,.55)!important;
 -webkit-backdrop-filter:blur(6px) saturate(1.1);backdrop-filter:blur(6px) saturate(1.1)}
/* Wave wallpaper on a layer of its own (not on the analysis cards and the contact box: their ::after already holds art), so a panel's own art (CFD / crypto headers, card pictures) stays on top. */
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design):not(.control-page):not(.app-home) :is(.mk-panel,.cz-card,.outlook-section,.calendar-board,.edu-course,.account-card,.legal-card){position:relative;isolation:isolate}
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design):not(.control-page):not(.app-home) :is(.mk-panel,.cz-card,.outlook-section,.calendar-board,.edu-course,.account-card,.legal-card)::after{
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 background:var(--m1y-wave) center bottom/100% 58% no-repeat,radial-gradient(120% 70% at 50% 0%,rgba(233,196,106,.07),transparent 60%),linear-gradient(180deg,rgba(255,255,255,.015),rgba(0,0,0,.18))}
/* ---- typography (allowed surfaces only) ---- */
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design):not(.control-page):not(.app-home) :is(.mk-panel,.cz-card,.calendar-board,.account-card,.edu-course,.analysis-card-link,.outlook-section,.legal-card,.contact-box){font-family:Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design):not(.control-page):not(.app-home) :is(.mk-head h2,.cz-card h2,.calendar-hero h1,.section-heading h1,.section-heading h2,.account-head h1,.legal-hero h1){font-family:var(--cz-serif,'Playfair Display',Georgia,serif);font-weight:700;letter-spacing:.01em}
/* ---- slightly wider content (not Crypto / CFD: their signal cards keep their exact width) ---- */
@media (min-width:1280px){
 /* Fluid: grows with the screen (UltraWide / 4K / 8K) but leaves the side columns to the bull and the bear. */
 html:not(.is-app):not(#m1y) body.home-page .cz-home2{width:min(calc(100% - 38px),clamp(1200px,67.4vw,2600px))!important}
 html:not(.is-app):not(#m1y):not(.has-app-tabbar) body.cosmos:not(.reference-design):not(.home-page):not(.app-home):not(.control-page):not(.services-page):not(.login-page):not(.app-install-page)>main>:is(section,div,article,header,nav,aside,form,p):not(.noise){width:min(calc(100% - 44px),clamp(1395px,calc(64vw / .86),3000px))!important}
}
/* ---- no centre logo on any page (owner 2026-11-15): the boards sit right under the world-map band ---- */
html:not(.is-app):not(#m1y) body.cosmos:not(.reference-design) .cz-emblem{display:none!important}
html:not(.is-app):not(#m1y) body.cosmos.home-page .mk-top{height:0!important;padding-top:0!important;margin-top:0!important}
@media (min-width:861px){html:not(.is-app):not(#m1y) body.cosmos.home-page>main{padding-top:55px!important}}
/* ---- top-right button: the new gold coin when there is no profile picture (click still opens sign-in / profile) ---- */
html:not(.is-app):not(#m1y) body.cosmos .site-header>.account-link:is(:not(.signed-in),.no-badge-art){background:url('assets/m1y-coin-nav.webp') center/112% no-repeat!important;border-color:transparent!important;box-shadow:0 0 14px rgba(240,190,70,.35)!important}
html:not(.is-app):not(#m1y) body.cosmos .site-header>.account-link:is(:not(.signed-in),.no-badge-art) svg{visibility:hidden}
/* Reference layout: CFD / Forex and Crypto side by side on every desktop width from 1180 px. */
@media (min-width:1180px) and (max-width:1359px){html:not(.is-app):not(#m1y) body.cosmos.home-page .mk-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not(.is-app) body.cosmos.home-page .mk-row{gap:4px}}
/* Page intros that sit straight on the picture get a soft dark plate, so the bull / bear never cut through the text. */
html:not(.is-app):not(#m1y) body.cosmos:not(.control-page):not(.app-home):not(.home-page) main .section-heading{position:relative;isolation:isolate}
/* Calendar intro: its ::before holds art and its title is gold gradient text, so the plate is the intro's own background. */
html:not(.is-app):not(#m1y) body.cosmos:not(.control-page) main .calendar-hero{background:radial-gradient(70% 120% at 18% 55%,rgba(2,6,5,.8),rgba(2,6,5,.45) 55%,rgba(2,6,5,0) 85%)!important;border-radius:18px}
html:not(.is-app):not(#m1y) body.cosmos:not(.control-page):not(.app-home):not(.home-page) main .section-heading::before{content:"";position:absolute;inset:-14px -22px;z-index:-1;border-radius:18px;pointer-events:none;background:radial-gradient(120% 140% at 30% 50%,rgba(2,6,5,.78),rgba(2,6,5,.5) 60%,rgba(2,6,5,0) 100%)}
/* Footer follows the content width on big screens. */
@media (min-width:1280px){html:not(.is-app):not(#m1y) body.cosmos:not(.control-page):not(.app-home) .site-footer{width:min(calc(100% - 38px),clamp(1200px,64vw,2600px))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}}
/* Home boards (owner 2026-11-15): compact heads — title with the Live / Market closed badge right after it, no
   description line, no arrow button (the "Skatīt visu sarakstu" button already opens the full list). */
html:not(.is-app):not(#m1y) body.home-page .mk-head{min-height:0!important;padding-top:14px!important;padding-bottom:14px!important}
html:not(.is-app):not(#m1y) body.home-page .mk-head p,
html:not(.is-app):not(#m1y) body.home-page .mk-head .cz-go{display:none!important}
html:not(.is-app):not(#m1y) body.home-page .mk-head h2{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0!important}
html:not(.is-app):not(#m1y) body.home-page .mk-head h2 .mk-closed{display:inline-flex!important;width:auto!important;margin:0!important}
html:not(.is-app):not(#m1y) body.home-page .mk-head h2 .mk-closed[hidden]{display:none!important}
/* Live / Market closed badge on the right side of the board head (owner 2026-11-15). */
html:not(.is-app):not(#m1y) body.home-page .mk-head>div:first-child{flex:1 1 auto;min-width:0}
html:not(.is-app):not(#m1y) body.home-page .mk-head h2{justify-content:space-between;width:100%}
html:not(.is-app):not(#m1y) body.home-page .mk-head h2 .mk-closed{position:relative;z-index:2;background:rgba(3,8,6,.88)!important;box-shadow:0 0 10px rgba(0,0,0,.6)}
/* Old head pictures (coins / CFD sign) removed from the home boards (owner 2026-11-15): the board shows only the owner's
   wallpaper (or the plain dark panel). */
html:not(.is-app):not(#m1y) body.home-page .mk-panel .mk-head{background-image:none!important}
html:not(.is-app):not(#m1y) body.home-page .mk-panel .mk-head:before{background:none!important}
/* Home lower cards (owner 2026-11-15): old built-in pictures removed, cards a little more compact. */
html:not(.is-app):not(#m1y) body.home-page .cz-home2 .cz-art{display:none!important}
html:not(.is-app):not(#m1y) body.home-page .cz-home2 .cz-card{padding:12px 18px 12px!important}
html:not(.is-app):not(#m1y) body.home-page .cz-home2 .cz-card-head{padding-bottom:8px}
html:not(.is-app):not(#m1y) body.home-page .cz-home2 .cz-card-body{padding-top:8px}
/* CFD / Crypto board pairs (owner 2026-11-15): a darker semi-opaque row background over the wallpaper; a soft pale-gold glow on hover.
   Extra :not() ids outrank the card-art.js wallpaper rule that makes rows transparent. */
html:not(.is-app):not(#m1y-rows):not(#m1y-rows2) body.home-page :is(#mkCfd,#mkCrypto) .mk-row{background-color:rgba(4,10,8,.62)!important;border:1px solid rgba(246,196,83,.10)!important;border-radius:10px;transition:background-color .18s,border-color .18s,box-shadow .18s}
html:not(.is-app):not(#m1y-rows):not(#m1y-rows2) body.home-page :is(#mkCfd,#mkCrypto) .mk-row:hover{background-color:rgba(52,44,22,.5)!important;border-color:rgba(255,232,170,.38)!important;box-shadow:0 0 12px rgba(255,226,150,.16),inset 0 0 10px rgba(255,226,150,.07)}
/* Board pairs (owner 2026-11-15): no 1–12 rank numbers; the row starts further left and the mini chart gets the room. */
html:not(.is-app):not(#m1y-rows) body.home-page :is(#mkCfd,#mkCrypto) .mk-rk{display:none}
html:not(.is-app):not(#m1y-rows) body.home-page :is(#mkCfd,#mkCrypto) .mk-row{grid-template-columns:26px minmax(64px,1fr) auto 52px 62px;padding-left:8px;padding-right:4px}
html:not(.is-app):not(#m1y-rows) body.home-page :is(#mkCfd,#mkCrypto) .mk-spark{width:62px;height:24px}
@media (max-width:380px){html:not(.is-app):not(#m1y-rows) body.home-page :is(#mkCfd,#mkCrypto) .mk-row{grid-template-columns:24px minmax(56px,1fr) auto 56px}}
