:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0e1d30;
  --surface-2: #14283d;
  --line: #28445e;
  --text: #f5f8fc;
  --muted: #9db0c4;
  --cyan: #1ec9e8;
  --green: #21d07a;
  --yellow: #f4bd32;
  --red: #e6404f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f6fa;
  --surface: #ffffff;
  --surface-2: #e7f0f7;
  --line: #bfd0de;
  --text: #101b28;
  --muted: #52687c;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, a { font: inherit; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--red); color: white; font-weight: 900; font-size: 22px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 8px; direction: ltr; }
.environment {
  padding: 7px 10px; border: 1px solid var(--line); color: var(--green);
  font-size: 11px; font-weight: 800;
}
.icon-button {
  width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-weight: 800;
}
main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 72px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.eyebrow {
  margin: 0 0 7px; color: var(--cyan); font-size: 12px; font-weight: 900;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(32px, 6vw, 62px); line-height: 1; }
.page-heading p:last-child { color: var(--muted); }
.status-strip {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--surface); white-space: nowrap;
}
.status-dot { width: 9px; height: 9px; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.filters { display: flex; gap: 5px; margin: 40px 0 22px; border-bottom: 1px solid var(--line); }
.filter {
  border: 0; border-bottom: 3px solid transparent; padding: 12px 18px;
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 800;
}
.filter.active { border-bottom-color: var(--cyan); color: var(--text); }
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty-state {
  grid-column: 1 / -1; min-height: 330px; padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden;
}
.empty-state::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 5px; height: 100%; background: linear-gradient(var(--cyan), var(--green), var(--yellow)); }
.empty-state h2 { max-width: 620px; margin: 0; font-size: clamp(27px, 4vw, 48px); }
.empty-state > p:last-child { max-width: 650px; color: var(--muted); }
.empty-visual { display: flex; gap: 7px; margin-bottom: 42px; direction: ltr; }
.empty-visual span {
  display: grid; place-items: center; width: 54px; height: 54px;
  border: 1px solid var(--line); background: var(--surface-2); font-weight: 900;
}
.empty-visual span:nth-child(1) { color: var(--cyan); }
.empty-visual span:nth-child(2) { color: var(--yellow); transform: translateY(9px); }
.empty-visual span:nth-child(3) { color: var(--green); }
.event-card { border: 1px solid var(--line); border-top: 4px solid var(--cyan); background: var(--surface); padding: 22px; min-height: 220px; }
.event-card h2 { font-size: 24px; }
.event-card p { color: var(--muted); }
.event-type, .event-status { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.event-type { color: var(--cyan); }
.event-status { display: inline-block; margin-top: 20px; padding: 6px 9px; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
footer {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 24px clamp(18px, 4vw, 64px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
@media (max-width: 720px) {
  .topbar { min-height: 68px; }
  .brand small, .environment { display: none; }
  main { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .page-heading { display: block; }
  .status-strip { margin-top: 22px; width: fit-content; }
  .filters { overflow-x: auto; }
  .events { grid-template-columns: 1fr; }
  .empty-state { min-height: 390px; }
  footer { flex-direction: column; }
}
