.other-upload {
  max-width: 1050px;
  margin: 42px auto 70px;
  color: var(--text);
  font-family: system-ui, "Microsoft YaHei", sans-serif;
}

.other-upload [hidden] {
  display: none;
}

.other-upload-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.other-upload-heading h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
}

.other-upload a {
  color: var(--theme-accent);
  text-underline-offset: 3px;
}

.other-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.other-upload-panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--theme-panel-rgb, 255, 255, 255), .97);
  box-shadow: 0 8px 24px rgba(38, 45, 47, .09);
}

.other-upload fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.other-upload label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
}

.other-upload small {
  font-size: .875rem;
  font-weight: 400;
}

.other-upload-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr);
  gap: 12px;
}

.other-upload input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  font: 400 1rem/1.4 system-ui, sans-serif;
}

.other-upload input[name="title"],
.other-upload-preview figcaption {
  font-family: var(--sans);
}

.other-upload-file {
  padding: 14px;
  border: 1px dashed var(--theme-accent);
  border-radius: 9px;
}

.other-upload-file input {
  margin-bottom: 6px;
}

.other-upload button {
  justify-self: start;
  min-height: 43px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--theme-accent, #536d63);
  color: white;
  font: 600 1rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}

.other-upload button:disabled {
  opacity: .62;
  cursor: default;
}

.other-upload :is(input, button, a):focus-visible {
  outline: 2px solid var(--theme-accent, #536d63);
  outline-offset: 3px;
}

#other-upload-status {
  margin: 12px 0 0;
}

#other-upload-status:empty {
  margin: 0;
}

#other-upload-status[data-error="true"] {
  color: #8c2d36;
}

.other-upload-preview h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.other-upload-preview figure {
  margin: 0 0 12px;
}

.other-upload-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
}

.other-upload-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.other-upload-preview figcaption {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .other-upload {
    margin-top: 24px;
  }

  .other-upload-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .other-upload-fields {
    grid-template-columns: 1fr;
  }
}
