:root {
  color-scheme: light;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

.environment-banner {
  position: fixed;
  z-index: 5000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 24px;
  padding: 4px 8px;
  background: #b42318;
  color: white;
  font-size: 10px;
  font-weight: 850;
  line-height: 16px;
  letter-spacing: .12em;
  text-align: center;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
}

body.staging-environment { padding-top: 24px; }
body.staging-environment .app-header { top: 24px; }
body.staging-environment.admin-body { padding-top: 118px; }
body.staging-environment.subscription-body { padding-top: 120px; }
body.staging-environment.map-body .workspace { height: calc(100% - 108px); }

.global-home-link {
  position: fixed;
  z-index: 1200;
  top: 14px;
  left: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 11px;
  background: #124731;
  color: white;
  box-shadow: 0 4px 15px rgba(8, 43, 28, .2);
}
.global-home-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.global-home-link:hover { background: #0c3927; }
.global-home-link:focus-visible { outline: 3px solid #f1cd65; outline-offset: 2px; }
.global-home-link + .topbar { padding-left: 68px; }
.global-home-link + .public-header { padding-left: max(68px, calc((100vw - 1220px) / 2)); }
.global-home-link + .app-header { padding-left: 68px; }
.staging-environment .global-home-link { top: 31px; }

.pwa-install-banner {
  position: fixed;
  z-index: 4900;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 46px minmax(150px, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100vw - 24px));
  border: 1px solid #9bb4a4;
  border-radius: 15px;
  padding: 10px;
  background: #fff;
  color: #123f2b;
  box-shadow: 0 16px 45px rgb(7 38 25 / 28%);
}
.pwa-install-banner img { width: 46px; height: 46px; border-radius: 11px; }
.pwa-install-banner span { display: grid; gap: 2px; min-width: 0; }
.pwa-install-banner strong { font-size: 14px; }
.pwa-install-banner small { color: #587064; font-size: 11px; line-height: 1.35; }
.pwa-install-action, .pwa-install-done {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  background: #12603d;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pwa-install-action:disabled { opacity: .65; cursor: wait; }
.pwa-install-dismiss, .pwa-install-dialog-header > button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #e8eee9;
  color: #254b39;
  font-size: 22px;
  cursor: pointer;
}
.pwa-install-dialog {
  width: min(500px, calc(100vw - 24px));
  border: 0;
  border-radius: 17px;
  padding: 20px;
  background: #fff;
  color: #183c2c;
  box-shadow: 0 22px 70px rgb(5 30 19 / 42%);
}
.pwa-install-dialog::backdrop { background: rgb(9 31 22 / 62%); backdrop-filter: blur(2px); }
.pwa-install-dialog-header {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.pwa-install-dialog-header img { width: 52px; height: 52px; border-radius: 13px; }
.pwa-install-dialog-header div { display: grid; gap: 2px; }
.pwa-install-dialog-header small { color: #4e715f; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.pwa-install-dialog h2 { margin: 0; color: #102f22; font-size: 1.25rem; }
.pwa-install-dialog section { border: 1px solid #cedbd1; border-radius: 11px; padding: 13px 15px; background: #f2f7ef; }
.pwa-install-dialog section p { margin: 0; }
.pwa-install-dialog ol { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 22px; }
.pwa-install-note { color: #5b6d63; font-size: 12px; line-height: 1.45; }
.pwa-install-done { width: 100%; }

@media (max-width: 680px) {
  .global-home-link { left: 9px; width: 38px; height: 38px; }
  .global-home-link + .topbar { padding-left: 52px; }
  .global-home-link + .public-header { padding-left: 56px; }
  .global-home-link + .app-header { padding-left: 52px; }
  .pwa-install-banner {
    right: 8px;
    bottom: 74px;
    grid-template-columns: 42px minmax(0, 1fr) auto 30px;
    gap: 8px;
    width: calc(100vw - 16px);
    padding: 9px;
  }
  .pwa-install-banner img { width: 42px; height: 42px; }
  .pwa-install-action { padding: 9px 11px; }
  .pwa-install-dialog { padding: 16px; }
}
/* Compact ALTCHA styling shared by public, login and demo contact forms. */
body .captcha-box { min-height: 0; justify-content: flex-start; }
.captcha-box altcha-widget {
  display: block;
  width: min(100%, 280px);
  font-size: 13px;
  --altcha-max-width: 100%;
  --altcha-padding: 8px;
  --altcha-border-color: #d5e1d7;
  --altcha-border-radius: 8px;
  --altcha-color-base: #f4f8f3;
  --altcha-color-base-content: #234b37;
  --altcha-color-neutral: #d5e1d7;
  --altcha-color-neutral-content: #53665a;
  --altcha-color-primary: #20573d;
  --altcha-color-success: #20573d;
  --altcha-checkbox-border-color: #8da594;
  --altcha-checkbox-border-radius: 4px;
  --altcha-checkbox-size: 20px;
  --altcha-checkbox-outline-color: #20573d;
}
.captcha-box altcha-widget .altcha-main { gap: 3px; }
.captcha-box altcha-widget .altcha-main > :first-child { min-height: 24px; align-items: center; }
.captcha-box altcha-widget .altcha-logo svg { width: 18px; height: 18px; }
.captcha-box altcha-widget .altcha-footer { font-size: 10px; opacity: 1; color: #53665a; }


/* Password feedback stays within the field on small screens. */
.auth-card .password-validation-message { display: block; margin-top: 6px; color: #a61d16; font-size: .875rem; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.auth-card [data-password-match][data-valid="true"] { color: #20573d; }

.billing-page{max-width:1150px;margin:40px auto;padding:24px;background:white;border-radius:16px}.billing-actions{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:16px 0}.billing-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.billing-form label{display:flex;flex-direction:column;gap:6px}.billing-page input,.billing-page select,.billing-page textarea{max-width:100%;min-height:44px}.billing-page form{margin-block:20px}.billing-page .checkbox-row{flex-direction:row;align-items:center}.billing-page summary{cursor:pointer;padding:14px}.billing-actions a{padding:10px}.club-directory td{vertical-align:top}.club-directory details{max-width:360px}@media(max-width:700px){.billing-page{margin:12px 0;padding:16px}.billing-form{grid-template-columns:1fr}.billing-actions>*{max-width:100%}.club-directory,.club-directory tbody,.club-directory tr,.club-directory td{display:block;width:100%}.club-directory thead{display:none}.club-directory tr{padding:12px;border-bottom:1px solid #bdcdbf}.club-directory td{border:0;padding:6px;overflow-wrap:anywhere}.club-directory td:before{content:attr(data-label);display:block;font-size:.8rem;color:#526e5a}.club-directory details{max-width:none}}

.billing-page a{color:#19573e}.billing-page a.primary{color:white}.billing-page textarea{border:1px solid #a9bfac;border-radius:8px;padding:10px;min-height:90px;font:inherit}

/* Shared administration navigation follows the green button system. */
.billing-actions a,.billing-actions a:visited{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #a5bba8;border-radius:9px;background:#f3f7f1;color:#1b563c;text-decoration:none;font-weight:650;line-height:1.3}.billing-actions a:hover{background:#e3eddf}.billing-actions a:focus-visible{outline:3px solid #7ba68b;outline-offset:3px}.billing-section-heading,.billing-wide,.billing-advanced{grid-column:1/-1}.billing-section-heading h2{margin-bottom:6px}.billing-section-heading p,.billing-form small{color:#526b5b}.billing-advanced{border:1px solid #c2d1c3;border-radius:10px;padding:8px 12px}.billing-advanced label{margin:14px 0}.billing-page .billing-form input,.billing-page .billing-form select{box-sizing:border-box;width:100%;padding:10px;border:1px solid #a9bfac;border-radius:8px;font:inherit}.billing-page .billing-form input[type=checkbox]{width:20px;min-height:20px}.billing-page .billing-form button{align-self:end}.billing-actions{align-items:center}@media(max-width:600px){nav.billing-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}nav.billing-actions a{padding:10px;font-size:.92rem}}
.billing-page .billing-filter-grid { display: grid; grid-template-columns: minmax(210px,2fr) repeat(3,minmax(135px,1fr)) auto; align-items: end; gap: 12px; margin: 20px 0 8px; }
.billing-page .billing-filter-grid label { display: grid; gap: 6px; min-width: 0; font-weight: 700; font-size: 13px; }
.billing-page .billing-filter-grid input,.billing-page .billing-filter-grid select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; }
.billing-page .billing-export-form { margin: 0 0 20px; }
.billing-page { width: min(1150px, 100%); min-width: 0; box-sizing: border-box; }
.billing-page .table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.billing-page button { max-width: 100%; white-space: normal; }
.member-summary-values { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 14px; }
.member-summary-values div { min-width: 0; }
.member-summary-values dt { color: #526b5b; font-size: .86rem; }
.member-summary-values dd { margin: 4px 0 0; font-weight: 700; }
.member-summary-card { padding-block: 12px; border-bottom: 1px solid #dce5dc; }
.billing-page .billing-actions span[aria-current] { padding: 10px; color: #526b5b; }
.billing-page .table-wrap td a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 11px; border: 1px solid #a5bba8; border-radius: 8px; color: #1b563c; text-decoration: none; font-weight: 700; }

/* Shared club workspace shell. Module pages used to inherit the centered
   authentication layout, which made real work screens look unfinished. */
.module-body { display: block; min-height: 100vh; overflow: auto; background: #f2f5ef; }
.workspace-navigation { position: sticky; z-index: 900; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; min-height: 76px; padding: 10px clamp(16px, 3vw, 42px); border-bottom: 1px solid #345c47; background: #123f2b; color: #fff; box-shadow: 0 5px 20px rgb(9 42 28 / 18%); }
.workspace-navigation-brand { display: grid; min-width: 145px; gap: 1px; }
.workspace-navigation-brand span { max-width: 230px; overflow: hidden; opacity: .72; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-navigation-brand strong { font-size: 17px; }
.workspace-navigation-links { display: flex; min-width: 0; align-items: stretch; justify-content: center; gap: 5px; }
.workspace-navigation-links > a, .workspace-navigation-links > span { display: grid; min-width: 112px; min-height: 50px; align-content: center; gap: 2px; border: 1px solid transparent; border-radius: 9px; padding: 7px 12px; color: #fff; text-decoration: none; }
.workspace-navigation-links > a:hover, .workspace-navigation-links > a.is-active { border-color: rgb(255 255 255 / 32%); background: rgb(255 255 255 / 13%); }
.workspace-navigation-links > a.is-active { box-shadow: inset 0 -3px #b7d69b; }
.workspace-navigation-links span > span, .workspace-navigation-links a > span { font-weight: 800; }
.workspace-navigation-links small { opacity: .7; font-size: 10px; line-height: 1.2; }
.workspace-navigation-links .is-disabled { opacity: .42; cursor: not-allowed; }
.workspace-navigation-tools { display: flex; gap: 6px; }
.workspace-navigation > * { min-width: 0; }
.workspace-navigation-tools a { border-radius: 7px; padding: 9px 10px; color: #e7f2e7; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.workspace-navigation-tools a:hover, .workspace-navigation-tools a.is-active { background: rgb(255 255 255 / 13%); color: #fff; }
.module-page { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.module-page-narrow { width: min(980px, calc(100% - 32px)); }
.module-page-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.module-page-header h1 { margin: 5px 0 8px; color: #173f2b; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
.module-page-header p:last-child { max-width: 780px; margin: 0; color: #596b61; font-size: 15px; line-height: 1.55; }
.module-page-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.module-page-header nav .secondary-button { width: auto; margin: 0; text-decoration: none; white-space: nowrap; }
.module-page .member-list-card { margin-bottom: 18px; }
.module-page .member-list-card h2 { color: #173f2b; }
.finance-page .member-list-card > summary { min-height: 44px; cursor: pointer; line-height: 1.35; overflow-wrap: anywhere; }
.finance-page .member-list-card p, .finance-page article { overflow-wrap: anywhere; }
.fee-default-form { margin: 18px 0; border: 1px solid #bfd4bd; border-radius: 12px; padding: 16px; background: #f4f9f1; }
.fee-default-form small { color: #56685c; line-height: 1.4; }
.fee-member-list { display: grid; gap: 8px; margin: 16px 0 0; }
.fee-member-row { border: 1px solid #d5e0d4; border-radius: 10px; background: #fbfcfa; }
.fee-member-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; min-height: 54px; padding: 12px 14px; cursor: pointer; list-style-position: inside; }
.fee-member-row > summary > span { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.fee-member-row > summary > span small { margin-left: 7px; border-radius: 999px; padding: 3px 7px; background: #fff0db; color: #71450d; font-weight: 800; }
.fee-member-row > summary > strong { white-space: nowrap; color: #174a33; }
.fee-member-row > summary > small { grid-column: 1 / -1; color: #596d5f; }
.fee-member-row > form, .fee-member-row > p { margin: 0; border-top: 1px solid #d5e0d4; padding: 14px; }
.event-fund-section { border-left: 5px solid #487b93; }
.event-fund-section > p { max-width: 78ch; }
.event-fund-new { margin: 16px 0; border: 1px solid #cfddd9; border-radius: 10px; padding: 12px; }
.event-fund-list { display: grid; gap: 12px; }
.event-fund-card { min-width: 0; border: 1px solid #ceddd9; border-radius: 10px; background: #fbfdfc; }
.event-fund-card > summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 14px; cursor: pointer; }
.event-fund-card > summary span:first-child { display: grid; gap: 3px; min-width: 0; }
.event-fund-card > summary small { color: #587067; }
.event-fund-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 14px; border-top: 1px solid #d9e5df; }
.event-fund-card > form { margin: 0 14px 14px; }
.event-fund-entries { padding: 0 14px 14px; }
.event-fund-entries > div { display: flex; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid #e0e9e3; }
.event-fund-entries > div > span { min-width: 0; overflow-wrap: anywhere; }
.event-fund-entries strong { white-space: nowrap; }
.module-page table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.module-page table th, .module-page table td { min-width: 105px; }
.module-page details { max-width: 100%; }
.module-form { display: grid; gap: 14px; }
.module-form-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.module-form label { display: grid; gap: 6px; color: #173f2b; font-size: 13px; font-weight: 750; }
.module-form input, .module-form select, .module-form textarea { width: 100%; min-height: 44px; border: 1px solid #acbdb0; border-radius: 8px; padding: 10px 12px; background: #fff; color: #17221d; font: inherit; }
.module-form input:is([type="checkbox"], [type="radio"]) { width: 20px; min-height: 20px; height: 20px; margin: 0; padding: 0; accent-color: #285c42; }
.module-form label:has(> input:is([type="checkbox"], [type="radio"])) { grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; line-height: 1.45; }
.module-form textarea { min-height: 96px; resize: vertical; }
.annual-page .module-form input[type="checkbox"] { width: 20px; min-height: 20px; margin: 0; accent-color: #285c42; }
.annual-page .module-form label:has(> input[type="checkbox"]) { grid-template-columns: 20px minmax(0, 1fr); align-items: start; line-height: 1.5; }
.annual-page .module-form section { padding: 20px; }
.annual-page .module-form section > label, .annual-page .module-form details > label { margin: 14px 0; }
.annual-page summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 750; color: #285c42; }
.annual-page details > p, .annual-page details > label { overflow-wrap: anywhere; }
.annual-page .module-form select { min-width: 0; text-overflow: ellipsis; }
.module-form button, .module-page button { min-height: 44px; border: 1px solid #285c42; border-radius: 8px; padding: 10px 15px; background: #285c42; color: #fff; font: inherit; font-weight: 800; }
.module-page .secondary-button { display: inline-flex; width: auto; min-height: 42px; align-items: center; justify-content: center; border: 1px solid #91a797; border-radius: 8px; padding: 9px 13px; background: #fff; color: #1d563b; text-decoration: none; }
.module-primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #285c42; border-radius: 9px; padding: 11px 16px; background: #285c42; color: #fff; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; }
.module-primary-action:hover, .module-primary-action:focus-visible { background: #174a33; color: #fff; }
.module-page button:focus-visible, .module-page a:focus-visible, .module-page input:focus-visible, .module-page select:focus-visible { outline: 3px solid #d89a37; outline-offset: 2px; }
.workflow-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 18px; }
.workflow-summary > div { display: grid; gap: 3px; border: 1px solid #cfdbd0; border-radius: 12px; padding: 16px; background: #fff; }
.workflow-summary strong { color: #173f2b; font-size: 26px; }
.workflow-summary span { color: #66756c; font-size: 12px; }
.module-page-note { color: #607068; font-size: 12px; line-height: 1.5; }
.notification-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 20px; border-color: #a9c3ae; background: linear-gradient(135deg, #fff, #edf6e9); }
.notification-hero-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #d9ead3; color: #195536; font-size: 25px; font-weight: 900; }
.notification-hero h2, .notification-hero p { margin: 3px 0; }
.notification-hero .module-page-note { grid-column: 2 / -1; }
.notification-digest { color: #35483e; line-height: 1.55; }
.notification-history { display: grid; }
.notification-history article { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid #e0e6e0; }
.notification-history time { color: #5e7066; font-weight: 750; }
.notification-history p { margin: 4px 0 0; color: #586a60; line-height: 1.5; }
.report-builder-heading { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 14px; }
.report-builder-heading > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #173f2b; color: #fff; font-weight: 850; }
.report-builder-heading h2, .report-builder-heading p { margin: 0; }
.report-builder-heading p { margin-top: 3px; color: #627269; font-size: 12px; line-height: 1.45; }
.report-builder-form { gap: 24px; }
.report-period { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-sections { display: grid; gap: 10px; }
.report-sections label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; border: 1px solid #cedace; border-radius: 10px; padding: 14px; background: #f9fbf8; cursor: pointer; }
.report-sections input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: #285c42; }
.report-sections span { display: grid; gap: 3px; }
.report-sections small { color: #68776e; font-weight: 400; line-height: 1.4; }
.report-actions { display: flex; gap: 10px; }
.report-actions button { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.contract-workflow-body .workspace-navigation { margin-top: 68px; }

@media (max-width: 900px) {
  .workspace-navigation { grid-template-columns: 1fr auto; gap: 8px; padding: 8px 12px; }
  .workspace-navigation-brand { min-width: 0; }
  .workspace-navigation-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 3; width: 100%; }
  .workspace-navigation-links > a, .workspace-navigation-links > span { min-width: 0; padding-inline: 7px; text-align: center; }
  .workspace-navigation-tools { justify-content: flex-end; }
}
@media (max-width: 620px) {
  .module-page { width: min(100% - 18px, 1240px); padding: 20px 0 36px; }
  .workspace-navigation { position: relative; min-height: 0; }
  .workspace-navigation-brand span { max-width: 165px; }
  .workspace-navigation-brand strong { font-size: 15px; }
  .workspace-navigation-tools a { padding: 7px 6px; font-size: 11px; }
  .workspace-navigation-links { gap: 3px; }
  .workspace-navigation-links > a, .workspace-navigation-links > span { min-height: 47px; padding: 5px 3px; font-size: 11px; }
  .workspace-navigation-links small { display: none; }
  .module-page-header { display: block; margin-bottom: 17px; }
  .module-page-header h1 { font-size: 30px; }
  .module-page-header nav { justify-content: flex-start; margin-top: 14px; }
  .notification-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .notification-hero button, .notification-hero .module-page-note { grid-column: 1 / -1; }
  .notification-history article { grid-template-columns: 1fr; gap: 4px; }
  .report-period { grid-template-columns: 1fr; }
  .report-actions { display: grid; }
  .contract-workflow-body .workspace-navigation { margin-top: 64px; }
  .finance-page .module-form-inline { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .finance-page .module-form-inline > label, .finance-page .module-form-inline > button, .finance-page .module-form-inline > a { width: 100%; min-width: 0; }
  .finance-page .workflow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-page .workflow-summary > div:last-child { grid-column: 1 / -1; }
  .finance-page .workflow-summary strong { font-size: clamp(20px, 7vw, 26px); overflow-wrap: anywhere; }
  .finance-page .member-list-card > summary { padding: 5px 0; }
  .fee-member-row > summary { grid-template-columns: minmax(0, 1fr); }
  .fee-member-row > summary > strong { white-space: normal; }
  .event-fund-card > summary, .event-fund-entries > div { display: grid; }
  .event-fund-card > form { margin: 0 10px 10px; }
}
@media(max-width: 900px) { .billing-page .billing-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) { .billing-page .billing-filter-grid { grid-template-columns: 1fr; } }

/* The standalone module pages share one finished workspace language.  These
   rules live in base.css because contracts, members, work and finance do not
   load the map-only styles.css bundle. */
.global-home-link + .workspace-navigation { padding-left: 72px; }
.member-register-page { display: grid; max-width: 1120px; gap: 18px; }
.contract-workflow-page { max-width: 1180px; }
.member-register-intro,
.member-editor-card,
.member-list-card {
  min-width: 0;
  border: 1px solid #d1ddcf;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 60 42 / 6%);
}
.member-register-intro h1,
.member-list-card h2 { margin: 4px 0 8px; }
.member-register-intro .lead { max-width: 820px; }
.member-module-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.member-module-badges span { border-radius: 999px; padding: 6px 10px; background: #e4f0df; font-size: 13px; font-weight: 750; }
.member-editor-card > summary,
.member-row > summary { cursor: pointer; font-weight: 800; }
.member-editor-card > summary { font-size: 18px; }
.member-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.member-editor-grid label { display: grid; min-width: 0; align-content: start; gap: 6px; font-weight: 700; }
.member-editor-grid input,
.member-editor-grid select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #9caf9f; border-radius: 8px; padding: 9px; background: #fff; color: #183e2c; }
.member-editor-grid small { color: #607467; font-weight: 400; }
.member-account-field { grid-column: span 2; }
.member-editor-actions { display: flex; align-items: end; }
.member-editor-actions button { width: 100%; min-height: 44px; }
.member-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.member-list-heading p { margin: 0; color: #607467; }
.member-register-list { display: grid; gap: 10px; margin-top: 16px; }
.member-row { min-width: 0; border: 1px solid #d8e1d6; border-radius: 10px; background: #fbfcfa; }
.member-row.status-former { background: #f6f6f4; }
.member-row > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; }
.member-row > summary span:first-child { display: grid; min-width: 0; gap: 4px; }
.member-row > summary small,
.member-contact-summary { color: #607467; font-weight: 500; }
.member-row form,
.member-read-details { margin: 0; border-top: 1px solid #e1e7df; padding: 16px; }
.member-read-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.member-read-details dt { color: #607467; font-size: 12px; }
.member-read-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.member-empty-state { border: 1px dashed #a9b9aa; border-radius: 10px; padding: 24px; background: #f8faf7; text-align: center; }

.module-form fieldset { min-width: 0; margin: 0; border: 1px solid #cedace; border-radius: 10px; padding: 14px; background: #f9fbf8; }
.module-form fieldset legend { padding: 0 6px; color: #173f2b; font-weight: 800; }
.module-form input[type="checkbox"],
.module-form input[type="radio"],
.contract-workflow-actions input[type="checkbox"],
.contract-workflow-actions input[type="radio"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #285c42;
}
.module-form label:has(> input[type="checkbox"]),
.module-form label:has(> input[type="radio"]),
.contract-workflow-actions label:has(> input[type="checkbox"]),
.contract-workflow-actions label:has(> input[type="radio"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
}
.module-form label:has(> input[type="radio"]) > input[type="file"] { flex: 1 0 100%; }
.report-sections label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.module-body .module-page button:not(.secondary-button):not(.danger-button) { border-color: #285c42; background: #285c42; color: #fff; }
.module-body .module-page button:not(.secondary-button):not(.danger-button):hover { background: #1f4c36; }

.contract-workflow-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.contract-workflow-summary div { display: flex; flex-direction: column; border: 1px solid #cad8c9; border-radius: 14px; padding: 1rem; background: #fff; }
.contract-workflow-summary strong { color: #174a35; font-size: 1.8rem; }
.contract-workflow-summary span { color: #53655d; }
.contract-workflow-list { display: grid; gap: 1rem; }
.contract-workflow-card { min-width: 0; border: 1px solid #d6ded5; border-left: 5px solid #7b857d; border-radius: 14px; padding: 1rem; background: #fff; }
.contract-workflow-card.status-sent_for_signature { border-left-color: #2c6bb1; }
.contract-workflow-card.status-signed_waiting_vmd { border-left-color: #bd7a10; }
.contract-workflow-card.status-vmd_confirmed { border-left-color: #238b57; }
.contract-workflow-card.status-cancelled { opacity: .78; }
.contract-workflow-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.contract-workflow-card h3 { margin: 0; color: #173f2d; }
.contract-workflow-card header p { margin: .25rem 0 0; color: #617068; }
.contract-workflow-status { border-radius: 999px; padding: .4rem .7rem; background: #edf3ec; font-weight: 800; white-space: nowrap; }
.contract-workflow-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.contract-workflow-facts div { min-width: 0; border-radius: 10px; padding: .7rem; background: #f5f7f3; }
.contract-workflow-facts dt { color: #69766f; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.contract-workflow-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.contract-workflow-parcels summary,
.contract-workflow-actions summary { cursor: pointer; color: #174a35; font-weight: 800; }
.contract-workflow-parcels ul { display: grid; gap: .35rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.contract-workflow-parcels li { display: flex; justify-content: space-between; gap: 1rem; border-radius: 8px; padding: .55rem .7rem; background: #f4f6f2; }
.contract-workflow-parcels li.vmd-confirmed { background: #e7f5eb; }
.contract-workflow-parcels li.vmd-conflict { background: #fff0df; }
.contract-workflow-parcels a { color: #145c3d; font-weight: 800; }
.contract-workflow-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; border-top: 1px solid #e0e6df; padding-top: 1rem; }
.contract-workflow-actions details { flex: 1 1 260px; min-width: 0; border: 1px solid #d6ded5; border-radius: 10px; padding: .7rem; }
.contract-workflow-actions form { display: grid; gap: .65rem; margin-top: .7rem; }
.contract-workflow-actions label { display: grid; min-width: 0; gap: .25rem; }
.contract-workflow-actions input:not([type="checkbox"]):not([type="radio"]),
.contract-workflow-actions textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #acbdb0; border-radius: 8px; padding: 10px 12px; font: inherit; }
.contract-photo-preview { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.contract-photo-preview li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contract-photo-preview img { width: 74px; height: 96px; border-radius: 6px; object-fit: cover; }

@media (min-width: 801px) and (max-width: 1100px) {
  body.staging-environment.map-body .workspace { height: calc(100% - 100px); }
}

@media (max-width: 800px) {
  body.staging-environment.map-body .workspace { height: calc(100dvh - 24px - 58px - 68px - env(safe-area-inset-bottom)); }
  .contract-workflow-summary,
  .contract-workflow-facts { grid-template-columns: 1fr; }
  .contract-workflow-card > header { flex-direction: column; }
  .contract-workflow-status { white-space: normal; }
}

@media (max-width: 760px) {
  .member-register-intro,
  .member-editor-card,
  .member-list-card { padding: 16px; }
  .member-editor-grid { grid-template-columns: 1fr; }
  .member-account-field { grid-column: auto; }
  .member-row > summary { align-items: flex-start; flex-direction: column; }
  .member-contact-summary { max-width: 100%; overflow-wrap: anywhere; }
  .member-read-details { grid-template-columns: 1fr; }
  .contract-workflow-parcels li { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .global-home-link + .workspace-navigation { padding-left: 58px; }
  body.staging-environment.admin-body { padding-top: 102px; }
  body.staging-environment.subscription-body { padding-top: 102px; }
}

@media (max-width: 1100px) {
  .workspace-navigation { grid-template-columns: minmax(0, 1fr); }
  .global-home-link + .workspace-navigation { padding-left: 12px; }
  .workspace-navigation-brand { padding-left: 46px; min-height: 42px; }
  .workspace-navigation-links { order: 2; }
  .workspace-navigation-tools { order: 3; justify-content: center; flex-wrap: wrap; }
  .workspace-navigation-tools a { min-height: 40px; display: inline-flex; align-items: center; white-space: normal; }
}

/* Compact disclosure keeps module navigation from pushing the page content
   below the first screen on tablets and phones. */
.workspace-navigation { grid-template-columns: auto minmax(0, 1fr); }
.workspace-navigation-sections { min-width: 0; }
.workspace-navigation-sections > summary { display: none; }
.workspace-navigation-content { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }

@media (max-width: 1100px) {
  .workspace-navigation { position: sticky; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 64px; padding: 8px 12px; }
  .global-home-link + .workspace-navigation { padding-left: 12px; }
  .workspace-navigation-brand { min-width: 0; min-height: 44px; padding-left: 46px; }
  .workspace-navigation-brand span { max-width: min(42vw, 230px); }
  .workspace-navigation-brand strong { font-size: 15px; }
  .workspace-navigation-sections { position: relative; display: block; min-width: 0; }
  .workspace-navigation-sections > summary { display: flex; min-width: 140px; min-height: 48px; align-items: center; gap: 8px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 10px; padding: 7px 11px; background: rgb(255 255 255 / 8%); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
  .workspace-navigation-sections > summary::-webkit-details-marker { display: none; }
  .workspace-navigation-sections > summary::after { content: "⌄"; margin-left: auto; font-size: 18px; line-height: 1; }
  .workspace-navigation-sections > summary:focus-visible { outline: 3px solid #f1cd65; outline-offset: 2px; }
  .workspace-navigation-sections > summary strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-navigation-content { position: absolute; z-index: 950; top: calc(100% + 7px); right: 0; display: none; width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 92px); overflow: auto; overscroll-behavior: contain; border: 1px solid #527560; border-radius: 12px; padding: 10px; background: #123f2b; box-shadow: 0 14px 34px rgb(8 30 19 / 32%); }
  .workspace-navigation-sections[open] > .workspace-navigation-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .workspace-navigation-links { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 4px; }
  .workspace-navigation-links > a, .workspace-navigation-links > span { min-width: 0; min-height: 48px; align-content: center; border-radius: 8px; padding: 8px 11px; font-size: 14px; text-align: left; }
  .workspace-navigation-links small { display: block; }
  .workspace-navigation-tools { display: grid; justify-content: stretch; gap: 4px; border-top: 1px solid rgb(255 255 255 / 20%); padding-top: 8px; }
  .workspace-navigation-tools a, .workspace-navigation-tools .account-action-form, .workspace-navigation-tools .account-action-button, .workspace-navigation-tools .raivis-launcher { display: flex; width: 100%; min-width: 0; min-height: 48px; align-items: center; justify-content: flex-start; border-radius: 8px; padding: 9px 11px; font-size: 14px; text-align: left; }
  .workspace-navigation-tools .account-action-form { display: flex; }
  .workspace-navigation-tools .account-action-button { height: auto; }
  .workspace-navigation-tools .raivis-launcher { color: #123f2c; }
}

@media (max-width: 420px) {
  .workspace-navigation-sections > summary { min-width: 122px; gap: 6px; padding-inline: 8px; font-size: 12px; }
  .workspace-navigation-sections > summary strong { max-width: 96px; }
  .workspace-navigation-brand { padding-left: 43px; }
}
