/* Workflow corrections: visible file reset controls and export action hierarchy. */
.format-page[data-format-step="upload"] .upload-grid .card-title {
  display: none !important;
}

.format-page[data-format-step="upload"] .upload-grid .file-clear-button {
  position: absolute;
  z-index: 8;
  top: 13px;
  right: 14px;
  min-height: 29px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(72, 139, 98, .3);
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(248, 253, 250, .94);
  color: #2d6d4b;
  box-shadow: 0 8px 20px -16px rgba(25, 82, 48, .4);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition:
    color .35s cubic-bezier(.16, 1, .3, 1),
    border-color .35s cubic-bezier(.16, 1, .3, 1),
    background-color .35s cubic-bezier(.16, 1, .3, 1),
    transform .35s cubic-bezier(.16, 1, .3, 1);
}

.format-page[data-format-step="upload"] .upload-grid .file-clear-button[hidden] {
  display: none !important;
}

.format-page[data-format-step="upload"] .upload-grid .file-clear-button:hover {
  border-color: rgba(45, 125, 78, .52);
  background: #ffffff;
  color: #184f34;
  transform: translateY(-1px);
}

.format-page[data-format-step="upload"] .upload-grid .file-clear-button:active {
  transform: scale(.97);
}

.format-page[data-format-step="upload"] .upload-grid .file-clear-button:focus-visible {
  outline: 3px solid rgba(69, 167, 120, .2);
  outline-offset: 2px;
}

.format-page[data-format-step="upload"] .upload-grid .format-card:has(.file-clear-button:not([hidden])) .upload-kicker::after {
  display: none;
}

.format-page[data-format-step="export"] .export-action-card .download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-align: center;
}

.format-page[data-format-step="export"] .export-action-card .secondary-download {
  margin-top: 10px;
  border: 1px solid rgba(77, 142, 102, .42);
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  color: #21593d;
}

.format-page[data-format-step="export"] .export-action-card .secondary-download:hover {
  border-color: rgba(52, 124, 81, .62);
  background: #ffffff;
  color: #143f2b;
}

.format-page[data-format-step="export"] .export-action-card .secondary-download b {
  color: inherit;
}

@media (max-width: 760px) {
  .format-page[data-format-step="upload"] .upload-grid .file-clear-button {
    top: 9px;
    right: 9px;
    min-height: 27px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .format-page[data-format-step="export"] .export-action-card .secondary-download {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .format-page[data-format-step="upload"] .upload-grid .file-clear-button {
    transition: none;
  }
}
