:root {
  --bg: #000000;
  --surface: #141414;
  --border: #262626;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --accent: #ffffff;
  --accent-text: #000000;
  --good: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.brand img { display: block; height: 64px; width: auto; }

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  margin: 8px 0 4px;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.event-date { margin: 0 0 16px; font-weight: 600; }
.lede { margin: 0 0 24px; color: var(--text-dim); max-width: 56ch; }

.notice { padding: 48px 0; }
.notice h1 { font-size: 28px; margin-bottom: 12px; }

.hint { margin: 0 0 16px; font-size: 14px; color: var(--text-dim); }
.bookmark { margin-top: 24px; }

.status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  background: var(--surface);
  font-size: 15px;
}
.status strong { display: block; }
.status.is-live { border-left-color: var(--good); }
.status.is-off { border-left-color: var(--bad); }

.panel {
  margin-bottom: 24px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.count { font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.optional { margin-left: 6px; font-weight: 400; color: var(--text-dim); }

input[type='text'] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
input[type='text']::placeholder { color: #6b6b6b; }
input[type='text']:focus-visible,
.btn:focus-visible,
.file-btn:focus-within,
.card-remove:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  margin: 16px 0 0;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: #e5e5e5; }
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-text); }
.btn[disabled],
.file-btn.is-busy,
.file-btn.is-disabled { opacity: 0.5; cursor: default; pointer-events: none; }

.actions .btn { margin-top: 0; }
.actions .hint { margin: 12px 0 0; }

.saved { margin-left: 12px; font-size: 14px; color: var(--good); }

.field-error { margin: 12px 0 0; font-size: 14px; color: var(--bad); }

.logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-row .btn { margin-top: 0; }

.logo-preview {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  flex: none;
  border: 1px dashed var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards:empty { display: none; }

.cards li {
  position: relative;
  aspect-ratio: 5 / 7;
  border: 1px solid var(--border);
  background: var(--bg);
}
.cards img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.card-remove:hover { background: var(--bad); color: #000; }

@media (min-width: 640px) {
  .site-header { padding: 16px 32px; }
  .panel { padding: 24px; }
}
