/* Club Court Manager — court reservation app (tenant-themed via /api/tenant/branding) */
:root {
  --brand-blue: #1b4f8b;
  --brand-blue-green: #299ed9;
  --accent: var(--brand-blue-green);
  --accent-hover: #2289c4;
  --accent-soft: #e8f4fc;
  --dark: var(--brand-blue);
  --light: hsl(210, 3%, 88%);
  --bg: hsl(0, 0%, 98%);
  --card: #ffffff;
  --text: hsl(210, 12%, 18%);
  --muted: hsl(210, 8%, 42%);
  --line: hsl(210, 3%, 88%);
  --good: hsl(152, 45%, 35%);
  --bad: hsl(0, 65%, 45%);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Header — white bar + logo like the club site */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

header.site.admin-mode {
  border-bottom-color: #eab308;
  box-shadow:
    0 0 0 1px rgba(234, 179, 8, 0.35),
    0 0 18px rgba(250, 204, 21, 0.45),
    0 4px 12px rgba(234, 179, 8, 0.2);
}

header.site .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

header.site a { color: var(--dark); text-decoration: none; }
header.site a:hover { color: var(--accent); text-decoration: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(510px, 85vw);
  object-fit: contain;
}

.brand-text {
  display: none;
}

.brand img.hide {
  display: none !important;
}

.brand.brand-text-only .brand-text {
  display: block;
}

.brand.brand-text-only .brand-text strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.brand-text span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

nav.main {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.main a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  opacity: 0.9;
}

nav.main a:hover { color: var(--accent); opacity: 1; }

.staging-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fbbf24;
  color: #92400e;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}
.staging-banner strong { font-weight: 600; }
.staging-banner a { color: #b45309; font-weight: 500; }

.terms-banner {
  background: #e8f4fc;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  color: #1e3a5f;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.terms-banner strong { font-weight: 600; }
.terms-banner a { color: #1b4f8b; font-weight: 500; }

/* Buttons — Squarespace rounded solid accent */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn:active:not(:disabled) {
  transform: scale(0.94) translateY(1px);
  background: var(--accent-hover);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.22);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

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

.btn.secondary:active:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn.danger { background: var(--bad); }

.btn.danger:hover { filter: brightness(0.95); }

.btn.danger:active:not(:disabled) {
  filter: brightness(0.88);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn.small { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled:not(.is-busy) { opacity: 0.65; cursor: not-allowed; }
.btn.is-busy {
  opacity: 1;
  cursor: wait;
  transform: scale(0.94) translateY(1px);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.22);
}
.btn.secondary.is-busy {
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
}
.btn.danger.is-busy { filter: brightness(0.88); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(247, 24, 95, 0.12);
  text-decoration: none;
}

.card-link h2 { color: var(--dark); }
.card-link:hover h2 { color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid.cols { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Forms */
label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 14px 0 6px;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
  color: hsl(210, 10%, 58%);
  opacity: 1;
  font-weight: 300;
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

.sch-block-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.sch-block-grid:has(#blockNoteWrap:not(.hide)) {
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
}
.sch-block-type { grid-column: 1; grid-row: 1; }
.sch-block-note:not(.hide) { grid-column: 2; grid-row: 1; }
.sch-block-from { grid-column: 2; grid-row: 1; }
.sch-block-grid:has(#blockNoteWrap:not(.hide)) .sch-block-from { grid-column: 3; }
.sch-block-through { grid-column: 3; grid-row: 1; }
.sch-block-grid:has(#blockNoteWrap:not(.hide)) .sch-block-through { grid-column: 4; }
.sch-block-actions {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.sch-block-grid:has(#blockNoteWrap:not(.hide)) .sch-block-actions { grid-column: 5; }
.sch-block-type select,
.sch-block-from input[type="date"],
.sch-block-through input[type="date"],
.sch-block-note input {
  width: 100%;
  box-sizing: border-box;
}
.sch-reset-range-line {
  grid-column: 2 / 4;
  grid-row: 2;
  text-align: center;
  margin: 0;
  padding-top: 8px;
}
.sch-block-grid:has(#blockNoteWrap:not(.hide)) .sch-reset-range-line {
  grid-column: 3 / 5;
}

.date-jump-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
}
.date-jump-row #todayBtn {
  flex: 0 0 auto;
  padding: 8px 14px;
  white-space: nowrap;
}
.date-jump-label {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
}
.date-jump-label input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 1rem;
}

/* Messages */
.msg {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  display: none;
  font-weight: 400;
}

.msg.show { display: block; }
.msg.msg-inline { margin: 10px 0 0; }
.msg.ok { background: hsl(152, 45%, 95%); color: var(--good); border: 1px solid hsl(152, 35%, 80%); }
.msg.pending { background: hsl(210, 55%, 96%); color: var(--dark); border: 1px solid hsl(210, 40%, 82%); }
.msg.err { background: #fef2f2; color: var(--bad); border: 1px solid hsl(0, 60%, 85%); }
.msg.msg-flash { animation: msg-pop 0.22s ease-out; }
@keyframes msg-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-rule {
  padding: 14px 16px;
  margin: 0 0 16px;
  border-radius: var(--radius);
  background: hsl(45, 90%, 94%);
  border: 1px solid hsl(45, 70%, 75%);
  color: hsl(35, 50%, 28%);
  font-size: 0.95rem;
  line-height: 1.5;
}
.notice-rule strong { font-weight: 600; }
.notice-rule-detail { display: block; margin-top: 6px; }

.muted { color: var(--muted); font-weight: 300; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--light);
  color: var(--dark);
}

.tag.admin { background: var(--accent-soft); color: var(--accent-hover); }
.tag.suspended { background: #fef3c7; color: #92400e; }
.tag.ok { background: #ecfdf5; color: #065f46; }

table { width: 100%; border-collapse: collapse; }
.roster-table { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.roster-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.roster-actions { white-space: nowrap; }

.roster-id-thumb {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--light);
}

a:hover .roster-id-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th { font-weight: 500; color: var(--dark); }

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}

.flow-step.active,
.flow-step.done { opacity: 1; }

.flow-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: var(--card);
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.flow-step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.25;
}

.flow-step-label small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.flow-step.active .flow-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.flow-step.done .flow-step-num {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
  font-size: 0;
}

.flow-step.done .flow-step-num::before {
  content: '✓';
  font-size: 1rem;
  line-height: 1;
}

.flow-step-connector {
  flex: 0 0 48px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin: 0 12px;
  transition: background 0.2s ease;
}

.flow-steps.connector-on .flow-step-connector { background: var(--good); }

.card.flow-highlight {
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: var(--accent);
}

/* Booking grid */
.book { overflow: auto; }
.book table { min-width: 520px; table-layout: fixed; }
.book thead th.time-col,
.book tbody td.time-col { width: 4.5rem; }
.book thead th.court-col {
  text-align: center;
  white-space: nowrap;
  padding: 8px 4px;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book tbody td {
  padding: 6px 4px;
  vertical-align: middle;
}

.slot {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid hsl(152, 35%, 68%);
  border-radius: var(--radius);
  background: hsl(152, 45%, 95%);
  color: var(--good);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  user-select: none;
  box-sizing: border-box;
}

.slot:hover { outline: 2px solid var(--accent); }
.slot.taken {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
  cursor: pointer;
}
.slot.mine {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  border-color: var(--brand-blue-green);
  cursor: pointer;
}
.slot.event { cursor: pointer; }
.slot.picked { background: var(--accent-soft); color: var(--brand-blue); font-weight: 600; outline: 2px solid var(--brand-blue-green); }
.slot.block-pending {
  font-weight: 600;
  outline: 2px dashed currentColor;
  outline-offset: -3px;
}
.slot.sel { box-shadow: inset 0 0 0 2px var(--accent); }

/* Compact court availability grid (badge layout) */
.cag-wrapper { width: 100%; font-family: inherit; box-sizing: border-box; }
.cag-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #E5E3DA; }
.cag-legend-item { display: flex; align-items: center; gap: 6px; }
.cag-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cag-legend-label { font-size: 12px; color: #5F5E5A; }
.cag-block { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1EFE8; }
.cag-header { border-bottom: 1px solid #E5E3DA; padding-bottom: 10px; margin-bottom: 2px; }
.cag-time-col { width: 48px; flex-shrink: 0; font-size: 13px; color: #5F5E5A; }
.cag-time-header { font-size: 11px; color: #888780; }
.cag-chunk-stack { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.cag-chunk-row { display: flex; justify-content: space-between; gap: 6px; }
.cag-court-num {
  background: transparent; color: #5F5E5A;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 600; line-height: 1.05; text-align: center; gap: 1px;
}
.cag-court-word { font-weight: 600; }
.cag-court-id { font-weight: 700; line-height: 1; width: 100%; text-align: center; }
.cag-badge {
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: filter 0.12s, transform 0.1s;
}
.cag-badge:not(:disabled):hover { filter: brightness(0.95); }
.cag-badge:not(:disabled):active { transform: scale(0.9); }
.cag-badge:focus-visible { outline: 2px solid #0C447C; outline-offset: 2px; }
.cag-badge--locked { cursor: default; }
.cag-badge.cag-picked {
  box-shadow: 0 0 0 4px var(--accent);
  transform: scale(1.12);
  z-index: 2;
  position: relative;
}
.cag-badge.cag-sel { box-shadow: 0 0 0 2px #1D4ED8; }
.cag-group-panel { margin-bottom: 12px; border: 1px solid #E5E3DA; border-radius: 10px; overflow: hidden; }
.cag-group-panel > summary.cag-group-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #FAF9F6; border-bottom: 1px solid #E5E3DA; font-weight: 600;
}
.cag-group-panel > summary.cag-group-summary::-webkit-details-marker { display: none; }
.cag-group-panel[open] > summary.cag-group-summary { border-bottom-color: #E5E3DA; }
.cag-group-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cag-group-title { flex: 1; color: #1B3A6B; }
.cag-group-meta { font-size: 12px; font-weight: 500; color: #5F5E5A; }
.cag-group-panel .cag-block:last-child { border-bottom: none; }
.cag-group-panel .cag-wrapper > .cag-legend { display: none; }
.cag-group-panel .cag-wrapper { padding: 0 8px 8px; }
@keyframes sch-row-flash {
  0%, 100% { background: transparent; }
  25%, 75% { background: rgba(42, 157, 143, 0.18); }
}
tr.sch-row-flash { animation: sch-row-flash 1.6s ease; }

.time-col {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
  padding-right: 8px;
}

.center { text-align: center; }
.hide { display: none; }

/* Modal dialog (member edit) */
dialog.member-dlg {
  position: fixed;
  inset: unset;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
dialog.member-dlg::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* Tabs */
.tabs, .sign-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.tabs button, .sign-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.tabs button:hover:not(.active), .sign-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.tabs button:active:not(.active), .sign-tab:active:not(.active) {
  transform: scale(0.97);
  background: var(--accent-soft);
}

.tabs button.active, .sign-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tabs button.active:active, .sign-tab.active:active {
  transform: scale(0.97);
  background: var(--accent-hover);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

.sign-panel { margin-top: 12px; }
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--navy);
}
.legal-doc p {
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

/* Page intro band */
.page-intro {
  margin-bottom: 8px;
}

.page-intro h1 { margin-bottom: 0.35rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 24px 20px;
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site a { color: var(--accent); font-weight: 500; }

footer.site .platform-footer {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: hsl(210, 8%, 55%);
}

/* Admin bulk email */
.email-preview {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  max-width: 560px;
}

.email-preview-body {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--line);
}

.email-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.email-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.85rem;
}

.email-file-chip img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}

.email-file-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

.email-file-remove:hover { color: var(--accent); }

.email-progress { margin-top: 16px; }

.email-progress-bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.email-progress-bar div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.email-failed-list {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid hsl(205, 60%, 85%);
  border-radius: var(--radius);
  font-size: 0.9rem;
  max-height: 220px;
  overflow: auto;
}
.email-failed-list ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}
.email-failed-list li { margin: 4px 0; }

.email-roster {
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
  background: #fff;
}

.email-roster thead th {
  background: #fff;
  box-shadow: 0 2px 0 var(--line);
}

/* Player board (Find a Player) */
.board-post {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fff;
}
.board-post-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board-replies {
  border-left: 3px solid var(--accent-soft);
  margin: 12px 0;
  padding-left: 14px;
}
.board-reply {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.board-reply:last-child { border-bottom: none; }
.board-reply-form textarea {
  width: 100%;
  margin-bottom: 8px;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.email-roster table { margin: 0; }

.email-roster th:first-child,
.email-roster td:first-child {
  width: 36px;
}

@media (max-width: 720px) {
  .brand img { height: 84px; }
  header.site .header-inner { flex-wrap: wrap; }
  nav.main { width: 100%; justify-content: flex-start; gap: 14px; }
  body { font-size: 16px; }

  /* Login page — compact header, centered logo, no nav */
  body.page-login header.site .header-inner {
    justify-content: center;
    flex-wrap: nowrap;
    padding: 8px 16px 10px;
  }
  body.page-login nav.main { display: none; }
  body.page-login .brand { justify-content: center; }
  body.page-login .brand img { height: 72px; }
  body.page-login .container { padding: 12px 16px 24px; }
  body.page-login .card {
    padding: 16px;
    margin: 10px 0;
  }
  body.page-login h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
  body.page-login h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
  body.page-login .sign-tabs { margin-top: 8px; }
  body.page-login .sign-panel { margin-top: 8px; }
  body.page-login .sign-panel > .muted:first-child { margin-top: 0; }
  body.page-login footer.site { display: none; }
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.password-wrap input {
  flex: 1;
  padding-right: 4.5rem;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  background: var(--warm-white, #f9f6f0);
  color: var(--navy, #1b4f8b);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}
.password-toggle:hover {
  background: #fff;
  border-color: var(--navy, #1b4f8b);
}
}
