@charset "UTF-8";
.ms-global-search-results {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline: 0;
  z-index: 10;
  width: 100%;
  min-width: 22rem;
  max-height: min(30rem, 100vh - 5.5rem);
  max-height: min(30rem, 100dvh - 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-xl);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow-dropdown);
  animation: ms-global-search-in 0.16s ease-out;
}
.ms-global-search-results[hidden] {
  display: none;
}

.ms-global-search-group {
  padding: 0.2rem 0;
}
.ms-global-search-group + .ms-global-search-group {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--ms-border) 75%, transparent);
}

.ms-global-search-category {
  padding: 0.35rem 0.65rem 0.4rem;
  color: var(--ms-text-muted);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: calc(0.08em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}

.ms-global-search-option {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--ms-radius-lg);
  color: var(--ms-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.ms-global-search-option:hover, .ms-global-search-option.is-active {
  background: color-mix(in srgb, var(--ms-match-colour, var(--ms-primary)) 12%, var(--ms-surface));
  color: var(--ms-text);
}
.ms-global-search-option.is-active {
  outline: 1px solid color-mix(in srgb, var(--ms-primary) 30%, transparent);
  outline-offset: -1px;
}

.ms-global-search-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--ms-primary) 9%, var(--ms-surface));
  color: var(--ms-primary);
  font-size: 19px;
}

.ms-global-search-option-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ms-global-search-option-parent {
  overflow: hidden;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.ms-global-search-option-separator {
  flex: 0 0 auto;
  margin-inline: 0.42rem;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
}

.ms-global-search-option-label {
  overflow: hidden;
  color: var(--ms-text);
  font-size: 0.84rem;
  font-weight: 400;
  text-overflow: ellipsis;
}

.ms-global-search-option-kind {
  flex: 0 0 auto;
  margin-left: 0.55rem;
  padding: 0.18rem 0.42rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-surface));
  color: var(--ms-primary);
  font-size: 0.56rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: calc(0.035em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}

.ms-global-search-option-arrow {
  color: var(--ms-text-muted);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-0.2rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ms-global-search-option:hover .ms-global-search-option-arrow,
.ms-global-search-option.is-active .ms-global-search-option-arrow {
  color: var(--ms-primary);
  opacity: 1;
  transform: translateX(0);
}

.ms-global-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 5rem;
  padding: 1rem;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.ms-global-search-empty-icon {
  flex: 0 0 auto;
  font-size: 21px;
}

@keyframes ms-global-search-in {
  from {
    opacity: 0;
    transform: translateY(-0.3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767.98px) {
  .ms-global-search-results {
    min-width: 0;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
  }
  .ms-global-search-option {
    min-height: 3.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-global-search-results {
    animation: none;
  }
  .ms-global-search-option,
  .ms-global-search-option-arrow {
    transition: none;
  }
}
.ms-global-search-option--document {
  align-items: flex-start;
}
.ms-global-search-option--document .ms-global-search-option-icon {
  margin-top: 0.15rem;
}

.ms-global-search-option-where {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.6875rem;
  margin-top: 0.05rem;
}

.ms-global-search-option-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.2rem;
  color: var(--ms-text);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.85;
}

.ms-global-search-option {
  position: relative;
  padding-inline-start: 1.25rem;
}

.ms-global-search-option[data-match]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.4rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 5px;
  border-radius: var(--ms-radius-pill);
  background: var(--ms-match-colour, transparent);
}

.ms-global-search-option[data-match=exact] {
  --ms-match-colour: var(--ms-success);
}

.ms-global-search-option[data-match=strong] {
  --ms-match-colour: var(--ms-warning);
}

.ms-global-search-option[data-match=partial] {
  --ms-match-colour: color-mix(in srgb, var(--ms-text-muted) 60%, var(--ms-surface));
}

.ms-global-search-option {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
}

.ms-global-search-option-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.ms-global-search-option:hover .ms-global-search-option-actions,
.ms-global-search-option.is-active .ms-global-search-option-actions {
  display: inline-flex;
}
.ms-global-search-option:hover .ms-global-search-option-arrow,
.ms-global-search-option.is-active .ms-global-search-option-arrow {
  display: none;
}

.ms-global-search-action {
  padding: 0.25rem 0.6rem;
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-border);
  background: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.ms-global-search-action--primary {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
  background: var(--ms-surface);
  color: var(--ms-primary);
}

.ms-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 4rem;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 1.5rem;
  background: color-mix(in srgb, var(--ms-surface) 94%, transparent);
  border-bottom: 1px solid var(--ms-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}

.ms-topbar-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 3.75rem;
  min-height: 4rem;
  border: none;
  background: transparent;
  color: var(--ms-text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 30px;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.ms-topbar-burger:hover {
  color: var(--ms-primary);
  background: var(--ms-bg);
}
.ms-topbar-burger:focus-visible {
  outline: 2px solid var(--ms-input-focus);
  outline-offset: -2px;
}
.ms-topbar-burger > .material-symbols-outlined {
  font-size: 23px;
}

.ms-topbar-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ms-text);
  text-decoration: none;
  white-space: nowrap;
}
.ms-topbar-brand:hover {
  color: var(--ms-primary);
}

.ms-topbar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--ms-sidebarLogoBg);
}
.ms-topbar-brand-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.ms-topbar-brand-name {
  display: block;
  color: var(--ms-text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: calc(-0.02em + var(--ms-a11y-letter-add, 0em));
}

.ms-topbar-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ms-topbar-brand-tenant {
  display: block;
  max-width: clamp(8rem, 18vw, 16rem);
  margin-top: 0.16rem;
  color: var(--ms-text-muted);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-topbar-center {
  position: relative;
  justify-self: center;
  width: clamp(16rem, 22vw, 22rem);
  min-width: 0;
  max-width: 100%;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 100%;
}
.ms-topbar-center:focus-within, .ms-topbar-center.is-open {
  width: clamp(20rem, 40vw, 40rem);
}

.ms-topbar-search {
  position: relative;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ms-border) 80%, transparent);
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-text-muted) 14%, var(--ms-surface));
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.ms-topbar-search > .material-symbols-outlined {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--ms-text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}
.ms-topbar-search input {
  width: 100%;
  height: 2.65rem;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  padding: 0 3rem 0 2.85rem;
  font-size: 0.88rem;
  color: var(--ms-text);
}
.ms-topbar-search input::placeholder {
  color: var(--ms-input-placeholder);
}
.ms-topbar-search input::-webkit-search-cancel-button {
  appearance: none;
}

.ms-topbar-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.ms-topbar-search-clear[hidden] {
  display: none;
}
.ms-topbar-search-clear:hover {
  background: color-mix(in srgb, var(--ms-text-muted) 14%, transparent);
  color: var(--ms-text);
}
.ms-topbar-search-clear:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-topbar-search-clear:focus-visible {
  outline: 2px solid var(--ms-input-focus);
  outline-offset: 1px;
}
.ms-topbar-search-clear .material-symbols-outlined {
  font-size: 18px;
}

.ms-topbar-center:focus-within .ms-topbar-search,
.ms-topbar-center.is-open .ms-topbar-search {
  border-color: var(--ms-primaryColor);
  transform: translateY(-1px);
}
.ms-topbar-center:focus-within .ms-topbar-search > .material-symbols-outlined,
.ms-topbar-center.is-open .ms-topbar-search > .material-symbols-outlined {
  color: var(--ms-primary);
}

.ms-topbar-actions {
  --ms-topbar-hover-bg: color-mix(in srgb, var(--ms-text-muted) 14%, var(--ms-surface));
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

#ms-content .js-helpbox {
  display: none;
}

.ms-topbar-help {
  display: inline-flex;
  align-items: center;
}
.ms-topbar-help:empty {
  display: none;
}

.ms-topbar-panel {
  display: inline-flex;
  align-items: center;
}

.ms-topbar-panel__menu {
  width: min(24rem, 100vw - 2rem);
  padding: 1rem;
  white-space: normal;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  box-shadow: var(--ms-shadow-dropdown);
}
.ms-topbar-panel__menu .ms-topbar-panel__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.ms-topbar-panel__menu .ms-topbar-panel__title {
  display: block;
  margin: 0;
  color: var(--ms-text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
}
.ms-topbar-panel__menu .ms-topbar-panel__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: var(--ms-radius-sm);
  background: color-mix(in srgb, var(--ms-primary) 14%, transparent);
  color: var(--ms-primary);
  font-size: 1.3rem;
}
.ms-topbar-panel__menu .ms-topbar-panel__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.ms-topbar-panel__menu .ms-topbar-panel__sub {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}
.ms-topbar-panel__menu .ms-topbar-panel__action {
  flex: 0 0 auto;
}
.ms-topbar-panel__menu .helpbox-section + .helpbox-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ms-border);
}
.ms-topbar-panel__menu .helpbox-section__title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  color: var(--ms-text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: calc(0.05em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}
.ms-topbar-panel__menu .helpbox-section__title .material-symbols-outlined {
  font-size: 1rem;
}
.ms-topbar-panel__menu .helpbox-explanation {
  color: var(--ms-text);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ms-topbar-panel__menu .helpbox-explanation > :last-child {
  margin-bottom: 0;
}
.ms-topbar-panel__menu .helpbox-explanation p {
  margin-bottom: 0.5rem;
}
.ms-topbar-panel__menu .helpbox-explanation ul, .ms-topbar-panel__menu .helpbox-explanation ol {
  margin-bottom: 0.5rem;
  padding-left: 1.1rem;
}
.ms-topbar-panel__menu .helpbox-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--ms-border) 90%, transparent);
  border-radius: var(--ms-radius-sm);
  color: var(--ms-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.ms-topbar-panel__menu .helpbox-empty .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--ms-text-muted);
}
.ms-topbar-panel__menu .helpbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-topbar-panel__menu .helpbox-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: var(--ms-radius-sm);
  background: none;
  color: var(--ms-text);
  font-size: 0.82rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ms-topbar-panel__menu .helpbox-item:hover, .ms-topbar-panel__menu .helpbox-item:focus-visible {
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  color: var(--ms-primary);
}
.ms-topbar-panel__menu .helpbox-item__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: var(--ms-radius-sm);
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
  color: var(--ms-primary);
  transition: background-color 0.12s ease;
}
.ms-topbar-panel__menu .helpbox-item__tile .material-symbols-outlined {
  font-size: 1.1rem;
}
.ms-topbar-panel__menu .helpbox-item__tile--doc {
  background: color-mix(in srgb, var(--ms-orange) 14%, transparent);
  color: var(--ms-orange);
}
.ms-topbar-panel__menu .helpbox-item__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.ms-topbar-panel__menu .helpbox-item__label {
  display: block;
  overflow-wrap: anywhere;
}
.ms-topbar-panel__menu .helpbox-item__meta {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.68rem;
  line-height: 1.3;
}
.ms-topbar-panel__menu .helpbox-item__go {
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--ms-text-muted);
}
.ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile {
  background: color-mix(in srgb, var(--ms-primary) 20%, transparent);
}
.ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile--doc {
  background: color-mix(in srgb, var(--ms-orange) 22%, transparent);
}
.ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__meta {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .ms-topbar-panel__menu .helpbox-item {
    transition: none;
  }
}
.ms-topbar-panel__menu .js-helpbox-video {
  text-align: left;
}

.helpbox-video-modal .modal-dialog {
  width: calc(100vw - 3rem);
  max-width: 72rem;
}
.helpbox-video-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--ms-radius-lg);
  background: #1a1a1a;
}
.helpbox-video-modal .modal-header {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #333;
  background: #1a1a1a;
}
.helpbox-video-modal .modal-title {
  color: var(--ms-neutralWhite);
}
.helpbox-video-modal .modal-body {
  position: relative;
}
.helpbox-video-modal__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--ms-surface);
  text-align: center;
}
.helpbox-video-modal__error > .material-symbols-outlined {
  color: var(--ms-warning);
  font-size: 48px;
}

.ms-topbar-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 4.3rem;
  min-height: 3.35rem;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: var(--ms-radius-lg);
  background: transparent;
  color: var(--ms-text-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.ms-topbar-action:hover {
  background: var(--ms-topbar-hover-bg);
}
.ms-topbar-action:active {
  transform: scale(0.9);
}
.ms-topbar-action:focus-visible {
  outline: 2px solid var(--ms-input-focus);
  outline-offset: 2px;
}

.ms-topbar-action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
}
.ms-topbar-action-icon > .material-symbols-outlined {
  font-size: 23px;
}

.ms-topbar-action-label {
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: calc(0.01em + var(--ms-a11y-letter-add, 0em));
}

.ms-topbar-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
}
.ms-topbar-badge:empty {
  display: none;
}

.ms-topbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: var(--ms-radius-pill);
  box-shadow: 0 0 0 2px var(--ms-surface);
  background: var(--ms-danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ms-topbar-separator {
  width: 1px;
  height: 2.6rem;
  margin: 0 0.2rem;
  background: var(--ms-border);
}

.ms-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.25rem 0.2rem 0.25rem 0.35rem;
  border: 0;
  border-radius: var(--ms-radius-lg);
  background: transparent;
  color: var(--ms-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.ms-topbar-user:active {
  transform: scale(0.9);
}
.ms-topbar-user:focus-visible {
  outline: 2px solid var(--ms-input-focus);
  outline-offset: 2px;
}

.ms-topbar-profile-menu {
  min-width: 11.5rem;
  padding: 0.35rem;
}
.ms-topbar-profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--ms-radius-sm);
  font-size: 0.78rem;
  transition: background 0.18s ease, transform 0.12s ease;
}
.ms-topbar-profile-menu .dropdown-item:hover, .ms-topbar-profile-menu .dropdown-item:focus, .ms-topbar-profile-menu .dropdown-item:active {
  background: var(--ms-topbar-hover-bg);
  color: inherit;
}
.ms-topbar-profile-menu .dropdown-item:active {
  transform: scale(0.9);
}
.ms-topbar-profile-menu .material-symbols-outlined {
  width: 1.1rem;
  flex: 0 0 1.1rem;
  font-size: 1.05rem;
}
.ms-topbar-profile-menu .dropdown-divider {
  margin: 0.3rem 0;
}

.ms-topbar-user-meta {
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.ms-topbar-user-name {
  max-width: 10rem;
  color: var(--ms-text);
  font-size: 0.78rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-topbar-user-role {
  max-width: 10rem;
  color: var(--ms-text-muted);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-neutralWhite);
  font-size: 0.78rem;
  font-weight: 500;
}

.ms-topbar-avatar-image,
.ms-topbar-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ms-topbar-avatar-image {
  display: block;
  border: 1px solid color-mix(in srgb, var(--ms-primary) 24%, var(--ms-border));
  object-fit: cover;
  object-position: center;
}

.ms-topbar-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ms-orange);
  /* .ms-topbar-avatar (above) sets white ink for the whole avatar slot — right for the image
     fallback icon, but white-on-orange here measured 2.62:1 in an axe-core sweep, well under the
     4.5:1 WCAG 1.4.3 floor. Dark ink is what actually passes against this specific background. */
  color: #191c1e;
}

@media (min-width: 992px) and (max-width: 1919.98px) {
  .ms-topbar-action {
    min-width: 2.6rem;
    padding: 0.3rem;
  }
  .ms-topbar-action-label {
    display: none;
  }
  .ms-topbar-user-meta {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .ms-topbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0 1rem;
  }
  .ms-topbar-burger {
    align-self: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.25rem;
    border-radius: var(--ms-radius-pill);
  }
  .ms-topbar-burger > .material-symbols-outlined {
    font-size: 22px;
  }
  .ms-topbar-center,
  .ms-topbar-center:focus-within,
  .ms-topbar-center.is-open {
    justify-self: stretch;
    width: 100%;
  }
  .ms-topbar-user-meta {
    display: none !important;
  }
  .ms-topbar-brand-tenant {
    max-width: 8.5rem;
  }
}
@media (max-width: 767.98px) {
  .ms-topbar {
    min-height: 4rem;
    gap: 0.45rem;
    padding: 0 0.7rem;
  }
  .ms-topbar-center:focus-within,
  .ms-topbar-center.is-open {
    position: absolute;
    z-index: 4;
    top: 50%;
    inset-inline: 0.7rem;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
  }
  .ms-topbar-brand {
    gap: 0.45rem;
  }
  .ms-topbar-brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.7rem;
  }
  .ms-topbar-brand-name {
    font-size: 0.82rem;
  }
  .ms-topbar-brand-tenant {
    max-width: 6.5rem;
    font-size: 0.6rem;
  }
  .ms-topbar-search input {
    height: 2.35rem;
    padding-left: 2.4rem;
  }
  .ms-topbar-search > .material-symbols-outlined {
    left: 0.8rem;
    font-size: 18px;
  }
  .ms-topbar-actions {
    gap: 0.2rem;
  }
  .ms-topbar-action {
    min-width: 2.35rem;
    min-height: 2.45rem;
    padding: 0.2rem;
  }
  .ms-topbar-action-label {
    display: none;
  }
  .ms-topbar-separator {
    height: 2rem;
    margin-inline: 0.15rem;
  }
  .ms-topbar-avatar {
    width: 2.25rem;
    height: 2.25rem;
  }
}
@media (max-width: 575.98px) {
  .ms-topbar {
    gap: 0.3rem;
    padding-inline: 0.45rem;
  }
  .ms-topbar-center:focus-within,
  .ms-topbar-center.is-open {
    inset-inline: 0.45rem;
  }
  .ms-topbar-brand-copy {
    display: none;
  }
  .ms-topbar-search input {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-topbar-center,
  .ms-topbar-search,
  .ms-topbar-action {
    transition: none;
  }
}
[data-bs-theme=dark] .ms-topbar,
html.dark .ms-topbar {
  background: var(--ms-chromeBgDark);
}

[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-empty,
html.dark .ms-topbar-panel__menu .helpbox-empty {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-section + .helpbox-section,
html.dark .ms-topbar-panel__menu .helpbox-section + .helpbox-section {
  border-top-color: color-mix(in srgb, #ffffff 8%, transparent);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .ms-topbar-panel__mark,
html.dark .ms-topbar-panel__menu .ms-topbar-panel__mark {
  background: color-mix(in srgb, var(--ms-primary) 22%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 70%, #ffffff);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item:hover, [data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item:focus-visible,
html.dark .ms-topbar-panel__menu .helpbox-item:hover,
html.dark .ms-topbar-panel__menu .helpbox-item:focus-visible {
  background: color-mix(in srgb, #ffffff 7%, transparent);
  color: var(--ms-text);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item__tile,
html.dark .ms-topbar-panel__menu .helpbox-item__tile {
  background: color-mix(in srgb, var(--ms-primary) 20%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 70%, #ffffff);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item__tile--doc,
html.dark .ms-topbar-panel__menu .helpbox-item__tile--doc {
  background: color-mix(in srgb, var(--ms-orange) 20%, transparent);
  color: color-mix(in srgb, var(--ms-orange) 75%, #ffffff);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile,
html.dark .ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile {
  background: color-mix(in srgb, var(--ms-primary) 30%, transparent);
}
[data-bs-theme=dark] .ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile--doc,
html.dark .ms-topbar-panel__menu .helpbox-item:hover .helpbox-item__tile--doc {
  background: color-mix(in srgb, var(--ms-orange) 30%, transparent);
}

/* The search field is 2.35rem tall on a narrow topbar — 37.6px, under the 44px a finger needs
   (WCAG 2.5.5). It is a typing target, so unlike the switches it cannot grow an invisible overlay:
   tapping it has to land the caret, and the caret goes where the box is. The box grows instead, and
   the icon beside it keeps its own vertical centring. Phones only; the desktop bar is unchanged. */
@media (max-width: 767.98px) {
  .ms-topbar-search input {
    height: 44px;
  }
}
.ms-panel-scrim {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: color-mix(in srgb, var(--ms-bg) 25%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

html.ms-panel-open .ms-panel-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0s;
}
html.ms-panel-open .ms-topbar {
  z-index: 31;
}

@media (prefers-reduced-motion: reduce) {
  .ms-panel-scrim,
  html.ms-panel-open .ms-panel-scrim {
    transition: none;
  }
}
.ms-topbar-panel__menu.agenda-menu {
  width: min(46rem, 100vw - 2rem);
  padding: 1.25rem 1.5rem 1.5rem;
}
.ms-topbar-panel__menu.agenda-menu .ms-topbar-panel__head {
  margin-bottom: 1.1rem;
}
.ms-topbar-panel__menu.agenda-menu .cal-tools {
  padding-bottom: 1rem;
}

.ms-topbar-panel__body {
  max-height: calc(100dvh - 13rem);
  overflow-y: auto;
}

.agenda .cal.cal--embedded {
  padding: 0;
  border: 0;
  background: none;
}
.agenda .cal-month--static,
.agenda .cal-year--static {
  cursor: default;
}
.agenda .cal-month--static:hover,
.agenda .cal-year--static:hover {
  background: none;
}
.agenda .cal-year--static {
  width: auto;
}

.agenda-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--ms-border);
  list-style: none;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
}
.agenda-key__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.agenda .cal--embedded .cal-week {
  --cal-num-row: 1.75rem;
  --cal-lane-row: 1.35rem;
  min-height: calc(var(--cal-num-row) + 2 * var(--cal-lane-row) + var(--cal-foot-row));
}
