/* Live employee workspace */
.profile-photo-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.profile-photo-editor > div:last-child {
  flex: 1 1 180px;
  min-width: 0;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: #edf6e9;
  color: #064d22;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-preview { width: 96px; height: 96px; flex-basis: 96px; }
.profile-avatar-nav { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
.portal-nav .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-nav-actions, .profile-nav-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-nav-actions { justify-content: flex-end; }
#profile-edit.profile-nav-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
#profile-edit:focus-visible { outline: 2px solid #008000; outline-offset: 3px; }
.profile-nav-label { display: none; }
.profile-nav-status { flex-basis: 100%; max-width: 360px; font-size: 13px; overflow-wrap: anywhere; }
.profile-birthday-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
@media (max-width: 380px) {
  .profile-birthday-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .profile-birthday-fields > :last-child { grid-column: 1 / -1; }
}
.profile-email { overflow-wrap: anywhere; }
#profile-form input[type="file"] { width: 100%; min-width: 0; }

.staff-welcome {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(120deg, #064d22, #008000);
  color: white;
  margin: 28px 0 36px;
}

.staff-welcome h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.staff-welcome .eyebrow {
  color: #cbe7b6;
}

.staff-welcome p {
  color: #e0eed9;
}

.staff-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ffffff45;
  border-radius: 30px;
  font-size: 11px;
}

.staff-total {
  min-width: 210px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff12;
}

.staff-total span,
.staff-total small {
  display: block;
  font-size: 11px;
  color: #e0eed9;
}

.staff-total strong {
  display: block;
  font-size: 54px;
  line-height: 1.4;
}

.staff-toolbar {
  margin-bottom: 12px;
}

.staff-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 28px;
}

.staff-credit {
  background: white;
  border: 1px solid #dbe7dc;
  padding: 24px;
  border-radius: 20px;
}

.staff-credit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.staff-symbol {
  font-size: 27px;
  color: #008000;
  background: #edf6e9;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.staff-credit-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #637e68;
}

.staff-credit h3 {
  font-size: 16px;
  margin: 22px 0 12px;
}

.staff-credit-number {
  font-size: 38px;
  font-weight: 700;
  color: #123f27;
  margin: 0 0 16px;
  line-height: 1.25;
}

.staff-credit-number small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6b7d71;
  margin-top: 6px;
}

.staff-meter {
  height: 5px;
  background: #eaf0e6;
  border-radius: 5px;
  overflow: hidden;
}

.staff-meter span {
  display: block;
  height: 100%;
  background: #008000;
  border-radius: 5px;
}

.staff-credit-meta {
  font-size: 10px;
  color: #526e5b;
  margin-top: 15px;
}

.staff-credit .muted {
  font-size: 11px;
  line-height: 1.6;
}

.staff-credit.conditional {
  background: #f6f9f0;
  border-style: dashed;
}

.staff-next {
  border-left: 3px solid #008000;
  padding: 8px 20px;
  margin: 30px 0;
}

.staff-next h2 {
  font-size: 16px;
}

.staff-next p {
  font-size: 13px;
  color: #63796a;
}

@media (max-width: 900px) {
  .staff-credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .staff-welcome {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .staff-credits {
    grid-template-columns: 1fr;
  }

  .staff-total {
    min-width: 0;
  }

  .staff-total strong {
    font-size: 42px;
  }
}
