:root {
    --green: #357d3a;
    --green-dark: #285e30;
    --green-deep: #1f5c34;
    --green-soft: #eaf4ec;
    --ink: #18212b;
    --muted: #667085;
    --app-bg: #f4f7f5;
    --surface: #ffffff;
    --border: #e2e8e4;
    --info: #2563eb;
    --warning: #b7791f;
    --danger: #b42318;
    --shadow: 0 10px 28px rgba(24, 33, 43, .07);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--app-bg); line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 9999; background: #fff; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: linear-gradient(180deg, #1f5c34 0%, #184b2a 100%); border-right: 0; display: flex; flex-direction: column; z-index: 30; box-shadow: 6px 0 24px rgba(16, 24, 40, .10); }
.brand { display: flex; gap: .8rem; align-items: center; padding: 1.4rem 1.25rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand strong { display: block; font-size: 1.1rem; letter-spacing: .08em; color: #fff; }
.brand small { display: block; color: rgba(255,255,255,.72); font-size: .84rem; letter-spacing: .04em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-family: Georgia, serif; }
.brand-mark.large { width: 52px; height: 52px; font-size: 1.4rem; }
.sidebar-nav { padding: 1rem .8rem; flex: 1; overflow-y: auto; }
.brand--logo { display: block; padding-top: 1.6rem; }
.brand-logo { display: block; width: 170px; max-width: 100%; height: auto; margin-bottom: .55rem; }
.brand-text { display: block; }
.nav-section { margin: .5rem .7rem .6rem; color: #98a2b3; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .78rem .8rem; margin: .18rem 0; border-radius: 10px; text-decoration: none; color: rgba(255,255,255,.88); font-weight: 600; font-size: .92rem; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.nav-link small { color: rgba(255,255,255,.58); font-size: .68rem; }
.nav-link.disabled { opacity: .60; cursor: not-allowed; }
.sidebar-footer { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: rgba(255,255,255,.78); }
.sidebar-footer strong, .sidebar-footer a { display: block; }
.sidebar-footer a { margin-top: .45rem; color: #fff; text-decoration: none; }
.sidebar-footer a:hover { text-decoration: underline; }
.user-caption { color: var(--muted); display: block; font-size: .72rem; }
.main-column { margin-left: 270px; min-height: 100vh; }
.topbar { min-height: 96px; padding: 1.15rem 2rem; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.45rem; margin: .05rem 0 0; }
.topbar-actions { margin-left: auto; }
.environment-pill, .count-pill { border: 1px solid var(--border); background: #f8faf9; border-radius: 999px; padding: .38rem .68rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 800; color: var(--green); }
.content { padding: 2rem; max-width: 1500px; margin: 0 auto; }
.narrow-content { max-width: 1000px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi-card { display: block; min-height: 145px; padding: 1.15rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.kpi-card span, .kpi-card small { display: block; color: var(--muted); }
.kpi-card strong { display: block; font-size: 1.85rem; margin: .45rem 0; color: var(--ink); }
.kpi-card:hover { border-color: #bbd5c0; transform: translateY(-1px); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem; margin-bottom: 1.25rem; }
.panel-header { margin-bottom: 1rem; }
.panel-header.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-header h2 { margin: .15rem 0; font-size: 1.18rem; }
.panel-header p:not(.eyebrow) { margin: .3rem 0 0; color: var(--muted); }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.task-list li:last-child { border-bottom: 0; }
.task-list strong { color: var(--muted); font-size: .82rem; }
.task-list .done strong { color: var(--green); }
.status-list { margin: 0; }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--border); }
.status-list div:last-child { border-bottom: 0; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 650; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; background: #98a2b3; }
.status-dot.success { background: var(--green); }
.status-dot.neutral { background: #98a2b3; }
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; background: #fff; }
.alert-success { border-color: #acd5b3; color: var(--green-dark); background: #eff8f1; }
.alert-warning { border-color: #edd6a6; color: #7a4b00; background: #fff8e8; }
.alert-danger { border-color: #efb7b2; color: var(--danger); background: #fff1f0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.text-link { color: var(--green-dark); font-weight: 700; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .28rem .58rem; font-size: .72rem; font-weight: 750; }
.badge-success { color: #206127; background: #eaf6ec; }
.badge-warning { color: #855409; background: #fff4d8; }
.badge-danger { color: #8d1c14; background: #feeceb; }
.badge-neutral { color: #475467; background: #f2f4f7; }
.empty-state { padding: 3rem 1rem; text-align: center; border: 1px dashed #cbd7ce; border-radius: 12px; background: #fafcfb; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); max-width: 580px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-grid label { color: #344054; font-weight: 650; font-size: .88rem; }
.form-grid input, .form-grid select, .local-login input { width: 100%; margin-top: .38rem; border: 1px solid #cfd8d2; border-radius: 9px; padding: .72rem .78rem; background: #fff; color: var(--ink); }
.field-full { grid-column: 1 / -1; }
.form-actions { padding-top: .35rem; }
.button { display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; padding: .76rem 1rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 750; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: #fff; border-color: #cfd8d2; color: var(--ink); }
.button-full { width: 100%; }
.back-link { display: inline-block; margin-bottom: .8rem; color: var(--green-dark); font-weight: 700; }
.member-hero { padding: 1.8rem; background: var(--green-dark); color: #fff; border-radius: var(--radius); margin-bottom: 1.25rem; }
.member-hero .eyebrow { color: #cfe8d3; }
.member-hero h2 { margin: .25rem 0 .5rem; font-size: 1.6rem; }
.member-hero p:last-child { margin-bottom: 0; color: #e8f2e9; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at top left, #edf5ef, transparent 38%), var(--app-bg); }
.auth-card { width: min(100%, 470px); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 22px 60px rgba(24,33,43,.12); padding: 2rem; }
.auth-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand strong { color: var(--green-dark); letter-spacing: .08em; }
.auth-brand span { color: var(--muted); font-size: .84rem; }
.auth-card h1 { margin: .25rem 0 .55rem; font-size: 2rem; }
.auth-intro { color: var(--muted); margin-bottom: 1.25rem; }
.auth-help { color: var(--muted); font-size: .8rem; text-align: center; margin: 1.2rem 0 0; }
.local-login { margin-top: 1.1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.local-login summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.local-login form { display: grid; gap: .8rem; margin-top: 1rem; }

@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.menu-open .sidebar { transform: translateX(0); }
    .main-column { margin-left: 0; }
    .menu-toggle { display: inline-block; }
    .panel-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .content, .topbar { padding: 1.1rem; }
    .topbar-actions { display: none; }
    .kpi-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .panel-header.split { display: block; }
    .panel-header.split > :last-child { margin-top: .7rem; }
}

/* People administration review screen */
.compact-kpis .kpi-card { min-height: 118px; }
.compact-kpis .kpi-card strong { font-size: 1.55rem; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(150px, .75fr)) auto; gap: .8rem; align-items: end; margin: 1rem 0 1.2rem; padding: 1rem; background: #f8faf9; border: 1px solid var(--border); border-radius: 12px; }
.filter-bar label { color: #344054; font-weight: 700; font-size: .78rem; }
.filter-bar input, .filter-bar select { width: 100%; margin-top: .35rem; border: 1px solid #cfd8d2; border-radius: 9px; padding: .63rem .68rem; background: #fff; color: var(--ink); }
.filter-actions { display: flex; gap: .5rem; }
.people-table-wrap table { min-width: 1180px; }
.people-table td small { display: block; color: var(--muted); margin-top: .16rem; }
.people-table .warning-text { color: #92400e; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .84rem; }
.detail-grid { align-items: stretch; }
.detail-list { margin: 0; }
.detail-list div { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr); gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--border); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.admin-member-form textarea { width: 100%; margin-top: .38rem; border: 1px solid #cfd8d2; border-radius: 9px; padding: .72rem .78rem; background: #fff; color: var(--ink); resize: vertical; }
.compact-table-wrap table { min-width: 700px; }
.compact-table th, .compact-table td { padding: .62rem .55rem; font-size: .88rem; }
.muted-text { color: var(--muted); }

@media (max-width: 1300px) {
    .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .filter-bar { grid-template-columns: 1fr; }
    .detail-list div { grid-template-columns: 1fr; gap: .15rem; }
}


/* v0.2 membership cycles and country classification */
.form-section-title { margin: 1rem 0 .2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--green-dark); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.config-form textarea, .compact-config textarea, .form-grid textarea { width: 100%; margin-top: .38rem; border: 1px solid #cfd8d2; border-radius: 9px; padding: .72rem .78rem; background: #fff; color: var(--ink); resize: vertical; min-height: 96px; }
.checkbox-label { display: flex !important; align-items: center; gap: .55rem; padding: .72rem .78rem; border: 1px solid #cfd8d2; border-radius: 9px; background: #fff; min-height: 46px; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.compact-config { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .5rem; }
.highlight-panel { border-color: #acd5b3; box-shadow: 0 12px 30px rgba(31, 92, 52, .10); }
.country-filter { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, .6fr) auto; }
.people-table td small { display: block; color: var(--muted); margin-top: .15rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
@media (max-width: 980px) { .compact-config, .country-filter { grid-template-columns: 1fr; } }


/* v0.3 renewal generation */
.renewal-cycle-summary { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; padding: .9rem 1rem; background: #f8faf9; border: 1px solid var(--border); border-radius: 12px; }
.renewal-cycle-summary span { display: inline-flex; align-items: center; gap: .35rem; color: #344054; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.renewal-filter { grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .8fr) minmax(120px, .55fr) minmax(150px, .7fr) auto; }
.renewal-table td small { display: block; color: var(--muted); margin-top: .15rem; }
.renewal-table .warning-text { color: #92400e; }
.renewal-table strong .text-link, .renewal-table .text-link { color: var(--green-dark); }
@media (max-width: 1100px) {
    .renewal-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .renewal-filter .filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .renewal-filter { grid-template-columns: 1fr; }
    .panel-actions { justify-content: flex-start; }
}


/* v0.3.1 cycle workflow */
.cycle-selector-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #f8faf9; }
.cycle-selector-bar label { flex: 1 1 320px; margin: 0; }
.cycle-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cycle-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-decoration: none; box-shadow: var(--shadow); }
.cycle-card:hover { border-color: rgba(53, 125, 58, .45); transform: translateY(-1px); }
.cycle-card .cycle-year { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); }
.blocked-action-box { max-width: 360px; padding: .9rem 1rem; border-radius: 12px; border: 1px solid #facc15; background: #fffbeb; color: #713f12; }
.blocked-action-box strong, .blocked-action-box span, .blocked-action-box a { display: block; }
.blocked-action-box span { margin: .25rem 0 .45rem; }


/* v0.3.2 renewal review */
.stacked-status { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.stacked-status small { color: var(--muted); }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-form .field-full { grid-column: 1 / -1; }
.inline-action-form { margin-top: .8rem; }
.review-reasons { border: 1px solid #facc15; background: #fffbeb; color: #713f12; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.review-reasons ul { margin: .45rem 0 0; padding-left: 1.2rem; }
.blocked-action-box.wide { max-width: none; margin-bottom: 1rem; }
@media (max-width: 780px) {
    .compact-form { grid-template-columns: 1fr; }
    .stacked-status { align-items: flex-start; }
}


/* v0.4.0 member renewal and bank transfer */
.terms-box { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; background: #f8faf9; max-height: 260px; overflow: auto; }
.terms-box p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.review-inline-form { display: grid; gap: .45rem; min-width: 210px; }
.review-inline-form textarea { width: 100%; resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }


/* v0.5.0 receipts */
.receipt-page { background: #eef3ef; }
.receipt-document { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.receipt-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; margin-bottom: 1.4rem; }
.receipt-header h1 { margin: .1rem 0 .5rem; font-size: 1.8rem; }
.receipt-logo-text { font-weight: 900; letter-spacing: .12em; color: var(--green-dark); font-size: 1.3rem; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.receipt-grid h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .45rem; }
.receipt-grid p { margin: .16rem 0; }
.receipt-lines { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.receipt-lines th, .receipt-lines td { padding: .85rem; border-bottom: 1px solid var(--border); text-align: left; }
.receipt-lines thead th { background: #f8faf9; }
.receipt-lines .amount { text-align: right; white-space: nowrap; }
.receipt-note { color: var(--muted); font-size: .92rem; }
.receipt-actions { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media print {
    .sidebar, .topbar, .back-link, .no-print, .skip-link { display: none !important; }
    .main-column { margin-left: 0 !important; }
    .content, .receipt-page { padding: 0 !important; background: #fff !important; }
    .receipt-document { box-shadow: none !important; border: none !important; border-radius: 0 !important; max-width: none !important; }
    body { background: #fff !important; }
}
@media (max-width: 760px) {
    .receipt-grid { grid-template-columns: 1fr; }
    .receipt-header { flex-direction: column; }
}


/* v0.6.0 Stripe checkout */
.stripe-payment-box { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem; background: #f8faf9; }
.stripe-payment-box h3 { margin-top: 0; }
.stripe-checkout-form { display: grid; gap: .75rem; }


/* v0.6.1 payment method selector */
.payment-method-selector-panel { overflow: visible; }
.payment-method-switcher { position: relative; }
.payment-method-radio { position: absolute; opacity: 0; pointer-events: none; }
.payment-method-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
.payment-method-tab { display: block; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; cursor: pointer; background: #fff; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.payment-method-tab strong, .payment-method-tab span { display: block; }
.payment-method-tab span { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.payment-method-tab:hover { border-color: rgba(53, 125, 58, .55); transform: translateY(-1px); box-shadow: var(--shadow); }
.payment-method-tab.disabled { opacity: .55; cursor: not-allowed; background: #f8faf9; }
.payment-method-content { display: none; border-top: 1px solid var(--border); padding-top: 1.25rem; }
#payment-method-stripe:checked ~ .payment-method-tabs label[for="payment-method-stripe"],
#payment-method-bank:checked ~ .payment-method-tabs label[for="payment-method-bank"] { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(53, 125, 58, .12); }
#payment-method-stripe:checked ~ .payment-method-panels #stripe-payment-panel,
#payment-method-bank:checked ~ .payment-method-panels #bank-transfer-panel { display: block; }
.payment-method-intro { margin-bottom: 1rem; }
.payment-method-intro h3 { margin: .15rem 0 .25rem; }
.embedded-grid { margin: 0; }
.embedded-panel { border: 1px solid var(--border); border-radius: 14px; padding: 1rem; background: #fff; }


/* v0.6.3 Stripe direct redirect */
.stripe-continue-box { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: #f8faf9; }
.stripe-continue-box .button { margin-top: .5rem; }


/* v0.6.4 Stripe one-step flow */
.stripe-start-form .form-actions { align-items: center; gap: .75rem; }
.stripe-start-form .form-actions small { display: block; margin-top: .45rem; }


/* v0.6.5 Stripe selected option persistence */
.stripe-selection-summary { display: grid; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: .75rem; }
.stripe-selection-summary strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stripe-selection-summary span { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.split-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.split-actions form { margin: 0; }


/* v0.7.0 member payment history */
.member-payment-table small { display: block; margin-top: .15rem; color: var(--muted); }


/* v0.8.0 member profile */
.profile-admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mini-card { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-sm); }
.mini-card span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.mini-card strong { color: var(--text); font-size: 1rem; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-field { display: grid; gap: .45rem; align-content: start; }
.profile-field.field-wide { grid-column: 1 / -1; }
.profile-field > span { font-weight: 800; color: var(--text); }
.profile-field > span em { color: #9d1d1d; font-style: normal; }
.profile-field input[type="text"],
.profile-field input[type="email"],
.profile-field input[type="url"],
.profile-field textarea,
.profile-settings-table input[type="text"],
.profile-settings-table input[type="number"] { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; font: inherit; background: #fff; }
.profile-field textarea { resize: vertical; min-height: 95px; }
.profile-field small, .review-note { color: var(--muted); line-height: 1.35; }
.readonly-value { min-height: 2.65rem; border: 1px solid #e5ebe7; background: #f8faf9; border-radius: 10px; padding: .7rem .8rem; color: var(--text); }
.wg-checkboxes { display: flex; flex-wrap: wrap; gap: .75rem; border: 1px solid var(--border); border-radius: 10px; padding: .75rem; background: #fff; }
.wg-checkboxes label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; }
.wg-readonly { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .55rem; background: #e8f3ea; color: #1c6030; font-weight: 800; font-size: .78rem; }
.sticky-actions-panel { position: sticky; bottom: 0; z-index: 5; border-top: 3px solid var(--accent); }
.profile-settings-table small { display: block; color: var(--muted); margin-top: .15rem; }
.profile-settings-table .small-input { width: 5rem; }
.center-cell { text-align: center; }
.profile-settings-table-wrap { overflow-x: auto; }

@media (max-width: 980px) {
    .profile-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .profile-admin-summary { grid-template-columns: 1fr; }
}


/* v0.9.0 Mailrelay email log */
.filters-form { display: grid; grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr) auto; gap: 1rem; align-items: end; }
.filters-form label { display: grid; gap: .35rem; font-weight: 700; color: var(--text); }
.filters-form input,
.filters-form select { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; font: inherit; background: #fff; }
.people-table small { display: block; color: var(--muted); margin-top: .15rem; }
@media (max-width: 880px) {
    .filters-form { grid-template-columns: 1fr; }
}


/* v0.10.0 communications */
.comm-template-list { display: grid; gap: 1rem; }
.comm-template-card { border: 1px solid var(--border); border-radius: 16px; padding: 1rem; background: #fff; display: grid; gap: .85rem; }
.comm-template-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.comm-template-card header small { display: block; color: var(--muted); margin-top: .2rem; }
.comm-template-card label, .comm-filter-panel label, .panel > label { display: grid; gap: .35rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.comm-template-card input[type="text"], .comm-template-card textarea,
.comm-filter-panel input, .comm-filter-panel select,
.panel > input, .panel > textarea,
.panel > label input, .panel > label textarea, .panel > label select { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; font: inherit; background: #fff; }
.toggle-line, .confirm-line { display: inline-flex !important; grid-template-columns: auto !important; align-items: center; gap: .5rem !important; font-weight: 800; }
.comm-recipient-summary { display: inline-flex; align-items: baseline; gap: .5rem; border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; background: #f8faf9; margin: 1rem 0; }
.comm-recipient-summary strong { font-size: 1.5rem; color: var(--accent); }
.button-small { padding: .45rem .7rem; font-size: .82rem; }
.email-preview-frame { width: 100%; min-height: 520px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.email-text-preview { white-space: pre-wrap; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: #f8faf9; overflow-x: auto; }
.detail-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: .6rem 1rem; }
.detail-grid dt { font-weight: 800; color: var(--muted); }
.detail-grid dd { margin: 0; }
@media (max-width: 760px) {
    .comm-template-card header { display: grid; }
    .detail-grid { grid-template-columns: 1fr; }
}


/* v0.11.0 member messages */
.member-message-list { display: grid; gap: .85rem; }
.member-message-card { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-sm); }
.member-message-card.is-unread { border-left: 5px solid var(--accent); }
.message-main { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.message-status-dot { width: .65rem; height: .65rem; border-radius: 999px; background: #cfd8d2; margin-top: .45rem; flex: 0 0 auto; }
.member-message-card.is-unread .message-status-dot { background: var(--accent); }
.message-main h3 { margin: 0 0 .25rem; font-size: 1rem; }
.message-main h3 a { color: var(--text); text-decoration: none; }
.message-main h3 a:hover { text-decoration: underline; }
.message-main p { margin: 0; color: var(--muted); font-size: .9rem; }
.message-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.member-message-frame { min-height: 620px; }

@media (max-width: 760px) {
    .member-message-card { align-items: flex-start; flex-direction: column; }
    .message-actions { justify-content: flex-start; }
}


/* v0.11.0 admin payments */
.admin-payments-table small { display: block; color: var(--muted); margin-top: .15rem; }
.admin-payments-table .review-inline-form textarea { min-width: 180px; }


/* v0.12/v0.13 dashboards */
.dashboard-hero .panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-dashboard-kpis,
.member-dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-alert-grid,
.member-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.alert-panel .panel-header { margin-bottom: .75rem; }
.dashboard-alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.dashboard-alert-list li { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .55rem; }
.dashboard-alert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dashboard-alert-list strong { color: var(--text); }
.dashboard-alert-list span { color: var(--muted); text-align: right; font-size: .9rem; }
.profile-progress { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 1rem; }
.profile-progress-bar { flex: 1; height: .75rem; background: #e7eee9; border-radius: 999px; overflow: hidden; }
.profile-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.quick-actions-list { display: flex; flex-wrap: wrap; gap: .65rem; }
@media (max-width: 1100px) {
    .admin-dashboard-kpis,
    .member-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-alert-grid,
    .member-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .admin-dashboard-kpis,
    .member-dashboard-kpis { grid-template-columns: 1fr; }
    .dashboard-alert-list li { flex-direction: column; }
    .dashboard-alert-list span { text-align: left; }
}


/* v0.14.0 membership applications */
.review-form label { display: grid; gap: .35rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.review-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; font: inherit; background: #fff; }
.button-danger { background: #9d1d1d; color: #fff; }


/* v0.14.1 committee application workflow */
.vote-fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin: 0 0 1rem;
    display: grid;
    gap: .5rem;
}
.vote-fieldset legend {
    font-weight: 800;
    color: var(--text);
    padding: 0 .35rem;
}
.vote-fieldset label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 650;
}
.review-form label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}
.review-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .7rem .8rem;
    font: inherit;
    background: #fff;
}
.button-danger {
    background: #9d1d1d;
    color: #fff;
}

/* v0.14.4 */
.nav-group{margin:.2rem 0}.nav-group summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;padding:.7rem .85rem;border-radius:10px;color:rgba(255,255,255,.88);font-weight:800}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover,.nav-group summary.active{background:rgba(255,255,255,.12);color:#fff}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-submenu{display:grid;margin:.15rem 0 .4rem .65rem;padding-left:.55rem;border-left:1px solid rgba(255,255,255,.18)}.nav-submenu .nav-link{padding:.55rem .7rem;font-size:.92rem}.role-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.role-stat-card{border:1px solid var(--border);border-radius:14px;background:#fff;padding:.9rem;text-decoration:none;color:var(--text)}.role-stat-card span,.role-stat-card small{display:block;color:var(--muted);font-size:.78rem}.roles-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.7fr);gap:1rem}.roles-filter-form{display:grid;gap:.75rem;margin-bottom:1rem}.roles-filter-form label{display:grid;gap:.35rem;font-weight:700}.roles-filter-form input,.roles-filter-form select{width:100%;border:1px solid var(--border);border-radius:10px;padding:.7rem .8rem}.role-member-list{display:grid;gap:.35rem;max-height:720px;overflow:auto}.role-member-row{display:flex;justify-content:space-between;padding:.7rem;border:1px solid var(--border);border-radius:10px;text-decoration:none;color:var(--text)}.role-member-row.active,.role-member-row:hover{border-color:var(--accent);background:#f1f8f3}.role-member-row small{display:block;color:var(--muted)}.role-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.role-choice-card{display:block;border:1px solid var(--border);border-radius:14px;padding:.85rem;background:#fff}.role-choice-card.selected{border-color:var(--accent)}.role-choice-card.derived{background:#f5f7f6}.role-choice-header{display:flex;gap:.5rem;align-items:center}.role-choice-card p{color:var(--muted);font-size:.88rem}.derived-label{background:#fff2c5;border-radius:999px;padding:.2rem .5rem;font-weight:800}.permission-chip-list{display:flex;flex-wrap:wrap;gap:.3rem}.permission-chip-list span{background:#edf3ef;border-radius:999px;padding:.18rem .42rem;font-size:.68rem;font-weight:800}.effective-permissions{border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem}@media(max-width:1150px){.role-summary-grid{grid-template-columns:repeat(2,1fr)}.roles-layout{grid-template-columns:1fr}}@media(max-width:720px){.role-summary-grid,.role-card-grid{grid-template-columns:1fr}}


/* v1.1.1 Communications library and email editor */
.comm-library-filters {
    display: grid;
    grid-template-columns: minmax(240px,1.5fr) minmax(180px,.7fr) minmax(150px,.55fr) auto;
    gap: .75rem;
    align-items: end;
}
.comm-library-filters label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}
.comm-library-filters input,
.comm-library-filters select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .7rem .8rem;
    font: inherit;
}
.comm-template-table td:first-child small,
.comm-template-table td:nth-child(2) small {
    display: block;
    color: var(--muted);
    margin-top: .15rem;
}
.table-actions {
    white-space: nowrap;
}
.email-editor-form {
    display: grid;
    gap: 1rem;
}
.email-editor-form > label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}
.email-editor-form input[type="text"],
.email-editor-form textarea,
.email-editor-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .72rem .8rem;
    font: inherit;
}
.email-editor {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.email-editor-tabs {
    display: flex;
    gap: .25rem;
    padding: .55rem .65rem 0;
    background: #f5f7f5;
    border-bottom: 1px solid var(--border);
}
.email-editor-tabs button {
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    padding: .65rem .85rem;
    font-weight: 800;
    cursor: pointer;
}
.email-editor-tabs button.active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 -1px 0 var(--border), 1px 0 0 var(--border), -1px 0 0 var(--border);
}
.email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .65rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.email-editor-toolbar button {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8faf8;
    min-height: 34px;
    padding: .35rem .6rem;
    cursor: pointer;
}
.email-editor-toolbar button:hover {
    border-color: var(--accent);
    background: #eef7f0;
}
.email-visual-editor {
    min-height: 330px;
    padding: 1.1rem;
    outline: none;
    line-height: 1.55;
}
.email-visual-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(47,125,50,.13);
}
.email-editor textarea[data-email-html] {
    min-height: 360px;
    border: 0;
    border-radius: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.5;
}
.placeholder-help {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem .9rem;
    background: #f8faf8;
}
.placeholder-help summary {
    cursor: pointer;
    font-weight: 800;
}
.placeholder-help p {
    margin-bottom: 0;
    color: var(--muted);
}
.preview-actions {
    align-items: center;
}
.preview-actions small {
    color: var(--muted);
}
.email-preview-panel {
    border-top: 1px solid var(--border);
    margin-top: .5rem;
    padding-top: 1rem;
}
.email-preview-panel iframe {
    width: 100%;
    min-height: 680px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #edf2ee;
}
.split-actions {
    justify-content: space-between;
}
@media (max-width: 950px) {
    .comm-library-filters {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .comm-library-filters {
        grid-template-columns: 1fr;
    }
    .email-editor-toolbar {
        gap: .25rem;
    }
    .email-preview-panel iframe {
        min-height: 560px;
    }
}


/* v1.1.3 — responsive admin payments table */
.people-table-wrap:has(.admin-payments-table) {
    overflow-x: visible;
}

.admin-payments-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.admin-payments-table th,
.admin-payments-table td {
    padding: .7rem .55rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-payments-table th:nth-child(1) { width: 10%; }
.admin-payments-table th:nth-child(2) { width: 18%; }
.admin-payments-table th:nth-child(3) { width: 16%; }
.admin-payments-table th:nth-child(4) { width: 10%; }
.admin-payments-table th:nth-child(5) { width: 22%; }
.admin-payments-table th:nth-child(6) { width: 9%; }
.admin-payments-table th:nth-child(7) { width: 15%; }

.admin-payments-table .payment-reference,
.admin-payments-table .payment-member-email {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-payments-table .review-inline-form {
    display: grid;
    gap: .45rem;
}

.admin-payments-table .review-inline-form textarea {
    width: 100%;
    min-width: 0;
    resize: vertical;
}

.payment-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

@media (max-width: 1180px) {
    .admin-payments-table thead {
        display: none;
    }

    .admin-payments-table,
    .admin-payments-table tbody,
    .admin-payments-table tr,
    .admin-payments-table td {
        display: block;
        width: 100%;
    }

    .admin-payments-table tr {
        margin-bottom: 1rem;
        padding: .4rem .85rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

    .admin-payments-table td {
        display: grid;
        grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr);
        gap: .75rem;
        padding: .65rem 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-payments-table td:last-child {
        border-bottom: 0;
    }

    .admin-payments-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
}

@media (max-width: 620px) {
    .admin-payments-table td {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
}


/* v1.1.4 — cycle-scoped payment KPIs */
.payments-cycle-summary {
    margin-bottom: 1rem;
}

.payments-cycle-summary .panel-header {
    margin-bottom: 0;
}

.filter-bar label:first-child {
    min-width: 280px;
}


/* v1.2.2 — restore scoped Members Portal login layout and logo sizing */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at 88% 6%, rgba(53, 125, 58, .14), transparent 31%),
        radial-gradient(circle at 8% 94%, rgba(31, 92, 52, .09), transparent 34%),
        linear-gradient(145deg, #f9fbf9 0%, #f0f5f1 100%);
}

.auth-card--euryo-login {
    width: min(100%, 470px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #d7e0d8;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 24px 64px rgba(24, 55, 32, .12),
        0 4px 14px rgba(24, 55, 32, .06);
}

.auth-login-header {
    padding: 2rem 2rem 1.45rem;
    text-align: center;
}

.auth-login-logo-link {
    display: block;
    width: min(100%, 285px);
    margin: 0 auto 1.35rem;
    text-decoration: none;
}

.auth-login-logo {
    display: block;
    width: 100% !important;
    max-width: 285px !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
}

.auth-login-intro .eyebrow {
    margin-bottom: .45rem;
}

.auth-login-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.7rem, 4vw, 2.05rem);
    line-height: 1.18;
}

.auth-login-intro p:last-child {
    margin: .75rem auto 0;
    max-width: 390px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}

.auth-card--euryo-login > .alert {
    margin: 0 2rem 1rem;
}

.auth-login-access {
    margin: 0 1.4rem;
    padding: 1.35rem;
    border: 1px solid #cfe1d1;
    border-radius: 14px;
    background: linear-gradient(180deg, #f5faf6 0%, #edf6ee 100%);
}

.auth-login-access h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.05rem;
}

.auth-login-access > p {
    margin: .55rem 0 1rem;
    color: #526158;
    font-size: .88rem;
    line-height: 1.55;
}

.auth-login-primary {
    min-height: 48px;
    border-color: var(--green-dark);
    box-shadow: 0 8px 20px rgba(53, 125, 58, .18);
    font-size: .98rem;
}

.auth-login-note {
    margin: .75rem 0 0 !important;
    color: var(--muted) !important;
    text-align: center;
    font-size: .76rem !important;
}

.auth-login-emergency {
    margin: 1.1rem 1.4rem 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.auth-login-emergency summary {
    padding: .8rem 1rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.auth-login-emergency-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--border);
}

.auth-login-emergency-body > p {
    margin: .85rem 0;
    color: var(--muted);
    font-size: .78rem;
}

.auth-login-emergency form {
    display: grid;
    gap: .8rem;
    margin: 0;
}

.auth-login-footer {
    margin-top: 1.4rem;
    padding: 1.15rem 2rem 1.4rem;
    border-top: 1px solid var(--border);
    background: #fafcfb;
    color: var(--muted);
    text-align: center;
    font-size: .78rem;
    line-height: 1.55;
}

.auth-login-footer p {
    margin: 0 0 .45rem;
}

.auth-login-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
}

.auth-login-footer a {
    color: var(--green-dark);
    font-weight: 700;
}

.auth-login-restricted {
    margin: .75rem 0 0 !important;
    color: #77837b;
    font-size: .72rem;
}

@media (max-width: 520px) {
    .auth-shell {
        align-items: start;
        padding: 1rem;
    }

    .auth-card--euryo-login {
        margin-top: .5rem;
    }

    .auth-login-header {
        padding: 1.5rem 1.25rem 1.15rem;
    }

    .auth-login-logo-link,
    .auth-login-logo {
        width: min(100%, 235px) !important;
        max-width: 235px !important;
    }

    .auth-login-access,
    .auth-login-emergency {
        margin-inline: .9rem;
    }

    .auth-login-footer {
        padding-inline: 1.25rem;
    }
}


/* v1.2.4 — reimbursement access page, cumulative after login CSS patch */
.reimbursement-access-form {
    display: grid;
    gap: 1rem;
}

.reimbursement-access-form .panel {
    margin: 0;
}

.access-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.access-mode-card,
.access-check-card,
.member-access-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.access-mode-card:hover,
.access-check-card:hover,
.member-access-row:hover {
    border-color: #7da98a;
    background: #f8fbf9;
}

.access-mode-card input,
.access-check-card input,
.member-access-row input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: .18rem 0 0;
    accent-color: var(--brand);
}

.access-mode-card > span,
.access-check-card > span,
.member-access-row > span {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.access-mode-card strong,
.access-check-card strong,
.member-access-row strong {
    color: var(--ink);
    line-height: 1.3;
}

.access-mode-card small,
.access-check-card small,
.member-access-row small {
    color: var(--muted);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.access-mode-card:has(input:checked),
.access-check-card:has(input:checked),
.member-access-row:has(input:checked) {
    border-color: var(--brand);
    background: #f0f8f2;
    box-shadow: 0 0 0 3px rgba(31, 95, 55, .10);
}

.access-selection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.member-access-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.member-access-search {
    display: grid;
    gap: .35rem;
    width: min(100%, 390px);
    margin-left: auto;
    color: var(--ink);
    font-weight: 800;
}

.member-access-search input {
    width: 100%;
}

.member-access-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}

.member-access-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    max-height: 36rem;
    padding: .15rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.member-access-row {
    padding: .8rem .9rem;
}

.member-access-row[hidden] {
    display: none !important;
}

.member-access-empty {
    display: none;
    margin: 0;
    padding: 1.2rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: #fafcfb;
    text-align: center;
}

.member-access-empty.is-visible {
    display: block;
}

.access-selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.sticky-form-actions.reimbursement-access-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .25rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
}

.sticky-form-actions.reimbursement-access-actions p {
    margin: 0;
}

@media (max-width: 1050px) {
    .access-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .access-mode-grid,
    .member-access-list {
        grid-template-columns: 1fr;
    }

    .member-access-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .member-access-search {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    .access-selection-grid {
        grid-template-columns: 1fr;
    }

    .sticky-form-actions.reimbursement-access-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sticky-form-actions.reimbursement-access-actions .button {
        width: 100%;
    }
}


/* v1.2.5 — dynamic member lookup and member record modal */
.member-lookup-field {
    position: relative;
    display: grid;
    gap: .38rem;
    min-width: 0;
}
.member-lookup-input-wrap { position: relative; }
.member-lookup-input-wrap input { width: 100%; padding-right: 2.6rem; }
.member-lookup-spinner { position: absolute; right: .9rem; top: 50%; width: .8rem; height: .8rem; transform: translateY(-50%); border-radius: 50%; }
.member-lookup-results {
    position: absolute;
    z-index: 30;
    top: calc(100% - 1.25rem);
    left: 0;
    right: 0;
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(24,55,32,.16);
}
.member-lookup-option {
    display: grid;
    gap: .2rem;
    width: 100%;
    padding: .8rem .95rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.member-lookup-option:last-child { border-bottom: 0; }
.member-lookup-option:hover,
.member-lookup-option:focus-visible { background: #f0f8f2; }
.member-lookup-option span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.member-lookup-state { padding: 1rem; color: var(--muted); text-align: center; }
.member-lookup-error { color: #9a2630; }
.member-selected-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #9cc4a6;
    border-radius: 12px;
    background: #f0f8f2;
}
.member-selected-card > div:first-child { display: grid; gap: .15rem; min-width: 0; }
.member-selected-card small { color: var(--muted); overflow-wrap: anywhere; }
.member-selected-actions { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.text-button { border: 0; padding: .3rem; background: transparent; color: var(--brand); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.field-help { color: var(--muted); font-size: .78rem; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(14,31,21,.58);
}
.modal-backdrop[hidden] { display: none !important; }
.modal-card {
    width: min(100%, 850px);
    max-height: min(88vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.26);
}
.modal-card-header,
.modal-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--border); }
.modal-card-header h2 { margin: 0; }
.modal-card-footer { border-top: 1px solid var(--border); border-bottom: 0; justify-content: flex-end; }
.modal-card-body { padding: 1.35rem; overflow-y: auto; }
.modal-close { width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
body.modal-open { overflow: hidden; }
.member-record-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.member-record-block { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fafcfb; }
.member-record-block h3 { margin: 0 0 .85rem; }
.member-record-block.span-2 { grid-column: span 2; }
.compact-detail-list { display: grid; gap: .55rem; margin: 0; }
.compact-detail-list > div { display: grid; grid-template-columns: minmax(110px,.65fr) minmax(0,1fr); gap: .75rem; }
.compact-detail-list dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.compact-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.member-cycle-title { margin: 0 0 .8rem; }
.member-payment-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.member-payment-kpis div { display: grid; gap: .15rem; padding: .75rem; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.member-payment-kpis span { color: var(--muted); font-size: .75rem; }
.member-system-statuses { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
@media (max-width: 700px) {
    .member-selected-card { align-items: stretch; flex-direction: column; }
    .member-selected-actions { justify-content: space-between; }
    .member-record-summary-grid { grid-template-columns: 1fr; }
    .member-record-block.span-2 { grid-column: auto; }
    .member-payment-kpis { grid-template-columns: 1fr; }
    .modal-card-footer { align-items: stretch; flex-direction: column-reverse; }
    .modal-card-footer .button { width: 100%; }
}


/* v1.2.6 — member lookup runtime and hidden-state fix */
.member-lookup-field [hidden],
.member-record-modal[hidden] {
    display: none !important;
}


/* v1.2.7 — multiple reimbursement concepts */
.reimbursement-concepts-panel {
    overflow: visible;
}

.concept-list {
    display: grid;
    gap: 1rem;
}

.reimbursement-concept-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdfb;
    overflow: hidden;
}

.concept-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #f1f7f2;
}

.concept-card-header > div {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.concept-number {
    color: var(--green-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.concept-card-header strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.concept-main-fields,
.concept-mileage-details .form-grid {
    padding: 1rem;
}

.concept-main-fields label[hidden] {
    display: none !important;
}

.concept-mileage-details {
    margin: 0 1rem 1rem;
    border: 1px solid #cfded2;
    border-radius: 12px;
    background: #fff;
}

.concept-mileage-details[hidden] {
    display: none !important;
}

.concept-mileage-details summary {
    padding: .8rem 1rem;
    color: var(--green-dark);
    font-weight: 800;
    cursor: pointer;
}

.mileage-calculation-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1rem .75rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #eef7f0;
}

.mileage-calculation-result span {
    color: var(--muted);
    font-size: .83rem;
}

.mileage-calculation-result strong {
    color: var(--green-dark);
    font-size: 1.15rem;
}

.concept-mileage-details > .muted-text {
    margin: 0 1rem 1rem;
}

.concept-list-footer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.concept-total-card {
    display: grid;
    min-width: min(100%, 310px);
    padding: .85rem 1rem;
    border: 1px solid #8eb69a;
    border-radius: 12px;
    background: #edf7ef;
    text-align: right;
}

.concept-total-card span,
.concept-total-card small {
    color: var(--muted);
    font-size: .78rem;
}

.concept-total-card strong {
    color: var(--green-dark);
    font-size: 1.5rem;
    line-height: 1.2;
}

.reimbursement-concept-summary-list {
    display: grid;
    gap: .65rem;
}

.reimbursement-concept-summary-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdfb;
}

.concept-summary-number {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    background: var(--green-dark);
    font-size: .78rem;
    font-weight: 900;
}

.concept-summary-main {
    display: grid;
    min-width: 0;
}

.concept-summary-main strong,
.concept-summary-main small {
    overflow-wrap: anywhere;
}

.concept-summary-main small {
    color: var(--muted);
}

.concept-summary-amount {
    color: var(--ink);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .concept-list-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .concept-total-card {
        min-width: 0;
        text-align: left;
    }

    .reimbursement-concept-summary-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .concept-summary-amount {
        grid-column: 2;
    }
}


/* v1.2.11 — reimbursement detail layout repair, based on last known working app.css */

/* Keep all hidden elements truly hidden, even when their component uses flex/grid. */
[hidden] {
    display: none !important;
}

/* Reimbursement header figures */
.reimbursement-amounts,
.reimbursement-kpis,
.reimbursement-summary-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reimbursement-amounts > div,
.reimbursement-kpis > div,
.reimbursement-summary-kpis > div {
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdfb;
}

.reimbursement-amounts span,
.reimbursement-kpis span,
.reimbursement-summary-kpis span {
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.reimbursement-amounts strong,
.reimbursement-kpis strong,
.reimbursement-summary-kpis strong {
    display: block;
    color: var(--ink);
    font-size: 1.22rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Reimbursement case facts */
.reimbursement-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.reimbursement-facts > div {
    min-width: 0;
    padding: .15rem 0;
}

.reimbursement-facts span {
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.reimbursement-facts strong,
.reimbursement-facts small {
    display: block;
    overflow-wrap: anywhere;
}

.reimbursement-facts strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.reimbursement-facts small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .85rem;
}

/* Reimbursement concepts */
.reimbursement-concept-summary-list {
    display: grid;
    gap: .75rem;
}

.reimbursement-concept-summary-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdfb;
}

.concept-summary-number {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    background: var(--green-dark);
    font-size: .78rem;
    font-weight: 900;
}

.concept-summary-main {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.concept-summary-main strong,
.concept-summary-main small {
    overflow-wrap: anywhere;
}

.concept-summary-main small {
    color: var(--muted);
}

.concept-summary-amount {
    white-space: nowrap;
    color: var(--ink);
}

/* Admin action form */
.reimbursement-action-form,
.reimbursement-manage-case form,
.manage-case-panel form,
.case-action-panel form {
    display: grid;
    gap: 1rem;
}

.reimbursement-action-form label,
.reimbursement-manage-case label,
.manage-case-panel label,
.case-action-panel label {
    display: grid;
    gap: .4rem;
}

.reimbursement-action-form textarea,
.reimbursement-manage-case textarea,
.manage-case-panel textarea,
.case-action-panel textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
}

.reimbursement-action-buttons,
.manage-case-actions,
.case-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.reimbursement-action-buttons .button,
.manage-case-actions .button,
.case-action-buttons .button {
    margin: 0;
}

@media (max-width: 1100px) {
    .reimbursement-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reimbursement-amounts,
    .reimbursement-kpis,
    .reimbursement-summary-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .reimbursement-facts,
    .reimbursement-amounts,
    .reimbursement-kpis,
    .reimbursement-summary-kpis {
        grid-template-columns: 1fr;
    }

    .reimbursement-concept-summary-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .concept-summary-amount {
        grid-column: 2;
    }

    .reimbursement-action-buttons,
    .manage-case-actions,
    .case-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .reimbursement-action-buttons .button,
    .manage-case-actions .button,
    .case-action-buttons .button {
        width: 100%;
    }
}


/* v1.2.12 — reimbursements summary list */
.reimbursement-list {
    display: grid;
    gap: .85rem;
}

.reimbursement-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .28fr) minmax(190px, auto);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.reimbursement-row:hover {
    border-color: #78a98a;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.reimbursement-row:focus-visible {
    outline: 3px solid rgba(47, 127, 79, .28);
    outline-offset: 2px;
}

.reimbursement-row > div {
    min-width: 0;
}

.reimbursement-row > div:first-child {
    display: grid;
    gap: .18rem;
}

.reimbursement-row > div:first-child strong {
    color: var(--green-dark);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .035em;
}

.reimbursement-row > div:first-child span {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.reimbursement-row > div:first-child small {
    color: var(--muted);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.reimbursement-row-amount {
    display: grid;
    justify-items: end;
    text-align: right;
}

.reimbursement-row-amount strong {
    display: block;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: nowrap;
}

.reimbursement-row-amount small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .78rem;
}

.reimbursement-row > div:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reimbursement-row .status-badge {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

@media (max-width: 980px) {
    .reimbursement-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .reimbursement-row > div:last-child {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .reimbursement-row-amount {
        justify-items: end;
    }
}

@media (max-width: 640px) {
    .reimbursement-row {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .reimbursement-row-amount {
        justify-items: start;
        text-align: left;
    }

    .reimbursement-row > div:last-child {
        grid-column: auto;
        justify-content: flex-start;
    }
}


/* v1.2.13 — manage reimbursement case action panel */
.reimbursement-action-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.reimbursement-action-form > label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    max-width: 760px;
    color: var(--ink);
    font-weight: 800;
}

.reimbursement-action-form textarea {
    display: block;
    width: 100% !important;
    min-height: 110px;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.reimbursement-action-form textarea:focus {
    border-color: var(--green-dark);
    outline: 3px solid rgba(47, 127, 79, .16);
    outline-offset: 1px;
}

.reimbursement-action-form .button-row,
.reimbursement-action-form .reimbursement-action-buttons,
.reimbursement-action-form > div:last-child {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: 0;
}

.reimbursement-action-form .button {
    min-height: 44px;
    margin: 0 !important;
    padding-inline: 1rem;
    white-space: nowrap;
}

.reimbursement-action-form .button-danger {
    margin-left: auto !important;
}

@media (max-width: 860px) {
    .reimbursement-action-form .button-danger {
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .reimbursement-action-form .button-row,
    .reimbursement-action-form .reimbursement-action-buttons,
    .reimbursement-action-form > div:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    .reimbursement-action-form .button {
        width: 100%;
    }
}


/* v1.2.14 — actual Manage this case classes: .action-card / .action-buttons */
.action-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.action-card > label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    width: 100%;
    max-width: 760px;
    color: var(--ink);
    font-weight: 800;
}

.action-card textarea {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 112px;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.action-card textarea:focus {
    border-color: var(--green-dark);
    outline: 3px solid rgba(47, 127, 79, .16);
    outline-offset: 1px;
}

.action-card .action-buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: 0;
}

.action-card .action-buttons .button {
    min-height: 44px;
    margin: 0 !important;
    padding-inline: 1rem;
    white-space: nowrap;
}

.action-card .action-buttons .button-danger {
    margin-left: auto !important;
}

@media (max-width: 860px) {
    .action-card .action-buttons .button-danger {
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .action-card .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-card .action-buttons .button {
        width: 100%;
    }
}


/* v1.3.0 — reimbursement calculators and controlled member revisions */
.calculator-panel {
    margin: 0 1rem 1rem;
    padding: 1rem;
    border: 1px solid #d4e1d7;
    border-radius: 12px;
    background: #fff;
}
.calculator-panel[hidden] { display: none !important; }
.calculator-panel h4 { margin: 0 0 .85rem; color: var(--green-dark); }
.calculator-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .85rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #edf7ef;
}
.calculator-result span { color: var(--muted); font-size: .82rem; }
.calculator-result strong { color: var(--green-dark); font-size: 1.2rem; }
.member-edit-permissions {
    margin: 0 1rem 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.member-edit-permissions summary {
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.editable-field-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .75rem;
}
.editable-field-option {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .65rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fafcfb;
    font-size: .85rem;
    font-weight: 600;
}
.change-pending-label { color: #8a5a00 !important; font-weight: 800; }
.pending-change-panel { display: grid; gap: 1rem; }
.change-review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5c66c;
    border-radius: 12px;
    background: #fffaf0;
}
.change-review-card > div { display: grid; align-content: start; gap: .25rem; }
.change-review-card small { color: var(--muted); }
.change-review-form { display: grid; gap: .65rem; }
.change-review-form label { display: grid; gap: .35rem; font-weight: 800; }
.member-calculation-edit {
    margin-bottom: .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdfb;
}
.member-calculation-edit summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}
.member-calculation-edit form { padding: 0 1rem 1rem; }
.member-item-change-form .button { margin-top: .75rem; }

@media (max-width: 900px) {
    .editable-field-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .change-review-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .editable-field-list { grid-template-columns: 1fr; }
    .member-calculation-edit summary { flex-direction: column; }
}


/* v1.3.1 — persistent reimbursement drafts */
.reimbursement-draft-list {
    display: grid;
    gap: .75rem;
}
.reimbursement-draft-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fffaf0;
    color: inherit;
    text-decoration: none;
}
.reimbursement-draft-row:hover {
    border-color: #c9a84f;
    box-shadow: var(--shadow-sm);
}
.reimbursement-draft-row > div:first-child {
    display: grid;
    gap: .15rem;
    min-width: 0;
}
.reimbursement-draft-row > div:first-child span,
.reimbursement-draft-row > div:first-child small {
    overflow-wrap: anywhere;
}
.reimbursement-draft-row > div:nth-child(2) {
    display: grid;
    gap: .15rem;
    text-align: right;
}
.reimbursement-draft-row > div:nth-child(2) span {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 800;
}
.reimbursement-draft-actions .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
@media (max-width: 760px) {
    .reimbursement-draft-row {
        grid-template-columns: 1fr;
    }
    .reimbursement-draft-row > div:nth-child(2) {
        text-align: left;
    }
}


/* v1.3.2 — guided reimbursement concept builder */
.concept-add-bar {
    display: grid;
    grid-template-columns: minmax(240px, 420px) auto;
    align-items: end;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #cfe0d3;
    border-radius: 12px;
    background: #f4f9f5;
}

.concept-add-bar label {
    display: grid;
    gap: .4rem;
    color: var(--ink);
    font-weight: 800;
}

.concept-editor-host {
    margin-bottom: 1.25rem;
}

.concept-editor-host[hidden] {
    display: none !important;
}

.concept-editor-card {
    overflow: hidden;
    border: 1px solid #8fb39a;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 95, 55, .09);
}

.concept-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #d8e5db;
    background: #edf7ef;
}

.concept-editor-header h4,
.concept-editor-header p {
    margin: 0;
}

.concept-editor-card > .concept-main-fields {
    padding: 1rem 1.15rem;
}

.concept-editor-card .calculator-panel {
    margin-inline: 1.15rem;
}

.concept-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border);
    background: #fafcfb;
}

.concept-saved-area {
    padding-top: .25rem;
}

.concept-saved-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.concept-saved-heading h4,
.concept-saved-heading p {
    margin: 0;
}

.concept-saved-heading p {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .88rem;
}

.saved-concept-list {
    display: grid;
    gap: .65rem;
}

.saved-concept-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.saved-concept-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    background: var(--green-dark);
    font-size: .78rem;
    font-weight: 900;
}

.saved-concept-main {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.saved-concept-main strong,
.saved-concept-main small {
    overflow-wrap: anywhere;
}

.saved-concept-main small {
    color: var(--muted);
}

.saved-concept-amount {
    color: var(--ink);
    font-size: 1.06rem;
    white-space: nowrap;
}

.saved-concept-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.danger-text {
    color: #a62b2b;
}

.compact-empty-state {
    padding: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fafcfb;
    text-align: center;
}

.compact-empty-state[hidden] {
    display: none !important;
}

.compact-empty-state strong,
.compact-empty-state p {
    display: block;
    margin: 0;
}

.compact-empty-state p {
    margin-top: .25rem;
    color: var(--muted);
}

.concept-grand-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #8fb39a;
    border-radius: 12px;
    background: #edf7ef;
}

.concept-grand-total span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.concept-grand-total strong {
    color: var(--green-dark);
    font-size: 1.5rem;
}

@media (max-width: 860px) {
    .saved-concept-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .saved-concept-actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .concept-add-bar {
        grid-template-columns: 1fr;
    }

    .concept-add-bar .button {
        width: 100%;
    }

    .concept-editor-actions {
        flex-direction: column-reverse;
    }

    .concept-editor-actions .button {
        width: 100%;
    }

    .concept-saved-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .saved-concept-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .saved-concept-amount,
    .saved-concept-actions {
        grid-column: 2;
    }

    .saved-concept-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .concept-grand-total {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v1.3.12 — global read-only member view */
.member-view-banner {
    margin: 0 1.5rem;
    padding: .8rem 1rem;
    border: 1px solid #d5a72d;
    border-radius: 10px;
    background: #fff8df;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}
.member-view-banner > strong { color: #7a5600; }
.inline-form { display: inline-flex; margin: 0; }
@media (max-width: 760px) {
    .member-view-banner { margin: 0 1rem; }
}

/* v1.3.18 — reimbursement lifecycle band */
.reimbursement-lifecycle-panel{background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:18px;padding:20px 22px;margin-bottom:20px;overflow:hidden}.reimbursement-lifecycle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.reimbursement-lifecycle-head h2{margin:2px 0 0}.reimbursement-phase-counter{font-size:.82rem;font-weight:700;color:var(--muted,#667085);white-space:nowrap}.reimbursement-lifecycle{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));list-style:none;margin:0;padding:0;gap:0}.reimbursement-lifecycle-step{position:relative;display:flex;gap:9px;align-items:flex-start;min-width:0;padding:0 12px 0 0}.reimbursement-lifecycle-step:not(:last-child)::after{content:"";position:absolute;top:16px;left:34px;right:0;height:3px;background:#e5e7eb;z-index:0}.reimbursement-lifecycle-step.is-complete:not(:last-child)::after{background:#9fc9b3}.reimbursement-lifecycle-marker{position:relative;z-index:1;flex:0 0 32px;width:32px;height:32px;border-radius:999px;display:grid;place-items:center;border:2px solid #d0d5dd;background:#fff;color:#667085;font-weight:800;font-size:.78rem}.reimbursement-lifecycle-step.is-complete .reimbursement-lifecycle-marker{background:#e9f6ef;border-color:#82b99c;color:#216b45}.reimbursement-lifecycle-step.is-current .reimbursement-lifecycle-marker{background:var(--brand,#244e72);border-color:var(--brand,#244e72);color:#fff;box-shadow:0 0 0 4px rgba(36,78,114,.10)}.reimbursement-lifecycle-step.is-stopped .reimbursement-lifecycle-marker{background:#fff5e8;border-color:#dc8b28;color:#9a5b0b}.reimbursement-lifecycle-copy{min-width:0;display:flex;flex-direction:column;padding-top:1px}.reimbursement-lifecycle-copy strong{font-size:.84rem;line-height:1.2;color:#253041}.reimbursement-lifecycle-copy span{font-size:.76rem;line-height:1.25;color:#475467;margin-top:4px}.reimbursement-lifecycle-copy small{font-size:.7rem;line-height:1.25;color:#98a2b3;margin-top:3px;overflow-wrap:anywhere}.reimbursement-lifecycle-step.is-current .reimbursement-lifecycle-copy strong{color:var(--brand,#244e72)}.reimbursement-lifecycle-step.is-future .reimbursement-lifecycle-copy{opacity:.62}.reimbursement-member-action-alert{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-top:18px;padding:14px 16px;border-radius:12px;border:1px solid #f0c36a;background:#fff8e8}.reimbursement-member-action-alert strong{display:block;color:#7a4b00}.reimbursement-member-action-alert p{margin:4px 0 0;color:#694b19;font-size:.9rem}.reimbursement-member-waiting-note{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:18px;padding:12px 14px;border-radius:12px;background:#f6f8fa;color:#475467;font-size:.88rem}.reimbursement-member-waiting-note strong{color:#344054}
@media (max-width:1050px){.reimbursement-lifecycle{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}.reimbursement-lifecycle-step:nth-child(3)::after{display:none}}
@media (max-width:680px){.reimbursement-lifecycle-panel{padding:16px}.reimbursement-lifecycle-head{align-items:flex-start}.reimbursement-lifecycle{grid-template-columns:1fr;gap:10px}.reimbursement-lifecycle-step{padding:0 0 12px}.reimbursement-lifecycle-step:not(:last-child)::after{top:32px;left:15px;right:auto;width:3px;height:calc(100% - 20px)}.reimbursement-lifecycle-copy strong{font-size:.92rem}.reimbursement-lifecycle-copy span{font-size:.82rem}.reimbursement-lifecycle-copy small{font-size:.76rem}.reimbursement-member-action-alert{flex-direction:column}.reimbursement-phase-counter{white-space:normal}}

/* v1.3.23 · Membership year payment indicators */
.membership-year-badges { display: flex; flex-wrap: wrap; gap: .32rem; align-items: center; min-width: 8rem; }
.membership-year-badges .badge { min-width: 3.15rem; justify-content: center; cursor: default; }

/* Reimbursement justification workflow v1.3.24 */
.evidence-requirement-list,.document-file-list{display:grid;gap:.75rem;margin:1rem 0}
.evidence-requirement-row,.document-file-row{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;border:1px solid var(--border,#dfe5e2);border-radius:12px;padding:1rem;background:var(--surface,#fff)}
.evidence-requirement-row>div,.document-file-row>div{min-width:0;display:grid;gap:.25rem}
.evidence-requirement-row small,.document-file-row small,.document-requirement-card small{color:var(--muted,#66736d)}
.evidence-add-form{margin-top:1rem}
.document-requirement-card{border:1px solid var(--border,#dfe5e2);border-radius:14px;padding:1rem;margin:1rem 0;background:var(--surface,#fff)}
.document-requirement-card.needs-action{border-inline-start:4px solid #c58b00}
.document-requirement-card>header{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;margin-bottom:.65rem}
.document-requirement-card h3{margin:.15rem 0 0}
.document-review-kpis{display:flex;gap:.5rem;flex-wrap:wrap}
.document-review-kpis span{padding:.35rem .65rem;border:1px solid var(--border,#dfe5e2);border-radius:999px;font-size:.85rem}
.document-review-actions{min-width:min(100%,360px);display:grid;gap:.5rem}
.document-review-actions input{width:100%}
.supporting-document-upload{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--border,#dfe5e2)}
.supporting-document-upload label{flex:1 1 300px}
.justification-submit-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem}
.status-success{background:#e6f5ec!important;color:#176b3a!important;border-color:#b9dfc8!important}
@media(max-width:760px){.evidence-requirement-row,.document-file-row,.document-requirement-card>header,.justification-submit-card{flex-direction:column}.document-review-actions{width:100%;min-width:0}}

/* v1.3.29 — reusable bank accounts inside reimbursement payment details */
.saved-bank-account-list{display:grid;gap:10px;margin-top:12px}.saved-bank-account-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--border,#d9e0dc);border-radius:12px;background:#fff}.saved-bank-account-row>div:first-child{display:grid;gap:2px}.saved-bank-account-row span,.saved-bank-account-row small{display:block}.bank-proof-card{margin-top:14px}.bank-proof-review{margin-top:16px}.reimbursement-payment-details .document-file-list{margin-top:12px}@media(max-width:760px){.saved-bank-account-row{align-items:flex-start;flex-direction:column}.saved-bank-account-row .button-row{width:100%;justify-content:space-between;flex-wrap:wrap}}

/* v1.3.30 - locked member reimbursement concept details */
.member-concept-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;margin-top:1rem;padding:1rem;border:1px solid var(--border,#dfe7e2);border-radius:12px;background:#f8faf9}.member-concept-readonly-grid>div{min-width:0}.member-concept-readonly-grid span{display:block;font-size:.78rem;color:var(--muted,#667085);margin-bottom:.18rem}.member-concept-readonly-grid strong{display:block;overflow-wrap:anywhere}.member-concept-readonly-grid+*{margin-top:.5rem}@media(max-width:700px){.member-concept-readonly-grid{grid-template-columns:1fr}}

/* v1.3.33 - EURYO position capacity and assignment history */
.role-capacity-panel{margin-bottom:1rem}.role-capacity-table-wrap{overflow-x:auto}.role-capacity-table{min-width:720px}.role-capacity-table td,.role-capacity-table th{vertical-align:middle}.role-capacity-input{width:120px!important;max-width:120px}.role-holder-list{display:block;color:var(--muted);margin-top:.2rem}.role-capacity-count{display:inline-flex;padding:.2rem .5rem;border-radius:999px;background:#edf3ef;font-weight:800;font-size:.78rem}.role-capacity-count.full,.role-capacity-label.full{background:#fdecec;color:#a92d2d}.role-stat-card.role-stat-full{border-color:#e5b2b2;background:#fff8f8}.role-choice-card.role-full{background:#f7f7f7;border-color:#d9d9d9;opacity:.78}.role-choice-card.role-full input{cursor:not-allowed}.role-capacity-label{display:inline-block;margin-top:.35rem;padding:.18rem .45rem;border-radius:999px;background:#edf3ef;font-weight:800;font-size:.72rem;color:var(--muted)}.role-current-holders{display:block;margin-top:.35rem;color:var(--muted)}.role-history-list{display:grid;gap:.45rem}.role-history-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:.65rem .75rem;border:1px solid var(--border);border-radius:10px;background:#fff}.role-history-row small{display:block;color:var(--muted);margin-top:.15rem}.role-history-row time{white-space:nowrap;color:var(--muted);font-size:.8rem}@media(max-width:720px){.role-history-row{display:block}.role-history-row time{display:block;margin-top:.35rem}}


/* v1.3.42 Certificate templates */
.certificate-template-section{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}
.certificate-template-section h3{margin:.2rem 0 .35rem}
.certificate-background-status{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:.75rem;padding:.75rem 1rem;background:#f6f8f6;border:1px solid var(--border);border-radius:10px}
.certificate-placeholder-grid{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.placeholder-chip{appearance:none;border:1px solid #b8c8bb;background:#f7faf7;color:#24482a;border-radius:999px;padding:.38rem .7rem;font:600 .82rem ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}
.placeholder-chip:hover{background:#eef5ef;border-color:#86a98b}
.certificate-visual-editor{min-height:320px;text-align:center;padding:2rem}
.certificate-preview-panel{margin-top:1.5rem;border-top:1px solid var(--border);padding-top:1.25rem}
.certificate-preview-panel iframe{width:100%;min-height:720px;border:1px solid var(--border);border-radius:12px;background:#e8ece9}
.compact-panel{padding-top:1rem;padding-bottom:1rem}
@media (max-width:900px){.certificate-preview-panel iframe{min-height:520px}.certificate-visual-editor{min-height:260px;padding:1rem}}

/* ProyectSphere licensing & global quick access — v1.0 */
.topbar > div:nth-of-type(1) { min-width: 0; }
.quick-access { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.quick-access-link, .quick-access-placeholder { width: 40px; height: 40px; flex: 0 0 40px; position: relative; border: 1px solid var(--border); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #355944; }
.quick-access-link { text-decoration: none; transition: background .15s, border-color .15s; }
.quick-access-link:hover { background: var(--green-soft); border-color: #a5c7aa; }
.quick-access-placeholder { opacity: .48; cursor: default; background: #f7f9f8; }
.quick-access svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-access-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #ba2d35; color: #fff; font-size: 10px; font-weight: 800; border: 2px solid #fff; }
.topbar-actions { margin-left: 0; white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.platform-license { margin-left: 270px; padding: 1.2rem 2rem; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; align-items: center; justify-content: center; border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: .74rem; text-align: center; }
.platform-license a { color: var(--green-dark); font-weight: 750; text-decoration: none; }
.platform-license a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .topbar { flex-wrap: wrap; } .quick-access { margin-left: auto; } .topbar-actions { margin-left: 0; } }
@media (max-width: 900px) { .platform-license { margin-left: 0; } }
@media (max-width: 620px) { .topbar { gap: .55rem; } .topbar > div:nth-of-type(1) { flex: 1 1 180px; } .topbar h1 { font-size: 1.12rem; } .quick-access { gap: .35rem; } .quick-access-link, .quick-access-placeholder { width: 36px; height: 36px; flex-basis: 36px; } .platform-license { padding: .9rem 1rem; font-size: .7rem; } }
@media print { .quick-access, .platform-license { display: none !important; } }

/* EURYO CONNECT 1.0 */
.connect-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:1rem;margin-bottom:1.5rem}
.connect-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.3rem;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);display:block}
.connect-tile:hover{border-color:var(--green);transform:translateY(-1px)}
.connect-tile h3{margin:.6rem 0;font-size:1.1rem}.connect-tile p{color:var(--muted);line-height:1.6}
.connect-type{font-size:.7rem;letter-spacing:.07em;font-weight:800;color:var(--green)}
.connect-open{color:var(--green);font-weight:700;font-size:.85rem}
.connect-form{display:grid;gap:1rem;max-width:850px;margin-top:1rem}
.connect-form label{display:grid;gap:.45rem;font-weight:650}.connect-form input,.connect-form textarea{padding:.75rem;border:1px solid var(--border);border-radius:8px;font:inherit;width:100%;max-width:100%}
.connect-entry{padding:1rem 0;border-bottom:1px solid var(--border)}.connect-entry:last-child{border-bottom:0}
.connect-entry h3{margin:0 0 .55rem}.connect-entry p{line-height:1.6;overflow-wrap:anywhere}.connect-entry small{color:var(--muted)}
.connect-body{line-height:1.8;white-space:normal;overflow-wrap:anywhere;margin:1.25rem 0}
.connect-inline-form{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0}

.connect-radio{display:flex!important;align-items:center;gap:.7rem;cursor:pointer}.connect-radio input{width:auto!important}

/* CONNECT 1.3.47 — social feed layout, scoped to CONNECT */
.connect-page{max-width:1530px;margin:0 auto}
.connect-space-switch{display:flex;gap:.5rem;align-items:center;overflow-x:auto;padding:.2rem 0 1rem;scrollbar-width:thin}
.connect-space-switch a{flex:none;text-decoration:none;font-size:.85rem;border:1px solid var(--border);border-radius:999px;padding:.55rem .85rem;background:var(--surface);color:var(--ink);white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.connect-space-switch a.is-current{border-color:var(--space-accent);color:var(--space-accent);font-weight:800;box-shadow:inset 0 -2px var(--space-accent)}
.connect-space-switch a:hover{border-color:var(--green)}
.connect-space-banner{display:flex;align-items:center;gap:1rem;background:linear-gradient(115deg,var(--space-accent),#193b35);color:white;border-radius:16px;padding:1.4rem 1.6rem;margin-bottom:1.2rem}
.connect-space-banner h1{color:white;margin:.12rem 0 .25rem;font-size:clamp(1.3rem,2.5vw,1.9rem)}.connect-space-banner p{margin:.2rem 0;color:#effff3}.connect-banner-label{font-size:.7rem;font-weight:800;letter-spacing:.08em}
.connect-space-mark{font-size:2rem;background:#ffffff2c;border:1px solid #ffffff65;border-radius:18px;width:68px;height:68px;display:grid;place-items:center;flex:none}
.connect-social-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:1.2rem}
.connect-feed{min-width:0}.connect-composer,.connect-feed-card,.connect-side-card{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:1.2rem;margin:0 0 1rem;box-shadow:0 2px 10px #0c2b2210}
.connect-composer summary{cursor:pointer;display:flex;align-items:center;gap:.8rem;list-style:none;font-weight:650;color:var(--muted)}.connect-composer summary::-webkit-details-marker{display:none}
.connect-composer-avatar,.connect-author-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#e1efe5;color:#286545;font-weight:800}
.connect-compose-action{margin-left:auto;font-size:.84rem;color:var(--green);font-weight:750}
.connect-compose-form{border-top:1px solid var(--border);padding-top:1rem;margin-top:1rem}
.connect-feed-title{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin:1.2rem 0 .75rem}.connect-feed-title h2{font-size:1.05rem;margin:0}.connect-feed-title span{font-size:.83rem;color:var(--muted)}
.connect-author-row{display:flex;gap:.75rem;align-items:center}.connect-author-row strong{display:block}.connect-author-row small{display:block;color:var(--muted);margin-top:.15rem}
.connect-feed-card h3{font-size:1.14rem;margin:1rem 0 .55rem}.connect-feed-card h3 a{color:var(--ink);text-decoration:none}.connect-feed-card h3 a:hover{color:var(--green)}
.connect-feed-excerpt{line-height:1.7;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}.connect-feed-actions{border-top:1px solid var(--border);padding-top:.85rem;margin-top:1rem}.connect-feed-actions a,.connect-side-card a{font-size:.87rem;text-decoration:none;font-weight:750;color:var(--green)}
.connect-side-card h2{font-size:1rem;margin:.1rem 0 .7rem}.connect-side-card p{font-size:.88rem;line-height:1.6;color:var(--muted)}
.connect-space-stat{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--border);padding:.75rem 0;font-size:.82rem}.connect-space-stat strong{text-align:right}
@media(max-width:1050px){.connect-social-layout{grid-template-columns:minmax(0,1fr)}.connect-space-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.connect-side-card{margin:0}}
@media(max-width:640px){.connect-space-aside{display:block}.connect-space-banner{padding:1rem;align-items:flex-start}.connect-space-mark{width:44px;height:44px;border-radius:10px;font-size:1.35rem}.connect-composer,.connect-feed-card,.connect-side-card{padding:.95rem}.connect-compose-action{font-size:.72rem}}

.connect-page [data-colour=green]{--space-accent:#24633b}.connect-page [data-colour=blue]{--space-accent:#2861a0}
.connect-page [data-colour=purple]{--space-accent:#7945aa}.connect-page [data-colour=orange]{--space-accent:#b76b23}
.connect-page [data-colour=teal]{--space-accent:#0f827a}.connect-page [data-colour=rose]{--space-accent:#aa426a}
.connect-appearance-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.connect-appearance-grid article{border:1px solid var(--border);border-radius:12px;padding:1rem;background:var(--surface)}
.connect-appearance-grid label{display:block;margin:.6rem 0;font-size:.85rem;font-weight:650}
.connect-appearance-grid select{width:100%;margin-top:.3rem;padding:.5rem;border:1px solid var(--border);border-radius:8px}

.connect-page [data-colour=green]{--space-accent:#24633b}.connect-page [data-colour=blue]{--space-accent:#2861a0}
.connect-page [data-colour=purple]{--space-accent:#7945aa}.connect-page [data-colour=orange]{--space-accent:#b76b23}
.connect-page [data-colour=teal]{--space-accent:#0f827a}.connect-page [data-colour=rose]{--space-accent:#aa426a}
.connect-appearance-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.connect-appearance-grid article{border:1px solid var(--border);border-radius:12px;padding:1rem;background:var(--surface)}
.connect-appearance-grid label{display:block;margin:.6rem 0;font-size:.85rem;font-weight:650}
.connect-appearance-grid select{width:100%;margin-top:.3rem;padding:.5rem;border:1px solid var(--border);border-radius:8px}

/* CONNECT 1.3.48: compact switch and notification preferences */
.connect-space-switch .connect-switch-item {flex:0 0 auto;max-width:none;white-space:nowrap}
.connect-notify-form {display:grid;gap:12px;margin-top:12px}
.connect-notify-label {display:flex;align-items:center;gap:9px;font-size:.9rem;cursor:pointer}
.connect-notify-label input {width:18px;height:18px;accent-color:#27663d}

/* CONNECT 1.3.49 — post actions and space member list */
.connect-social-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.25rem;padding-top:.75rem;border-top:1px solid #e4eae6}
.connect-social-actions form{margin:0}
.connect-member-list{display:flex;flex-direction:column;gap:.65rem;max-height:360px;overflow:auto}
.connect-member{display:flex;align-items:center;gap:.6rem;font-size:.86rem;min-width:0}
.connect-member .connect-author-avatar{width:30px;height:30px;min-width:30px;font-size:.75rem}
.connect-member span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connect-like-count{font-size:.85rem;color:#65716a;margin-right:1rem}
/* CONNECT 1.3.50 unified stream and safe rich content */
.connect-stream-space{display:inline-flex;padding:.28rem .65rem;margin:.75rem 0 .2rem;border-radius:20px;background:#e8f2ed;color:#205c3a;font-size:.78rem;font-weight:750;text-decoration:none}
.connect-stream-links{display:flex;flex-direction:column;gap:.6rem}.connect-stream-links a{font-size:.85rem}
.connect-rich-body{overflow-wrap:anywhere;max-width:100%;line-height:1.65}
.connect-rich-body img{display:block;max-width:100%;height:auto;border-radius:9px;margin:.75rem auto}
.connect-rich-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1rem 0}
.connect-rich-body th,.connect-rich-body td{border:1px solid #d7e2da;padding:.45rem .65rem;min-width:70px}
.connect-rich-body h1{font-size:1.6rem}.connect-rich-body h2{font-size:1.3rem}.connect-rich-body h3{font-size:1.1rem}
.connect-rich-body blockquote{border-left:3px solid #28663d;padding:.4rem .8rem;margin:.65rem 0;background:#f1f6f2}
.connect-feed-excerpt.connect-rich-body{max-height:500px;overflow:hidden;mask-image:linear-gradient(#000 85%,transparent)}
.connect-editor-wrap{display:flex;flex-direction:column;gap:.35rem}
.connect-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:8px;background:#f3f7f4;border:1px solid #d9e4dc;border-radius:9px}
.connect-editor-toolbar button{padding:5px 9px;background:#fff;border:1px solid #dbe5de;border-radius:6px;cursor:pointer;color:#264732;font-size:.82rem}
.connect-editor-toolbar button:hover,.connect-editor-toolbar button:focus{border-color:#267344;background:#eaf4ed}
.connect-rich-editor{min-height:190px;max-height:520px;overflow:auto;background:#fff;border:1px solid #cbd9d0;border-radius:9px;padding:1rem;line-height:1.55;outline-offset:2px}
.connect-rich-editor:empty:before{content:attr(data-placeholder);color:#71867a;pointer-events:none}
.connect-editor-help{color:#66766e;font-size:.76rem;font-weight:400}
.connect-rich-editor table{border-collapse:collapse}.connect-rich-editor td{border:1px solid #bacdc1;padding:9px}
/* EURYO layout fix 2026-10-28: bank details in member/admin views.
   Keep the two-panel layout: the generic .detail-grid rule must not collapse
   nested .panel-grid columns to the 180px label width. */
.panel-grid.detail-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
}
.panel-grid.detail-grid > .panel,
.panel-grid.detail-grid > .embedded-panel {
    min-width: 0;
}
/* Account data remains readable without character-by-character wrapping. */
#bank-transfer-panel .detail-list > div {
    grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
}
#bank-transfer-panel .detail-list dd,
.reimbursement-bank-summary dd,
.saved-bank-account-row > div:first-child {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}
#bank-transfer-panel .detail-list dd.mono,
.reimbursement-bank-summary dd code,
.saved-bank-account-row span {
    overflow-wrap: anywhere;
    word-break: normal;
}
.reimbursement-bank-summary dl.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.5rem;
}
.reimbursement-bank-summary dl.detail-grid > div {
    display: grid;
    grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr);
    gap: .5rem;
    min-width: 0;
}
@media (max-width: 1100px) {
    .panel-grid.detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    #bank-transfer-panel .detail-list > div,
    .reimbursement-bank-summary dl.detail-grid,
    .reimbursement-bank-summary dl.detail-grid > div {
        grid-template-columns: minmax(0, 1fr);
    }
}