.member-box { max-width: 920px; }
.member-box h1 { font-size: 1.55rem; margin: 0 0 .35rem; }
.member-box h2 { font-size: 1.12rem; margin: 0 0 .8rem; }
.member-box p.lead { color: var(--muted); margin: 0 0 1.1rem; }
.panel {
  background: #fff; border-radius: 18px; padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 8px 28px rgba(18,21,26,.06);
  margin: 0 0 1.15rem;
}
.dash-top {
  display: grid; grid-template-columns: 1.4fr .7fr; gap: 1rem; margin-bottom: 1.15rem;
}
.field { margin: 0 0 1rem; }
.field label { display: block; font-size: .88rem; margin-bottom: .3rem; color: var(--muted); }
.field input[type=email],
.field input[type=password],
.field input[type=text],
.field input[type=date],
.field input[type=file],
.field select,
.inline-form select {
  width: 100%; padding: .75rem .85rem; border-radius: 12px;
  border: 1px solid rgba(18,21,26,.14); font: inherit; background: #fff;
}
.admin-box { max-width: 1100px; }
.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}
.admin-toolbar {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin: 0 0 1rem;
}
.admin-toolbar .grow { flex: 1 1 16rem; margin-bottom: 0; }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem 1rem; margin-bottom: 1rem;
}
.form-grid .wide { grid-column: 1 / -1; }
.field textarea {
  width: 100%; min-height: 8rem; padding: .75rem .85rem; border-radius: 12px;
  border: 1px solid rgba(18,21,26,.14); font: inherit; background: #fff;
  resize: vertical; line-height: 1.45;
}
.table-wrap { overflow-x: auto; }
.admin-actions {
  display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem;
}
.tiny.danger { background: #8a2c14; }
.tiny.danger:hover { background: #6d210e; }
.tiny.ghost {
  background: #fff; color: var(--ink); border: 1px solid rgba(18,21,26,.18);
}
.tiny.ghost:hover { background: var(--ink); color: #fff; }
.inline-form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.inline-form select, .inline-form input[type=text], .inline-form input[type=password] {
  width: auto; padding: .35rem .55rem; border-radius: 10px;
  border: 1px solid rgba(18,21,26,.14); font: inherit;
}
.inline-form.wrap { flex-wrap: wrap; margin-top: .4rem; }
.row-actions { white-space: nowrap; }
.row-actions .inline-form { display: inline-flex; margin-left: .35rem; vertical-align: middle; }
.cert-toolbar {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem;
}
.table th.check, .table td.check { width: 2.2rem; text-align: center; }
.table td.check input, .table th.check input { width: 1rem; height: 1rem; accent-color: var(--teal); }
.table {
  width: 100%; border-collapse: collapse; background: #fff;
}
.table th, .table td {
  text-align: left; padding: .72rem .8rem; font-size: .92rem;
  border-bottom: 1px solid rgba(18,21,26,.07); vertical-align: middle;
}
.table thead th {
  color: var(--muted); font-weight: 600; font-size: .8rem;
  letter-spacing: .04em; text-transform: none; background: #f7f4ee;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #faf8f3; }
.table.profile th { width: 8.2rem; font-weight: 600; color: var(--muted); background: #f7f4ee; }
.badge {
  display: inline-block; border-radius: 999px; padding: .18rem .6rem;
  font-size: .78rem; font-weight: 700;
}
.st-attended { background: #e7f4f2; color: #1f6f6a; }
.st-registered { background: #d7eee2; color: #0b4a36; }
.st-absent { background: #fde8e4; color: #8a2c14; }
.st-no { background: #fff4e6; color: #c45c26; }
.signup-status {
  color: #0b4a36;
  font-weight: 700;
  margin: .65rem 0 0;
}
.flash { padding: .7rem .9rem; border-radius: 12px; margin-bottom: 1rem; }
.flash.err { background: #fde8e4; color: #8a2c14; }
.flash.ok { background: #e7f4f2; color: #1f6f6a; }
.stat-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-big { font-size: 2.6rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-card .lead { margin: .45rem 0 0; }
.tiny {
  background: var(--ink); color: #fff; border: 0; cursor: pointer; font: inherit;
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .35rem .7rem;
  text-decoration: none; display: inline-block;
}
a.tiny { color: #fff; }
.tiny:hover { background: var(--teal); color: #fff; }
.tiny:disabled {
  background: #c8c3bb;
  color: #f4f1ea;
  cursor: not-allowed;
}
.tiny:disabled:hover {
  background: #c8c3bb;
  color: #f4f1ea;
}
.forgot-wrap { margin: .9rem 0 0; }
.forgot-link {
  background: none; border: 0; padding: 0; color: var(--muted);
  font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline;
  text-underline-offset: .18em;
}
.forgot-link:hover { color: var(--teal); }
.pw-reset-draft {
  background: #f7f4ee; border-radius: 12px; padding: 1rem 1.05rem;
  white-space: pre-wrap; font: inherit; font-size: .9rem; line-height: 1.55;
  margin: 0 0 1rem; color: var(--ink);
}
.tick { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0; font-size: .92rem; }
.editable { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.edit-input {
  flex: 1 1 12rem; min-width: 10rem; padding: .4rem .55rem; border-radius: 10px;
  border: 1px solid rgba(18,21,26,.16); font: inherit;
}
.edit-btn {
  border: 1px solid var(--teal); background: #fff; color: var(--teal);
  border-radius: 999px; padding: .22rem .7rem; font: inherit; font-size: .8rem;
  font-weight: 700; cursor: pointer;
}
.edit-btn:hover { background: var(--teal); color: #fff; }
.signup h3.signup-title { font-size: 1.05rem; line-height: 1.45; margin: 0 0 .8rem; }
.signup p { margin: 0 0 .65rem; }
.signup ul { margin: 0 0 1rem 1.1rem; }
.signup .invite-meta {
  background: #f7f4ee; border-radius: 14px; padding: 1rem 1.1rem; margin: .8rem 0 1rem;
}
.signup .invite-meta p { margin: 0 0 .4rem; }
.signup .invite-meta p:last-child { margin-bottom: 0; }
.signup-card {
  border-top: 1px solid rgba(18,21,26,.08);
  padding: 1rem 0 0;
  margin-top: 1rem;
}
.signup-card:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.promo-html img { max-width: 100%; height: auto; }
.ph-open { background: #e7f4f2; color: #1f6f6a; }
.ph-closed { background: #fff4e6; color: #c45c26; }
.ph-ended { background: #eceae4; color: #5c5852; }
.ph-cancelled { background: #fde8e4; color: #8a2c14; }
.ph-pending { background: #eef1f6; color: #4a5568; }
.member-nav a { padding: .35rem .55rem; border-radius: 8px; font-size: .85rem; }
.member-nav a:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .dash-top { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .table.profile th { width: 6rem; }
}
