:root {
  --ink: var(--cjc-charcoal, #232b2d);
  --muted: #536273;
  --paper: var(--cjc-paper, #faf7f0);
  --white: #fff;
  --line: var(--cjc-border, #d9ded9);
  --red: var(--cjc-vermilion, #c92f42);
  --red-dark: #9d2132;
  --green: var(--cjc-eucalyptus, #426b59);
  --amber: #95620b;
  --blue: var(--cjc-lake, #2f6f8f);
  --shadow: 0 12px 35px rgb(24 31 35 / 8%);
  color: var(--ink);
  background: var(--paper);
}

.dashboard-reports { margin-top: 1.25rem; }
.dashboard-reports .panel-heading { margin-bottom: 1rem; }
.report-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d8e2e2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbfb, #fff);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.report-card:hover {
  border-color: #9dbabd;
  box-shadow: 0 12px 30px rgb(24 70 79 / 10%);
  transform: translateY(-1px);
}
.report-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 12px;
  background: #e1eff0;
  color: #1d5968;
}
.report-card__copy { display: grid; gap: .25rem; }
.report-card__copy strong { font-size: 1.02rem; }
.report-card__copy small { color: var(--muted); line-height: 1.45; }
.report-card__action { color: #1d5968; font-weight: 700; white-space: nowrap; }
.report-page-heading { align-items: flex-end; }
.report-page-heading h1 { max-width: 24ch; }
.report-download { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.25rem;
}
.report-summary article {
  display: grid;
  gap: .45rem;
  min-height: 7rem;
  align-content: center;
  padding: 1rem 1.15rem;
  border: 1px solid #dce5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(35 64 70 / 5%);
}
.report-summary span { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .025em; }
.report-summary strong { color: #173e49; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1; }
.report-panel { overflow: hidden; padding: 0; }
.report-panel__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.report-panel__heading h2 { margin-bottom: .25rem; }
.report-panel__heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.report-column-filters { display: flex; gap: .75rem; }
.report-column-filters label { display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.report-column-filters select {
  min-width: 11.5rem;
  height: 2.55rem;
  padding: 0 2.2rem 0 .8rem;
  border: 1px solid #cbd9d9;
  border-radius: 8px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}
.report-table-scroll { overflow-x: auto; }
.report-table { min-width: 1120px; margin: 0; font-size: .84rem; }
.report-table th { background: #f2f7f7; color: #36515a; white-space: nowrap; }
.report-table td { vertical-align: top; }
.report-table tbody tr:hover td { background: #f8fbfb; }
.report-person-name { min-width: 10rem; }
.report-person-name strong, .report-person-name small { display: block; }
.report-person-name small { margin-top: .15rem; color: var(--muted); }
.report-dietary { min-width: 12rem; max-width: 19rem; white-space: normal; }
.report-type { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.report-type--agm { background: #e8effb; color: #315c94; }
.report-type--luncheon { background: #e7f4ed; color: #216944; }
.report-type--raffle { background: #f6eaf2; color: #86456e; }
.report-panel .datatable-wrapper { padding: 0 1.4rem 1.3rem; }
.report-panel .datatable-top, .report-panel .datatable-bottom { padding: 1rem 0; }
.report-panel .datatable-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-panel .datatable-search { margin-left: auto; }
.report-panel .datatable-input {
  width: min(25rem, 42vw);
  min-height: 2.6rem;
  border: 1px solid #cbd9d9;
  border-radius: 8px;
  font: inherit;
}
.report-panel .datatable-selector { min-height: 2.4rem; border-color: #cbd9d9; border-radius: 8px; font: inherit; }
.report-panel .datatable-sorter { color: inherit; font-weight: 800; }
.report-panel .datatable-pagination a { border-radius: 7px; color: #1d5968; }
.report-panel .datatable-pagination .datatable-active a { background: #1d5968; color: #fff; }

@media (max-width: 860px) {
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-panel__heading { align-items: stretch; flex-direction: column; }
  .report-column-filters { flex-wrap: wrap; }
  .report-column-filters label { flex: 1 1 12rem; }
  .report-column-filters select { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .report-card { grid-template-columns: auto minmax(0, 1fr); }
  .report-card__action { grid-column: 2; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-summary article { min-height: 6rem; }
  .report-panel .datatable-top { align-items: stretch; flex-direction: column; }
  .report-panel .datatable-search { margin-left: 0; }
  .report-panel .datatable-input { width: 100%; }
}

.event-page,
.event-payment-page,
.event-complete-page { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.event-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); min-height: 34rem; overflow: hidden; border-radius: 24px; color: #fff; background: #0b315d; box-shadow: 0 18px 45px rgba(11,49,93,.16); }
.event-hero__content { position: relative; z-index: 1; display: flex; padding: 3.25rem 2.5rem 2.5rem; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #0b315d 0%, #164765 100%); }
.event-hero h1 { max-width: 680px; margin: .5rem 0 1rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; }
.event-hero__lede { max-width: 620px; margin: 0; font-size: 1.08rem; line-height: 1.65; color: rgba(255,255,255,.9); }
.event-hero__image { position: relative; min-height: 22rem; background: #305469 url("./images/events/luncheon-table-dmitry-spravko.jpg") center / cover no-repeat; }
.event-hero__image::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,49,93,.2), transparent 35%); content: ""; }
.event-hero__credit { position: absolute; z-index: 1; right: .75rem; bottom: .6rem; padding: .18rem .38rem; border-radius: 4px; color: rgba(255,255,255,.84); background: rgba(11,28,42,.58); font-size: .6rem; text-decoration: none; }
.event-hero__credit:hover { color: #fff; }
.event-hero--compact { min-height: 15rem; grid-template-columns: minmax(0, 1.45fr) minmax(14rem, .75fr); }
.event-hero--compact .event-hero__content { padding: 1.75rem 2.25rem; }
.event-hero--compact h1 { max-width: 680px; font-size: clamp(1.7rem, 3.7vw, 2.8rem); }
.event-hero--compact .event-hero__lede { max-width: 560px; font-size: .95rem; }
.event-hero--compact .event-hero__image { min-height: 15rem; }
.event-hero__details-link { align-self: flex-start; margin-top: 1.15rem; color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: .2rem; }
.event-hero__details-link:hover { border-color: #fff; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 2rem; }
.event-facts div { display: flex; min-height: 5.4rem; padding: .8rem .9rem; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; flex-direction: column; justify-content: center; background: rgba(255,255,255,.06); }
.event-facts span { margin-bottom: .22rem; color: #b9d7e4; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-facts strong { font-size: .96rem; }
.event-facts small { margin-top: .16rem; color: rgba(255,255,255,.68); font-size: .7rem; }
.event-page__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.event-page__sidebar { display: grid; grid-auto-rows: max-content; gap: .75rem; align-self: stretch; align-content: start; }
.event-information h2, .event-purchase-panel h2 { margin-top: 0; }
.event-checkout-panel { position: sticky; top: 1rem; z-index: 2; padding: .8rem; transition: box-shadow 180ms ease; }
.event-checkout-summary { margin: 0; }
.event-checkout-panel .button { width: 100%; min-height: 38px; padding-block: .48rem; font-size: .78rem; }
.event-cart-items { margin-bottom: .65rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.event-cart-items h2 { margin: 0 0 .4rem; color: #536273; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.event-cart-items ul { display: grid; gap: .28rem; margin: 0; padding: 0; list-style: none; }
.event-cart-items li { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font-size: .68rem; line-height: 1.3; }
.event-cart-items li span { color: #536273; }
.event-cart-items li strong { color: #0b315d; font-size: .69rem; white-space: nowrap; }
.event-renewal-line { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; padding: .55rem .65rem; border: 1px solid #c9dce3; border-radius: 8px; color: #244f62; background: #edf6f8; font-size: .72rem; }
.event-renewal-line strong { white-space: nowrap; }
.event-renewal-notice { display: grid; gap: .2rem; margin-bottom: .85rem; }
.event-renewal-notice span { line-height: 1.45; }
.event-schedule { display: grid; gap: .65rem; margin: 1.25rem 0; }
.event-schedule div { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.event-schedule dt { color: #0b315d; font-weight: 700; }
.event-schedule dd { margin: 0; }
.event-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: .75rem; }
.event-prices div { display: grid; gap: .1rem; padding: .65rem .7rem; border-radius: 12px; background: #f3f7f8; }
.event-prices span, .event-capacity { color: #667680; font-size: .82rem; }
.event-full-banner { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid #e4b4b5; border-radius: 12px; color: #7e1d25; background: #fff4f3; }
.event-capacity { white-space: nowrap; }
.event-member-options { display: grid; gap: .65rem; margin: 1rem 0; }
.event-member-option { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: .45rem; align-items: center; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 10px; }
.event-member-option--child { grid-template-columns: 1rem minmax(0, 1fr) auto auto; }
.event-member-option.is-unavailable { color: #7b858b; background: #f2f4f3; border-color: #dfe4e2; }
.event-member-option.is-unavailable .event-person-widget { opacity: .62; }
.event-member-option.is-unavailable > input { cursor: not-allowed; }
.event-member-booked { padding: .3rem .55rem; border-radius: 999px; color: #69757b; background: #e4e8e6; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.event-member-option > input[type="checkbox"] { margin: 0; }
.event-member-option small { display: block; color: #667680; margin-top: .15rem; }
.event-member-option select, .event-member-option input, .event-guest-ticket input, .event-guest-ticket select, .event-raffle-options input { width: 100%; }
.event-member-option .event-person-widget { display: block; min-width: 0; }
.event-member-option .event-person-widget .person-card { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); gap: .45rem; align-items: center; }
.event-member-option .event-person-widget .person-card__photo { width: 2.15rem; height: 2.15rem; }
.event-member-option .event-person-widget .person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.event-member-option .event-person-widget .person-card__body { min-width: 0; }
.event-member-option .event-person-widget .person-card__names { margin: 0; font-size: .74rem; line-height: 1.15; }
.event-member-option .event-person-widget .person-card__name { display: block; }
.event-member-option .event-person-widget .person-card__name--ja { font-size: .76rem; }
.event-member-option .event-person-widget .person-card__name--en { margin-top: .08rem; color: #667680; font-size: .68rem; font-weight: 500; }
.event-member-option .event-person-widget .person-card__name { overflow-wrap: normal; word-break: keep-all; }
.event-member-option .event-person-widget .membership-person__heading { display: block; }
.event-member-option .event-meal-input { width: 11.25rem; min-width: 0; min-height: 2rem; padding: .18rem 1.35rem .18rem .45rem; font-family: inherit; font-size: .68rem; line-height: 1.2; }
.event-dietary-button { display: inline-flex; width: auto; max-width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: .3rem; padding: .26rem .32rem .26rem .5rem; border: 1px solid #b9c8ce; border-radius: 999px; color: #285b73; background: #f5f9fa; font-size: .66rem; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer; }
.event-dietary-button:hover, .event-dietary-button:focus-visible { background: #e5f0f3; }
.event-dietary-button__status { display: inline-grid; width: .95rem; height: .95rem; flex: 0 0 .95rem; place-items: center; border-radius: 50%; color: #fff; background: #78919b; font-size: .64rem; font-weight: 800; line-height: 1; }
.event-dietary-button.is-complete { border-color: #78a98e; color: #245c43; background: linear-gradient(180deg, #fbfffc, #edf7f0); }
.event-dietary-button.is-complete .event-dietary-button__status { background: #4f956d; }
.event-additional-attendees { margin-top: 1.6rem; }
.event-additional-attendees > h3 { margin: 0 0 .35rem; color: #0b315d; }
.event-additional-attendees > .form-hint { margin: 0 0 1rem; }
.event-attendee-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.event-attendee-count { display: flex; min-height: 5.6rem; padding: .9rem; border: 1px solid #d4dee3; border-top: 4px solid #477b91; border-radius: 13px; align-items: center; justify-content: space-between; gap: .75rem; background: #f7fafb; }
.event-attendee-count--child { border-top-color: #b06a35; background: #fcf8f3; }
.event-attendee-count strong, .event-attendee-count span { display: block; }
.event-attendee-count strong { color: #0b315d; font-size: 1rem; }
.event-attendee-count span { margin-top: .18rem; color: #667680; font-size: .72rem; }
.event-quantity-control { display: grid; grid-template-columns: 2rem 2.4rem 2rem; flex: 0 0 auto; align-items: center; overflow: hidden; border: 1px solid #bac8cf; border-radius: 9px; background: #fff; }
.event-quantity-control button { width: 2rem; height: 2.35rem; padding: 0; border: 0; color: #0b315d; background: #eef3f5; font-size: 1.1rem; cursor: pointer; }
.event-quantity-control button:hover { background: #dfeaed; }
.event-quantity-control button:focus-visible { position: relative; z-index: 1; outline: 2px solid #2f6f8f; outline-offset: -2px; }
.event-quantity-control input { width: 2.4rem; height: 2.35rem; padding: 0; border: 0; color: #0b315d; background: #fff; font-weight: 700; text-align: center; appearance: textfield; }
.event-quantity-control input::-webkit-inner-spin-button, .event-quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.event-attendee-forms { display: grid; gap: 1rem; margin-top: 1rem; }
.event-guest-ticket { padding: 1.1rem; border: 1px solid #cdd9df; border-radius: 15px; background: #fff; box-shadow: 0 6px 18px rgba(11,49,93,.05); }
.event-guest-ticket--adult { border-left: 4px solid #477b91; }
.event-guest-ticket--child { border-left: 4px solid #b06a35; }
.event-guest-ticket__heading { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.event-guest-ticket__heading > div { display: grid; gap: .12rem; }
.event-guest-ticket__heading > div span { color: #667680; font-size: .75rem; }
.event-attendee-number { display: grid; width: 2.35rem; height: 2.35rem; border-radius: 50%; place-items: center; color: #fff; background: #477b91; font-weight: 700; }
.event-guest-ticket--child .event-attendee-number { background: #b06a35; }
.event-child-age { display: grid; grid-template-columns: auto 3.8rem; gap: .45rem; align-items: center; color: #52616b; font-size: .78rem; }
.event-child-age input { width: 3.8rem; }
.event-name-section { padding: .8rem 0; border-top: 1px solid #e4e9eb; }
.event-name-section h4 { margin: 0 0 .6rem; color: #536273; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.event-name-section .form-grid { margin: 0; }
.event-dietary-field { display: grid; gap: .35rem; padding-top: .8rem; border-top: 1px solid #e4e9eb; }
.event-dietary-field { display: flex; justify-content: flex-end; }
.event-raffle-section { margin: 1.6rem 0 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.event-raffle-section > h3 { margin: 0 0 .35rem; color: #0b315d; }
.event-raffle-section > .form-hint { margin: 0 0 .9rem; }
.event-raffle-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.event-raffle-options label { display: grid; grid-template-columns: 1fr 4.5rem; align-items: center; gap: .5rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; }
.event-total-wrap { margin-bottom: .55rem; }
.event-total { margin: 0; color: #0b315d; font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.event-agm-section { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.event-agm-section > h3 { margin: 0 0 .35rem; color: #0b315d; }
.event-agm-options { display: grid; gap: .5rem; margin: .8rem 0 1rem; }
.event-agm-options label { display: grid; grid-template-columns: 1rem minmax(0, max-content) auto; width: fit-content; max-width: 100%; gap: .35rem; align-items: center; padding: .35rem .5rem; border-radius: 9px; }
.event-agm-options label.is-registered { color: #69757b; background: #f1f4f2; }
.event-agm-options label.is-registered > span { margin-left: .5rem; color: #426b59; font-size: .68rem; font-weight: 700; }
.event-agm-options label input { margin: 0; }
.event-agm-options .event-person-widget { min-width: 0; }
.event-agm-options .event-person-widget .person-card { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .45rem; align-items: center; }
.event-agm-options .event-person-widget .person-card__photo { width: 2.25rem; height: 2.25rem; }
.event-agm-options .event-person-widget .person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.event-agm-options .event-person-widget .person-card__names { margin: 0; font-size: .78rem; }
.event-agm-options .event-person-widget .person-card__name { display: block; }
.event-agm-options .event-person-widget .person-card__name--en { margin-top: .1rem; color: #667680; font-size: .7rem; }
.event-agm-options .event-person-widget .membership-person__heading { display: block; }
.event-dietary-modal { width: min(34rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgb(11 49 93 / 28%); }
.event-dietary-modal::backdrop { background: rgb(11 28 42 / 48%); }
.event-dietary-modal form { display: grid; gap: 1rem; padding: 1.5rem; }
.event-dietary-modal h2 { margin: 0; color: #0b315d; }
.event-dietary-modal label { display: grid; gap: .4rem; color: #52616b; font-size: .88rem; }
.event-dietary-modal textarea { width: 100%; resize: vertical; }
.event-dietary-modal__actions { display: flex; justify-content: flex-end; gap: .6rem; }
.event-payment-page, .event-complete-page { max-width: 760px; }
.event-payment-card { margin-top: 1.5rem; }
.event-payment-card #event-payment-element { margin-bottom: 1rem; }
.event-complete-page { text-align: center; padding-top: 5rem; }
.event-complete-mark { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; color: #fff; background: #2f7d5c; font-size: 2rem; }
.event-order-review { margin: 1.5rem 0; padding: 1.2rem; border: 1px solid #dbe3e6; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(11 49 93 / 6%); text-align: left; }
.event-order-review__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e4eaec; }
.event-order-review__heading h2 { margin: .15rem 0 0; color: #0b315d; font-size: 1.05rem; }
.event-order-review__heading > strong { color: #0b315d; white-space: nowrap; }
.event-order-review__group { margin-top: 1rem; }
.event-order-review__group > h3 { margin: 0 0 .4rem; color: #536273; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.event-order-review__group ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.event-order-review__group li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .65rem; border-radius: 8px; background: #f5f8f8; font-size: .78rem; }
.event-order-review__group li small { display: block; margin-top: .12rem; color: #6a777e; }
.event-order-review__group li > span:last-child { color: #536273; text-align: right; }
.event-order-review__person { min-width: 0; }
.event-order-review__person .person-card { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); gap: .55rem; align-items: center; }
.event-order-review__person .person-card__photo { width: 2.35rem; height: 2.35rem; }
.event-order-review__person .person-card__names { margin: 0; line-height: 1.1; letter-spacing: normal; text-transform: none; }
.event-order-review__person .person-card__name { display: block; }
.event-order-review__person .person-card__name--ja { font-size: .78rem; }
.event-order-review__person .person-card__name--en { margin-top: .08rem; color: #65747c; font-size: .7rem; }
.event-order-review__dietary { display: block; margin: .25rem 0 0 2.9rem; color: #65747c; font-size: .68rem; }
.event-order-review__ticket-type { font-weight: 650; white-space: nowrap; }
.event-order-review__ticket-type small { margin-top: .15rem; font-weight: 500; }
.event-order-review__receipt { margin: 1rem 0 0; color: #536273; font-size: .76rem; }
.no-gst-note { display: block; margin-top: .2rem; color: #6a777e; font-size: .66rem; font-weight: 500; letter-spacing: normal; line-height: 1.3; text-transform: none; }
.receipt-legal { display: block; margin: .75rem 0 0; color: #718087; font-size: .68rem; line-height: 1.4; }
.event-email-copy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(16rem, 1.1fr); gap: 1.25rem; margin: 1.5rem 0; text-align: left; }
.event-email-copy h2 { margin: .15rem 0 .45rem; color: #0b315d; font-size: 1.05rem; }
.event-email-copy p { margin: 0; color: #617078; font-size: .8rem; line-height: 1.5; }
.event-email-copy form { display: grid; gap: .65rem; }
.event-email-copy form > label { display: grid; gap: .3rem; color: #536273; font-size: .75rem; }
.event-email-copy__choices { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.event-email-copy__choices label { display: flex; align-items: center; gap: .35rem; font-size: .72rem; }
.event-email-copy__choices input { width: auto; }
.event-email-copy .button { justify-self: start; }
.event-email-copy__sent { padding: .42rem .6rem; border-radius: 6px; color: #2e6b49; background: #edf7f0; font-size: .7rem; }
.event-email-copy__sent.is-error { color: #8a2025; background: #fce8e9; }
.event-membership-review { color: #536273; font-size: .82rem; }
.member-purchases-block { margin-top: 1.75rem; }
.member-purchases__toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.member-purchase-list { display: grid; gap: .45rem; }
.member-purchase-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.member-purchase-card__summary { display: grid; grid-template-columns: auto minmax(12rem, 1.7fr) minmax(8rem, 1fr) auto auto; gap: .7rem; align-items: center; padding: .65rem .75rem; color: #0b315d; cursor: pointer; list-style: none; }
.member-purchase-card__summary::-webkit-details-marker { display: none; }
.member-purchase-card__summary:hover { background: #f7faf9; }
.member-purchase-card__chevron { width: .48rem; height: .48rem; border-right: 2px solid #70818a; border-bottom: 2px solid #70818a; transform: rotate(-45deg); transition: transform 150ms ease; }
.member-purchase-card[open] .member-purchase-card__chevron { transform: rotate(45deg); }
.member-purchase-card__identity { min-width: 0; }
.member-purchase-card__identity strong, .member-purchase-card__identity small { display: block; }
.member-purchase-card__identity strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.member-purchase-card__identity small { margin-top: .08rem; color: #718087; font-size: .66rem; }
.member-purchase-card__counts { display: flex; flex-wrap: wrap; gap: .25rem; }
.member-purchase-card__counts span { padding: .16rem .34rem; border-radius: 999px; color: #52656c; background: #edf3f2; font-size: .62rem; font-weight: 650; }
.member-purchase-card__amount { font-size: .75rem; white-space: nowrap; }
.member-purchase-card__body { border-top: 1px solid #e4e9e7; background: #fbfcfb; }
.member-purchase-people { padding: .75rem; border-bottom: 1px solid #e4e9e7; }
.member-purchase-people h3 { margin: 0 0 .5rem; color: #536273; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.member-purchase-people > div { display: grid; gap: .4rem; }
.member-purchase-ticket { display: grid; grid-template-columns: minmax(11rem, 1fr) auto auto; gap: .6rem; align-items: center; padding: .45rem .55rem; border: 1px solid #e4e9e7; border-radius: 8px; background: #fff; }
.member-purchase-person .person-card { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .45rem; align-items: center; }
.member-purchase-person .person-card__photo { width: 2rem; height: 2rem; }
.member-purchase-person .person-card__names { margin: 0; line-height: 1.05; }
.member-purchase-person .person-card__name { display: block; }
.member-purchase-person .person-card__name--ja { font-size: .72rem; }
.member-purchase-person .person-card__name--en { margin-top: .08rem; color: #6b7880; font-size: .65rem; }
.member-purchase-ticket__type { color: #68777e; font-size: .66rem; white-space: nowrap; }
.event-dietary-modal__form { display: grid; gap: 1rem; padding: 1.5rem; }
.event-dietary-modal__form h2, .event-dietary-modal__form p { margin: 0; }
.event-dietary-modal__form label { display: grid; gap: .4rem; color: #52616b; font-size: .88rem; }
.event-dietary-modal__form textarea { width: 100%; resize: vertical; }
.member-purchase-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; color: #6b7880; background: #fafbfa; font-size: .72rem; }
.member-purchase-card__footer form { margin: 0; }
.inline-form { display: inline-flex; margin-top: .5rem; }
@media (max-width: 800px) {
  .event-hero { grid-template-columns: 1fr; }
  .event-hero__content { padding: 2.5rem 1.4rem 1.5rem; }
  .event-hero__image { min-height: 15rem; }
  .event-hero--compact .event-hero__image { min-height: 10rem; }
  .event-page__grid { grid-template-columns: 1fr; }
  .event-checkout-panel { position: static; }
  .event-member-option, .event-member-option--child { grid-template-columns: auto minmax(0, 1fr) auto; }
  .event-member-option > input[type="checkbox"] { grid-column: 1; }
  .event-member-option--child .event-meal-input { grid-column: 2; grid-row: 2; justify-self: start; width: min(11.25rem, 100%); }
  .event-member-option .event-dietary-button { grid-column: 3; grid-row: 1; }
  .member-purchase-ticket { grid-template-columns: 1fr; }
  .event-email-copy { grid-template-columns: 1fr; }
}
@media (min-width: 801px) and (max-width: 980px) {
  .event-member-option { grid-template-columns: 1rem minmax(0, 1fr) auto; }
  .event-member-option--child { grid-template-columns: 1rem minmax(0, 1fr) auto; }
  .event-member-option--child .event-meal-input { grid-column: 2; grid-row: 2; justify-self: start; }
  .event-member-option .event-dietary-button { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .event-page { padding-inline: 0; }
  .event-hero { border-radius: 0; }
  .event-facts, .event-attendee-counts, .event-raffle-options { grid-template-columns: 1fr; }
  .event-guest-ticket { padding: .9rem; border-radius: 12px; }
  .event-guest-ticket__heading { grid-template-columns: 2.35rem minmax(0, 1fr); }
  .event-member-option, .event-member-option--child { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .event-member-option .event-person-widget { grid-column: 2; grid-row: 1; }
  .event-member-option .event-dietary-button { grid-column: 2; grid-row: 2; justify-self: start; }
  .event-member-option--child .event-meal-input { grid-column: 2; grid-row: 2; }
  .event-member-option--child .event-dietary-button { grid-column: 2; grid-row: 3; }
  .event-child-age { grid-column: 2; justify-self: start; }
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
body { display: flex; min-height: 100vh; margin: 0; min-width: 320px; flex-direction: column; font-weight: 400; }
a { color: var(--red-dark); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
body[data-member-authenticated="true"] [data-public-join-link] { display: none; }
.page strong { font-weight: 600; }

.membership-fallback-header { padding: 1rem; color: white; background: var(--cjc-indigo, #0b315d); }
.membership-fallback-header a { color: white; text-decoration: none; font-weight: 600; }
.membership-toolbar { color: white; background: var(--cjc-indigo, #0b315d); }
.membership-toolbar__inner { display: flex; width: min(calc(100% - 2rem), var(--cjc-content, 72rem)); min-height: 3rem; margin-inline: auto; gap: 1.2rem; align-items: center; }
.membership-toolbar__title { margin-right: auto; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.membership-toolbar a, .membership-toolbar button { padding: .3rem 0; color: rgb(255 255 255 / 82%); background: transparent; border: 0; font-size: .78rem; text-decoration: none; cursor: pointer; }
.membership-toolbar a:hover, .membership-toolbar button:hover, .membership-toolbar a[aria-current="page"] { color: white; text-decoration: underline; text-underline-offset: .25em; }
.membership-toolbar form { margin: 0; }
.membership-toolbar__person { color: rgb(255 255 255 / 70%); font-size: .75rem; }
.membership-toolbar__person--bilingual {
  display: grid;
  line-height: 1.12;
}
.membership-toolbar__person--bilingual > span:first-child {
  color: white;
  font-size: .78rem;
}
.membership-toolbar__person--bilingual > span:last-child {
  font-size: .64rem;
}
.login-mark { display: grid; place-items: center; color: white; background: var(--red); }

.page { width: min(var(--cjc-content, 72rem), calc(100% - 3rem)); margin: 0 auto; padding: 2.4rem 0 4rem; flex: 1 0 auto; }
.page-login { display: grid; place-items: center; padding: 3rem 0 5rem; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 1.35rem; }
.page-heading h1, .login-card h1, .error-page h1 { margin: .2rem 0 0; color: var(--cjc-indigo, #0b315d); font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.join-page-header {
  display: grid;
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(1rem, 2.5vw, 1.5rem);
}
.join-page-header .eyebrow {
  display: flex;
  margin: 0;
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
  border-right: 3px solid var(--red);
  grid-row: 1 / 3;
  align-items: center;
}
.join-page-header h1 {
  margin: 0;
  color: var(--cjc-charcoal, #232b2d);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
}
.join-call-to-action { max-width: 52rem; margin: .35rem 0 0; color: #52616d; font-size: clamp(.95rem, 1.7vw, 1.1rem); line-height: 1.65; }
.join-introduction { margin: 0 0 1.75rem; }
.join-existing-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  max-width: 48rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid #bed7c9;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3faf6, #fff);
  box-shadow: 0 16px 42px rgb(35 86 62 / 9%);
}
.join-existing-member__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 50%;
  color: #2c7553;
  background: #dff1e7;
}
.join-existing-member__content h2 { margin: .25rem 0 .8rem; color: #173f31; }
.join-existing-member__message { max-width: 40rem; color: #405c51; line-height: 1.65; }
.join-existing-member__message > :first-child { margin-top: 0; }
.join-existing-member__message > :last-child { margin-bottom: 1.25rem; }
.join-section-heading { max-width: 48rem; margin: 0 0 1rem; }
.join-section-heading h2 { margin: .2rem 0 .35rem; color: var(--cjc-indigo, #0b315d); font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.join-section-heading > p:last-child { margin: 0; color: var(--muted); }
.join-section-heading--fees { margin-top: 2rem; }
.join-benefit-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.join-benefit-card { display: flex; grid-column: span 2; gap: .85rem; min-height: 9rem; padding: 1rem; border: 1px solid #d9e1e6; border-radius: 10px; background: linear-gradient(145deg, #fff, #f8fafb); box-shadow: 0 5px 16px rgb(11 49 93 / 5%); }
.join-benefit-card:nth-child(4), .join-benefit-card:nth-child(5) { grid-column: span 3; }
.join-benefit-card h3 { margin: 0 0 .35rem; color: var(--cjc-indigo, #0b315d); font-size: .98rem; }
.join-benefit-card p { margin: 0; color: #526272; font-size: .82rem; line-height: 1.5; }
.join-benefit-icon, .join-price-icon { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff; background: var(--cjc-indigo, #0b315d); }
.join-benefit-icon svg, .join-price-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.join-benefit-card--activities .join-benefit-icon { background: #b14c57; }
.join-benefit-card--education .join-benefit-icon { background: #397862; }
.join-benefit-card--luncheon .join-benefit-icon { background: #a96a22; }
.join-benefit-card--culture .join-benefit-icon { background: #69548f; }
.join-benefit-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.join-benefit-tags li { padding: .2rem .42rem; border-radius: 999px; color: #394b5c; background: #eef2f5; font-size: .67rem; }
.join-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.join-price-card { position: relative; display: grid; min-height: 13rem; padding: 1.25rem; border: 1px solid #d5dde4; border-top: 5px solid #47708f; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(11 49 93 / 7%); align-content: start; grid-template-rows: auto auto auto 1fr; justify-items: center; text-align: center; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.join-price-card:hover { box-shadow: 0 10px 28px rgb(11 49 93 / 13%); transform: translateY(-2px); }
.join-pricing-grid--readonly .join-price-card { transition: none; }
.join-pricing-grid--readonly .join-price-card:hover { box-shadow: 0 8px 24px rgb(11 49 93 / 7%); transform: none; }
.join-price-card.is-selected { border-color: var(--cjc-indigo, #0b315d); box-shadow: 0 0 0 3px rgb(11 49 93 / 15%), 0 10px 28px rgb(11 49 93 / 11%); }
.join-price-card__select { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.join-price-card__select:focus { outline: 0; }
.join-price-card:focus-within { box-shadow: 0 0 0 4px rgb(169 37 42 / 22%), 0 10px 28px rgb(11 49 93 / 12%); }
.join-price-card--family { border-color: #8eb9aa; border-top-color: #397862; background: linear-gradient(180deg, #f1faf6, #fff 65%); }
.join-price-card--corporate { border-top-color: #69548f; }
.join-price-card h3 { margin: .65rem 0 0; color: var(--cjc-indigo, #0b315d); font-size: 1.08rem; }
.join-price-card > p:last-child { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }
.join-price-card--family .join-price-icon { background: #397862; }
.join-price-card--corporate .join-price-icon { background: #69548f; }
.join-price { margin: .2rem 0 0; color: var(--cjc-indigo, #0b315d); font-size: 2.5rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.join-price span { margin-right: .1rem; font-size: .9rem; font-weight: 600; vertical-align: top; }
.join-price small { display: block; margin-top: .35rem; color: var(--muted); font-size: .66rem; font-weight: 500; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.join-price-badge { position: absolute; top: -.75rem; padding: .25rem .65rem; border-radius: 999px; color: #fff; background: #397862; font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.member-name-stack { display: grid; width: fit-content; min-width: 0; line-height: 1.15; }
.member-name-stack__ja,
.member-name-stack__en { min-width: 0; overflow-wrap: anywhere; }
.member-name-stack__ja { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
.member-name-ruby {
  ruby-align: center;
  ruby-position: over;
}
.member-name-ruby rt {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}
.member-name-stack__ja rt { color: var(--muted); font-size: .52em; font-weight: 500; letter-spacing: .06em; }
.member-name-stack__en { color: var(--muted); font-family: "Avenir Next", system-ui, sans-serif; font-weight: 400; }
.member-name-stack--heading { gap: .16em; }
.member-name-stack--heading .member-name-stack__ja { font-size: .7em; }
.member-name-stack--heading .member-name-stack__en { font-size: .48em; letter-spacing: .01em; }
.page-heading h1.member-edit-heading { font-size: clamp(1.4rem, 2.8vw, 2.24rem); }
.member-name-stack--context { gap: .12rem; margin-top: .45rem; }
.member-name-stack--context .member-name-stack__ja { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.member-name-stack--context .member-name-stack__en { font-size: .78rem; }
.member-name-stack--compact { gap: .08rem; }
.member-name-stack--compact .member-name-stack__ja { color: var(--ink); font-size: .84rem; font-weight: 500; }
.member-name-stack--compact .member-name-stack__en { font-size: .7rem; }
.member-name-organization { margin: .3rem 0 0; color: var(--muted); font-size: .75rem; }
.eyebrow { margin: 0; color: var(--red); font-size: .73rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.membership-back-link { display: inline-flex; align-items: center; margin-bottom: .65rem; color: var(--cjc-lake, #2f6f8f); line-height: 1; text-decoration: none; }
.membership-back-link span { font-size: 2rem; font-weight: 400; line-height: .65; transition: transform 140ms ease; }
.membership-back-link:hover, .membership-back-link:focus-visible { color: var(--cjc-indigo, #0b315d); }
.membership-back-link:hover span, .membership-back-link:focus-visible span { transform: translateX(-2px); }
.japanese-name { margin: .45rem 0 0; color: var(--muted); font-size: 1.08rem; }
.muted, .form-hint { color: var(--muted); }
.form-hint { margin: -.25rem 0 1.25rem; font-size: .86rem; }
.heading-actions, .form-actions { display: flex; align-items: center; gap: .75rem; }
.membership-workspace-nav {
  display: flex;
  margin: -0.35rem 0 1.45rem;
  flex-wrap: wrap;
  overflow: visible;
  gap: .2rem;
  border-bottom: 1px solid var(--line);
}
.membership-workspace-nav a {
  position: relative;
  padding: .7rem .85rem .65rem;
  color: var(--muted);
  border-radius: .35rem .35rem 0 0;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.membership-workspace-nav a:hover,
.membership-workspace-nav a:focus-visible {
  color: var(--cjc-indigo, #0b315d);
  background: rgb(11 49 93 / 5%);
}
.membership-workspace-nav a[aria-current="page"] {
  color: var(--cjc-indigo, #0b315d);
  font-weight: 600;
}
.membership-workspace-nav a[aria-current="page"]::after {
  position: absolute;
  right: .65rem;
  bottom: -1px;
  left: .65rem;
  height: 3px;
  background: var(--red);
  border-radius: 999px 999px 0 0;
  content: "";
}
.workspace-section-heading {
  display: flex;
  margin: .1rem 0 1rem;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.workspace-section-heading h2 { margin: .15rem 0 0; color: var(--cjc-indigo, #0b315d); font-size: 1.35rem; font-weight: 550; }
.workspace-section-heading > p { max-width: 34rem; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: right; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .65rem 1.1rem; color: var(--cjc-indigo, #0b315d); background: var(--white); border: 1px solid rgb(11 49 93 / 22%); border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: .88rem; }
.button:hover { border-color: #777; }
.button-primary { color: white; background: var(--cjc-indigo, #0b315d); border-color: var(--cjc-indigo, #0b315d); }
.button-primary:hover { color: white; background: #164774; border-color: #164774; }
.button-quiet { min-height: 36px; padding: .45rem .7rem; background: transparent; border-color: transparent; }
.button-small { min-height: 34px; padding: .4rem .7rem; font-size: .8rem; }
.button-wide { width: 100%; margin-top: .25rem; }
.button-danger { color: white; background: #922c31; border-color: #922c31; }
.button-row { min-height: 34px; padding: .38rem .7rem; color: var(--cjc-indigo, #0b315d); background: white; border-color: rgb(11 49 93 / 25%); font-size: .76rem; font-weight: 500; }
.button-row:hover { color: var(--cjc-indigo, #0b315d); background: #eef3f7; border-color: rgb(11 49 93 / 55%); }
.button-row-danger { color: #8d242a; border-color: rgb(141 36 42 / 30%); }
.button-row-danger:hover { color: #761d23; background: #fff1f1; border-color: rgb(141 36 42 / 60%); }
.button-section-action { min-height: 36px; padding: .35rem .8rem .35rem .42rem; gap: .45rem; color: var(--cjc-indigo, #0b315d); background: white; border-color: rgb(11 49 93 / 28%); font-size: .78rem; font-weight: 550; white-space: nowrap; }
.button-section-action:hover { color: var(--cjc-indigo, #0b315d); background: #eef3f7; border-color: rgb(11 49 93 / 55%); }
.button-section-action__plus {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  background: var(--cjc-indigo, #0b315d);
  border-radius: 50%;
  font-size: 0;
}
.button-section-action__plus::before,
.button-section-action__plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .62rem;
  height: 1.5px;
  background: white;
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}
.button-section-action__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.button:focus-visible { outline: 3px solid rgb(11 49 93 / 22%); outline-offset: 2px; }

.notice, .form-error { margin-bottom: 1.5rem; padding: .9rem 1rem; border-left: 4px solid var(--green); background: #eaf5ee; }
.form-error { color: #781f24; border-color: var(--red); background: #faecec; }
.form-error--summary { display: grid; gap: .3rem; }
.form-error--summary ul { margin: .2rem 0 0; padding-left: 1.25rem; }
.form-error--summary[data-join-form-errors] { scroll-margin-block: 2rem; }
.form-error--summary[data-join-form-errors]:focus {
  outline: 3px solid rgb(169 37 42 / 18%);
  outline-offset: 3px;
}
.field-error { color: #97282d; font-size: .78rem; }

.login-card { width: min(440px, 100%); padding: 2.5rem; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.login-mark { width: 56px; height: 56px; margin-bottom: 1.4rem; border-radius: 50%; font-family: serif; font-size: 1.8rem; }
.login-card h1 { margin-bottom: 1rem; font-size: 2.1rem; }
.login-card form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.member-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(16rem, 22rem);
  min-height: 58vh;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.member-login-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-color: #dce4e2;
  border-radius: 1.1rem;
  box-shadow: 0 1.2rem 3.4rem rgb(40 66 66 / 10%);
}
.member-login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: .32rem;
  background: linear-gradient(90deg, #477b68, #7ca294);
  content: "";
}
.member-login-card h1 { margin-bottom: .25rem; }
.member-login-card__english { margin: 0 0 1.2rem; color: var(--cjc-eucalyptus, #426b59); font-weight: 500; }
.member-login-card__mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  color: #426b59;
  border-radius: 50%;
  background: #edf5f1;
}
.member-login-card__mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.member-login-card__intro { margin-top: .65rem; color: var(--muted); line-height: 1.65; }
.member-login-join {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 1.8rem;
  gap: 1rem;
  border: 1px solid #eadadd;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #fff9f8, #f9efef);
  box-shadow: 0 1.2rem 3.4rem rgb(120 45 55 / 8%);
}
.member-login-join::before {
  position: absolute;
  inset: 0 0 auto;
  height: .32rem;
  background: linear-gradient(90deg, #b85a62, #d59aa0);
  content: "";
}
.member-login-join__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: #a72e38;
  border-radius: 50%;
  background: white;
  box-shadow: 0 .35rem 1rem rgb(120 45 55 / 10%);
  font-family: "Noto Serif JP", serif;
}
.member-login-join h2 { margin: .15rem 0 .6rem; color: var(--cjc-indigo, #0b315d); font-size: 1.25rem; }
.member-login-join p:not(.eyebrow) { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.remember-check { line-height: 1.5; }
.privacy-note { margin: 1rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.6; text-align: center; }
.development-email { margin: 1.5rem 0; padding: 1.2rem; border: 1px dashed var(--cjc-lake, #2f6f8f); border-radius: .7rem; background: #eef6fa; }
.development-email p { margin: .35rem 0 1rem; font-size: .82rem; }
.member-heading { align-items: center; }
.member-heading__actions { display: flex; align-items: center; gap: .75rem; }
.member-welcome { max-width: 760px; }
.member-self-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); gap: 1rem; }
.member-profile-card__identity { display: flex; align-items: center; gap: 1rem; }
.member-profile-card__identity h2 { margin-bottom: .45rem; }
.member-profile-card__identity p { margin: .15rem 0; color: var(--muted); font-size: .86rem; }
.member-profile-card__identity .contact-email--warning { color: #842229; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
.member-profile-card__photo { display: grid; width: 5rem; height: 5rem; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--cjc-indigo, #0b315d); background: var(--cjc-mist, #edf1ee); font-size: 1rem; letter-spacing: .04em; place-items: center; flex: 0 0 auto; }
.member-profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-profile-card__contacts { margin: .25rem 0 .35rem; }
.person-contact-details { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.person-contact-details__primary { display: grid; min-width: 0; justify-items: start; gap: .28rem; }
.person-contact-details__link,
.person-contact-details__empty { display: inline-flex; min-width: 0; align-items: center; gap: .45rem; color: inherit; font-size: .86rem; line-height: 1.35; text-decoration: none; }
.person-contact-details__link > span,
.person-contact-details__empty > span { min-width: 0; overflow-wrap: anywhere; }
.person-contact-details__link > svg,
.person-contact-details__empty > svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; flex: 0 0 auto; }
.person-contact-details__link:hover,
.person-contact-details__link:focus-visible { color: var(--red); text-decoration: underline; }
.person-contact-details__link--warning { color: #842229; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
.person-contact-details__empty { color: var(--muted); }
.person-contact-details__social { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; }
.member-self-details div { grid-template-columns: 8rem 1fr; }
.member-primary-reference {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.member-primary-reference__photo {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  flex: 0 0 auto;
  color: var(--cjc-indigo, #0b315d);
  background: var(--cjc-mist, #edf1ee);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}
.member-primary-reference__photo img,
.member-primary-reference__photo svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-self-attributes { grid-column: 1 / -1; }
.member-attribute-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.member-attribute-item { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; min-width: 0; align-items: center; gap: .7rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: #f8f9f7; }
.member-attribute-lamp { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: #727b80; background: #e5e8e7; border: 1px solid #cbd0ce; border-radius: 50%; font-size: .75rem; font-weight: 700; }
.member-attribute-lamp.is-active { color: white; background: #34745c; border-color: #34745c; box-shadow: 0 0 0 3px rgb(52 116 92 / 12%); }
.member-attribute-copy { display: grid; min-width: 0; gap: .15rem; }
.member-attribute-copy strong { color: var(--ink); font-size: .82rem; font-weight: 600; }
.member-attribute-copy small { color: var(--muted); font-size: .71rem; line-height: 1.4; }
.member-attribute-state { color: #687176; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.member-attribute-state.is-active { color: #28644e; }
.member-attribute-item--participation { background: #f4f8fa; }
.member-self-note { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }
.member-expiry-detail { align-items: center; }
.member-expiry-detail dd { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.member-family-panel { margin-top: 1rem; }
.member-family-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: .7rem; }
.member-family-card {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f7f9f7;
}
.member-family-card__photo { display: grid; width: 3.4rem; height: 3.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--cjc-mist, #edf1ee); place-items: center; }
.member-family-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-family-card__body { display: grid; min-width: 0; justify-items: start; gap: .45rem; }
.member-family-card__identity h3 { margin: 0 0 .15rem; font-size: .95rem; font-weight: 500; }
.member-family-card__identity p { margin: .08rem 0; color: var(--muted); font-size: .78rem; }
.member-family-card__actions { margin-top: .15rem; }
.button-family-edit { white-space: nowrap; }
.member-self-assistance { margin: 1.5rem 0 0; color: var(--muted); font-size: .82rem; }
.member-edit-form { display: grid; gap: 1rem; }
.member-verification-shell { display: grid; min-height: 55vh; place-items: center; }
.member-verification-card { width: min(34rem, 100%); }
.member-verification-card h1 { margin-bottom: .8rem; }
.verification-code-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.verification-code-form input[name="code"] { width: 10rem; font-size: 1.35rem; letter-spacing: .25em; text-align: center; }
.join-email-verification-card {
  position: relative;
  padding: 2rem;
  border-radius: .9rem;
  box-shadow: 0 1.2rem 3rem rgb(11 49 93 / 9%);
}
.join-email-verification-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: .9rem;
  place-items: center;
  color: var(--cjc-indigo, #0b315d);
  border-radius: 50%;
  background: #eaf1f6;
}
.join-email-verification-card__icon svg { width: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.join-email-verification-card > p { color: var(--muted); line-height: 1.65; }
.join-email-verification-card__help { margin-top: 1rem; font-size: .75rem; }
.join-agreement-review {
  display: flex;
  padding: .9rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d8e1e5;
  border-radius: .55rem;
  background: #f7fafb;
}
.join-agreement-review strong { color: var(--cjc-indigo, #0b315d); font-size: .85rem; }
.join-agreement-review p { margin: .2rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.join-agreement-acceptance {
  display: flex;
  margin-top: .8rem;
  padding: .8rem 1rem;
  align-items: flex-start;
  gap: .65rem;
  border: 1px solid #d9dedf;
  border-radius: .5rem;
  background: white;
}
.join-agreement-acceptance input { width: 1rem; height: 1rem; margin-top: .12rem; }
.join-agreement-acceptance input:disabled { cursor: not-allowed; opacity: .45; }
.join-agreement-hint { margin: .45rem 0 0; }
.member-agreement-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(88vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: .8rem;
  box-shadow: 0 1.5rem 5rem rgb(11 27 43 / 28%);
}
.member-agreement-dialog::backdrop { background: rgb(11 49 93 / 48%); backdrop-filter: blur(2px); }
.member-agreement { display: grid; max-height: min(88vh, 52rem); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.member-agreement__heading {
  display: flex;
  padding: 1.2rem 1.35rem .9rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.member-agreement__heading h2 { margin: .15rem 0 0; color: var(--cjc-indigo, #0b315d); font-size: 1.35rem; }
.member-agreement__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--muted);
  background: #f1f3f3;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}
.member-agreement__language { display: flex; padding: .75rem 1.35rem 0; gap: .35rem; }
.member-agreement__language button {
  padding: .35rem .7rem;
  color: var(--muted);
  background: white;
  border: 1px solid #ccd3d6;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
}
.member-agreement__language button[aria-pressed="true"] { color: white; background: var(--cjc-indigo, #0b315d); border-color: var(--cjc-indigo, #0b315d); }
.member-agreement__content { overflow-y: auto; padding: 1rem 1.5rem 1.2rem; color: #35414a; font-size: .82rem; line-height: 1.65; }
.member-agreement__content p { margin: 0 0 .8rem; color: inherit; }
.member-agreement__content ol { display: grid; margin: 0 0 1rem; padding-left: 1.35rem; gap: .65rem; }
.member-agreement__version { color: var(--muted) !important; font-size: .7rem; }
.member-agreement__actions { padding: .85rem 1.35rem; border-top: 1px solid var(--line); text-align: right; }
.member-renewal-card { max-width: 50rem; }
.member-renewal-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1.5rem; }
.renewal-history-member-name { margin-top: .3rem; }
.member-renewal-history-table { min-width: 54rem; }
.member-coming-soon { margin: 1.5rem 0 0; padding-top: 1.2rem; color: var(--muted); border-top: 1px solid var(--line); }
.status-archived { color: #842229; background: #f7dfe0; }

.renewal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.renewal-summary div { display: grid; gap: .25rem; padding: 1rem 1.2rem; border-left: 1px solid var(--line); }
.renewal-summary div:first-child { border-left: 0; }
.renewal-summary span { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.renewal-summary strong { color: var(--cjc-indigo, #0b315d); font-size: 1.05rem; font-weight: 550; }
.renewal-panel { max-width: 56rem; }
.renewal-methods { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.renewal-method { position: relative; cursor: pointer; }
.renewal-method input { position: absolute; opacity: 0; }
.renewal-method span { display: inline-flex; min-height: 2.35rem; padding: .5rem .85rem; align-items: center; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
.renewal-method input:checked + span { color: var(--cjc-indigo, #0b315d); background: #eef3f7; border-color: var(--cjc-indigo, #0b315d); }
.renewal-method input:focus-visible + span { outline: 3px solid rgb(11 49 93 / 20%); outline-offset: 2px; }
.renewal-fields { grid-template-columns: repeat(3, max-content); align-items: end; }
.renewal-fields label { width: auto; }
.renewal-fields input { width: 12rem; }
.renewal-fields .renewal-reference { grid-column: 1 / -1; }
.renewal-fields .renewal-reference input { width: min(30rem, 100%); }
.renewal-notes { width: min(40rem, 100%); }
.renewal-notes textarea { width: 100%; min-height: 5.5rem; resize: vertical; }
.manual-receipt-option { display: grid; gap: .8rem; margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.manual-receipt-option .checkbox-card { max-width: 28rem; }
.manual-receipt-fields { display: grid; grid-template-columns: minmax(16rem, 24rem) 12rem; align-items: start; gap: 1rem; padding: .9rem 1rem; background: #f6f8f9; border: 1px solid var(--line); border-radius: 5px; }
.manual-receipt-fields input, .manual-receipt-fields select { width: 100%; }
.renewal-manual-form .form-actions { margin-top: 1.2rem; }
.renewal-card { max-width: 38rem; }
.renewal-link-form { display: grid; gap: 1rem; }
.renewal-recipient { width: min(31rem, 100%); }
.renewal-recipient input { width: 100%; }
.renewal-email-language { width: 12rem; }
.renewal-email-language select { width: 100%; }
.renewal-link-existing { margin-bottom: 1.15rem; padding: 1rem; color: var(--muted); background: #fff8e8; border: 1px solid #e5cf99; border-radius: 6px; }
.renewal-link-existing > strong { color: var(--cjc-indigo, #0b315d); font-weight: 600; }
.renewal-link-existing dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; margin: .85rem 0; }
.renewal-link-existing dl div { display: grid; gap: .12rem; }
.renewal-link-existing dt { color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.renewal-link-existing dd { margin: 0; color: var(--ink); font-size: .82rem; overflow-wrap: anywhere; }
.renewal-link-existing p { margin: 0; font-size: .78rem; line-height: 1.55; }
.stripe-payment-element { margin: 1.2rem 0; }
.stripe-express-checkout { margin: 1.2rem 0; visibility: hidden; }
.stripe-payment-divider { display: flex; align-items: center; gap: .8rem; margin: 1.15rem 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.stripe-payment-divider::before, .stripe-payment-divider::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.stripe-payment-divider span { white-space: nowrap; }
.stripe-status { min-height: 1.4rem; color: var(--muted); font-size: .8rem; }
.renewal-configuration-note, .renewal-unavailable { max-width: 46rem; padding: 1.25rem; color: var(--muted); background: #f6f8f9; border: 1px solid var(--line); border-radius: 6px; }
.renewal-configuration-note p, .renewal-unavailable p { line-height: 1.6; }
.renewal-unavailable h2 { margin: 0; color: var(--cjc-indigo, #0b315d); font-size: 1.2rem; font-weight: 550; }
.payment-link-sent { max-width: 42rem; }
.development-preview { margin-top: 1.25rem; padding: .9rem; background: #fff8e8; border-left: 3px solid var(--amber); }
.customer-renewal-heading { max-width: 52rem; margin: 0 auto 1.25rem; text-align: center; }
.customer-renewal-heading h1 { margin: .15rem 0 .45rem; color: var(--cjc-indigo, #0b315d); font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 500; }
.customer-renewal-heading p:last-child { margin: 0; color: var(--muted); }
.customer-renewal-summary { max-width: 52rem; margin-right: auto; margin-left: auto; }
.customer-renewal-details { max-width: 46rem; margin: 0 auto 1rem; padding: 1.3rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(11 49 93 / 6%); }
.customer-renewal-details h2 { margin: 0 0 1rem; color: var(--cjc-indigo, #0b315d); font-size: .76rem; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
.customer-renewal-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.customer-renewal-details dl div { display: grid; grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.2fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.customer-renewal-details dl div:nth-child(odd) { padding-right: 1.5rem; }
.customer-renewal-details dl div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.customer-renewal-details dt { color: var(--muted); font-size: .76rem; }
.customer-renewal-details dd { margin: 0; color: var(--ink); font-size: .84rem; overflow-wrap: anywhere; }
.customer-renewal-details__actions { display: flex; justify-content: flex-end; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.customer-renewal-details__paid { color: var(--green) !important; }
.customer-renewal-details__reversed { color: #315e83 !important; }
.join-membership-details { max-width: 55.2rem; }
.join-membership-details dl { border-bottom: 1px solid var(--line); }
.join-membership-details dl div.join-membership-details__wide { grid-template-columns: minmax(7.5rem, .4fr) minmax(0, 1.6fr); grid-column: 1 / -1; padding-right: 0; padding-left: 0; border-left: 0; }
.join-membership-details .customer-renewal-details__actions { border-top: 0; }
.customer-renewal-payment { max-width: 40rem; margin: 1rem auto 0; }
.customer-renewal-payment h2 { color: var(--cjc-indigo, #0b315d); }
.stripe-payment-loading { padding: 1rem 0; color: var(--muted); font-size: .85rem; }
.customer-pay-button { width: 100%; justify-content: center; margin-top: .6rem; }
.payment-success { display: flex; gap: 1rem; max-width: 42rem; margin: 1rem auto 0; padding: 1.3rem; background: #f0f7f1; border: 1px solid #bdd7c1; border-radius: 7px; }
.payment-success__icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 1.2rem; }
.payment-success h2 { margin: 0 0 .35rem; color: var(--cjc-indigo, #0b315d); font-size: 1.1rem; font-weight: 550; }
.payment-success p { margin: 0; line-height: 1.6; }
.payment-reversed { display: flex; gap: 1rem; max-width: 46rem; margin: 1rem auto 0; padding: 1.3rem; background: #edf4f8; border: 1px solid #b9cedd; border-radius: 7px; }
.payment-reversed__icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; color: white; background: #315e83; border-radius: 50%; font-size: 1.25rem; }
.payment-reversed h2 { margin: 0 0 .35rem; color: var(--cjc-indigo, #0b315d); font-size: 1.1rem; font-weight: 550; }
.payment-reversed p { margin: 0; line-height: 1.65; }
.receipt-resend-form { display: grid; grid-template-columns: minmax(14rem, 1fr) 10rem auto; align-items: end; gap: .65rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #bdd7c1; }
.receipt-resend-form label { display: grid; gap: .3rem; color: var(--muted); font-size: .72rem; }
.receipt-resend-form input, .receipt-resend-form select { width: 100%; background: white; }
.receipt-resend-form span { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.receipt-resend-notice, .receipt-resend-error { margin-top: .8rem !important; padding: .65rem .75rem; border-radius: 4px; font-size: .8rem; }
.receipt-resend-notice { color: #245631; background: #e1f0e4; }
.receipt-resend-error { color: #8a2025; background: #fce8e9; }
.renewal-detail-panel, .renewal-receipt-panel { max-width: 54rem; margin-right: auto; margin-left: auto; }
.renewal-receipt-panel { margin-top: 1rem; }
.renewal-transaction-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.renewal-transaction-details > div {
  min-width: 0;
  grid-template-columns: 150px minmax(0, 1fr);
}
.renewal-transaction-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.renewal-detail-notes { margin-top: 1.2rem; padding: 1rem; background: #f6f8f9; border: 1px solid var(--line); border-radius: 5px; }
.renewal-detail-notes h3 { margin: 0 0 .45rem; color: var(--muted); font-size: .72rem; font-weight: 550; letter-spacing: .05em; text-transform: uppercase; }
.renewal-detail-notes p { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.renewal-receipt-form { display: grid; grid-template-columns: minmax(16rem, 1fr) 12rem auto; align-items: end; gap: 1rem; margin-top: 1rem; }
.renewal-receipt-form input, .renewal-receipt-form select { width: 100%; }
.renewal-receipt-form--member { grid-template-columns: 12rem auto; justify-content: start; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-grid--dashboard { grid-template-columns: repeat(5, 1fr); }
.stat-card { display: grid; gap: .25rem; padding: 1.35rem; background: white; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 5px; }
.stat-card strong { color: var(--cjc-indigo, #0b315d); font-family: "Avenir Next", system-ui, sans-serif; font-size: 2.2rem; font-weight: 600; }
.stat-card span { color: var(--muted); font-size: .85rem; }
.stat-active { border-top-color: var(--green); }
.stat-people { border-top-color: var(--blue); }
.stat-grace { border-top-color: var(--amber); }
.stat-lapsed { border-top-color: var(--red); }

.panel { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 5px; }
.panel h2, .danger-zone h2 { margin: 0 0 1.25rem; font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; }
.panel-heading a:not(.button) { font-size: .85rem; }
.type-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.type-counts div { display: flex; justify-content: space-between; padding: .7rem 1.2rem; border-left: 1px solid var(--line); }
.type-counts div:first-child { border-left: 0; }
.type-counts dt { color: var(--muted); }
.type-counts dd { margin: 0; font-weight: 600; }
.activity-panel { margin-top: 1.25rem; }
.activity-panel__heading { align-items: flex-end; margin-bottom: .45rem; }
.activity-panel__heading h2 { margin: .18rem 0 0; }
.activity-panel__intro { margin: 0 0 1rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.activity-needs-action-count {
  display: inline-flex;
  min-height: 1.7rem;
  padding: .25rem .55rem;
  align-items: center;
  color: #7b4310;
  background: #fff0d7;
  border: 1px solid #e7c58d;
  border-radius: 999px;
  font-size: .7rem;
}
.activity-list { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.activity-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(12rem, 1fr) minmax(16rem, 1.4fr) auto;
  align-items: center;
  gap: .8rem 1rem;
  padding: .85rem 1rem;
  background: white;
  border-top: 1px solid var(--line);
}
.activity-row:first-child { border-top: 0; }
.activity-row--needs-action { background: #fff8eb; box-shadow: inset 4px 0 #c27a14; }
.activity-row__time { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.activity-row__member { min-width: 0; }
.activity-row__affected { display: block; margin-top: .28rem; color: var(--muted); font-size: .64rem; line-height: 1.25; }
.activity-row__affected small { display: inline; margin-left: .2rem; font-size: inherit; }
.activity-row__event { display: grid; min-width: 0; gap: .18rem; font-size: .8rem; }
.activity-row__event > a { color: var(--ink); font-weight: 500; text-decoration: none; }
.activity-row__event > a:hover { color: var(--red); text-decoration: underline; }
.activity-row__summary span,
.activity-row__summary small { display: block; }
.activity-row__summary small { margin-top: .12rem; color: var(--muted); font-size: .68rem; font-weight: 400; }
.activity-row__event > small { color: var(--muted); font-size: .66rem; }
.activity-source { display: inline-flex; margin-left: .35rem; padding: .12rem .38rem; border-radius: 999px; }
.activity-source--self-service { color: #285c45; background: #e3f0e8; }
.activity-row__resolution { margin-top: .2rem; color: #315b48; font-size: .68rem; line-height: 1.4; }
.activity-row__status { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .45rem; }
.activity-status { display: inline-flex; padding: .24rem .46rem; color: #536273; background: #edf0ee; border-radius: 999px; font-size: .64rem; white-space: nowrap; }
.activity-status--needs-action { color: #7b4310; background: #ffe6bc; }
.activity-status--actioned { color: #285c45; background: #e3f0e8; }
.activity-dialog label { display: grid; gap: .35rem; margin-top: 1rem; color: var(--muted); font-size: .75rem; }
.activity-dialog textarea { width: 100%; resize: vertical; }
.activity-details-dialog { width: min(48rem, calc(100% - 2rem)); }
.activity-details-dialog__summary-ja { margin-top: -.35rem !important; font-size: .78rem; }
.activity-event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 1rem 0 0;
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: .45rem;
}
.activity-event-meta div {
  min-width: 0;
  padding: .7rem .8rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.activity-event-meta div:nth-child(-n + 2) { border-top: 0; }
.activity-event-meta div:nth-child(odd) { border-left: 0; }
.activity-event-meta dt {
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.activity-event-meta dd {
  min-width: 0;
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .78rem;
}
.activity-change-table {
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .45rem;
}
.activity-change-table__row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.05fr) minmax(8rem, 1fr) minmax(8rem, 1fr);
  border-top: 1px solid var(--line);
}
.activity-change-table__row:first-child { border-top: 0; }
.activity-change-table__row > span {
  min-width: 0;
  padding: .65rem .75rem;
  overflow-wrap: anywhere;
  font-size: .76rem;
  line-height: 1.35;
}
.activity-change-table__row > span + span { border-left: 1px solid var(--line); }
.activity-change-table__row small {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .66rem;
}
.activity-change-table__heading { color: #51606e; background: #f1f3f2; font-weight: 600; }
.activity-change-table__new-value { color: var(--cjc-indigo, #0b315d); background: #f7fafc; }
.activity-change-table__row--detail { grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.4fr); }

.search { display: flex; gap: .6rem; margin-bottom: 1rem; }
.search input { flex: 1; }
.directory-filters { flex-wrap: wrap; align-items: center; }
.search .directory-search-input { width: min(16rem, 100%); flex: 0 1 16rem; }
.directory-sort-switch {
  display: inline-flex;
  padding: .18rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #eef0ed;
  gap: .12rem;
}
.directory-sort-switch button {
  min-height: 1.75rem;
  padding: .28rem .55rem;
  border: 0;
  border-radius: .38rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .66rem;
  font-weight: 550;
}
.directory-sort-switch button:hover,
.directory-sort-switch button:focus-visible {
  color: var(--cjc-indigo, #0b315d);
  outline: none;
}
.directory-sort-switch button:focus-visible {
  box-shadow: 0 0 0 3px rgb(47 111 143 / 18%);
}
.directory-sort-switch button.is-active {
  color: var(--cjc-indigo, #0b315d);
  background: white;
  box-shadow: 0 1px 4px rgb(31 48 57 / 12%);
}
.directory-chip-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; border: 0; }
.directory-filter-chip {
  position: relative;
  display: inline-flex;
  min-height: 2rem;
  padding: .32rem .58rem;
  color: #426052;
  background: white;
  border: 1px solid #b8d3c3;
  border-radius: 999px;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.2;
}
.directory-filter-chip:hover { border-color: var(--green); }
.directory-filter-chip:has(input:checked) { color: #244f3d; background: #e7f2eb; border-color: #8db69d; }
.directory-filter-chip:focus-within { outline: 3px solid rgb(66 107 89 / 18%); outline-offset: 1px; }
.directory-filter-chip input { position: absolute; width: 1px; min-height: 1px; margin: 0; opacity: 0; }
.directory-school-filter-button {
  display: inline-flex;
  min-height: 2rem;
  padding: .32rem .58rem;
  color: #2e526c;
  background: white;
  border: 1px solid #b9ccd9;
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.2;
}
.directory-school-filter-button:hover { border-color: var(--blue); }
.directory-school-filter-button:focus-visible { outline: 3px solid rgb(47 111 143 / 18%); outline-offset: 1px; }
.directory-school-filter-button > svg { width: .65rem; height: .45rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.directory-filter-count {
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  place-items: center;
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
}
.filter-dialog {
  width: min(43rem, calc(100% - 2rem));
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: white;
  box-shadow: 0 1.5rem 4rem rgb(20 28 34 / 25%);
}
.filter-dialog::backdrop { background: rgb(11 49 93 / 42%); backdrop-filter: blur(2px); }
.filter-dialog__content { padding: 1.5rem; }
.filter-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.filter-dialog__heading .eyebrow { margin: 0 0 .15rem; color: var(--red); }
.filter-dialog__heading h2 { margin: 0; color: var(--cjc-indigo, #0b315d); font-size: 1.25rem; font-weight: 600; }
.filter-dialog__close {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.filter-dialog__close:hover { color: var(--ink); background: #f0f2ef; }
.filter-dialog__introduction { margin: .65rem 0 1.2rem; color: var(--muted); font-size: .8rem; }
.school-filter-groups { display: grid; gap: .9rem; }
.school-filter-group { padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: #fbfcfa; }
.school-filter-group__heading { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.school-filter-group__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: white;
  background: var(--cjc-indigo, #0b315d);
  border-radius: .5rem;
  place-items: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: .9rem;
}
.school-filter-group__heading h3 { margin: 0; color: var(--cjc-indigo, #0b315d); font-size: .85rem; font-weight: 600; }
.school-filter-group__heading div > span { display: block; color: var(--muted); font-size: .68rem; }
.school-filter-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .55rem; }
.school-filter-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  padding: .7rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: .45rem;
  cursor: pointer;
}
.school-filter-option:hover { border-color: #9ab8a8; }
.school-filter-option:has(input:checked) { background: #edf6f1; border-color: #8db69d; box-shadow: inset 3px 0 #426b59; }
.school-filter-option input { width: 1rem; min-height: 1rem; margin: 0; accent-color: var(--green); }
.school-filter-option span { display: grid; gap: .05rem; }
.school-filter-option strong { color: var(--ink); font-size: .75rem; font-weight: 550; }
.school-filter-option small { color: var(--muted); font-size: .65rem; }
.filter-dialog__actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.directory-filter-clear { min-height: 34px; }
.directory-filter-status { min-width: 5rem; color: var(--muted); font-size: .72rem; }
[data-directory-results][aria-busy="true"] { opacity: .55; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: white; }
table { width: 100%; border-collapse: collapse; }
th { padding: .8rem 1rem; color: var(--muted); background: #eeefec; text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
td { padding: 1rem; border-top: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
td small { display: block; margin-top: .2rem; color: var(--muted); }
.table-action { text-align: right; }
.table-row-actions { display: flex; justify-content: flex-end; gap: .45rem; }
.empty { padding: 2rem; color: var(--muted); text-align: center; }

.status { display: inline-flex; padding: .25rem .5rem; border-radius: 999px; color: #465057; background: #e6e8e7; font-size: .7rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.status-active, .status-successful { color: #165639; background: #dff1e6; }
.status-grace { color: #754e09; background: #f8eccf; }
.status-pending_payment { color: #68440b; background: #f7e7bd; }
.status-lapsed, .status-declined { color: #842229; background: #f7dfe0; }
.status-refunded, .status-reversed { color: #315e83; background: #e1edf6; }
.payment-card { display: inline-flex; align-items: center; gap: .45rem; }
.card-brand-logo { display: inline-flex; width: 2.6rem; height: 1.6rem; overflow: hidden; border: 1px solid rgb(35 43 45 / 14%); border-radius: .25rem; background: white; box-shadow: 0 1px 2px rgb(35 43 45 / 8%); vertical-align: middle; }
.card-brand-logo svg { display: block; width: 100%; height: 100%; }
.reversal-preview { display: grid; gap: .55rem; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: 5px; background: #f6f8f9; }
.reversal-preview div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.reversal-preview dt { color: var(--muted); font-size: .76rem; }
.reversal-preview dd { margin: 0; font-size: .82rem; }

.record-form { display: grid; gap: 1.15rem; }
.record-form fieldset { margin: 0; padding: 0 1.25rem 1rem; border: 1px solid var(--line); border-radius: 5px; background: white; }
.compact-form { margin: 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 5px; background: white; }
.record-form fieldset.form-section--action { position: relative; }
.form-section__actions { position: absolute; top: .45rem; right: .75rem; z-index: 2; display: flex; justify-content: flex-end; }
.compact-form .stripe-fields { margin-top: 1.25rem; background: #f7f8f6; }
.record-form legend {
  float: left;
  box-sizing: border-box;
  width: calc(100% + 2.5rem);
  min-height: 3rem;
  margin: 0 -1.25rem .9rem;
  padding: .82rem 1.25rem .72rem;
  background: #f5f6f3;
  border-bottom: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  font-size: .78rem;
  font-weight: 550;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.record-form .form-section--action > legend { padding-right: 11rem; }
.record-form fieldset > :not(legend, .form-section__actions) { clear: both; }
.form-grid { display: grid; gap: .7rem 1rem; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 22rem)); }
.form-grid-content {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
}
.person-details-grid { display: grid; gap: .7rem; }
.person-name-row { flex-wrap: nowrap; }
.form-span-2 { grid-column: 1 / -1; }
label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 500; }
input, select, textarea { width: 100%; color: var(--ink); background: white; border: 1px solid #b8bcbb; border-radius: 4px; font-size: .88rem; }
input:not([type="checkbox"], [type="radio"]), select { height: 42px; min-height: 42px; padding: .5rem .7rem; line-height: 1.2; }
textarea { min-height: 7rem; padding: .6rem .7rem; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(169 37 42 / 15%); border-color: var(--red); }
.field-membership-type { width: 12rem; }
#join-membership-details { scroll-margin-top: 1.5rem; }
.membership-type-choice {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}
.membership-type-description {
  min-height: 4.15rem;
  padding: .75rem .9rem;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  background: #f7fafb;
}
.membership-type-description > div {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.membership-type-description__icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #47708f;
}
.membership-type-description__icon--family { background: #397862; }
.membership-type-description__icon--corporate { background: #69548f; }
.membership-type-description__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.membership-type-description p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.membership-type-description strong {
  display: block;
  margin-bottom: .12rem;
  color: var(--cjc-indigo, #0b315d);
  font-size: .82rem;
}
.field-title { width: 8rem; }
.field-date { width: 12rem; }
.field-name { width: min(22rem, 100%); }
.optional-name-field { width: min(22rem, 100%); }
.optional-name-field .field-name { width: 100%; }
.optional-name-toggle {
  display: inline-flex;
  min-height: 32px;
  margin: auto 0 .3rem;
  padding: .35rem .7rem;
  align-items: center;
  gap: .35rem;
  color: var(--cjc-lake, #2f6f8f);
  background: #f7fafb;
  border: 1px dashed rgb(47 111 143 / 42%);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}
.optional-name-toggle span {
  font-size: 1rem;
  font-weight: 400;
  line-height: .8;
}
.optional-name-toggle:hover {
  color: var(--cjc-indigo, #0b315d);
  background: #edf5f8;
  border-color: var(--cjc-lake, #2f6f8f);
}
.optional-name-toggle:focus-visible {
  outline: 3px solid rgb(47 111 143 / 18%);
  outline-offset: 2px;
}
[data-public-join-form] .person-name-row > .optional-name-toggle {
  align-self: flex-start;
  min-height: 42px;
  margin: calc(1.42rem + 2px) 0 0;
}
.japanese-name-field {
  display: grid;
  gap: .4rem;
}
.japanese-name-field__label { display: block; }
.japanese-name-composite {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 42px;
  overflow: hidden;
  background: white;
  border: 1px solid #b8bcbb;
  border-radius: 4px;
  transition: grid-template-columns .18s ease;
}
.japanese-name-composite:has(.furigana-guide:not([hidden])) {
  grid-template-columns: minmax(0, 2fr) minmax(10rem, 3fr);
}
.japanese-name-composite:focus-within {
  outline: 3px solid rgb(169 37 42 / 15%);
  border-color: var(--red);
}
.japanese-name-composite > .japanese-name-composite__name:not([type="checkbox"], [type="radio"]) {
  height: 40px;
  min-height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.japanese-name-composite input:focus { outline: 0; }
.furigana-guide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 .35rem 0 .5rem;
  color: var(--muted);
  background: #f5f7f6;
  border-left: 1px solid #d0d5d2;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.furigana-guide[hidden] { display: none; }
.furigana-guide input:not([type="checkbox"], [type="radio"]) {
  height: 38px;
  min-height: 38px;
  min-width: 0;
  padding: .3rem .2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .76rem;
}
.has-field-validation-tooltip { position: relative; }
.field-validation-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + .42rem);
  right: 0;
  width: max-content;
  max-width: min(19rem, 92vw);
  padding: .48rem .65rem;
  color: white;
  background: #7d2027;
  border: 1px solid #67181e;
  border-radius: .35rem;
  box-shadow: 0 4px 12px rgb(35 43 45 / 18%);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.35;
}
.field-validation-tooltip::before {
  position: absolute;
  top: -.32rem;
  right: 1rem;
  width: .58rem;
  height: .58rem;
  content: "";
  background: #7d2027;
  border-top: 1px solid #67181e;
  border-left: 1px solid #67181e;
  transform: rotate(45deg);
}
.family-relationship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 49rem; gap: 1rem; align-items: start; }
.field-family-relationship, .field-household-relationship { width: 100%; }
.field-family-relationship select, .field-household-relationship select { width: 100%; }
.family-relationship-grid .household-relationship-fields { margin-top: 0; }
.household-relationship-fields { margin-top: .75rem; }
.field-email { width: min(32rem, 100%); }
.field-phone { width: min(20rem, 100%); }
.field-long { width: min(38rem, 100%); grid-column: 1 / -1; }
.photo-upload-field { display: grid; gap: .4rem; font-size: .82rem; font-weight: 500; }
.photo-upload-field__label { display: block; }
.photo-upload-control { display: flex; align-items: center; gap: .85rem; }
.photo-upload-preview {
  display: grid;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cjc-mist, #edf1ee);
  place-items: center;
}
.photo-upload-preview img { display: block; width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.photo-upload-preview--empty { display: grid; place-items: center; color: var(--muted); font-size: .68rem; font-weight: 400; }
.photo-upload-preview--removed { opacity: .35; }
.photo-upload-actions { display: grid; justify-items: start; gap: .45rem; }
.photo-upload-button { position: relative; overflow: hidden; }
.photo-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.photo-remove { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 400; cursor: pointer; }
.photo-remove input { width: 1rem; min-height: 1rem; accent-color: var(--red); }
.photo-upload-guidance { display: block; max-width: 42rem; line-height: 1.45; }
.person-photo-placeholder--icon {
  display: grid;
  width: 100%;
  height: 100%;
  color: var(--cjc-indigo, #0b315d);
  place-items: center;
}
.person-photo-placeholder--icon svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}
.photo-upload-preview .person-photo-placeholder--icon { grid-area: 1 / 1; }
[data-person-photo-zoom] { cursor: zoom-in; }
[data-person-photo-zoom]:focus-visible {
  outline: 3px solid rgb(17 91 157 / 35%);
  outline-offset: 3px;
}
.person-photo-lightbox {
  width: min(46rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  overflow: visible;
  background: transparent;
  border: 0;
}
.person-photo-lightbox::backdrop {
  background: rgb(5 20 36 / 78%);
  backdrop-filter: blur(3px);
}
.person-photo-lightbox__image {
  display: block;
  width: min(42rem, calc(100vw - 4rem), calc(100dvh - 4rem));
  height: min(42rem, calc(100vw - 4rem), calc(100dvh - 4rem));
  margin: auto;
  object-fit: cover;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 22px 70px rgb(0 0 0 / 40%);
}
.person-photo-lightbox__close {
  position: absolute;
  top: .25rem;
  right: .25rem;
  display: grid;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  color: var(--cjc-indigo, #0b315d);
  background: white;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 15px rgb(0 0 0 / 25%);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}
.photo-editor-dialog {
  width: min(42rem, calc(100vw - 2rem));
  height: min(46rem, calc(100dvh - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgb(8 28 47 / 28%);
}
.photo-editor-dialog::backdrop { background: rgb(8 28 47 / 62%); backdrop-filter: blur(2px); }
.photo-editor {
  display: grid;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: .8rem;
  padding: 1rem 1.25rem;
}
.photo-editor__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.photo-editor__heading h2 { margin: .15rem 0 0; font-size: 1.35rem; }
.photo-editor__heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.photo-editor__heading .eyebrow { margin: 0; color: var(--red); }
.photo-editor__close {
  display: grid;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}
.photo-editor__close:hover { color: var(--ink); background: #f0f2ef; }
.photo-editor__instructions { display: block; padding: .65rem .85rem; background: #f5f7f4; border-radius: 6px; }
.photo-editor__instructions p { margin: 0; color: #4f5755; font-size: .8rem; line-height: 1.45; }
.photo-editor__stage {
  width: auto;
  height: min(100%, 28rem);
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  background: #182229;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  justify-self: center;
}
.photo-editor__stage:active { cursor: grabbing; }
.photo-editor__stage canvas { display: block; width: 100%; height: 100%; }
.photo-editor__zoom { grid-template-columns: auto minmax(10rem, 1fr); align-items: center; gap: .9rem; font-size: .78rem; }
.photo-editor__zoom input { height: auto; min-height: 1.5rem; padding: 0; accent-color: var(--red); }
.photo-editor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.photo-editor__action-spacer { flex: 1 1 auto; }
.iti { width: 100%; }
input[type="date"]::-webkit-calendar-picker-indicator {
  width: 1.35rem;
  height: 1.35rem;
  padding: .15rem;
  cursor: pointer;
}
.corporate-fields { margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.corporate-fields[hidden] { display: none; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem 1rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; background: #f7f7f4; border-radius: 4px; }
.check input { width: 18px; min-height: 18px; accent-color: var(--red); }
.communication-option { align-items: flex-start; }
.communication-option > span { display: grid; gap: .18rem; }
.communication-option strong { color: var(--ink); font-size: .82rem; font-weight: 550; }
.communication-option small { color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.4; }
.social-account-editor { margin-top: .35rem; }
.social-account-list { display: grid; gap: .65rem; }
.social-account-row { display: grid; grid-template-columns: 12rem minmax(16rem, 1fr) auto; align-items: end; gap: .65rem; padding: .6rem; background: #f7f8f6; border: 1px solid var(--line); border-radius: 5px; }
.social-account-provider,
.social-account-url { min-width: 0; }
.social-account-remove { margin-bottom: .25rem; }
.social-account-empty { display: flex; min-height: 2rem; margin: 0; align-items: center; color: var(--muted); font-size: .82rem; }
.directory-opt-in { display: flex; max-width: 52rem; align-items: flex-start; gap: .7rem; padding: .65rem .8rem; background: #f7f8f6; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.directory-opt-in input { width: 19px; min-height: 19px; margin-top: .1rem; flex: 0 0 auto; accent-color: var(--cjc-indigo, #0b315d); }
.directory-opt-in span { display: grid; gap: .25rem; }
.directory-opt-in strong { color: var(--ink); font-size: .86rem; font-weight: 500; }
.directory-opt-in small { color: var(--muted); font-size: .74rem; font-weight: 400; line-height: 1.45; }
.directory-publication-fields { display: grid; gap: .65rem; max-width: 52rem; margin: .75rem 0 0 1rem; padding: .8rem 1rem; border-left: 3px solid var(--line); }
.directory-publication-fields .check { display: flex; align-items: center; gap: .5rem; }
.directory-publication-fields .check small { margin-left: auto; color: var(--muted); }
.directory-publication-fields.is-disabled { opacity: .55; }
.directory-bio-field textarea { min-height: 6rem; resize: vertical; }
.directory-social-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.directory-social-options { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.directory-social-option { position: relative; display: inline-grid; cursor: pointer; place-items: center; }
.directory-social-option input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.directory-social-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid #d7dcdf; border-radius: 50%; color: #98a1aa; background: #f3f4f2; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.directory-social-icon svg { width: 1rem; height: 1rem; fill: currentColor; }
.directory-social-option input:checked + .directory-social-icon { color: white; background: var(--cjc-indigo, #0b315d); border-color: var(--cjc-indigo, #0b315d); }
.directory-social-option input:focus-visible + .directory-social-icon { outline: 3px solid rgb(47 111 143 / 22%); outline-offset: 2px; }
.directory-social-option input:disabled + .directory-social-icon { cursor: not-allowed; opacity: .45; }
.visually-hidden { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; clip: rect(0 0 0 0); white-space: nowrap; }
.form-actions { justify-content: flex-end; margin-top: .4rem; }
.compact-form { max-width: 760px; }
.additional-details { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 5px; background: white; }
.additional-details > summary { padding: .8rem 1.25rem; color: var(--cjc-indigo, #0b315d); cursor: pointer; font-size: .88rem; font-weight: 600; letter-spacing: .03em; }
.additional-details[open] > summary { border-bottom: 1px solid var(--line); }
.additional-details__body { display: grid; gap: 1rem; padding: 1rem 1.25rem; }
.membership-notes { min-width: 0; }
.membership-notes h2 { margin: 0 0 .4rem; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.note-form { display: grid; max-width: 48rem; gap: .75rem; margin-top: 1rem; }
.note-form[hidden] { display: none; }
.note-form__actions { display: flex; gap: .5rem; justify-content: flex-end; }
.note-editor-toggle { margin-top: 0; }
.notes-list { display: grid; gap: .75rem; max-width: 48rem; margin-top: 1rem; }
.membership-note { padding: 1rem; border-left: 3px solid var(--cjc-lake, #2f6f8f); background: #f7f8f6; }
.membership-note__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .72rem; }
.membership-note p { margin: .65rem 0 0; line-height: 1.55; white-space: pre-wrap; }
.membership-note--draft { border-left-color: var(--cjc-eucalyptus, #426b59); }
.membership-note--draft label { margin-top: .75rem; }
.membership-note__delete { margin: -.25rem 0 -.25rem auto; }
.membership-note__delete .button-row { font-size: .72rem; }
.additional-details__bank-name { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.empty-compact { padding: 1rem; }

.membership-person { margin: 0; }
.membership-person .person-card__photo {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--cjc-border, #d9ded9);
  border-radius: 50%;
  background: var(--cjc-mist, #edf1ee);
  place-items: center;
}
.person-photo-placeholder { color: var(--cjc-indigo, #0b315d); }
.membership-person__heading { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: .35rem; }
.membership-person__heading > h3 { min-width: 0; flex: 0 1 auto; }
.membership-person__name { color: inherit; text-decoration: none; }
.person-card__name--ja ruby { ruby-position: over; }
.person-card__name--ja rt {
  color: var(--muted);
  font-size: .52em;
  font-weight: 500;
  letter-spacing: .06em;
}
.membership-person__name:hover .person-card__name--en { color: var(--cjc-vermilion, #c92f42); }
.membership-person__organization { margin: .25rem 0 0; color: var(--muted); font-size: .7rem; }
.membership-person__heading .person-card__links {
  display: flex;
  align-items: center;
  align-content: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 5.5rem;
  min-width: 5.5rem;
  margin: 0;
  gap: .25rem;
}
.membership-list-person { width: 30%; min-width: 18.5rem; }
.membership-list-attributes { width: 27%; min-width: 15.5rem; }
.membership-directory .directory-index-column {
  box-sizing: border-box;
  width: 2.8rem;
  min-width: 2.8rem;
  padding-right: .3rem;
  padding-left: .6rem;
  text-align: center;
}
.membership-directory td.directory-index-column {
  border-right: 1px solid #eef1ee;
  color: #557181;
  background: #fbfcfa;
  vertical-align: top;
}
.membership-directory .directory-index-column > span:not(.sr-only) {
  display: inline-block;
  padding-top: .18rem;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .04em;
}
.membership-directory tr[data-member-role="PRIMARY"]:not(:first-child) td {
  border-top-width: 1px;
  border-top-color: var(--line);
}
.membership-directory tr[data-directory-index-start="true"]:not(:first-child) td {
  border-top-color: #c9d4d8;
  box-shadow: inset 0 2px 0 #f6f8f6;
}
.membership-directory tr:not([data-directory-index-start="true"]) td.directory-index-column {
  border-top-color: transparent;
}
.membership-directory tr[data-member-role="PRIMARY"][data-has-subsidiaries="true"] .membership-person {
  position: relative;
}
.membership-directory tr[data-member-role="PRIMARY"][data-has-subsidiaries="true"] .membership-person::after {
  position: absolute;
  top: calc(3.25rem - 1px);
  bottom: -1rem;
  left: 1.625rem;
  z-index: 0;
  border-left: 1.5px solid #aebdc5;
  content: "";
  transform: translateX(-50%);
}
.membership-directory tr[data-member-role="PRIMARY"][data-has-subsidiaries="true"] .person-card__photo {
  position: relative;
  z-index: 1;
}
.membership-directory tr:not([data-member-role="PRIMARY"]) .membership-person {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 1.625rem);
  margin-left: 1.625rem;
  padding-left: 1.35rem;
}
.membership-directory tr:not([data-member-role="PRIMARY"]) .membership-person::before {
  position: absolute;
  top: -1rem;
  bottom: -1rem;
  left: 0;
  border-left: 1.5px solid #aebdc5;
  content: "";
  transform: translateX(-50%);
}
.membership-directory tr[data-tree-last-child="true"] .membership-person::before {
  bottom: 50%;
}
.membership-directory tr:not([data-member-role="PRIMARY"]) .membership-person::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.35rem;
  border-top: 1.5px solid #aebdc5;
  content: "";
}
.membership-directory .person-card__title {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .18rem;
  padding: .12rem .42rem;
  border-radius: 999px;
  color: #315e71;
  background: #e4edf4;
}
.membership-directory tr[data-member-role="CORPORATE_CONTACT"] .person-card__title {
  color: #315e71;
  background: #e4f0f4;
}
.membership-directory tr[data-member-role="FAMILY_MEMBER"] .person-card__title {
  color: #6d5726;
  background: #f5eedb;
}
.membership-directory tr[data-member-relationship="SPOUSE"] .person-card__title {
  color: #76465f;
  background: #f5e8ef;
}
.membership-directory tr[data-member-relationship="CHILD"] .person-card__title {
  color: #37634d;
  background: #e5f1e9;
}

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.25rem; background: #272c2f; color: white; border-radius: 5px; }
.summary-strip div { display: grid; gap: .35rem; padding: 1.1rem 1.3rem; border-left: 1px solid rgb(255 255 255 / 14%); }
.summary-strip div:first-child { border-left: 0; }
.summary-strip div > span { color: #c7ccce; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.summary-strip strong { font-weight: 600; }
.summary-strip .status { justify-self: start; }
.summary-strip .summary-expiry--past { color: var(--cjc-vermilion, #c92f42); }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; }
.detail-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.membership-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.detail-group {
  min-width: 0;
  margin: 0;
  padding: 0 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.detail-group legend {
  float: left;
  box-sizing: border-box;
  width: calc(100% + 3rem);
  min-height: 3rem;
  margin: 0 -1.5rem .95rem;
  padding: .82rem 1.5rem .72rem;
  color: var(--ink);
  background: #f5f6f3;
  border-bottom: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  font-size: .78rem;
  font-weight: 550;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.detail-group > :not(legend, .detail-group__actions) { clear: both; }
.detail-group--primary { grid-column: 1 / -1; }
.member-attributes-panel { grid-column: 1 / -1; }
.detail-group--action { position: relative; margin-top: 1.25rem; }
.detail-group--action > legend { padding-right: 12rem; }
.detail-group__actions { position: absolute; top: .45rem; right: .75rem; z-index: 2; display: flex; justify-content: flex-end; }
.primary-member-content { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto minmax(15rem, auto); gap: .65rem; align-items: center; }
.details-review-request { display: flex; justify-content: flex-end; padding-left: .7rem; }
.details--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 2rem; }
.details.details--primary div { grid-template-columns: 7rem minmax(0, 1fr); }
.details--primary dd { min-width: 0; overflow-wrap: anywhere; }
.details { display: grid; gap: .9rem; margin: 0; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; }
.details dt { color: var(--muted); font-size: .8rem; }
.details dd { margin: 0; font-size: .9rem; }
.details dd small { display: block; color: var(--muted); }
.primary-member-contact { display: grid; justify-items: start; min-width: 0; gap: .2rem; font-size: .88rem; }
.primary-member-contact > a { overflow-wrap: anywhere; }
.contact-text-link { color: inherit; text-decoration: none; }
.contact-text-link:hover,
.contact-text-link:focus-visible { color: var(--red); text-decoration: underline; }
.contact-empty { color: var(--muted); }
.contact-text-link--email-warning { color: #842229; font-weight: 500; text-decoration: underline; text-decoration-style: dotted; }
.email-delivery-marker {
  position: relative;
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  color: #855700;
  background: #fff3d6;
  border: 1px solid #e8c56e;
  border-radius: 50%;
  place-items: center;
}
.email-delivery-marker--needs_review { color: #842229; background: #fae7e8; border-color: #dda9ac; }
.email-delivery-marker svg { width: .82rem; height: .82rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.email-delivery-marker::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .35rem);
  z-index: 30;
  width: max-content;
  max-width: 13rem;
  padding: .3rem .48rem;
  color: white;
  background: var(--ink);
  border-radius: .3rem;
  content: attr(data-tooltip);
  font-size: .68rem;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  visibility: hidden;
}
.email-delivery-marker:hover::after,
.email-delivery-marker:focus-visible::after { opacity: 1; visibility: visible; }
.email-delivery-health {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  width: min(100%, 31rem);
  margin-top: .45rem;
  padding: .65rem .75rem;
  color: #694a12;
  background: #fff8e6;
  border: 1px solid #ead39a;
  border-radius: .45rem;
  font-size: .72rem;
  line-height: 1.45;
}
.email-delivery-health--needs_review { color: #74242a; background: #fff0f0; border-color: #e2b3b6; }
.email-delivery-health > svg { width: 1.05rem; height: 1.05rem; margin-top: .05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.email-delivery-health strong { display: block; font-weight: 600; }
.email-delivery-health p { margin: .12rem 0 0; color: inherit; font-size: inherit; }
.email-delivery-health__reason { opacity: .78; overflow-wrap: anywhere; }
.field-email-delivery-warning { display: block; margin-top: .35rem; color: #842229; font-size: .7rem; font-weight: 400; line-height: 1.4; }
.primary-member-organization { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .45rem; margin-top: .2rem; }
.primary-member-organization > span:first-child { color: var(--muted); font-size: .72rem; }
.primary-member-organization small { display: block; color: var(--muted); }
.indicator-chip--privilege { padding: .2rem .45rem; border-radius: 999px; color: #513f72; background: #f0ebf7; border: 1px solid #d2c5e3; font-size: .66rem; }
.privilege-list { display: grid; max-width: 46rem; gap: .55rem; }
.privilege-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .65rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfa; cursor: pointer; }
.privilege-option input { width: 1rem; height: 1rem; margin-top: .12rem; }
.privilege-option span { display: grid; gap: .12rem; }
.privilege-option strong { color: var(--cjc-indigo, #0b315d); font-size: .82rem; font-weight: 550; }
.privilege-option small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.privilege-option--required { background: #f2f5f1; cursor: default; }
.last-login {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  text-align: right;
}
.last-login > span:first-child { color: var(--ink); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.last-login__timestamp { position: relative; cursor: help; }
.last-login__timestamp::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + .35rem);
  z-index: 20;
  width: max-content;
  max-width: 14rem;
  padding: .3rem .48rem;
  color: white;
  background: var(--ink);
  border-radius: .3rem;
  box-shadow: 0 .3rem 1rem rgb(35 43 45 / 18%);
  content: attr(data-tooltip);
  font-size: .68rem;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  visibility: hidden;
}
.last-login__timestamp:hover::after,
.last-login__timestamp:focus-visible::after { opacity: 1; visibility: visible; }
.indicator-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 1.8rem;
  padding: .28rem .55rem;
  color: #244f3d;
  background: #e7f2eb;
  border: 1px solid #b8d3c3;
  border-radius: 999px;
  font-size: .7rem;
  line-height: 1.2;
}
.indicator-chip--communication { color: #24506a; background: #e7f1f7; border-color: #b8cfdd; }
.indicator-chip--directory { color: #3d416d; background: #ececf7; border-color: #c4c5df; }
.indicator-chip__icon { display: inline-grid; width: 1rem; height: 1rem; flex: 0 0 auto; place-items: center; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: .78rem; font-weight: 400; line-height: 1; }
.indicator-chip__icon svg { display: block; width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.indicator-empty { align-self: center; color: var(--muted); font-size: .75rem; }
.preference-note { margin: .6rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.indicator-list--compact { gap: .3rem; }
.indicator-list--compact .indicator-chip { min-height: 1.55rem; padding: .2rem .42rem; font-size: .64rem; }
.member-attributes { min-width: 0; }
.member-attributes--ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem 1rem; }
.member-attributes--detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.attribute-group { display: inline-grid; grid-template-columns: 1.4rem minmax(0, auto); align-items: center; gap: .42rem; min-width: 0; color: var(--ink); font-size: .72rem; line-height: 1.4; }
.member-attributes--detail .attribute-group { grid-template-columns: 1.55rem minmax(7.8rem, .7fr) minmax(0, 1.3fr); padding: .65rem 0; border-top: 1px solid var(--line); font-size: .78rem; }
.member-attributes--detail .attribute-group:nth-child(-n+2) { border-top: 0; }
.attribute-group__icon { position: relative; display: inline-grid; width: 1.4rem; height: 1.4rem; flex: 0 0 auto; border-radius: 50%; place-items: center; cursor: help; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: .7rem; font-weight: 400; line-height: 1; }
.member-attributes--detail .attribute-group__icon { width: 1.55rem; height: 1.55rem; }
.attribute-group__icon svg { display: block; width: .82rem; height: .82rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.attribute-group__icon--communication { color: #2b6382; background: #e7f1f7; }
.attribute-group__icon--school { color: #32634b; background: #e7f2eb; }
.attribute-group__icon--directory { color: #1f548f; background: #dce9f8; box-shadow: inset 0 0 0 1px #bfd2eb; }
.attribute-group__icon--privilege { color: #783e86; background: #f1e1f4; box-shadow: inset 0 0 0 1px #ddbee4; }
.attribute-group__icon::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .38rem);
  z-index: 40;
  width: max-content;
  max-width: 13rem;
  padding: .32rem .5rem;
  color: white;
  background: var(--ink);
  border-radius: .3rem;
  box-shadow: 0 .3rem 1rem rgb(35 43 45 / 18%);
  content: attr(data-tooltip);
  font-family: "Avenir Next", system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateX(-50%);
  visibility: hidden;
}
.attribute-group__icon:hover::after,
.attribute-group__icon:focus-visible::after { opacity: 1; visibility: visible; }
.attribute-group__label { color: var(--muted); font-size: .72rem; }
.attribute-group__values { display: inline-flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 0; }
.attribute-group__values > span { white-space: nowrap; }
.attribute-group__values > span:not(:last-child)::after { margin: 0 .36rem; color: #a1a8a5; content: "·"; }
.attribute-group__empty, .member-attributes__empty { color: var(--muted); }
.member-attributes--ribbon .attribute-group__empty { display: none; }
.section-space { margin-top: 1.25rem; }
.family-members-section { margin-top: 2rem; }
.people-list { display: grid; grid-template-columns: max-content minmax(14rem, 1fr) minmax(11rem, auto) minmax(11rem, auto) auto; gap: .65rem 0; }
.person-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #f7f9f7;
}
.person-row small { display: block; margin-top: .2rem; color: var(--muted); }
.person-row.archived > .membership-person,
.person-row.archived > .family-member-contact,
.person-row.archived > .family-member-indicators,
.person-row.archived > .last-login { opacity: .55; }
.family-member-contact { display: grid; justify-items: start; gap: .2rem; min-width: 0; font-size: .85rem; }
.family-member-contact a { min-width: 0; overflow-wrap: anywhere; }
.family-member-indicators { align-content: center; min-width: 0; }
.row-actions { display: flex; align-items: center; gap: .65rem; font-size: .8rem; }
.row-actions form { margin: 0; }
.muted-action { color: var(--muted); font-size: .72rem; }
.form-hint-inline { color: var(--muted); font-size: .75rem; font-weight: 400; }
.danger-zone { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid #e3bfc1; border-radius: 5px; background: #fffafa; }
.danger-zone h2 { margin-bottom: .4rem; color: #7e2429; }
.danger-zone p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.restore-zone { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid #b9d4c5; border-radius: 5px; background: #f6fbf8; }
.restore-zone h2 { margin: 0 0 .4rem; color: var(--green); font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.restore-zone p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.archived-row { background: #f8f8f6; opacity: .72; }

.confirmation-dialog {
  width: min(31rem, calc(100% - 2rem));
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: white;
  box-shadow: 0 1.5rem 4rem rgb(20 28 34 / 25%);
}
.confirmation-dialog::backdrop { background: rgb(11 49 93 / 45%); backdrop-filter: blur(2px); }
.confirmation-dialog > form,
.confirmation-dialog > div { padding: 1.6rem; }
.confirmation-dialog h2 { margin: 0 0 .65rem; color: var(--cjc-indigo, #0b315d); font-size: 1.2rem; font-weight: 600; letter-spacing: normal; text-transform: none; }
.confirmation-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.confirmation-dialog__actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.4rem; }
.post-login-gate { min-height: min(52vh, 28rem); }
.post-login-dialog { width: min(35rem, calc(100% - 2rem)); }
.post-login-dialog h1 {
  margin: 0 0 .7rem;
  color: var(--cjc-indigo, #0b315d);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 550;
  line-height: 1.2;
}
.post-login-dialog__icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  place-items: center;
  color: #7a4d00;
  border-radius: 50%;
  background: #fff1cc;
  font-size: 1.25rem;
  font-weight: 600;
}
.post-login-dialog__icon--details {
  color: var(--cjc-indigo, #0b315d);
  background: #e9f1f8;
}
.details-confirmation-dialog { width: min(48rem, calc(100% - 2rem)); }
.details-confirmation-dialog > div {
  max-height: min(82vh, 48rem);
  overflow-y: auto;
}
.details-confirmation-error { margin: 1rem 0 0; }
.core-details-list {
  display: grid;
  gap: .7rem;
}
.core-details-list--primary { margin-top: 1.2rem; }
.core-details-person {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f8fafb;
}
.core-details-person--incomplete {
  border-color: #d69d43;
  background: #fffaf0;
  box-shadow: inset 3px 0 #c27a16;
}
.core-details-person__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.core-details-person__heading h2 { margin: .2rem 0 0; font-size: 1rem; }
.core-details-person__role {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.core-details-person dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem 1rem;
  margin: .65rem 0 0;
}
.core-details-person dl div { min-width: 0; }
.core-details-person dt { color: var(--muted); font-size: .7rem; }
.core-details-person dd {
  margin: .1rem 0 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
}
.core-details-missing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .15rem .8rem;
  margin-top: .75rem;
  padding: .65rem .75rem;
  color: #70410a;
  border: 1px solid #efd7ad;
  border-radius: .4rem;
  background: #fff4df;
  font-size: .76rem;
}
.core-details-missing strong { grid-column: 1 / -1; }
.core-details-missing ul { margin: .15rem 0 0; padding-left: 1.1rem; }
.core-details-missing > span { align-self: end; color: #825a27; }
.core-details-directory {
  display: flex;
  margin-top: .75rem;
  padding-top: .7rem;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-top: 1px solid #dde3e5;
}
.core-details-directory__heading {
  display: flex;
  min-width: 9rem;
  align-items: center;
  gap: .55rem;
}
.core-details-directory__heading > span:last-child { display: grid; gap: .05rem; }
.core-details-directory__heading strong { color: var(--cjc-indigo, #0b315d); font-size: .75rem; }
.core-details-directory__heading small { color: var(--muted); font-size: .68rem; }
.core-details-directory__icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--cjc-indigo, #0b315d);
  border-radius: 50%;
  background: #e7eef4;
}
.core-details-directory__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.core-details-directory__items {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
  list-style: none;
}
.core-details-directory__items li {
  display: inline-flex;
  padding: .2rem .45rem;
  align-items: center;
  gap: .25rem;
  color: #8a9298;
  border: 1px solid #d9dee0;
  border-radius: 999px;
  background: white;
  font-size: .65rem;
}
.core-details-directory__items li span { font-weight: 700; }
.core-details-directory__items .is-published {
  color: #28634e;
  border-color: #b8d7ca;
  background: #eef8f4;
}
.core-details-family {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d6dee2;
  border-radius: .65rem;
  background: #f2f6f8;
}
.core-details-family__heading {
  display: flex;
  margin-bottom: .75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.core-details-family__heading h2 { margin: .12rem 0 0; font-size: 1rem; }
.core-details-family__empty { padding: .75rem; text-align: center; }
.details-confirmation-actions {
  display: flex;
  margin-top: 1.2rem;
  align-items: flex-end;
  flex-direction: column;
  gap: .45rem;
}
.details-confirmation-actions p {
  max-width: 30rem;
  font-size: .72rem;
  text-align: right;
}
.details-confirmation-submit:disabled {
  cursor: not-allowed;
  opacity: .48;
}
@media (max-width: 620px) {
  .confirmation-dialog__actions { flex-direction: column-reverse; }
  .confirmation-dialog__actions .button { width: 100%; }
  .core-details-person dl { grid-template-columns: 1fr; }
  .core-details-missing { grid-template-columns: 1fr; }
  .core-details-directory { align-items: flex-start; flex-direction: column; }
  .core-details-directory__items { justify-content: flex-start; }
  .core-details-family__heading { align-items: flex-start; flex-direction: column; }
  .core-details-family__heading .button { width: 100%; }
  .details-confirmation-actions .button { width: 100%; }
  .details-confirmation-actions p { text-align: left; }
  .member-login-shell { grid-template-columns: 1fr; align-items: start; }
  .member-login-card { padding: 1.6rem; }
  .member-login-join { padding: 1.35rem; }
  .join-agreement-review { align-items: flex-start; flex-direction: column; }
  .join-agreement-review .button { width: 100%; }
  .member-agreement__actions .button { width: 100%; }
}
.error-page { max-width: 620px; padding: 3rem 0; }
.error-page p:not(.eyebrow) { margin: 1rem 0 1.5rem; color: var(--muted); }
.rate-limit-card { width: min(100%, 660px); padding: 2.25rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 35px rgb(11 49 93 / 10%); text-align: center; }
.rate-limit-card__mark { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; color: white; background: var(--cjc-indigo, #0b315d); font-weight: 700; letter-spacing: .08em; }
.rate-limit-card h1 { margin: .3rem 0 .8rem; color: var(--cjc-indigo, #0b315d); }
.rate-limit-card p { color: var(--muted); line-height: 1.6; }
.rate-limit-card__reassurance { padding: .75rem; border-radius: 6px; background: #f5f7f8; font-size: .82rem; }
.join-payment-heading { max-width: 760px; margin-bottom: 1.25rem; }
.join-payment-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.join-welcome-hero { max-width: 850px; margin: 0 auto 1.5rem; text-align: center; }
.join-welcome-hero h1 { margin: .25rem 0 .75rem; color: var(--cjc-indigo, #0b315d); font-size: clamp(2rem, 4vw, 3.1rem); }
.join-welcome-hero > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.join-onboarding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.join-onboarding-card { display: flex; align-items: flex-start; flex-direction: column; }
.join-onboarding-card h2, .join-payment-receipt h2 { color: var(--cjc-indigo, #0b315d); }
.join-onboarding-card p { flex: 1; color: var(--muted); line-height: 1.6; }
.join-payment-receipt { margin-top: 1rem; }
.join-payment-receipt .details { max-width: 650px; }
.join-onboarding-actions { margin-top: 1rem; }
.public-join-review-list { display: grid; gap: .75rem; }
.public-join-review { display: grid; gap: .5rem; padding: .85rem 1rem; border-left: 4px solid var(--red); background: #fff8f7; }
.public-join-review > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.public-join-review small { color: var(--muted); }
.public-join-review code { overflow-wrap: anywhere; font-size: .72rem; }
.public-join-review p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-submit {
  position: relative;
  justify-content: center;
}
.email-submit:disabled { cursor: wait; opacity: .76; }
.email-submit__spinner,
.email-submit__pending { display: none; }
.email-submit[aria-busy="true"] .email-submit__idle { display: none; }
.email-submit[aria-busy="true"] .email-submit__pending { display: inline; }
.email-submit[aria-busy="true"] .email-submit__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: .5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: email-submit-spin .7s linear infinite;
}
button[type="submit"][aria-busy="true"] {
  cursor: wait;
  opacity: .76;
}
button[type="submit"][aria-busy="true"]:not(.email-submit)::before {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: .5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -.15rem;
  content: "";
  animation: email-submit-spin .7s linear infinite;
}
@keyframes email-submit-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 850px) {
  .join-benefit-card, .join-benefit-card:nth-child(4), .join-benefit-card:nth-child(5) { grid-column: span 3; }
  .stat-grid, .stat-grid--dashboard { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .detail-grid-3, .membership-detail-grid { grid-template-columns: 1fr; }
  .primary-member-content { grid-template-columns: max-content minmax(0, 1fr); }
  .primary-member-content > .details-review-request { grid-column: 1 / -1; justify-content: flex-start; padding: .7rem 0 0; border-top: 1px solid var(--line); }
  .primary-member-content > .last-login { grid-column: 1 / -1; padding: .7rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .details--primary { grid-template-columns: 1fr; }
  .member-self-grid { grid-template-columns: 1fr; }
  .member-self-attributes { grid-column: auto; }
  .activity-row { grid-template-columns: 7.5rem minmax(11rem, 1fr) minmax(14rem, 1.2fr); }
  .activity-row__status { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .join-page-header { grid-template-columns: 1fr; grid-template-rows: auto; gap: .35rem; }
  .join-page-header .eyebrow { display: block; padding: 0; border: 0; grid-row: auto; }
  .join-benefit-card, .join-benefit-card:nth-child(4), .join-benefit-card:nth-child(5) { grid-column: 1 / -1; }
  .join-pricing-grid { grid-template-columns: 1fr; }
  .membership-type-choice { grid-template-columns: 1fr; align-items: start; }
  .family-relationship-grid { grid-template-columns: 1fr; }
  .field-membership-type { width: 100%; }
  .join-onboarding-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 2rem, 1180px); padding-top: 2rem; }
  .membership-toolbar__inner { gap: .8rem; flex-wrap: wrap; padding-block: .6rem; }
  .membership-toolbar__title { width: 100%; }
  .membership-toolbar__person { width: 100%; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .membership-workspace-nav { margin-right: 0; margin-left: 0; padding-inline: 0; }
  .workspace-section-heading { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .workspace-section-heading > p { text-align: left; }
  .member-heading__actions { width: 100%; justify-content: space-between; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stat-grid, .form-grid-2, .check-grid, .type-counts, .summary-strip { grid-template-columns: 1fr; }
  .summary-strip div, .type-counts div { border-left: 0; border-top: 1px solid var(--line); }
  .summary-strip div:first-child, .type-counts div:first-child { border-top: 0; }
  .form-span-2 { grid-column: auto; }
  .person-name-row { flex-wrap: wrap; }
  [data-public-join-form] .person-name-row > .optional-name-toggle {
    margin-top: 0;
  }
  .button-row, .button-section-action { min-height: 40px; }
  .social-account-row { grid-template-columns: 1fr auto; }
  .social-account-provider,
  .social-account-url { grid-column: 1 / -1; }
  .social-account-remove { grid-column: 2; margin-bottom: 0; }
  .detail-group--action { margin-top: 1.25rem; }
  .detail-group__actions,
  .form-section__actions { top: .35rem; right: .55rem; }
  .search { flex-wrap: wrap; }
  .search input { flex-basis: 100%; }
  .people-list { grid-template-columns: minmax(0, 1fr) auto; }
  .family-member-contact { grid-column: 1 / -1; }
  .family-member-indicators { grid-column: 1 / -1; }
  .member-family-card { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .person-contact-details { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .member-renewal-summary { grid-template-columns: 1fr; }
  .member-attribute-list { grid-template-columns: 1fr; }
  .member-attribute-item { grid-template-columns: 1.8rem minmax(0, 1fr); align-items: start; }
  .member-attribute-state { grid-column: 2; justify-self: start; }
  .member-attributes--detail { grid-template-columns: 1fr; }
  .member-attributes--detail .attribute-group:nth-child(2) { border-top: 1px solid var(--line); }
  .member-attributes--ribbon { gap: .4rem .8rem; }
  .person-row > .last-login { grid-column: 1 / -1; padding: .7rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .details div { grid-template-columns: 1fr; gap: .2rem; }
  .renewal-summary { grid-template-columns: 1fr; }
  .renewal-summary div { border-top: 1px solid var(--line); border-left: 0; }
  .renewal-summary div:first-child { border-top: 0; }
  .customer-renewal-details { padding: 1.1rem; }
  .customer-renewal-details dl { grid-template-columns: 1fr; }
  .customer-renewal-details dl div,
  .customer-renewal-details dl div:nth-child(odd),
  .customer-renewal-details dl div:nth-child(even) { grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr); padding-right: 0; padding-left: 0; border-left: 0; }
  .payment-success, .payment-reversed { align-items: flex-start; }
  .renewal-fields { grid-template-columns: 1fr; }
  .renewal-fields input { width: 100%; }
  .manual-receipt-fields { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 1fr auto; }
  .activity-row__time { grid-column: 1; }
  .activity-row__member,
  .activity-row__event,
  .activity-row__status { grid-column: 1 / -1; }
  .activity-change-table__heading { display: none; }
  .activity-event-meta { grid-template-columns: 1fr; }
  .activity-event-meta div,
  .activity-event-meta div:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .activity-event-meta div:first-child { border-top: 0; }
  .activity-change-table__row,
  .activity-change-table__row--detail { grid-template-columns: 1fr; }
  .activity-change-table__row > span + span { border-top: 1px solid var(--line); border-left: 0; }
  .receipt-resend-form,
  .renewal-receipt-form,
  .renewal-transaction-details { grid-template-columns: 1fr; }
  .receipt-resend-form .button,
  .renewal-receipt-form .button { width: 100%; justify-content: center; }
}
