.rc-context-switcher,
.rc-context-switcher * {
  box-sizing: border-box;
  letter-spacing: 0;
}

/* The workspace menu occupies the right edge, with no top-bar offset. */
.rc-workspace-drawer-wrap { position: fixed; top: 0; right: 0; left: auto; width: 0; height: 0; margin: 0; z-index: 10050; }
body:has(.rc-workspace-drawer-wrap) .rc-context-switcher:not(.rc-context-switcher--global) { display: none !important; }

.rc-context-switcher {
  display: flex;
  min-height: 38px;
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-right: max(18px, calc((100% - 1608px) / 2 + 18px)) !important;
  padding-bottom: 0;
  padding-left: max(18px, calc((100% - 1608px) / 2 + 18px)) !important;
  gap: 12px;
  align-items: center;
  border-radius: 0;
  background: #0d0f12;
  color: #fff;
  box-shadow: none;
}

.rc-context-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.rc-context-brand span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .25);
}

.rc-context-active {
  display: flex;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  flex-direction: column;
  line-height: 1;
}

.rc-context-active small {
  display: none;
}

.rc-context-active strong {
  max-width: 210px;
  overflow: hidden;
  color: #d7dadf;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-context-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rc-context-select-wrap::after {
  position: absolute;
  right: 10px;
  color: #fff;
  content: "▾";
  font-size: 12px;
  pointer-events: none;
}

.rc-context-select-wrap select {
  width: 210px;
  height: 26px;
  padding: 0 30px 0 10px;
  border: 1px solid #32363e;
  border-radius: 8px;
  appearance: none;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.rc-context-segments {
  display: flex;
  margin-left: auto;
  padding: 2px;
  gap: 2px;
  border-radius: 9px;
  background: #1a1d22;
}

.rc-context-segments a {
  display: flex;
  min-width: 120px;
  width: auto;
  min-height: 28px;
  padding: 0 10px;
  gap: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #d7dadf !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.rc-context-segments a:hover {
  background: #23262c;
  color: #fff !important;
}

.rc-context-segments a.active {
  background: #fff;
  color: #0d0f12 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.rc-context-segments b {
  display: none;
  min-width: 0;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.rc-context-segments a.active b {
  background: #0d0f12;
  color: #fff;
}

.rc-context-segments span {
  display: block;
  min-width: 0;
  line-height: 1;
}

.rc-context-segments strong,
.rc-context-segments small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-context-segments strong {
  display: block;
  font-size: 12px;
  line-height: 1;
}

.rc-context-segments small {
  display: none;
}

.rc-context-segments em {
  display: grid;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0 6px;
  place-items: center;
  border-radius: 9px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.rc-context-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid #2a2e35;
  border-radius: 50%;
  background: #2a2e35;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}

button.rc-context-avatar {
  cursor: pointer;
}

.rc-staff-profile-panel {
  position: relative;
  flex-shrink: 0;
}

.rc-staff-profile-search {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10080;
  width: 310px;
  padding: 10px;
  border: 1px solid #2a2e35;
  border-radius: 12px;
  background: #111419;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.rc-staff-profile-search input {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #32363e;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.rc-staff-profile-results {
  display: grid;
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
  gap: 4px;
}

.rc-staff-profile-results a {
  display: flex;
  min-width: 0;
  padding: 8px;
  gap: 9px;
  align-items: center;
  border-radius: 9px;
  color: #fff !important;
  text-decoration: none !important;
}

.rc-staff-profile-results a:hover {
  background: #23262c;
}

.rc-staff-profile-results img,
.rc-staff-profile-results b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2a2e35;
  font-size: 11px;
}

.rc-staff-profile-results img {
  display: block;
  object-fit: cover;
}

.rc-staff-profile-results span {
  display: grid;
  min-width: 0;
}

.rc-staff-profile-results strong,
.rc-staff-profile-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-staff-profile-results strong {
  font-size: 13px;
}

.rc-staff-profile-results small,
.rc-staff-profile-empty {
  color: #aeb4bd;
  font-size: 11.5px;
}

.rc-staff-profile-empty {
  padding: 10px 8px;
}

@media (max-width: 900px) {

  .rc-context-switcher {
    gap: 10px;
    padding: 6px 10px;
    overflow-x: auto;
  }

  .rc-context-active {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }

  .rc-context-select-wrap select {
    width: 190px;
  }

  .rc-context-segments {
    margin-left: 0;
  }

  .rc-context-segments a {
    width: auto;
    padding: 0 10px;
  }

  .rc-context-segments span {
    display: none;
  }
}

/* Mirror the white retractable left-side panel on the right. */
.rc-context-drawer-toggle {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  width: 44px; min-height: 64px; padding: 0; border: 1px solid #e5e5e5;
  border-radius: 12px 0 0 12px; background: #fff; color: #111;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: 24px; cursor: pointer;
}
html body .rc-context-drawer .rc-context-switcher--global {
  position: fixed; top: 72px; right: 12px; bottom: 16px; left: auto;
  display: flex !important; flex-direction: column; align-items: stretch;
  width: min(320px, calc(100vw - 24px)); min-height: 0; height: auto;
  padding: 20px !important; gap: 20px; overflow: auto;
  background: #fff; color: #111; border: 1px solid #ddd; border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
}
html body .rc-context-drawer .rc-context-switcher--global[hidden] { display: none !important; }
.rc-context-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-context-drawer-heading strong { font-size: 16px; }
.rc-context-drawer-heading button { width: 36px; height: 36px; border: 0; background: #f5f5f5; color: #111; border-radius: 8px; font-size: 26px; cursor: pointer; }
.rc-context-drawer .rc-context-brand { color: #111 !important; }
.rc-context-drawer .rc-context-active { width: 100%; min-width: 0; max-width: none; gap: 8px; }
.rc-context-drawer .rc-context-active small { display: block; color: #687582; font-size: 12px; }
.rc-context-drawer .rc-context-active strong { max-width: none; white-space: normal; color: #111; }
.rc-context-drawer .rc-context-select-wrap, .rc-context-drawer .rc-context-select-wrap select { width: 100%; }
.rc-context-drawer .rc-context-select-wrap select { height: 42px; border-color: #ddd; }
.rc-context-drawer .rc-context-select-wrap::after { color: #111; }
.rc-context-drawer .rc-context-segments { flex-direction: column; margin: 0; padding: 0; gap: 8px; background: transparent; }
.rc-context-drawer .rc-context-segments a { justify-content: flex-start; min-height: 48px; padding: 12px; gap: 12px; white-space: normal; color: #111 !important; background: #f7f7f7; border: 1px solid #eee; }
.rc-context-drawer .rc-context-segments a:hover, .rc-context-drawer .rc-context-segments a.active { background: #eef1f5; color: #14204f !important; box-shadow: none; }
.rc-context-drawer .rc-context-segments span { display: block; line-height: 1.35; }
.rc-context-drawer .rc-context-segments strong { font-size: 14px; line-height: 1.35; white-space: normal; }
.rc-context-drawer .rc-context-segments small { display: block; color: #66717f; line-height: 1.35; font-size: 12px; }
.rc-context-drawer .rc-staff-profile-panel { display: block; }
.rc-context-drawer .rc-staff-profile-search { position: static; display: block; width: 100%; margin-top: 10px; background: #f8f8f8; border-color: #ddd; box-shadow: none; }
.rc-context-drawer .rc-staff-profile-search[hidden] { display: none !important; }
.rc-context-drawer .rc-staff-profile-results a { color: #111 !important; }
.rc-context-drawer .rc-staff-profile-results a:hover { background: #eee; }
.rc-context-drawer .rc-staff-profile-results small, .rc-context-drawer .rc-staff-profile-empty { color: #66717f; }
.rc-context-drawer :focus-visible { outline: 3px solid #3675cc; outline-offset: 3px; }
.rc-context-drawer.is-open .rc-context-drawer-toggle { visibility: hidden; }
@media(max-width:760px) { html body .rc-context-drawer .rc-context-switcher--global { top: 66px; bottom: 10px; padding: 16px !important; } }
