/* Public Bourgeois design system; explicitly scoped to opted-in pages.
   Never apply to tenant previews or authenticated application interiors. */
html.bai-public-brand{
 --bai-ink:#17323c;--bai-teal:#20545c;--bai-teal-2:#34746e;--bai-ivory:#f6f1e8;--bai-paper:#fffdf7;--bai-brass:#8b662e;--bai-muted:#4f6466;--bai-line:#c8cec3;--bai-soft:#eee8da;
 --bg:var(--bai-ivory);--paper:var(--bai-paper);--ink:var(--bai-ink);--text:var(--bai-ink);--muted:var(--bai-muted);--line:var(--bai-line);--surface:var(--bai-paper);--navy:var(--bai-ink);--deep:#102a31;--teal:var(--bai-teal);--blue:var(--bai-teal);--violet:var(--bai-teal-2);--cyan:#8fbcb0;--shadow:0 16px 45px rgba(28,57,55,.12);accent-color:var(--bai-teal);
}
html.bai-public-brand.bai-dark-product{--bg:#102a31;--paper:#19383e;--ink:#fbf5e9;--text:#fbf5e9;--muted:#c1d0c8;--line:#45635f;--surface:#19383e;--blue:#83c6b6;--violet:#a8d8c7;--cyan:#a8d8c7;--shadow:0 16px 45px rgba(0,0,0,.28)}
html.bai-public-brand:not(.bai-dark-product) body{background:var(--bai-ivory)}
html.bai-public-brand :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #34746e;outline-offset:3px}
html.bai-public-brand.bai-dark-product :is(a,button,input,textarea,select,summary):focus-visible{outline-color:#a8d8c7}
html.bai-public-brand .bai-public-explore{position:relative;flex:0 0 auto;z-index:65;font:600 .86rem/1.4 Inter,system-ui,sans-serif;color:var(--bai-ink);text-align:left}
html.bai-public-brand .bai-public-explore>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 13px;border-radius:12px;border:1px solid #9cafa5;background:var(--bai-paper);color:var(--bai-ink);white-space:nowrap}
html.bai-public-brand .bai-public-explore>summary::-webkit-details-marker{display:none}
html.bai-public-brand .bai-public-explore[open]>summary{background:#e3e9df;border-color:var(--bai-teal)}
html.bai-public-brand .bai-public-menu{position:absolute;top:calc(100% + 8px);right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(540px,calc(100vw - 28px));max-height:min(72dvh,560px);overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid #9cafa5;border-radius:16px;background:var(--bai-paper);box-shadow:0 20px 60px #17323c33;color:var(--bai-ink);text-align:left;z-index:70}
html.bai-public-brand .bai-public-explore:not([open])>.bai-public-menu{display:none}
html.bai-public-brand .bai-public-menu section{display:grid;align-content:start;gap:2px;min-width:0;padding:0;background:none;border:0;box-shadow:none;margin:0}
html.bai-public-brand .bai-public-menu h2{font:750 .68rem/1.4 Inter,system-ui,sans-serif;color:var(--bai-brass);letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;padding:0}
html.bai-public-brand .bai-public-menu a{display:block;min-height:40px;padding:9px 7px;border-radius:7px;background:transparent;color:var(--bai-ink);font:600 .84rem/1.35 Inter,system-ui,sans-serif;text-decoration:none;white-space:normal;border:0;box-shadow:none}
html.bai-public-brand .bai-public-menu a:hover{background:#e3e9df;color:var(--bai-ink)}
html.bai-public-brand .bai-brand-home{display:inline-flex;align-items:center;gap:9px;min-width:0;color:inherit;text-decoration:none}
html.bai-public-brand .bai-brand-home img{width:36px;height:36px;object-fit:contain;flex:none;border:0;border-radius:0;background:transparent;box-shadow:none}
html.bai-public-brand .bai-public-standalone{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(1180px,calc(100% - 32px));margin:0 auto;padding:12px 0;color:var(--ink)}
html.bai-public-brand.bai-marketing :is(.hero h1,.consult-copy h1){font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.035em}
html.bai-public-brand.bai-marketing :is(.top,header:not(.bai-public-standalone)){border-color:var(--bai-line)}
html.bai-public-brand.bai-marketing .btn.primary,html.bai-public-brand.bai-marketing .links .primary,html.bai-public-brand.bai-marketing .links .open,html.bai-public-brand.bai-marketing .navcta{background:linear-gradient(135deg,#194b53,#326f68);color:#fffdf7;border-color:transparent}
html.bai-public-brand .bai-crosslinks{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:center;padding:18px 16px;font-size:.82rem;color:var(--bai-ink);background:var(--bai-ivory);border-top:1px solid var(--bai-line)}
html.bai-public-brand .bai-crosslinks a{color:var(--bai-teal);text-decoration:underline;text-underline-offset:3px}
html.bai-public-brand .bai-crosslinks strong{color:var(--bai-ink)}
@media(max-width:800px){html.bai-public-brand .bai-public-menu{position:fixed;top:max(68px,env(safe-area-inset-top));right:12px;left:auto;width:min(540px,calc(100vw - 24px));max-height:70dvh}html.bai-public-brand .bai-public-explore{align-self:center}html.bai-public-brand.bai-marketing .nav{flex-wrap:wrap;gap:8px}html.bai-public-brand .bai-public-menu a{min-height:44px}}
@media(max-width:360px){html.bai-public-brand .bai-public-menu{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html.bai-public-brand .bai-public-menu,html.bai-public-brand .bai-public-explore{scroll-behavior:auto}}
/* Page-specific shared surfaces: preserve each application's functional styles. */
html.bai-public-brand.bai-page-pricing :is(.eyebrow,.tag){color:var(--bai-teal);border-color:var(--bai-line);background:var(--bai-paper)}
html.bai-public-brand.bai-page-pricing :is(.plan,.toolcard){background:var(--bai-paper)}
html.bai-public-brand.bai-page-business .chips span{background:#e3e9df;border-color:#9cafa5}
html.bai-public-brand.bai-page-consulting .consult-main,html.bai-public-brand.bai-page-education .consult-main{--blue:var(--bai-teal)}
html.bai-public-brand :is(.scope-panel){background:linear-gradient(155deg,#e6e9de,#f6f1e8 55%,#d8e7df)}
html.bai-public-brand :is(.scope-card span,.program-tag){color:var(--bai-teal)}
html.bai-public-brand .program-tag{background:#e3e9df}
html.bai-public-brand.bai-page-global-solutions{--cream:var(--bai-ivory);--gold:#d9b67a}
html.bai-public-brand.bai-page-global-solutions .hero{background:radial-gradient(ellipse at 83% 21%,#417f85 0%,transparent 40%),linear-gradient(125deg,#102a31,#20545c 60%,#34746e)}
html.bai-public-brand.bai-page-small-business .hero,html.bai-public-brand.bai-page-business-overview .hero{background:linear-gradient(125deg,#17323c,#20545c 72%,#34746e)}
html.bai-public-brand.bai-page-business-overview .cta,html.bai-public-brand.bai-page-small-business .cta{background:#e3e9df}

/* Product-specific exceptions retain the existing application layout and
   transactional semantics. */
html.bai-public-brand.bai-product-studio{--bg:#fff8f2;--paper:#fff;--ink:#241b17;--text:#241b17;--muted:#6e625a;--line:rgba(36,27,23,.12);--surface:#fff;--shadow:0 18px 55px rgba(65,43,32,.12)}
html.bai-public-brand.bai-product-studio body{background:#fff8f2}
html.bai-public-brand.bai-page-account{--primary:var(--bai-teal);--secondary:var(--bai-teal-2);--accent:#8fbcb0;--soft:var(--bai-soft)}
html.bai-public-brand.bai-page-account .topbar{background:#fffdf7e8}
html.bai-public-brand.bai-page-account .btn:hover{border-color:#9cafa5}
html.bai-public-brand.bai-page-pay .pay,html.bai-public-brand.bai-page-checkout-email #continueButton{background:#20545c;color:#fffdf7}
html.bai-public-brand.bai-page-agents{--card:#19383e}
html.bai-public-brand.bai-page-document-help .action:not(:disabled){border-color:var(--bai-line)}
html.bai-public-brand.bai-page-document-help .action.primary:not(:disabled){border-color:#9cafa5;background:linear-gradient(135deg,#e3e9df,#eee8da)}
html.bai-public-brand.bai-public-experience{--surface-soft:#eee8da;--user:#173d43;--user-text:#fffdf7}
html.bai-public-brand.bai-public-experience[data-theme="dark"]{--bg:#102a31;--paper:#19383e;--surface:#19383e;--surface-soft:#24464a;--text:#fbf5e9;--ink:#fbf5e9;--muted:#c1d0c8;--line:#45635f;--user:#d9e8dd;--user-text:#17323c}
html.bai-public-brand.bai-public-experience[data-theme="dark"] body{background:#102a31}
html.bai-public-brand.bai-public-experience .topbar{overflow:visible}
html.bai-public-brand.bai-public-experience .top-actions{align-items:center}
html.bai-public-brand.bai-public-experience .bai-public-explore>summary{min-height:40px}
html.bai-public-brand .bai-public-explore[hidden]{display:none!important}
html.bai-public-brand.bai-page-ai-office-hours .nav{flex-wrap:wrap}
html.bai-public-brand.bai-page-document-help .top{gap:8px;flex-wrap:wrap}
html.bai-public-brand.bai-page-masterclass .nav-links{flex-wrap:wrap;align-items:center}
html.bai-public-brand.bai-page-masterclass .bai-public-menu{z-index:120}
html.bai-public-brand.bai-page-studio-restore .top-actions{flex-wrap:wrap}
html.bai-public-brand.bai-page-global-solutions footer .bai-crosslinks{max-width:none}
@media(max-width:800px){
 html.bai-public-brand.bai-marketing .nav{flex-direction:row;align-items:center;justify-content:space-between}
 html.bai-public-brand.bai-marketing .nav .links{order:3;flex:1 0 100%;flex-wrap:wrap}
 html.bai-public-brand.bai-page-global-solutions .nav>nav{order:3;flex:1 0 100%;flex-wrap:wrap}
 html.bai-public-brand.bai-page-masterclass .bai-public-explore>summary{font-size:.76rem;min-height:38px;padding:6px 9px}
 html.bai-public-brand.bai-public-experience .brand-text{display:none}
 html.bai-public-brand.bai-public-experience .bai-public-explore>summary{padding:7px 9px}
}
/* Preserve the page-specific muted legal text and status/error indicators. */
html.bai-public-brand .bai-public-menu h2{color:#765521}

/* Never put a menu over its own trigger. Native fallback is anchored; the
   progressive enhancement measures the viewport and clamps both edges. */
html.bai-public-brand .bai-public-menu{position:absolute;inset:auto auto auto auto;top:calc(100% + 8px);right:auto;left:var(--bai-menu-left,auto);width:var(--bai-menu-width,min(340px,calc(100vw - 24px)));max-height:var(--bai-menu-height,min(60dvh,560px))}
html.bai-public-brand .bai-public-explore:not([style*="--bai-menu-left"]) .bai-public-menu{left:auto;right:0}
html.bai-public-brand .bai-public-explore.bai-menu-above .bai-public-menu{top:auto;bottom:calc(100% + 8px)}
html.bai-public-brand.bai-page-small-business .nav .bai-public-explore{margin-left:auto}
html.bai-public-brand.bai-page-studio-restore .top-actions .bai-public-explore{margin-left:auto}
html.bai-public-brand.bai-page-consulting,html.bai-public-brand.bai-page-education{--paper2:#e3e9df;--dark:#102a31;--pink:#ddba78;--peach:#d9b67a;--glass:#fffdf7e8}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .nav{background:#fffdf7ec;box-shadow:0 14px 45px #17323c14}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .links a:not(.open){color:var(--bai-muted)}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .links a:hover:not(.open){background:#e3e9df}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) :is(.eyebrow,.consult-prefill,.kicker){color:var(--bai-teal)}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) :is(.consult-copy,.consult-card,.scope-card,.scope-composer){background:var(--bai-paper)}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .consult-actions .btn:not(.primary){border-color:#9cafa5;color:var(--bai-ink)}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) :is(.consult-actions .btn.primary,.request-submit,.primary-cta){background:linear-gradient(135deg,#194b53,#326f68);color:#fffdf7;border-color:transparent}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) :is(.consult-actions .btn,.request-submit):focus-visible{outline-color:#34746e}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .model-card.featured{background:#17323c;border-color:#17323c}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .model-card.featured span{color:#a8d8c7}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .consult-section.alt{background:linear-gradient(180deg,transparent,#e3e9df88,transparent)}
html.bai-public-brand:is(.bai-page-consulting,.bai-page-education) .proof-strip{background:#e3e9df}
