/* Explicit host allocation; component styling stays inside isolated ShadowRoots. */
body:has(#astraFrame){background:#f6f2eb}
body:has(#astraFrame)>.buyer-topbar,body:has(#astraFrame)>.mobile-nav{display:none}
body:has(#astraFrame) #intro{display:none}
body:has(#astraFrame) .procurement{max-width:none;width:100%;margin:0;padding:0 0 40px}
body:has(#astraFrame) #startOver{position:relative;top:auto;float:right;margin:16px 3% 0 16px;z-index:2;border:1px solid #c8b486;border-radius:7px;color:#263947;background:#fffaf1;min-height:44px;padding:8px 16px}
body:has(#astraFrame) #notice{clear:both;margin:16px 3%}
.astra-account #identity{display:block;color:#eee5d5;margin:0 0 10px;white-space:normal}
.astra-account #logout{min-height:44px;color:#f6f2eb;border:1px solid #a0804a;background:transparent}
#astraFrame[data-start-active] .procurement{position:relative;padding-bottom:0}
#astraFrame[data-start-active] #startOver{position:absolute;top:8px;right:24px;float:none;margin:0;min-height:44px;padding:8px 10px;font:500 12px "Geist","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:0;border-radius:4px;background:transparent;box-shadow:none;color:#536571;text-decoration:underline;text-underline-offset:3px}
#astraFrame[data-start-active] .astra-account{font-family:"Geist","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#astraFrame[data-start-active] .astra-account #identity{font-size:11px;color:#d7dce0;line-height:1.5}
#astraFrame[data-start-active] .astra-account #logout{font:500 12px "Geist",sans-serif;border-color:#99834e66;min-height:44px;padding:7px 10px;box-shadow:none}
@media(max-width:760px){#astraFrame[data-start-active] .astra-account{display:flex;gap:12px;align-items:center;justify-content:space-between}#astraFrame[data-start-active] .astra-account #identity{margin:0}#astraFrame[data-start-active] #startOver{right:12px;top:7px}#astraFrame[data-start-active] #notice{margin:0 20px}}

/* The Astra frame owns this page's sidebar allocation. */
body.has-portal-navigation:has(#astraFrame){padding:0}
body.has-portal-navigation:has(#astraFrame)>.buyer-topbar{display:none}

/* Later Buyer flow stays in light DOM; give it the same workspace inset. */
body:has(#astraFrame) .procurement>.document-section{
 margin-inline:clamp(20px,3vw,48px);
 box-sizing:border-box;
 overflow-wrap:anywhere;
}
body:has(#astraFrame) .procurement>.document-section .distribution-choice>span{min-width:0}
@media(max-width:600px){
 body:has(#astraFrame) .procurement>.document-section{margin-inline:20px}
}
