:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5d6977;
  --line: #d9e0e7;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --danger: #9f1239;
  --success-bg: #ecfdf5;
  --success-line: #a7f3d0;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(245, 247, 249, 0) 290px),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.lookup-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.15);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  grid-column: 1 / -1;
}

button:hover {
  background: var(--accent-strong);
}

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

.status {
  min-height: 28px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.status.error {
  color: var(--danger);
}

.summary {
  margin-top: 16px;
  border: 1px solid var(--success-line);
  border-radius: 8px;
  background: var(--success-bg);
  padding: 18px;
}

.summary h2,
.registration h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.participant-name {
  margin: 8px 0 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.registration-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.registration {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

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

.meta-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.meta-value {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.empty {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 820px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 960px);
    padding: 20px 0;
  }

  .lookup-panel {
    padding: 18px;
  }

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