/* Scoped roster presentation, sharing the BGR site palette. */
.roster-admin-shell{width:min(1180px,calc(100% - 32px));margin:auto;padding:28px 0 64px;min-width:0}
.roster-panel{padding:clamp(16px,3vw,30px);margin:20px 0;background:#18121e;border:1px solid #684580;border-radius:12px;min-width:0;overflow-wrap:anywhere}
.roster-panel h2,.roster-kicker{color:#e4c4f8}
.roster-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin:16px 0;min-width:0}
.roster-entry{min-width:0;padding:18px;border:1px solid #684580;border-radius:10px;background:#18121e;overflow-wrap:anywhere}
.roster-entry h3{font-size:1rem;margin:0 0 10px;color:#f6f2f9}
.roster-entry p{margin:6px 0 12px;line-height:1.6;color:#e0d7e6;white-space:pre-wrap}
.roster-tags,.roster-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.roster-tag{padding:5px 9px;border:1px solid #80509a;border-radius:6px;color:#e4c4f8;font-size:.8rem}
.roster-tag.veteran{border-color:#c19b58;color:#e8c886}
.roster-search,.roster-editor{display:grid;gap:10px;min-width:0}
.roster-search label,.roster-editor label{font-weight:600}
.roster-search input,.roster-editor input:not([type=checkbox]),.roster-editor textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #80509a;border-radius:6px;background:#100c16;color:#f6f2f9;padding:10px;font:inherit}
.roster-search input{flex:1 1 220px}
.roster-controls button,.roster-controls a,.roster-entry button{min-height:44px;max-width:100%;white-space:normal}
.roster-check{display:flex;gap:10px;align-items:center;min-height:44px}
.roster-check input{width:20px;height:20px;flex:none;accent-color:#b45de9}
.roster-editor textarea{resize:vertical}
.roster-panel [hidden],.rgc-section [hidden],#rosterAdminWorkspace[hidden],#rosterEditor[hidden]{display:none!important}
#rosterAuditList p{border-bottom:1px solid #684580;padding:10px 0;overflow-wrap:anywhere}
@media(max-width:480px){.roster-admin-shell{width:calc(100% - 20px)}.roster-controls button{flex:1 1 auto}.roster-search input{flex-basis:100%}.roster-directory{grid-template-columns:1fr}}

/* Roster pages use the same shared frame assets, controls and in-flow dividers as BGR Community. */
html.bgr-site.bgr-site-theme body.rg-credits #main-content.rgc-shell{box-sizing:border-box;width:min(100%,1320px)!important;max-width:1320px!important;min-width:0;margin:0 auto!important;padding:clamp(18px,3vw,36px) clamp(12px,2.5vw,28px) 64px!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-hero{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-hero::before,html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-hero::after{content:none!important;background:none!important;display:none!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-hero h1{font:800 clamp(2rem,4vw,3.2rem)/1.15 Cinzel,Georgia,serif!important;letter-spacing:0!important;overflow-wrap:anywhere}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-hero p{color:var(--bgr-muted)!important;line-height:1.7!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-kicker,html.bgr-site.bgr-site-theme body.bgr-roster-admin #main-content .roster-kicker{display:block;font:800 .73rem/1.5 Inter,system-ui,sans-serif!important;letter-spacing:.15em!important;text-transform:uppercase;color:var(--bgr-accent)!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:8px auto 0;max-width:100%}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-section,.roster-panel:not(.admin-hero),.roster-milestone),html.bgr-site.bgr-site-theme body.bgr-roster-admin #main-content .roster-entry{box-sizing:border-box!important;min-width:0!important;max-width:100%;overflow-wrap:anywhere;border:var(--bgr-standard-trim,8px) solid transparent!important;border-image:var(--bgr-frame-standard)!important;border-radius:0!important;background:var(--bgr-panel-surface)!important;background-clip:padding-box!important;box-shadow:0 8px 24px #0004!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-section,.roster-panel:not(.admin-hero)){margin:0 0 clamp(18px,3vw,30px)!important;padding:clamp(16px,2.6vw,28px)!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-section.roster-featured,.roster-panel.roster-featured){border-width:var(--bgr-feature-trim,14px)!important;border-image:var(--bgr-frame-featured)!important;background:var(--bgr-featured-surface)!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-section-head{display:block!important;position:static!important;text-align:center!important;padding:0!important;margin:0 auto 18px!important;min-width:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-section-head::after{content:""!important;display:block!important;position:static!important;inset:auto!important;transform:none!important;width:min(100%,700px)!important;height:var(--bgr-divider-height,40px)!important;margin:10px auto 0!important;background:var(--bgr-section-divider) center/contain no-repeat!important;pointer-events:none!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-section-head h2{margin:0 auto 8px!important;font:800 clamp(1.35rem,2.6vw,1.9rem)/1.25 Cinzel,Georgia,serif!important;color:var(--bgr-ink)!important;text-align:center!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-staff{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.5vw,18px);min-width:0;max-width:1120px;margin:0 auto;align-items:start}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-person{box-sizing:border-box;min-width:0;margin:0;padding:0!important;position:relative;overflow:hidden;border:1px solid var(--bgr-line)!important;border-radius:8px!important;border-image:none!important;background:#09070b!important;box-shadow:0 4px 20px #0009,0 0 16px #8420bb33!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-person img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:contain;margin:0!important;border:0!important;border-radius:0!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-person :is(h3,.rgc-role){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px;min-width:0}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestone{padding:clamp(12px,2vw,20px)!important;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:110px;gap:8px;margin:0}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestone[data-veteran]{border-width:var(--bgr-feature-trim,14px)!important;border-image:var(--bgr-frame-featured)!important;background:var(--bgr-featured-surface)!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestone h3{font:800 clamp(1rem,1.7vw,1.25rem)/1.3 Cinzel,Georgia,serif!important;color:var(--bgr-accent)!important;margin:0!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestone[data-veteran] h3{color:#e8c886!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content :is(.roster-note,.roster-milestone p,.rgc-signoff p){color:var(--bgr-muted)!important;font:500 .9rem/1.65 Inter,system-ui,sans-serif!important;margin:0}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-leadership-note{text-align:center;margin:14px auto 0!important;max-width:850px}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-signoff{text-align:center}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-signoff strong{display:block;color:var(--bgr-accent)!important;margin-bottom:8px;font:800 1.1rem/1.4 Cinzel,Georgia,serif}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .roster-entry{padding:clamp(12px,2vw,20px)!important}
/* Public directory records are content, not another decorative section.
   Keep large section frames, portrait artwork and administrative styles. */
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-entry{
  border:1px solid #62417a!important;border-image:none!important;border-radius:8px!important;
  background:#18121e!important;background-clip:padding-box!important;box-shadow:none!important;
}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-directory{
  gap:clamp(12px,1.4vw,18px);align-items:stretch;
}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-entry h3{line-height:1.35;overflow-wrap:anywhere}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-entry .roster-controls{gap:8px}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .profile-detail-card{background:#100b17!important}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .profile-info-panel{
  background:#18121e!important;border-color:#62417a;border-top-color:var(--profile-personal-accent,#62417a);border-radius:8px;box-shadow:none;
}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-entry .roster-tag{border-color:#62417a;background:#21152b}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-entry .roster-tag.veteran{border-color:#c19b58;color:#e8c886}

html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.roster-controls button,.roster-entry button,.rgc-button){box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;padding:10px 16px!important;background:linear-gradient(180deg,#291538,#110a1c)!important;color:var(--bgr-ink)!important;border:1px solid var(--bgr-line)!important;border-image:none!important;border-radius:var(--bgr-control-radius)!important;font:700 .82rem/1.35 Inter,system-ui,sans-serif!important;text-align:center;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-button.primary,.roster-controls button:not(.secondary)):not(:disabled){background:var(--bgr-primary)!important;color:#fff!important;border-color:var(--bgr-accent)!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-button,.roster-controls button,.roster-entry button):is(:hover,:focus-visible):not(:disabled){background:var(--bgr-primary-hover)!important;color:#fff!important;border-color:var(--bgr-accent)!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(button,a,input,textarea):focus-visible{outline:2px solid var(--bgr-accent)!important;outline-offset:3px!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .roster-search{margin-top:18px}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(#rosterPublicStatus,#rosterStaffStatus,#rosterSaveStatus,#rosterAdminGate){color:var(--bgr-muted)!important;margin:12px 0!important;line-height:1.5}
html.bgr-site.bgr-site-theme body.bgr-roster-admin #main-content .roster-panel:not(.admin-hero)>h2{color:var(--bgr-ink)!important;margin:0 0 14px!important}
html.bgr-site.bgr-site-theme body.bgr-roster-admin #main-content .roster-panel:not(.admin-hero)>h2::after{content:"";display:block;width:min(100%,480px);height:clamp(26px,4vw,44px);margin:10px 0 0;background:var(--bgr-section-divider) center/contain no-repeat;pointer-events:none}
@media(max-width:900px){html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-staff{grid-template-columns:repeat(2,minmax(0,1fr));max-width:640px}html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestones{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-actions{width:100%}html.bgr-site.bgr-site-theme body.rg-credits #main-content .rgc-actions a{flex:1 1 100%}html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-staff{grid-template-columns:minmax(0,1fr);max-width:280px}html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestones{grid-template-columns:minmax(0,1fr)}html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-milestone{min-height:0}html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content :is(.rgc-section,.roster-panel:not(.admin-hero)){padding:12px!important}}
@media(prefers-reduced-motion:reduce){html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content *{transition:none!important;animation:none!important}}

/* Dedicated leadership profile layout; shares the roster's existing BGR frames. */
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-portrait-link{display:block;text-decoration:none;color:inherit}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-portrait-link:focus-visible{outline-offset:-4px!important}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile{scroll-margin-top:150px}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-grid{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:clamp(16px,3vw,36px);align-items:start;max-width:900px;margin:0 auto}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-image{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border:1px solid var(--bgr-line);border-radius:8px}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-content{min-width:0;overflow-wrap:anywhere}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-content dl{display:grid;grid-template-columns:1fr;gap:6px;margin:0 0 18px}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-content dt{font-weight:700;color:var(--bgr-accent)}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-content dd{margin:0 0 12px;color:var(--bgr-ink)}
html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-content .rgc-button{margin-top:18px}
@media(max-width:700px){html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-grid{grid-template-columns:minmax(0,1fr);text-align:center}html.bgr-site.bgr-site-theme body.bgr-leadership-page #main-content .leadership-profile-image{max-width:280px;margin:auto}}

/* One shared roster navigation and hub grid, with existing BGR controls and frames. */
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-route-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 auto clamp(18px,3vw,30px);max-width:1120px;min-width:0}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-route-nav a{flex:0 1 auto}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-hub-grid .roster-entry{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-hub-grid .rgc-button{margin-top:auto}
@media(max-width:900px){html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-hub-grid{grid-template-columns:minmax(0,1fr)}html.bgr-site.bgr-site-theme body.rg-credits #main-content .roster-route-nav a{flex:1 1 42%;padding-inline:8px!important}}

/* Profile detail and management controls; reuse BGR palette and artwork. */
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .profile-facts{display:grid;gap:7px;margin:14px 0;min-width:0}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .profile-facts dt{color:var(--bgr-accent);font-weight:700}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .profile-facts dd{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--bgr-ink)}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .roster-editor select{width:100%;min-height:44px;font:inherit;padding:10px}
#profileAdminWorkspace[hidden],#profileOwnForm[hidden],#bindMemberFields[hidden],#bindStaffFields[hidden]{display:none!important}
html.bgr-site.bgr-site-theme body:is(.rg-credits,.bgr-roster-admin) #main-content .profile-custom-details{margin-top:16px;padding-top:16px;border-top:1px solid var(--bgr-line)}

/* Bounded approved profile images and private editor previews. */
.profile-media-control{min-width:0;border:1px solid var(--bgr-line,#80509a);padding:16px;display:grid;gap:10px}
.profile-media-control legend{color:var(--bgr-accent,#d8a3ff);font-weight:700}
.profile-media-control p{margin:0;color:var(--bgr-muted,#d3cbd9);font-size:.85rem}
.profile-media-control input[type=file]{max-width:100%;min-width:0;font-size:.85rem}
.profile-media-display{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;min-width:0}
.profile-image,.profile-preview{display:block;max-width:100%;height:auto;object-fit:cover;border:1px solid var(--bgr-line,#80509a);border-radius:8px}
.profile-image.banner,.profile-preview.banner{width:100%;aspect-ratio:3/1}
.profile-image.avatar,.profile-preview.avatar{width:min(160px,100%);aspect-ratio:1}
.profile-preview[hidden]{display:none!important}
.roster-directory:has(.profile-detail-card){grid-template-columns:minmax(0,1fr)}
.profile-detail-card{max-width:900px;width:100%;margin:0 auto}

/* Staff organization directory and recognition timeline. */
#orgAdminWorkspace[hidden]{display:none!important}
#orgAdminWorkspace select{width:100%;min-height:44px;max-width:100%;font:inherit}
#orgPublicList li{line-height:1.6;overflow-wrap:anywhere}
.profile-staff-history{border-top:1px solid var(--bgr-line);margin-top:20px;padding-top:20px}
.org-history-timeline{display:grid;gap:12px;margin:14px 0}
.org-history-item{border-left:3px solid var(--bgr-accent,#d8a3ff);padding:8px 14px;background:var(--bgr-panel-surface,#18121e);overflow-wrap:anywhere}
.org-history-item p{margin:6px 0}

/* Award badge palette and verified recognition cards. */
#awardAdminWorkspace[hidden]{display:none!important}
#awardAdminWorkspace select{width:100%;min-height:44px;max-width:100%;font:inherit}
.award-card{min-width:0;overflow-wrap:anywhere}
.award-emblem{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border:2px solid currentColor;border-radius:50%;background:#18121e;font-size:28px;color:#d8a3ff}
.award-emblem[data-tone=gold]{color:#f0cf80}.award-emblem[data-tone=silver]{color:#d0d8e4}.award-emblem[data-tone=red]{color:#ff8585}.award-emblem[data-tone=teal]{color:#80dfd1}
.award-category{text-transform:capitalize;color:var(--bgr-muted,#d3cbd9)}
.profile-awards{border-top:1px solid var(--bgr-line);margin-top:18px;padding-top:18px}

/* One editor for a single profile; compact media slots and hierarchy sections. */
#profileMineList[hidden],.leadership-profile[hidden]{display:none!important}
.profile-gallery-editor,.profile-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-gallery-editor .profile-media-control{padding:10px}
.profile-gallery,.profile-featured-clip{margin-top:20px;padding-top:16px;border-top:1px solid var(--bgr-line,#80509a)}
.gallery-open{background:transparent;border:1px solid var(--bgr-line,#80509a);padding:0;border-radius:8px;overflow:hidden;cursor:zoom-in;min-width:0}
.gallery-open img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}
.profile-gallery-dialog{max-width:90vw;max-height:90vh;background:#18121e;color:white;border:1px solid #80509a;border-radius:8px;padding:12px}
.profile-gallery-dialog img{display:block;max-width:80vw;max-height:76vh;object-fit:contain;margin-bottom:10px}
.profile-gallery-dialog::backdrop{background:rgba(0,0,0,.85)}
.staff-rank-group{grid-column:1/-1;min-width:0;margin:14px 0}
.staff-rank-group>h3{padding:12px;text-align:center;border-bottom:1px solid var(--bgr-line,#80509a);color:var(--bgr-accent,#d8a3ff)}
@media(max-width:600px){.profile-gallery-editor{grid-template-columns:minmax(0,1fr)}}

.profile-video-frame{display:block;border:1px solid var(--bgr-line,#80509a);width:100%;aspect-ratio:16/9;min-height:220px;margin:12px 0;background:#18121e}.profile-featured-clip .rgc-button{margin:6px 8px 6px 0}.staff-rank-group .leadership-profile{grid-column:1/-1;min-width:0}

#staffGalleryFields[hidden],#staffClipFields[hidden]{display:none!important}

/* Published profile directory and owner-only profile controls. */
#myDirectoryProfile[hidden],#staffDirectoryPager[hidden],#rosterPublicSearch[hidden]{display:none!important}
.directory-own-profile{margin:14px 0 20px;min-width:0}.directory-own-profile .rgc-button{margin:8px 8px 0 0}.profile-directory-card{display:flex;flex-direction:column;gap:10px;min-width:0;overflow-wrap:anywhere}.profile-directory-card h3,.profile-directory-card p{margin:0}.directory-avatar{width:100%;max-width:152px;aspect-ratio:1;object-fit:contain;border:1px solid var(--bgr-line,#80509a);border-radius:8px}.directory-role{color:var(--bgr-accent,#d8a3ff);font-weight:700}.directory-bio{white-space:pre-wrap}.profile-directory-card .roster-controls{margin-top:auto}.profile-detail-card>.rgc-button{margin:14px 0}

/* Compact directory portraits override the shared site-wide image sizing. */
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content :is(#approvedStaffList,#rosterPublicList,.staff-rank-group>.roster-directory){grid-template-columns:repeat(auto-fill,minmax(min(100%,410px),1fr));align-items:stretch}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content :is(#approvedStaffList,#rosterPublicList):has(.profile-detail-card){grid-template-columns:minmax(0,1fr)}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-directory-card{display:grid!important;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:16px;padding:16px!important}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-directory-card .directory-avatar{display:block!important;box-sizing:border-box!important;width:112px!important;height:112px!important;max-width:112px!important;max-height:112px!important;object-fit:contain!important;aspect-ratio:1!important;margin:0!important;border:1px solid var(--bgr-line,#80509a)!important;border-radius:8px!important;background:#130e1b!important}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .directory-card-content{display:flex;flex-direction:column;min-width:0;gap:8px;height:100%}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .directory-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.88rem;line-height:1.6;margin:0!important}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .directory-avatar-placeholder{display:flex!important;align-items:center;justify-content:center;font:800 2rem Cinzel,Georgia,serif;color:#d6adf5}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-detail-card{max-width:1000px;width:100%!important;padding:clamp(12px,2vw,22px)!important}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-hero-banner{display:block!important;width:100%!important;height:auto!important;max-height:310px!important;aspect-ratio:3/1;object-fit:contain!important;margin:0 0 16px!important;border:1px solid var(--bgr-line,#80509a)!important;border-radius:8px!important;background:#130e1b}
.profile-identity{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:4px 0 20px;border-bottom:1px solid var(--bgr-line,#80509a);min-width:0}
html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-identity-avatar{display:block!important;width:116px!important;height:116px!important;max-width:116px!important;max-height:116px!important;object-fit:contain!important;flex:none;margin:0!important;border:1px solid var(--bgr-line,#80509a)!important;border-radius:10px!important;background:#130e1b!important}
.profile-identity-name{flex:1;min-width:0;overflow-wrap:anywhere}.profile-identity-name h2{margin:0 0 5px!important;font:800 clamp(1.25rem,2.5vw,1.9rem)/1.25 Cinzel,Georgia,serif!important}.profile-identity-name p{margin:3px 0!important}.profile-department{font-size:.9rem;color:var(--bgr-muted,#c6b9d0)}
.profile-detail-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.profile-info-panel{min-width:0;padding:clamp(12px,2vw,20px);border:1px solid var(--bgr-line,#80509a);border-radius:8px;background:#140e1c;overflow-wrap:anywhere}
.profile-info-panel h3{color:var(--bgr-accent,#d8a3ff)!important;margin:0 0 12px!important;font:800 1.1rem/1.4 Cinzel,Georgia,serif!important}
.profile-about{grid-column:1/-1}.profile-rich-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:#eee8f5}.profile-rich-text strong{font-weight:800!important}.profile-rich-text em{font-style:italic!important}.profile-rich-text u{text-decoration:underline!important}.profile-rich-text s{text-decoration:line-through!important}
.profile-rich-text .profile-text-purple{color:#d3a1ff!important}.profile-rich-text .profile-text-gold{color:#f0cf80!important}.profile-rich-text .profile-text-silver{color:#d0d8e4!important}.profile-rich-text .profile-text-red{color:#ff9c9c!important}.profile-rich-text .profile-text-teal{color:#80dfd1!important}.profile-rich-text .profile-text-blue{color:#8fc6ff!important}.profile-rich-text .profile-text-green{color:#a6e39c!important}.profile-rich-text .profile-text-pink{color:#f4a8d9!important}.profile-rich-text .profile-text-white{color:#fff!important}
.bio-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.bio-toolbar .rgc-button{min-width:44px}.bio-toolbar select{min-height:44px;min-width:100px;max-width:100%;padding:8px;background:#140e1c;color:#f6f2f9;border:1px solid var(--bgr-line,#80509a);border-radius:6px;font:inherit}.bio-format-help{font-size:.86rem;color:var(--bgr-muted,#c6b9d0);margin:0!important}.bio-preview-panel{padding:16px;border:1px solid var(--bgr-line,#80509a);border-radius:8px;background:#140e1c;min-width:0}.bio-preview-panel h4{margin:0 0 10px;color:var(--bgr-accent,#d8a3ff)}
@media(max-width:600px){html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-directory-card{grid-template-columns:80px minmax(0,1fr);gap:10px;padding:10px!important}html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-directory-card .directory-avatar{width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important}html.bgr-site.bgr-site-theme body.rg-credits[data-profile-directory] #main-content .profile-identity-avatar{width:84px!important;height:84px!important;max-width:84px!important;max-height:84px!important}.profile-detail-sections{grid-template-columns:minmax(0,1fr)}.profile-identity{gap:12px}.profile-identity>.rgc-button{flex-basis:100%}.profile-info-panel{padding:12px}.directory-card-content .roster-controls{gap:6px}}

/* Keep captions attached to their image slots and preserve the full artwork. */
.profile-gallery-editor .gallery-slot-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.gallery-slot-actions .rgc-button{flex:1 1 90px}
.gallery-figure{margin:0;min-width:0;display:flex;flex-direction:column;gap:6px}
.gallery-figure .gallery-open{width:100%;display:block;min-height:0!important;padding:0!important}
.gallery-caption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.5;color:var(--bgr-muted,#c6b9d0);padding:4px 2px}
.profile-gallery-dialog .gallery-caption{max-width:80vw;color:#eee8f5;margin:8px 0}
.profile-gallery-editor input:disabled{opacity:.65}
#galleryCount{color:var(--bgr-accent,#d8a3ff);font-weight:700}

/* Directory hierarchy management is deliberately independent of role administration. */
#hierarchyWorkspace[hidden]{display:none!important}
.hierarchy-groups,.hierarchy-assignments{display:grid;gap:10px;min-width:0}
.hierarchy-group-row,.hierarchy-assignment{display:grid;gap:8px;min-width:0;border:1px solid var(--bgr-line,#80509a);border-radius:8px;background:#160e20;padding:12px;overflow-wrap:anywhere}
.hierarchy-assignment{grid-template-columns:minmax(0,1fr) minmax(180px,1fr);align-items:center}
#hierarchyWorkspace input,#hierarchyWorkspace select{width:100%;min-width:0;min-height:44px;font:inherit;color:#eee8f5;background:#130e1b;border:1px solid var(--bgr-line,#80509a);border-radius:6px;padding:9px}
.hierarchy-assignment p{margin:4px 0;color:var(--bgr-muted,#c6b9d0)}
@media(max-width:600px){.hierarchy-assignment{grid-template-columns:minmax(0,1fr)}}

/* Personal accent colors affect only the profile detail or editor preview. */
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="purple"]{--profile-personal-accent:#d3a1ff}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="gold"]{--profile-personal-accent:#f0cf80}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="silver"]{--profile-personal-accent:#d0d8e4}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="red"]{--profile-personal-accent:#ff9c9c}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="teal"]{--profile-personal-accent:#80dfd1}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="blue"]{--profile-personal-accent:#8fc6ff}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="green"]{--profile-personal-accent:#a6e39c}
:is(.profile-detail-card,.profile-appearance-preview)[data-profile-accent="pink"]{--profile-personal-accent:#f4a8d9}
.profile-appearance-preview{padding:16px;min-width:0;background:#140e1c;border:1px solid var(--profile-personal-accent,#d3a1ff);border-radius:8px;overflow-wrap:anywhere}
.profile-appearance-preview h4,.profile-appearance-preview .profile-accent-sample{color:var(--profile-personal-accent,#d3a1ff)!important}
.profile-appearance-preview h4{margin:8px 0;font-size:1.1rem}.profile-accent-sample{display:block;padding-top:10px;border-top:1px solid currentColor;font-weight:700}
.profile-personalization select{width:100%;min-height:44px;max-width:100%;background:#140e1c;color:#eee8f5;border:1px solid var(--bgr-line,#80509a);border-radius:6px;padding:10px;font:inherit}
.profile-detail-card[data-profile-accent] .profile-identity-name .directory-role,.profile-detail-card[data-profile-accent] .profile-info-panel h3,.profile-detail-card[data-profile-accent] .profile-personal-motto{color:var(--profile-personal-accent,#d3a1ff)!important}
.profile-detail-card[data-profile-accent] .profile-identity{border-bottom-color:var(--profile-personal-accent,#d3a1ff)}
.profile-detail-card[data-profile-accent] .profile-info-panel{border-top-color:var(--profile-personal-accent,#d3a1ff)}
.profile-personal-motto{font-style:italic;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem;line-height:1.5}

/* Recipient-controlled recognition is independent of profile draft publication. */
#ownAwardsWorkspace[hidden]{display:none!important}
#ownAwardAudience{min-height:44px;width:100%;max-width:320px;background:#140e1c;color:#eee8f5;border:1px solid var(--bgr-line,#80509a);border-radius:6px;padding:8px;font:inherit}
.featured-award-card{border-top:2px solid #f0cf80!important}
.award-featured-label{display:block;color:#f0cf80!important;font-size:.86rem;font-weight:800;letter-spacing:.04em;margin:0 0 8px}

/* Permission-scoped, bookmarkable administration workspaces. */
#reaperAdminNavigation[hidden],#reaperAdminOverview[hidden],[data-workspace-panel][hidden],#profileAssignmentPanel[hidden],#profileAudienceControl[hidden],#departmentPanel[hidden],#staffHistoryPanel[hidden],#profileAdminStatus[hidden]{display:none!important}
.reaper-admin-navigation{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:12px 0 24px}
.reaper-workspace-link{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere;padding:14px;text-decoration:none!important;border:1px solid var(--bgr-line,#80509a);border-radius:8px;background:#160e20;color:#eee8f5!important}
.reaper-workspace-link strong{color:#d3a1ff}.reaper-workspace-link span{font-size:.86rem;color:#c6b9d0;line-height:1.5}
.reaper-workspace-link[aria-current=page]{border:2px solid #d3a1ff;background:#251634}
.workspace-audience{display:grid;gap:8px;margin:12px 0;max-width:440px}
.workspace-audience select{min-height:44px;width:100%;font:inherit;color:#eee8f5;background:#130e1b;border:1px solid var(--bgr-line,#80509a);border-radius:6px;padding:8px}

/* Optional quoted public identity; separate from verified account username. */
.profile-public-name{font-family:Inter,Arial,sans-serif;font-size:.95rem;font-weight:500;font-style:italic;line-height:1.45;color:#cbb6dd!important;margin:2px 0 5px!important;overflow-wrap:anywhere;white-space:normal}
.profile-identity-name .profile-public-name{font-size:1.05rem;color:var(--profile-personal-accent,#d3a1ff)!important}
#appearancePreviewPublicName[hidden]{display:none!important}

#profileReportsWorkspace[hidden]{display:none!important}.profile-report-dialog{width:min(92vw,540px);max-height:90vh;overflow:auto;background:#160e20;color:#eee8f5;border:1px solid #80509a;border-radius:10px;padding:20px}.profile-report-dialog::backdrop{background:rgba(0,0,0,.8)}.profile-report-dialog form{display:grid;gap:12px}.profile-report-dialog select,.profile-report-dialog textarea,#reportAudience{width:100%;min-height:44px;background:#130e1b;color:#eee8f5;border:1px solid #80509a;border-radius:6px;padding:8px;font:inherit}#reportAudience{max-width:360px}#reportList p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Management search controls and compact status summaries. */
.admin-filter-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;align-items:center;margin:14px 0}.admin-filter-form input,.admin-filter-form select{width:100%;min-width:0;min-height:44px;background:#130e1b;color:#eee8f5;border:1px solid #80509a;border-radius:6px;padding:8px;font:inherit}.admin-filter-form .roster-controls{grid-column:1/-1}.admin-status-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));gap:8px;margin:14px 0}.admin-status-count{display:grid;gap:4px;padding:10px;border:1px solid #604572;border-radius:8px;background:#160e20;overflow-wrap:anywhere}.admin-status-count strong{font-size:1.3rem;color:#eee8f5}.admin-status-count span{font-size:.8rem;color:#c6b9d0}.admin-profile-state{display:block;font-size:.9rem;font-weight:700;color:#cbb6dd}.admin-profile-state[data-state="published"]{color:#a6e39c}.admin-profile-state[data-state="restricted"]{color:#ff9c9c}@media(max-width:600px){.admin-filter-form{grid-template-columns:minmax(0,1fr)}}

#hallPager[hidden]{display:none!important}.hall-recognition-card{min-width:0;overflow-wrap:anywhere;border-top-color:#f0cf80!important}.hall-recognition-card .award-featured-label{letter-spacing:.08em}.hall-recognition-card p{white-space:pre-wrap}

#teamPublicPager[hidden],#teamAdminWorkspace[hidden],#teamMembershipEditor[hidden],.team-members[hidden]{display:none!important}.gaming-team-card{min-width:0;overflow-wrap:anywhere}.gaming-team-card p{white-space:pre-wrap}.team-members{margin-top:12px;border-top:1px solid #80509a;padding-top:12px}.team-members ul{padding-left:20px}.team-members li{margin:6px 0}.team-recruiting{font-weight:700;color:#d3a1ff!important}

/* Roster audit: accessible dialogs and stable narrow-screen controls. */
.profile-directory-back{margin:0 0 14px;max-width:100%}
.profile-report-dialog,.profile-gallery-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.profile-report-dialog input,.profile-report-dialog select,.profile-report-dialog textarea{box-sizing:border-box;min-width:0;max-width:100%;font-size:16px}
.profile-report-dialog .rgc-button,.profile-gallery-dialog .rgc-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 16px;background:#291538;color:#f6f2f9;border:1px solid #80509a;border-radius:6px;font:700 .9rem/1.35 Inter,system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.profile-report-dialog .rgc-button.primary{background:#684580;color:#fff}.profile-report-dialog .rgc-button:disabled{opacity:.65;cursor:not-allowed}
.profile-report-dialog :focus-visible,.profile-gallery-dialog :focus-visible{outline:2px solid #d3a1ff;outline-offset:3px}
.profile-gallery-dialog img{max-width:100%;max-height:70dvh;object-fit:contain}.profile-gallery-dialog .gallery-caption{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:480px){.profile-report-dialog{padding:14px}.profile-report-dialog .roster-controls{display:grid;grid-template-columns:minmax(0,1fr)}.profile-identity-name h2{overflow-wrap:anywhere}.profile-identity>.rgc-button{width:100%}}

#activityMine[hidden],#activityPager[hidden],#activityReportWorkspace[hidden]{display:none!important}.activity-board{display:grid;gap:10px;min-width:0}.activity-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));gap:12px;align-items:start}.activity-row>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.activity-label{font-size:.78rem;color:#c6b9d0}.activity-row strong{color:#eee8f5}

/* Private activity report charts: no external assets or chart dependency. */
.activity-view-controls{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;align-items:center}.activity-visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}.activity-visual-panel{padding:16px;margin:0 0 14px;border:1px solid #654776;background:#191020;border-radius:10px;min-width:0}.activity-visual-panel h3{margin:0 0 6px;color:#f1e8f7}.activity-visual-note{font-size:.82rem;color:#c6b9d0;margin:4px 0 12px}.activity-share-track{display:flex;height:14px;overflow:hidden;border-radius:8px;background:#34263e;margin:16px 0}.activity-web{background:#a879db}.activity-discord{background:#717bf5}.activity-combined{background:#e0bb6b}.activity-empty-track{background:#403448;flex:1}.activity-share-values{list-style:none;padding:0;margin:0;display:grid;gap:9px}.activity-share-values li{display:flex;align-items:center;gap:8px;font-size:.86rem}.activity-share-values strong{margin-left:auto;color:#f0e8f6}.activity-swatch{display:inline-block;width:10px;height:10px;border-radius:2px;flex:none}.activity-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:.8rem;margin-bottom:12px}.activity-legend span{display:inline-flex;gap:5px;align-items:center}.activity-trend{display:flex;gap:5px;overflow-x:auto;min-width:0;padding:4px 3px 8px;scrollbar-width:thin}.activity-trend-day{flex:1 0 29px;display:grid;gap:5px;min-width:0}.activity-trend-bars{height:132px;display:flex;gap:2px;align-items:flex-end;border-bottom:1px solid #725882}.activity-trend-bar{flex:1;border-radius:3px 3px 0 0;min-width:3px}.activity-trend-date{font-size:.63rem;text-align:center;white-space:nowrap;color:#c6b9d0}.activity-trend-day:focus-visible{outline:2px solid #d3a1ff;outline-offset:2px}.activity-insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}.activity-insight{display:grid;gap:6px;padding:12px;border:1px solid #654776;border-radius:8px;overflow-wrap:anywhere}.activity-insight span{font-size:.8rem;color:#c6b9d0}.activity-insight strong{color:#f1e8f7}#activityDailyDetails{margin:14px 0}#activityDailyDetails summary{cursor:pointer;font-weight:700;padding:12px 0}@media(max-width:480px){.activity-visual-panel{padding:12px}.activity-view-controls{display:grid;grid-template-columns:1fr}.activity-visual-grid{grid-template-columns:minmax(0,1fr)}}
