/* Upload headers retain the original native inputs and their validation. */
body .action-upload-fields.workspace-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
body .action-upload-fields.workspace-upload-grid[hidden] { display: none !important; }
body .workspace-upload-column { min-width: 0; display: grid; gap: 12px; align-content: start; }
body label.workspace-upload-button,
body .action-upload-fields label.workspace-upload-button,
.workspace.workspace-admin :is(#calendar-event-form, #admin-post-form) label.upload-field.workspace-upload-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  justify-self: stretch;
  flex-direction: row;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #35313c;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
body label.workspace-upload-button .workspace-upload-title { margin: 0; line-height: 20px; }
body label.workspace-upload-button .workspace-upload-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid #e8d9df;
  border-radius: 50%;
  background: #fff;
  color: #d00035;
  transition: background-color .15s, border-color .15s;
}
body label.workspace-upload-button:hover .workspace-upload-add { background: #fff0f4; border-color: #e40038; }
body label.workspace-upload-button:focus-within .workspace-upload-add { outline: 2px solid #e40038; outline-offset: 3px; }
body label.workspace-upload-button:has(input:disabled) { opacity: .5; cursor: wait; }
body label.workspace-upload-button .workspace-upload-add > svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body label.workspace-upload-button > [hidden] { display: none !important; }
body input[type="file"].workspace-upload-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body .workspace-upload-column > .admin-post-image-preview,
body .workspace-upload-column > .admin-action-file-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; width: 100%; margin: 0; }
body .workspace-upload-column > :empty { display: none; }
body .workspace-upload-column .admin-post-image { width: 100%; max-width: 220px; min-width: 0; }
body .workspace-upload-column .admin-action-file { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  body .action-upload-fields.workspace-upload-grid { gap: 14px; }
  body label.workspace-upload-button { font-size: 13px; }
}
