:root {
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09070d;
  color: #f7f2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(128, 90, 213, 0.22), transparent 28rem),
    linear-gradient(135deg, #0b0712, #121018 45%, #07060b);
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: grid;
  gap: 4px;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #b98cff;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.panel {
  border: 1px solid rgba(185, 140, 255, 0.28);
  background: rgba(9, 7, 13, 0.76);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.card {
  padding: 22px;
}

.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: rgba(247, 242, 255, 0.72);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b98cff;
}

input[type="file"] {
  padding: 14px;
}

button,
.button {
  border: 1px solid #b98cff;
  background: #7c3aed;
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button.secondary,
.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.thumb {
  width: 140px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muted {
  color: rgba(247, 242, 255, 0.62);
}

.status {
  min-height: 22px;
  color: #a7f3d0;
}

.error {
  color: #fca5a5;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.submission {
  overflow: hidden;
}

.submission img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.submission-body {
  padding: 12px;
  display: grid;
  gap: 7px;
}

.meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: rgba(247, 242, 255, 0.55);
}

.pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(185, 140, 255, 0.5);
  padding: 3px 7px;
  font-size: 12px;
  color: #d8c2ff;
}

@media (max-width: 800px) {
  .grid,
  .row,
  .preview,
  .toolbar {
    grid-template-columns: 1fr;
  }
}
