:root {
  --ink: #1a1a1a;
  --muted: #6a6a6a;
  --rule: #e2dfd8;
  --bg: #faf7f0;
  --card: #ffffff;
  --accent: #5a3a1e;
  --accent-hover: #3e2712;
  --success-bg: #e8f4ea;
  --success-ink: #1f5f2a;
  --error-bg: #fdeceb;
  --error-ink: #8a2a2a;
  --warn-bg: #fff4d5;
  --warn-ink: #7a5d00;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px 80px;
}

.page.centered { text-align: center; padding-top: 60px; }

.hero { text-align: center; margin-bottom: 28px; }

.logo {
  max-width: 170px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
  border-radius: 10px;
}
.logo.big { max-width: 220px; margin-bottom: 28px; }

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 20px;
}

.lead {
  background: #fff6f0;
  border: 1px solid #e8d6c6;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--error-ink);
  font-size: 13px;
  margin: 0;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid transparent;
}
.notice.success {
  background: var(--success-bg);
  border-color: #a9d8b1;
  color: var(--success-ink);
}
.notice.error {
  background: var(--error-bg);
  border-color: #e6b9b6;
  color: var(--error-ink);
}
.notice-sub { font-weight: 400; font-size: 13px; margin-top: 4px; }

.agreement {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.agreement h2 {
  font-size: 14px;
  margin: 20px 0 6px;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.agreement h2:first-child { margin-top: 0; }
.agreement p {
  margin: 6px 0;
  font-size: 14px;
  color: #2b2b2b;
}
.agreement p.bullet {
  margin-left: 14px;
  position: relative;
  padding-left: 14px;
}
.agreement p.bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.sign-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.form-title {
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--accent);
}

fieldset.role-pick {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px 14px;
  margin: 0 0 16px;
  background: #fafaf2;
}
fieldset.role-pick legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.role-opt:hover { border-color: var(--accent); }
.role-opt input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.role-opt span {
  display: flex;
  flex-direction: column;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.role-opt span strong { font-size: 15px; margin-bottom: 2px; }
.role-opt span small { color: var(--muted); font-size: 12px; }
.role-opt:has(input:checked) { border-color: var(--accent); background: #fffdf6; }

.guest-only {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 6px 0 10px;
}
.guest-only label { margin-bottom: 12px; display: block; }

.headshot-field input[type=file] {
  padding: 8px;
  border: 1px dashed #cfc9bd;
  border-radius: 7px;
  background: #fffdf8;
  width: 100%;
  font: inherit;
}
.headshot-field small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-style: italic;
}
.headshot-preview {
  margin-top: 10px;
}
.headshot-preview img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  object-fit: cover;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

label { display: block; }
label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  background: #fffdf8;
  font: inherit;
  color: var(--ink);
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.15);
}

label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fafaf2;
  margin: 6px 0 16px;
  cursor: pointer;
}
label.check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
label.check span {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}

label.signature small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-style: italic;
}
label.signature input {
  font-family: "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 26px;
  padding: 10px 12px;
}

/* Default primary submit — only applies to buttons without a more specific
   class. Any button with .btn, .btn-mini, .icon-btn, .link-btn, .pill, or
   .rsvp-submit escapes this rule and uses its own styling. */
button[type=submit]:not(.btn):not(.btn-mini):not(.icon-btn):not(.link-btn):not(.pill):not(.rsvp-submit):not(.sort-btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.12s ease;
}
button[type=submit]:not(.btn):not(.btn-mini):not(.icon-btn):not(.link-btn):not(.pill):not(.rsvp-submit):not(.sort-btn):hover:not(:disabled) { background: var(--accent-hover); }
button[type=submit]:not(.btn):not(.btn-mini):not(.icon-btn):not(.link-btn):not(.pill):not(.rsvp-submit):not(.sort-btn):disabled { opacity: 0.8; cursor: default; }
.submit-spin { display: inline-flex; align-items: center; gap: 10px; }
.submit-spin[hidden] { display: none; }
.headshot-preview[hidden] { display: none; }
.preview-wrap[hidden] { display: none; }
.two-choices[hidden] { display: none; }
.notice[hidden] { display: none; }
.spouse-fields[hidden] { display: none; }
.member-only[hidden], .guest-only[hidden] { display: none; }
.mini-spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 22px 0 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.big-lead { font-size: 19px; color: #333; margin: 0 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px;
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: left;
}
.card p { margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.footnote { color: var(--muted); font-size: 13px; }

.admin { max-width: 1100px; }
/* ============================================================
   LOL dashboard — Yodi-inspired 3-column feed layout
   Warm tans + gold accent instead of Yodi's cool gradient.
   ============================================================ */
.lol-feed-body {
  background: #faf7ef;
  color: #2a2414;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}
.lol-feed-layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 24px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.lol-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; }
.lol-feed-center { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1080px) {
  .lol-feed-layout { grid-template-columns: 1fr 320px; }
  .lol-side-left { display: none; }
}
@media (max-width: 780px) {
  .lol-feed-layout { grid-template-columns: 1fr; gap: 14px; padding: 16px 14px 48px; }
  .lol-side-right { display: contents; }
  .lol-side { position: static; }
}

/* Cards — the core surface. */
.lol-card {
  background: #fff;
  border: 1px solid #ece6d3;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.04),
              0 8px 24px rgba(166, 153, 109, 0.06);
}
.lol-card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 10px;
  line-height: 1.3;
}
.lol-card-body { font-size: 14px; line-height: 1.55; }
.lol-card-body p:first-child { margin-top: 0; }
.lol-card-header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 10px;
}
.lol-card-more {
  font-size: 13px; font-weight: 600; color: #8a7440;
  text-decoration: none;
}
.lol-card-more:hover { color: #6b5a2f; }
.lol-muted { color: #8a7a5b; font-size: 13px; }
.lol-empty { padding: 10px 0; font-size: 14px; }

/* Profile card — sits at top of left rail. */
.lol-profile-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 22px 18px;
  background: #fff; border: 1px solid #ece6d3; border-radius: 14px;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.04),
              0 8px 24px rgba(166, 153, 109, 0.06);
}
.lol-profile-card:hover { border-color: #d8c9a0; }
.lol-profile-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #c49a2e, #8d7028);
  color: #fff; font-weight: 700; font-size: 24px;
  text-transform: uppercase; overflow: hidden;
}
.lol-profile-avatar-photo { background: #f4efdf; }
.lol-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lol-profile-name { font-weight: 700; font-size: 16px; margin-top: 6px; }
.lol-profile-sub { color: #8a7a5b; font-size: 12px; }

/* Side nav block. */
.lol-side-nav {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #ece6d3; border-radius: 14px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.04),
              0 8px 24px rgba(166, 153, 109, 0.06);
}
.lol-side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: #2a2414; text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background 0.12s ease;
}
.lol-side-nav a:hover { background: #f7f0e0; }
.lol-side-nav .lol-nav-ico {
  width: 20px; text-align: center; font-size: 16px; opacity: 0.85;
}
.lol-nav-admin {
  background: #fff4d5; color: #6b4f00 !important; margin-top: 4px;
  border: 1px solid #e6ca7a;
}
.lol-nav-admin:hover { background: #ffe8a6 !important; }

/* Calendar-subscribe as a collapsible card in the left rail. */
.lol-calendar-card { padding: 12px 16px; }
.lol-calendar-card summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14px;
}
.lol-calendar-card summary::-webkit-details-marker { display: none; }
.lol-calendar-card[open] .lol-chevron { transform: rotate(90deg); }
.lol-chevron { transition: transform 0.15s ease; opacity: 0.55; font-size: 18px; }
.lol-calendar-card p { margin: 8px 0; font-size: 13px; color: #8a7a5b; }
.lol-mini-link {
  display: block; padding: 6px 0; font-size: 13px;
  color: #8a7440; text-decoration: none; font-weight: 600;
}
.lol-mini-link:hover { color: #6b5a2f; }

/* Hero at top of center feed. */
.lol-feed-hero h1 {
  font-size: 28px; font-weight: 700; margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lol-feed-hero p { margin: 0; }

/* Announcement cards. */
.lol-announcement.is-pinned {
  border-color: #e6ca7a; background: #fffbe9;
}
.lol-pin {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8d7028; background: #fff4d5; padding: 3px 8px; border-radius: 4px;
  margin-bottom: 8px;
}
.lol-joe-audio {
  display: flex; gap: 12px; align-items: center;
  margin: 12px 0 8px;
  padding: 12px; background: #fffbe9;
  border: 1px solid #efd88f; border-radius: 10px;
}
.lol-joe-audio-portrait {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.lol-joe-audio-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #6b4f00; margin-bottom: 4px;
}
.lol-joe-audio audio { width: 100%; }

/* Event list inside the feed card. */
.lol-event-list { display: flex; flex-direction: column; }
.lol-event-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid #f1ebdb;
  text-decoration: none; color: inherit;
  transition: background 0.1s ease;
  margin: 0 -8px; padding-left: 8px; padding-right: 8px;
  border-radius: 8px;
}
.lol-event-row:last-child { border-bottom: 0; }
.lol-event-row:hover { background: #f7f0e0; }
.lol-event-date {
  flex-shrink: 0; width: 48px; text-align: center;
  background: #fff4d5; border: 1px solid #efd88f; border-radius: 8px;
  padding: 4px 0;
}
.lol-event-month {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: #8d7028; font-weight: 700;
}
.lol-event-day {
  display: block; font-size: 20px; font-weight: 700; color: #2a2414;
  line-height: 1;
}
.lol-event-body { flex: 1; min-width: 0; }
.lol-event-body h3 {
  font-size: 15px; font-weight: 600; margin: 0 0 2px;
}
.lol-event-meta { font-size: 12px; }
.lol-event-arrow { color: #c4b78f; font-size: 22px; flex-shrink: 0; }

/* Right rail — leaderboard + birthdays. */
.lol-side-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8a7a5b; font-weight: 700; margin: 0 0 12px;
}
.lol-me-score {
  font-size: 13px; padding: 8px 10px; margin: -4px -4px 10px;
  background: #fffbe9; border: 1px solid #efd88f; border-radius: 8px;
}
.lol-leaderboard { list-style: none; padding: 0; margin: 0; }
.lol-lb-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 13px;
  border-bottom: 1px solid #f1ebdb;
}
.lol-lb-row:last-child { border-bottom: 0; }
.lol-lb-row.is-me { font-weight: 700; color: #6b5a2f; }
.lol-lb-rank { width: 28px; text-align: right; color: #8a7a5b; font-weight: 600; font-size: 12px; }
.lol-lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lol-lb-count {
  flex-shrink: 0; font-weight: 700; color: #8d7028;
  background: #fff4d5; padding: 2px 8px; border-radius: 10px; font-size: 12px;
}

/* Career tournament stats card. */
.career-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem; margin-bottom: 0.6rem;
}
.career-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem; background: #fffbe9; border: 1px solid #efd88f; border-radius: 8px;
}
.career-stat .num { font-size: 22px; font-weight: 700; color: #6b4f00; line-height: 1.1; }
.career-stat .label { font-size: 11px; color: #8a7a5b; text-transform: uppercase; letter-spacing: 0.06em; }
.career-recent { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 0.3rem; }
.career-recent li { display: flex; align-items: center; gap: 0.4rem; font-size: 13px; }
.career-medal { font-size: 14px; flex-shrink: 0; }
.career-recent-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.career-recent a { color: inherit; text-decoration: none; }
.career-recent a:hover { color: #8d7028; }

/* Birthday list on right rail. */
.lol-birthday-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lol-birthday-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px; background: #fffbe9; border-radius: 8px;
  border: 1px solid #efd88f;
}
.lol-birthday-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f4c85f, #c99124);
  color: #3d2b0a; font-weight: 700; font-size: 12px;
}
.lol-birthday-avatar.photo { object-fit: cover; background: transparent; }
.lol-birthday-name { font-weight: 600; font-size: 13px; }
.lol-birthday-when { font-size: 11px; }

/* ----- Shared top nav bar (member + admin) ----- */
.member-topnav,
.admin-topnav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: #fdfaf2;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.member-topnav-brand,
.admin-topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, #2a2414);
  flex-shrink: 0;
}
.member-topnav-logo,
.admin-topnav-logo { width: 36px; height: 36px; border-radius: 5px; display: block; }
.member-topnav-wordmark,
.admin-topnav-wordmark { font-weight: 700; font-size: 15px; letter-spacing: 0.2px; }

/* --- Desktop link strip (inline in the nav bar) --- */
.member-topnav-links,
.admin-topnav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; flex-wrap: wrap;
  flex: 1;
}
.member-topnav-links a,
.admin-topnav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  color: #4a4230;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.12s ease;
}
.member-topnav-links a:hover,
.admin-topnav-links a:hover { background: rgba(166, 153, 109, 0.18); }
/* Hide Lucide icons in desktop nav links (only shown in mobile drawer) */
.member-topnav-links a svg,
.admin-topnav-links a svg { display: none; }

/* --- Desktop action buttons --- */
.member-topnav-actions,
.admin-topnav-actions {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.member-topnav-actions .btn-mini,
.admin-topnav-actions .btn-mini {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  background: #fff; border: 1px solid #cfc9bd; border-radius: 6px;
  color: #4a4230; text-decoration: none;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.member-topnav-actions .btn-mini:hover,
.admin-topnav-actions .btn-mini:hover { background: #fcf7e8; border-color: var(--accent); }
.member-topnav-actions .admin-switch,
.admin-topnav-actions .admin-switch {
  background: #fff4d5; border-color: #c49a2e; color: #6b4f00;
}
.member-topnav-actions .admin-switch:hover,
.admin-topnav-actions .admin-switch:hover { background: #ffe8a6; }
.admin-topnav-compose {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.admin-topnav-compose:hover {
  background: #8d7e50 !important;
  border-color: #8d7e50 !important;
}

/* --- Drawer wrapper (desktop: invisible, just passes through) --- */
.topnav-drawer {
  display: contents;
}

/* --- Backdrop overlay (hidden on desktop) --- */
.topnav-backdrop {
  display: none;
}

/* --- Hamburger button (hidden on desktop) --- */
.topnav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: #fff;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  color: var(--ink, #2a2414);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.topnav-hamburger:hover { background: #fcf7e8; border-color: var(--accent); }
.topnav-hamburger svg { width: 22px; height: 22px; display: block; }
.topnav-hamburger .icon-close { display: none; }
.admin-topnav.is-open .topnav-hamburger .icon-open,
.member-topnav.is-open .topnav-hamburger .icon-open { display: none; }
.admin-topnav.is-open .topnav-hamburger .icon-close,
.member-topnav.is-open .topnav-hamburger .icon-close { display: block; }

/* ============================================================
   MOBILE NAV (full-width slide-down drawer)
   ============================================================ */
@media (max-width: 820px) {
  .topnav-hamburger { display: inline-flex; }

  .member-topnav,
  .admin-topnav {
    padding: 10px 16px;
    gap: 8px;
    position: relative;
  }
  .member-topnav-wordmark,
  .admin-topnav-wordmark { display: inline; }

  /* Drawer: drops down from under the nav bar as an overlay */
  .topnav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 600;
    background: #fdfaf2;
    border-bottom: 2px solid var(--rule);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 16px 16px;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .member-topnav.is-open .topnav-drawer,
  .admin-topnav.is-open .topnav-drawer {
    display: flex;
  }

  /* Link list (stacked, full-width, big touch targets) */
  .member-topnav-links,
  .admin-topnav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin-bottom: 6px;
  }
  .member-topnav-links a,
  .admin-topnav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    color: #2a2414;
    transition: background 0.12s ease;
  }
  .member-topnav-links a:hover,
  .member-topnav-links a:active,
  .admin-topnav-links a:hover,
  .admin-topnav-links a:active {
    background: rgba(166, 153, 109, 0.12);
  }
  /* Show Lucide icons in mobile drawer */
  .member-topnav-links a svg,
  .admin-topnav-links a svg {
    display: block;
    width: 20px; height: 20px;
    flex-shrink: 0;
    opacity: 0.55;
  }

  /* Action buttons (stacked, full-width) */
  .member-topnav-actions,
  .admin-topnav-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .member-topnav-actions .btn-mini,
  .admin-topnav-actions .btn-mini {
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    justify-content: center;
    border-radius: 10px;
  }

  /* Backdrop (tap to close) */
  .topnav-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 499;
    background: rgba(0,0,0,0.25);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.admin-head h1 { font-size: 24px; }
/* Logo mark in the top-left of every admin page — consistent branding +
   one-click return to the admin dashboard. */
.admin-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.admin-brand-logo {
  width: 52px; height: 52px;
  display: block;
  border-radius: 6px;
}
@media (max-width: 520px) {
  .admin-brand-logo { width: 40px; height: 40px; }
}
/* Lightweight wordmark + version in admin page footers. */
.admin-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 0.8rem;
  justify-content: center; flex-wrap: wrap;
  color: #8a7a5b; font-size: 13px;
}
.admin-foot img { width: 22px; height: 22px; opacity: 0.8; border-radius: 3px; }
.admin-foot .sep { opacity: 0.5; }
.admin-head-search { flex: 1; min-width: 220px; max-width: 360px; margin: 0 !important; }
.admin-head-search input { margin: 0; }
.actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn.secondary:hover { background: #faf3ec; }

.searchbox { margin: 12px 0 18px; }
.searchbox input {
  width: 100%;
  max-width: 360px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  line-height: 1;
  box-sizing: border-box;
}

table.signers {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
table.signers th, table.signers td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
table.signers th {
  background: #f5f0e4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
table.signers tr:last-child td { border-bottom: 0; }
table.signers a { color: var(--accent); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge.ok { background: var(--success-bg); color: var(--success-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.guest { background: #e9eefa; color: #1f3e82; }
.badge.honorary { background: #f3e7d4; color: #7a5d00; }
.badge.patron { background: #eae4ff; color: #3c2a78; }
.badge.adults-badge { background: #ede7f3; color: #4a2a6b; }

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Filter dropdown (replaces pills) */
.filter-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-select-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0 36px 0 16px;
  height: 36px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'><path fill='%235a3a1e' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  min-width: 180px;
}
.filter-select:hover { border-color: var(--accent); }
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.12);
}
.pill {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.pill:hover { background: #faf3ec; }
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-actions {
  display: flex;
  gap: 8px;
}
.sep { color: var(--rule); padding: 0 4px; }

.dlg {
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  max-width: 460px;
  width: 92%;
}
.dlg::backdrop { background: rgba(0,0,0,0.35); }
.dlg {
  position: relative;
}
.dlg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.dlg-close:hover {
  background: #faf3ec;
  color: var(--accent);
}
.dlg-form {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dlg-form h2 {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 20px;
}
.dlg-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  background: #fffdf8;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, "Menlo", monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 140px;
}
.dlg-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  background: #fffdf8;
  font: inherit;
}
.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.dlg-form .role-pick.compact {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  margin: 0;
}
.dlg-form .role-pick.compact .role-opt { margin-top: 0; flex: 1; min-height: 0; padding: 8px; }
.dlg-form .role-pick.compact .role-opt span strong { font-size: 13px; }

.role-pick.compact {
  padding: 8px 12px 10px;
}
.role-pick.compact .role-opt.tight {
  display: inline-flex;
  margin-top: 6px;
  margin-right: 6px;
  padding: 6px 12px;
  min-height: 0;
}
.role-pick.compact .role-opt.tight span strong { font-size: 14px; }
.role-pick.compact .role-opt.tight span small { display: none; }

.spouse-fields {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 6px 0 10px;
}

.thumb {
  display: inline-block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #eee;
  text-align: center;
  line-height: 44px;
  color: #999;
  vertical-align: middle;
}
.thumb.placeholder { font-weight: 700; }

.btn-mini,
button.btn-mini[type=submit] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 4px 10px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-mini:hover:not(:disabled) { background: #faf3ec; }
.btn-mini:disabled { opacity: 0.5; cursor: default; }
.btn-mini.danger {
  color: #8a2a2a;
  border-color: #d4a7a3;
}
.btn-mini.danger:hover:not(:disabled) { background: #fdeceb; }

.row-actions {
  white-space: nowrap;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

table.signers.compact th,
table.signers.compact td {
  padding: 8px 10px;
  vertical-align: middle;
  font-size: 13.5px;
}
table.signers.compact th {
  font-size: 11px;
  color: var(--muted);
  background: #f5f0e4;
  border-bottom: 1px solid var(--rule);
}

.col-photo { width: 48px; padding-right: 0 !important; }
.col-role { width: 110px; }
.col-contact { min-width: 180px; max-width: 260px; }
.col-contact a { word-break: break-all; }
.col-signed { width: 170px; color: var(--muted); }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  font-weight: 500;
}
.pdf-link:hover { text-decoration: underline; }
.pdf-icon {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.check.tight {
  padding: 10px 12px;
  margin: 4px 0;
}
.check.tight.stacked { margin-top: 22px; }
.check.tight span {
  font-size: 13px;
}

.linked-family {
  background: #fffaf1;
  border: 1px solid #e8d6c6;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 6px 0 4px;
}
.linked-family[hidden] { display: none; }
.fam-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.fam-row {
  margin: 6px 0;
  font-size: 13.5px;
}
.fam-label {
  display: inline-block;
  min-width: 72px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  vertical-align: top;
}
.fam-kids {
  margin: 4px 0 0 78px;
  padding: 0;
  list-style: none;
}
.fam-kids li { padding: 2px 0; }

/* --- Events list + detail --- */
/* ============================================================
   PUBLIC EVENTS PAGES — Live Oak Lounge
   ============================================================ */

.events-body { background: var(--bg); }

.events-page { max-width: 920px; }

/* --- Hero on events list --- */
.events-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo copy"
    "actions actions";
  column-gap: 22px;
  row-gap: 14px;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 28px;
  background:
    radial-gradient(ellipse at top left, rgba(90, 58, 30, 0.08), transparent 60%),
    linear-gradient(135deg, #f5ede0 0%, #faf7f0 100%);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(90, 58, 30, 0.06);
}

/* Wide-logo hero variant (Events page) — logo centered above heading */
.events-hero-wide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px 24px;
}
.events-hero-logo-wide {
  width: min(320px, 70%);
  height: auto;
  margin: 0 auto 14px;
  display: block;
}
.events-hero-title {
  margin: 4px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.events-hero-wide .events-hero-sub {
  margin: 0 0 14px;
}
.events-hero-wide .events-hero-actions {
  justify-content: center;
}
.btn-link-small {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link-small:hover { color: var(--accent); }
.events-hero > .events-hero-logo,
.events-hero > .lol-square-logo { grid-area: logo; }
.events-hero-copy { grid-area: copy; min-width: 0; }
.events-hero-actions { grid-area: actions; }
.events-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(90, 58, 30, 0.14);
}
.events-hero-copy { flex: 1; min-width: 0; }
.events-hero-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.events-hero h1 {
  margin: 4px 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  line-height: 1.1;
}
.events-hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* CSS-based square logo: "L.O.L." in a cursive script on white */
.lol-square-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(90, 58, 30, 0.14);
  font-family: 'Kaushan Script', 'Brush Script MT', cursive;
  font-size: 30px;
  font-weight: 400;
  color: #2a2a2a;
  letter-spacing: 1px;
  padding-top: 4px;
  line-height: 1;
  user-select: none;
}
.lol-square-logo.lg { width: 96px; height: 96px; font-size: 40px; border-radius: 18px; padding-top: 6px; }

/* Hero button row (calendar + share) */
.events-hero-actions,
.event-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.events-hero-actions {
  width: 100%;
  flex-basis: 100%;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.12s ease, transform 0.08s ease;
  font-family: inherit;
}
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-icon { font-size: 14px; display: inline-block; }

/* Cross-nav switch between Admin and Member views — only shown for admins. */
.admin-switch {
  background: #fff4d5;
  border-color: #c49a2e;
  color: #6b4f00;
}
.admin-switch:hover { background: #ffe8a6; }

/* Birthdays this week — tiny grid on the dashboard. */
.birthdays-section .birthday-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}
.birthday-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  background: #fff9e6; border: 1px solid #f0dfa1; border-radius: 8px;
}
.birthday-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f4c85f, #c99124);
  color: #3d2b0a; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.birthday-avatar-photo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #f0dfa1;
}
.birthday-name { font-weight: 600; flex: 1; min-width: 0; }
.birthday-when { white-space: nowrap; }

/* Member profile edit page. */
.profile-card { max-width: 520px; margin: 1.5rem auto; }
.profile-photo-block {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.profile-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid #e2d7ba; background: #f6f1e5;
}
.profile-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f4c85f, #c99124);
  color: #3d2b0a; font-weight: 700; font-size: 32px;
}
.profile-photo-upload input[type=file] {
  display: block; margin-top: 0.3rem;
}
.profile-form label { display: block; margin: 0.6rem 0; }
.profile-form label > span { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
.profile-form input[type=text],
.profile-form input[type=email],
.profile-form input[type=tel] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit;
  border: 1px solid #cfc9bd; border-radius: 8px; background: #fff;
}
.profile-form .row { display: flex; gap: 0.6rem; }
.profile-form .row label { flex: 1; margin-bottom: 0; }
@media (max-width: 480px) {
  .profile-form .row { flex-direction: column; gap: 0; }
}
.notice { max-width: 520px; margin: 1rem auto; padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.95rem; }
.notice-ok { background: #e7f5e1; border: 1px solid #8bba84; color: #2e6324; }
.notice-err { background: #fce8e8; border: 1px solid #d29a9a; color: #7d2a2a; }

/* Event edit: Trix WYSIWYG for the description. */
.event-description-wrap .event-description-editor {
  display: block;
  min-height: 180px;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.event-description-wrap trix-toolbar {
  margin-bottom: 4px;
}
/* Public event page: make the rendered description read nicely. */
.event-description ul, .event-description ol {
  padding-left: 1.4rem; margin: 0.4rem 0;
}
.event-description li { margin-bottom: 0.2rem; }
.event-description h1, .event-description h2, .event-description h3 {
  margin: 0.6rem 0 0.3rem; line-height: 1.25;
}
.event-description a { text-decoration: underline; }
.event-description blockquote {
  border-left: 3px solid var(--accent); padding-left: 0.8rem;
  color: #5f5236; margin: 0.6rem 0;
}

/* Feature-style Tools card (used for the Admin Guide). */
.tool-card-feature {
  background: #fdf6e4;
  border: 1px solid #c49a2e;
}
.tool-card-feature:hover { background: #fbf0d0; }

/* ============================================================
   Tournament tool
   ============================================================ */
.tournament-setup { display: flex; flex-direction: column; gap: 0.7rem; max-width: 640px; }
.tournament-setup label { display: flex; flex-direction: column; gap: 0.2rem; }
.tournament-setup select,
.tournament-setup input[type=text],
.tournament-setup input[type=number] {
  height: 38px; padding: 0 10px;
  border: 1px solid #cfc9bd; border-radius: 7px; font: inherit;
}
.tournament-setup .row { display: flex; gap: 0.8rem; }
.tournament-setup .row label { flex: 1; }

.tournament-entrant-add {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: 0.6rem 0 0.3rem;
}
.tournament-entrant-add select,
.tournament-entrant-add input[type=text] {
  height: 34px; padding: 0 8px;
  border: 1px solid #cfc9bd; border-radius: 6px; font: inherit;
  min-width: 200px; flex: 1;
}
.tournament-entrant-list { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.entrant-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.6rem; border: 1px solid #ece6d3; border-radius: 6px;
  margin-bottom: 4px; background: #fff;
}
.entrant-row.eliminated { opacity: 0.55; background: #f7f3e5; }
.entrant-place {
  background: linear-gradient(135deg, #f4c85f, #c99124);
  color: #3d2b0a; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
}
.entrant-name { flex: 1; font-weight: 600; }

.tournament-round-label {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: #8a7a5b; margin: 1rem 0 0.4rem;
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.heat-card, .heat-card-view {
  background: #fff; border: 1px solid #ece6d3; border-radius: 10px;
  padding: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.heat-card.completed, .heat-card-view.completed { background: #fcf9ee; border-color: #d8c9a0; }
.heat-card h4, .heat-card-view h4 {
  margin: 0; font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.heat-status { font-size: 12px; color: #2e6324; font-weight: 700; }
.heat-lanes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.heat-lane {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem; background: #faf7ef; border-radius: 6px;
  font-size: 14px;
}
.heat-lane.advanced { background: #fff4d5; border: 1px solid #efd88f; }
.lane-number {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ece6d3; color: #3d2b0a;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; flex-shrink: 0;
}
.lane-name { flex: 1; font-weight: 600; }
.lane-finish {
  font-weight: 700; color: #8d7028; font-size: 13px;
}
.lane-finish.advanced { color: #2e6324; }
.heat-lane select {
  height: 30px; padding: 0 6px; font-size: 13px;
  border: 1px solid #cfc9bd; border-radius: 5px; font: inherit;
}

.bracket-grid {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.4rem 0;
}
.bracket-round { flex-shrink: 0; min-width: 220px; display: flex; flex-direction: column; gap: 0.8rem; }
.bracket-match {
  background: #fff; border: 1px solid #ece6d3; border-radius: 8px;
  overflow: hidden;
}
.bracket-match.completed { background: #fcf9ee; }
.bracket-slot {
  display: flex; justify-content: space-between; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.7rem; border-bottom: 1px solid #ece6d3;
  font-size: 14px; cursor: pointer;
}
.bracket-slot:last-child { border-bottom: 0; }
.bracket-slot.winner { background: #fff4d5; font-weight: 700; }
.bracket-slot.waiting { color: #8a7a5b; font-style: italic; }
.bracket-slot input[type=radio] { margin-right: 4px; }
.bracket-slot .score { font-weight: 700; color: #8d7028; }
.score-input {
  width: 52px; height: 28px; padding: 0 6px;
  border: 1px solid #cfc9bd; border-radius: 5px; font: inherit;
}
.bracket-match form button { margin: 0.4rem; }

/* Round robin standings + matches. */
.rr-standings { width: 100%; border-collapse: collapse; }
.rr-standings th, .rr-standings td {
  padding: 0.45rem 0.7rem; text-align: left;
  border-bottom: 1px solid #ece6d3;
}
.rr-standings th { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7a5b; background: #f6f0de; }
.rr-standings tr.rank-1 { background: #fff4d5; font-weight: 700; }
.rr-matches {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.rr-match {
  background: #fff; border: 1px solid #ece6d3; border-radius: 8px;
  padding: 0.7rem;
}
.rr-match.completed { background: #fcf9ee; }
.rr-match-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem; border-radius: 6px;
}
.rr-match-row.winner { background: #fff4d5; font-weight: 700; }
.rr-match-name { flex: 1; min-width: 0; }
.rr-match-score { font-weight: 700; color: #8d7028; }
.rr-match-vs {
  text-align: center; font-size: 11px; color: #8a7a5b;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0.2rem 0;
}
.rr-match form button { margin-top: 0.4rem; }

.tournament-champion {
  text-align: center; padding: 2rem 1rem;
  background: linear-gradient(135deg, #fff4d5 0%, #fceca2 100%);
  border: 2px solid #c49a2e;
}
.tournament-champion h2 { margin: 0; font-size: 1.3rem; }
.champion-name { font-size: 2.2rem; font-weight: 700; color: #6b4f00; margin-top: 0.5rem; }

.tournament-live-body { background: #faf7ef; }
.tournament-live { max-width: 1100px; }

/* Tournaments archive page */
.tournament-archive-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tournament-archive-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0.9rem;
  background: #fff; border: 1px solid #ece6d3; border-radius: 8px;
}
.tournament-archive-row.active { background: #fffbe9; border-color: #efd88f; }
.tournament-archive-champion { display: flex; align-items: center; gap: 0.7rem; }
.tournament-champ-photo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #efd88f;
}
.tournament-champ-medal {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #f4c85f, #c99124);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tournament-archive-meta { text-align: right; }
.tournament-archive-meta a { color: #8a7440; font-weight: 600; text-decoration: none; font-size: 13px; }
@media (max-width: 600px) {
  .tournament-archive-row { flex-direction: column; align-items: flex-start; }
  .tournament-archive-meta { text-align: left; }
}

/* Reminder settings page. */
.reminder-form .reminder-lead {
  display: inline-flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; font-size: 1.05rem; margin: 0.6rem 0;
}
.reminder-form input[type=number] {
  width: 72px; height: 36px; padding: 0 8px;
  border: 1px solid #cfc9bd; border-radius: 6px; font: inherit;
  text-align: center;
}
.reminder-schedule { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.92rem; }
.reminder-schedule th, .reminder-schedule td {
  padding: 0.45rem 0.6rem; text-align: left;
  border-bottom: 1px solid #e7e1cf; vertical-align: top;
}
.reminder-schedule th { background: #f6f0de; font-weight: 600; }
.reminder-schedule .badge { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.reminder-schedule .badge.ok { background: #d9eed0; color: #2e6324; }
.reminder-schedule .badge.warn { background: #fdeccc; color: #7d5a1a; }

/* Photo moderation grid. */
.moderation-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; padding: 1rem 0;
}
.moderation-tile {
  margin: 0; background: #fff; border: 1px solid #e7e1cf; border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
}
.moderation-tile img {
  width: 100%; height: 180px; object-fit: cover; display: block; background: #f6f1e5;
}
.moderation-tile figcaption { padding: 0.6rem 0.7rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.moderation-tile .mod-caption a { font-weight: 600; text-decoration: none; }
.moderation-tile .mod-actions { display: flex; gap: 0.4rem; margin-top: auto; }
.moderation-tile .btn-mini.danger { background: #d89090; border-color: #b56868; color: #fff; }

/* Calendar-subscribe block on the dashboard. */
.calendar-subscribe {
  margin-top: 0.8rem; padding: 0.6rem 0.9rem;
  background: #f6f1e5; border: 1px solid #e2d7ba; border-radius: 8px;
}
.calendar-subscribe summary {
  cursor: pointer; font-weight: 600; font-size: 0.92rem;
  padding: 0.2rem 0;
}
.calendar-subscribe[open] summary { margin-bottom: 0.4rem; }
.calendar-subscribe-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0;
}

/* Toast popup for copy-to-clipboard fallback */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 500;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Section header above card grid --- */
.events-section { margin-bottom: 32px; }
.events-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 14px;
}
.events-section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.events-section-count {
  font-size: 12px;
  color: var(--muted);
}

/* --- Event card grid --- */
.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.event-cards-past .event-card { background: #faf7f0; }

.event-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
}
.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(90, 58, 30, 0.12);
}
.event-card.past { opacity: 0.82; }
.event-card.past:hover { opacity: 1; }

/* Date block on card */
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: #faf3ea;
  border: 1px solid #eadfcc;
  border-radius: 10px;
  min-width: 88px;
  line-height: 1;
}
.edb-month {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.edb-day {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1;
  letter-spacing: -1px;
}
.edb-weekday {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.event-card-body { min-width: 0; }
.event-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.event-card-meta .meta-item:not(:last-child)::after {
  content: "\00B7";
  margin-left: 10px;
  color: #d4cdbd;
}
.event-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.event-card-arrow {
  color: #c7beae;
  font-size: 26px;
  font-weight: 300;
  padding-right: 4px;
  transition: color 0.12s ease, transform 0.12s ease;
}
.event-card:hover .event-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* --- Tags (new, replacing .badge on public pages) --- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.tag-free { background: #e8f4ea; color: #1f5f2a; border-color: #c6e3cc; }
.tag-cost { background: #fff4d5; color: #7a5d00; border-color: #ecd98a; }
.tag-men { background: #e9eefa; color: #1f3e82; border-color: #c9d5ef; }
.tag-women { background: #f3e7d4; color: #7a5d00; border-color: #e6d3ae; }
.tag-coed { background: #eef3e8; color: #2f5a1e; border-color: #cfe0c0; }
.tag-adults { background: #ede7f3; color: #4a2a6b; border-color: #d3c5e3; }
.tag-kids { background: #fdecc3; color: #7a5200; border-color: #efd894; }
.tag-cancelled { background: #fdeceb; color: #8a2a2a; border-color: #efc6c3; }
.tag-aud { background: #efe7db; color: var(--accent); border-color: #e1d4be; }

.events-empty {
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

/* --- Event detail page --- */
.event-page { max-width: 1040px; }

.event-breadcrumb {
  margin-bottom: 14px;
}
.event-breadcrumb a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.event-breadcrumb a:hover { color: var(--accent); }

.event-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 20px;
  background:
    radial-gradient(ellipse at top left, rgba(90, 58, 30, 0.08), transparent 60%),
    linear-gradient(135deg, #f5ede0 0%, #faf7f0 100%);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(90, 58, 30, 0.07);
}
.event-hero-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid #eadfcc;
  border-radius: 14px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(90, 58, 30, 0.05);
}
.event-hero-date .edb-month { font-size: 13px; }
.event-hero-date .edb-day { font-size: 44px; margin-top: 4px; }
.event-hero-date .edb-weekday { font-size: 11px; margin-top: 6px; }

.event-hero-copy { min-width: 0; }
.event-hero-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.event-hero h1 {
  margin: 6px 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  line-height: 1.15;
}
.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  color: #3d3d3d;
  margin-bottom: 10px;
}
.event-hero-meta .meta-item:not(:last-child)::after {
  content: "\00B7";
  margin-left: 12px;
  color: #c7beae;
}
.event-hero-meta .meta-strong { font-weight: 700; color: var(--ink); }
.event-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 640px) {
  .event-hero { grid-template-columns: 1fr; text-align: left; }
  .event-hero-date { max-width: 120px; }
}

.event-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 820px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-rsvp { order: -1; }
}

.event-info { display: flex; flex-direction: column; gap: 16px; }

.event-facts-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
}
.section-heading {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.section-sub { margin: -8px 0 12px; }

.event-description {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.6;
  color: #2b2b2b;
}

.event-facts {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px 18px;
  margin: 0;
}
.event-facts dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding-top: 3px;
}
.event-facts dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.pay-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

/* --- Signup (bring-an-item) list --- */
.signup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signup-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fdfaf2;
}
.signup-list li.claimed { background: #f2efe6; border-style: dashed; }
.signup-list li.claimed strong { text-decoration: line-through; color: var(--muted); }
.signup-body { min-width: 0; }
.claimed-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success-ink);
  white-space: nowrap;
}
.claim-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.claim-form input {
  padding: 7px 10px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.claim-form input[name=name] { width: 140px; }
.claim-form input[name=email] { width: 160px; }

/* --- Sticky RSVP card --- */
.event-rsvp { position: sticky; top: 20px; }
.rsvp-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(90, 58, 30, 0.08);
}

.rsvp-tally {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.tally {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1;
}
.tally-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.tally-label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}
.tally-yes { background: var(--success-bg); color: var(--success-ink); border-color: #c6e3cc; }
.tally-maybe { background: var(--warn-bg); color: var(--warn-ink); border-color: #ecd98a; }
.tally-no { background: #f5efe2; color: var(--muted); border-color: #e6dfc9; }
.tally-play { background: #fff4d5; color: #6b4f00; border-color: #efd88f; }

/* Tournament signup checkbox in the RSVP form. */
.rsvp-tournament-check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: #fff4d5; border: 1px solid #efd88f; border-radius: 8px;
  margin: 0.5rem 0;
}
.rsvp-tournament-check input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.rsvp-tournament-check small { display: block; margin-top: 2px; }

.rsvp-gate-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #faf3ea;
  border: 1px solid #ead9bd;
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent);
  line-height: 1.45;
}
.rsvp-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rsvp-form label { display: block; margin-bottom: 10px; }
.rsvp-form label span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}
.rsvp-form input[type=text],
.rsvp-form input[type=email],
.rsvp-form input[type=tel],
.rsvp-form input[type=number] {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.rsvp-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.12);
}
.rsvp-submit {
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.12s ease;
}
.rsvp-submit:hover { background: var(--accent-hover); }
.coming-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.coming-list h3 {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.rsvp-card form button[type=submit] { margin-top: 8px; }

/* --- Events admin: make per-row buttons readable text labels --- */
table.signers .row-actions .btn-mini,
table.signers .row-actions a.btn-mini {
  padding: 5px 10px;
  font-size: 11px;
}

tr.child-row .col-photo { padding-left: 22px !important; }
tr.child-row .col-photo .thumb { width: 32px; height: 32px; }
tr.child-row .col-name { padding-left: 6px; }
tr.child-row .col-name .name-line strong { font-size: 13px; font-weight: 500; }
tr.child-row .col-name::before {
  content: "└";
  color: var(--muted);
  margin-right: 6px;
  font-weight: 400;
}

fieldset.dues-fields {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #faf7f0;
}
fieldset.dues-fields legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Dropdown menus in admin nav --- */
.menu {
  position: relative;
  display: inline-block;
}
.menu-toggle .caret {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  transition: transform 0.15s ease;
}
.menu.open .caret {
  transform: rotate(180deg);
}
.menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(90, 58, 30, 0.12);
  padding: 6px;
  z-index: 20;
  animation: menu-in 0.12s ease-out;
}
.menu-panel[hidden] { display: none; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
}
.menu-item:hover {
  background: #faf3ec;
}
.menu-item-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.menu-item-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

table.signers.sortable th {
  padding: 0;
}
.sort-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
}
.sort-btn:hover {
  background: #efe8d8;
  color: var(--accent);
}
.sort-btn.active {
  color: var(--accent);
}
.sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
}
#reset-sort {
  text-align: center;
  font-size: 10px;
}
.col-actions { width: 130px; text-align: right; }

.name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.name-line strong { font-size: 14px; }
a.name-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.name-link:hover { color: var(--accent); text-decoration: underline; }
.gender-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.gender-dot.m { background: #3e608c; }
.gender-dot.w { background: #a25577; }

.sub {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
  line-height: 1.35;
}
.sub .muted { color: var(--muted); }

.badge.muted-badge { background: #eee; color: var(--muted); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.icon-btn:hover:not(:disabled) {
  background: #faf3ec;
  border-color: var(--accent);
}
.icon-btn:disabled { opacity: 0.5; cursor: default; }
.icon-btn.danger {
  color: #8a2a2a;
  border-color: #e6b9b6;
}
.icon-btn.danger:hover:not(:disabled) { background: #fdeceb; }

.thumb.placeholder.has-action {
  border-style: dashed;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
}
.thumb.placeholder.has-action:hover { background: #faf3ec; }

.filter-tabs .pill {
  padding: 4px 12px;
  font-size: 12px;
}
.filter-bar {
  margin: 12px 0 6px;
}
.searchbox { margin: 6px 0 14px; }

.upload-body { background: var(--bg); }
.upload-page { max-width: 520px; padding-top: 40px; padding-bottom: 60px; }
.small { font-size: 13px; }

.selfie-stage {
  margin: 22px auto 0;
  max-width: 420px;
}
.selfie-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.selfie-step[hidden] { display: none; }

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

.two-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
@media (max-width: 420px) {
  .two-choices { grid-template-columns: 1fr; }
}

.big-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 14px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
  font: inherit;
  box-shadow: 0 2px 6px rgba(90, 58, 30, 0.08);
  min-height: 140px;
}
.big-choice:hover {
  background: #fffaf1;
  box-shadow: 0 4px 10px rgba(90, 58, 30, 0.15);
}
.big-choice:active { transform: translateY(1px); }
.big-choice svg { color: var(--accent); }
.big-choice-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.big-choice-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.video-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
#cam {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.flip-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shutter {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease;
}
.shutter:active { transform: scale(0.93); }
.shutter-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
}

.link-btn {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}
.link-btn:hover { color: var(--accent); }

.preview-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
#preview { width: 100%; height: 100%; object-fit: cover; display: block; }

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}
.preview-actions .btn {
  padding: 14px 22px;
  font-size: 16px;
  width: 100%;
  text-align: center;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #eee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 10px;
}

/* ---- Utilities shared across pages ---- */

/* Inline form wrapper (delete buttons, unclaim, etc.) */
.inline-form { display: inline; }

/* Non-form display card with the same look as .sign-form.
   Use when the content is a list/summary, not a form. */
.section-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 24px;
}
.section-card h2,
.section-card .section-title {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--accent);
}

/* Tight inline link-button (release, dismiss) */
.link-btn.tight { padding: 2px 6px; font-size: 12px; }

/* Past-events section label */
.past-events-label {
  margin-top: 36px;
  color: var(--muted);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Consistent textarea styling for inline text areas in sign-form-like wrappers */
.sign-form textarea,
.dlg-form textarea,
textarea.field-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  background: #fffdf8;
  font: inherit;
  resize: vertical;
}

/* The reset-sort icon-only button keeps table headers tight */
.sort-btn.icon-only {
  font-size: 16px;
  padding: 2px 6px;
  letter-spacing: 0;
}

/* Compact helper text under inputs */
.small-note,
small.muted { font-size: 12px; color: var(--muted); }

/* ============================================================
   AUTH (magic-link login)
   ============================================================ */
.auth-page { max-width: 460px; padding-top: 40px; }
.auth-page .logo { max-width: 220px; margin-bottom: 22px; }
.auth-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 6px 20px rgba(90, 58, 30, 0.08);
  text-align: left;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--accent);
}
.auth-card .muted { margin: 0 0 18px; font-size: 14px; }
.auth-form label { display: block; margin-bottom: 14px; }
.auth-form label span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}
.auth-form input[type=email] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.12);
}
.auth-footnote { margin-top: 14px; text-align: center; }
.auth-footnote a { color: var(--accent); font-weight: 600; }

/* Welcome splitter (first-time vs returning) */
.welcome-choice {
  display: grid;
  gap: 10px;
  margin: 8px 0 6px;
}
.welcome-choice .btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  height: auto;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.2;
}
.welcome-choice .btn span { font-weight: 700; font-size: 15px; }
.welcome-choice .btn small { font-weight: 400; font-size: 12px; opacity: 0.82; margin-top: 3px; }

/* Locked-page options list */
.locked-options {
  margin: 12px 0 16px;
  padding-left: 18px;
  line-height: 1.8;
  color: #333;
}
.locked-options li { margin-bottom: 4px; }

/* Check-in success screen */
.checkin-card { text-align: center; }
.checkin-success,
.checkin-already {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  font-size: 40px;
  margin: 0 auto 14px;
}
.checkin-success { background: var(--success-bg); color: var(--success-ink); font-weight: 900; }
.checkin-already { background: #faf3ea; }
.checkin-card h1 { margin: 6px 0 4px; }

.checkin-event {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin: 18px 0 16px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: left;
}
.checkin-event h3 { margin: 0 0 4px; font-size: 16px; }
.checkin-nav { margin-top: 10px; }
.checkin-nav .btn { width: 100%; }

/* ============================================================
   JOE'S AUDIO MESSAGE (public event page)
   ============================================================ */
.joe-audio-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 20px;
  background:
    radial-gradient(ellipse at top left, rgba(90, 58, 30, 0.10), transparent 70%),
    linear-gradient(135deg, #fff3dc 0%, #faf3ea 100%);
  border: 1px solid #ead9bd;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(90, 58, 30, 0.08);
}
.joe-audio-portrait {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(90, 58, 30, 0.18);
  border: 3px solid #fff;
  flex-shrink: 0;
}
.joe-audio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.joe-audio-body { min-width: 0; }
.joe-audio-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.joe-audio-player {
  width: 100%;
  max-width: 480px;
  height: 40px;
}
@media (max-width: 520px) {
  .joe-audio-card { grid-template-columns: 64px 1fr; padding: 14px; gap: 12px; }
  .joe-audio-portrait { width: 64px; height: 64px; }
}

/* Admin audio recorder UI */
.audio-existing {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 14px;
}
.audio-existing audio { max-width: 360px; flex: 1 1 240px; }
.audio-recorder {
  padding: 14px;
  background: #fdfaf2;
  border: 1px dashed var(--rule);
  border-radius: 10px;
}
.audio-recorder-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.audio-recorder-controls .btn {
  width: auto;
  min-width: 120px;
  padding: 9px 18px;
  height: auto;
  margin-top: 0;
}
.audio-timer {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
}
.audio-preview {
  margin: 14px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.audio-preview audio { width: 100%; max-width: 400px; }
.audio-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.audio-preview-actions .btn { width: auto; padding: 9px 18px; height: auto; margin: 0; }
.audio-or {
  margin: 16px 0 8px;
  text-align: center;
  letter-spacing: 0.5px;
}
#audio-upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#audio-upload-form input[type=file] { flex: 1; min-width: 180px; }

/* Wider dialog variant for the compose + review flow */
.dlg.dlg-wide { max-width: 640px; width: calc(100vw - 32px); }

/* Compose recipient picker */
.recipient-mode { margin: 8px 0 14px; }

/* The HTML `hidden` attribute must win over any explicit display rule on
   compose-email-only / compose-text-only fields, otherwise channel toggling
   leaves email fields visible in text mode (Trix editor, subject, etc.). */
.compose-email-only[hidden],
.compose-text-only[hidden],
.compose-single-email[hidden],
.compose-single-phone[hidden] { display: none !important; }

/* Recipient-mode dropdown (replaces the 4-option radio row — collapses
   cleanly on mobile where the radios used to wrap awkwardly). */
.recipient-mode-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}
.recipient-mode-legend {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #2a2414);
  flex-shrink: 0;
}
.recipient-mode-select {
  flex: 1;
  min-width: 180px;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23555' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}
.recipient-mode-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(166, 153, 109, 0.25);
}
@media (max-width: 480px) {
  .recipient-mode-wrap { flex-direction: column; align-items: stretch; gap: 4px; }
  .recipient-mode-select { width: 100%; }
}
.recipient-panel {
  margin: 0 0 14px;
  padding: 12px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.recipient-picker-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.recipient-picker-head input[type=text] {
  flex: 1; min-width: 180px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
}
.recipient-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}
.recipient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.recipient-row:hover { background: #faf3ea; }
.recipient-row:last-child { border-bottom: 0; }
.recipient-row input[type=checkbox] { margin: 0; flex-shrink: 0; }
.recipient-name { display: flex; flex-direction: column; min-width: 0; }
.recipient-name strong { font-size: 14px; }
.recipient-name .muted { font-size: 12px; }
.recipient-summary {
  padding: 8px 12px;
  margin: 6px 0 14px;
  background: #faf3ea;
  border: 1px solid #ead9bd;
  border-radius: 8px;
  font-size: 13px;
}

/* Compose audio recorder fieldset variant */
.compose-audio-recorder {
  border: 1px dashed var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fdfaf2;
  margin: 0 0 14px;
}
.compose-audio-recorder legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 0 6px;
}

/* Review-and-send confirmation dialog */
.send-confirm-detail {
  margin: 10px 0 16px;
  padding: 10px 12px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 13px;
}

.compose-result {
  margin-top: 10px;
  padding: 8px 12px;
  background: #e8f4ea;
  border: 1px solid #c6e3cc;
  border-radius: 7px;
  color: var(--success-ink);
}

/* Broadcast message landing page */
.broadcast-message-card {
  text-align: left;
  padding: 28px 28px 24px;
}
.broadcast-message-card h1 {
  font-size: 22px;
  margin: 4px 0 14px;
  color: var(--accent);
}

/* --- Admin Tools page: organized card grid --- */
.admin-tools-page { max-width: 980px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tools-section-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .tools-grid { grid-template-columns: 1fr; } }

/* Voice Notes section rows */
.voice-note-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 12px 14px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 10px;
}
.voice-note-row .vn-label {
  grid-column: 1 / -1;
  font-size: 14px;
}
.voice-note-row .vn-player {
  grid-column: 1 / 2;
  width: 100%;
  max-width: 320px;
}
.voice-note-row .vn-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
}
.voice-note-row .vn-recorder {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 8px;
}
.voice-note-row .vn-recorder .btn { width: auto; padding: 8px 16px; height: auto; margin: 0; }
.voice-note-row .vn-recorder .vn-cancel { margin-left: auto; }
.voice-note-row .vn-preview audio { width: 100%; max-width: 320px; }

.compose-template-audio {
  background: #fff4d5;
  border: 1px solid #ead9bd;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

/* Trix editor styling to match the rest of the forms */
.compose-body-wrap { display: block; margin-bottom: 14px; }
.compose-body-wrap > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}
trix-toolbar {
  background: #faf3ea;
  border: 1px solid #cfc9bd;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 4px 6px;
}
trix-toolbar .trix-button-group {
  border-color: #e2dfd8;
  background: transparent;
}
trix-toolbar .trix-button {
  border-color: #e2dfd8;
  color: var(--ink);
  background: #fff;
}
trix-toolbar .trix-button.trix-active {
  background: var(--accent);
  color: #fff;
}
trix-editor {
  display: block;
  min-height: 140px;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
trix-editor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.12);
}
trix-editor a {
  color: var(--accent);
  text-decoration: underline;
}
trix-editor::placeholder {
  color: var(--muted);
}
/* Trix action buttons (file attach, etc.) — hide them since we have audio
   via a dedicated fieldset. */
trix-toolbar .trix-button-group--file-tools { display: none; }

.tools-section {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tools-section-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}
.tool-card:hover {
  border-color: var(--accent);
  background: #faf3ea;
  transform: translateY(-1px);
}
.tool-card-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.tool-card-body { min-width: 0; }
.tool-card-body h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--ink);
}
.tool-card-body p { margin: 0; }

/* Standalone photo uploader (/upload-photos) */
.upload-event-picker { display: block; }
.upload-event-picker select {
  width: 100%;
  max-width: 480px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.upload-dropzone {
  border: 2px dashed #cfc9bd;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: #fdfaf2;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.upload-dropzone:hover,
.upload-dropzone.drag {
  background: #faf3ea;
  border-color: var(--accent);
}
.upload-dropzone input[type=file] { display: none; }
.upload-dropzone-copy strong { display: block; font-size: 16px; margin-bottom: 6px; }
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.upload-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upload-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.upload-thumb .small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.upload-actions .btn { width: auto; padding: 11px 22px; height: auto; margin: 0; }

/* Event photos gallery on event detail page */
.event-photos-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
}
.event-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.event-photos-head h2 { margin: 0; }
.event-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.event-photo {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}
.event-photo:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(90,58,30,0.12); }
.event-photo a { display: block; aspect-ratio: 1 / 1; }
.event-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.event-photo figcaption {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}
.event-photo-by {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-photo .link-btn.tight {
  font-size: 10px;
  color: var(--error-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.photos-upload-status {
  margin: 10px 0 0;
  padding: 8px 12px;
  background: #faf3ea;
  border: 1px solid #ead9bd;
  border-radius: 8px;
}

/* Waiver DOB picker — single native date input */
.dob-field { display: block; margin: 16px 0; }
.dob-field > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.dob-field input[type=date] {
  width: 100%;
  max-width: 240px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}
.dob-field small { display: block; margin-top: 6px; font-size: 12px; }

/* Promotion candidates */
.threshold-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.threshold-form label { flex: 0 0 200px; }
.threshold-form input[type=number] { height: 38px; }
.candidates-table td.num, .candidates-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.candidate-eligible { background: #fff9e6; }
.candidate-eligible td { font-weight: 500; }

/* Announcements admin list */
.ann-list { display: flex; flex-direction: column; gap: 10px; }
.ann-row {
  padding: 12px 14px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.ann-row.expired { opacity: 0.65; }
.ann-row summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ann-row summary::-webkit-details-marker { display: none; }
.ann-row summary::before {
  content: "\25B8";  /* right-pointing triangle */
  color: var(--accent);
  margin-right: 4px;
  transition: transform 0.15s ease;
}
.ann-row[open] summary::before { transform: rotate(90deg); display: inline-block; }
.ann-pin {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ann-expired {
  display: inline-block;
  background: #eee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ann-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.ann-delete-form { margin-top: 8px; text-align: right; }

/* Compose dialog: prominent template picker at top */
.compose-template {
  display: block;
  margin-bottom: 14px;
}
.compose-template span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.compose-template select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfc9bd;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #faf3ea;
  cursor: pointer;
}
.compose-template select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 58, 30, 0.12);
}

.compose-extra-check { margin: 6px 0 10px; }
.compose-extra-emails { margin-bottom: 10px; }
.compose-extra-emails summary { cursor: pointer; padding: 6px 0; }
.compose-extra-emails textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9bd;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  margin-top: 6px;
}

/* ============================================================
   MEMBER DASHBOARD
   ============================================================ */
.dashboard-page { max-width: 960px; }
.dashboard-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  margin-bottom: 22px;
  background:
    radial-gradient(ellipse at top left, rgba(90, 58, 30, 0.08), transparent 60%),
    linear-gradient(135deg, #f5ede0 0%, #faf7f0 100%);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(90, 58, 30, 0.06);
}
.dashboard-logo {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(90, 58, 30, 0.14);
}
.dashboard-greeting { min-width: 0; }
.dashboard-greeting h1 {
  margin: 4px 0 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}
.dashboard-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .dashboard-head {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dashboard-logo { justify-self: start; }
  .dashboard-nav { justify-content: flex-start; }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 820px) {
  .dash-grid { grid-template-columns: 1fr; }
}

.dash-section {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
}
.dash-section-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* --- Announcements --- */
.announcement-list { display: flex; flex-direction: column; gap: 12px; }
.announcement {
  position: relative;
  padding: 14px 16px 12px;
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.announcement.pinned {
  background: #fff4d5;
  border-color: #ecd98a;
}
.announcement .pin {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7a5d00;
}
.announcement h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
}
.announcement-body {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}
.announcement-audio {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.announcement-audio-portrait {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(90, 58, 30, 0.14);
}
.announcement-audio-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
.announcement-audio audio { width: 100%; max-width: 320px; height: 32px; }
.tpl-subheading {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

/* --- Leaderboard --- */
.leaderboard-me {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #faf3ea;
  border: 1px solid #ead9bd;
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent);
}
.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: lb;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.12s ease;
}
.leaderboard-row.is-me {
  background: #f5ede0;
  font-weight: 700;
}
.leaderboard-row .lb-rank {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}
.leaderboard-row.rank-1 .lb-rank { color: #b58900; font-size: 16px; }
.leaderboard-row.rank-2 .lb-rank { color: #8a8a8a; font-size: 15px; }
.leaderboard-row.rank-3 .lb-rank { color: #a35a2b; font-size: 15px; }
.leaderboard-row .lb-name {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-row .lb-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  padding-left: 8px;
}

/* ============================================================
   MOBILE & TABLET — RESPONSIVE OVERRIDES
   ============================================================ */

/* Tablet and below */
@media (max-width: 820px) {
  .page { padding: 20px 16px 60px; }

  /* Admin header stacks */
  .admin-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .admin-head > div:first-child { text-align: left; }
  .admin-head h1 { font-size: 22px; }
  .admin-head-search {
    flex: none;
    max-width: none;
    width: 100%;
  }
  .actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }

  /* Filter bar: allow pill row to scroll horizontally if needed */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs .pill { flex-shrink: 0; }

  /* Admin tables go horizontal-scroll so rows stay readable */
  table.signers {
    font-size: 13px;
  }
  main.page.admin {
    padding-left: 0;
    padding-right: 0;
  }
  main.page.admin > :not(table) { padding-left: 16px; padding-right: 16px; }
  main.page.admin > table { margin-left: 16px; margin-right: 16px; width: calc(100% - 32px); }

  /* Event hero stacks */
  .events-hero {
    padding: 20px;
    gap: 16px;
  }
  .events-hero-logo { width: 56px; height: 56px; }
  .events-hero h1 { font-size: 26px; }

  .event-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    text-align: left;
  }
  .event-hero-date {
    justify-self: start;
    padding: 14px 18px;
    min-width: 100px;
  }
  .event-hero h1 { font-size: 26px; }

  /* Event card: date block shrinks */
  .event-card {
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 14px 16px;
  }
  .event-date-block { min-width: 70px; padding: 8px 6px; }
  .edb-day { font-size: 24px; }
  .event-card-title { font-size: 16px; }

  /* RSVP form rows: stack */
  .rsvp-form .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rsvp-card { padding: 18px 16px; }

  /* Signup items stack vertically */
  .signup-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .claim-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .claim-form input[name=name],
  .claim-form input[name=email] { width: 100%; }
  .claim-form .btn-mini { width: 100%; padding: 10px; font-size: 12px; }

  /* Dialogs fit the screen */
  .dlg {
    margin: 0 !important;
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
  }
}

/* Phone */
@media (max-width: 520px) {
  html, body { font-size: 15px; }
  .page { padding: 16px 14px 48px; }

  h1 { font-size: 20px; }

  /* Admin header */
  .admin-head h1 { font-size: 20px; }

  /* Actions buttons stack vertically on very small screens */
  .actions { flex-direction: column; gap: 6px; }
  .actions .btn,
  .actions .menu { width: 100%; }
  .actions .menu .btn { width: 100%; }

  /* Menu panels take full viewport width */
  .menu { position: static; }
  .menu-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 0;
    border-radius: 14px 14px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -8px 24px rgba(90, 58, 30, 0.18);
  }

  /* Events hero stacks logo above copy */
  .events-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .events-hero-logo { margin: 0 auto; }
  .events-hero h1 { font-size: 24px; }

  .event-hero { padding: 20px; }
  .event-hero-date { padding: 12px 16px; }
  .event-hero-date .edb-day { font-size: 36px; }
  .event-hero h1 { font-size: 22px; }

  /* Event list card: hide arrow, tighter */
  .event-card {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 12px 14px;
  }
  .event-card-arrow { display: none; }
  .event-date-block { min-width: 60px; padding: 6px 4px; }
  .edb-day { font-size: 22px; }
  .edb-month { font-size: 10px; }
  .edb-weekday { font-size: 9px; }
  .event-card-title { font-size: 15px; }
  .event-card-meta { font-size: 12px; }

  /* Signers table: convert rows to stacked cards-ish via tighter cells */
  table.signers {
    font-size: 12px;
  }
  table.signers th,
  table.signers td {
    padding: 8px 10px;
  }
  table.signers .thumb { width: 34px; height: 34px; }

  /* Big tappable inputs */
  input[type=text],
  input[type=email],
  input[type=tel],
  input[type=number],
  input[type=search],
  input[type=password],
  textarea,
  select {
    font-size: 16px; /* prevents iOS zoom-on-focus */
  }
  .searchbox input {
    height: 44px;
  }
  .btn {
    min-height: 44px;
  }
  .rsvp-submit { height: 48px; font-size: 15px; }

  /* Event facts card: fold long labels */
  .event-facts { grid-template-columns: 72px 1fr; gap: 8px 14px; }
  .event-facts dt { font-size: 10px; }
  .event-facts dd { font-size: 13px; }
  .event-facts-card { padding: 16px 18px; }

  /* RSVP tally scales down */
  .tally-num { font-size: 20px; }

  /* Footer nav wraps */
  .foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .event-card {
    grid-template-columns: 54px 1fr;
  }
  .event-date-block { min-width: 54px; }
  .event-hero-date .edb-day { font-size: 32px; }
}

/* ============================================================
   MOBILE ADMIN TABLES — transform rows into cards
   ============================================================ */
@media (max-width: 640px) {
  /* Members signers table — card layout per row */
  main.page.admin > table.signers,
  main.page.admin > table.signers thead,
  main.page.admin > table.signers tbody,
  main.page.admin > table.signers tr,
  main.page.admin > table.signers th,
  main.page.admin > table.signers td {
    display: block;
    width: auto;
  }
  main.page.admin > table.signers {
    border: 0;
    background: transparent;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    overflow: visible;
  }
  main.page.admin > table.signers thead { display: none; }
  main.page.admin > table.signers tbody { padding: 0 14px; }

  main.page.admin > table.signers tr {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    grid-template-areas:
      "photo  name    role"
      "photo  contact contact"
      "signed signed  signed"
      "actions actions actions";
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    padding: 14px;
    margin: 0 0 10px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(90, 58, 30, 0.04);
  }
  main.page.admin > table.signers td {
    padding: 0;
    border: 0;
    min-height: 0;
  }
  main.page.admin > table.signers .col-photo {
    grid-area: photo;
    align-self: start;
  }
  main.page.admin > table.signers .col-photo .thumb {
    width: 52px;
    height: 52px;
  }
  main.page.admin > table.signers .col-name {
    grid-area: name;
    min-width: 0;
  }
  main.page.admin > table.signers .col-name .name-line strong {
    font-size: 15px;
  }
  main.page.admin > table.signers .col-role {
    grid-area: role;
    align-self: start;
    text-align: right;
    white-space: nowrap;
  }
  main.page.admin > table.signers .col-contact {
    grid-area: contact;
    font-size: 13px;
    word-break: break-word;
  }
  main.page.admin > table.signers .col-contact a { word-break: break-all; }
  main.page.admin > table.signers .col-signed {
    grid-area: signed;
    font-size: 12px;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
  }
  main.page.admin > table.signers .row-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    padding-top: 4px;
  }
  main.page.admin > table.signers .row-actions .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  main.page.admin > table.signers .row-actions .btn-mini {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px;
    font-size: 11px;
  }

  /* Child rows: remove the indent + arrow that only make sense in a table */
  main.page.admin > table.signers tr.child-row .col-photo { padding-left: 0 !important; }
  main.page.admin > table.signers tr.child-row .col-name::before { display: none; }

  /* Events admin table — simpler card transform (no photo column) */
  main.page.admin > table.signers tr:has(> td.col-event-when) {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "when    when     status"
      "title   title    title"
      "aud     cost     rsvps"
      "actions actions  actions";
    row-gap: 8px;
    column-gap: 8px;
  }
  main.page.admin > table.signers tr > td.col-event-when {
    grid-area: when;
    font-weight: 700;
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  main.page.admin > table.signers tr > td.col-event-title {
    grid-area: title;
    font-size: 15px;
  }
  main.page.admin > table.signers tr > td.col-event-title strong { font-size: 16px; }
  main.page.admin > table.signers tr > td.col-event-audience {
    grid-area: aud;
    justify-self: start;
    align-self: center;
  }
  main.page.admin > table.signers tr > td.col-event-cost {
    grid-area: cost;
    justify-self: start;
    align-self: center;
    font-weight: 700;
    font-size: 13px;
  }
  main.page.admin > table.signers tr > td.col-event-rsvps {
    grid-area: rsvps;
    justify-self: end;
    align-self: center;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
  }
  main.page.admin > table.signers tr > td.col-event-rsvps::before {
    content: "RSVPs: ";
    margin-right: 4px;
  }
  main.page.admin > table.signers tr > td.col-event-status {
    grid-area: status;
    text-align: right;
  }

  /* Edit-event RSVPs mini-table: just make it readable */
  .section-card table.signers {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------------------
   Page-with-help layout
   In-context how-to panel that sits to the right of any admin page.
   Use by giving <main> the .admin-helper-page class, then wrapping the
   page body (everything below .admin-head) in <div class="page-with-help">
   with <div class="page-with-help-main"> + <aside class="help-aside">.
   ---------------------------------------------------------------------- */
.admin-helper-page { max-width: 1280px; }
.page-with-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 4px;
}
.page-with-help-main { min-width: 0; }
.help-aside {
  position: sticky;
  top: 80px;
  background: linear-gradient(180deg, #fdf8e9 0%, #f7eecd 100%);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 22px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(141, 112, 40, 0.04);
}
.help-aside-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 2px;
}
.help-aside h2 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--ink);
}
.help-aside h3 {
  font-size: 13.5px;
  margin: 14px 0 4px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.help-aside p { margin: 0 0 10px; }
.help-aside ul { margin: 0 0 12px; padding-left: 18px; }
.help-aside li { margin: 0 0 6px; }
.help-aside strong { color: var(--ink); }
.help-aside code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(141, 112, 40, 0.10);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
}
.help-aside .help-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-size: 12.5px;
  color: var(--muted);
}
.help-aside .help-foot a { color: var(--accent); }

@media (max-width: 1080px) {
  .page-with-help { grid-template-columns: 1fr; }
  .help-aside { position: static; top: auto; }
}

/* --- Medal colors (replaces the 🥈🥉 emoji on the career card) --- */
.career-medal { display: inline-flex; vertical-align: middle; }
.career-medal svg { width: 18px; height: 18px; }
.career-medal.medal-silver svg { color: #9ca3af; }
.career-medal.medal-bronze svg { color: #b87333; }

/* --- Lucide line-art icons --- */
/* Default sizing for inline icons. Components override as needed. */
[data-lucide],
i[data-lucide] svg,
.lol-nav-ico svg,
.quick-tile-icon svg,
.tool-card-icon svg,
.push-optin-icon svg {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.75;
}
i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Sizes for common contexts */
.quick-tile-icon svg { width: 36px; height: 36px; }
.tool-card-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.lol-nav-ico svg { width: 18px; height: 18px; }
.push-optin-icon svg { width: 22px; height: 22px; color: #8d7028; }
.btn-mini svg, .btn svg { width: 16px; height: 16px; margin-right: 4px; }

/* --- Just-minted bookmark token highlight card --- */
.section-card.just-minted {
  background: linear-gradient(180deg, #fff8e0 0%, #fcefb8 100%);
  border-color: #c49a2e;
}
.section-card.just-minted .section-title { color: #6f5820; }
.token-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d8d0b7;
  border-radius: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.token-display code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  color: #2a2414;
}

/* --- Quick actions hero on /admin (Joe-friendly big-button landing) --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 24px 0;
  margin: 0 0 6px;
  max-width: 1280px;
}
.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 150px;
  padding: 22px 18px;
  background: linear-gradient(160deg, #fdf6e0 0%, #f1e4b6 100%);
  border: 1.5px solid #c49a2e;
  border-radius: 16px;
  color: var(--ink, #2a2414);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 2px rgba(141, 112, 40, 0.08);
}
.quick-tile:hover,
.quick-tile:focus-visible {
  transform: translateY(-1px);
  border-color: #8d7028;
  box-shadow: 0 4px 12px rgba(141, 112, 40, 0.16);
  outline: none;
}
.quick-tile:active { transform: translateY(0); }
.quick-tile-icon {
  font-size: 36px;
  line-height: 1;
  color: #8d7028;
}
.quick-tile-label {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink, #2a2414);
}
.quick-tile-sub {
  font-size: 12.5px;
  color: var(--muted, #715f3c);
  font-weight: 500;
  line-height: 1.35;
}
/* Dashboard variant: lives inside the narrower feed column */
.quick-actions-dashboard {
  padding: 0 0 6px;
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .quick-actions-dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quick-actions-dashboard .quick-tile { min-height: 110px; padding: 18px 16px; }
}
@media (max-width: 720px) {
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 14px 0;
  }
  .quick-tile { min-height: 110px; padding: 18px 16px; }
  .quick-tile-icon { font-size: 30px; }
  .quick-tile-label { font-size: 16px; }
}

/* --- Push notification opt-in banner --- */
.push-optin {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #fff8e6 0%, #fdf0c6 100%);
  border: 1px solid #e5d191;
  border-radius: 12px;
  font-size: 14px;
}
.push-optin-icon { font-size: 22px; flex-shrink: 0; }
.push-optin-body { flex: 1; min-width: 0; }
.push-optin-body strong { display: block; color: var(--ink, #2a2414); font-size: 14.5px; }
.push-optin-msg { color: var(--muted, #715f3c); font-size: 13px; }
.push-optin-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.push-optin-yes {
  background: var(--accent, #8d7028);
  color: #fff;
  border: 0;
}
.push-optin-yes:hover:not(:disabled) { background: #6f5820; }
.push-optin-yes:disabled { opacity: 0.6; cursor: progress; }
.push-optin.push-optin-done { background: #ecf6e7; border-color: #8bba84; }
@media (max-width: 640px) {
  .push-optin { flex-wrap: wrap; }
  .push-optin-actions { width: 100%; justify-content: flex-end; }
}
