.ui-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.ui-control:focus {
  outline: none;
}

.ui-control:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.ui-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
}

.ui-dialog[hidden] {
  display: none;
}

.ui-dialog__card {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.ui-dialog__message {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
}

.ui-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ui-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}
