/* Fluid containment and compact rhythm; animation surfaces keep their geometry. */
body[data-story-layout],body[data-story-layout] *,body[data-story-layout] *::before,body[data-story-layout] *::after{box-sizing:border-box}
body[data-story-layout] main,body[data-story-layout] section,body[data-story-layout] article,body[data-story-layout] aside,body[data-story-layout] main>*,body[data-story-layout] section>*{min-width:0}
body[data-story-layout] :is(h1,h2,h3,p,li,dd,dt,th,td){overflow-wrap:anywhere}
body[data-story-layout] img,body[data-story-layout] video{max-width:100%}
body[data-story-layout] iframe{max-width:100%}
body[data-story-layout] pre{max-width:100%;white-space:pre-wrap!important;overflow-wrap:anywhere!important;overflow:auto}
body[data-story-layout] pre code{white-space:inherit!important;overflow-wrap:inherit!important}
body[data-story-layout] :is(.bk-code,.code-block,.code-panel,.command){max-width:100%;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
body[data-story-layout] :is(form,input,textarea,select){max-width:100%;min-width:0}
body[data-story-layout] :is(.hero-actions,.pf-actions,.personal-hero-actions,.agents-actions,.ca-urlrow){flex-wrap:wrap;gap:12px}
body[data-story-layout] :is(.hero-actions,.pf-actions,.personal-hero-actions,.agents-actions,.ca-urlrow)>*{min-width:0;max-width:100%}
body[data-story-layout] :is(.btn-primary,.btn-primary-home,.btn-ghost,.agents-cta){max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
body[data-story-layout="tight"] :is(.hero,.pf-hero,.personal-hero,.ca-hero,.surface-hero,.jobs-hero,.connect-hero,.sk2-hero){padding-top:clamp(24px,4vh,42px)!important;padding-bottom:clamp(24px,4vh,42px)!important}
body[data-story-layout="tight"] :is(.home-section,.ca-section,.agent-detail-section,.sk2-section){padding-block:clamp(24px,3.5vh,44px)!important}
body[data-story-layout="tight"] :is(.personal-hero,.ca-hero,.hero-wrap,.pf-hub-hero){gap:clamp(20px,3.5vw,42px)}
body[data-story-layout] #story-context.story-context{padding-block:36px;gap:36px}
body[data-story-layout] #story-footer.story-footer{padding-top:34px!important;padding-bottom:20px!important}
body[data-story-layout] #story-header{padding-top:16px!important;padding-bottom:16px!important}
body[data-story-layout] #story-header button{padding:0!important;min-width:0!important;min-height:0!important;letter-spacing:normal!important;line-height:1!important;flex-shrink:0}
body[data-story-layout] #story-header .story-mobile-toggle{width:32px;height:36px;place-items:center}
body[data-story-layout] #story-footer h3{font-size:14px!important}
body[data-story-layout] #story-footer summary{list-style:none;cursor:default}
body[data-story-layout] #story-footer summary::-webkit-details-marker{display:none}
body[data-story-layout] #story-footer .story-footer-group{margin:0;padding:0;border:0;background:transparent}
body[data-story-layout] #story-footer .story-social{display:flex;gap:16px;margin-top:12px}
body[data-story-layout] #story-footer .story-footer-top,body[data-story-layout] #story-footer .story-footer-nav,body[data-story-layout] #story-footer .story-footer-group,body[data-story-layout] #story-footer .story-footer-top>*{min-width:0;max-width:100%;width:100%}
body[data-story-layout] .auth-container,body[data-story-layout] .auth-shell{min-height:0!important}
body[data-story-layout] .auth-container{padding-block:clamp(28px,4vh,44px)!important}
body[data-story-layout] #story-footer a{font-size:14px}
body[data-story-layout] #story-footer .story-legal a{font-size:13px}
body[data-story-layout] .story-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
body[data-story-layout] .story-table-scroll>table{margin-bottom:0;max-width:none}
@media(max-width:980px){body[data-story-layout] :is(.docs-layout,.guide-layout,.topic-layout,.layout,.docs-grid){grid-template-columns:minmax(0,1fr)!important}body[data-story-layout] :is(.docs-sidebar,.guide-sidebar,.topic-sidebar){position:static!important;max-width:100%}}
@media(max-width:720px){
 body[data-story-layout] :is(.steps,.lanes,.plan-grid,.plans-grid,.agents-directory-grid,.pf-platform-grid,.cards-grid,.feature-grid,.proof-grid,.build-grid,.builds-grid){grid-template-columns:minmax(0,1fr)!important}
 body[data-story-layout] #story-context.story-context{padding-block:28px;gap:24px}
 body[data-story-layout] #story-footer .story-footer-top{margin-bottom:28px}
 body[data-story-layout] #story-footer .story-footer-nav{display:block}
 body[data-story-layout] #story-footer .story-footer-top{grid-template-columns:minmax(0,1fr)}
 body[data-story-layout] #story-footer .story-positioning{max-width:none}
 body[data-story-layout] #story-footer .story-footer-group{border-top:1px solid var(--story-line)}
 body[data-story-layout] #story-footer summary{display:flex;align-items:center;justify-content:space-between;padding:12px 0;cursor:pointer}
 body[data-story-layout] #story-footer summary h3{margin:0!important}
 body[data-story-layout] #story-footer summary:after{content:'+';font-size:18px;line-height:1}
 body[data-story-layout] #story-footer details[open]>summary:after{content:'−'}
 body[data-story-layout] #story-footer .story-footer-group>div{padding:0 0 14px}
 body[data-story-layout] #story-header .story-explore>summary{display:none}
 body[data-story-layout] #story-header .story-mobile-toggle{display:grid}
 body[data-story-layout] #story-header .story-menu{position:fixed;left:16px;right:16px;top:72px;width:auto;max-width:none;max-height:calc(100svh - 86px);overflow-y:auto}
 body[data-story-layout] .story-new-main{padding-top:28px;padding-bottom:22px}
}
@media(max-width:380px){
 #story-header .story-pricing{display:none!important}
 #story-header .story-links{gap:10px}#story-header .story-nav-inner{gap:12px}
 #story-header .story-brand{font-size:16px;letter-spacing:.14em;gap:7px}
 #story-header .story-theme{width:32px;height:32px}
 #story-footer .story-footer-nav{gap:24px 16px}#story-footer .story-legal{gap:16px}
}
