body {
  background:
    radial-gradient(circle at top, rgba(200, 255, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #050608 0%, #090b10 35%, #06070a 100%);
  color: var(--w);
  font-family: Inter, sans-serif;
}

.admin-upload-shell {
  max-width: 1480px;
  margin: 108px auto 48px;
  padding: 0 24px;
}

.admin-page-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.admin-page-hero p {
  max-width: 780px;
  margin: 0;
  color: #9ea7b4;
  line-height: 1.7;
}

.hero-chip,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.08);
  color: #d9ff70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note,
.side-note-card,
.preview-card,
.admin-panel,
.admin-check-msg {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-note {
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 20px;
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-note span {
  display: block;
  color: #9ea7b4;
  line-height: 1.55;
}

.admin-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.admin-main-column,
.admin-side-column {
  display: grid;
  gap: 18px;
}

.admin-check-msg {
  padding: 16px 18px;
  border-radius: 18px;
  color: #9ea7b4;
  font-size: 0.95rem;
}

.upload-form {
  display: none;
  gap: 18px;
}

.admin-panel {
  padding: 22px;
  border-radius: 24px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.panel-head p {
  margin: 0;
  color: #8f98a6;
  line-height: 1.65;
}

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

.field-label,
.slider-label,
.mini-label {
  color: #cfd5df;
  font-size: 0.84rem;
  font-weight: 600;
}

.mini-label {
  display: block;
  margin-bottom: 10px;
}

.upload-grid input,
.upload-grid select,
.upload-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.82rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.upload-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.upload-grid input:focus,
.upload-grid select:focus,
.upload-grid textarea:focus {
  outline: none;
  border-color: rgba(200, 255, 0, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.08);
}

.upload-grid input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--lime);
}

.pair,
.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.08), transparent 30%);
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: rgba(200, 255, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.14), transparent 34%);
  transform: translateY(-2px);
}

.drop-title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.drop-sub,
.helper-note,
.status,
.preview-support-copy,
.preview-trust-row,
.side-note-card p,
.thumb-preview-head p {
  margin: 0;
  color: #8c95a3;
  line-height: 1.6;
}

.hidden-input {
  display: none;
}

.media-tip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.media-tip-row p {
  margin: 0;
  color: #9ea7b4;
  line-height: 1.55;
}

.media-tip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(96, 165, 250, 0.08);
  color: #95c1ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.thumb-preview-section {
  display: none;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.thumb-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.thumb-preview-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.workbench-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.preview-reset-btn,
.ghost-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4dae3;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.preview-reset-btn:hover,
.ghost-action-btn:hover {
  border-color: rgba(200, 255, 0, 0.4);
  background: rgba(200, 255, 0, 0.08);
}

.ghost-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.media-workbench-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.media-rail-panel,
.media-editor-panel,
.editor-control-panel,
.editor-stage-wrap {
  display: grid;
  gap: 12px;
}

.media-asset-list {
  display: grid;
  gap: 10px;
}

.asset-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #7d8693;
  font-size: 0.88rem;
  line-height: 1.5;
}

.asset-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.asset-card:hover,
.asset-card.is-active {
  border-color: rgba(200, 255, 0, 0.38);
  background: rgba(200, 255, 0, 0.08);
  transform: translateY(-1px);
}

.asset-card-thumb {
  position: relative;
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 38%),
    #101219;
}

.asset-card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-card-video-badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.06)),
    #121621;
}

.asset-card-copy {
  display: grid;
  gap: 4px;
}

.asset-card-copy strong {
  font-size: 0.92rem;
  line-height: 1.2;
  color: #fff;
}

.asset-card-copy span {
  color: #8d97a5;
  font-size: 0.76rem;
}

.editor-viewport {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    #0b0d12;
  aspect-ratio: 16 / 9;
  cursor: grab;
}

.editor-viewport.is-dragging {
  cursor: grabbing;
}

.editor-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.editor-media-image,
.editor-media-video,
.market-preview-thumb,
.market-preview-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
}

.editor-media-video,
.market-preview-video {
  display: none;
}

.editor-control-panel {
  grid-template-columns: 1fr;
}

.editor-section {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.aspect-button-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.aspect-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #cad1db;
  padding: 11px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.aspect-btn:hover,
.aspect-btn.is-active {
  border-color: rgba(200, 255, 0, 0.42);
  background: rgba(200, 255, 0, 0.09);
  color: #e8ffaf;
}

.slider-group {
  display: grid;
  gap: 8px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
}

.model-size-warn {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #ff8f8f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.optional-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.optional-card-lime {
  box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.05);
}

.optional-card-blue {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.07);
}

.optional-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.optional-badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d6dde7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.optional-card-lime .optional-badge {
  border-color: rgba(200, 255, 0, 0.18);
  color: #d9ff70;
}

.optional-card-blue .optional-badge {
  border-color: rgba(96, 165, 250, 0.18);
  color: #8dc0ff;
}

.optional-title {
  color: #ffffff;
  font-weight: 600;
}

.submit-panel {
  padding-top: 6px;
}

.submit-button {
  width: 100%;
  justify-content: center;
}

.veyra-loader-wrap {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.veyra-loader {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.veyra-loader i {
  display: block;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--lime), #93d600);
  opacity: 0.18;
  transform: scale(0.74);
  animation: veyraPulse 1.05s ease-in-out infinite;
}

.veyra-loader i:nth-child(1) { animation-delay: 0s; }
.veyra-loader i:nth-child(2) { animation-delay: 0.08s; }
.veyra-loader i:nth-child(3) { animation-delay: 0.16s; }
.veyra-loader i:nth-child(4) { animation-delay: 0.24s; }
.veyra-loader i:nth-child(5) { animation-delay: 0.32s; }
.veyra-loader i:nth-child(6) { animation-delay: 0.4s; }
.veyra-loader i:nth-child(7) { animation-delay: 0.48s; }
.veyra-loader i:nth-child(8) { animation-delay: 0.56s; }
.veyra-loader i:nth-child(9) { animation-delay: 0.64s; }

.veyra-loader-text {
  font-size: 0.84rem;
  color: #9aa3af;
  line-height: 1.3;
}

.status {
  min-height: 24px;
  font-size: 0.92rem;
}

.preview-card {
  position: sticky;
  top: 108px;
  border-radius: 28px;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-toolbar-label {
  margin-left: 4px;
  color: #a1aab7;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 28%),
    #050608;
}

.preview-stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.4)),
    radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.42) 88%);
  pointer-events: none;
}

.market-preview-thumb,
.market-preview-video {
  opacity: 0.68;
  filter: saturate(0.92) contrast(1.05);
}

.preview-stage-rail {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  width: 82px;
  max-height: calc(100% - 36px);
  overflow: auto;
  z-index: 2;
}

.stage-rail-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stage-rail-item:hover,
.stage-rail-item.is-active {
  border-color: rgba(200, 255, 0, 0.52);
  transform: translateX(-2px);
}

.stage-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-rail-video-chip {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.preview-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.preview-copy h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.preview-copy p,
.side-note-card p {
  margin: 0;
}

.preview-eyebrow {
  color: #c8ff00;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.preview-meta-row strong {
  font-size: 1.25rem;
}

.preview-format,
.preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-badge {
  color: #dfff82;
}

.preview-badge-muted {
  color: #9ea7b4;
}

.preview-download-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
}

.preview-download-copy {
  display: grid;
  gap: 4px;
}

.preview-download-copy strong {
  font-size: 1rem;
}

.preview-download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(200, 255, 0, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.12), rgba(200, 255, 0, 0.06));
  color: #f6ffd7;
  font: inherit;
  font-weight: 700;
}

.preview-download-button small {
  color: #d8ef9d;
  font-size: 0.76rem;
  white-space: nowrap;
}

.preview-trust-row {
  font-size: 0.82rem;
}

.side-note-card {
  padding: 20px;
  border-radius: 24px;
}

.side-note-card h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

@keyframes veyraPulse {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.74) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.04) rotate(8deg);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.45);
  }
}

@media (max-width: 1180px) {
  .admin-upload-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    position: static;
  }
}

@media (max-width: 880px) {
  .media-workbench-grid {
    grid-template-columns: 1fr;
  }

  .media-asset-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .preview-stage-rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    width: auto;
    max-height: none;
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  }
}

@media (max-width: 780px) {
  .admin-upload-shell {
    margin-top: 92px;
    padding: 0 16px 32px;
  }

  .admin-page-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pair,
  .media-upload-grid,
  .aspect-button-row {
    grid-template-columns: 1fr;
  }

  .thumb-preview-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workbench-actions {
    flex-wrap: wrap;
  }

  .preview-stage {
    min-height: 300px;
  }

  .preview-download-button {
    flex-direction: column;
    align-items: start;
  }
}
