/* Public frames retain institutional tokens and never style the private navigation. */
.portal-chrome-header .app-header__inner{gap:1rem;flex-wrap:wrap;padding-block:.7rem;min-width:0}
.portal-chrome-header .brand{min-width:0;max-width:100%}.portal-chrome-header .brand__copy{min-width:0;max-width:none;overflow-wrap:anywhere}.portal-chrome-header .brand__copy :is(strong,small){white-space:normal;overflow:visible;text-overflow:clip}.portal-chrome-header .brand__mark{flex-shrink:0}.portal-chrome-header .brand__copy small{display:block}
.portal-chrome-header .primary-nav{display:flex;flex:1 1 18rem;flex-wrap:wrap;min-width:0;gap:.25rem 1.1rem;order:0}
.portal-chrome-header .primary-nav a{max-width:100%;overflow-wrap:anywhere}
.portal-chrome-header .header-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.portal-chrome-header.portal-chrome--static{position:static}.portal-chrome-header.portal-chrome--sticky{position:sticky;top:0}
.portal-chrome-header.portal-chrome-density--compact .app-header__inner{min-height:3.5rem;padding-block:.35rem}
.portal-chrome-header.portal-chrome-density--spacious .app-header__inner{min-height:6.5rem;padding-block:1.2rem}
.portal-chrome-header.portal-chrome-brand--small .brand__mark,.portal-chrome-footer.portal-chrome-brand--small .brand__mark{width:1.8rem;height:1.8rem;flex:0 0 1.8rem}
.portal-chrome-header.portal-chrome-brand--large .brand__mark,.portal-chrome-footer.portal-chrome-brand--large .brand__mark{width:3.5rem;height:3.5rem;flex:0 0 3.5rem}
.portal-chrome-header.portal-chrome-brand--small .brand__copy strong,.portal-chrome-footer.portal-chrome-brand--small strong{font-size:.9rem}
.portal-chrome-header.portal-chrome-brand--large .brand__copy strong,.portal-chrome-footer.portal-chrome-brand--large strong{font-size:1.35rem}
.portal-chrome-header.portal-chrome-menu--small .primary-nav a{font-size:.8rem}.portal-chrome-header.portal-chrome-menu--large .primary-nav a{font-size:1.1rem}
.portal-chrome-header.portal-chrome-align--start .primary-nav{justify-content:flex-start}.portal-chrome-header.portal-chrome-align--center .primary-nav{justify-content:center}.portal-chrome-header.portal-chrome-align--end .primary-nav{justify-content:flex-end}
.portal-chrome-header--stacked .app-header__inner,.portal-chrome-header--centered .app-header__inner{display:grid;grid-template-columns:minmax(0,1fr) auto}
.portal-chrome-header--stacked .primary-nav,.portal-chrome-header--centered .primary-nav{grid-column:1/-1;grid-row:2}
.portal-chrome-header--centered .brand{justify-self:center;grid-column:1/-1;grid-row:1;text-align:center;flex-direction:column}
.portal-chrome-header--centered .header-actions{justify-self:center;grid-column:1/-1;grid-row:3}
.portal-chrome-header--stacked .header-actions{grid-row:1;grid-column:2}
.app-header.portal-chrome-header.portal-chrome-surface--soft,.app-footer.portal-chrome-footer.portal-chrome-surface--soft{background:var(--color-surface-soft)}
.app-header.portal-chrome-header.portal-chrome-surface--transparent,.app-footer.portal-chrome-footer.portal-chrome-surface--transparent{background:transparent;border-color:transparent;backdrop-filter:none;box-shadow:none}
.app-header.portal-chrome-header.portal-chrome-surface--brand,.app-footer.portal-chrome-footer.portal-chrome-surface--brand{background:var(--color-action-primary);color:var(--color-action-on-primary,#fff);border-color:transparent;backdrop-filter:none}
:is(.portal-chrome-header,.portal-chrome-footer).portal-chrome-surface--brand :is(a,p,small,strong,address){color:inherit}
:is(.portal-chrome-header,.portal-chrome-footer).portal-chrome-surface--brand .icon-button{background:transparent;border-color:currentColor;color:inherit}
.portal-chrome-footer .app-footer__inner{gap:1rem 2rem;flex-wrap:wrap}.portal-chrome-footer p{margin:0;overflow-wrap:anywhere}
.portal-chrome-footer__brand{display:flex;align-items:center;gap:.75rem}.portal-chrome-footer .brand__mark{flex:0 0 2.25rem}.portal-chrome-footer .brand__mark img{width:100%;height:100%;object-fit:contain}
.portal-chrome-footer nav,.portal-chrome-footer address{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-style:normal;overflow-wrap:anywhere}
.portal-chrome-footer--centered .app-footer__inner{flex-direction:column;justify-content:center;text-align:center}
.portal-chrome-footer--centered :is(nav,address){justify-content:center}.portal-chrome-footer--columns .app-footer__inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));align-items:start}
.portal-chrome-footer.portal-chrome-density--compact{padding-block:1rem}.portal-chrome-footer.portal-chrome-density--spacious{padding-block:3rem}
.portal-login-theme-control{position:absolute;top:.75rem;right:.75rem;z-index:30}
.portal-chrome-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(20rem,1fr);gap:1.25rem;align-items:start;margin-block:1rem}
.portal-chrome-panel{padding-top:1rem}.portal-chrome-panel>fieldset{margin-block:1rem;min-width:0}.portal-chrome-panel legend{font-weight:750;padding:.4rem}
.portal-chrome-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr));gap:1rem}.portal-chrome-toggles{display:grid;gap:.6rem;margin-block:1rem}
.portal-chrome-preview{min-width:0}.portal-chrome-preview h2{margin-top:0}.portal-chrome-preview iframe{display:block;width:100%;height:clamp(16rem,calc(100dvh - 26rem),34rem);border:1px solid var(--color-border);border-radius:.75rem;background:var(--color-canvas);margin:1rem auto;max-width:100%}
.portal-chrome-preview iframe.portal-chrome-preview--mobile{width:390px}.portal-chrome-preview-content{min-height:25rem;padding-block:4rem}
@media(max-width:900px){.portal-chrome-editor{grid-template-columns:minmax(0,1fr)}.portal-chrome-preview{position:static;max-height:none;overflow:visible}}
@media(max-width:600px){.portal-chrome-header .primary-nav{flex-basis:100%;order:3}.portal-chrome-header--stacked .app-header__inner{grid-template-columns:minmax(0,1fr)}.portal-chrome-header--stacked .header-actions{grid-row:2;grid-column:1}.portal-chrome-header--stacked .primary-nav{grid-row:3}.portal-chrome-header .header-actions{gap:.75rem}.portal-chrome-preview iframe{height:35rem}}

.portal-chrome-preview-content--login{padding-block:1rem}

/* A single published login background spans all three public stripes. */
body.portal-public-canvas{--login-intensity:8%;--login-overlay:86%;position:relative;isolation:isolate;min-height:100svh;background:var(--login-background,var(--nexo-canvas));display:flex;flex-direction:column}
body.portal-public-canvas.portal-login-intensity--medium{--login-intensity:18%;--login-overlay:76%}
body.portal-public-canvas.portal-login-intensity--strong{--login-intensity:32%;--login-overlay:64%}
body.portal-public-canvas>main{flex:1;min-width:0;background:transparent}
body.portal-public-canvas>.portal-login__backdrop{z-index:-2}
body.portal-public-canvas:has(>.portal-login__backdrop)::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--nexo-surface) var(--login-overlay),transparent);pointer-events:none}
body.portal-public-canvas .portal-structure.portal-login{background:transparent;border-radius:0}
body.portal-public-canvas .portal-login>.portal-login__backdrop,body.portal-public-canvas .portal-login:has(>.portal-login__backdrop)::after{display:none}
.portal-chrome-fragments>.ui-tab-panel>fieldset{min-width:0;margin-block:1rem}

:is(.portal-chrome-header,.portal-chrome-footer).portal-chrome-surface--transparent{color:var(--nexo-text,var(--color-text-primary))}
:is(.portal-chrome-header,.portal-chrome-footer).portal-chrome-surface--transparent :is(a,p,small,strong,address){color:inherit}
:is(.portal-chrome-header,.portal-chrome-footer).portal-chrome-surface--transparent .icon-button{background:transparent;color:inherit;border-color:var(--nexo-border,var(--color-border))}
