:root {
  --bg: #070605;
  --panel: #11100e;
  --panel-2: #191612;
  --text: #fffdf8;
  --muted: rgba(255, 253, 248, 0.66);
  --line: rgba(255, 253, 248, 0.14);
  --gold: #e3a72f;
  --red: #d84b36;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #030302;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.topbar nav a {
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}

.auth-shell {
  width: min(460px, calc(100% - 32px));
}

.panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel + .panel,
.grid + .panel {
  margin-top: 18px;
}

h1,
h2 {
  margin: 0 0 18px;
  line-height: 1;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span,
label {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #070605;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--gold);
  color: #080604;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

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

.flash {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--panel-2);
  color: var(--text);
}

.flash.error {
  border-color: rgba(216, 75, 54, 0.6);
}

.flash.success {
  border-color: rgba(227, 167, 47, 0.6);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.artist-preview {
  width: min(260px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050403;
}

.muted {
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}
