.upload-page { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.upload-page .nav-home {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.upload-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upload-logo-center {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 0.75rem;
}

.upload-zone-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--neon-cyan);
}

.upload-grid {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.upload-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.upload-msg {
  color: var(--neon-magenta);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.upload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.upload-head h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.upload-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.upload-tabs .tab.active {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.upload-tab form {
  display: grid;
  gap: 0.65rem;
}

.upload-field-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.upload-message {
  resize: vertical;
  min-height: 4.5rem;
  font-family: inherit;
}

.upload-info {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.upload-info p {
  margin: 0 0 0.65rem;
}

.upload-info code {
  font-size: 0.9em;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: rgba(0, 0, 0, 0.2);
  user-select: none;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--neon-purple);
  box-shadow: var(--glow-purple);
  outline: none;
}

.dropzone.drag-over {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.dropzone-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.dropzone-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.dropzone-queue {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--neon-cyan);
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
}

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

.sftp-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sftp-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.35rem 0.75rem;
}

.sftp-card dt {
  color: var(--text-dim);
}

.sftp-card dd {
  font-family: monospace;
  word-break: break-all;
}

.history-hint {
  margin-bottom: 0.75rem;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.history-item .status {
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.history-item .status.rejected { color: var(--neon-magenta); }
.history-item .status.approved { color: #7dff9a; }

.history-meta {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.history-fields {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.history-fields label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.history-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.progress-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.progress-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.progress-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  transition: width 0.15s ease;
}

.progress-status {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.upload-modal-box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.upload-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-thread {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-msg {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.45;
}

.contact-msg.user {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-left: 0;
  margin-right: 1.5rem;
}

.contact-msg.admin {
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.25);
  margin-left: 1.5rem;
  margin-right: 0;
}

.contact-msg-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.history-preview {
  margin: 0.5rem 0 0.75rem;
}

.history-player {
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius);
  background: #000;
}
