:root {
  --bg: #050915;
  --bg2: #0a1020;
  --panel: #101b2d;
  --panel2: #0c1626;
  --border: #23344f;
  --text: #e8edf6;
  --muted: #8fa3c2;
  --gold: #d4af37;
  --gold2: #a78122;
  --green: #0f766e;
  --green2: #064e4a;
  --danger: #7f1d1d;
  --warning: #92400e;
  --blue: #1d4ed8;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #0f1b2f 0, var(--bg) 42%, #030711 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
header {
  background: #070d1b;
  color: white;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gold2);
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.header-title h1 {
  color: var(--gold);
  margin: 0 0 5px;
  font-size: 1.15rem;
  letter-spacing: .15px;
  font-weight: 800;
}
.header-title p {
  margin: 0;
  color: var(--muted);
}
nav {
  background: #060b16;
  border-bottom: 1px solid #17233a;
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
nav a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav .user {
  margin-left: auto;
  color: var(--muted);
}
main {
  max-width: none;
  width: 100%;
  margin: 22px auto;
  padding: 0 18px;
}
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.card h2, .card h3 {
  color: var(--gold);
}
.narrow { max-width: 560px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
label { display: block; font-weight: 700; margin: 8px 0 4px; color: #dbe7ff; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  margin-bottom: 10px;
  background: #08111f;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #64748b; }
textarea { min-height: 110px; }
button, .button {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #06101f;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
  font-weight: 800;
  cursor: pointer;
}
button:hover, .button:hover { opacity: .92; }
.button.secondary, button.secondary {
  background: #1f2937;
  color: var(--text);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; overflow: auto; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 9px; vertical-align: top; }
th { background: #0b1424; color: var(--gold); }
td { color: #d7e0ef; }
a { color: var(--gold); }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: #1f2937;
  color: #dbeafe;
  font-size: .85rem;
  font-weight: 700;
}
.badge.good { background: #064e3b; color: #bbf7d0; }
.badge.bad { background: #7f1d1d; color: #fecaca; }
.badge.warn { background: #78350f; color: #fde68a; }
.badge.paid { background: #1e3a8a; color: #bfdbfe; }
.metric h2 { font-size: 2rem; color: var(--gold); margin-bottom: 4px; }
.metric p { color: var(--muted); margin-top: 0; }
.note, .small { color: var(--muted); font-size: .94rem; }
footer { text-align: center; color: var(--muted); padding: 28px; }
.notice {
  background: rgba(146, 64, 14, .2);
  border: 1px solid #92400e;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  color: #fde68a;
}
.success {
  background: rgba(6, 78, 59, .25);
  border: 1px solid #047857;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}
.error {
  background: rgba(127, 29, 29, .25);
  border: 1px solid #991b1b;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}
.module-card {
  border-left: 4px solid var(--gold);
}
.logo-watermark {
  max-width: 180px;
  opacity: .85;
}


/* Screenshot-matched typography refinements */
body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.header-title p {
  font-size: 12px;
  font-weight: 500;
  color: #8fa3c2;
}
nav {
  font-size: 12px;
}
nav a {
  font-size: 12px;
  letter-spacing: .15px;
}
.card h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .25px;
}
.card h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}
.card p, td, input, select, textarea, label, button, .button {
  font-size: 12px;
}
th {
  font-size: 12px;
  font-weight: 800;
}
.badge {
  font-size: 11px;
}
.metric h2 {
  font-size: 1.8rem;
}


/* v22 organized dropdown navigation */
.top-nav {
  gap: 8px;
  align-items: stretch;
  position: relative;
  z-index: 50;
}

.nav-home {
  display: flex;
  align-items: center;
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-button {
  background: transparent;
  color: var(--gold);
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15px;
  cursor: pointer;
  box-shadow: none;
}

.nav-menu-button:hover,
.nav-menu:focus-within .nav-menu-button,
.nav-menu:hover .nav-menu-button {
  background: rgba(212, 175, 55, .12);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #08111f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 28px rgba(0,0,0,.35);
  z-index: 1000;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 10px;
  color: #dbe7ff;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 760px) {
  .top-nav {
    align-items: flex-start;
  }
  .nav-menu {
    width: 100%;
    display: block;
  }
  .nav-menu-button {
    width: 100%;
    text-align: left;
  }
  .nav-dropdown {
    position: static;
    display: block;
    min-width: 100%;
    box-shadow: none;
    margin: 2px 0 8px;
  }
}


/* v23 footer disclaimer and menu cleanup */
footer {
  border-top: 1px solid var(--border);
  background: #050915;
  margin-top: 20px;
  padding: 22px 16px;
  line-height: 1.55;
}
footer p {
  margin: 4px auto;
  max-width: 1100px;
}
.top-nav {
  min-height: 44px;
}
.top-nav > a,
.nav-home {
  padding: 8px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.top-nav > a:hover {
  background: rgba(212, 175, 55, .12);
  text-decoration: none;
}
.nav-menu-button::after {
  content: "";
}
.nav-dropdown {
  max-height: 70vh;
  overflow-y: auto;
}
.user {
  align-self: center;
}


/* v24 debit card receipt paste/upload helper */
.paste-zone {
  border: 1px dashed var(--border);
  background: rgba(8, 17, 31, .75);
  border-radius: 10px;
  padding: 16px;
  margin: 8px 0 10px;
  color: #dbe7ff;
  cursor: pointer;
}
.paste-zone:focus,
.paste-zone:hover {
  border-color: var(--gold);
  outline: none;
  background: rgba(212, 175, 55, .08);
}


/* v25 mobile-first usability improvements */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

header {
  flex-wrap: wrap;
}

.header-logo {
  flex: 0 0 auto;
}

.header-title {
  min-width: 0;
}

.header-title h1,
.header-title p {
  overflow-wrap: anywhere;
}

main {
  width: 100%;
}

.card {
  min-width: 0;
}

.grid,
.two,
.three,
.four {
  min-width: 0;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

td, th {
  white-space: nowrap;
}

td:nth-child(n+2),
th:nth-child(n+2) {
  min-width: 110px;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

button,
.button,
input,
select,
textarea {
  max-width: 100%;
}

.nav-dropdown {
  overflow-wrap: normal;
}

@media (max-width: 900px) {
  main {
    margin: 14px auto;
    padding: 0 10px;
  }

  .card {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .grid,
  .two,
  .three,
  .four {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  header {
    padding: 12px 14px;
    gap: 10px;
  }

  .header-logo {
    height: 44px;
  }

  .header-title h1 {
    font-size: 1rem;
  }

  .header-title p {
    font-size: 11px;
  }

  nav,
  .top-nav {
    padding: 8px 10px;
    gap: 6px;
  }

  .top-nav > a,
  .nav-home,
  .nav-menu-button {
    min-height: 40px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  header {
    align-items: flex-start;
  }

  .header-logo {
    height: 42px;
  }

  .header-title h1 {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .header-title p {
    line-height: 1.3;
  }

  .top-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .top-nav > a,
  .nav-home,
  .nav-menu-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
  }

  .nav-menu {
    width: 100%;
    display: block;
  }

  .nav-menu-button {
    border: 1px solid rgba(212, 175, 55, .18);
    background: rgba(212, 175, 55, .06);
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 100%;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
    border-radius: 8px;
    max-height: none;
  }

  .nav-menu:hover .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    white-space: normal;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .user {
    margin-left: 0 !important;
    width: 100%;
    padding: 8px 4px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* prevents iPhone zoom on focus */
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  button,
  .button {
    width: 100%;
    text-align: center;
    margin: 4px 0;
    min-height: 44px;
  }

  .metric h2 {
    font-size: 1.4rem;
  }

  .notice,
  .success,
  .error {
    padding: 10px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }

  footer {
    padding: 16px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 8px;
  }

  .card {
    padding: 12px;
  }

  .header-logo {
    height: 38px;
  }

  .header-title h1 {
    font-size: 0.92rem;
  }

  .card h2 {
    font-size: 14px;
  }

  .card h3 {
    font-size: 13px;
  }

  .card p,
  td,
  label,
  button,
  .button {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Mobile-friendly paste/upload drop zones if present */
.paste-box,
.upload-zone,
.drop-zone,
.receipt-paste-zone {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Print/mobile export readability */
@media print {
  nav,
  .top-nav,
  button,
  .button {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .card {
    border: 1px solid #999;
    box-shadow: none;
  }
}


/* v26 Operations + Event RSVP additions */
.flyer { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.rsvp-public { max-width: 760px; margin-left: auto; margin-right: auto; }
.badge.good { background: #0f3d2e; }
.badge.bad { background: #5b1420; }
.badge.warn { background: #5d4b11; }
@media (max-width: 760px) {
  .rsvp-public { max-width: 100%; }
}


/* v27 event checklist / check-in enhancements */
.event-checklist-card { overflow-x: auto; }
.event-checklist-table input,
.event-checklist-table select,
.event-checklist-table textarea { min-width: 150px; }
.event-checklist-table textarea { min-height: 54px; }
.event-checklist-table th,
.event-checklist-table td { vertical-align: top; }
.badge.good { background: rgba(56, 189, 101, .15); color: #6ee7a8; }
.badge.warn { background: rgba(245, 158, 11, .15); color: #fcd34d; }
@media (max-width: 760px) {
  .event-checklist-table input,
  .event-checklist-table select,
  .event-checklist-table textarea { min-width: 180px; }
}


/* v30 simple public RSVP page without portal menu */
.public-rsvp-body nav,
.public-rsvp-body .top-nav {
  display: none !important;
}
.public-rsvp-header {
  border-bottom: 1px solid rgba(212,175,55,.45);
}
.public-rsvp-main {
  max-width: 760px;
  margin: 28px auto;
}
.public-rsvp-footer {
  text-align: center;
  font-size: 12px;
  opacity: .9;
}
.rsvp-public button {
  font-size: 16px;
}
@media (max-width: 760px) {
  .public-rsvp-main {
    margin: 12px auto;
    padding: 0 10px;
  }
}

/* v37 event survey and notification engine */
.star-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}
.star-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(8, 17, 31, .75);
  color: var(--gold);
  cursor: pointer;
}
.star-choice input {
  width: auto;
  min-height: auto;
}
.star-choice:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .08);
}
@media (max-width: 760px) {
  .star-choice {
    width: 100%;
  }
}

/* v40 membership structured family/address form */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#familyMembersTable input { min-width: 160px; }
@media (max-width: 760px) { #familyMembersTable input { min-width: 180px; } }

/* v42.4 GRC form cleanup: card-style pages with readable vertical forms */
form.grc-form {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 17, 31, .45);
}
form.grc-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  color: #dbe7ff;
}
form.grc-form input,
form.grc-form select,
form.grc-form textarea {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-bottom: 8px;
}
form.grc-form textarea {
  min-height: 90px;
}
form.grc-form input[type="file"] {
  padding: 8px;
  background: #0b1424;
}
form.grc-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
form.grc-form label input[type="checkbox"] {
  width: auto;
  margin: 0;
}
form.grc-form button {
  margin-top: 14px;
  width: auto;
  min-width: 180px;
}
details > summary.button {
  list-style: none;
  margin: 10px 8px 10px 0;
}
details > summary.button::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  form.grc-form { max-width: 100%; padding: 12px; }
  form.grc-form input,
  form.grc-form select,
  form.grc-form textarea { max-width: 100%; }
}

/* v42.12 report usability */
.report-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;}
.report-controls .report-search{max-width:360px;}
.report-pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:12px 0;}
.report-table{width:100%;}
.report-table th{position:relative;}

/* v42.25 mobile navigation optimization */
.mobile-menu-toggle {
  display: none;
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: none;
}

@media (max-width: 760px) {
  header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  .top-nav {
    position: sticky;
    top: 67px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
  }

  .top-nav:not(.mobile-open) > a,
  .top-nav:not(.mobile-open) > .nav-menu,
  .top-nav:not(.mobile-open) > .user {
    display: none !important;
  }

  .top-nav.mobile-open > a,
  .top-nav.mobile-open > .nav-menu,
  .top-nav.mobile-open > .user {
    display: flex;
  }

  .top-nav.mobile-open > .nav-menu {
    display: block;
  }

  .top-nav.mobile-open .nav-menu-button {
    display: flex;
    align-items: center;
  }

  .top-nav.mobile-open .nav-dropdown {
    display: none;
  }

  .top-nav.mobile-open .nav-menu:focus-within .nav-dropdown,
  .top-nav.mobile-open .nav-menu:hover .nav-dropdown {
    display: block;
  }

  .top-nav.mobile-open > a,
  .top-nav.mobile-open .nav-menu-button {
    border: 1px solid rgba(212, 175, 55, .14);
    border-radius: 8px;
    margin-top: 6px;
    background: rgba(8, 17, 31, .8);
  }

  .nav-dropdown {
    max-height: 45vh;
    overflow-y: auto;
  }

  main {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .top-nav { top: 63px; max-height: calc(100vh - 63px); }
}


/* v43.27 - Full-screen work pages and easier wide-table viewing */
@media (min-width: 901px) {
  main {
    max-width: none !important;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .card {
    width: 100%;
  }
  .users-table,
  .request-view-table,
  .bundle-vouchers-table {
    display: table !important;
    table-layout: auto;
    width: 100%;
    white-space: normal !important;
    font-size: .86rem;
  }
  .users-table th, .users-table td,
  .request-view-table th, .request-view-table td,
  .bundle-vouchers-table th, .bundle-vouchers-table td {
    white-space: normal !important;
    min-width: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 7px 6px;
  }
  .users-table td:nth-child(5) {
    max-width: 480px;
  }
  .users-table td:last-child,
  .request-view-table td:first-child {
    white-space: nowrap !important;
  }
  .request-view-table td:nth-child(4),
  .request-view-table td:nth-child(5),
  .request-view-table td:nth-child(8),
  .request-view-table td:nth-child(12) {
    max-width: 160px;
  }
  .request-view-table input[type=checkbox] {
    width: auto;
    margin: 0;
  }
  .action-row .danger,
  button.danger,
  .button.danger {
    background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
    color: #fff;
  }
}

/* v43.29 individual menu item access controls */
.menu-item-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.menu-item-group {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
}
.menu-item-group h4 {
  margin: 0 0 8px;
  color: #d4af37;
}

/* v43.37 - Ticketing admin compact diagnostics and wrapping errors */
.ticketing-admin-table td,
.ticketing-admin-table th {
  white-space: normal;
}
.ticketing-admin-table td.wrap-cell {
  min-width: 320px;
  max-width: 760px;
  white-space: normal;
}
.ticket-result-text,
.error-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.error-text {
  color: #fecaca;
}

/* v43.38 - Ticketing skip rules and bulk actions */
.ticket-filter-inline,
.ticket-bulk-inline {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ticket-filter-inline label,
.ticket-bulk-inline label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  margin: 0;
}
.ticket-filter-inline input,
.ticket-filter-inline select,
.ticket-bulk-inline input,
.ticket-bulk-inline select {
  min-height: 36px;
}
.ticket-table th,
.ticket-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ticket-table td:nth-child(5) {
  min-width: 240px;
}
@media (max-width: 900px) {
  .ticket-filter-inline,
  .ticket-bulk-inline {
    align-items: stretch;
  }
  .ticket-filter-inline label,
  .ticket-bulk-inline label {
    min-width: 100%;
  }
}

.rich-editor {
  min-height: 160px;
  border: 1px solid #2b3a55;
  border-radius: 8px;
  padding: 12px;
  background: #07111f;
  color: #e8eef9;
  overflow: auto;
  line-height: 1.45;
}
.rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #7f8da3;
}
.ticket-rich-body {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.ticket-rich-body table {
  border-collapse: collapse;
  max-width: 100%;
  overflow: auto;
}
.ticket-rich-body th,
.ticket-rich-body td {
  border: 1px solid #2b3a55;
  padding: 6px;
  vertical-align: top;
}
.ticket-rich-body a {
  color: #9fc5ff;
}
.ticket-plain-body {
  white-space: pre-wrap;
  overflow: auto;
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 8px;
}
.ticket-message {
  overflow-wrap: anywhere;
}
.warn-text { color: #fca5a5; font-weight: 700; }


/* v43.54 two-column GL picker for approver coding */
.gl-picker {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 6px 0 12px;
  background: rgba(8, 17, 31, .72);
}
.gl-picker-current {
  border: 1px solid #3a4d6e;
  background: #071120;
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.gl-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.gl-picker-toolbar input { margin-bottom: 0; }
.gl-picker-clear { white-space: nowrap; }
.gl-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.gl-picker-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #253a59;
  border-radius: 10px;
  background: #0a1424;
  color: #dbe7ff;
  cursor: pointer;
  min-height: 58px;
}
.gl-picker-option:hover, .gl-picker-option.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .12);
}
.gl-picker-option input {
  width: auto;
  margin: 3px 0 0;
  flex: 0 0 auto;
}
.gl-code-chip {
  flex: 0 0 48px;
  text-align: center;
  background: #111827;
  border: 1px solid #334155;
  color: var(--gold);
  border-radius: 8px;
  padding: 4px 6px;
  font-weight: 900;
}
.gl-picker-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.gl-picker-text small {
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 820px) {
  .gl-picker-grid { grid-template-columns: 1fr; max-height: 420px; }
  .gl-picker-toolbar { grid-template-columns: 1fr; }
}

/* v43.63 Large Purchase Approval cleanup */
.quote-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-compact {
  padding: 12px;
  margin-bottom: 0;
}
.quote-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: start;
}
.quote-compact input {
  margin-bottom: 6px;
}
.quote-compact .paste-zone {
  padding: 8px 10px;
  margin: 4px 0 4px;
  min-height: 44px;
}
.quote-compact .quotePastedList {
  margin: 0;
  padding-left: 18px;
}
@media (max-width: 760px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* v43.69 Donor Information Update mobile cleanup */
.donor-update-card input,
.donor-update-card select,
.donor-update-card textarea {
  font-size: 16px;
}
.donor-update-card .button,
.donor-update-card button {
  margin-top: 10px;
}
@media (max-width: 720px) {
  .donor-update-card.narrow {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }
  .donor-update-card .two,
  .donor-update-card .three,
  .donor-two,
  .donor-three {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .donor-update-card .button,
  .donor-update-card button {
    width: 100%;
    text-align: center;
  }
}

/* v43.70 - Donor Information Update terms/communication consent */
.donor-consent-box {
  margin: 16px 0;
  padding: 14px;
}
.donor-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.donor-consent-label input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.donor-consent-text {
  flex: 1 1 auto;
}
.donor-terms-link {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .donor-consent-label {
    font-size: 0.98rem;
  }
}

/* v43.72 - Donor address lookup suggestions */
.address-lookup-wrap {
  position: relative;
}
.address-suggest-box {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(224, 186, 64, 0.45);
  border-radius: 10px;
  background: #071324;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}
.address-suggest-item {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  background: transparent;
  color: #f7fafc;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
}
.address-suggest-item:hover,
.address-suggest-item.active {
  background: rgba(224, 186, 64, 0.16);
  color: #ffd95a;
}
.address-suggest-item:last-child {
  border-bottom: 0;
}
.address-status {
  min-height: 18px;
}

/* v43.87 - Donor update three-column status and membership benefits */
.donor-update-wide {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.donor-update-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(260px, .85fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
}
.donor-side-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(8,17,31,.72);
}
.donor-side-card h3 {
  margin-top: 0;
}
.donor-side-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
}
.donor-side-card li {
  margin: 7px 0;
}
.donor-status-card .badge {
  margin-bottom: 4px;
}
@media (max-width: 1050px) {
  .donor-update-grid {
    grid-template-columns: 1fr;
  }
}

/* v43.88 - Wider become-member form with no family table scrolling */
.member-signup-card {
  max-width: 1040px;
  width: min(1040px, calc(100vw - 36px));
  margin-left: auto;
  margin-right: auto;
}
.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}
.member-signup-card input,
.member-signup-card select,
.member-signup-card textarea {
  font-size: 16px;
}
.member-signup-card input[type="hidden"] {
  display: none;
}
.member-family-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 10px;
}
.member-family-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(170px, .8fr) minmax(230px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,17,31,.5);
}
.member-family-row label {
  margin-top: 0;
}
.member-family-row input {
  margin-bottom: 0;
}
.member-family-action {
  display: flex;
  align-items: end;
  padding-bottom: 0;
}
.member-address-full {
  margin-bottom: 4px;
}
@media (max-width: 920px) {
  .member-signup-card {
    width: 100%;
    max-width: none;
  }
  .member-form-grid,
  .member-family-row {
    grid-template-columns: 1fr;
  }
  .member-family-action button,
  .member-signup-card button,
  .member-signup-card .button {
    width: 100%;
    text-align: center;
  }
}

/* v43.89 - Simple slick donation form with fund/frequency selection cards */
.donation-slick-card {
  max-width: 1120px;
}
.donation-fund-grid,
.donation-frequency-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}
.donation-choice {
  display: block;
  cursor: pointer;
}
.donation-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.donation-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(32,45,66,.72);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}
.donation-choice.selected span,
.donation-choice input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(213,170,45,.95), rgba(175,128,17,.95));
  color: #030712;
}
@media (max-width: 820px) {
  .donation-fund-grid,
  .donation-frequency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .donation-fund-grid,
  .donation-frequency-grid {
    grid-template-columns: 1fr;
  }
}
.donation-amount-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(66px, auto));
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.donation-amount-row input,
.donation-amount-row button {
  margin: 0;
}
.donation-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.2fr;
  gap: 12px;
  align-items: end;
}
.donation-contact-grid label {
  margin-top: 8px;
}
.donation-contact-chip {
  padding: 12px 14px;
  border: 1px solid rgba(16,185,129,.55);
  border-radius: 12px;
  background: rgba(6,78,59,.35);
  margin: 14px 0;
}
.donation-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.donation-action-row button,
.donation-action-row .button {
  margin-top: 0;
}
@media (max-width: 760px) {
  .donation-amount-row,
  .donation-contact-grid {
    grid-template-columns: 1fr;
  }
  .donation-slick-card button,
  .donation-slick-card .button {
    width: 100%;
    text-align: center;
  }
}


.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 28, 48, 0.98);
  border: 1px solid #d4af37;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 16px 18px;
}
.cookie-consent-text { display: flex; flex-direction: column; gap: 6px; color: #dbeafe; line-height: 1.45; }
.cookie-consent-text strong { color: #facc15; font-size: 1.05rem; }
.cookie-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; min-width: 240px; }
.cookie-consent-actions button { white-space: nowrap; }
@media (max-width: 760px) {
  .cookie-consent { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-consent-actions { justify-content: stretch; min-width: 0; }
  .cookie-consent-actions button { flex: 1; }
}


/* v44.07 - Public facility booking */
.facility-booking-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: start;
}
.facility-booking-card { max-width: none; }
.facility-policy-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: rgba(15, 23, 42, .92);
  box-shadow: var(--shadow);
}
.facility-policy-card ul { margin-top: 8px; padding-left: 20px; }
.facility-policy-card li { margin: 7px 0; color: var(--muted); }
.facility-fee-box {
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: rgba(212,175,55,.08);
}
.facility-override-label {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(32,45,66,.45);
  margin: 10px 0;
}
@media (max-width: 980px) {
  .facility-booking-layout { grid-template-columns: 1fr; }
}

.full-click-picker { cursor: pointer; }
.facility-booking-card select { cursor: pointer; }
#facilityBookingPhoneError { color: #ffb4b4; margin-top: 4px; }

/* v44.10 public footer fine print */
.developer-credit { font-size: .78rem; opacity: .72; margin-top: 6px; }

.teacher-staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: start;
}
.teacher-staff-side { position: sticky; top: 12px; }
.teacher-staff-kb ul { padding-left: 20px; }
.teacher-staff-kb li { margin-bottom: 8px; }
.teacher-staff-kb .notice { margin-top: 12px; }
@media (max-width: 900px) {
  .teacher-staff-layout { grid-template-columns: 1fr; }
  .teacher-staff-side { position: static; }
}

/* v44.36 - Donor information mobile friendly payment lookup cards */
.donor-mobile-card {
  width: min(1180px, calc(100vw - 28px));
  padding: 18px;
}
.donor-public-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(224,186,64,.34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(224,186,64,.14), rgba(15,118,110,.12));
}
.donor-public-hero h2 { margin: 0 0 8px; }
.donor-public-hero .lead { margin: 0; }
.donor-kicker {
  margin: 0 0 6px;
  color: var(--gold, #e0ba40);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.donor-found-summary {
  margin-bottom: 14px;
  line-height: 1.55;
}
.donor-form-section {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px;
  background: rgba(8,17,31,.55);
}
.donor-section-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.donor-section-heading h3 {
  margin: 0 0 4px;
}
.donor-step-badge {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c69a13;
  color: #06111f;
  font-weight: 900;
  flex: 0 0 auto;
}
.donor-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}
.donor-method-card {
  padding: 14px;
  border: 1px solid rgba(224,186,64,.22);
  border-radius: 14px;
  background: rgba(2, 8, 23, .36);
}
.donor-method-card h4 {
  margin: 0 0 6px;
  color: var(--gold, #e0ba40);
}
.donor-method-card label { margin-top: 10px; }
.donor-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.donor-action-row .button,
.donor-action-row button { margin-top: 0; }
.donor-update-card input,
.donor-update-card select,
.donor-update-card textarea {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  body:has(.donor-update-card) main,
  body:has(.donor-update-card) .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .donor-mobile-card {
    width: calc(100vw - 14px);
    margin: 0 auto;
    padding: 12px;
    border-radius: 12px;
  }
  .donor-public-hero,
  .donor-form-section {
    padding: 12px;
    border-radius: 12px;
  }
  .donor-payment-grid {
    grid-template-columns: 1fr;
  }
  .donor-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .donor-action-row .button,
  .donor-action-row button {
    width: 100%;
  }
  .donor-section-heading {
    gap: 8px;
  }
}

/* v44.39 - Donation Sadaqa subtype and donor profile */
.donation-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.donation-top-row h2 { margin-bottom: 6px; }
.donation-profile-button { white-space: nowrap; margin-top: 0; }
.sadaqa-category-card,
.donation-purpose-card {
  margin: -4px 0 16px;
  padding: 14px;
  border: 1px solid rgba(224,186,64,.35);
  border-radius: 14px;
  background: rgba(224,186,64,.08);
}
.sadaqa-category-card[hidden],
.donation-purpose-card[hidden] { display: none !important; }
.sadaqa-category-card label,
.donation-purpose-card label { margin-top: 0; }
.donation-purpose-card select { margin-bottom: 6px; }
.donor-profile-card { width: min(1100px, calc(100vw - 28px)); }
.donor-profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mini-stat {
  padding: 14px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 14px;
  background: rgba(8,17,31,.55);
}
.mini-stat strong {
  display: block;
  color: var(--gold, #e0ba40);
  font-size: 1.4rem;
}
.mini-stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
  .donation-top-row { flex-direction: column; }
  .donation-profile-button { width: 100%; text-align: center; }
  .donor-profile-summary-grid { grid-template-columns: 1fr; }
  .donor-profile-card { width: calc(100vw - 14px); padding: 12px; }
}

/* v44.40 - clean donation phone field and donor OTP login */
.donation-contact-grid {
  align-items: start;
}
#donationPhone {
  letter-spacing: .04em;
}
.donor-login-card .donor-login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.donor-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: var(--muted, #94a3b8);
  font-size: .9rem;
}
.donor-login-divider:before,
.donor-login-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148,163,184,.28);
}
@media (max-width: 720px) {
  .donor-login-card .donor-login-actions .button,
  .donor-login-card form .button,
  .donor-login-card form button {
    width: 100%;
    text-align: center;
  }
}

/* v44.55 - same-page Stripe Embedded Checkout for donations */
.donation-embedded-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(213,170,45,.55);
  border-radius: 16px;
  background: rgba(15,23,42,.72);
}
.donation-payment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.donation-payment-header h3 {
  margin: 0 0 4px;
}
.donation-checkout-mount {
  min-height: 460px;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 760px) {
  .donation-payment-header {
    flex-direction: column;
  }
  .donation-payment-header button {
    width: 100%;
  }
  .donation-checkout-mount {
    min-height: 560px;
  }
}

/* v44.61 - Fundraising module */
.fund-hero {
  border: 1px solid rgba(212, 175, 55, .28);
  background: linear-gradient(135deg, rgba(212, 175, 55, .12), rgba(255, 255, 255, .03));
}
.fund-event-card h2,
.fund-hero h2 {
  margin-bottom: 8px;
}
.fund-progress {
  width: 100%;
  height: 16px;
  background: rgba(148, 163, 184, .22);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  margin: 14px 0 6px;
}
.fund-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b88a2b, #f1d27a);
  border-radius: 999px;
  transition: width .2s ease-in-out;
}
.fund-mini-progress {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, .18);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}
.fund-mini-progress span {
  display: block;
  height: 100%;
  background: #d4af37;
}
#fundItemEditor input,
#fundItemEditor textarea {
  min-width: 120px;
}
.fund-line-total {
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .fund-qty { min-width: 84px; }
}

/* v44.61 - Admin configuration section menu */
.admin-jump-menu {
  position: sticky;
  top: 0;
  z-index: 45;
  border-color: rgba(212, 175, 55, .38);
  background: linear-gradient(180deg, rgba(16, 27, 45, .98), rgba(12, 22, 38, .98));
}
.admin-jump-menu h2 {
  margin-top: 0;
  margin-bottom: 4px;
}
.admin-jump-menu .small {
  margin-top: 0;
}
.admin-jump-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(212, 175, 55, .24);
  border-radius: 999px;
  background: rgba(212, 175, 55, .08);
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.admin-jump-links a:hover,
.admin-jump-links a:focus {
  background: rgba(212, 175, 55, .16);
  text-decoration: none;
}
.admin-section {
  scroll-margin-top: 92px;
}
@media (max-width: 760px) {
  .admin-jump-menu {
    position: static;
  }
  .admin-jump-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .admin-jump-links a {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    min-height: 44px;
  }
  .admin-section {
    scroll-margin-top: 16px;
  }
}

/* v44.97 Fundraising public page row-wise sponsorship layout */
.fundraising-flow { display: block; max-width: 1320px; margin: 0 auto; }
.fundraiser-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.fund-step-badge {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #06101f;
  font-weight: 900;
}
.fund-step-content { min-width: 0; }
.fund-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.fund-choice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(8, 17, 31, .72); padding: 12px;
  margin: 0; cursor: pointer; min-height: 88px;
}
.fund-choice:hover, .fund-choice:focus-within { border-color: rgba(212,175,55,.78); background: rgba(212,175,55,.08); }
.fund-choice input { width: auto; min-height: auto; margin: 3px 0 0; flex: 0 0 auto; }
.fund-choice span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fund-choice small { color: var(--muted); font-weight: 500; line-height: 1.35; }

/* v49.46 mobile-first fundraising tiles and steppers */
.fund-tile-choice {
  position: relative; padding: 0; border: 0; background: transparent; min-height: 92px;
}
.fund-tile-choice:hover, .fund-tile-choice:focus-within { background: transparent; border-color: transparent; }
.fund-tile-choice > input {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.fund-tile-choice > span {
  width: 100%; height: 100%; box-sizing: border-box; padding: 14px 15px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(8,17,31,.72);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fund-tile-choice:hover > span, .fund-tile-choice:focus-within > span {
  border-color: rgba(212,175,55,.78); background: rgba(212,175,55,.08);
}
.fund-tile-choice > input:checked + span {
  border-color: var(--gold); background: rgba(212,175,55,.14);
  box-shadow: 0 0 0 2px rgba(212,175,55,.16) inset;
}
.fund-tile-choice > input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.fund-tile-choice > input:disabled + span { opacity: .48; cursor: not-allowed; }
.fund-tile-choice strong { font-size: 1rem; line-height: 1.2; }
.fund-payment-grid .fund-tile-choice > span { min-height: 100px; }
.fund-mobile-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fund-method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fund-pledge-planner { padding: 14px; }
.fund-pledge-section { padding: 14px 0; border-top: 1px solid rgba(148,163,184,.14); }
.fund-pledge-section:first-child { padding-top: 0; border-top: 0; }
.fund-pledge-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.fund-pledge-section-heading h3 { margin: 0 0 3px; }
.fund-pledge-section-heading p { margin: 0; }
.fund-mini-step {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(212,175,55,.16); color: var(--gold);
  border: 1px solid rgba(212,175,55,.38); font-weight: 900;
}
.fund-plan-stepper-card {
  border: 1px solid rgba(212,175,55,.24); border-radius: 16px; background: rgba(3,10,20,.45);
  padding: 14px; margin: 12px 0;
}
.fund-stepper-control { display: grid; gap: 12px; }
.fund-stepper-copy { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.fund-stepper-row { display: grid; grid-template-columns: 58px minmax(110px, 1fr) 58px; gap: 12px; align-items: stretch; max-width: 430px; width: 100%; margin: 0 auto; }
.fund-stepper-button {
  width: 44px; min-width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; line-height: 1;
  background: #15243a; color: var(--gold); border: 1px solid rgba(212,175,55,.4); box-shadow: none;
}
.fund-stepper-button:hover, .fund-stepper-button:focus-visible { background: rgba(212,175,55,.16); transform: none; }
.fund-stepper-large { width: 58px; min-width: 58px; height: 58px; border-radius: 15px; font-size: 2rem; }
.fund-stepper-value {
  min-height: 58px; border: 1px solid var(--border); border-radius: 15px; background: rgba(9,20,37,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 12px;
}
.fund-stepper-value strong { color: var(--gold); font-size: 1.55rem; line-height: 1.1; }
.fund-stepper-value span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.fund-stepper-currency strong { font-size: 1.35rem; }
.fund-plan-summary {
  display: grid; gap: 5px; border: 1px solid rgba(16,185,129,.42); border-radius: 14px;
  background: rgba(16,185,129,.08); padding: 13px 14px; margin: 12px 0;
}
.fund-plan-summary strong { color: #6ee7b7; font-size: 1.05rem; }
.fund-plan-summary span { color: var(--text); line-height: 1.45; }
.fund-recurring-note { margin: 8px 2px 0; }
.fund-privacy-note { margin: 12px 2px 0; }

.fund-qty-stepper { display: grid; grid-template-columns: 44px minmax(44px, 1fr) 44px; gap: 6px; align-items: center; }
.fund-qty-stepper .fund-qty { min-height: 44px; padding: 6px 4px; appearance: textfield; -moz-appearance: textfield; }
.fund-qty-stepper .fund-qty::-webkit-outer-spin-button, .fund-qty-stepper .fund-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fund-item-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 17, 31, .68);
}
.fund-item-list-head,
.fund-item-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) minmax(155px, .85fr) minmax(230px, 1.35fr) 150px 125px;
  gap: 18px;
  align-items: center;
}
.fund-item-list-head {
  padding: 11px 16px;
  color: var(--muted);
  background: rgba(148, 163, 184, .08);
  border-bottom: 1px solid var(--border);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fund-item-list-head span:nth-child(4),
.fund-item-list-head span:nth-child(5) { text-align: right; }
.fund-item-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease, border-color .15s ease;
}
.fund-item-row:last-child { border-bottom: 0; }
.fund-item-row:hover,
.fund-item-row:focus-within { background: rgba(212,175,55,.055); }
.fund-item-info { min-width: 0; }
.fund-item-info h3 { margin: 0 0 5px; color: var(--gold); font-size: 1.05rem; }
.fund-item-info p { margin: 0; color: var(--text); line-height: 1.45; }
.fund-item-price { min-width: 0; }
.fund-item-price strong { display: block; color: #facc15; font-size: 1.08rem; line-height: 1.2; }
.fund-item-price .small { display: block; margin-top: 3px; }
.fund-item-progress-cell { min-width: 0; }
.fund-item-progress-cell p { margin: 5px 0 0; line-height: 1.35; }
.fund-item-qty-cell { min-width: 0; }
.fund-item-qty-cell label { display: none; }
.fund-item-qty-cell input {
  width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-weight: 800;
}
.fund-item-total-cell { text-align: right; min-width: 0; }
.fund-line-total { display: block; color: var(--gold); font-size: 1.08rem; font-weight: 900; white-space: nowrap; }
.fund-mobile-label { display: none; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.fund-mini-progress { width: 100%; height: 8px; border-radius: 999px; background: #27364d; overflow: hidden; margin: 0; }
.fund-mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.fund-nested-panel { border: 1px solid rgba(212,175,55,.22); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.025); margin: 12px 0; }
.fund-total-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid rgba(212,175,55,.32); border-radius: 12px; padding: 12px 14px; margin-top: 14px; background: rgba(212,175,55,.08); }
.fund-total-box span { color: var(--muted); }
.fund-total-box strong { color: var(--gold); font-size: 1.35rem; }
.checkline { display: flex; align-items: flex-start; gap: 9px; }
.checkline input { width: auto; min-height: auto; margin-top: 2px; }
.action-stack { display: grid; gap: 6px; min-width: 180px; }
button.danger, .button.danger { background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%); color: #fff; }

@media (max-width: 1050px) {
  .fund-item-list-head,
  .fund-item-row {
    grid-template-columns: minmax(240px, 2fr) minmax(145px, .9fr) minmax(190px, 1.25fr) 140px 110px;
    gap: 12px;
  }
}
@media (max-width: 820px) {
  .fundraiser-step { grid-template-columns: 1fr; gap: 8px; }
  .fund-step-badge { width: 32px; height: 32px; }
  .fund-choice-grid { grid-template-columns: 1fr; }
  .fund-choice-grid.fund-mobile-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .fund-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-choice { min-height: auto; }
  .fund-tile-choice { min-height: 86px; }
  .fund-tile-choice > span { padding: 12px; }
  .fund-tile-choice small { font-size: .78rem; }
  .fund-pledge-planner { padding: 10px; }
  .fund-pledge-section { padding: 12px 0; }
  .fund-plan-stepper-card { padding: 12px 10px; }
  .fund-stepper-row { grid-template-columns: 56px minmax(100px, 1fr) 56px; gap: 9px; }
  .fund-stepper-large { width: 56px; min-width: 56px; height: 56px; }
  .fund-stepper-value { min-height: 56px; }
  .fundraising-flow #fundSubmitButton { width: 100%; min-height: 52px; font-size: 1rem; }
  .fund-item-list { border: 0; background: transparent; overflow: visible; gap: 10px; }
  .fund-item-list-head { display: none; }
  .fund-item-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .65fr);
    grid-template-areas:
      "info info"
      "price qty"
      "progress progress"
      "total total";
    gap: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: rgba(8,17,31,.72);
  }
  .fund-item-info { grid-area: info; }
  .fund-item-price { grid-area: price; }
  .fund-item-progress-cell { grid-area: progress; }
  .fund-item-qty-cell { grid-area: qty; }
  .fund-item-total-cell { grid-area: total; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); text-align: right; }
  .fund-item-qty-cell label,
  .fund-mobile-label { display: block; }
  .fund-item-qty-cell label { margin-bottom: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
  .fund-item-total-cell .fund-mobile-label { margin: 0; }
  .fund-total-box { align-items: flex-start; flex-direction: column; }
  .action-stack { min-width: 0; }
}
@media (max-width: 480px) {
  .fund-choice-grid.fund-mobile-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-tile-choice > span { padding: 11px 10px; }
  .fund-tile-choice strong { font-size: .92rem; }
  .fund-tile-choice small { font-size: .73rem; }
  .fund-stepper-row { grid-template-columns: 54px minmax(90px, 1fr) 54px; gap: 7px; }
  .fund-stepper-large { width: 54px; min-width: 54px; height: 54px; }
  .fund-stepper-value strong { font-size: 1.35rem; }
  .fund-pledge-section-heading { gap: 8px; }
  .fund-item-row {
    grid-template-columns: 1fr;
    grid-template-areas: "info" "price" "progress" "qty" "total";
  }
  .fund-item-total-cell { margin-top: 2px; }
}


/* v49.47 guided mobile fundraising steps */
.fundraiser-step, .fund-pledge-section { scroll-margin-top: 110px; }
.fund-step-guide { display:grid; gap:4px; margin-top:12px; padding:11px 13px; border:1px solid rgba(212,175,55,.35); border-radius:12px; background:rgba(212,175,55,.07); color:var(--text); }
.fund-step-guide strong { color:var(--gold); }
.fund-step-guide span { color:var(--muted); }
.fund-step-guide-ok { border-color:rgba(16,185,129,.45); background:rgba(16,185,129,.08); }
.fund-step-guide-ok strong { color:#6ee7b7; }
.fund-step-guide-warn { margin:10px 0 12px; }
.fund-step-locked { border-color:rgba(148,163,184,.20); }
.fund-step-complete { border-color:rgba(16,185,129,.32); }
.fund-step-continue { margin-top:12px; }
.fund-step-attention { animation:fundStepAttention 1s ease-in-out 3; border-color:var(--gold) !important; }
@keyframes fundStepAttention {
  0%,100% { box-shadow:0 0 0 0 rgba(212,175,55,0); }
  50% { box-shadow:0 0 0 4px rgba(212,175,55,.34), 0 0 22px rgba(212,175,55,.18); }
}
@media (prefers-reduced-motion: reduce) { .fund-step-attention { animation:none; box-shadow:0 0 0 3px rgba(212,175,55,.24); } }

/* v44.71 event setup and age-based RSVP */
.event-form-card {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.event-form-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.event-form-heading h2 { margin-bottom: 4px; }
.event-form-section {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 9, 21, .32);
}
.event-form-section h3 {
  margin: 0 0 6px;
}
.ticket-category-grid,
.public-ticket-grid,
.event-rsvp-counts,
.event-price-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ticket-category-card,
.public-ticket-card,
.event-price-summary > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #08111f;
}
.ticket-category-card.adult { border-top: 3px solid #d4af37; }
.ticket-category-card.youth { border-top: 3px solid #3b82f6; }
.ticket-category-card.child { border-top: 3px solid #10b981; }
.ticket-category-title,
.public-ticket-card,
.event-price-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-category-title {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ticket-category-title strong,
.public-ticket-card strong,
.event-price-summary strong {
  color: var(--gold);
  font-size: 14px;
}
.ticket-category-title span,
.public-ticket-card span,
.event-price-summary span {
  color: var(--muted);
  font-size: 12px;
}
.public-ticket-card b,
.event-price-summary b {
  font-size: 18px;
  color: #f8fafc;
}
.public-ticket-card.free b,
.free-ticket-note {
  color: #86efac;
}
.free-ticket-note {
  border: 1px solid #047857;
  background: rgba(6, 78, 59, .3);
  padding: 10px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}
.compact-grid { gap: 8px; }
.event-rsvp-counts { margin: 18px 0 8px; }
.rsvp-total-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 8px 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1424;
}
.rsvp-total-bar strong { color: var(--gold); }
.event-rsvp-contact {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 9, 21, .35);
}
.event-rsvp-contact h3 { margin-top: 0; }

@media (max-width: 820px) {
  .ticket-category-grid,
  .public-ticket-grid,
  .event-rsvp-counts,
  .event-price-summary {
    grid-template-columns: 1fr;
  }
  .event-form-section { padding: 12px; }
  .ticket-category-title { align-items: flex-start; }
  .rsvp-total-bar { flex-direction: column; }
}


/* v44.82 compact row-wise Facility Booking Report */
.facility-booking-list-card { padding: 0; overflow: hidden; }
.facility-booking-list-heading { padding: 18px 20px 8px; }
.facility-booking-list-heading h3 { margin: 0 0 4px; }
.facility-booking-list-heading p { margin: 0; }
.facility-booking-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.facility-booking-table {
  min-width: 1120px;
  table-layout: fixed;
}
.facility-booking-table th:nth-child(1) { width: 14%; }
.facility-booking-table th:nth-child(2) { width: 17%; }
.facility-booking-table th:nth-child(3) { width: 25%; }
.facility-booking-table th:nth-child(4) { width: 12%; }
.facility-booking-table th:nth-child(5) { width: 14%; }
.facility-booking-table th:nth-child(6) { width: 18%; }
.facility-booking-table th,
.facility-booking-table td { padding: 13px 12px; }
.facility-booking-table tbody tr:hover { background: rgba(212, 175, 55, .045); }
.facility-booking-table tbody tr:last-child td { border-bottom: 0; }
.facility-booking-cell-content { min-width: 0; }
.facility-booking-cell-content > strong,
.facility-booking-cell-content > span,
.facility-booking-cell-content > div { display: block; }
.facility-booking-cell-content > span { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.facility-booking-cell-content > .badge { width: fit-content; color: inherit; }
.facility-booking-reference { font-weight: 900; white-space: nowrap; }
.facility-booking-row-archived { opacity: .72; }
.facility-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.facility-booking-actions form { margin: 0; display: inline-flex; }
.facility-booking-actions .button,
.facility-booking-actions button {
  min-height: 34px;
  padding: 8px 10px;
  margin: 0;
  white-space: nowrap;
}
.facility-booking-empty { text-align: center; color: var(--muted); padding: 28px !important; }

@media (max-width: 900px) {
  .facility-booking-list-card { padding: 14px; background: transparent; border: 0; box-shadow: none; }
  .facility-booking-list-heading { padding: 0 0 10px; }
  .facility-booking-table-wrap { overflow: visible; border: 0; }
  .facility-booking-table,
  .facility-booking-table tbody,
  .facility-booking-table tr,
  .facility-booking-table td { display: block; width: 100%; }
  .facility-booking-table { min-width: 0; table-layout: auto; }
  .facility-booking-table thead { display: none; }
  .facility-booking-table tr {
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  .facility-booking-table td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
  }
  .facility-booking-table td::before {
    content: attr(data-label);
    color: var(--gold);
    font-weight: 800;
  }
  .facility-booking-table td > .facility-booking-cell-content,
  .facility-booking-table td > .facility-booking-actions { min-width: 0; }
  .facility-booking-table td:last-child { border-bottom: 0; }
  .facility-booking-table .facility-booking-actions-cell { display: block; }
  .facility-booking-table .facility-booking-actions-cell::before { display: block; margin-bottom: 9px; }
  .facility-booking-actions { width: 100%; }
  .facility-booking-actions .button,
  .facility-booking-actions button { flex: 1 1 auto; text-align: center; }
  .facility-booking-actions form { flex: 1 1 auto; }
  .facility-booking-actions form button { width: 100%; }
}

@media (max-width: 520px) {
  .facility-booking-list-card { padding-left: 0; padding-right: 0; }
  .facility-booking-table td { grid-template-columns: 88px minmax(0, 1fr); }
  .facility-booking-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .facility-booking-actions form { width: 100%; }
}


/* v44.83 configurable event surveys */
.survey-editor-wrap { margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.survey-editor-toolbar { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:14px 16px; background:rgba(255,255,255,.025); border-bottom:1px solid var(--border); }
.survey-editor-toolbar p { margin: 4px 0 0; }
.survey-editor-table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.survey-editor-table { min-width:1400px; table-layout:fixed; }
.survey-editor-table th:nth-child(1){width:48px}.survey-editor-table th:nth-child(2){width:260px}.survey-editor-table th:nth-child(3){width:190px}.survey-editor-table th:nth-child(4){width:105px}.survey-editor-table th:nth-child(5){width:250px}.survey-editor-table th:nth-child(6){width:250px}.survey-editor-table th:nth-child(7){width:90px}.survey-editor-table th:nth-child(8){width:95px}
.survey-editor-table td { vertical-align:top; }
.survey-editor-table input,.survey-editor-table select,.survey-editor-table textarea { margin:0; min-width:0; }
.survey-row-number { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:50%; background:rgba(212,175,55,.15); color:var(--gold); font-weight:800; }
.survey-inline-check { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.survey-inline-check input,.survey-choice-list input { width:auto; margin:0; }
.survey-preview { border:1px solid var(--border); border-radius:10px; padding:18px; background:rgba(255,255,255,.02); }
.survey-preview-question { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.survey-preview-question > span { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:rgba(212,175,55,.14); color:var(--gold); font-weight:800; }
.survey-preview-question p { margin:4px 0 0; }
.survey-settings-inactive { opacity:.52; position:relative; }
.survey-settings-inactive::before { content:"Generic survey selected. These custom fields are saved for later but are not currently used."; display:block; margin:12px 0; padding:10px 12px; border:1px solid var(--border); border-radius:8px; color:var(--muted); }
.survey-public-card { max-width:780px; margin-left:auto; margin-right:auto; }
.survey-question-card { margin:16px 0; padding:16px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); }
.survey-question-card > label { display:block; margin-bottom:6px; font-size:1.03rem; }
.survey-help { margin:0 0 10px; }
.survey-choice-list { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:8px; }
.survey-choice-list label { display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.02); }
.survey-rating-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.survey-rating-options .star-choice { margin:0; }
.required-mark { color:#ff8a8a; }
.survey-answer-summary { max-width:390px; white-space:normal; }
.survey-response-table th { width:42%; }
.form-actions { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
@media (max-width:900px){
  .survey-editor-toolbar{align-items:flex-start;flex-direction:column}.survey-editor-toolbar button{width:100%}
  .survey-rating-options{grid-template-columns:1fr}.survey-choice-list{flex-direction:column}.survey-choice-list label{width:100%}
  .survey-response-table th{width:auto}
}

.survey-order-input{max-width:72px;text-align:center;font-weight:800;}

/* v44.91 mobile Education Payments */
.education-hero { text-align:center; padding:28px; }
.education-hero h1 { margin-bottom:8px; }
.education-program-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.education-program-card { display:flex; flex-direction:column; }
.education-program-card .button { margin-top:auto; text-align:center; }
.education-family-summary { display:grid; grid-template-columns:minmax(0,2fr) repeat(2,minmax(130px,1fr)); gap:12px; margin:18px 0; text-align:left; }
.education-family-summary > div { padding:14px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); }
.education-saved-students { display:grid; gap:10px; margin:12px 0 18px; }
.education-saved-student { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid rgba(212,175,55,.42); border-radius:10px; background:rgba(212,175,55,.045); cursor:pointer; }
.education-saved-student input { margin-top:3px; flex:0 0 auto; }
.education-price { color:var(--gold); font-size:1.45rem; font-weight:900; }
.education-price span { color:var(--muted); font-size:.9rem; font-weight:600; }
.education-payment-form { max-width:920px; margin-left:auto; margin-right:auto; }
.education-form-title,.education-section-title,.education-student-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.education-form-title h1,.education-section-title h2,.education-student-heading h3 { margin-top:0; }
.education-form-section { margin:18px 0; padding:18px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.022); }
.education-student-row { margin:14px 0; padding:16px; border:1px solid rgba(212,175,55,.3); border-radius:12px; background:rgba(5,9,21,.35); }
.education-remove-student { margin:0; }
.education-photo-grid,.education-admin-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mobile-photo-field { padding:14px; border:1px dashed rgba(212,175,55,.55); border-radius:10px; background:rgba(212,175,55,.035); }
.mobile-photo-field input[type="file"] { width:100%; min-height:52px; padding:10px; background:var(--panel2); }
.education-photo-preview { display:block; width:100%; max-height:260px; object-fit:contain; margin-top:12px; border:1px solid var(--border); border-radius:8px; background:#050915; }
.education-payment-summary { margin:18px 0; padding:18px; border:1px solid var(--gold); border-radius:12px; background:rgba(212,175,55,.06); }
.education-payment-summary > div { display:flex; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid var(--border); }
.education-payment-summary > div:last-child { border-bottom:0; }
.education-payment-summary .education-total { color:var(--gold); font-size:1.15rem; }
.education-consent { display:flex; align-items:flex-start; gap:10px; padding:14px; border:1px solid var(--border); border-radius:10px; }
.education-admin-photo-grid img { width:100%; max-height:360px; object-fit:contain; border:1px solid var(--border); border-radius:8px; background:#050915; }
.education-support-notice { margin:14px 0; padding:14px 16px; border:2px solid #d4af37; border-radius:12px; background:rgba(212,175,55,.14); color:inherit; }
.education-support-notice a { color:#d4af37; font-weight:900; overflow-wrap:anywhere; }
.education-fee-list { display:grid; gap:10px; margin-top:10px; }
.education-fee-option { display:flex; align-items:flex-start; gap:12px; padding:13px 14px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); cursor:pointer; }
.education-fee-option input { margin-top:3px; flex:0 0 auto; }
.education-fee-required { border-color:rgba(212,175,55,.55); cursor:default; }
.eyebrow { color:var(--gold); font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; }
.success-text { color:#34d399; }

@media (max-width:820px) {
  .education-program-grid,.education-photo-grid,.education-admin-photo-grid,.education-family-summary { grid-template-columns:1fr; }
  .education-payment-form { padding:12px; }
  .education-form-title,.education-section-title { flex-direction:column; }
  .education-form-title .button,.education-section-title button { width:100%; text-align:center; }
  .education-form-section,.education-student-row { padding:13px; }
  .mobile-photo-field input[type="file"] { font-size:16px; }
  .education-payment-form input,.education-payment-form select,.education-payment-form button { min-height:48px; font-size:16px; }
  .education-student-heading { align-items:center; }
}

@media (max-width:480px) {
  .education-hero { padding:18px 12px; }
  .education-payment-form { border-left:0; border-right:0; border-radius:0; }
  .education-form-section { margin:12px 0; }
}


/* v44.92 published control references and control matrix knowledge base */
.control-reference-footer {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(212,175,55,.42);
  border-radius: 12px;
  background: rgba(212,175,55,.055);
  text-align: left;
  font-size: .76rem;
  line-height: 1.35;
}
.control-reference-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.control-reference-heading > strong { color:var(--gold); font-size:.78rem; }
.control-reference-heading a { font-weight:800; font-size:.71rem; }
.control-reference-heading .small { font-size:.68rem; }
.control-reference-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.control-reference-badge {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:4px 7px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:inherit;
  font-size:.68rem;
  line-height:1.25;
  text-decoration:none;
}
a.control-reference-badge:hover { border-color:var(--gold); color:var(--gold); }
.control-reference-framework { margin:7px 0 0; color:var(--muted); font-size:.67rem; }
.documentation-hub { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.documentation-hub h1 { margin:0 0 6px; }
.documentation-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.documentation-link-card { margin:16px 0; padding:13px 15px; border:1px solid rgba(212,175,55,.45); border-radius:10px; background:rgba(212,175,55,.06); }
.matrix-nav { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.matrix-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.matrix-summary-grid .card { display:flex; flex-direction:column; }
.matrix-summary-grid .card h2 { color:var(--gold); font-size:2rem; margin:0 0 4px; }
.matrix-summary-grid .card .button { margin-top:auto; text-align:center; }
.matrix-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.matrix-table { min-width:1280px; table-layout:fixed; }
.matrix-table th { position:sticky; top:0; z-index:1; }
.matrix-table td { vertical-align:top; white-space:normal; }
.matrix-table td:nth-child(1) { width:86px; }
.matrix-table code { white-space:normal; overflow-wrap:anywhere; }
.matrix-status { display:inline-block; padding:5px 8px; border-radius:999px; font-size:.76rem; font-weight:850; border:1px solid transparent; }
.matrix-status-automated { background:rgba(52,211,153,.14); color:#6ee7b7; border-color:rgba(52,211,153,.35); }
.matrix-status-hybrid { background:rgba(132,204,22,.12); color:#bef264; border-color:rgba(132,204,22,.35); }
.matrix-status-partial { background:rgba(245,158,11,.14); color:#fcd34d; border-color:rgba(245,158,11,.35); }
.matrix-status-gap { background:rgba(248,113,113,.14); color:#fca5a5; border-color:rgba(248,113,113,.35); }
@media (max-width:1000px) {
  .matrix-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .documentation-hub { align-items:flex-start; flex-direction:column; }
  .documentation-actions { justify-content:flex-start; }
}
@media (max-width:620px) {
  .control-reference-footer { margin:12px 10px 0; padding:9px 10px; }
  .control-reference-badges { flex-direction:column; }
  .control-reference-badge { border-radius:9px; }
  .matrix-summary-grid { grid-template-columns:1fr; }
  .matrix-nav .button, .documentation-actions .button { width:100%; text-align:center; }
}

/* v44.93 governed policies and procedures library */
.policy-reference-section {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(212,175,55,.24);
}
.policy-reference-section > strong { color: var(--gold); font-size:.71rem; }
.policy-reference-section .small { font-size:.67rem; }
.policy-reference-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.policy-reference-badge {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:4px 7px;
  border:1px solid rgba(59,130,246,.38);
  border-radius:999px;
  background:rgba(59,130,246,.08);
  color:inherit;
  font-size:.67rem;
  line-height:1.25;
  text-decoration:none;
}
a.policy-reference-badge:hover { border-color:#60a5fa; color:#93c5fd; }
.grc-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.grc-form-grid label { display:block; margin:0; }
.grc-form-grid .span-2 { grid-column:1 / -1; }
.policy-document-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:22px; }
.policy-document-hero h1 { margin:.1rem 0 .5rem; }
.policy-meta { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:12px; color:var(--muted); }
.policy-document-grid { grid-template-columns:minmax(0,2fr) minmax(270px,1fr); }
.policy-steps { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.policy-steps li { display:flex; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.025); }
.policy-steps li span { color:var(--gold); font-weight:900; }
.policy-routes { white-space:pre-wrap; overflow-wrap:anywhere; background:rgba(0,0,0,.18); border:1px solid var(--border); border-radius:9px; padding:11px; }
.policy-library-table { min-width:1450px; }
.policy-library-table td:nth-child(3) { min-width:340px; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.filter-bar { display:grid; grid-template-columns:minmax(240px,2fr) minmax(150px,1fr) minmax(170px,1fr) minmax(180px,1fr) auto auto; gap:10px; align-items:end; }
@media (max-width:900px) {
  .grc-form-grid { grid-template-columns:1fr; }
  .grc-form-grid .span-2 { grid-column:auto; }
  .policy-document-hero { flex-direction:column; }
  .policy-document-grid { grid-template-columns:1fr; }
  .filter-bar { grid-template-columns:1fr 1fr; }
}
@media (max-width:620px) {
  .policy-reference-badges { flex-direction:column; }
  .policy-reference-badge { border-radius:9px; }
  .filter-bar { grid-template-columns:1fr; }
  .filter-bar .button, .filter-bar button { width:100%; text-align:center; }
}

/* v44.95 Enterprise governance dark-theme contrast and readability fix */
.governance-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.governance-domain-card {
  --domain-accent: var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 260px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(16,27,45,.98) 0%, rgba(8,17,31,.98) 100%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--domain-accent);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.governance-domain-card:hover,
.governance-domain-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--domain-accent);
  background: linear-gradient(180deg, rgba(20,35,58,.99) 0%, rgba(10,22,39,.99) 100%);
  box-shadow: 0 16px 32px rgba(0,0,0,.34), 0 0 0 1px rgba(212,175,55,.18);
  outline: none;
}
.governance-domain-card h2 {
  margin: 4px 0 8px;
  color: #f8fafc;
  font-size: 1.15rem;
  line-height: 1.3;
}
.governance-domain-card p:not(.eyebrow) { color: #c5d1e3; }
.governance-domain-card .small { color: #9fb1cc; }
.governance-domain-card .eyebrow { color: var(--gold); }
.domain-stat-row { display:flex; flex-wrap:wrap; gap:8px; font-size:.9rem; }
.domain-stat-row span {
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(59,130,246,.13);
  border:1px solid rgba(96,165,250,.22);
  color:#dbeafe;
  border-radius:999px;
  padding:5px 10px;
}
.domain-stat-row strong { color:#fff; }
.domain-progress {
  height:8px;
  border-radius:999px;
  background:#1d2b40;
  border:1px solid rgba(148,163,184,.18);
  overflow:hidden;
}
.domain-progress span {
  display:block;
  height:100%;
  background:var(--domain-accent);
  border-radius:999px;
}
.policy-checkboxes {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(16,27,45,.96), rgba(8,17,31,.96));
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  color-scheme:dark;
}
.policy-checkboxes label {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:32px;
  margin:0;
  color:#dbe7f7;
  font-weight:700;
  line-height:1.35;
}
.policy-checkboxes input[type="checkbox"] {
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
  padding:0;
  accent-color:#3b82f6;
  cursor:pointer;
}
.policy-checkboxes label:hover { color:#fff; }
@media (max-width: 720px) {
  .governance-domain-grid { grid-template-columns: 1fr; }
  .governance-domain-card { min-height:0; }
  .policy-checkboxes { grid-template-columns:1fr; }
}


/* v44.97 Managed Forms module */
.managed-form-page-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.managed-form-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 18px}
.managed-form-settings-grid label,.managed-form-anonymous,.managed-form-ack{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--border,#263a55);border-radius:10px;background:rgba(255,255,255,.025)}
.managed-form-settings-grid input,.managed-form-anonymous input,.managed-form-ack input{width:auto;min-width:auto;margin-top:3px}
.managed-form-public{max-width:920px;margin:0 auto}.managed-form-section{margin:24px 0 12px;padding:14px 16px;border-left:4px solid var(--gold,#d7ad36);background:rgba(215,173,54,.08);border-radius:8px}.managed-form-section h3{margin:0 0 6px;color:var(--gold,#d7ad36)}
.link-button{background:none!important;border:0!important;padding:0!important;margin:0!important;color:var(--link,#8fb7ff)!important;text-decoration:underline!important;font:inherit!important;display:inline!important;box-shadow:none!important}.key-value-table th{width:30%;text-align:left;vertical-align:top}
@media(max-width:900px){.managed-form-settings-grid{grid-template-columns:1fr}.survey-editor-table{min-width:980px}}

/* v45.01 organization address footer */
footer .organization-address,
.public-rsvp-footer .organization-address {
  font-size: 0.96rem;
  color: var(--text, #f4f7fb);
}
footer .organization-address a,
.public-rsvp-footer .organization-address a {
  color: var(--gold, #e0ba40);
  font-weight: 700;
  text-decoration: none;
}
footer .organization-address a:hover,
.public-rsvp-footer .organization-address a:hover {
  text-decoration: underline;
}


/* v45.04 compact internal control references and public legal footer */
.public-legal-footer .small { margin-top:8px; }
.public-legal-footer a { color:var(--gold); text-decoration:underline; text-underline-offset:2px; }
.public-legal-footer a:hover { color:#ffe08a; }

/* v45.04 managed form rich-text descriptions */
.managed-form-rich-editor-shell {
  margin: 6px 0 18px;
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--border, #2b3a55);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #101d31;
}
.rich-editor-toolbar button {
  min-width: 36px;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #344963;
  border-radius: 7px;
  background: #172740;
  color: #eef4ff;
  font-size: .88rem;
  line-height: 1;
  box-shadow: none;
}
.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible {
  background: #263c5d;
  border-color: var(--gold, #d7ad36);
  color: #fff;
}
.rich-editor-divider {
  width: 1px;
  height: 25px;
  margin: 0 2px;
  background: #344963;
}
.managed-form-description-editor.rich-editor {
  min-height: 220px;
  border-radius: 0 0 10px 10px;
  outline: none;
}
.managed-form-description-editor.rich-editor:focus {
  border-color: var(--gold, #d7ad36);
  box-shadow: 0 0 0 3px rgba(215,173,54,.13);
}
.managed-form-description-editor h2,
.managed-form-description-editor h3,
.managed-form-rich-description h2,
.managed-form-rich-description h3 {
  margin: 1rem 0 .45rem;
  color: var(--gold, #d7ad36);
  line-height: 1.25;
}
.managed-form-description-editor p,
.managed-form-rich-description p {
  margin: .55rem 0;
}
.managed-form-description-editor ul,
.managed-form-description-editor ol,
.managed-form-rich-description ul,
.managed-form-rich-description ol {
  margin: .6rem 0 .8rem;
  padding-left: 1.6rem;
}
.managed-form-description-editor li,
.managed-form-rich-description li {
  margin: .3rem 0;
}
.managed-form-description-editor blockquote,
.managed-form-rich-description blockquote {
  margin: .8rem 0;
  padding: .7rem 1rem;
  border-left: 4px solid var(--gold, #d7ad36);
  background: rgba(215,173,54,.08);
  color: #dbe7f7;
}
.managed-form-rich-description {
  margin-top: 14px;
  color: var(--text, #eef4ff);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.managed-form-rich-description a {
  color: #9fc5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.managed-form-rich-description hr {
  border: 0;
  border-top: 1px solid var(--border, #2b3a55);
  margin: 1rem 0;
}
@media (max-width: 640px) {
  .rich-editor-toolbar { gap: 5px; }
  .rich-editor-toolbar button { min-width: 34px; padding: 6px 8px; }
  .rich-editor-divider { display: none; }
  .managed-form-description-editor.rich-editor { min-height: 190px; }
}


/* v45.04 public upcoming events */
.public-events-main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}
.public-events-intro { margin-bottom: 18px; }
.public-events-list {
  display: grid;
  gap: 14px;
}
.public-event-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.public-event-flyer-link { display: block; min-height: 180px; }
.public-event-flyer {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(148, 163, 184, .10);
}
.public-event-flyer-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
}
.public-event-details h2 { margin: 2px 0 8px; }
.public-event-schedule { font-size: 17px; }
.public-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.button.disabled { opacity: .7; pointer-events: none; }
@media (max-width: 720px) {
  .public-events-main { width: min(100%, calc(100% - 20px)); margin: 14px auto; }
  .public-event-row { grid-template-columns: 1fr; padding: 14px; }
  .public-event-flyer-link { min-height: 0; }
  .public-event-flyer { height: auto; max-height: 420px; }
}


/* v45.05 page-to-control evidence alignment */
.donation-governance-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.donation-governance-layout > .donation-slick-card { max-width: none; margin: 0; }
.control-assurance-panel {
  border-color: rgba(212,175,55,.42);
  background: linear-gradient(180deg, rgba(20,34,55,.98), rgba(10,21,38,.98));
}
.donation-governance-layout > .control-assurance-panel { position: sticky; top: 18px; margin: 0; }
.control-assurance-panel h2 { margin-top: 2px; font-size: 1.2rem; }
.control-assurance-list { list-style: none; padding: 0; margin: 12px 0 0; }
.control-assurance-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(148,163,184,.18);
}
.control-assurance-list li:first-child { border-top: 0; padding-top: 0; }
.control-assurance-list strong { display: block; color: var(--gold); font-size: .86rem; margin-bottom: 3px; }
.control-assurance-list span { display: block; color: var(--text); font-size: .82rem; line-height: 1.45; }
.control-assurance-boundary {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 10px;
  background: rgba(30,64,175,.12);
}
.control-assurance-boundary strong { color: #bfdbfe; }
.control-assurance-boundary p { margin: 5px 0 0; font-size: .82rem; }
.control-assurance-boundary .button { width: 100%; text-align: center; margin-top: 8px; }
.donation-governance-options {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 12px;
  background: rgba(30,64,175,.08);
}
.donation-governance-options .checkline { align-items: flex-start; margin: 7px 0; }
.donation-governance-options .checkline input { flex: 0 0 auto; margin-top: 3px; }
.fundraising-assurance-panel { max-width: 1180px; margin: 14px auto; }
.fundraising-assurance-panel .control-assurance-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 18px; }
.control-reference-details { margin-top: 7px; border-top: 1px solid rgba(212,175,55,.22); padding-top: 6px; }
.control-reference-details summary { cursor: pointer; color: var(--gold); font-weight: 800; font-size: .7rem; }
.control-reference-details ul { margin: 7px 0 0 18px; padding: 0; }
.control-reference-details li { margin: 3px 0; font-size: .68rem; color: var(--muted); }
@media (max-width: 980px) {
  .donation-governance-layout { grid-template-columns: 1fr; }
  .donation-governance-layout > .control-assurance-panel { position: static; }
  .fundraising-assurance-panel .control-assurance-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .donation-governance-layout { margin: 0 10px; }
  .fundraising-assurance-panel .control-assurance-list { grid-template-columns: 1fr; }
}


/* v45.06 compact, collapsed page-control disclosure */
.control-reference-footer {
  display: block;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: .7rem;
}
.control-reference-footer > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  background: rgba(15,23,42,.42);
  color: var(--muted);
  cursor: pointer;
  font-size: .64rem;
  font-weight: 650;
  line-height: 1.15;
  list-style: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.control-reference-footer > summary::-webkit-details-marker { display: none; }
.control-reference-footer > summary::before { content: "▸"; font-size: .62rem; }
.control-reference-footer[open] > summary::before { content: "▾"; }
.control-reference-footer > summary:hover,
.control-reference-footer > summary:focus-visible {
  color: var(--gold);
  border-color: rgba(212,175,55,.58);
  background: rgba(212,175,55,.065);
  outline: none;
}
.control-reference-footer[open] {
  margin-top: 14px;
  padding: 10px 13px 12px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 11px;
  background: rgba(10,18,31,.72);
  text-align: left;
}
.control-reference-footer[open] > summary { margin: 0 auto 9px; }
.control-reference-expanded { animation: controlReferenceReveal .12s ease-out; }
@keyframes controlReferenceReveal { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.control-reference-intro { margin: 0 0 7px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.control-reference-assurances { list-style: none; margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; }
.control-reference-assurances li { margin: 0; padding: 8px 9px; border: 1px solid rgba(148,163,184,.16); border-radius: 8px; background: rgba(255,255,255,.018); }
.control-reference-assurances strong { display: block; color: var(--gold); font-size: .69rem; margin-bottom: 3px; }
.control-reference-assurances span { display: block; color: var(--text); font-size: .67rem; line-height: 1.4; }
.control-reference-assurances small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.control-reference-links { margin: 8px 0 0; text-align: right; font-size: .66rem; }
.control-reference-badges { margin-top: 5px; }
.control-reference-framework { font-size: .64rem; }
.policy-reference-section { font-size: .67rem; }
/* v45.05 side panels are intentionally retired; control explanations now live only in the bottom disclosure. */
.donation-governance-layout { display: block; max-width: none; margin: 0; }
.control-assurance-panel, .fundraising-assurance-panel { display: none !important; }
@media (max-width: 760px) {
  .control-reference-footer { margin: 8px 10px 0; }
  .control-reference-footer[open] { padding: 9px 10px 11px; }
  .control-reference-assurances { grid-template-columns: 1fr; }
  .control-reference-badges { flex-direction: column; }
  .control-reference-badge { border-radius: 8px; }
}

/* v47.03 reusable guided vertical form framework */
.guided-form-layout {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
}
.guided-form-main { min-width: 0; }
.guided-form-card { margin: 0; }
.guided-form-heading {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.guided-form-heading h2 { margin: 0 0 5px; }
.vertical-form { display: block; }
.form-section {
  margin: 0;
  padding: 20px 0 12px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.vertical-form > .form-section:first-of-type { border-top: 0; }
.form-section h3 { margin: 0 0 12px; }
.form-field { width: 100%; margin: 0 0 10px; }
.form-field > label { margin-top: 0; }
.form-field input,
.form-field select,
.form-field textarea { margin-bottom: 0; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .018);
  font-weight: 650;
}
.form-checkbox input {
  width: auto;
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 0;
}
.form-checkbox span { line-height: 1.4; }
.form-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.form-check-grid .form-checkbox { margin: 0; }
.form-details summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 14px;
}
.form-details[open] summary { margin-bottom: 16px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.guided-form-help {
  position: sticky;
  top: 18px;
  margin: 0;
  border-color: rgba(212, 175, 55, .38);
}
.guided-form-help h2 { margin: 0 0 10px; }
.guided-form-type-note,
.guided-form-help-item {
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.guided-form-type-note:first-of-type { border-top: 0; }
.guided-form-type-note {
  margin: 0 0 2px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 9px;
  background: rgba(212, 175, 55, .06);
}
.guided-form-type-note strong,
.guided-form-help-item strong { color: var(--gold); }
.guided-form-type-note p,
.guided-form-help-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 460px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; }
@media (max-width: 940px) {
  .guided-form-layout { grid-template-columns: 1fr; }
  .guided-form-help { position: static; }
}
@media (max-width: 620px) {
  .guided-form-layout { margin-top: 12px; }
  .guided-form-card, .guided-form-help { padding: 15px; }
  .form-check-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-actions { padding-bottom: 0; }
  .form-actions button, .form-actions .button { width: 100%; text-align: center; }
}

/* v47.04 consistent guided vertical forms across the portal */
.guided-auto-form {
  width: min(1180px, 100%);
  margin: 16px auto 0;
  display: grid !important;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px) !important;
  gap: 20px !important;
  align-items: start;
  counter-reset: guided-section;
}
.guided-auto-form.guided-auto-contained {
  width: 100%;
  margin-top: 14px;
}
.guided-auto-form.guided-auto-standalone {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.guided-auto-form > *:not(.guided-auto-help) {
  grid-column: 1;
  min-width: 0;
}
.guided-auto-main {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}
.guided-auto-form > .guided-auto-help {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  min-width: 0;
}
.guided-auto-form [hidden] { display: none !important; }

/* All normal data-entry fields use one readable vertical column. */
.guided-auto-form .grid,
.guided-auto-form .two,
.guided-auto-form .three,
.guided-auto-form .four,
.guided-auto-form .donor-two,
.guided-auto-form .donor-three,
.guided-auto-form .compact-grid,
.guided-auto-form .member-form-grid,
.guided-auto-form .grc-form-grid,
.guided-auto-form .managed-form-settings-grid,
.guided-auto-form .donation-contact-grid,
.guided-auto-form .donor-update-grid,
.guided-auto-form .donor-payment-grid,
.guided-auto-form .fund-payment-grid,
.guided-auto-form .quote-grid,
.guided-auto-form .education-program-grid,
.guided-auto-form .education-photo-grid,
.guided-auto-form .education-admin-photo-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
.guided-auto-form .grc-form-grid .span-2 { grid-column: auto !important; }
.guided-auto-form label:not(.guided-choice-label):not(.form-checkbox) {
  display: block;
  width: 100%;
  max-width: 100%;
}
.guided-auto-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.guided-auto-form select,
.guided-auto-form textarea {
  width: 100%;
  max-width: 100%;
}
.guided-auto-form textarea { min-height: 96px; }
.guided-auto-form .guided-choice-label,
.guided-auto-form .form-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
}
.guided-auto-form .guided-choice-label input,
.guided-auto-form .form-checkbox input {
  width: auto !important;
  min-width: auto !important;
  flex: 0 0 auto;
  margin-top: 3px;
}
.guided-auto-form fieldset,
.guided-auto-form .form-section,
.guided-auto-form .event-form-section,
.guided-auto-form .donor-form-section,
.guided-auto-form .education-form-section,
.guided-auto-form .managed-form-section {
  width: 100%;
  min-width: 0;
}
.guided-auto-form .form-actions,
.guided-auto-form .button-row,
.guided-auto-form .action-row {
  grid-column: 1;
  justify-content: flex-start;
}
.guided-auto-form .guided-field-active {
  border-color: rgba(212,175,55,.82) !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,.12) !important;
  outline: none !important;
}
.guided-auto-current {
  position: sticky;
  top: 0;
  z-index: 1;
}
.guided-auto-help .guided-form-help-item:last-child { padding-bottom: 0; }

/* Preserve compact controls that are intentionally not full form fields. */
.guided-auto-form .gl-picker-grid,
.guided-auto-form .donation-frequency-grid,
.guided-auto-form .donation-fund-grid,
.guided-auto-form .fund-choice-grid,
.guided-auto-form .menu-item-access-grid,
.guided-auto-form .ticket-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

@media (max-width: 940px) {
  .guided-auto-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .guided-auto-form > *:not(.guided-auto-help),
  .guided-auto-form > .guided-auto-help {
    grid-column: 1;
    grid-row: auto;
  }
  .guided-auto-main { grid-column: 1; grid-row: auto; }
  .guided-auto-form > .guided-auto-help { position: static; }
}
@media (max-width: 620px) {
  .guided-auto-form,
  .guided-auto-form.guided-auto-contained {
    margin-top: 12px;
    gap: 14px !important;
  }
  .guided-auto-form.guided-auto-standalone { padding: 13px; }
  .guided-auto-form .form-actions,
  .guided-auto-form .button-row,
  .guided-auto-form .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .guided-auto-form .form-actions button,
  .guided-auto-form .form-actions .button,
  .guided-auto-form .button-row button,
  .guided-auto-form .button-row .button,
  .guided-auto-form .action-row button,
  .guided-auto-form .action-row .button {
    width: 100%;
    text-align: center;
  }
}

/* v47.06 responsive full-width guided-form refinement */
.guided-form-layout,
.guided-auto-form {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 390px) !important;
}
.guided-form-main,
.guided-auto-form > *:not(.guided-auto-help) {
  min-width: 0;
}
.guided-form-help {
  width: 100%;
  max-width: none;
}
.guided-form-help > summary {
  display: none;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  list-style-position: outside;
}
.guided-help-body { min-width: 0; }
.guided-help-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}
.guided-help-copy p { margin: 5px 0; }
.guided-help-copy a { overflow-wrap: anywhere; }
.guided-moved-note {
  border-left: 3px solid rgba(212, 175, 55, .55);
  padding-left: 10px;
}
.guided-auto-form [data-guided-moved="field"] { display: none !important; }

/* A report, table, approval queue, or bulk-action form must retain the entire work area. */
form[data-guided-form="off"] {
  width: 100%;
  max-width: none;
}
.request-view-table,
.bundle-vouchers-table,
.users-table {
  width: 100%;
}

@media (max-width: 940px) {
  .guided-form-layout,
  .guided-auto-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .guided-form-layout > .guided-form-help,
  .guided-auto-form > .guided-auto-help {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: -1;
    position: static !important;
    margin-bottom: 0;
  }
  .guided-form-help > summary {
    display: block;
    padding: 2px 0;
  }
  .guided-form-help[open] > summary {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
  }
  .guided-form-help .guided-help-body > h2:first-child { display: none; }
}

@media (max-width: 620px) {
  .guided-auto-form,
  .guided-auto-form.guided-auto-contained,
  .guided-form-layout {
    gap: 10px !important;
    margin-top: 10px !important;
  }
  .guided-form-help {
    padding: 13px !important;
    border-radius: 10px;
  }
  .guided-form-help-item,
  .guided-form-type-note {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .guided-auto-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .guided-auto-form select,
  .guided-auto-form textarea,
  .vertical-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .vertical-form select,
  .vertical-form textarea {
    min-height: 44px;
  }
}


/* v47.06 Admin Configuration layout exception */
.admin-section form {
  width: 100%;
  max-width: none;
}
.admin-section .notice,
.admin-section p.small,
.admin-section .note {
  max-width: none;
}


/* v47.09 Policy & SOP Repository */
.policy-pdf-frame { width:100%; height:min(76vh,900px); min-height:560px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.share-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.share-row input { margin-bottom:0; }
@media (max-width:700px) { .policy-pdf-frame { min-height:68vh; height:68vh; } .share-row { grid-template-columns:1fr; } }

/* v47.10 flexible event ticket categories */
.ticket-category-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticket-category-editor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}
.ticket-category-editor-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 16px;
  background: #08111f;
  min-width: 0;
}
.ticket-category-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ticket-category-editor-heading > strong {
  color: var(--gold);
  font-size: 15px;
}
.ticket-category-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.ticket-category-actions .compact {
  min-width: 0;
  width: auto;
  padding: 6px 9px;
  font-size: 12px;
}
.ticket-category-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.money-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #07101d;
  overflow: hidden;
}
.money-input-wrap > span {
  padding: 0 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}
.money-input-wrap input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.public-ticket-grid,
.event-price-summary {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.event-rsvp-counts {
  grid-template-columns: 1fr;
}
.rsvp-ticket-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  align-items: end;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #08111f;
}
.rsvp-ticket-selection label {
  color: var(--gold);
  font-weight: 800;
}
.rsvp-ticket-selection .small {
  margin: 5px 0;
}
.ticket-selection-price {
  margin: 6px 0 0;
  color: #f8fafc;
  font-weight: 800;
}
.ticket-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.ticket-breakdown-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ticket-breakdown-list span {
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ticket-category-editor-list,
  .rsvp-ticket-selection {
    grid-template-columns: 1fr;
  }
  .ticket-category-editor-card { padding: 13px; }
  .ticket-category-actions { width: 100%; justify-content: flex-start; }
  .ticket-breakdown-list > div { flex-direction: column; gap: 1px; }
}


/* v47.12 global footer and guided-form scroll correction */
/* Form guidance is a sibling column rather than a 999-row grid span. */
@media (min-width: 941px) {
  .guided-auto-form > .guided-auto-help,
  .guided-form-layout > .guided-form-help {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
main + .control-reference-footer,
main + footer { scroll-margin-top: 12px; }

/* v47.13 policy template import and PDF preview repair */
.policy-prose { white-space: pre-line; }
.documentation-actions form { margin: 0; }
.policy-pdf-frame { display:block; }

/* v47.13 Managed Forms respondent identity and consent */
.managed-form-login-choice {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border, #263a55);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.managed-form-login-choice p:first-child { margin-top: 0; }
.managed-form-google-login { margin-top: 4px; }
.managed-form-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--muted, #9fb1c8);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.managed-form-login-divider::before,
.managed-form-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, #263a55);
}
.managed-form-signed-in { margin-bottom: 16px; }
.managed-form-public input[readonly] { opacity: .92; cursor: not-allowed; }
@media (max-width: 700px) {
  .managed-form-google-login { display: block; width: 100%; text-align: center; }
}


/* v47.14 uniform collapsible form guidance */
/* Guidance never occupies a side column. It follows the form and is collapsed until requested. */
.guided-form-layout,
.guided-auto-form,
.guided-auto-form.guided-auto-contained,
.guided-auto-form.guided-auto-standalone {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.guided-form-main,
.guided-auto-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.guided-form-layout > .guided-form-help,
.guided-auto-form > .guided-auto-help {
  display: block;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  margin: 14px 0 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  order: initial !important;
}
.guided-form-help > summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 2px 0;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.guided-form-help > summary::-webkit-details-marker { display: none; }
.guided-form-help > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.12rem;
  line-height: 1;
}
.guided-form-help[open] > summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.guided-form-help[open] > summary::after { content: "−"; }
.guided-form-help .guided-help-body > h2:first-child { display: none; }
.guided-form-help:not([open]) .guided-help-body { display: none !important; }
.guided-auto-current { position: static; }
@media (max-width: 620px) {
  .guided-form-layout > .guided-form-help,
  .guided-auto-form > .guided-auto-help { margin-top: 10px !important; }
}


/* v47.15 authenticated Education Payments and reusable family profile */
.education-payment-form .notice a,
.education-payment-form .success a,
.education-hero .notice a,
.education-hero .success a { overflow-wrap:anywhere; }



/* v47.20 unified education enrollment and parent-managed family profile */
.education-horizontal-form{max-width:none;width:100%;}
.education-step-grid{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:16px;align-items:start;}
.education-step{position:relative;margin:0;min-height:100%;}
.education-step-number{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#07101f;font-weight:900;margin-bottom:10px;}
.education-family-members,.education-profile-student-grid{display:grid;gap:12px;}
.education-family-member,.education-action-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.025);cursor:pointer;}
.education-family-member input,.education-action-option input{margin-top:3px;flex:0 0 auto;}
.education-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:16px;align-items:start;margin-top:16px;}
.education-profile-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;align-items:start;}
.education-profile-student-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;}
.education-profile-student{display:flex;flex-direction:column;gap:12px;}
.education-profile-photo img,.education-photo-grid img{display:block;width:100%;max-height:260px;object-fit:contain;border:1px solid var(--border);border-radius:10px;background:#050915;margin:8px 0 12px;}
.education-program-config{box-shadow:none;margin:14px 0;}
@media(max-width:1250px){.education-step-grid{grid-template-columns:repeat(2,minmax(260px,1fr));}.education-profile-student-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.education-step-grid,.education-lower-grid,.education-profile-grid,.education-profile-student-grid{grid-template-columns:1fr;}.education-step{min-height:0;}.education-horizontal-form{padding:0;}.education-action-option,.education-family-member{min-height:48px;}}

/* v47.23 parent-managed education request actions */
.education-history-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.education-history-actions form{margin:0;display:inline-flex;}
.education-history-actions .button,.education-history-actions button{margin:0;white-space:nowrap;}
@media(max-width:760px){.education-history-actions{align-items:stretch;}.education-history-actions form{width:100%;}.education-history-actions .button,.education-history-actions button{width:100%;text-align:center;}}


/* v47.23 admin-assisted education enrollment */
.admin-assisted-student-row { margin: 12px 0; box-shadow: none; }
#adminNewStudentRows .admin-assisted-student-row:first-child { margin-top: 0; }
@media (max-width: 900px) { .admin-assisted-student-row .two { grid-template-columns: 1fr; } }


/* v47.29 — Member-friendly mobile parent education dashboard */
.education-parent-dashboard{
  margin:18px 0;
  padding:20px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(212,175,55,.08),rgba(255,255,255,.018));
}
.education-dashboard-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px;}
.education-dashboard-heading h2{margin:2px 0 6px;}
.education-profile-progress{min-width:190px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:rgba(5,9,21,.45);}
.education-profile-progress>span,.education-profile-progress>strong{display:inline-block;}
.education-profile-progress>strong{float:right;color:var(--gold);}
.education-progress-track{clear:both;height:8px;margin-top:10px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;}
.education-progress-track span{display:block;height:100%;background:var(--gold);border-radius:inherit;}
.education-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.education-dashboard-tile{display:flex;flex-direction:column;min-width:0;min-height:132px;padding:16px;border:1px solid var(--border);border-radius:12px;background:rgba(5,9,21,.55);color:inherit;text-decoration:none;transition:transform .15s ease,border-color .15s ease,background .15s ease;}
.education-dashboard-tile:hover,.education-dashboard-tile:focus-visible{transform:translateY(-2px);border-color:var(--gold);background:rgba(212,175,55,.09);outline:none;}
.education-dashboard-tile.needs-attention{border-color:rgba(212,175,55,.8);box-shadow:inset 0 3px 0 var(--gold);}
.education-dashboard-label{font-weight:800;color:var(--muted);font-size:.86rem;text-transform:uppercase;letter-spacing:.04em;}
.education-dashboard-tile strong{display:block;margin:10px 0 4px;color:var(--gold);font-size:1.8rem;line-height:1.05;overflow-wrap:anywhere;}
.education-dashboard-tile>span:last-child{font-size:.9rem;color:var(--muted);}
.education-next-action{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:14px;padding:15px;border:1px solid rgba(212,175,55,.42);border-radius:12px;background:rgba(212,175,55,.06);}
.education-next-action p{margin:5px 0 0;color:var(--muted);}
.education-dashboard-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;}
.education-dashboard-actions .button{margin:0;white-space:nowrap;}
.education-history-mobile{display:none;}
.education-history-card{padding:15px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.022);}
.education-history-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.education-history-card h3{margin:3px 0 0;font-size:1.08rem;}
.education-status-pill{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:5px 9px;border:1px solid rgba(212,175,55,.45);border-radius:999px;background:rgba(212,175,55,.08);font-size:.82rem;font-weight:800;overflow-wrap:anywhere;}
.education-history-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0;}
.education-history-facts>div{padding:10px;border-radius:9px;background:rgba(5,9,21,.5);}
.education-history-facts span{display:block;color:var(--muted);font-size:.78rem;}
.education-history-facts strong{display:block;margin-top:3px;overflow-wrap:anywhere;}
.education-family-profile-stats{margin-top:16px;text-align:left;}
.education-request-history{scroll-margin-top:18px;}
#education-enrollment-form{scroll-margin-top:18px;}

@media(max-width:1050px){
  .education-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .education-parent-dashboard{padding:14px;margin:12px 0;border-radius:12px;}
  .education-dashboard-heading,.education-next-action{flex-direction:column;align-items:stretch;}
  .education-profile-progress{min-width:0;width:100%;}
  .education-dashboard-actions{display:grid;grid-template-columns:1fr;justify-content:stretch;}
  .education-dashboard-actions .button{width:100%;text-align:center;white-space:normal;min-height:48px;display:flex;align-items:center;justify-content:center;}
  .education-history-desktop{display:none;}
  .education-history-mobile{display:grid;gap:12px;}
  .education-history-actions{display:grid;grid-template-columns:1fr;gap:8px;}
  .education-history-actions form{width:100%;}.education-history-actions .button,.education-history-actions button,.education-history-actions .badge{width:100%;min-height:46px;text-align:center;display:flex;align-items:center;justify-content:center;white-space:normal;}
  .education-history-card-head{flex-direction:column;}
  .education-request-history>.education-section-title{align-items:stretch;}
  .education-request-history>.education-section-title .button{width:100%;}
  .education-payment-form{width:100%;max-width:100%;overflow:hidden;}
  .education-payment-form input,.education-payment-form select,.education-payment-form textarea{width:100%;max-width:100%;font-size:16px;}
  .education-step-grid{display:block;}
  .education-step{margin-bottom:12px;}
  .education-step .button,.education-step button{min-height:48px;}
  .education-family-member{min-height:58px;}
  .education-hero{text-align:left;}
}
@media(max-width:480px){
  .education-dashboard-grid{grid-template-columns:1fr 1fr;gap:9px;}
  .education-dashboard-tile{min-height:118px;padding:13px;}
  .education-dashboard-tile strong{font-size:1.45rem;}
  .education-dashboard-label{font-size:.74rem;}
  .education-history-facts{grid-template-columns:1fr 1fr;}
  .education-history-facts>div:last-child{grid-column:1/-1;}
}
@media(max-width:360px){
  .education-dashboard-grid{grid-template-columns:1fr;}
}

/* v47.29 direct mobile camera capture for education profiles */
.education-camera-upload {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}
.education-camera-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.education-camera-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.education-camera-primary {
  background: var(--gold);
  color: #07101f;
}
.education-camera-secondary {
  background: var(--panel2);
  color: var(--text);
  border-color: var(--border);
}
.education-camera-button:focus-within {
  outline: 3px solid rgba(212,175,55,.35);
  outline-offset: 2px;
}
.education-camera-button input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
}
.education-camera-help,
.education-camera-file {
  margin: 0;
}
.education-camera-file {
  color: var(--gold);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.education-camera-preview {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #050915;
}
.education-camera-preview[hidden] { display: none; }
@media (max-width: 620px) {
  .education-camera-actions { grid-template-columns: 1fr; }
  .education-camera-button { width: 100%; min-height: 54px; font-size: 16px; }
}


/* v47.29 focused family-profile administration */
.education-profile-section-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.education-profile-section-nav .button{margin:0;}
.education-profile-section-nav .button.active{
  background:var(--gold);
  color:#07101f;
  border-color:var(--gold);
  box-shadow:0 0 0 2px rgba(212,175,55,.14);
}
.education-profile-focus{margin-top:16px;}
.education-profile-overview-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.education-profile-overview-grid>.card{margin:0;box-shadow:none;}
.education-profile-focus>.education-section-title.card{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
@media(max-width:900px){
  .education-profile-overview-grid{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .education-profile-section-nav{display:grid;grid-template-columns:1fr 1fr;}
  .education-profile-section-nav .button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;}
  .education-profile-focus>.education-section-title.card{flex-direction:column;align-items:stretch;}
  .education-profile-focus>.education-section-title.card .button{width:100%;text-align:center;}
}
@media(max-width:480px){
  .education-profile-section-nav{grid-template-columns:1fr;}
}


/* v47.29 donation fund alignment and configurable cause selector */
.guided-auto-form .donation-fund-grid,
.guided-auto-form .donation-frequency-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
@media (max-width: 820px) {
  .guided-auto-form .donation-fund-grid,
  .guided-auto-form .donation-frequency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 460px) {
  .guided-auto-form .donation-fund-grid,
  .guided-auto-form .donation-frequency-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v47.34 visible CAPTCHA question on managed and public forms */
.captcha-box .captcha-question {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 10px 0 12px;
  color: var(--text, #f5f7ff);
  font-size: 1rem;
  line-height: 1.5;
}
.captcha-box .captcha-question strong {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 6px;
  color: #f5c842;
  font-size: 1.1em;
  letter-spacing: .03em;
}


/* v49.01 Cloudflare Turnstile admin-configurable security check */
.turnstile-box .cf-turnstile { min-height: 65px; margin-top: 8px; max-width: 100%; }
.turnstile-box iframe { max-width: 100%; }

/* v49.02 admin-selectable Stripe or Zeffy donation payment provider */
.donation-provider-options { align-items: start; }
.admin-config-details {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.admin-config-details summary {
  cursor: pointer;
  font-weight: 700;
}
.donation-provider-fund-urls { margin-top: 14px; }
.zeffy-admin-warning { margin: 16px 0; }
.zeffy-wrapper-card { max-width: 980px; }
.zeffy-wrapper-summary,
.zeffy-selection-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.zeffy-wrapper-summary > div,
.zeffy-selection-summary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.zeffy-wrapper-summary span,
.zeffy-selection-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .9rem;
}
.zeffy-wrapper-summary strong,
.zeffy-selection-summary strong {
  display: block;
  overflow-wrap: anywhere;
}
.zeffy-zero-confirm {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 12px;
  background: rgba(212, 175, 55, .08);
}
.zeffy-checkout-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.zeffy-checkout-top {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.zeffy-zero-reminder {
  margin: 14px 0;
  padding: 16px;
  border: 2px solid rgba(212, 175, 55, .75);
  border-radius: 12px;
  background: rgba(212, 175, 55, .1);
  line-height: 1.55;
}
.zeffy-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.zeffy-copy-row .button,
.zeffy-copy-row button { margin: 0; }
.zeffy-embed-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.zeffy-open-card { text-align: center; }
@media (max-width: 760px) {
  .zeffy-wrapper-summary,
  .zeffy-selection-summary { grid-template-columns: 1fr; }
  .zeffy-checkout-top { padding: 14px; }
  .zeffy-copy-row > * { width: 100%; text-align: center; }
  .zeffy-embed-frame { min-height: 1050px; border-radius: 10px; }
}

/* v49.18 Education Payments: inline Add Student keeps parents on the enrollment screen. */
.education-inline-add-student{margin-top:14px;padding:16px;border:1px solid rgba(212,175,55,.35);border-radius:12px;background:rgba(5,9,21,.28)}
.education-inline-add-student[hidden]{display:none!important}
.education-inline-add-student-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.education-inline-add-student-head h3{margin:0 0 4px}
.education-inline-student-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:760px){.education-inline-add-student-head{flex-direction:column}.education-inline-add-student-head .secondary{width:100%}.education-inline-student-actions>*{flex:1 1 100%}}

/* v49.19 Zeffy native checkout: do not duplicate Zeffy-controlled amount/tip fields. */
.zeffy-native-checkout-card{max-width:1120px}
.zeffy-campaign-picker{margin:16px 0}
.zeffy-campaign-picker .donation-choice{text-decoration:none}
.zeffy-native-checkout-card .zeffy-zero-reminder{margin-bottom:18px}

/* v49.24 Sunday School family-tier pricing */
.education-family-pricing-options{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#2a3b55)}
.education-student-fee-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);gap:16px;align-items:end;padding:14px 0;border-bottom:1px solid rgba(148,163,184,.22)}
.education-student-fee-row:last-child{border-bottom:0}
.education-family-pricing-admin{margin:14px 0;background:rgba(15,23,42,.28);box-shadow:none}
.education-family-pricing-admin .three{margin-top:8px}
@media (max-width:760px){.education-student-fee-row{grid-template-columns:1fr;gap:8px}}


/* v49.24 education payment line-item breakdown */
.education-payment-summary .education-summary-breakdown,
.education-record-line-items .education-summary-breakdown{margin:10px 0 12px;padding:10px 0 12px;border-bottom:1px solid var(--border);}
.education-payment-summary .education-summary-breakdown h3,
.education-record-line-items .education-summary-breakdown h3{margin:0 0 8px;color:var(--gold);font-size:.96rem;letter-spacing:.01em;}
.education-summary-line{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:7px 0;border-bottom:1px dashed rgba(148,163,184,.22);}
.education-summary-line:last-child{border-bottom:0;}
.education-summary-line>span{min-width:0;}
.education-summary-line>span>strong{display:block;overflow-wrap:anywhere;}
.education-summary-line small{display:block;margin-top:2px;color:var(--muted);font-weight:400;}
.education-summary-line>strong{white-space:nowrap;text-align:right;}
.education-summary-line.education-summary-discount>strong{color:#7dd3a7;}
.education-summary-line.education-summary-subtotal{margin-top:4px;padding-top:9px;border-top:1px solid rgba(148,163,184,.3);border-bottom:0;}
.education-record-line-items{margin:14px 0;}
.education-record-line-items.compact .education-summary-breakdown{margin:8px 0;}
.education-confirm-total{display:flex;justify-content:space-between;gap:18px;margin:14px 0;padding:14px;border:1px solid var(--gold);border-radius:10px;color:var(--gold);font-size:1.08rem;background:rgba(212,175,55,.06);}
@media(max-width:560px){.education-summary-line,.education-confirm-total{gap:10px}.education-summary-line>strong{font-size:.96rem}.education-payment-summary{padding:14px}}

/* v49.24: make initial one-time charges and future recurring tuition unmistakable. */
.education-stripe-charge-plan {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--gold, #d7a900);
  border-radius: 12px;
  background: rgba(215, 169, 0, 0.06);
}
.education-stripe-charge-plan h3 { margin: 0 0 8px; }
.education-charge-plan-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.education-charge-plan-row:last-of-type { border-bottom: 0; }
.education-charge-plan-row span { min-width: 0; }
.education-charge-plan-row small { display: block; margin-top: 3px; font-weight: 400; }
.education-charge-plan-total {
  margin-top: 4px;
  padding-top: 12px;
  font-size: 1.06rem;
  color: var(--gold, #d7a900);
}
.education-charge-plan-recurring {
  margin-top: 4px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9px;
  padding: 10px;
  background: rgba(34, 197, 94, 0.07);
}
.education-stripe-charge-plan.compact { padding: 10px; }
@media (max-width: 720px) {
  .education-charge-plan-row { flex-direction: column; gap: 5px; }
}

/* v49.28 Education enrollment: numbered lower steps and duplicate-enrollment guard. */
.education-lower-controls{display:grid;gap:16px;min-width:0}
.education-lower-controls>.education-form-section{margin:0}
.education-family-member-unavailable{opacity:.68;border-style:dashed;cursor:not-allowed}
.education-family-member-unavailable input{cursor:not-allowed}
.education-enrollment-conflict:not([hidden]){display:block;margin-top:4px;color:#ffca5f;font-weight:600}
.education-enrollment-conflict[hidden]{display:none!important}
@media(max-width:760px){.education-lower-controls{gap:12px}}

/* v49.44 donation fund/frequency buttons fill the available row evenly */
.donation-slick-card .donation-fund-grid,
.donation-slick-card .donation-frequency-grid,
.guided-auto-form .donation-fund-grid,
.guided-auto-form .donation-frequency-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 8px !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}
.donation-slick-card .donation-choice,
.guided-auto-form .donation-choice {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  justify-self: stretch !important;
}
.donation-slick-card .donation-choice > span,
.guided-auto-form .donation-choice > span {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
@media (max-width: 820px) {
  .donation-slick-card .donation-fund-grid,
  .donation-slick-card .donation-frequency-grid,
  .guided-auto-form .donation-fund-grid,
  .guided-auto-form .donation-frequency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 460px) {
  .donation-slick-card .donation-fund-grid,
  .donation-slick-card .donation-frequency-grid,
  .guided-auto-form .donation-fund-grid,
  .guided-auto-form .donation-frequency-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v49.77 Education student management: mobile-first add/import/archive controls */
.education-profile-actions{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.education-import-card{max-width:1050px;margin-inline:auto}
.education-import-card input[type="file"]{display:block;width:100%;padding:.85rem;border:1px dashed var(--border,#cbd5e1);border-radius:12px;background:#fff}
.education-csv-preview{margin-top:1rem}
.education-import-summary{display:flex;align-items:baseline;gap:.6rem;padding:.85rem 1rem;border-radius:12px;background:rgba(15,118,110,.08);margin-bottom:.75rem}
.education-import-summary strong{font-size:1.8rem}
.education-import-status{display:inline-block;padding:.25rem .55rem;border-radius:999px;font-size:.82rem;font-weight:700;white-space:nowrap}
.education-import-status.is-ready{background:rgba(22,163,74,.12)}
.education-import-status.is-error{background:rgba(220,38,38,.12)}
.education-profile-student-archived{opacity:.92;border-style:dashed}
@media(max-width:720px){.education-profile-actions{display:grid;grid-template-columns:1fr;width:100%}.education-profile-actions .button{width:100%;text-align:center}.education-import-card .button-row{display:grid;grid-template-columns:1fr}.education-import-card .button-row>*{width:100%}.education-csv-preview table{min-width:650px}.education-profile-section-nav{overflow-x:auto;display:flex;flex-wrap:nowrap;padding-bottom:.35rem}.education-profile-section-nav .button{white-space:nowrap;flex:0 0 auto}}
