:root {
  color: #111318;
  background: #f7f8fc;
  font-family: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

h2 { margin: 28px 0 12px; }

.panel, .event-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
}

.eyebrow, .muted { color: #707789; }

.eyebrow a, a { color: #6246ea; }

.error { color: #9f1239; }

.stack, .row { display: grid; gap: 12px; }

.row { grid-template-columns: 1fr auto; }

label { display: grid; gap: 6px; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.button, button {
  border: 0;
  border-radius: 999px;
  background: #7357ff;
  color: white;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
}

.upload {
  display: inline-grid;
  gap: 8px;
}

.check { display: flex; gap: 8px; align-items: center; }

.event-list { list-style: none; margin: 16px 0 0; padding: 0; }

.event-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

figure {
  margin: 0;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

figure button {
  width: 100%;
  border-radius: 0;
  background: transparent;
  color: #707789;
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
}
