:root {
  font-family: Inter, system-ui, sans-serif;
  background: #f3f5f7;
  color: #15181d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 84px;
}

.shell {
  max-width: 680px;
  margin: auto;
  padding: 18px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
}

.top h1,
.hero h1 {
  margin: 0.2rem 0;
}

.hero {
  padding: 28px 4px 14px;
}

.card {
  display: block;
  background: white;
  border-radius: 20px;
  padding: 18px;
  margin: 12px 0;
  box-shadow: 0 4px 22px #0000000c;
  text-decoration: none;
  color: inherit;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 650;
}

input,
textarea,
button,
.button {
  font: inherit;
  border-radius: 13px;
  border: 1px solid #d7dce1;
  padding: 13px 14px;
}

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

button,
.button {
  background: #15181d;
  color: white;
  border: 0;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: #eef1f4;
  color: #15181d;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.danger {
  background: #a51d2d;
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.registration-help {
  margin: -6px 0 0;
}

.choices button[aria-pressed="true"] {
  outline: 3px solid #15181d33;
  outline-offset: 2px;
}

.attendance-summary {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.attendance-summary .bigcount {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.bigcount {
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1;
}

.bigcount span {
  font-size: 1rem;
  font-weight: 600;
  color: #65707c;
}

.capacity-status {
  color: #65707c;
  font-size: 0.9rem;
  font-weight: 650;
}

.capacity-status--full {
  color: #7a4b00;
  font-weight: 750;
}

.warning {
  background: #fff4d8;
  padding: 12px;
  border-radius: 12px;
  margin-top: 12px;
}

.muted {
  color: #65707c;
  font-size: 0.9rem;
}

.eyebrow,
small {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #65707c;
  font-weight: 800;
}

.people {
  list-style: none;
  padding: 0;
}

.people li {
  padding: 9px 0;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.people span {
  color: #65707c;
}

.person-info {
  display: grid;
  gap: 2px;
}

.guest-form {
  display: grid;
  gap: 10px;
}

button.compact {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #fff;
  border-top: 1px solid #e3e6e9;
  display: flex;
  justify-content: center;
  z-index: 5;
}

.bottom a {
  flex: 1;
  max-width: 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #30363d;
  font-size: 1.15rem;
}

.bottom a[aria-current="page"] {
  background: #f3f5f7;
  color: #15181d;
  font-weight: 800;
}

.nav-icon {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon__hole {
  fill: currentColor;
  stroke: none;
}

.bottom span {
  font-size: 0.72rem;
}

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

.grid > div {
  background: #f4f6f8;
  padding: 14px;
  border-radius: 14px;
  display: grid;
}

.grid span {
  font-size: 0.8rem;
  color: #65707c;
}

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

.last10 {
  display: flex;
  gap: 7px;
  font-size: 1.3rem;
}

.leaderboard {
  padding-left: 22px;
}

.leaderboard li {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
}

.bars {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.bars div {
  flex: 1;
  min-height: 10px;
  background: #15181d;
  border-radius: 6px 6px 2px 2px;
  position: relative;
}

.bars span {
  position: absolute;
  top: -18px;
  font-size: 0.65rem;
}

.actions {
  display: grid;
  gap: 8px;
}

.event-actions {
  margin-top: 12px;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.adminrow {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.adminrow form {
  margin-top: 6px;
}

.adminrow input {
  min-width: 0;
  width: 100%;
}

.flash {
  padding: 12px;
  border-radius: 12px;
  background: #fff4d8;
}

.flash.success {
  background: #e5f7e8;
}

.flash.danger {
  background: #fde7ea;
}

.cancelled {
  opacity: 0.72;
}

.prose {
  line-height: 1.55;
}

@media (min-width: 520px) {
  .choices {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .actions > :only-child {
    grid-column: 1 / -1;
  }

  .guest-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
