/* The credit keeps its original typography; only its underline is new. */
#xentikEmployeesButton {
  all: unset !important;
  display: inline !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
#xentikEmployeesButton:hover,
#xentikEmployeesButton:active,
#xentikEmployeesButton[aria-expanded="true"] {
  color: var(--text) !important;
  text-shadow: 0.25px 0 currentColor, -0.25px 0 currentColor !important;
  text-decoration-thickness: 2px !important;
}
#xentikEmployeesButton:focus-visible { outline: 2px solid var(--primary) !important; outline-offset: 4px !important; }
#employeeModal .employee-modal {
  width: min(680px, calc(100vw - 28px)) !important;
  height: min(650px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  border-radius: var(--ui-radius-surface, 42px) !important;
}
#employeeModal .employee-header { flex: 0 0 auto; }
#employeeModal .employee-panel { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; margin: 0; overflow: hidden; }
#employeeModal .hidden { display: none !important; }
#employeeModal .employee-list-heading { justify-content: space-between; flex: 0 0 auto; }
#employeeModal .employee-list-heading h3 { margin: 0; }
#employeeModal .employee-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
#employeeModal .employee-profile { flex: 1; min-width: 0; }
/* No employee skin, avatar size, padding, gap, radius or font override:
   all three screens use Messages' dm-inbox markup and shared styles. */
#employeeModal .employee-edit {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  line-height: 0;
}
#employeeModal .employee-edit .employee-edit-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#employeeModal .employee-description-label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
#employeeModal #employeeDescription {
  box-sizing: border-box; width: 100%; height: auto !important;
  min-height: 130px !important; max-height: 230px; padding: 14px 16px;
  border-radius: var(--ui-radius-field, 22px) !important; font-size: 16px; resize: vertical;
}
#employeeModal .employee-hint { margin: 8px 0; font-size: 12px; color: var(--secondary-text); }
#employeeModal .employee-editor-actions { display: flex; gap: 10px; padding: 12px 20px 16px; margin-top: auto; flex: 0 0 auto; }
#employeeModal .employee-editor-actions button { flex: 1; min-width: 0; min-height: 44px; }
#employeeModal #employeeRemove { flex: 0 0 auto; align-self: center; margin: 0 0 18px; min-height: 24px; }
#employeeModal .employee-retry { margin: 8px 20px; align-self: flex-start; min-height: 32px; }
#employeeModal button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 700px) {
  #employeeModal { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  #employeeModal .employee-modal {
    width: min(420px, calc(100vw - 20px)) !important;
    height: min(610px, calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    border-radius: var(--ui-radius-surface, 38px) !important;
  }
  #employeeModal .employee-list-heading { flex-wrap: wrap; gap: 8px; }
  #employeeModal #employeeNew { font-size: 12px; padding: 9px 13px; min-height: 40px; }
  #employeeModal .employee-edit {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  #employeeModal .employee-editor-actions { padding-inline: 16px; }
}
/* Use Delete Yap's existing confirmation surface. */
#employeeRemoveConfirm .delete-modal { opacity: 1; transform: none; }
#employeeRemoveConfirm #employeeRemoveStatus:empty { display: none; }
