/* Native AdMob occupies its own strip above navigation; no HTML ad iframe is used. */
#nativeAdSafeArea{position:fixed;width:0;height:0;visibility:hidden;pointer-events:none;padding-bottom:env(safe-area-inset-bottom,0px)}
html[data-native-ads][data-native-ad-space] #appShell main{padding-bottom:calc(24px + var(--native-ad-space,0px))!important;scroll-padding-bottom:calc(24px + var(--native-ad-space,0px))}
/* The immersive Free room uses a stronger padding:0!important rule. Reserve
   the ad strip inside that flex viewport so its shelves remain fully usable. */
html[data-native-ads][data-native-ad-space] #appShell.small-animated-library-active[data-active-tab=library] main,
html[data-native-ads][data-native-ad-space] #appShell.small-animated-library-active[data-active-tab=library]:is(.phone-preview,.app-preview) main{padding-bottom:var(--native-ad-space,0px)!important}
.native-ad-fallback{position:fixed;z-index:35;left:12px;right:12px;bottom:calc(var(--native-ad-bottom,12px) + env(safe-area-inset-bottom,0px));max-width:720px;min-height:64px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;box-sizing:border-box;border:1px solid var(--line,#dbd5e7);border-radius:12px;background:var(--panel,#faf8ff);color:var(--ink,#29233a);box-shadow:0 3px 16px #28203a12}
.native-ad-fallback[hidden],#nativeAdPrivacyChoices[hidden]{display:none!important}
.native-ad-fallback div{display:grid;gap:2px;min-width:0}.native-ad-fallback small{font-size:9px;line-height:1.3;color:var(--muted,#625b70);text-transform:uppercase;letter-spacing:.06em}.native-ad-fallback strong{font-size:13px;line-height:1.4}.native-ad-fallback span{font-size:11px;line-height:1.4;color:var(--muted,#625b70)}
.native-ad-fallback button{min-height:44px;padding:9px 12px;border:1px solid #b8a3d3;border-radius:9px;color:var(--ink,#29233a);background:var(--panel,#fff);font-size:12px;font-weight:600;flex-shrink:0}.native-ad-fallback button:focus-visible{outline:3px solid #8a71b3;outline-offset:2px}
html[data-app-theme=dark] .native-ad-fallback{background:#272238;border-color:#584b71;color:#f4effa}html[data-app-theme=dark] .native-ad-fallback :is(small,span){color:#d3c9e0}html[data-app-theme=dark] .native-ad-fallback button{background:#393047;color:#f4effa}
#nativeAdPrivacyChoices{min-height:44px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:360px){.native-ad-fallback{left:8px;right:8px;gap:8px;padding:8px 10px}.native-ad-fallback span{display:none}}
@media(prefers-reduced-motion:reduce){.native-ad-fallback,.native-ad-fallback button{transition:none;animation:none}}
