/* BooksFirst headquarters: people-first access management, 2026-11-16.
   Scoped to HQ; preserves every partner storefront, checkout and inventory page. */
.ed-hq .ed-main .ed-container{max-width:1180px}
.ed-hq .ed-header{box-shadow:none;border-bottom:1px solid #e9e8e4}
.ed-hq .ed-primary-nav .ed-nav-item{font-weight:550}
.ed-hq .ed-primary-nav .ed-nav-item[aria-current="page"]{color:#c71423}
.ed-hq .hq-intro{background:#f2f4ef;border:1px solid #e7ece7;box-shadow:none;min-height:196px}
.ed-hq .hq-intro h2{font-weight:680;letter-spacing:-.045em}
.ed-hq .metrics .metric{border:1px solid #e7e8e5;box-shadow:none}
.ed-hq .hq-portfolio.panel,.ed-hq .hq-attention.panel,.ed-hq .hq-activity.panel{box-shadow:none;border:1px solid #e8e8e5}
.bf-staff-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:34px 38px;margin:12px 0 20px;background:#f7f5f1;border:1px solid #eae7e2;border-radius:16px}
.bf-staff-intro .eyebrow{font-size:11px;letter-spacing:.15em;font-weight:750;color:#bb1421;margin:0 0 8px}
.bf-staff-intro h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2rem,3.5vw,3rem);font-weight:500;letter-spacing:-.045em;line-height:1.07;color:#181a3c;margin:0 0 10px}
.bf-staff-intro p{line-height:1.6;color:#666a74;max-width:620px;margin:0}
.bf-staff-stats{display:flex;gap:14px}
.bf-staff-stats>div{padding:18px;min-width:128px;background:#fff;border:1px solid #e8e6e3;border-radius:10px}
.bf-staff-stats span{color:#6c707a;display:block;font-size:11px;font-weight:650}
.bf-staff-stats strong{display:block;color:#1b1e3e;font-size:26px;letter-spacing:-.04em;margin-top:5px}
.bf-staff-help{padding:20px 22px;border-left:3px solid #d71920;background:#fff;border-radius:0 9px 9px 0;margin-bottom:20px}
.bf-staff-help strong{color:#1b1e3e;font-size:14px}
.bf-staff-help p{color:#646877;font-size:13px;line-height:1.65;margin:7px 0 0}
.bf-staff-help a{color:#a5121a;text-decoration:underline;text-underline-offset:2px}
.bf-staff-panel{border:1px solid #e7e8eb;border-radius:14px;background:#fff;overflow:hidden}
.bf-staff-panel-head{display:flex;align-items:end;justify-content:space-between;gap:22px;padding:23px 26px;border-bottom:1px solid #ececf0}
.bf-staff-panel-head h2{font-size:19px;color:#161a3a;letter-spacing:-.025em;margin:0 0 5px}
.bf-staff-panel-head p{font-size:13px;color:#6c7078;margin:0}
.bf-staff-search{display:flex;gap:8px;align-items:center;min-width:min(350px,100%)}
.bf-staff-search input{padding:11px 13px;min-width:0;flex:1;width:100%;border:1px solid #d9dce5;background:#fff;border-radius:8px;font-size:14px}
.bf-staff-search .btn{white-space:nowrap;padding:12px 16px;border-radius:8px}
.bf-employee-row{display:grid;grid-template-columns:42px minmax(180px,1fr) minmax(250px,310px);gap:16px;align-items:start;padding:20px 26px;border-bottom:1px solid #eff0f2}
.bf-employee-row:last-child{border-bottom:0}
.bf-employee-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eeeff7;font-size:16px;font-weight:700;color:#25294f}
.bf-employee-info{min-width:0}
.bf-employee-info h3{margin:0 0 4px;font-size:15px;letter-spacing:-.014em;color:#151a3a}
.bf-employee-info>p{margin:0 0 9px;font-size:12px;color:#717481;overflow-wrap:anywhere}
.bf-employee-tags{display:flex;gap:5px;flex-wrap:wrap}
.bf-employee-tag{font-size:10px;border:1px solid #e5e5ec;border-radius:100px;color:#53586a;background:#f6f6fa;padding:4px 8px;font-weight:600}
.bf-employee-tag.is-good{color:#23694d;background:#ecf7ef;border-color:#d5ecde}
.bf-employee-tag.is-muted{color:#906040;background:#fff5ea;border-color:#f8e6d7}
.bf-employee-tag.is-admin{color:#852129;background:#fff0f1;border-color:#f9d8dc}
.bf-employee-roles{font-size:12px;margin-top:7px!important;color:#4c5064!important}
.bf-employee-controls{display:grid;gap:9px}
.bf-employee-controls form:not(.bf-employee-revoke){display:flex;gap:7px;align-items:end}
.bf-employee-controls label{font-size:11px;color:#555b6a;font-weight:650;flex:1;min-width:0}
.bf-employee-controls select{width:100%;font-size:12px;min-height:37px;margin-top:5px;border:1px solid #dfe1e7;background:#fff;border-radius:8px;padding:6px}
.bf-employee-controls .btn{border-radius:8px;white-space:nowrap;font-size:12px;min-height:37px;padding:9px 12px}
.bf-revoke-confirm{font-size:12px;position:relative;color:#9c2631}
.bf-revoke-confirm summary{cursor:pointer;max-width:max-content;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.bf-revoke-confirm[open]{padding:10px;border:1px solid #f3d4d4;border-radius:9px;background:#fff9f9}
.bf-revoke-confirm .bf-employee-revoke p{color:#7f363c;font-size:12px;margin:6px 0}
.bf-employee-managed{color:#47506b;font-size:12px;font-weight:600;align-self:center;text-align:right}
.bf-employee-managed small{font-weight:400;color:#7e8190}
.bf-staff-note{font-size:12px;line-height:1.55;color:#767987;padding:14px 2px}
.bf-staff-login-note{border-top:1px solid #e9e9ed;margin-top:24px!important;padding-top:15px;color:#5e6471;font-size:13px}
.bf-staff-login-note a{color:#bb1721;font-weight:700}
@media(max-width:1040px){.bf-employee-row{grid-template-columns:42px minmax(0,1fr)}.bf-employee-controls,.bf-employee-managed{grid-column:2;max-width:460px}.bf-employee-managed{text-align:left}.bf-staff-panel-head{align-items:stretch;flex-direction:column}}
@media(max-width:680px){.bf-staff-intro{grid-template-columns:1fr;gap:18px;padding:24px 19px;margin-top:3px}.bf-staff-stats{gap:8px}.bf-staff-stats>div{flex:1;min-width:0}.bf-staff-panel-head{padding:19px}.bf-employee-row{padding:18px 14px;grid-template-columns:36px minmax(0,1fr);gap:10px}.bf-employee-avatar{height:36px;width:36px}.bf-employee-controls,.bf-employee-managed{grid-column:1/-1}.bf-employee-controls form:not(.bf-employee-revoke){flex-direction:column;align-items:stretch}.bf-staff-search{min-width:0;width:100%}.bf-staff-search input,.bf-employee-controls select{font-size:16px}.bf-staff-intro h1{font-size:2.2rem}}
@media(hover:hover) and (pointer:fine){.bf-staff-panel .bf-employee-row:hover{background:#fdfdfd}.bf-revoke-confirm summary:hover{color:#c71928}}
@media(prefers-reduced-motion:reduce){.bf-staff-panel *{transition:none!important}}
