/* The conductor's family controls: one Your apps location and comfortable pill actions.
 * These rules contain no palette: each product keeps its own text and surface tokens.
 * The pill size and radius apply to the listed family pages, including ID-styled buttons. */
html:has(link[href*="ooa-family.css"]):not(:has(#setup-stage)) body :is(button,.button,.btn,.icon-button,[role="button"],a.login-button,a.post-link-button,a.hero-cta,a.summary-button,a.signin-link,a.apps-link,a.apps-button,a.backend-switcher,a.post-board-link,a.post-docs-link,a.replay-download,a.laya-launcher,.setup-steps a,.nav a){border-radius:999px!important;min-height:44px!important}
/* Viewport-based placement stays 16px from the physical edge even with a reserved scrollbar gutter. */
html body a.family-apps-control[aria-label="Your apps"]{position:fixed;top:6px;right:auto;bottom:auto;left:calc(100vw - 136px);z-index:55;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:120px;min-width:120px;max-width:120px;height:44px;min-height:44px;margin:0;padding:0 12px;border:1px solid var(--ui-control-line,var(--ui-line,currentColor));border-radius:999px;background:var(--ui-panel,var(--navy-panel,var(--night,var(--panel,Canvas))));color:var(--ui-text,var(--on-navy,var(--on-night,inherit)));font:600 14px/1.2 system-ui,sans-serif;text-decoration:none;white-space:nowrap;flex:none}
html body a.family-apps-control[aria-label="Your apps"] svg{display:block;flex:none;width:20px;height:20px;fill:currentColor;stroke:none;pointer-events:none}
html body a.family-apps-control[aria-label="Your apps"] span{margin:0;padding:0;color:inherit;font:inherit;letter-spacing:normal}
.family-topbar{position:fixed;top:0;right:auto;bottom:auto;left:0;width:100%;height:56px;z-index:45;background:var(--ui-panel,var(--navy-panel,var(--night,var(--panel,Canvas))));color:var(--ui-text,var(--on-navy,var(--on-night,inherit)));border-bottom:1px solid var(--ui-line,currentColor)}
body:has(> .family-topbar){padding-top:56px}
body:has(> .family-topbar)>.sidebar{top:56px;bottom:0}
body:has(> .family-topbar)>.sidebar>.brand{flex-shrink:0}
/* Existing fixed back-end and sticky board bars already provide a protected row. */
body .site-header .header-inner:has(.family-apps-control){padding-right:148px;flex-wrap:wrap}
/* Laya already owns one fixed-height viewport; reserve the shared band within it. */
body:has(> .family-topbar)>main:has(>.appbar){height:calc(var(--app-height,100dvh) - 56px)}
/* The standalone map's fixed tools begin below its new shared header. #showpanel's top is inline, so the same margin clears the bar. */
body:has(> .family-topbar):has(#map) :is(#left,#card,#maptitle,#map-nav,#showpanel){margin-top:56px}
body:has(> .family-topbar):has(#map) :is(#left,#card){max-height:calc(100vh - 84px)}
/* The map's own both-open stack is more specific than a flat max-height. Keep that stack, and shorten the detail card by the same 56px the band adds. */
body:has(> .family-topbar):has(#map).map-side-panels-open #left{max-height:34vh;max-height:34dvh}
body:has(> .family-topbar):has(#map).map-side-panels-open #card{max-height:calc(66vh - 176px);max-height:calc(66dvh - 176px)}
/* The shared band leaves the live-call actions inside Laya's phone panel. */
@media(max-width:700px){body:has(> .family-topbar) .call-panel-inner{gap:8px}}
/* Sign-in pages paint an OOA photo with a gradient shorthand, which leaves background-color transparent. This longhand uses the existing OOA navy and keeps the photo. */
html[data-style="ooa"][data-theme="dark"] body:has(.login-stage){background-color:var(--ui-bg)}
