@import url("kng-membership-access.css?v=header-v11");

.ma-unified-shell{position:relative;z-index:900;width:min(1440px,calc(100% - 28px));margin:14px auto 0;color:var(--ma-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ma-unified-shell .ma-app-topbar{width:100%;box-sizing:border-box}
.ma-unified-shell .ma-access-pill{position:relative;z-index:905;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:0;padding:0 20px;border:1px solid rgba(127,38,53,.3);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(255,248,233,.97));color:var(--ma-ink);box-shadow:0 10px 24px rgba(54,35,13,.19),0 2px 7px rgba(127,38,53,.10);font:800 1rem/1 system-ui;cursor:pointer}
.ma-unified-shell .ma-access-pill:after{content:"";position:absolute;inset:3px;border:1px solid rgba(185,130,47,.22);border-radius:999px;pointer-events:none}.ma-access-menu-icon{display:inline-flex;flex-direction:column;gap:4px;width:24px}.ma-access-menu-icon i{display:block;width:24px;height:3px;border-radius:2px;background:currentColor}
.ma-unified-sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;z-index:1302!important;width:min(330px,89vw)!important;height:100vh!important;padding:20px 16px 28px!important;overflow-y:auto!important;transform:translateX(-105%)!important;transition:transform .24s ease!important;border-right:1px solid var(--ma-line)!important;background:linear-gradient(180deg,#fffdf8,#f8ead9)!important;box-shadow:18px 0 55px rgba(54,35,13,.24)!important;display:block!important}
body.ma-unified-menu-open .ma-unified-sidebar{transform:translateX(0)!important}.ma-unified-overlay{position:fixed;inset:0;z-index:1301;border:0;background:rgba(40,24,18,.31);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .2s ease}body.ma-unified-menu-open .ma-unified-overlay{opacity:1;pointer-events:auto}
.ma-unified-notice{position:absolute;right:145px;top:70px;z-index:20;max-width:280px;padding:12px 14px;border:1px solid var(--ma-line);border-radius:14px;background:#fffdf8;box-shadow:0 12px 28px rgba(54,35,13,.16);font-size:.84rem}
.ma-unified-shell .ma-profile-wrap{position:relative;grid-column:3;grid-row:2;min-width:230px;max-width:390px;width:100%;height:44px}.ma-unified-shell .ma-profile{grid-column:auto;grid-row:auto;max-width:none}.ma-unified-shell .ma-profile-menu{top:calc(100% + 8px)}
.kng-module-top,.studio-topbar,.kng-global-topbar,.kng-app-topbar,[data-kng-global-topbar],body>.topbar,.hh-topline,.zero-institute-header,.zero-institute-header-wrap,[data-zero-institute-header],.kng-dashboard-header,.kng-knowledge-topbar,.usi-shell,.kng-topbar-actions,.kng-language-switcher,.kng-domain-switcher,.kng-notification-wrap,.kng-user-wrap{display:none!important}
@media(max-width:760px){.ma-unified-shell{width:min(100% - 14px,1440px);margin-top:7px}.ma-unified-shell .ma-access-pill{margin-left:18px;min-height:48px}.ma-unified-notice{right:10px;top:118px}.ma-unified-shell .ma-profile-wrap{grid-column:2 / 4;grid-row:3;min-width:0;max-width:none}}

/* v4: Access belongs to the top shell, never below it. */
.ma-unified-shell .ma-app-topbar{grid-template-rows:38px 44px 44px}
.ma-unified-shell .ma-logo-mark{grid-row:1 / 3}
.ma-unified-shell .ma-access-pill{grid-column:1;grid-row:3;justify-self:start;min-width:142px}
.ma-unified-shell .ma-profile-wrap{grid-column:2 / 4;grid-row:3;min-width:0;max-width:none}
.ma-unified-shell .ma-profile{width:100%}
body>.kng-global-topbar, body>.kng-app-topbar, body>[data-kng-global-topbar]{display:none!important}
@media(max-width:760px){.ma-unified-shell .ma-app-topbar{grid-template-columns:minmax(120px,1fr) 44px minmax(92px,128px);grid-template-rows:42px 42px 42px}.ma-unified-shell .ma-access-pill{grid-column:1;grid-row:3;min-width:0;width:100%;padding-inline:12px}.ma-unified-shell .ma-profile-wrap{grid-column:2 / 4;grid-row:3}}

/* v5 exact compact three-row shell */
.ma-unified-shell .ma-app-topbar{display:grid!important;grid-template-columns:52px minmax(0,1fr) minmax(88px,132px)!important;grid-template-rows:auto 44px 48px!important;gap:7px 8px!important;padding:9px 10px!important;border-radius:20px!important}
.ma-unified-shell .ma-logo-mark{grid-column:1 / 4!important;grid-row:1!important;min-width:0!important}
.ma-unified-shell .ma-logo-mark img{width:54px!important;height:54px!important}.ma-unified-shell .ma-logo-mark span{display:block!important;min-width:0}.ma-unified-shell .ma-logo-mark strong{font-size:clamp(1.35rem,4vw,2rem)!important}.ma-unified-shell .ma-logo-mark small{font-size:.78rem!important}
.ma-unified-shell .ma-app-controls{display:contents!important}.ma-unified-shell .ma-bell{grid-column:1!important;grid-row:2!important;width:52px!important;height:44px!important}
.ma-unified-shell .ma-domain-control{grid-column:2!important;grid-row:2!important;min-width:0!important;width:100%!important;height:44px!important;overflow:hidden!important}.ma-unified-shell .ma-domain-control span{flex:0 0 auto}.ma-unified-shell .ma-domain-control select{min-width:0!important;width:100%!important;text-overflow:ellipsis!important}
.ma-unified-shell .ma-lang-control{grid-column:3!important;grid-row:2!important;min-width:0!important;width:100%!important;height:44px!important;padding-inline:8px!important}.ma-unified-shell .ma-lang-control select{min-width:0!important;width:100%!important}
.ma-unified-shell .ma-access-pill{grid-column:1 / 2!important;grid-row:3!important;width:100%!important;min-width:0!important;min-height:48px!important;padding:0 10px!important;margin:0!important}
.ma-unified-shell .ma-profile-wrap{grid-column:2 / 4!important;grid-row:3!important;width:100%!important;min-width:0!important;max-width:none!important;height:48px!important}.ma-unified-shell .ma-profile{width:100%!important;height:48px!important;min-width:0!important;overflow:hidden!important}.ma-unified-shell .ma-profile-copy{min-width:0!important;overflow:hidden!important;flex:1}.ma-unified-shell .ma-profile strong{font-size:.88rem!important}.ma-unified-shell .ma-profile-ticker{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.ma-unified-shell .ma-profile-ticker.is-running{animation:maTicker 4.4s linear 1}@keyframes maTicker{0%{transform:translateX(0)}20%{transform:translateX(0)}100%{transform:translateX(-18%)}}
.ma-unified-notice{right:10px!important;top:112px!important}.ma-unified-shell+.ma-unified-shell{display:none!important}
@media(min-width:761px){.ma-unified-shell{width:min(920px,calc(100% - 28px))!important}.ma-unified-shell .ma-app-topbar{grid-template-columns:58px minmax(220px,1fr) 130px!important}.ma-unified-shell .ma-logo-mark{min-height:54px}.ma-unified-shell .ma-access-pill{max-width:180px}}

/* profile messages v1: calm, readable transitions */
.ma-unified-shell .ma-profile-ticker{
  transform:none!important;
  animation:none!important;
  opacity:1;
  transition:opacity .22s ease;
}
.ma-unified-shell .ma-profile-ticker.is-changing{opacity:0}
.ma-unified-shell .ma-profile-ticker.is-visible{opacity:1}

/* v7: readable profile marquee and compact luxury access control */
.ma-unified-shell .ma-profile-copy{
  position:relative;
  overflow:hidden!important;
}
.ma-unified-shell .ma-profile-ticker{
  display:block!important;
  width:max-content!important;
  min-width:100%!important;
  max-width:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  will-change:transform,opacity;
  transform:translateX(0);
}
.ma-unified-shell .ma-profile-ticker.is-marquee{
  animation:maProfileMarquee var(--ma-marquee-duration,10s) linear 1 both!important;
}
@keyframes maProfileMarquee{
  0%,12%{transform:translateX(0)}
  88%,100%{transform:translateX(var(--ma-marquee-distance,-80px))}
}
.ma-unified-shell .ma-access-pill{
  gap:7px!important;
  padding:0 8px!important;
  font-size:clamp(.73rem,2.7vw,.88rem)!important;
  letter-spacing:.01em!important;
  overflow:hidden!important;
  animation:maAccessBreath 4.8s ease-in-out infinite;
  transform-origin:center;
}
.ma-unified-shell .ma-access-menu-icon{
  flex:0 0 18px!important;
  width:18px!important;
  gap:3px!important;
}
.ma-unified-shell .ma-access-menu-icon i{
  width:18px!important;
  height:2px!important;
}
.ma-unified-shell .ma-access-label{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
@keyframes maAccessBreath{
  0%,100%{transform:translateY(0) scale(1);box-shadow:0 9px 22px rgba(54,35,13,.16),0 2px 6px rgba(127,38,53,.08)}
  50%{transform:translateY(-1px) scale(1.018);box-shadow:0 13px 28px rgba(54,35,13,.21),0 3px 9px rgba(127,38,53,.11)}
}
@media (prefers-reduced-motion:reduce){
  .ma-unified-shell .ma-access-pill,.ma-unified-shell .ma-profile-ticker.is-marquee{animation:none!important}
}

/* v8: true right-to-left television ticker and circular access control */
.ma-unified-shell .ma-app-topbar{
  grid-template-columns:82px minmax(0,1fr) 78px!important;
  grid-template-rows:auto 44px 78px!important;
}
.ma-unified-shell .ma-lang-control{
  grid-column:3!important;
  padding-inline:5px!important;
}
.ma-unified-shell .ma-lang-control select{
  width:48px!important;
  min-width:48px!important;
}
.ma-unified-shell .ma-domain-control{
  grid-column:2!important;
  min-width:0!important;
}
.ma-unified-shell .ma-domain-control select{
  width:100%!important;
  min-width:0!important;
  text-overflow:clip!important;
}
.ma-unified-shell .ma-access-pill{
  width:76px!important;
  height:76px!important;
  min-width:76px!important;
  min-height:76px!important;
  padding:0!important;
  border-radius:50%!important;
  overflow:visible!important;
  display:grid!important;
  place-items:center!important;
}
.ma-unified-shell .ma-access-pill:after{inset:4px!important;border-radius:50%!important}
.ma-unified-shell .ma-access-label{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.ma-unified-shell .ma-access-arc{
  position:absolute;
  inset:4px;
  width:68px;
  height:68px;
  overflow:visible;
  pointer-events:none;
}
.ma-unified-shell .ma-access-arc text{
  fill:currentColor;
  font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ma-unified-shell .ma-access-menu-icon{
  position:relative;
  z-index:2;
  width:24px!important;
  flex-basis:24px!important;
  gap:4px!important;
  transform:translateY(7px);
}
.ma-unified-shell .ma-access-menu-icon i{width:24px!important;height:2px!important}
.ma-unified-shell .ma-profile-wrap{height:78px!important}
.ma-unified-shell .ma-profile{height:78px!important}
.ma-unified-shell .ma-profile-ticker{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.ma-unified-shell .ma-profile-ticker-track{
  display:inline-block;
  width:max-content;
  min-width:0;
  white-space:nowrap;
  will-change:transform;
  transform:translateX(var(--ma-ticker-start,100%));
}
.ma-unified-shell .ma-profile-ticker-track.is-marquee{
  animation:maProfileTrueTicker var(--ma-marquee-duration,12s) linear 1 both!important;
}
@keyframes maProfileTrueTicker{
  0%,7%{transform:translateX(var(--ma-ticker-start,100%))}
  93%,100%{transform:translateX(var(--ma-ticker-end,-100%))}
}
@media(max-width:760px){
  .ma-unified-shell .ma-app-topbar{grid-template-columns:82px minmax(0,1fr) 74px!important;grid-template-rows:auto 44px 76px!important}
  .ma-unified-shell .ma-domain-control>span{font-size:.68rem!important}
  .ma-unified-shell .ma-domain-control{padding-inline:7px!important}
  .ma-unified-shell .ma-lang-control{padding-inline:3px!important}
  .ma-unified-shell .ma-lang-control select{width:42px!important;min-width:42px!important}
  .ma-unified-shell .ma-access-pill{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important}
  .ma-unified-shell .ma-access-arc{width:64px;height:64px}
  .ma-unified-shell .ma-profile-wrap,.ma-unified-shell .ma-profile{height:72px!important}
}
@media(prefers-reduced-motion:reduce){
  .ma-unified-shell .ma-profile-ticker-track.is-marquee{animation:maProfileTrueTicker 16s linear 1 both!important}
}

/* v9: sticky compact shell, larger avatar, animated access halo */
.ma-unified-shell{
  position:sticky!important;
  top:max(4px,env(safe-area-inset-top))!important;
  z-index:1200!important;
}
.ma-unified-shell .ma-app-topbar{
  grid-template-columns:64px minmax(0,1fr) 62px!important;
  grid-template-rows:auto 38px 64px!important;
  gap:6px 7px!important;
  padding:8px 9px!important;
  border-radius:19px!important;
  backdrop-filter:blur(18px) saturate(1.08)!important;
  box-shadow:0 10px 28px rgba(54,35,13,.11)!important;
}
.ma-unified-shell .ma-bell{
  width:38px!important;
  height:38px!important;
  justify-self:center!important;
  border-radius:12px!important;
}
.ma-unified-shell .ma-domain-control,
.ma-unified-shell .ma-lang-control{
  height:38px!important;
  min-height:38px!important;
  border-radius:12px!important;
}
.ma-unified-shell .ma-lang-control{
  padding-inline:3px!important;
}
.ma-unified-shell .ma-lang-control select{
  width:38px!important;
  min-width:38px!important;
  font-size:.9rem!important;
}
.ma-unified-shell .ma-domain-control{
  padding-inline:8px!important;
}
.ma-unified-shell .ma-domain-control>span{
  font-size:.66rem!important;
}
.ma-unified-shell .ma-domain-control select{
  font-size:.9rem!important;
}
.ma-unified-shell .ma-access-pill{
  width:60px!important;
  height:60px!important;
  min-width:60px!important;
  min-height:60px!important;
  align-self:center!important;
  justify-self:center!important;
  border-color:rgba(185,130,47,.38)!important;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,253,246,.98) 0 55%,rgba(255,253,246,.84) 63%,transparent 68%),
    conic-gradient(from 0deg,rgba(255,189,105,.62),rgba(245,146,198,.52),rgba(141,192,255,.55),rgba(154,232,202,.55),rgba(255,221,126,.62),rgba(255,189,105,.62))!important;
  box-shadow:0 8px 22px rgba(70,42,20,.18),0 0 16px rgba(255,202,126,.24)!important;
  animation:maAccessAura 5.6s ease-in-out infinite!important;
}
.ma-unified-shell .ma-access-pill:after{
  inset:-7px!important;
  border:0!important;
  border-radius:50%!important;
  background:conic-gradient(from 30deg,rgba(255,191,107,.18),rgba(245,157,210,.22),rgba(137,194,255,.22),rgba(160,233,205,.2),rgba(255,226,138,.18),rgba(255,191,107,.18))!important;
  filter:blur(8px) saturate(1.2)!important;
  opacity:.62!important;
  z-index:-1!important;
  animation:maAccessSpiral 7.5s linear infinite!important;
}
.ma-unified-shell .ma-access-pill:before{
  content:attr(data-access-label);
  position:absolute;
  top:7px;
  left:50%;
  transform:translateX(-50%) scale(.92);
  z-index:3;
  max-width:50px;
  color:currentColor;
  font:800 8px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.03em;
  white-space:nowrap;
  opacity:1;
  animation:maAccessStraight 5.6s ease-in-out infinite;
}
.ma-unified-shell .ma-access-arc{
  inset:1px!important;
  width:58px!important;
  height:58px!important;
  animation:maAccessArcText 5.6s ease-in-out infinite;
}
.ma-unified-shell .ma-access-arc text{
  font-size:9px!important;
  letter-spacing:.035em!important;
}
.ma-unified-shell .ma-access-menu-icon{
  width:21px!important;
  flex-basis:21px!important;
  gap:3px!important;
  transform:translateY(5px)!important;
}
.ma-unified-shell .ma-access-menu-icon i{
  width:21px!important;
  height:2px!important;
}
.ma-unified-shell .ma-profile-wrap,
.ma-unified-shell .ma-profile{
  height:64px!important;
}
.ma-unified-shell .ma-profile{
  padding:5px 9px!important;
  border-radius:15px!important;
}
.ma-unified-shell .ma-avatar{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  font-size:1rem!important;
}
.ma-unified-shell .ma-profile strong{
  font-size:.92rem!important;
}
.ma-unified-shell .ma-profile-ticker{
  font-size:.82rem!important;
  line-height:1.2!important;
}
@keyframes maAccessAura{
  0%,100%{transform:scale(.96);filter:hue-rotate(0deg);box-shadow:0 8px 22px rgba(70,42,20,.16),0 0 12px rgba(255,202,126,.22)}
  50%{transform:scale(1.04);filter:hue-rotate(18deg);box-shadow:0 12px 28px rgba(70,42,20,.2),0 0 24px rgba(155,205,255,.28)}
}
@keyframes maAccessSpiral{
  to{transform:rotate(360deg) scale(1.08)}
}
@keyframes maAccessStraight{
  0%,20%,80%,100%{opacity:1;transform:translateX(-50%) scale(.92)}
  42%,58%{opacity:0;transform:translateX(-50%) scale(1.08)}
}
@keyframes maAccessArcText{
  0%,20%,80%,100%{opacity:0;transform:scale(.82)}
  42%,58%{opacity:1;transform:scale(1)}
}
@media(max-width:760px){
  .ma-unified-shell{width:min(100% - 10px,920px)!important;margin-top:5px!important}
  .ma-unified-shell .ma-app-topbar{grid-template-columns:64px minmax(0,1fr) 60px!important;grid-template-rows:auto 38px 64px!important}
  .ma-unified-shell .ma-logo-mark img{width:48px!important;height:48px!important}
  .ma-unified-shell .ma-logo-mark strong{font-size:clamp(1.22rem,6vw,1.72rem)!important}
  .ma-unified-shell .ma-logo-mark small{font-size:.72rem!important}
}
@media(prefers-reduced-motion:reduce){
  .ma-unified-shell .ma-access-pill,
  .ma-unified-shell .ma-access-pill:after,
  .ma-unified-shell .ma-access-pill:before,
  .ma-unified-shell .ma-access-arc{animation:none!important}
}

/* v10: wider language control and continuously visible flat-to-arc access label */
.ma-unified-shell .ma-app-topbar{
  grid-template-columns:64px minmax(0,1fr) 74px!important;
}
.ma-unified-shell .ma-lang-control{
  padding-inline:6px!important;
}
.ma-unified-shell .ma-lang-control select{
  width:50px!important;
  min-width:50px!important;
  padding-right:14px!important;
}
.ma-unified-shell .ma-domain-control{
  padding-inline:7px!important;
}
.ma-unified-shell .ma-access-pill:before{
  display:none!important;
  content:none!important;
  animation:none!important;
}
.ma-unified-shell .ma-access-arc{
  opacity:1!important;
  transform:none!important;
  animation:none!important;
}
.ma-unified-shell .ma-access-arc path{
  d:path("M18 36 Q50 36 82 36");
  animation:maAccessPathBreathe 5.8s ease-in-out infinite;
}
.ma-unified-shell .ma-access-arc text{
  opacity:1!important;
  transform:none!important;
}
@keyframes maAccessPathBreathe{
  0%,100%{d:path("M18 36 Q50 36 82 36")}
  50%{d:path("M18 58 Q50 15 82 58")}
}
@media(max-width:760px){
  .ma-unified-shell .ma-app-topbar{grid-template-columns:64px minmax(0,1fr) 72px!important}
  .ma-unified-shell .ma-lang-control select{width:48px!important;min-width:48px!important;padding-right:13px!important}
}
@media(prefers-reduced-motion:reduce){
  .ma-unified-shell .ma-access-arc path{animation:none!important;d:path("M18 48 Q50 26 82 48")}
}

/* v11: slightly wider language, narrower domain; herbalism shell stays visible */
.ma-unified-shell .ma-app-topbar{
  grid-template-columns:64px minmax(0,1fr) 86px!important;
}
.ma-unified-shell .ma-lang-control{
  padding-inline:7px!important;
}
.ma-unified-shell .ma-lang-control select{
  width:58px!important;
  min-width:58px!important;
  padding-right:16px!important;
}
.ma-unified-shell .ma-domain-control{
  padding-inline:6px!important;
}
body.kng-herbalism-page .ma-unified-shell{
  position:sticky!important;
  top:max(4px,env(safe-area-inset-top))!important;
  z-index:1200!important;
}
body.kng-herbalism-page .ma-unified-shell .ma-app-topbar{
  position:relative!important;
  top:auto!important;
}
.ma-unified-shell .ma-access-menu-icon{
  display:flex!important;
  position:relative!important;
  z-index:5!important;
  opacity:1!important;
  visibility:visible!important;
}
.ma-unified-shell .ma-access-menu-icon i{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
}
@media(max-width:760px){
  .ma-unified-shell .ma-app-topbar{grid-template-columns:64px minmax(0,1fr) 84px!important}
  .ma-unified-shell .ma-lang-control select{width:56px!important;min-width:56px!important;padding-right:15px!important}
}

/* v12: language arrow inside, report headers use unified engine, herbalism fixed */
.ma-unified-shell .ma-lang-control{
  position:relative!important;
}
.ma-unified-shell .ma-lang-control select{
  -webkit-appearance:none!important;
  appearance:none!important;
  padding-right:24px!important;
}
.ma-unified-shell .ma-lang-control::after{
  content:"";
  position:absolute;
  right:10px;
  top:50%;
  width:7px;
  height:7px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:translateY(-65%) rotate(45deg);
  pointer-events:none;
  opacity:.82;
}
body.kng-herbalism-page .ma-unified-shell{
  position:fixed!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  top:max(4px,env(safe-area-inset-top))!important;
  z-index:1200!important;
}
body.kng-herbalism-page .kng-module-shell:first-of-type{
  padding-top:clamp(176px,24vw,206px)!important;
}
body.kng-membership-access-page > .ma-unified-shell{
  width:min(920px,calc(100% - 28px))!important;
}

/* v22 global sticky guarantee */
body > .ma-unified-shell{position:sticky!important;top:max(4px,env(safe-area-inset-top))!important;z-index:12000!important;align-self:start!important}

/* Core-backed notification panel */
.ma-unified-shell .ma-bell{position:relative}.ma-notification-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#9e251f;color:#fff;border:2px solid #fffdf8;font-size:.68rem;font-weight:800;line-height:16px;text-align:center}.ma-unified-notice{width:min(390px,calc(100vw - 20px));max-width:390px;max-height:min(72vh,620px);overflow:auto;padding:0!important}.ma-notice-head{position:sticky;top:0;z-index:2;padding:13px 15px;background:rgba(255,253,248,.96);border-bottom:1px solid var(--ma-line);backdrop-filter:blur(8px)}.ma-notice-state{padding:18px 15px;line-height:1.45}.ma-notice-state button{min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--ma-line);background:#fff;font:inherit}.ma-notice-list{display:grid}.ma-notice-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 15px;border-bottom:1px solid rgba(90,65,37,.12)}.ma-notice-item.is-unread{background:rgba(250,233,190,.34)}.ma-notice-item strong{display:block;margin-bottom:4px}.ma-notice-item p{margin:0 0 6px;line-height:1.4}.ma-notice-item time{font-size:.75rem;opacity:.66}.ma-notice-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px}.ma-notice-actions a,.ma-notice-actions button{min-height:34px;border-radius:999px;border:1px solid rgba(110,76,34,.25);background:#fff;padding:6px 10px;color:inherit;font:inherit;font-size:.78rem;font-weight:700;text-decoration:none}.ma-notice-actions span{font-size:.75rem;opacity:.6}@media(max-width:560px){.ma-unified-notice{right:5px!important;left:5px!important;width:auto!important;max-width:none!important}.ma-notice-item{grid-template-columns:1fr}.ma-notice-actions{flex-direction:row;align-items:center;justify-content:flex-start}}

/* 2026-07-18 v2: notification dropdown anchored directly below the bell */
.ma-unified-notice{
  position:fixed!important;
  left:var(--ma-notice-left,8px)!important;
  top:var(--ma-notice-top,76px)!important;
  right:auto!important;
  width:var(--ma-notice-width,min(390px,calc(100vw - 16px)))!important;
  max-width:calc(100vw - 16px)!important;
  max-height:min(68dvh,620px)!important;
  z-index:2147483000!important;
  border-radius:18px!important;
  transform-origin:24px top;
  box-shadow:0 22px 58px rgba(54,35,13,.24)!important;
}
.ma-unified-notice:not([hidden]){animation:ma-notice-drop .16s ease-out}
@keyframes ma-notice-drop{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:560px){.ma-unified-notice{right:auto!important;max-height:min(62dvh,540px)!important}}
@media(prefers-reduced-motion:reduce){.ma-unified-notice:not([hidden]){animation:none}}

/* 2026-07-18 v5: reliable notification dropdown visibility */
.ma-unified-notice[hidden]{display:none!important}
.ma-unified-notice.is-open,.ma-unified-notice:not([hidden]){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.ma-bell[data-kng-notifications-bound="1"]{touch-action:manipulation}

/* 2026-07-18 v6: persistent, card-click notifications with swipe dismissal */
.ma-unified-notice{
  max-height:var(--ma-notice-max-height,min(76dvh,680px))!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  overscroll-behavior:contain;
}
.ma-unified-notice[hidden]{display:none!important}
.ma-unified-notice .ma-notice-head{flex:0 0 auto}
.ma-unified-notice .ma-notice-list{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.ma-notice-item{
  display:block!important;
  position:relative;
  min-width:0;
  padding:14px 15px!important;
  cursor:pointer;
  touch-action:pan-y;
  transition:transform .16s ease,opacity .16s ease,background-color .16s ease;
  user-select:none;
  -webkit-user-select:none;
}
.ma-notice-item.is-unread{
  background:rgba(224,225,228,.68)!important;
  box-shadow:inset 3px 0 0 rgba(158,37,31,.64);
}
.ma-notice-item.is-read{
  background:rgba(255,253,248,.72)!important;
  opacity:.72;
}
.ma-notice-item:focus-visible{
  outline:2px solid rgba(151,102,35,.48);
  outline-offset:-3px;
}
.ma-notice-item.is-swiping{
  transition:none!important;
  touch-action:none;
}
.ma-notice-item .ma-notice-copy{min-width:0}
.ma-notice-item strong,
.ma-notice-item p{
  overflow-wrap:anywhere;
}
.ma-notice-actions{display:none!important}
@media(max-width:560px){
  .ma-unified-notice{
    max-height:var(--ma-notice-max-height,calc(100dvh - 92px))!important;
    border-radius:17px!important;
  }
  .ma-notice-item{padding:14px 13px!important}
}
@media(prefers-reduced-motion:reduce){
  .ma-notice-item{transition:none!important}
}


/* 2026-07-19 reliable touch scroll inside bell panel */
.ma-unified-notice{overscroll-behavior:contain!important;touch-action:pan-y!important}
.ma-unified-notice .ma-notice-list{max-height:min(58dvh,520px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
.ma-notice-item{padding:9px 11px!important;min-height:48px!important}.ma-notice-item strong{display:inline!important;margin:0 7px 0 0!important;font-size:.8rem!important}.ma-notice-item time{display:inline!important;font-size:.67rem!important}.ma-notice-item p{margin:3px 0 0!important;font-size:.73rem!important;line-height:1.28!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 20260826: ZERO NEBO and PRIJAVA/PROFIL are separate DOM controls. */
.ma-unified-shell .ma-sky-badge{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-width:116px;max-width:170px;border:0;background:transparent;box-shadow:none;padding:0;color:var(--ma-ink)}
.ma-unified-shell .ma-sky-badge>img{display:block;width:38px;height:38px;min-width:38px;object-fit:contain}
.ma-unified-shell .ma-sky-copy{display:block;min-width:0;overflow:hidden;text-align:left}
.ma-unified-shell .ma-sky-copy b,.ma-unified-shell .ma-sky-copy strong,.ma-unified-shell .ma-sky-copy small{display:block;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;animation:none;transform:none}
.ma-unified-shell .ma-sky-copy b{font-size:.55rem;line-height:1.05;letter-spacing:.04em;color:var(--ma-muted)}
.ma-unified-shell .ma-sky-copy strong{font-size:.68rem;line-height:1.05;color:var(--ma-ink)}
.ma-unified-shell .ma-sky-copy small{margin-top:2px;font-size:.58rem;line-height:1.05;color:var(--ma-muted)}
@media(max-width:760px){.ma-unified-shell .ma-sky-badge{min-width:84px;max-width:112px;gap:3px}.ma-unified-shell .ma-sky-badge>img{width:34px;height:34px;min-width:34px}.ma-unified-shell .ma-sky-copy b{font-size:.48rem}.ma-unified-shell .ma-sky-copy strong{font-size:.61rem}.ma-unified-shell .ma-sky-copy small{font-size:.52rem}}

/* 20260826 scope lock: ACCESS | ZERO NEBO | PRIJAVA/PROFIL are three real row-3 controls. */
.ma-unified-shell .ma-app-topbar{grid-template-columns:64px minmax(96px,1fr) minmax(104px,.72fr)!important;grid-template-rows:auto 38px 64px!important}
.ma-unified-shell .ma-access-pill{grid-column:1!important;grid-row:3!important}
.ma-unified-shell .ma-sky-wrap{position:relative;grid-column:2!important;grid-row:3!important;width:100%;min-width:0;height:64px;align-self:stretch;z-index:910}
.ma-unified-shell .ma-profile-wrap{grid-column:3!important;grid-row:3!important;width:100%!important;min-width:0!important;max-width:none!important;height:64px!important}
.ma-unified-shell .ma-profile{height:64px!important;min-width:0!important;padding:5px 7px!important}
.ma-unified-shell .ma-profile .ma-avatar{width:34px!important;height:34px!important;min-width:34px!important}
.ma-unified-shell .ma-profile-copy{min-width:0!important}
.ma-unified-shell .ma-profile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem!important}
.ma-unified-shell .ma-profile-ticker{font-size:.68rem!important}
.ma-unified-shell .ma-sky-badge{width:100%;height:64px;min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:5px;padding:0 3px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ma-ink);cursor:pointer;text-align:left}
.ma-unified-shell .ma-sky-badge:focus-visible{outline:2px solid rgba(151,102,35,.48);outline-offset:2px;border-radius:10px!important}
.ma-unified-shell .ma-sky-badge>img{display:block;width:40px;height:40px;min-width:40px;object-fit:contain;filter:none!important;box-shadow:none!important;background:transparent!important}
.ma-unified-shell .ma-sky-copy{display:block;min-width:0;overflow:hidden}
.ma-unified-shell .ma-sky-copy strong,.ma-unified-shell .ma-sky-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ma-unified-shell .ma-sky-copy strong{font-size:.7rem;line-height:1.05;color:var(--ma-ink)}
.ma-unified-shell .ma-sky-copy small{margin-top:3px;font-size:.58rem;line-height:1.08;color:var(--ma-muted)}
.ma-unified-shell .ma-sky-chevron{font-size:1rem;line-height:1;opacity:.7;transition:transform .18s ease}
.ma-unified-shell .ma-sky-badge[aria-expanded="true"] .ma-sky-chevron{transform:rotate(180deg)}
.ma-unified-shell .ma-sky-panel{position:absolute;top:calc(100% + 7px);left:0;width:min(340px,calc(100vw - 22px));max-height:min(68dvh,560px);overflow:auto;padding:14px;border:1px solid rgba(151,102,35,.22);border-radius:16px;background:rgba(255,253,248,.98);box-shadow:0 18px 42px rgba(54,35,13,.2);color:var(--ma-ink);z-index:1300}
.ma-unified-shell .ma-sky-panel[hidden]{display:none!important}
.ma-unified-shell .ma-sky-panel-title{display:block;margin:0 0 8px;font:800 .82rem/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.04em}
.ma-unified-shell .ma-sky-panel-location{display:flex;justify-content:space-between;gap:14px;align-items:baseline;padding-bottom:9px;border-bottom:1px solid rgba(151,102,35,.16)}
.ma-unified-shell .ma-sky-panel-location b{font-size:.88rem}.ma-unified-shell .ma-sky-panel-location span{font-size:.78rem;color:var(--ma-muted)}
.ma-unified-shell .ma-sky-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.ma-unified-shell .ma-sky-detail-grid>span{display:block;min-width:0;padding:8px 9px;border-radius:10px;background:rgba(245,238,226,.6)}
.ma-unified-shell .ma-sky-detail-grid b,.ma-unified-shell .ma-sky-detail-grid small{display:block;overflow-wrap:anywhere}.ma-unified-shell .ma-sky-detail-grid b{font-size:.65rem;color:var(--ma-muted)}.ma-unified-shell .ma-sky-detail-grid small{margin-top:3px;font-size:.75rem;color:var(--ma-ink)}
@media(min-width:761px){.ma-unified-shell .ma-app-topbar{grid-template-columns:64px minmax(240px,1fr) minmax(190px,.72fr)!important}.ma-unified-shell .ma-sky-panel{left:50%;transform:translateX(-50%)}}
@media(max-width:390px){.ma-unified-shell .ma-app-topbar{grid-template-columns:58px minmax(88px,1fr) minmax(98px,.72fr)!important}.ma-unified-shell .ma-access-pill{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}.ma-unified-shell .ma-sky-wrap,.ma-unified-shell .ma-sky-badge,.ma-unified-shell .ma-profile-wrap,.ma-unified-shell .ma-profile{height:60px!important}.ma-unified-shell .ma-sky-badge{grid-template-columns:36px minmax(0,1fr) 12px;gap:3px}.ma-unified-shell .ma-sky-badge>img{width:34px;height:34px;min-width:34px}.ma-unified-shell .ma-profile .ma-avatar{width:30px!important;height:30px!important;min-width:30px!important}.ma-unified-shell .ma-sky-detail-grid{grid-template-columns:1fr}}

/* KNG header uses the canonical R20 ZERO NEBO panel without duplicating its compact badge. */
.zero-sky-r20.kng-sky-canonical-source>.zero-sky-r11-badge{visibility:hidden!important;pointer-events:none!important}
