/* C66: viewport canvas and opaque scrolling surfaces. */
html:has(#content) #content{min-height:100vh;min-height:100dvh;box-sizing:border-box}
html[data-c66-paint="waiting"] #content,
html[data-c66-paint="waiting"] mysiman-unified-header,
html[data-c66-paint="waiting"] mysiman-footer-owner,
html[data-c66-paint="waiting"] mysiman-portal-footer{visibility:hidden!important}
#consumerAccessC46 .access-grid-c46{padding:0!important;position:relative;isolation:isolate;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:0;--c66-sticky-bg:#102a40}
#consumerAccessC46 .access-grid-c46 .c61-group-heading{top:0!important;margin:0!important;border-radius:0!important;width:100%;min-width:100%;z-index:90!important;opacity:1!important;background:var(--c66-sticky-bg)!important;box-shadow:0 -12px 0 12px var(--c66-sticky-bg),0 3px 0 var(--c66-sticky-bg)!important;contain:none!important}
#consumerAccessC46 .access-grid-c46 .c61-feature-entry{padding:5px 10px;z-index:0}
html[data-theme="light"] #consumerAccessC46 .access-grid-c46,
html:not([data-theme="dark"]) #consumerAccessC46 .access-grid-c46{--c66-sticky-bg:#e9f2f8}
/* Shared headers must cover their full scroll boundary, including rounded gaps. */
.settings-header-sticky{background:var(--surface,#0a2031);background-clip:border-box;isolation:isolate}
html[data-theme="light"] .settings-header-sticky{background:#f0f5fa}
.consumer-feature-row[aria-busy="true"]{outline:1px solid #32b6c8;outline-offset:-1px}

/* Fallback for WebViews without :has(). */
/* C75: the exposed main-page canvas follows the canonical theme.
   CSS only: no resize/zoom observers, scroll handlers or geometry changes. */
:root{--mysiman-main-canvas-c75:#ffffff}
:root[data-theme="dark"],
:root.siman-theme-dark-v854:not([data-theme="light"]),
:root.siman-main-dark-v867:not([data-theme="light"]){--mysiman-main-canvas-c75:#071827}
html.siman-main-screen-active,html.siman-app-data-ready-v787{
  --siman-mobile-main-background:var(--mysiman-main-canvas-c75)!important;
  background:var(--mysiman-main-canvas-c75)!important;min-height:100vh;
}
html.siman-main-screen-active body,html.siman-app-data-ready-v787 body{
  background:var(--mysiman-main-canvas-c75)!important;min-height:100vh;min-height:100dvh;margin-bottom:0!important;
}
/* Beat older mobile/desktop background owners without changing their sizes. */
html[data-siman-page="main"][data-theme]:is(.siman-main-screen-active,.siman-app-data-ready-v787),
html[data-siman-page="main"][data-theme]:is(.siman-main-screen-active,.siman-app-data-ready-v787) body{
  background:var(--mysiman-main-canvas-c75)!important;
}

