/* Native DOM and native exterior transforms remain in place. */
html[data-mahina-shared-popup-motion=on]{--msp-charcoal:#303030;--msp-charcoal-rgb:48,48,48;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-overlay]{box-sizing:border-box!important;align-items:center!important;justify-content:center!important;padding:22px!important;overscroll-behavior:contain;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel]{box-sizing:border-box!important;position:relative!important;margin:0!important;min-height:0!important;height:auto!important;max-height:calc(100svh - 44px)!important;max-height:calc(100dvh - 44px)!important;border:1px solid rgba(48,48,48,.12)!important;border-radius:28px!important;background:rgba(255,255,255,.78)!important;color:#303030!important;font-family:Montserrat,"Helvetica Neue","Noto Sans","Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif!important;box-shadow:0 26px 80px rgba(48,48,48,.12)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
/* MAIN's reviewed navigation dimensions, applied to every existing native panel. */
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=menu]{--mahina-navigation-previous-size:clamp(20px,3.36vw,35.2px);display:block!important;gap:0!important;width:min(100%,700px)!important;max-width:700px!important;padding:20px clamp(22px,4vw,42px)!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=language]{display:block!important;width:min(100%,940px)!important;max-width:940px!important;padding:clamp(24px,4vw,42px)!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-head]{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;margin:0!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-head=menu]{min-height:42px!important;padding:0!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=menu] [data-mahina-navigation-foot]{font-size:8.4px!important;font-weight:400!important;line-height:1.65!important;color:rgba(48,48,48,.5)!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=menu] [data-mahina-navigation-foot] > a{font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;color:inherit!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-head=language] h2{color:#303030!important;letter-spacing:-.045em!important;margin:8px 0 0!important;font-size:clamp(28px,4vw,46px)!important;font-weight:400!important;line-height:1.25!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-head=language] :is(span,p){color:rgba(48,48,48,.5)!important;letter-spacing:.16em!important;font-size:10px!important;font-weight:550!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-close]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;padding:10px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#303030!important;flex:0 0 auto!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-close] svg{width:20px!important;height:20px!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list]{position:relative!important;isolation:isolate;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=menu]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;margin:0!important;padding:8px 0!important;border:0!important;text-align:center!important;}
html body[data-mahina-shared-popup-motion],html[data-mahina-shared-popup-motion=on] body{--mahina-popup-ink:#303030;}
html[data-mahina-shared-popup-motion=on] body [data-mahina-navigation-panel] [data-mahina-navigation-list] > [data-mahina-shared-popup-choice=menu]{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:0!important;padding:8px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#939395!important;font-family:inherit!important;font-size:calc(var(--mahina-navigation-previous-size)*.8)!important;font-weight:300!important;line-height:calc(var(--mahina-navigation-previous-size)*1.2)!important;letter-spacing:calc(var(--mahina-navigation-previous-size)*-.04)!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere;transform:none!important;transition:color 180ms ease!important;}
html[data-mahina-shared-popup-motion=on] body [data-mahina-navigation-panel] [data-mahina-navigation-list] > [data-mahina-shared-popup-choice=menu][data-mahina-shared-popup-active]{color:#303030!important;font-weight:400!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:30px 0 0!important;padding:0!important;max-height:none!important;overflow:visible!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language]{display:flex!important;position:relative!important;box-sizing:border-box!important;min-width:0!important;min-height:58px!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;padding:12px 14px!important;border:0!important;border-radius:14px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:rgba(48,48,48,.6)!important;font-family:inherit!important;text-align:start!important;text-decoration:none!important;transform:none!important;transition:color 180ms ease!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language]:is(:hover,:active,:focus-visible,.is-selected,.is-current,[aria-pressed=true],[aria-selected=true],[data-mahina-shared-popup-active]){background:transparent!important;background-image:none!important;box-shadow:none!important;color:#303030!important;transform:none!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language] strong{min-width:0!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important;color:inherit!important;font-size:12px!important;font-weight:500!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language] span{color:rgba(48,48,48,.5)!important;font-size:10px!important;}
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language]::before,html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language] > [data-mahina-shared-popup-choice=language]::after{background:none!important;background-image:none!important;box-shadow:none!important;}
/* One pseudo-element fades to transparency at all four edges. No fixed marker exists. */
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list]::before{content:""!important;position:absolute!important;pointer-events:none!important;z-index:-1!important;left:var(--msp-x,0px)!important;top:var(--msp-y,0px)!important;width:var(--msp-w,0px)!important;height:var(--msp-h,0px)!important;border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;background-image:radial-gradient(ellipse closest-side at center,rgba(255,255,255,.9) 0%,rgba(250,248,244,.67) 43%,rgba(250,248,244,.25) 67%,rgba(250,248,244,0) 100%)!important;opacity:var(--msp-visible,0)!important;transform:none!important;transition:left 280ms cubic-bezier(.22,1,.36,1),top 280ms cubic-bezier(.22,1,.36,1),width 280ms cubic-bezier(.22,1,.36,1),height 280ms cubic-bezier(.22,1,.36,1),opacity 180ms ease!important;}
/* Keep keyboard indication, including stronger legacy shared-nav selectors. */
html[data-mahina-shared-popup-motion=on] body [data-mahina-navigation-panel] [data-mahina-navigation-list] > [data-mahina-shared-popup-choice]:focus-visible,
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-choice]:focus-visible,
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-close]:focus-visible{outline:2px solid #303030!important;outline-offset:2px!important;}
/* MAIN legacy motion CSS had disabled the native exterior transition. Restore its ownership. */
html[data-mahina-shared-popup-motion=on] [data-mahina-navigation-panel],html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=language]{transition:opacity 300ms ease,transform 300ms cubic-bezier(.22,1,.36,1)!important;}
@media(max-width:760px){
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-overlay]{padding:16px!important;}
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel]{max-height:calc(100svh - 32px)!important;max-height:calc(100dvh - 32px)!important;border-radius:22px!important;}
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=menu]{padding:16px 22px!important;}
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=language]{padding:24px!important;}
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=menu]{padding:12px 0!important;}
 html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list=language]{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-height:710px){html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel=menu]{padding-top:14px!important;padding-bottom:14px!important;}}
@media(prefers-reduced-motion:reduce){html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-list]::before,html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-choice],html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-panel]{transition:none!important;}}

/* MAP keeps display:block natively. Center only an actually open overlay. */
html[data-mahina-shared-popup-motion=on] [data-mahina-shared-popup-overlay]:not([hidden]):not([aria-hidden=true]){display:flex!important;}
/* BEST has a stronger legacy universal reduced-motion rule. */
@media(prefers-reduced-motion:reduce){html[data-mahina-shared-popup-motion=on] body [data-mahina-shared-popup-panel] [data-mahina-shared-popup-list]::before{transition:none!important;transition-duration:0s!important;}}
@media(prefers-reduced-motion:reduce){
 html[data-mahina-shared-popup-motion=on] #mahina-best-preview [data-mahina-shared-popup-list]::before,
 html[data-mahina-shared-popup-motion=on] #mahina-best-preview [data-mahina-shared-popup-panel],
 html[data-mahina-shared-popup-motion=on] #mahina-best-preview [data-mahina-shared-popup-choice]{transition:none!important;transition-duration:0s!important;}
}
