:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1b1b1f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #e0e7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #eef2ff 0%, var(--bg) 45%);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero {
  display: grid;
  gap: 12px;
}

.beta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
  text-align: center;
}

.beta-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
}

p {
  margin: 0 0 8px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--muted);
}

.status-pill.counter {
  gap: 10px;
}

.status-pill .count-value {
  min-width: 32px;
  text-align: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.status-pill.active {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.06);
}

.status-pill.active .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

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

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
}

textarea,
input[type="range"] {
  width: 100%;
  margin-top: 6px;
}

textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  resize: vertical;
}

input[type="email"] {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  min-width: 240px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.toggle input {
  accent-color: var(--accent);
}

.hint {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.hint strong {
  color: var(--text);
}

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

#eventsList {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.status-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fafb;
}

.status-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.status-card p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 720px;
  width: min(92vw, 720px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 12px;
}

.feedback {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
