.card {
  background: var(--card);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--border);
  margin: 0 4px 8px;
}

.card h2 { margin: 0 0 2px; font-size: 20px; color: var(--ink); }
.card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--scvfs-red);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.card p.muted.small { margin: 2px 0 6px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tile-count {
  display: inline-block;
  background: var(--scvfs-light);
  color: var(--scvfs-blue-dark, #1d4f74);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.evt-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.evt-count {
  display: inline-block;
  background: #fff3d6;
  color: #7a4a00;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

.card.error { background: var(--scvfs-red-tint); color: var(--scvfs-red-dark); }

.muted { color: var(--muted); }
.small { font-size: 12px; }

.sw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sw-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

label {
  display: block;
  margin: 10px 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--scvfs-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

button {
  background: var(--grey-100);
  color: var(--ink);
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
button:hover { background: var(--grey-300); }

button.primary {
  background: var(--scvfs-red);
  color: #fff;
}
button.primary:hover { background: var(--scvfs-red-dark); }

button.danger {
  background: #fff;
  color: var(--scvfs-red);
  border: 1px solid var(--scvfs-red);
}
button.danger:hover { background: var(--scvfs-red); color: #fff; }

button.link {
  background: transparent;
  color: var(--scvfs-red);
  padding: 4px 8px;
}

.switcher {
  margin-top: 0;
  font-size: 13px;
  width: auto;
  padding: 6px 28px 6px 10px;
}

.evt-list { display: flex; flex-direction: column; }

.evt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--grey-100);
}
.evt-row:first-child { border-top: none; }
.evt-row.locked { background: linear-gradient(to right, var(--grey-50), transparent); padding-left: 8px; padding-right: 8px; border-radius: 6px; }

.evt-name { font-weight: 600; margin: 4px 0 2px; font-size: 14px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--grey-100);
  color: var(--grey-700);
}
.badge-production { background: #fde7c1; color: #7a4a00; }
.badge-compulsory { background: #d8e7d8; color: #1f5025; }
.badge-team { background: #e0e7ff; color: #1e3a8a; }
.badge-trio { background: #ecdaf5; color: #4a1a73; }
.badge-solo { background: var(--scvfs-red-tint); color: var(--scvfs-red-dark); }
.badge-duet { background: #fce4d6; color: #7a3a00; }
.badge-couples { background: #fae8ff; color: #6b21a8; }
.badge-family { background: #fef3c7; color: #92400e; }
.badge-other { background: var(--grey-100); color: var(--grey-700); }
.badge-locked {
  background: var(--scvfs-black);
  color: #fff;
}

/* iOS-style toggle */
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--grey-300);
  border-radius: 26px;
  transition: 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--scvfs-red); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.30);
  border-top: 4px solid var(--scvfs-red);
}
.modal h3 { margin: 0 0 12px; color: var(--scvfs-red); }
.modal-notice {
  background: var(--scvfs-red);
  color: #fff;
  padding: 10px 14px;
  margin: -22px -22px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.4;
  text-align: center;
}
.modal-notice strong {
  letter-spacing: 1.2px;
  font-weight: 800;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 18px;
}
