/* Urgent task controls and polished contributor account menu. */
.bw-urgent-create-control {
  align-items: flex-start;
  background: #fff8ef;
  border: 1px solid #f4d3b0;
  border-radius: 0.75rem;
  color: #50351f;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  line-height: 1.35;
  padding: 0.9rem 1rem;
}

.bw-urgent-create-control input {
  accent-color: #c66b1c;
  flex: 0 0 auto;
  height: 1rem;
  margin: 0.12rem 0 0;
  width: 1rem;
}

.bw-urgent-create-control span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bw-urgent-create-control strong {
  font-size: 0.9rem;
}

.bw-urgent-create-control small {
  color: #7c5739;
  font-size: 0.8rem;
}

.bw-admin-urgent-toggle {
  background: #fff8ef;
  border: 1px solid #f0c99f;
  border-radius: 0.5rem;
  color: #9a4d10;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-left: 0.35rem;
  padding: 0.42rem 0.58rem;
  white-space: nowrap;
}

.bw-admin-urgent-toggle:hover:not(:disabled) {
  background: #ffedd9;
  border-color: #e7aa6e;
}

.bw-admin-urgent-toggle.is-urgent {
  background: #fff1f0;
  border-color: #f2b9b3;
  color: #a33328;
}

.bw-admin-urgent-toggle:disabled {
  cursor: wait;
  opacity: 0.65;
}

.bw-admin-urgent-badge {
  background: #fff3e8;
  border: 1px solid #ffd7b3;
  border-radius: 999px;
  color: #a84a0d;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  vertical-align: middle;
  white-space: nowrap;
}

button[aria-label="Open freelancer profile menu"] {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d8e2e8 !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 2px 6px rgb(20 40 60 / 7%);
  gap: 0.55rem !important;
  min-height: 2.6rem;
  padding: 0.32rem 0.7rem 0.32rem 0.38rem !important;
}

button[aria-label="Open freelancer profile menu"]:hover {
  background: #f7fbfc !important;
  border-color: #8fcbd0 !important;
  box-shadow: 0 3px 9px rgb(20 40 60 / 10%);
}

button[aria-label="Open freelancer profile menu"] > span:first-child {
  background: linear-gradient(145deg, #dff4f5, #c7e8eb) !important;
  border: 1px solid #b7dde0;
  color: #087b85 !important;
  font-size: 0.78rem !important;
  height: 2rem !important;
  width: 2rem !important;
}

.bw-profile-menu-label {
  color: #344558;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.bw-professional-signout {
  border-radius: 0.55rem !important;
  font-weight: 600;
}

.bw-professional-signout:hover,
.bw-professional-signout:focus-visible {
  background: #fff1f0 !important;
}

@media (max-width: 640px) {
  .bw-admin-urgent-toggle {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    padding: 0.38rem 0.45rem;
  }
}
