.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.progress {
  margin-bottom: 18px;
  padding: 14px;
}

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

.step {
  background: #eef2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 10px;
}

.step.current {
  background: var(--blue);
  color: #fff;
}

.screen {
  display: none;
  animation: rise 0.35s ease;
}

.screen.active {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 28px;
  align-items: stretch;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(32, 182, 176, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(40, 85, 217, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 255, 0.74));
  z-index: 0;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

body.is-home .home-hero {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(28px, 6vw, 72px);
}

.home-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 20px;
}

.home-public-actions {
  display: flex;
  gap: 10px;
}

.home-main-copy {
  display: grid;
  align-content: center;
  justify-self: center;
  max-width: 760px;
  text-align: center;
}

.home-hero h2 {
  max-width: 720px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.home-proof-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #314362;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.home-setup {
  max-width: 620px;
  border-left: 4px solid var(--cyan);
  padding-left: 16px;
  margin-top: 28px;
  justify-self: center;
  text-align: left;
}

.home-setup p {
  color: var(--muted);
  line-height: 1.5;
}

.home-process {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.home-process ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-process li {
  display: grid;
  gap: 5px;
}

.home-process span {
  color: var(--muted);
  line-height: 1.45;
}

.home-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

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

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #465472;
}

.field.full,
.actions.full,
.check.full {
  grid-column: 1 / -1;
}

.field select[multiple] {
  min-height: 114px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
}

.search-inline,
.actions select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 85, 217, 0.14);
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

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

.btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: #edf2ff;
}

.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(40, 85, 217, 0.35);
}

.btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.danger {
  background: #fff1f1;
  color: var(--red);
}

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

.notice {
  margin-top: 16px;
  border-radius: 10px;
  background: #eff4ff;
  color: #3858a1;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.45;
}

.list {
  margin: 0;
  padding-left: 16px;
  color: #374357;
  display: grid;
  gap: 8px;
}

.list.compact {
  gap: 5px;
}

.mini-auth {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.subview {
  display: none;
}

.subview.active {
  display: block;
}

.subview p {
  color: var(--muted);
  margin-bottom: 12px;
}

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

.chip {
  border: 1px solid #dbe5ff;
  background: #f2f6ff;
  color: #3253a1;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}

.todo {
  display: grid;
  gap: 10px;
  color: #344156;
}

.todo label {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-grid,
.coach-board,
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: #fbfcff;
}

.panel p {
  color: var(--muted);
  margin-bottom: 10px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.member-attendance-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  display: grid;
  gap: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 35, 62, 0.06);
}

.admin-stat-card small {
  color: #475a7d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-stat-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  font-family: "Newsreader", serif;
}

.admin-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-stat-card.tone-members {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.admin-stat-card.tone-members .admin-stat-icon {
  background: #e9f0ff;
  color: #2c56d7;
}

.admin-stat-card.tone-categories {
  background: linear-gradient(180deg, #f3fffb 0%, #ffffff 100%);
}

.admin-stat-card.tone-categories .admin-stat-icon {
  background: #dff9f1;
  color: #0f9474;
}

.admin-stat-card.tone-events {
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}

.admin-stat-card.tone-events .admin-stat-icon {
  background: #ffedd1;
  color: #b86a08;
}

.admin-stat-card.tone-attendance {
  background: linear-gradient(180deg, #f4f5ff 0%, #ffffff 100%);
}

.admin-stat-card.tone-attendance .admin-stat-icon {
  background: #e9e9ff;
  color: #5558d7;
}

#adminStepNav button {
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 9px;
}

.stack-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #fff;
}

.stack-row select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  display: grid;
  gap: 5px;
}

.stat-box small {
  color: var(--muted);
  font-size: 11px;
}

.stat-box strong {
  color: var(--navy);
  font-size: 23px;
  line-height: 1;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #edf1f8;
  overflow: hidden;
  margin-top: 10px;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  background: #ecf2ff;
  color: var(--blue);
}

.badge.green {
  background: #e4f8ee;
  color: var(--green);
}

.badge.orange {
  background: #fff4dd;
  color: #936103;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  font-size: 12px;
  color: #23334f;
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex: 0 0 10px;
}

.category-select-preview {
  display: inline-flex;
  margin-top: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
}

.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  color: #2a364d;
}

.table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.action-cell {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #354767;
  cursor: pointer;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.view:hover {
  color: var(--blue);
  border-color: #ccd9ff;
  background: #f5f8ff;
}

.icon-btn.edit:hover {
  color: #9a6a05;
  border-color: #f3e2bb;
  background: #fff8eb;
}

.icon-btn.delete:hover {
  color: var(--red);
  border-color: #f1ced1;
  background: #fff1f1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.incident-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.incident {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 14px 10px;
  font-weight: 700;
  cursor: pointer;
}

.incident:hover {
  border-color: #d2dcf1;
  background: #f8faff;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 15px;
  display: none;
  z-index: 9;
}

.drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(21, 39, 76, 0.14);
  z-index: 10;
  padding: 18px;
  transition: right 0.25s ease;
  overflow: auto;
}

.drawer.show {
  right: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  margin: 2px 0 0;
  color: var(--navy);
}

.drawer-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.notification-card {
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 39, 76, 0.07);
  padding: 12px;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #edf3ff;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.notification-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.notification-remove {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a96aa;
  background: transparent;
  cursor: pointer;
}

.notification-remove:hover {
  color: var(--red);
  border-color: #f1ced1;
  background: #fff1f1;
}

.notification-remove svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.notification-empty {
  border: 1px dashed #cfd9ec;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  text-align: center;
}

.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 56, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 12;
}

.modal-wrap.show {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 42px rgba(17, 30, 58, 0.25);
  padding: 16px;
}

.member-view-modal {
  width: min(620px, 100%);
}

.member-view-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, #f3f7ff 0%, #fbfdff 100%);
  padding: 14px;
  margin-bottom: 12px;
}

.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.member-view-hero h4 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--navy);
}

.member-view-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.member-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-view-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.member-view-item small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-view-item strong {
  color: #1f2f4f;
  font-size: 15px;
}

.wizard-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.step-pill {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #edf2ff;
  color: var(--blue);
}

.step-pill.current {
  background: var(--blue);
  color: #fff;
}

.wizard-screen {
  min-height: 220px;
}

