/* NoDJ Ads portal. Palette and controls follow NoDJ Web (Web/venue.css) and the BapStack brand guide. */
:root {
  color-scheme: dark;
  --background: #000000; --panel: #101010; --text: #f6f6f6; --muted: #c6c6c6;
  --border: #6c6d6e; --lime: #73ed00; --focus: #d400ed; --purple: #3a0c99; --danger: #ff6b6b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.45 system-ui, sans-serif; }
main { width: min(100%, 1040px); margin: auto; padding: 16px clamp(16px, 4vw, 32px) 40px; }
footer { text-align: center; padding: 24px 16px; font-size: .8rem; }
a { color: var(--lime); }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); font-weight: 650; padding: 6px 14px; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button.primary { border-color: var(--lime); background: var(--lime); color: var(--background); }
button.danger { border-color: var(--danger); color: var(--danger); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 7px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--lime); }
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
label.inline { display: flex; align-items: center; gap: 8px; color: var(--text); }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -.03em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: 1.27rem; }
h3 { font-size: 1.05rem; }
.quiet { color: var(--muted); font-size: .88rem; }
.eyebrow { margin: 0 0 4px; color: var(--lime); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 32px); border-bottom: 1px solid #222; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.account { display: flex; align-items: center; gap: 10px; }
.sections { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--panel); }
.sections button { border-color: transparent; }
.sections button[aria-pressed="true"] { color: var(--background); background: var(--lime); }
.card { padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); margin-bottom: 16px; }
.hero { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(125deg, var(--panel) 60%, var(--purple)); margin-bottom: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list > li { padding: 12px; border: 1px solid #2a2a2a; border-radius: 12px; background: #0a0a0a; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.pill.ok { border-color: var(--lime); color: var(--lime); }
.pill.warn { border-color: #f5c400; color: #f5c400; }
.pill.bad { border-color: var(--danger); color: var(--danger); }
.error { color: var(--danger); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 6px; border-bottom: 1px solid #222; vertical-align: middle; }
td input, td select { min-height: 36px; padding: 4px 8px; }
.table-wrap { overflow-x: auto; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--lime); z-index: 10; }
#toast.bad { border-color: var(--danger); }

/* 16:9 preview that renders an ad exactly as the TV does. */
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; container-type: size; }
.screen .media { position: absolute; inset: 0; display: grid; place-items: center; }
.screen .media img, .screen .media video { width: 100%; height: 100%; object-fit: contain; }
.screen .qr { position: absolute; width: 18cqh; height: 18cqh; padding: .6cqh; background: #fff; border-radius: .6cqh; }
.screen .qr.top-right { top: 3cqh; right: 3cqh; } .screen .qr.top-left { top: 3cqh; left: 3cqh; }
.screen .qr.bottom-right { bottom: 3cqh; right: 3cqh; } .screen .qr.bottom-left { bottom: 3cqh; left: 3cqh; }
.screen .qr.placeholder { background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 25% 25%; border: .6cqh solid #fff; }
.screen .timer { position: absolute; left: 8px; bottom: 6px; font-size: .75rem; color: var(--muted); background: #000a; padding: 1px 6px; border-radius: 6px; }
.slides { display: flex; gap: 8px; flex-wrap: wrap; }
.slides figure { margin: 0; width: 120px; }
.slides img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 1px solid #333; }
.slides input { min-height: 32px; padding: 2px 6px; }
