:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #2457c5;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

input,
textarea {
  border: 1px solid #ccd5e5;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
}

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

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

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

.topbar h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.topbar p,
.muted {
  color: #657086;
  margin: 0;
}

.panel,
.stat {
  background: white;
  border: 1px solid #e2e8f3;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 34, 57, 0.06);
  padding: 20px;
}

.panel h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.hidden {
  display: none !important;
}

.ghost {
  background: #e8eefb;
  color: #2457c5;
}

.loginGrid,
.prizeForm,
.winnerForm,
.updatesForm {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.updatesPanel {
  margin-top: 16px;
}

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

.updatesGrid label {
  color: #657086;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.emailForm {
  display: grid;
  gap: 10px;
}

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

.stat span {
  color: #657086;
  display: block;
  margin-bottom: 8px;
}

.stat strong {
  display: block;
  font-size: 30px;
}

.sectionHeader {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

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

.list {
  display: grid;
  gap: 10px;
}

.row {
  align-items: center;
  border-top: 1px solid #edf1f7;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.row:first-child {
  border-top: 0;
  padding-top: 0;
}

.row small {
  color: #657086;
  display: block;
}

.row button {
  padding: 8px 10px;
}

.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  flex: 1;
}

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

.status.error {
  color: #b42318;
}

.status.success {
  color: #167647;
}

.legalLinks {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.legalLinks a {
  color: #2457c5;
  font-size: 14px;
  text-decoration: none;
}

.legalLinks a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

  .topbar,
  .sectionHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .columns,
  .updatesGrid {
    grid-template-columns: 1fr;
  }
}
