.step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  display: block;
  transition: .2s;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -10px rgba(79,70,229,.35);
  border-color: #c7d2fe;
}
.step-num {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 1.75rem;
  height: 1.75rem;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 50%;
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb {
  object-fit: cover;
  border-radius: .6rem;
  background: #f1f5f9;
}
.thumb-sm {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: .5rem;
  background: #f1f5f9;
  border: 2px solid #fff;
}
.drop-zone {
  border: 2px dashed #c7d2fe;
  border-radius: 1rem;
  transition: .2s;
}
.drop-zone.dragover {
  background: #eef2ff;
  border-color: #6366f1;
}

/* Thumbnail size presets */
.thumb-s { width: 4.5rem; height: 4.5rem; }
.thumb-m { width: 8rem; height: 8rem; }
.thumb-l { width: 12rem; height: 12rem; }
@media (max-width: 640px) {
  .thumb-l { width: 9rem; height: 9rem; }
}

.size-toggle-btn.active {
  background: #4f46e5;
  color: #fff;
}

.group-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: #fff;
  color: #475569;
  transition: .15s;
}
.group-pill.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.group-pill.inactive-flag {
  opacity: .55;
}

.badge-liability {
  background: #fef3c7;
  color: #92400e;
}
.badge-paid {
  background: #d1fae5;
  color: #065f46;
}

/* Availability fast-switch */
.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: .75rem 1rem;
  transition: .15s;
}
.availability-row.is-on {
  border-color: #86efac;
  background: #f0fdf4;
}
.availability-row.is-off {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #cbd5e1; transition: .2s; border-radius: 999px;
}
.switch-track::before {
  position: absolute; content: "";
  height: 1.15rem; width: 1.15rem; left: .17rem; bottom: .17rem;
  background-color: #fff; transition: .2s; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch input:checked + .switch-track { background-color: #22c55e; }
.switch input:checked + .switch-track::before { transform: translateX(1.25rem); }

/* ---------------------------------------------------------------------
   Admin passkey gate overlay (see js/admin-auth.js — deterrent only,
   not real server-side security; static sites cannot truly protect a
   page since all code/data ships to the browser regardless).
--------------------------------------------------------------------- */
#admin-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
html.admin-unlocked #admin-gate { display: none; }
.admin-gate-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  max-width: 24rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}
