/* Shared site chrome for every primary HTML page. Keep portal content/navigation page-specific. */
:root{--site-header-height:76px}
.site-topbar{box-sizing:border-box;position:sticky;top:0;z-index:120;width:100%;height:var(--site-header-height);min-height:var(--site-header-height);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 clamp(18px,5vw,72px);background:#000;color:#fff;border-bottom:1px solid #262626;font-family:"Space Grotesk","DM Sans",Inter,Arial,sans-serif}
.site-topbar-brand{display:inline-flex;align-items:center;min-width:0;color:#fff!important;text-decoration:none!important;font-size:15px;font-weight:700;line-height:1;letter-spacing:-.025em;white-space:nowrap}
.site-topbar-brand:hover{opacity:.78}
.site-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.site-topbar .theme-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;border:1px solid #555;border-radius:999px;background:transparent;color:#fff;cursor:pointer}
.site-topbar .theme-toggle svg{display:block;width:18px;height:18px}
.site-topbar .theme-toggle:hover,.site-topbar-home:hover{background:#fff;color:#000!important;border-color:#fff;text-decoration:none}
.site-topbar .theme-toggle:focus-visible,.site-topbar-home:focus-visible,.site-topbar-brand:focus-visible{outline:2px solid #fff;outline-offset:3px}
.site-topbar-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 13px;border:1px solid #555;border-radius:999px;background:transparent;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:600;white-space:nowrap}
.site-topbar-home span:first-child{font-size:17px;line-height:1}
/* Keep the website-return action icon-only so it cannot collide with the theme toggle. */
.site-topbar-home-label{display:none!important}
.site-topbar-home:hover .site-topbar-home-label{color:#000}
.site-topbar + .portal-shell{min-height:calc(100vh - var(--site-header-height))}
.portal-topbar > .portal-header-brand{display:none!important}
.account-status-page > main{min-height:calc(100vh - var(--site-header-height))!important}
.account-status-page main .portal-brand{display:none!important}
body>header.top:not(#hd){box-sizing:border-box;height:var(--site-header-height);min-height:var(--site-header-height);padding:0 clamp(18px,5vw,72px);border-bottom:1px solid #262626;background:#000;color:#fff}
body>header.top:not(#hd) .brand{color:#fff;font-size:15px;font-weight:700;letter-spacing:-.025em}
body>header.top:not(#hd) .top-right{align-items:center;gap:10px}
body>header.top:not(#hd) .top-link{border:1px solid #555;background:transparent;color:#fff;border-radius:999px}
body>header.top:not(#hd) .top-link:hover{background:#fff;color:#000;border-color:#fff}
body>header.top:not(#hd) .theme-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;height:42px;min-height:42px;padding:0}
body>header.top:not(#hd) .identity{display:inline-flex;align-items:center;gap:8px;color:#fff}
body>header.top:not(#hd) .identity[hidden],body>header.top:not(#hd) button[hidden]{display:none!important}
body>header.top#hd{background:#000;color:#fff;border-bottom:1px solid #262626}
header.top#hd nav{height:76px!important;min-height:76px;padding:0 clamp(18px,5vw,72px)!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
header.top#hd .nl{gap:clamp(12px,1.8vw,24px)!important}
header.top#hd .nl a{font-size:13px;white-space:nowrap}
header.top#hd .wm{font-size:clamp(15px,1.65vw,22px)!important}
header.top#hd .nr{gap:clamp(7px,1vw,13px)!important}
header.top#hd .nr .si{gap:clamp(8px,1.1vw,15px)!important}
header.top#hd .theme-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;height:42px;padding:0;border-color:#555;color:#fff;background:transparent}
header.top#hd .theme-toggle:hover{background:#fff;color:#000;border-color:#fff}
@media(max-width:850px){
 header.top#hd nav{grid-template-columns:minmax(0,1fr) auto!important}
 header.top#hd .nl{display:none!important}
 header.top#hd .wm{justify-self:start;text-align:left;font-size:16px!important}
 header.top#hd .nr .si{display:none!important}
}
@media(max-width:560px){
 .site-topbar{height:64px;min-height:64px;padding:0 14px;gap:10px}
 .site-topbar-brand{font-size:14px}
 .site-topbar-actions{gap:7px}
 .site-topbar .theme-toggle{width:38px;min-width:38px;flex-basis:38px;height:38px;min-height:38px}
 .site-topbar-home{min-height:38px;padding:0 10px;font-size:11px}
 .site-topbar-home-label{display:none}
 .site-topbar + .portal-shell{min-height:calc(100vh - 64px)}
 body>header.top:not(#hd){height:64px;min-height:64px;padding:0 14px}
 body>header.top:not(#hd) .top-right{gap:7px}
 body>header.top:not(#hd) .top-link{width:auto;min-width:38px;height:38px;min-height:38px;padding:0 10px}
 body>header.top:not(#hd) .theme-toggle{width:38px;min-width:38px;height:38px;min-height:38px;padding:0}
 header.top#hd nav{height:64px!important;min-height:64px;padding:0 14px!important}
 header.top#hd .nr{gap:6px!important}
 header.top#hd .wm{font-size:14px!important;white-space:normal}
 header.top#hd .top-action,header.top#hd .nr .tg:not(.theme-toggle){min-height:36px;height:36px;padding:0 10px;font-size:11px}
}

/* Homepage hero cleanup: tighter hierarchy and less decorative clutter. */
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper){
  box-sizing:border-box;
  min-width:0;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(h1,.hero-title,[class*="hero-title"]){
  max-width:13ch;
  font-size:clamp(2.8rem,6.2vw,5.5rem);
  line-height:.98;
  letter-spacing:-.065em;
  text-wrap:balance;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(p,.hero-description,[class*="hero-description"]){
  max-width:56ch;
  line-height:1.6;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-stats,.hero-social,.hero-scroll,.hero-decoration,.hero-decor,.hero-badge,.hero-tags,.hero-availability,.floating-badge,.scroll-indicator,[aria-label="Scroll indicator"]){
  display:none!important;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-content,[class*="hero-content"]){
  min-width:0;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]){
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]) a,
body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]) button{
  min-height:44px;
}
@media(min-width:851px){
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper){
  padding-top:clamp(42px,6vw,88px);
  padding-bottom:clamp(42px,6vw,88px);
 }
}
@media(max-width:850px){
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper){
  min-height:0!important;
  padding-top:clamp(28px,7vw,54px)!important;
  padding-bottom:clamp(30px,7vw,56px)!important;
  gap:22px;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(h1,.hero-title,[class*="hero-title"]){
  max-width:12ch;
  font-size:clamp(2.55rem,9vw,4.2rem);
  line-height:1;
  letter-spacing:-.06em;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(p,.hero-description,[class*="hero-description"]){
  max-width:38ch;
  font-size:15px;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(img,video,svg){
  max-width:100%;
 }
}
@media(max-width:560px){
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper){
  padding:26px 18px 34px!important;
  margin-top:0!important;
  margin-bottom:0!important;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(h1,.hero-title,[class*="hero-title"]){
  font-size:clamp(2.35rem,11vw,3.25rem);
  line-height:1.02;
  max-width:11ch;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(p,.hero-description,[class*="hero-description"]){
  font-size:14px;
  line-height:1.55;
  max-width:34ch;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]){
  gap:8px;
  margin-top:18px;
 }
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]) a,
 body:not(.portal-body) :is(.hero,#hero,.hero-section,.home-hero,.hero-wrapper) :is(.hero-actions,.hero-buttons,.hero-cta,[class*="hero-actions"]) button{
  min-height:42px;
  padding:0 15px;
  font-size:13px;
 }
}

 
/* Homepage account controls: one role link and one sign-out action. */
header.top#hd #auth-nav-section{
  display:flex!important;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(6px,1vw,10px);
  flex:0 1 auto;
  min-width:0;
}
header.top#hd #auth-nav-section>.account-dashboard-link,
header.top#hd #auth-nav-section>.account-signout{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  min-height:40px;
  padding:0 clamp(9px,1.1vw,15px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
header.top#hd #auth-nav-section>.account-dashboard-link[hidden]{display:none!important}
header.top#hd #auth-nav-section>.account-signout[aria-disabled="true"]{opacity:.65;pointer-events:none}
header.top#hd .nr{min-width:0}
header.top#hd .wm{min-width:0}
@media(max-width:850px){
  header.top#hd nav{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-width:0;
  }
  header.top#hd .wm{
    justify-self:start!important;
    min-width:0;
    max-width:100%;
    margin-left:0!important;
    overflow:hidden;
  }
  header.top#hd .nr{
    min-width:0;
    flex:0 0 auto;
    gap:6px!important;
  }
  header.top#hd #auth-nav-section{gap:5px}
  header.top#hd #auth-nav-section>.account-dashboard-link,
  header.top#hd #auth-nav-section>.account-signout{
    min-height:36px;
    padding:0 10px;
    font-size:11px;
  }
}
@media(max-width:560px){
  /* Put branding and account actions on separate rows instead of compressing them together. */
  header.top#hd nav{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto;
    height:auto!important;
    min-height:0!important;
    padding:9px 12px!important;
    gap:7px;
  }
  header.top#hd .wm{
    grid-column:1;
    grid-row:1;
    justify-self:start!important;
    margin:0!important;
    max-width:100%;
    font-size:14px!important;
    white-space:nowrap;
  }
  header.top#hd .nr{
    grid-column:1;
    grid-row:2;
    display:flex!important;
    width:100%;
    justify-content:flex-end;
    gap:6px!important;
  }
  header.top#hd #th{
    flex:0 0 36px;
    width:36px;
    min-width:36px;
    height:36px;
    min-height:36px;
    padding:0;
  }
  header.top#hd #mb{
    flex:0 0 auto;
    min-height:36px;
    height:36px;
    padding:0 10px;
    font-size:11px;
  }
  header.top#hd #auth-nav-section{
    flex:0 1 auto;
    min-width:0;
    max-width:calc(100vw - 112px);
    gap:5px;
  }
  header.top#hd #auth-nav-section>.account-dashboard-link,
  header.top#hd #auth-nav-section>.account-signout{
    flex:0 1 auto;
    min-width:0;
    max-width:50%;
    min-height:36px;
    padding:0 8px;
    font-size:10px;
    letter-spacing:-.025em;
  }
}


/* Keep the signed-out Sign in action full-size on narrow screens.
   The authenticated dashboard/sign-out controls use a separate compact layout. */
@media(max-width:560px){
  header.top#hd #auth-nav-section{
    flex:0 0 auto!important;
    width:auto;
    max-width:none!important;
    min-width:0;
  }
  header.top#hd #auth-nav-section>#nav-signin{
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto;
    min-width:76px;
    max-width:none;
    min-height:38px;
    height:38px;
    padding:0 13px;
    font-size:12px;
    line-height:1;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    flex-shrink:0;
  }
}

/* Keep the mobile header sequence stable: theme, dashboard/sign-out group, then Menu. */
header.top#hd .nr>#th{order:1}
header.top#hd .nr>#auth-nav-section{order:2}
header.top#hd .nr>#mb{order:3}

/* Consistent reverse-colour brand mark and balanced spacing on every site header. */
.site-topbar-brand,body>header.top:not(#hd) .brand{
 display:inline-flex;align-items:center;gap:11px;padding:5px 10px 5px 5px;border-radius:12px;line-height:1.15;
}
.site-topbar-brand::before,body>header.top:not(#hd) .brand::before,.legacy-workspace-page .portal-brand::before{
 content:"";display:inline-block;flex:0 0 34px;width:34px;height:34px;border-radius:8px;
 background:#000 url("/logo.svg?v=20261203b") center/contain no-repeat;
}
.site-topbar-brand::before,body>header.top:not(#hd) .brand::before{border:1px solid #292929}
.legacy-workspace-page .portal-brand::before{vertical-align:middle;margin:0 0 10px;width:36px;height:36px;flex-basis:36px;border:1px solid #292929}
header.top#hd .wm{gap:12px!important;padding:6px 12px!important;border-radius:12px}
header.top#hd .site-logo{width:40px;height:40px;object-fit:contain;flex:0 0 40px;border-radius:8px}
@media(max-width:560px){
 .site-topbar-brand,body>header.top:not(#hd) .brand{gap:8px;padding:4px 7px 4px 3px}
 .site-topbar-brand::before,body>header.top:not(#hd) .brand::before{width:30px;height:30px;flex-basis:30px;border-radius:7px}
 .legacy-workspace-page .portal-brand::before{width:32px;height:32px;flex-basis:32px}
 header.top#hd .wm{gap:8px!important;padding:4px 5px!important}
 header.top#hd .site-logo{width:34px;height:34px;flex-basis:34px}
}


/* Refined brand mark: white tile, crisp black R, and consistent breathing room. */
.site-topbar-brand,body>header.top:not(#hd) .brand{gap:12px;padding:6px 13px 6px 6px}
.site-topbar-brand::before,body>header.top:not(#hd) .brand::before,.legacy-workspace-page .portal-brand::before{
  background:#fff url("/logo.svg?v=20261203b") center/contain no-repeat;
  border:1px solid #e7e7e7;padding:2px;
}
header.top#hd .wm{gap:12px!important;padding:7px 13px!important}
header.top#hd .site-logo{
  width:38px;height:38px;padding:2px;object-fit:contain;background:#fff;
  border:1px solid #e7e7e7;border-radius:9px;
}
@media(max-width:560px){
  .site-topbar-brand,body>header.top:not(#hd) .brand{gap:9px;padding:5px 9px 5px 4px}
  .site-topbar-brand::before,body>header.top:not(#hd) .brand::before{width:32px;height:32px;flex-basis:32px;padding:2px;border-radius:8px}
  .legacy-workspace-page .portal-brand::before{padding:2px}
  header.top#hd .wm{gap:9px!important;padding:5px 7px!important}
  header.top#hd .site-logo{width:35px;height:35px;flex-basis:35px;padding:2px}
}


/* Brand de-duplication: render exactly one mark per workspace header.
   Legacy sidebars keep their Workspace label, not a second logo. */
.site-topbar-brand:has(> img.site-logo)::before{display:none!important;content:none!important}
.legacy-workspace-page .portal-sidebar>.portal-brand::before{display:none!important;content:none!important}

/* Match homepage account actions to the About / Services navigation typography. */
header.top#hd #auth-nav-section>:is(#nav-signin,.account-dashboard-link,.account-signout),
.site-topbar .site-topbar-signout,
.site-topbar .portal-role-link{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:0 15px;border-radius:999px;
  font-family:"Space Grotesk",Helvetica,Arial,sans-serif!important;
  font-size:13px!important;font-weight:700!important;line-height:1!important;
  letter-spacing:-.015em!important;white-space:nowrap;
}
@media(max-width:850px){
 header.top#hd #auth-nav-section>:is(#nav-signin,.account-dashboard-link,.account-signout),
 .site-topbar .site-topbar-signout,.site-topbar .portal-role-link{
  min-height:40px;padding:0 13px;font-size:12px!important;
 }
}
@media(max-width:560px){
 header.top#hd #auth-nav-section>:is(#nav-signin,.account-dashboard-link,.account-signout),
 .site-topbar .site-topbar-signout,.site-topbar .portal-role-link{
  min-height:38px;padding:0 12px;font-size:11px!important;
 }
}

/* Shared bottom legal link for the site's public and account pages. */
.site-legal-footer{display:block;box-sizing:border-box;clear:both;width:100%;padding:18px 20px;border-top:1px solid var(--portal-line,var(--hairline,rgba(128,128,128,.24)));text-align:center;color:var(--muted,var(--ink-mid,#777));font:400 12px/1.5 "Space Grotesk",Helvetica,Arial,sans-serif}
.site-legal-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}


/* Mobile homepage: place Menu at the left directly beneath the brand row. */
@media(max-width:560px){
  header.top#hd .nr{
    justify-content:flex-start!important;
  }
  header.top#hd .nr>#mb{
    order:0!important;
    margin-right:auto;
  }
  header.top#hd .nr>#th{order:1!important}
  header.top#hd .nr>#auth-nav-section{order:2!important}
}


/* Mobile homepage: center the brand text between Menu and the light-mode control. */
@media(max-width:560px){
  header.top#hd nav{
    box-sizing:border-box;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr)!important;
    grid-template-rows:42px 38px;
    align-items:center;
    column-gap:8px!important;
    row-gap:4px!important;
    height:auto!important;
    min-height:0!important;
    padding:8px 14px!important;
  }
  header.top#hd .wm{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    width:max-content;
    max-width:100%;
    min-width:0;
    margin:0!important;
    padding:5px 8px!important;
    text-align:center!important;
    font-size:clamp(12px,3.6vw,14px)!important;
    line-height:1.15!important;
    letter-spacing:-.025em;
    white-space:nowrap!important;
  }
  header.top#hd .site-logo{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
  }
  header.top#hd .nr{
    display:contents!important;
  }
  header.top#hd .nr>#mb{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:center!important;
    order:0!important;
    margin:0!important;
    min-height:36px;
    height:36px;
    padding:0 12px;
    font-size:12px;
  }
  header.top#hd .nr>#th{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
    order:1!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
  }
  header.top#hd .nr>#auth-nav-section{
    grid-column:1 / 4!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:center!important;
    order:2!important;
    display:flex!important;
    max-width:100%;
    gap:6px!important;
  }
}


/* Keep the Sign in action visible on mobile, beneath the theme control. */
@media(max-width:560px){
  header.top#hd .nr>#auth-nav-section{
    grid-column:3!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:center!important;
    display:flex!important;
    width:max-content;
    max-width:100%;
    min-width:0;
    margin:0!important;
  }
  header.top#hd #auth-nav-section>#nav-signin{
    display:inline-flex!important;
    visibility:visible!important;
    min-width:76px;
    min-height:36px;
    height:36px;
    padding:0 12px;
    font-size:12px!important;
    white-space:nowrap;
  }
}


/* Mobile homepage header: keep Menu, brand, theme, and account action on one row. */
@media(max-width:560px){
  header.top#hd nav{
    box-sizing:border-box;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) 36px auto!important;
    grid-template-rows:44px!important;
    align-items:center!important;
    column-gap:clamp(4px,1.5vw,8px)!important;
    row-gap:0!important;
    height:auto!important;
    min-height:0!important;
    padding:7px 10px!important;
  }
  header.top#hd .nr{display:contents!important}
  header.top#hd .nr>#mb{
    grid-column:1!important;grid-row:1!important;
    justify-self:start!important;align-self:center!important;
    min-width:0!important;width:auto!important;
    min-height:34px!important;height:34px!important;
    padding:0 9px!important;font-size:11px!important;
    white-space:nowrap!important;
  }
  header.top#hd .wm{
    grid-column:2!important;grid-row:1!important;
    justify-self:center!important;align-self:center!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:3px 2px!important;gap:6px!important;
    font-size:clamp(10px,3.15vw,13px)!important;
    line-height:1.1!important;letter-spacing:-.035em!important;
    white-space:nowrap!important;overflow:hidden!important;
  }
  header.top#hd .wm .site-logo{
    width:27px!important;height:27px!important;flex:0 0 27px!important;
  }
  header.top#hd .nr>#th{
    grid-column:3!important;grid-row:1!important;
    justify-self:center!important;align-self:center!important;
    width:36px!important;min-width:36px!important;
    height:36px!important;min-height:36px!important;
    margin:0!important;padding:0!important;
  }
  header.top#hd .nr>#auth-nav-section{
    grid-column:4!important;grid-row:1!important;
    justify-self:end!important;align-self:center!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    width:auto!important;min-width:0!important;max-width:42vw!important;
    margin:0!important;gap:4px!important;
  }
  header.top#hd #auth-nav-section>:is(#nav-signin,.account-dashboard-link,.account-signout){
    flex:0 1 auto!important;min-width:0!important;max-width:100%!important;
    min-height:34px!important;height:34px!important;
    padding:0 7px!important;font-size:10px!important;
    letter-spacing:-.035em!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  header.top#hd #auth-nav-section>#nav-signin{
    min-width:0!important;width:auto!important;visibility:visible!important;
  }
}


/* Give the signed-in dashboard action enough horizontal breathing room. */
header.top#hd #auth-nav-section>.account-dashboard-link{
  min-height:42px;
  padding:0 18px!important;
  line-height:1.15;
}
@media(max-width:850px){
  header.top#hd #auth-nav-section>.account-dashboard-link{
    min-height:38px;
    padding:0 14px!important;
  }
}


/* Final action geometry: homepage role dashboard action and admin-console header action. */
header.top#hd #auth-nav-section>.account-dashboard-link,
.site-topbar .portal-role-link{
  box-sizing:border-box;
  min-height:42px;
  padding:0 18px!important;
  line-height:1.15;
}
@media(max-width:850px){
  header.top#hd #auth-nav-section>.account-dashboard-link,
  .site-topbar .portal-role-link{
    min-height:40px;
    padding:0 15px!important;
  }
}
@media(max-width:560px){
  header.top#hd #auth-nav-section>.account-dashboard-link,
  .site-topbar .portal-role-link{
    min-height:38px;
    padding:0 13px!important;
  }
}


/* Signed-in homepage header: profile photo only, anchored at the far right. */
header.top#hd #auth-nav-section{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important}
header.top#hd #auth-nav-section>#nav-signin[hidden]{display:none!important}
header.top#hd #auth-nav-section>.header-user-avatar[hidden]{display:none!important}
header.top#hd #auth-nav-section>.header-user-avatar{
  box-sizing:border-box;display:inline-grid;place-items:center;
  width:38px;height:38px;min-width:38px;flex:0 0 38px;
  overflow:hidden;border:1px solid #666;border-radius:50%;
  background:#242424;color:#fff;text-decoration:none;
  font:700 13px/1 "Space Grotesk",Arial,sans-serif;
}
header.top#hd #auth-nav-section>.header-user-avatar img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
@media(max-width:560px){
  header.top#hd #auth-nav-section{grid-column:4!important;grid-row:1!important;justify-self:end!important;width:38px!important;max-width:38px!important}
  header.top#hd #auth-nav-section>.header-user-avatar{width:34px;height:34px;min-width:34px;flex-basis:34px}
}
