:root{ --watchbar-h:0px; }
.load-view__signin.profile-menu-trigger,#workspaceAuth.profile-menu-trigger{
  display:flex; align-items:center; justify-content:center; gap:8px; width:auto; min-width:32px; height:32px;
  padding:0 10px; border:1px solid var(--line); border-radius:999px;
  background:var(--surface); color:var(--icon-muted); box-shadow:none;
  backdrop-filter:none; cursor:pointer;
}
#workspaceAuth.profile-menu-trigger{ position:relative; inset:auto; }
.profile-menu-trigger svg,#workspaceAuth.profile-menu-trigger svg{ width:17px; height:17px; }
.profile-menu-trigger:hover,.profile-menu-trigger[aria-expanded="true"]{ background:var(--slot); color:var(--ink); }
.profile-menu-trigger:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.profile-menu{
  position:fixed; z-index:1210; width:min(264px,calc(100vw - 20px));
  max-height:calc(100dvh - 70px); overflow:auto; box-sizing:border-box;
  padding:10px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--ink); box-shadow:var(--shadow-lg);
  font:500 13px/1.4 var(--font); overscroll-behavior:contain;
}
.profile-menu[hidden],.profile-menu [hidden]{ display:none!important; }
.profile-menu__auth{ display:flex; gap:8px; padding:2px 2px 10px; }
.profile-menu__auth button{ flex:1; padding:8px 10px; border-radius:8px; background:var(--slot); color:var(--ink); font-weight:600; }
.profile-menu__auth button:first-child{ background:var(--accent); color:var(--on-accent,#fff); }
.profile-menu__account{ display:flex; align-items:center; gap:8px; padding:2px 2px 10px; }
.profile-menu__account-button{ display:grid; gap:3px; min-width:0; flex:1; text-align:left; }
.profile-menu__account-button span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; }
.profile-menu__account-button small{ color:var(--dim); font-size:11px; }
.profile-menu__signout{ padding:6px 8px; border-radius:7px; color:var(--dim); font-size:12px; }
.profile-menu #workspaceUtilityBar{ position:static; display:block; height:auto; min-height:0; padding:0; border:0; background:transparent; }
.profile-menu__main,.profile-menu__tool-list{ display:grid; gap:2px; }
.profile-menu .watchbar__chip{
  justify-content:flex-start; width:100%; height:38px; padding:0 10px; margin:0!important;
  gap:10px; border:0; border-radius:8px; background:transparent; box-shadow:none!important;
  color:var(--dim); font:500 13px/1.3 var(--font); text-align:left; transition:background .15s,color .15s;
}
.profile-menu .watchbar__chip:hover,.profile-menu button:focus-visible{ background:var(--slot); color:var(--ink); }
.profile-menu button:focus-visible,.profile-menu summary:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.profile-menu .watchbar__about{ animation:none; }
.profile-menu .watchbar__about::after{ content:none; }
.profile-menu__value{ margin-left:auto; color:var(--faint); font-size:12px; }
.profile-menu__tools{ margin-top:6px; }
.profile-menu__tools summary{ padding:8px 10px; cursor:pointer; color:var(--faint); font-size:12px; }
.profile-menu #watchbarDeck{ display:contents; }
.profile-menu .watchbar__badge{ position:static; margin-left:auto; flex:0 0 auto; }
.profile-menu #watchbarCrew{ max-width:100%; overflow:auto; }
.profile-menu__status{ margin:8px 4px 0; color:var(--danger); font-size:12px; }
/* Public legal pages, reachable from every page for guests and members. */
.profile-menu__legal{
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:8px 0 0; padding:8px 10px 2px;
  border-top:1px solid var(--line); color:var(--faint); font-size:12px;
}
.profile-menu__legal a{ color:var(--dim); text-decoration:underline; text-underline-offset:2px; }
.profile-menu__legal a:hover{ color:var(--ink); }
.profile-menu__legal a:focus-visible{ outline:2px solid var(--accent-ink); outline-offset:2px; border-radius:3px; }
#watchbarUtilityPopover,#watchbarCalendarPopover{ z-index:1220; }

.profile-menu-trigger__label{ white-space:nowrap; font:500 12px/1 var(--font); color:var(--text); }
.load-view__signin.profile-menu-trigger[data-signed-in],#workspaceAuth.profile-menu-trigger[data-signed-in]{ width:32px; padding:0; }
