@layer components {
.dt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  font-family: var(--dt-font-family);
}

.dt-modal--open {
  display: block;
}

.dt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 45%, transparent);
}

.dt-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(92vw, 32rem);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--dt-color-surface);
  color: var(--dt-color-on-surface);
  border-radius: var(--dt-radius-lg);
  box-shadow: var(--dt-elevation-card);
  padding: var(--dt-space-6);
}

.dt-modal__dialog:focus {
  outline: 0;
}

.dt-modal__dialog--sm {
  width: min(92vw, 24rem);
}

.dt-modal__dialog--lg {
  width: min(92vw, 48rem);
}

.dt-modal__dialog--full {
  width: 92vw;
  max-height: 92vh;
}

.dt-modal__close {
  position: absolute;
  top: var(--dt-space-3);
  right: var(--dt-space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--dt-icon-size);
  height: var(--dt-icon-size);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--dt-color-on-surface-muted);
  font-size: var(--dt-icon-size);
  line-height: 1;
}

.dt-modal__close:hover {
  color: var(--dt-color-on-surface);
}

.dt-modal__title {
  margin: 0 var(--dt-space-6) var(--dt-space-4) 0;
  font-size: var(--dt-typography-desktop-h4);
  font-weight: var(--dt-font-weight-semibold);
  line-height: var(--dt-typography-line-height-heading);
}

.dt-modal__body {
  font-size: var(--dt-typography-desktop-body-2);
  line-height: var(--dt-typography-line-height-body);
}

.dt-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--dt-space-3);
  margin-top: var(--dt-space-6);
}

}
