body[data-portal-link]{min-height:100vh;margin:0;background:#f7f6f1;color:#182a27;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}body[data-portal-link] .portal-link-card{box-sizing:border-box;max-width:42rem;margin:clamp(2rem,10vh,6rem) auto;padding:clamp(1.5rem,5vw,3rem);border:1px solid #e3dfd5;border-radius:1.25rem;background:#fff;box-shadow:0 1rem 3rem #203a3310}body[data-portal-link] .portal-link-card h1{margin:0 0 1rem;color:#183f39;font-size:clamp(1.7rem,5vw,2.5rem);line-height:1.12;letter-spacing:-.035em}body[data-portal-link] .portal-link-card p{margin:.75rem 0 0;color:#53615d}body[data-portal-link] .portal-link-card [data-portal-link-status]{min-height:1.6em;padding:.9rem 1rem;border-radius:.75rem;background:#f3f4ef;color:#285b50;font-weight:600}
/* Shared geometry; page themes supply these optional custom properties. */
.portal-shell{min-height:100vh;display:flex;flex-direction:column}
.portal-shell>main,.portal-shell>.shell{flex:1;min-width:0}
.portal-shell>.portal-header{box-sizing:border-box;position:relative;z-index:1000;display:grid;grid-template-columns:minmax(160px,1fr) auto auto;align-items:center;gap:24px;width:100%;max-width:none;min-height:72px;height:auto;max-height:none;margin:0;padding:12px clamp(20px,3vw,48px);border:0;border-bottom:1px solid var(--portal-line,color-mix(in srgb,currentColor 18%,transparent));border-radius:0;background:var(--portal-surface,transparent);color:var(--portal-ink,inherit);font:500 14px/1.4 Aeonik,Arial,sans-serif;text-align:left}
.portal-header *,.portal-footer *{box-sizing:border-box}
.portal-header .portal-identity{display:flex;align-items:center;gap:16px;min-width:0}
.portal-header .portal-brand{display:flex;flex:none;padding:0;margin:0;background:none;border:0}
.portal-header .portal-brand img{display:block;width:50px;height:36px;max-width:none;object-fit:contain}
.portal-header .portal-title{font-size:20px;font-weight:500;letter-spacing:-.03em;line-height:1.2;overflow-wrap:anywhere}
.portal-header .portal-context:empty{display:none}
.portal-header .portal-controls{grid-column:3;display:flex;align-items:center;gap:22px;margin:0;min-width:0}
.portal-header .portal-links,.portal-header .portal-account{position:static;display:flex;flex-direction:row;align-items:center;gap:16px;margin:0;padding:0;transform:none;background:none;box-shadow:none}
.portal-header a{color:inherit;text-decoration:none;white-space:nowrap;font-size:13px}
.portal-header .portal-links a[aria-current=page]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.portal-header a:hover,.portal-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.portal-header .portal-role{font-size:11px;opacity:.65;white-space:nowrap}
.portal-header .portal-login{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 16px;border:1px solid var(--portal-accent,#285b50);border-radius:999px;background:var(--portal-accent,#285b50);color:var(--portal-on-accent,#fff);font-weight:700}
.portal-header .portal-pages{position:relative;margin:0;padding:0;border:0;border-radius:0;background:none;font-size:12px}
.portal-header .portal-pages summary{cursor:pointer;padding:10px 0;white-space:nowrap}
.portal-header .portal-pages-menu{position:absolute;z-index:1100;right:0;top:calc(100% + 8px);display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:220px;max-height:65vh;overflow:auto;padding:8px;background:var(--portal-menu-surface,#fffefa);color:var(--portal-menu-ink,#25382b);border:1px solid #d6ddce;border-radius:12px;box-shadow:0 12px 32px #0002}
.portal-header .portal-pages-menu a{display:block;padding:10px;white-space:normal}
.portal-header :focus-visible,.portal-footer a:focus-visible{outline:3px solid var(--portal-focus,#a58bcb);outline-offset:4px}
.portal-shell>.portal-footer{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;width:100%;max-width:none;height:auto;max-height:none;margin:40px 0 0;padding:22px clamp(20px,3vw,48px);border:0;border-top:1px solid var(--portal-line,color-mix(in srgb,currentColor 18%,transparent));background:var(--portal-footer-surface,var(--portal-surface,transparent));color:var(--portal-footer-ink,inherit);font:400 12px/1.6 Aeonik,Arial,sans-serif}
.portal-footer .portal-footer-info{display:flex;flex-wrap:wrap;gap:4px 16px;opacity:.7;min-width:0}.portal-footer-info>div{display:contents}
.portal-footer .portal-footer-links{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px 22px;max-width:620px}
.portal-footer a{color:inherit;font:inherit;text-decoration:none;white-space:normal}
.portal-crm .crm-topbar .brand .mark,.portal-crm .crm-topbar .brand h1{display:none}
.portal-crm .crm-topbar{min-height:0;padding-block:12px}
@media(max-width:1100px){.portal-header .portal-role{display:none}.portal-header .portal-controls{gap:16px}.portal-header .portal-links{gap:12px}.portal-shell>.portal-header{gap:16px}}
@media(max-width:800px){.portal-shell>.portal-header{grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:64px;padding:12px 20px}.portal-header .portal-title{font-size:19px}.portal-header .portal-controls{display:contents}.portal-header .portal-account{grid-column:2;grid-row:1;justify-self:end}.portal-header .portal-links{grid-column:1/-1;grid-row:2;max-width:100%;overflow-x:auto;padding:4px 0 8px;gap:20px;scrollbar-width:thin}.portal-header .portal-links:empty{display:none}.portal-header .portal-context{grid-column:1/-1;grid-row:3}.portal-header .portal-pages-menu{left:0;right:auto}.portal-shell>.portal-footer{grid-template-columns:1fr;gap:14px;padding:20px;margin-top:28px}.portal-footer .portal-footer-links{justify-content:flex-start}.portal-header .portal-brand img{width:42px;height:30px}}
@media(prefers-reduced-motion:no-preference){.portal-header a{transition:opacity .15s ease}.portal-header a:hover{opacity:.8}}

.portal-shell[data-portal-tone="dark"]{--portal-accent:#f0db77;--portal-on-accent:#302039}
.portal-shell>main:not(.wrap),.portal-shell>.shell{box-sizing:border-box;width:100%}
