@scope (#nyan-ops-app) {
  .staff-account-menu {
    position: relative;
    min-width: 230px;
  }
  .staff-account-menu[hidden] {
    display: none;
  }
  .staff-account-menu summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px 6px 7px;
    border: 1px solid #dedbe7;
    border-radius: 14px;
    background: #fbfafe;
    cursor: pointer;
    list-style: none;
    transition:
      border-color 140ms ease,
      background 140ms ease,
      box-shadow 140ms ease;
  }
  .staff-account-menu summary::-webkit-details-marker {
    display: none;
  }
  .staff-account-menu summary:hover,
  .staff-account-menu[open] summary {
    border-color: #c9c4d7;
    background: #fff;
    box-shadow: 0 7px 22px rgba(35, 28, 61, 0.08);
  }
  .staff-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: #a94328;
    background: #f6e9e5;
    font-size: 11px;
    font-weight: 850;
  }
  .staff-identity-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
  }
  .staff-identity-copy small {
    color: #858096;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  .staff-identity-copy strong {
    overflow: hidden;
    color: #19162c;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .staff-identity-copy > span {
    overflow: hidden;
    color: #706b82;
    font-size: 9px;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
  }
  .account-chevron {
    color: #858096;
    font-size: 14px;
    transition: transform 140ms ease;
  }
  .staff-account-menu[open] .account-chevron {
    transform: rotate(180deg);
  }
  .account-popover {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 70;
    display: grid;
    width: 270px;
    gap: 6px;
    padding: 9px;
    border: 1px solid #dedbe7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(35, 28, 61, 0.16);
  }
  .account-session {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 10px;
    background: #f5faf8;
  }
  .session-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #23785c;
    background: #dff2eb;
    font-size: 11px;
    font-weight: 900;
  }
  .account-session > span:last-child {
    display: grid;
    gap: 2px;
  }
  .account-session strong {
    color: #28233b;
    font-size: 10px;
  }
  .account-session small {
    color: #767185;
    font-size: 9px;
  }
  :where(.account-action) {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    color: #4c4760;
    background: transparent;
    box-shadow: none;
    font-size: 10px;
    text-align: left;
  }
  :where(.account-action):hover {
    color: #272239;
    background: #f6f4fa;
    transform: none;
  }
  .account-sign-out {
    border-top: 1px solid #ece9f1;
    border-radius: 0 0 10px 10px;
    color: #a94328;
  }
  @media (max-width: 760px) {
    .staff-account-menu {
      min-width: auto;
    }
    .staff-account-menu summary {
      min-height: 44px;
      padding: 5px;
    }
    .staff-identity-copy,
    .account-chevron {
      display: none;
    }
    .staff-avatar {
      width: 34px;
      height: 34px;
    }
    .account-popover {
      position: fixed;
      top: 68px;
      right: 12px;
      width: min(280px, calc(100vw - 24px));
    }
  }
}
