/* A reserved top-right column keeps each close control clear of long titles. */
.lms-dialog-header,
#classJoinDialog > .lms-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.lms-dialog-header > :first-child {
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-wrap: anywhere;
}
.lms-dialog-header > .lms-close-button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d5dce7;
  border-radius: 10px;
  background: #f5f7fa;
  color: #17273e;
  font: 400 1.75rem/1 Arial, sans-serif;
  cursor: pointer;
  justify-self: end;
}
.lms-close-button:hover:not(:disabled) {
  background: #e9edf4;
  border-color: #8997ad;
}
.lms-close-button:focus-visible {
  outline: 3px solid var(--gold, #ffba16);
  outline-offset: 3px;
}
.lms-close-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
