/* MARFA Preview desktop | Market Watch hero visual alignment v1
 * Center the unchanged, currently deployed brand asset; put symmetric
 * glass/gold wings outside its image; contain all six orbit coin badges.
 * No market/API logic, no logo redraw, no layout changes outside hero.
 */
@media(min-width:1181px){
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready{
   min-height:238px!important;
   height:auto!important;
   display:flex!important;
   align-items:center!important;
   justify-content:flex-start!important;
   overflow:hidden!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand{
   position:absolute!important;
   left:50%!important;right:auto!important;top:50%!important;
   width:clamp(205px,19vw,250px)!important;
   max-width:calc(100% - 430px)!important;
   min-height:1px!important;
   margin:0!important;
   transform:translate(-50%,-50%)!important;
   z-index:4!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   pointer-events:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand img.marfa-earth-approved-logo{
   display:block!important;
   width:100%!important;
   height:auto!important;
   max-height:173px!important;
   max-width:100%!important;
   object-fit:contain!important;
   object-position:center center!important;
   margin:0!important;
   padding:0!important;
 }
 /* The wings belong to the layout frame, NEVER to the approved logo bitmap. */
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::before,
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::after{
   content:""!important;
   position:absolute!important;
   top:50%!important;
   width:clamp(42px,7vw,128px)!important;
   height:17px!important;
   pointer-events:none!important;
   border:0!important;
   border-radius:0!important;
   background:
      linear-gradient(to bottom,transparent 0 2px,
        color-mix(in srgb,var(--marfa-personal-accent,#e8bc75) 75%,#fff 25%) 3px,
        transparent 4.5px 100%),
      linear-gradient(to bottom,transparent 0 9px,
        color-mix(in srgb,var(--marfa-personal-accent,#e8bc75) 38%,transparent) 10px,
        transparent 11px 100%)!important;
   filter:drop-shadow(0 0 6px color-mix(in srgb,var(--marfa-personal-accent,#e8bc75) 30%,transparent))!important;
   opacity:.79!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::before{
   right:calc(100% + 9px)!important;
   left:auto!important;
   mask-image:linear-gradient(to left,#000 12%,transparent 100%)!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::after{
   left:calc(100% + 9px)!important;
   right:auto!important;
   mask-image:linear-gradient(to right,#000 12%,transparent 100%)!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-scene{
   left:6.4%!important;
   top:50%!important;
   width:154px!important;
   height:154px!important;
   transform:translateY(-50%)!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready .marfa-earth-orbit--primary{
   width:126%!important;height:69%!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready .marfa-earth-orbit--secondary{
   width:132%!important;height:65%!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready .marfa-earth-orbit--tertiary{
   width:119%!important;height:76%!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready .marfa-earth-coin{
   width:32px!important;height:32px!important;
   padding:4px!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready img.marfa-earth-coin-image{
   display:block!important;
   width:23px!important;height:23px!important;
   object-fit:contain!important;
   flex:none!important;
 }
 /* XRP's dark X mark needs a separate surface for legibility. */
 html[data-theme="dark"][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready img.marfa-earth-coin-image[src$="/xrp.png"]{
   background:rgba(239,244,251,.94)!important;
   border-radius:50%!important;
 }
}
@media(min-width:1181px) and (max-width:1330px){
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::before,
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::after{
   width:53px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready::after,
 html[data-theme][data-marfa-palette] body.v7-ui #dashboard #dv3 .dv2-hero.marfa-earth-ready .marfa-earth-orbit{
   animation:none!important;
 }
}

/* SPECIFICITY_REPAIR: older dashboard styles carry IDs and !important,
   override only the three layout rules with an exact app-scoped selector. */
@media(min-width:1181px){
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3 .dv2-hero.marfa-earth-ready{
   min-height:238px!important;
   height:238px!important;
   max-height:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand{
   left:50%!important;
   right:auto!important;
   top:50%!important;
   width:clamp(205px,19vw,250px)!important;
   max-width:calc(100% - 430px)!important;
   transform:translate(-50%,-50%)!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3 .dv2-hero.marfa-earth-ready > div.marfa-earth-scene{
   left:6.4%!important;
   top:50%!important;
   transform:translateY(-50%)!important;
 }
}


/* Dashboard desktop brand placement: replace the old MARFA TRADING artwork
   with the existing approved MARFA SENSE wordmark on the right.
   Center the original Market Watch heading, and preserve the left market globe.
   No additional CSS/JS requests, timers, observers, or dashboard logic. */
@media (min-width:1181px) {
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand {
   position:absolute!important;
   left:auto!important;
   right:2.6%!important;
   top:50%!important;
   width:clamp(232px,24vw,306px)!important;
   max-width:33%!important;
   min-height:1px!important;
   height:auto!important;
   margin:0!important;
   transform:translateY(-50%)!important;
   align-items:center!important;
   justify-content:center!important;
   pointer-events:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand img.marfa-earth-approved-logo {
   display:block!important;
   width:100%!important;
   height:auto!important;
   max-width:100%!important;
   max-height:110px!important;
   object-fit:contain!important;
   object-position:center!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::before,
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand::after {
   display:none!important;
   content:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div:not(.marfa-earth-scene):not(.marfa-earth-hero-brand) {
   position:absolute!important;
   left:50%!important;
   right:auto!important;
   top:50%!important;
   transform:translate(-50%,-50%)!important;
   width:clamp(180px,24%,285px)!important;
   max-width:29%!important;
   z-index:5!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   text-align:center!important;
   pointer-events:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div:not(.marfa-earth-scene):not(.marfa-earth-hero-brand) h1 {
   margin:0!important;
   width:100%!important;
   text-align:center!important;
   white-space:nowrap!important;
   font-size:clamp(25px,2.5vw,35px)!important;
 }
}

/* Brandbook v2.1: right-hand decorative eye, low visual intensity, alpha
   transparency, no black rectangle, no blur/halo or animation. Desktop only. */
@media(min-width:1181px){
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand {
   left:auto!important;right:5.1%!important;
   top:50%!important;transform:translateY(-50%)!important;
   width:clamp(180px,18vw,225px)!important;
   max-width:24%!important;
   pointer-events:none!important;
   background:none!important;
   border:0!important;
   box-shadow:none!important;
 }
 html[data-theme][data-marfa-palette] body.v7-ui #app#app #dashboard #dv3
 .dv2-hero.marfa-earth-ready > div.marfa-earth-hero-brand img.marfa-earth-approved-logo {
   width:100%!important;height:auto!important;
   max-height:220px!important;
   object-fit:contain!important;
   opacity:.27!important;
   filter:none!important;
   mix-blend-mode:screen!important;
   background:transparent!important;
   border:0!important;
   box-shadow:none!important;
 }
}
