.work-account-dialog {
  box-sizing: border-box;
  width: min(408px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 22px;
  border: 1px solid var(--semantic-border, #e4e7ef);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--text-primary, #18181b);
  box-shadow: 0 18px 52px rgba(24, 24, 39, .18);
}
.work-account-dialog::backdrop { background: rgba(26, 38, 61, .27); }
.work-account-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work-account-dialog h2 { margin: 0 0 4px; font-size: 20px; line-height: 28px; }
.work-account-dialog p { margin: 0; color: #656d7d; font-size: 13px; }
.work-account-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #656d7d;
  font-size: 24px;
  cursor: pointer;
}
.work-account-close:hover { background: #f0f3f9; }
.work-account-list { display: grid; gap: 7px; padding: 0; margin: 17px 0 14px; list-style: none; }
.work-account-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8ecf3;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.work-account-list button:hover { background: #f8faff; border-color: #bfcfff; }
.work-account-list button[aria-current] { background: #f1f6ff; border-color: #d8e5ff; cursor: default; }
.work-account-dialog button:focus-visible { outline: 2px solid #2c65e5; outline-offset: 2px; }
.work-account-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dce9ff;
  color: #255abb;
  font-size: 15px;
  font-weight: 650;
}
.work-account-mark[data-color="teal"] { background: #ddf1eb; color: #206b58; }
.work-account-mark[data-color="purple"] { background: #ede5ff; color: #6746ab; }
.work-account-label { flex: 1; min-width: 0; display: grid; gap: 3px; }
.work-account-label strong { font-size: 14px; }
.work-account-label small { color: #656d7d; font-size: 12px; }
.work-account-current { flex: none; color: #255abb; font-size: 12px; }
.work-account-chevron { color: #656d7d; font-size: 20px; }
.work-account-dialog .work-account-footnote { font-size: 12px; }
.work-account-feedback:not(:empty) {
  position: fixed;
  z-index: 500;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 15px;
  border: 1px solid #dce7f9;
  border-radius: 10px;
  background: #fff;
  color: #244a8d;
  box-shadow: 0 6px 20px rgba(24, 24, 39, .12);
  font-size: 13px;
  pointer-events: none;
}

#accountMenuButton #accountModeLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#productModeMenu > .work-account-menu-identity {
  height: auto;
  min-height: 34px;
  margin-bottom: 3px;
  border-bottom: 1px solid #edf0f5;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.work-account-dialog {
  position: fixed;
  inset: auto;
  z-index: 500;
  width: min(318px, calc(100% - 24px));
  margin: 0;
  padding: 13px;
  border-radius: 12px;
}
.work-account-dialog header { padding: 2px 3px 0; }
.work-account-dialog h2 { font-size: 16px; line-height: 24px; }
.work-account-dialog .work-account-list { gap: 5px; margin: 12px 0 8px; }
.work-account-list button { padding: 7px 9px; }
.work-account-dialog [hidden] { display: none; }
.work-account-more, .work-account-back {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #315a99;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.work-account-more { width: 100%; padding: 9px; }
.work-account-more span { margin-right: 8px; }
.work-account-more:hover, .work-account-back:hover { background: #f1f6ff; }
.work-account-login { display: grid; gap: 9px; margin-top: 14px; font-size: 13px; }
.work-account-login input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #d8e0ed; border-radius: 7px; font: inherit; }
.work-account-back { justify-self: start; padding: 7px; }
