html {
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}

#builder > h2 {
  margin-bottom: -8px;
}

input,
select,
textarea {
  font-weight: 400;
}

.admin-editor > label,
.admin-editor > .editor-field > .editor-label,
.profile-editor > label,
.membership-fields > legend,
.membership-fields > label,
#builder > h2,
.form-options > h2,
.linked-editor-section > h2 {
  color: #172033;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-editor > label > input,
.admin-editor > label > select,
.admin-editor > label > textarea,
.profile-editor > label > input,
.profile-editor > label > select,
.profile-editor > label > textarea,
.profile-editor > label > .birth-date-control,
.membership-fields > label > input {
  font-size: 16px;
  font-weight: 400;
}

.birth-date-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid #cbd2df;
  border-radius: 7px;
  background: #fff;
}

.birth-date-control .participant-birth-date {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.participant-age-display:not(:empty) {
  padding: 0 11px;
  border-left: 1px solid #e0e4ec;
  color: #748096;
  font-weight: 400;
  white-space: nowrap;
}

.participant-event-age-display {
  margin: .65rem 0 0;
}

.participant-event-age-display:empty {
  display: none;
}

#builder > #elements:not(:has(.builder-item)) {
  display: none;
}

#builder > #elements > .builder-item:last-child {
  margin-bottom: 0;
}

.sortable-item { cursor: grab; touch-action: none; }
.sortable-item.sortable-disabled { cursor: default; }
.sortable-drag-active,
.sortable-drag-active * { cursor: grabbing !important; user-select: none !important; }

.participant-repeat {
  margin-left: auto;
  margin-right: 9px;
  font-weight: 400;
}
.participant-repeat .form-limit-value {
  width: 72px;
  margin: 0;
  padding: 6px 9px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.admin-editor .builder-item .icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #cdd4e1;
  border-radius: 8px;
  background: #fff;
}

.admin-editor .builder-item .icon-button .ui-icon {
  width: 16px;
  height: 16px;
}

.admin-editor .builder-item .row-actions {
  gap: 9px;
}

.manual-input-toggle { color: #748096; }
.manual-input-toggle.active { color: #168e2c; }

.admin-dashboard table .event-forms-column { text-align: center; }

.timing-duration { width: 100%; }
.timing-duration-title { display: block; font-weight: 600; }
.timing-duration-fields {
  display: grid;
  grid-template-columns: 72px auto 72px auto;
  align-items: center;
  justify-content: start;
  gap: 9px;
  margin-top: 6px;
}
.timing-duration-fields label { min-width: 0; font-weight: 400; }
.timing-part-input { min-width: 0; margin: 0; }
.timing-unit { white-space: nowrap; }


.admin-dashboard .list-item.managed {
  flex-direction: row;
  align-items: center;
}

.admin-dashboard .list-item strong,
.admin-dashboard table td strong,
.event-form-row strong {
  font-weight: 400;
}

.admin-dashboard .list-item.managed > :first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-dashboard .list-item.managed > .row-actions,
.admin-dashboard table .row-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: max-content;
  margin-left: auto;
}

.admin-dashboard table td:last-child {
  white-space: nowrap;
}

.form-options > h2 {
  margin-bottom: 8px;
}

.form-limit-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  font-weight: 400;
}

.form-limit-option span {
  display: flex;
  gap: 9px;
  align-items: center;
}

.form-limit-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-limit-option .form-limit-value {
  width: 72px;
  margin: 0;
  padding: 6px 9px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

#builder > #elements:has(.builder-item) + #element-picker {
  margin-top: -8px;
}

#builder > #elements:not(:has(.builder-item)) + #element-picker {
  margin-top: 0;
}

.linked-editor-items:not(:empty) + .linked-list-picker {
  margin-top: 10px;
}

.event-form-row.builder-item {
  padding: 11px 13px;
  margin-bottom: 8px;
  border: 1px solid #dce1ea;
  background: #fafbfc;
}

.event-form-row.builder-item .choice {
  margin: 0;
}

.sortable-item.sortable-grabbed,
.sortable-item.sortable-dragged {
  border-color: #3157d5;
}

.editor-field {
  min-width: 0;
}

.editor-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.editor-field > .choice:first-of-type {
  margin-top: 0;
}

.admin-editor .choice {
  align-items: center;
}

.admin-editor .choice > input {
  margin-top: 0;
}

.editor-collection > .editor-label,
.linked-editor-section > h2 {
  margin-bottom: 10px;
}

.editor-field > :last-child {
  margin-bottom: 0;
}

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

.notice-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172033;
}

.notice-close:hover {
  background: #0000000d;
}

.notice-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.notice-close .tabler--x {
  width: 20px;
  height: 20px;
}

.notice.skipped {
  background: #eef0f4;
  color: #4f596b;
}

.submit-loader-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: wait;
}

.submit-loader-active .tabler--loader-2 {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  animation: submit-loader-spin 0.8s linear infinite;
}

@keyframes submit-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .submit-loader-active .tabler--loader-2 {
    animation-duration: 1.6s;
  }
}
