:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --card: #15171d;
  --line: #2a2d36;
  --text: #f4f4f5;
  --muted: #9da3af;
  --accent: #ff2c75;
  --accent-2: #7c5cff;
  --ok: #45d391;
  --warn: #ffbd59;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% 0, #27142d 0, var(--bg) 38rem); color: var(--text); min-height: 100vh; }
a { color: inherit; }
header, main, footer { width: min(980px, calc(100% - 32px)); margin-inline: auto; }
header { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.nav-link { color: var(--muted); }
main { padding: 40px 0 80px; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 24px 0 48px; font-size: 14px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(38px, 7vw, 72px); line-height: .98; max-width: 780px; letter-spacing: -.055em; }
h2 { letter-spacing: -.025em; }
.hero { padding: 48px 0 64px; }
.hero p:not(.eyebrow) { color: #c8cad0; max-width: 680px; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions > button, .hero-actions > .button { width: 196px; min-height: 48px; margin: 0; }
.confirmation { max-width: 720px; }
.confirmation a { font-weight: 800; }
.eyebrow { color: #ff7daa; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.card { background: rgba(21,23,29,.92); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 5vw, 42px); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.form-card { max-width: 720px; }
dialog { width: min(720px, calc(100% - 24px)); max-width: none; border: 0; padding: 0; color: var(--text); background: transparent; }
dialog::backdrop { background: rgba(3,4,8,.78); backdrop-filter: blur(4px); }
.modal-card { max-height: min(90dvh, 860px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px,5vw,38px); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-heading h2 { margin: 0; }
.modal-close { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #202229; font-size: 28px; line-height: 1; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions > button { width: 100%; min-height: 46px; margin: 0; }
.modal-actions .secondary { background: #292c34; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
input { width: 100%; border: 1px solid #3a3e49; background: #0f1116; color: var(--text); border-radius: 12px; padding: 13px 14px; font: inherit; }
input:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
button, .button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 12px; padding: 13px 18px; color: white; background: linear-gradient(110deg,var(--accent),var(--accent-2)); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
button.danger { background: #4a2029; color: #ffb7c4; }
.optional, .muted { color: var(--muted); font-weight: 400; }
.check { grid-template-columns: 22px 1fr; align-items: start; line-height: 1.45; color: #c8cad0; }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.trap { position: absolute; left: -9999px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }
.steps div { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.steps b { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #2b203b; color: #d9ceff; }
.rotation-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.active-list { margin-top: 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(28px,4vw,42px); }
.section-heading h2 b { display: inline-block; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #d9ceff; font-size: 15px; vertical-align: middle; }
.playlist-button { padding: 15px 22px; box-shadow: 0 0 28px rgba(255,44,117,.22); white-space: nowrap; }
.public-table-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,20,25,.88); }
.public-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.public-table th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; text-align: left; color: var(--muted); background: #1b1d23; border-bottom: 1px solid var(--line); }
.public-table td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.public-table tbody tr:last-child td { border-bottom: 0; }
.public-table td:first-child { width: 48%; }
.public-table td > strong, .public-table td > span { display: block; margin-bottom: 3px; }
.public-table td > strong { font-size: 15px; }
.public-table td > span { color: var(--muted); }
.public-table td:last-child { text-align: right; }
.public-table .button { padding: 9px 13px; white-space: nowrap; font-size: 13px; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; }
.alert.error { background: #3c1d25; color: #ffc0cc; }
.alert.success { background: #153629; color: #a7f3d0; }
.alert.warning { background: #3b321c; color: #ffdb8b; margin: 14px 0 0; }
.status-card { max-width: 660px; }
.status { display: inline-block; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.status-pending { background: #3b321c; color: #ffdb8b; }
.status-queued { background: #242443; color: #c9c8ff; }
.status-active { background: #163829; color: #9df1c5; }
.status-rejected { background: #3c1d25; color: #ffc0cc; }
.status-expired { background: #292c34; color: #b9bdc7; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.admin-title h1 { font-size: clamp(34px,5vw,54px); margin-bottom: 0; }
.batch { display: grid; gap: 5px; background: #1a1722; border: 1px solid #312a42; border-radius: 16px; padding: 14px 18px; white-space: nowrap; }
.batch span { color: var(--muted); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.metrics div { display: grid; gap: 4px; border: 1px solid var(--line); background: rgba(18,20,25,.88); border-radius: 16px; padding: 16px; }
.metrics b { font-size: 24px; }
.metrics span, details { color: var(--muted); font-size: 13px; }
details { margin-top: 14px; }
summary { cursor: pointer; }
details ul { margin-bottom: 0; padding-left: 20px; }
.editor { border-top: 1px solid var(--line); padding-top: 14px; }
.editor form { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.editor button { align-self: end; }
.settings { margin-bottom: 36px; padding: 20px; }
.settings form { grid-template-columns: 1fr auto; align-items: end; }
.admin-section { margin-top: 38px; }
.admin-section h2 { display: flex; gap: 10px; align-items: center; }
.admin-section h2 small { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #272a32; color: var(--muted); }
.submission { border: 1px solid var(--line); background: rgba(18,20,25,.88); border-radius: 18px; padding: 18px; margin-top: 12px; }
.admin-table-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,20,25,.88); }
.admin-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.admin-table th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; text-align: left; color: var(--muted); background: #1b1d23; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td > span, .admin-table td > strong, .admin-table td > a { display: block; margin-bottom: 4px; }
.admin-table td > span { color: var(--muted); }
.admin-table td > a { color: #d1c7ff; }
.admin-table details { margin-top: 0; margin-bottom: 7px; }
.admin-table .editor { border-top: 0; padding-top: 0; }
.admin-table .editor form { grid-template-columns: 1fr; min-width: 240px; }
.needs-title { color: var(--warn) !important; font-weight: 800; }
.submission-head { display: flex; justify-content: space-between; gap: 16px; }
.submission-head > div { display: grid; gap: 5px; }
.submission-head span:not(.status) { color: var(--muted); font-size: 13px; }
.links { display: flex; gap: 18px; margin-top: 14px; }
.links a { color: #d1c7ff; font-size: 14px; }
.clicks { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions form { display: flex; flex: 0 1 auto; gap: 8px; }
.actions form.reject, .actions form.wide { flex: 1 1 360px; grid-template-columns: 1fr auto; }
.actions button { padding: 10px 13px; font-size: 13px; }
@media (max-width: 680px) {
  main { padding-top: 12px; }
  .steps { grid-template-columns: 1fr; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .playlist-button { width: 100%; }
  .modal-actions { grid-template-columns: 1fr; }
  .admin-title, .submission-head { align-items: flex-start; flex-direction: column; }
  .settings form { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .editor form { grid-template-columns: 1fr; }
  .batch { width: 100%; }
}
