html body.v7-ui #app[hidden]{display:none!important}
/* MARFA SENSE Preview login: single visual layer. Existing authentication owns all form behavior. */
html body.v7-ui #login#login#login.mx-auth{background:var(--marfa-brand-navy,#0b1427)!important;isolation:isolate}
html body.v7-ui #login#login#login.mx-auth .mxa-bg{display:none!important}
html body.v7-ui #login#login#login.mx-auth .mxa-top{position:relative;z-index:5}
html body.v7-ui #login#login#login.mx-auth .mxa-topin{display:flex!important;flex-direction:row!important;direction:rtl!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;max-width:1360px!important}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-nav{order:0!important;display:flex!important;flex:0 1 auto!important;flex-wrap:nowrap!important;gap:5px!important;align-items:center!important;white-space:nowrap!important}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-ctl{order:1!important;display:flex!important;flex:0 0 auto!important;gap:9px!important;align-items:center!important}
html body.v7-ui #login#login#login.mx-auth .mxa-logo-top{display:none!important}
html body.v7-ui #login#login#login.mx-auth .mxa-stage{background:transparent!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;padding:12px clamp(24px,13vw,210px)!important;position:relative}
html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card{z-index:2!important;position:relative!important;transform:none!important;margin:0!important;width:min(452px,100%)!important;max-width:452px!important;padding:28px!important;background:linear-gradient(148deg,rgba(42,59,81,.96),rgba(14,30,50,.98) 58%,rgba(6,21,40,.99))!important;border:1px solid #dbaf69d1!important;border-radius:24px!important;box-shadow:0 25px 75px #0009,inset 0 1px #fff3!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-brand{width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-brand .mxa-logo-card{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;margin:0 auto!important}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .mxa-tag,html body.v7-ui #login#login#login.mx-auth .mxa-brand::after{display:none!important;content:none!important}
html body.v7-ui #login#login#login.mx-auth .mxa-primary{background:linear-gradient(180deg,#f7d993,#d4a04d)!important;color:#16150f!important;border:1px solid #e6bf75!important;border-radius:14px!important;min-height:54px!important}
html body.v7-ui #login#login#login.mx-auth .mxa-field{border-radius:14px!important;border:1px solid #c7a7798c!important;background:#18294080!important;min-height:52px!important}
/* Right side uses the user's original emblem only, softly merged into navy. */
/* The approved eye remains motionless. Two glints travel existing orbital tracks.
   No new rings or rotation of the PNG. This is a lightweight interim motion, not the
   separately layered 3D motion asset pending brand approval. */
html body.v7-ui #login#login#login.mx-auth .sense-approved-hero-shell{
 position:absolute!important;z-index:0!important;pointer-events:none!important;
 top:50%!important;right:4%!important;transform:translateY(-50%)!important;
 width:min(42vw,600px)!important;aspect-ratio:1!important;
 max-height:82%!important;
}
html body.v7-ui #login#login#login.mx-auth .sense-approved-hero{
 display:block!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;object-fit:contain!important;
 opacity:.22!important;mix-blend-mode:screen!important;
 -webkit-mask-image:radial-gradient(ellipse at center,#000 43%,transparent 71%)!important;
 mask-image:radial-gradient(ellipse at center,#000 43%,transparent 71%)!important;
 filter:saturate(.72) brightness(.86)!important;
}
html body.v7-ui #login#login#login.mx-auth .sense-orbit-glint{
 position:absolute!important;top:0!important;left:0!important;pointer-events:none!important;
 width:5px!important;height:5px!important;border-radius:50%!important;
 offset-path:ellipse(34% 30% at 50% 50%)!important;
 offset-distance:0%;offset-rotate:0deg!important;
 animation:marfa-orbital-glint 18s linear infinite!important;
 background:var(--marfa-brand-gold,#d8ad61)!important;box-shadow:0 0 7px #f6d58a,0 0 14px var(--marfa-brand-gold,#d8ad61)80!important;opacity:.38!important;
}
html body.v7-ui #login#login#login.mx-auth .sense-orbit-glint-blue{
 width:4px!important;height:4px!important;background:#548cdb!important;
 box-shadow:0 0 7px #65b9f5,0 0 12px #277be780!important;
 offset-path:ellipse(31% 33% at 50% 50%)!important;
 animation-duration:23s!important;animation-delay:-8s!important;animation-direction:reverse!important;
}
@keyframes marfa-orbital-glint{to{offset-distance:100%}}
@media(prefers-reduced-motion:reduce){
 html body.v7-ui #login#login#login.mx-auth .sense-orbit-glint{animation:none!important;display:none!important}
}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-lockup{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:center!important;gap:12px!important;direction:ltr!important;
 width:100%!important;height:106px!important;max-width:100%!important;
 padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-symbol{
 display:block!important;width:104px!important;height:104px!important;flex:0 0 104px!important;
 max-width:none!important;max-height:none!important;object-fit:contain!important;
 mix-blend-mode:screen!important;
 -webkit-mask-image:radial-gradient(ellipse at center,#000 40%,transparent 72%)!important;
 mask-image:radial-gradient(ellipse at center,#000 40%,transparent 72%)!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-words{
 flex:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;gap:7px!important;direction:ltr!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-name{
 display:flex!important;align-items:center!important;gap:5px!important;
 color:#edf4ff!important;font-family:Inter,sans-serif!important;font-size:clamp(24px,2.5vw,29px)!important;
 line-height:1.1!important;white-space:nowrap!important;letter-spacing:-.045em!important;
 font-weight:750!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-name span:last-child{color:var(--marfa-brand-gold,#d8ad61)!important}
html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-words small{
 display:block!important;color:#d9e6f7!important;letter-spacing:.035em!important;
 font:500 11px/1.45 Inter,sans-serif!important;white-space:nowrap!important;
}
/* Fix light-mode text and buttons incorrectly inherited by the dark navigation bar. */
/* Full contrast in the dark login shell regardless of global light-theme tokens. */
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-title{color:#edf4ff!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-sub{color:#cbd9ed!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-row,
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-check,
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-check span{color:#e1ebf8!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field input{
 color:#edf4ff!important;-webkit-text-fill-color:#edf4ff!important;
 box-sizing:border-box!important;line-height:26px!important;
 padding-block:0!important;padding-inline:14px!important;
 text-align:left!important;direction:ltr!important;align-self:center!important;
}
/* The reveal button is removed from flex flow so both input text baselines
   start at the same X position; keep it separate from the lock icon. */
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field .mxa-eye{
 position:absolute!important;right:50px!important;left:auto!important;
 top:50%!important;transform:translateY(-50%)!important;z-index:2!important;
 width:34px!important;min-width:34px!important;height:36px!important;
 min-height:36px!important;max-height:36px!important;
 display:grid!important;place-items:center!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field input[name="password"]{
 padding-right:62px!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field input::placeholder{color:#9db1ca!important;opacity:1!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-eye{color:#e6d1ac!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-or{color:#b4c6dc!important}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-switch{color:#c8d9eb!important}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-nav button{
 color:#edf4ff!important;opacity:1!important;font-weight:600!important;
 text-shadow:none!important;background:transparent!important;
 border:1px solid transparent!important;white-space:nowrap!important;
 padding:8px 9px!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-nav button:hover,
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-nav button:focus-visible{
 color:#f5d391!important;background:#23405d99!important;border-color:var(--marfa-brand-gold,#d8ad61)80!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-ctl .mxa-pill{
 background:#192a41!important;color:#edf4ff!important;
 border:1px solid var(--marfa-brand-gold,#d8ad61)80!important;box-shadow:none!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-ctl .mxa-pill:hover,
html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-ctl .mxa-pill:focus-visible{
 border-color:#e9c98b!important;background:#263e59!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats{box-sizing:border-box}
/* Real social icon buttons, inside the footer to stay within the viewport. */
html body.v7-ui #login#login#login.mx-auth .mxa-feats .sense-login-social {
 grid-column:1/-1!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:12px!important;min-width:0!important;width:100%!important;height:42px!important;
 margin:0!important;padding:0!important;position:relative!important;direction:ltr!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats .sense-login-social a{
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important;
 flex:0 0 37px!important;padding:0!important;box-sizing:border-box!important;
 border:1px solid rgba(216,173,97,.5)!important;border-radius:50%!important;
 background:rgba(12,29,48,.85)!important;color:#e9c78b!important;
 text-decoration:none!important;transition:background .18s,border-color .18s,transform .18s!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats .sense-login-social a svg{
 display:block!important;flex:none!important;box-sizing:content-box!important;
 width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;
 fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;
 stroke-linecap:round!important;stroke-linejoin:round!important;overflow:visible!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats .sense-login-social a:is(:hover,:focus-visible){
 background:rgba(40,74,112,.95)!important;border-color:#efd18f!important;
 transform:translateY(-2px)!important;outline:2px solid #87b8ef!important;outline-offset:2px!important;
}
/* Desktop: a single viewport, with internal card scrolling only when genuinely necessary. */
@media(min-width:1024px){
 html:has(#login.mx-auth:not([hidden])),body.v7-ui:has(#login.mx-auth:not([hidden])) {
  height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;
 }
 html body.v7-ui #login#login#login.mx-auth:not([hidden]){
  display:flex!important;flex-direction:column!important;
  height:100dvh!important;min-height:0!important;max-height:100dvh!important;
  overflow:hidden!important;box-sizing:border-box!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-top{
  flex:0 0 62px!important;height:62px!important;min-height:0!important;
  padding-top:12px!important;box-sizing:border-box!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage{
  flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;
  overflow:hidden!important;padding-top:12px!important;padding-bottom:12px!important;
  box-sizing:border-box!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card{
  flex:0 1 auto!important;min-height:0!important;
  max-height:calc(100dvh - 224px)!important;box-sizing:border-box!important;
  overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;
  overscroll-behavior:contain!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-feats {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:42px 42px!important;align-items:center!important;
  row-gap:28px!important;column-gap:34px!important;
  flex:0 0 134px!important;min-height:134px!important;max-height:134px!important;
  height:134px!important;width:100%!important;max-width:1000px!important;
  margin:0 auto!important;padding:8px 16px 8px!important;box-sizing:border-box!important;
  overflow:visible!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-feats .mxa-feat{
 min-width:0!important;min-height:0!important;height:40px!important;max-height:40px!important;
 gap:5px!important;justify-content:center!important;align-self:center!important
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats .mxa-feat svg{
 width:21px!important;height:21px!important
}
html body.v7-ui #login#login#login.mx-auth .mxa-feats .mxa-feat b{
 font-size:12px!important;line-height:16px!important;color:#e2eaf6!important
}
}
@media(max-width:1023px){html body.v7-ui #login#login#login.mx-auth .mxa-topin{gap:10px!important;flex-wrap:wrap!important}html body.v7-ui #login#login#login.mx-auth .mxa-topin .mxa-nav{flex-wrap:wrap!important}html body.v7-ui #login#login#login.mx-auth .mxa-stage{justify-content:center!important;padding:24px!important}html body.v7-ui #login#login#login.mx-auth .mxa-feats .sense-login-social{grid-column:1/-1!important;flex-wrap:nowrap!important;margin-top:12px!important;padding:12px 0 16px!important;height:auto!important}}

/* First paint is controlled in index.html; historical entry fallback removed. */


/* PUBLIC INFORMATION MENU: central MARFA SENSE login styling, theme-independent. */
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo{
 position:fixed!important;inset:0!important;z-index:2140000000!important;
 display:grid!important;place-items:center!important;overflow-y:auto!important;
 padding:22px!important;box-sizing:border-box!important;direction:rtl!important;
 background:rgba(5,14,30,.73)!important;color:#edf4ff!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-shade{
 position:absolute!important;inset:0!important;z-index:0!important;
 background:rgba(3,12,27,.24)!important;backdrop-filter:blur(7px)!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-card{
 position:relative!important;z-index:1!important;box-sizing:border-box!important;
 width:min(760px,100%)!important;max-height:calc(100dvh - 44px)!important;
 overflow:auto!important;overscroll-behavior:contain!important;
 padding:26px!important;border-radius:22px!important;
 background:linear-gradient(150deg,#203751,#0c1c33 78%)!important;
 border:1px solid var(--marfa-brand-gold,#d8ad61)99!important;box-shadow:0 26px 85px #0009!important;
 font-family:Vazirmatn,Inter,sans-serif!important;color:#edf4ff!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:16px!important;color:var(--marfa-brand-gold,#d8ad61)!important;font-weight:750!important;font-size:13px!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo [data-public-close]{
 display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
 border-radius:12px!important;border:1px solid var(--marfa-brand-gold,#d8ad61)80!important;
 color:#edf4ff!important;background:#192d48!important;cursor:pointer!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-tabs{
 display:flex!important;gap:8px!important;flex-wrap:wrap!important;
 margin-top:16px!important;padding:0 0 17px!important;
 border-bottom:1px solid var(--marfa-brand-gold,#d8ad61)44!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-tabs button{
 padding:9px 12px!important;border-radius:999px!important;
 background:#172d48!important;color:#dbe8f6!important;border:1px solid #6e8aa78c!important;
 font:500 12px Vazirmatn,Inter,sans-serif!important;cursor:pointer!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-tabs button.is-active{
 background:var(--marfa-brand-gold,#d8ad61)2f!important;color:#ffde9f!important;border-color:var(--marfa-brand-gold,#d8ad61)!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-body{
 padding:24px 0 8px!important;background:transparent!important;color:#edf4ff!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-body h2{
 font:750 clamp(21px,2.5vw,29px)/1.7 Vazirmatn,Inter,sans-serif!important;
 margin:0 0 10px!important;color:#edf4ff!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-body p{
 font:400 14px/2.05 Vazirmatn,Inter,sans-serif!important;margin:0!important;color:#d6e4f4!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-note{
 margin-top:18px!important;padding:14px 18px!important;border-radius:12px!important;
 background:#152d49!important;border:1px solid var(--marfa-brand-gold,#d8ad61)55!important;
 border-inline-start:3px solid var(--marfa-brand-gold,#d8ad61)!important;
 font:400 12px/2 Vazirmatn,Inter,sans-serif!important;color:#c9d8e8!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-foot{
 display:flex!important;justify-content:flex-end!important;margin-top:18px!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo [data-public-back]{
 min-height:38px!important;padding:8px 18px!important;border-radius:11px!important;
 border:1px solid var(--marfa-brand-gold,#d8ad61)99!important;background:#284361!important;color:#edf4ff!important;
 font:600 12px Vazirmatn,Inter,sans-serif!important;cursor:pointer!important;
}
html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo button:focus-visible{
 outline:2px solid #b0d5ff!important;outline-offset:2px!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-public-mobile{display:none!important}
@media(max-width:980px){html body.v7-ui #login#login#login.mx-auth .mxa-public-mobile{display:inline-flex!important}}
@media(max-width:600px){
 html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo{padding:10px!important}
 html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-card{padding:16px!important;max-height:calc(100dvh - 20px)!important}
 html body.v7-ui #login#login#login.mx-auth #mxaPublicInfo .mxa-public-tabs button{padding:7px 10px!important;font-size:11px!important}
}

/* DEMO: branded feature-preview panel. Former brown screenshot carousel CSS was removed
   from marfa-demo-hub.js; never present old site screenshots as current UI. */
body.v7-ui #mdhShow{
 position:fixed!important;inset:0!important;z-index:2147483600!important;
 display:grid!important;place-items:center!important;padding:20px!important;
 background:#061326e6!important;color:#edf4ff!important;
 box-sizing:border-box!important;backdrop-filter:blur(7px)!important;
}
body.v7-ui #mdhShow .mdh-sc{
 display:block!important;position:relative!important;box-sizing:border-box!important;
 width:min(850px,100%)!important;max-height:calc(100dvh - 40px)!important;overflow-y:auto!important;
 border-radius:22px!important;border:1px solid var(--marfa-brand-gold,#d8ad61)8a!important;
 background:linear-gradient(140deg,#233c59,#0b1a30 78%)!important;
 box-shadow:0 25px 80px #0009!important;padding:23px!important;color:#edf4ff!important;
}
body.v7-ui #mdhShow .mdh-sh,body.v7-ui #mdhShow .mdh-nav{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;
}
body.v7-ui #mdhShow .mdh-sh{margin-bottom:14px!important}
body.v7-ui #mdhShow .mdh-sh b{font:750 20px/1.5 Vazirmatn,Inter,sans-serif!important;color:#edf4ff!important}
body.v7-ui #mdhShow button{font-family:Vazirmatn,Inter,sans-serif!important;cursor:pointer!important}
body.v7-ui #mdhShow .mdh-x{border:1px solid var(--marfa-brand-gold,#d8ad61)80!important;background:#1d3652!important;color:#edf4ff!important;width:38px!important;height:38px!important;border-radius:10px!important}
body.v7-ui #mdhShow .mdh-preview{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 min-height:300px!important;gap:11px!important;padding:22px!important;box-sizing:border-box!important;
 border:1px solid #476a8e8c!important;border-radius:16px!important;
 background:radial-gradient(ellipse at 50% 45%,#21476b99,#0a1b31 75%)!important;
}
body.v7-ui #mdhShow .mdh-preview-badge{
 color:#edf4ff!important;letter-spacing:.045em!important;font:750 18px Inter,sans-serif!important;
}
body.v7-ui #mdhShow .mdh-preview-badge b{color:var(--marfa-brand-gold,#d8ad61)!important}
body.v7-ui #mdhShow .mdh-preview-symbol{
 display:block!important;width:106px!important;height:106px!important;object-fit:contain!important;
 mix-blend-mode:screen!important;
 -webkit-mask-image:radial-gradient(circle,#000 42%,transparent 73%)!important;
 mask-image:radial-gradient(circle,#000 42%,transparent 73%)!important;
}
body.v7-ui #mdhShow .mdh-preview-title{
 color:#edf4ff!important;font:750 22px/1.6 Vazirmatn,Inter,sans-serif!important;text-align:center!important;
}
body.v7-ui #mdhShow .mdh-preview-description{
 margin:0!important;max-width:550px!important;text-align:center!important;
 color:#c7d8ed!important;font:400 13px/2 Vazirmatn,Inter,sans-serif!important;
}
body.v7-ui #mdhShow .mdh-cap{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin:14px 0!important}
body.v7-ui #mdhShow .mdh-cap b{font-size:14px!important;color:#edf4ff!important}
body.v7-ui #mdhShow .mdh-cap span{font-size:11px!important;color:#9fb4cc!important}
body.v7-ui #mdhShow .mdh-nav{margin-top:12px!important;flex-wrap:wrap!important}
body.v7-ui #mdhShow .mdh-dots{display:flex!important;gap:7px!important}
body.v7-ui #mdhShow .mdh-dots i{width:8px!important;height:8px!important;border-radius:50%!important;background:#607b96!important}
body.v7-ui #mdhShow .mdh-dots i.on{background:var(--marfa-brand-gold,#d8ad61)!important}
body.v7-ui #mdhShow .mdh-btns{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
body.v7-ui #mdhShow .mdh-btns button{
 padding:8px 14px!important;min-height:40px!important;border-radius:11px!important;
 border:1px solid var(--marfa-brand-gold,#d8ad61)88!important;background:#1c3652!important;color:#edf4ff!important;
}
body.v7-ui #mdhShow .mdh-btns button.mdh-reg{
 background:linear-gradient(180deg,#f2d38d,var(--marfa-brand-gold,#d8ad61))!important;color:#142039!important;font-weight:750!important;
}
body.v7-ui #mdhShow button:focus-visible{outline:2px solid #acd0fc!important;outline-offset:2px!important}
@media(max-width:600px){
 body.v7-ui #mdhShow{padding:9px!important}
 body.v7-ui #mdhShow .mdh-sc{padding:15px!important;max-height:calc(100dvh - 18px)!important}
 body.v7-ui #mdhShow .mdh-preview{min-height:240px!important;padding:12px!important}
}

/* Protected login compact desktop contract: sign-in fully visible; registration only scrolls if long. */
@media(min-width:1024px) and (max-height:820px){
 html body.v7-ui #login#login#login.mx-auth .mxa-top{
  flex-basis:54px!important;height:54px!important;padding-top:6px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-feats{
  height:106px!important;min-height:106px!important;max-height:106px!important;flex-basis:106px!important;
  grid-template-rows:34px 34px!important;row-gap:22px!important;padding:4px 16px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage{padding-block:6px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card{
  max-height:calc(100dvh - 172px)!important;padding:14px!important;overflow-y:hidden!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card.is-reg{
  overflow-y:auto!important;overscroll-behavior:contain!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-lockup{
  height:56px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-symbol{
  height:56px!important;width:56px!important;flex-basis:56px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-brand .sense-brand-name{font-size:22px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-brand{margin-bottom:5px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-title{margin-top:5px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-sub{margin-bottom:8px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-form{gap:8px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field{
  height:44px!important;min-height:44px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-primary{
  min-height:44px!important;height:44px!important;padding-block:8px!important;margin-top:0!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-or{margin-block:8px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-social,
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-social .mxa-soc{height:44px!important;min-height:44px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-switch{margin-top:8px!important}
}
@media(min-width:1024px) and (max-height:680px){
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card:not(.is-reg){zoom:.78!important;max-height:700px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-feats{
  height:96px!important;min-height:96px!important;max-height:96px!important;flex-basis:96px!important;
  row-gap:16px!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card{max-height:calc(100dvh - 162px)!important}
}

/* Registration: constrain the real grid inside card; scroll the long form, not the brand header. */
html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-two{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
 width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-two>.mxa-field{
 min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-two>.mxa-field input{
 min-width:0!important;max-width:100%!important;width:0!important;flex:1 1 0!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card .mxa-field input[name="password2"]{
 padding-right:62px!important;
}
@media(min-width:1024px){
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.is-reg.marfa-auth-card{
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-brand,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-title,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-sub,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-or,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-social,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>.mxa-switch{flex-shrink:0!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>#marfaAuthForm{
 flex:1 1 auto!important;min-height:0!important;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
 scrollbar-width:thin!important;padding-inline:3px!important;
 }
}
@media(max-width:650px){
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-two{
 grid-template-columns:minmax(0,1fr)!important;
 }
}
/* Prevent form rows from collapsing on short desktop viewports and overlapping neighbors. */
html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg>#marfaAuthForm>*{
 flex-shrink:0!important;
}
html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-two{
 min-height:44px!important;
}


/* Medium/large desktop registration: keep the header/footer fixed without a second scrollbar. */
@media(min-width:1024px) and (min-height:821px){
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card.is-reg{padding:18px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .sense-brand-lockup{height:68px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .sense-brand-symbol{width:68px!important;height:68px!important;flex-basis:68px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-brand{margin-bottom:5px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-title{margin-top:5px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-sub{margin-bottom:7px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-or{margin-block:7px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-switch{margin-top:7px!important}
}

/* Micro-adjust registration only: avoid an unnecessary second card scroll in compact desktop. */
@media(min-width:1024px) and (max-height:820px){html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card.is-reg{padding:9px!important}}

/* MARFA SENSE registration UX: balanced desktop grid, one authored form, no legacy layout */
@media(min-width:700px){
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-template-areas:
      "names names"
      "email username"
      ". usernamehelp"
      "password confirm"
      "meter meter"
      "passwordhelp passwordhelp"
      "referral referral"
      "referralhelp referralhelp"
      "terms terms"
      "submit submit"
      "message message"!important;
   column-gap:10px!important;row-gap:5px!important;
   grid-auto-rows:max-content!important;
   align-content:start!important;
   overflow-y:auto!important;overflow-x:hidden!important;
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-two{grid-area:names!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-field:has(input[name="email"]){grid-area:email!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-field:has(input[name="displayName"]){grid-area:username!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-field:has(input[name="password"]){grid-area:password!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-field:has(input[name="password2"]){grid-area:confirm!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-field:has(input[name="referral_code"]){grid-area:referral!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-hint:nth-child(4){grid-area:usernamehelp!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-meter{grid-area:meter!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>#mxaPwHint{grid-area:passwordhelp!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-hint:nth-child(10){grid-area:referralhelp!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-row{grid-area:terms!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>#loginBtn{grid-area:submit!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>#authMessage{grid-area:message!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm .mxa-field{width:100%!important;max-width:100%!important;min-width:0!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm .mxa-field input{font-size:13px!important;min-width:0!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-row{margin-block:3px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm>.mxa-hint{font-size:10.5px!important;line-height:1.4!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm::-webkit-scrollbar{width:6px}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg #marfaAuthForm::-webkit-scrollbar-thumb{background:#c49e5b;border-radius:8px}
}
/* Compact laptop viewport only: reclaim space from chrome, not form fields */
@media(min-width:1024px) and (max-height:750px){
 html body.v7-ui #login#login#login.mx-auth .mxa-top{height:46px!important;flex-basis:46px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-feats{
   height:88px!important;min-height:88px!important;max-height:88px!important;flex-basis:88px!important;
   grid-template-rows:30px 30px!important;row-gap:18px!important;padding:3px 12px!important
 }
 html body.v7-ui #login#login#login.mx-auth .mxa-stage{padding-block:3px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-stage .mxa-card.marfa-auth-card.is-reg{max-height:calc(100dvh - 140px)!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .sense-brand-lockup{height:47px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .sense-brand-symbol{height:47px!important;width:47px!important;flex-basis:47px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-brand{margin-bottom:2px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-title{font-size:22px!important;line-height:28px!important;margin-top:2px!important;margin-bottom:2px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-sub{margin-bottom:4px!important;font-size:12px!important;line-height:16px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-or{margin-block:3px!important;line-height:14px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-social,
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-social .mxa-soc{height:39px!important;min-height:39px!important}
 html body.v7-ui #login#login#login.mx-auth .mxa-card.is-reg .mxa-switch{margin-top:4px!important}
}

