/* Shared semantic type scale for the platform, public pages and workspace. */
:root{--font-ui:'Segoe UI',Arial,sans-serif;--type-caption:.75rem;--type-small:.8125rem;--type-label:.875rem;--type-body:1rem;--type-title:1.125rem;--type-section:1.25rem;--type-page:1.5rem;--type-display:clamp(2rem,3.5vw,3rem)}
body{font-family:var(--font-ui);font-size:var(--type-body);line-height:1.5}
button,input,select,textarea{font-family:var(--font-ui)}
h1,.workspace-heading h1,.page-heading h1,.auth-panel h1,.org-identity h1{font-size:var(--type-page);font-weight:650;line-height:1.25;letter-spacing:-.02em}
h2,.panel>h2,.card-top h2,.section-heading h2,.section-intro h2,.media-editor h2,.public-section-heading h2,.contact-introduction h2{font-size:var(--type-section);font-weight:650;line-height:1.3;letter-spacing:-.015em}
h3,.panel h3{font-size:var(--type-title);font-weight:650;line-height:1.4}
label,button,.button,.primary-nav a,.tabs a{font-size:var(--type-label)}
.gallery-item-actions button,.account-access .button{font-size:var(--type-label)}
@media(min-width:760px){textarea{font-size:var(--type-label)}}
.hint,.optional,.quiet small{font-size:var(--type-small);line-height:1.5}
.workspace-heading p,.page-heading p,.section-heading p,.quiet,.mission{font-size:var(--type-body)}
.public-intro h1{font-size:var(--type-display)}
.personal-heading h2{font-size:var(--type-page)}
.tenant-brand strong{font-size:var(--type-title)}
.tenant-brand small,.account-identity small{font-size:var(--type-caption)}
.tenant-logo,.tenant-fallback{width:44px;height:44px}
.demo-badge{font-size:var(--type-caption)}
@media(max-width:759px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:var(--type-body)}.organization-tabs a{font-size:var(--type-caption)}.tenant-brand strong{font-size:var(--type-body)}}

.directory-person h2{font-size:var(--type-title)}
.intro h1{font-size:var(--type-page);max-width:20ch}
.tenant-brand>span:last-child{min-width:0}
.tenant-brand strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.public-intro h1{overflow-wrap:anywhere}
.registration-layout{display:block;max-width:760px;margin:0 auto;padding:12px 0}
.registration-layout .intro{padding:0;margin-bottom:20px}
.registration-layout .intro h1{max-width:none}
.registration-layout .intro .lead{font-size:var(--type-body);max-width:none;margin:0}
@media(max-width:759px){.tenant-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.tenant-header .tenant-brand{grid-column:1;grid-row:1;max-width:none;min-width:0}.tenant-header .account-nav{grid-column:2;grid-row:1;margin:0;justify-self:end}.tenant-header .primary-nav{grid-column:1/-1;grid-row:2;margin:0;width:100%}}

.profile-fallback{position:relative}.profile-fallback summary{list-style:none;cursor:pointer;min-height:44px}.profile-fallback summary::-webkit-details-marker{display:none}.profile-fallback .profile-popover{right:0}

@media(max-width:759px){.profile-fallback summary>span:not(.person-monogram){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}

.problem-panel{max-width:620px;margin:36px auto;padding:28px}.problem-panel h1{display:flex;align-items:center;gap:10px}.problem-panel h1 svg{width:24px;height:24px;color:var(--teal)}.problem-panel p{color:var(--muted);margin:14px 0 22px}.problem-actions{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:759px){.problem-panel{margin:16px auto;padding:20px}.problem-actions .button{width:100%}}

/* Activity controls follow the same label scale as their surrounding controls. */
.activity-filters input:not([type=checkbox]):not([type=radio]){font-size:var(--type-label)}
