/* Auto-generated by the styles.css split-and-dedupe cleanup. */

.tool-form-wrap {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 48px rgba(31, 45, 65, .08);
}

.upload-control {
  position: relative;
  display: grid;
  gap: 12px;
}

.file-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 268px;
  padding: clamp(24px, 5vw, 38px);
  border: 1.5px dashed #8db3ef;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(31, 45, 65, .08);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.file-dropzone[hidden] {
  display: none;
}

.file-dropzone:hover,
.file-dropzone:focus-within,
.file-dropzone.is-dragover {
  border-color: var(--accent);
  background: #fbfdff;
  box-shadow: 0 18px 44px rgba(23, 105, 232, .12);
  transform: translateY(-1px);
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--space-4);
  border: 1px solid #c9dcfb;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.dropzone-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-title {
  color: var(--text);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 780;
  line-height: 1.15;
}

.dropzone-subtitle {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
}

.dropzone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  min-width: 210px;
  margin-top: var(--space-5);
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

.dropzone-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-limit,
.privacy-hint {
  display: block;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.privacy-hint {
  margin-top: var(--space-2);
}

.dropzone-selected {
  display: block;
  max-width: 100%;
  margin-top: var(--space-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-files-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 45, 65, .08);
}

.selected-files-panel[hidden] {
  display: none;
}

.selected-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.selected-files-head strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
}

.selected-files-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.add-files-button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.add-files-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.selected-files-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.selected-file-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid #dbe5f4;
  border-radius: var(--radius-sm);
  background: #f8fbff;
}

.selected-file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .02em;
}

.selected-file-meta {
  min-width: 0;
}

.selected-file-meta strong,
.selected-file-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-meta strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.selected-file-meta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.selected-file-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66758a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.selected-file-remove:hover,
.selected-file-remove:focus-visible {
  background: #eef3fb;
  color: var(--danger);
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tool-dropzone {
  min-height: 292px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full,
.form-actions {
  grid-column: 1 / -1;
}

.field label {
  color: #253044;
  font-size: 14px;
  font-weight: 720;
}

.field small,
.field-error {
  color: var(--muted);
  font-size: 14px;
}

.field-error {
  color: var(--danger);
}

input[type="file"] {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

input[type="text"],
input[type="number"],
select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.form-actions .button {
  min-width: 190px;
}
