#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    font-size: var(--rz-root-font-size);
    --rz-white: #ffffff;
    --rz-black: #000000;
    --rz-base: #e0e0e0;
    --rz-base-50: #f5f5f5;
    --rz-base-100: #f0f0f0;
    --rz-base-200: #e0e0e0;
    --rz-base-300: #bdbdbd;
    --rz-base-400: #757575;
    --rz-base-500: #6b6b6b;
    --rz-base-600: #525252;
    --rz-base-700: #616161;
    --rz-base-800: #3d3d3d;
    --rz-base-900: #292929;
    --rz-base-light: #f0f0f0;
    --rz-base-lighter: #ffffff;
    --rz-base-dark: #525252;
    --rz-base-darker: #292929;
    --rz-primary: #004e8c;
    --rz-primary-light: #80a7c6;
    --rz-primary-lighter: #dee8f0;
    --rz-primary-dark: #00467e;
    --rz-primary-darker: #003b69;
    --rz-secondary: #666666;
    --rz-secondary-light: #b3b3b3;
    --rz-secondary-lighter: #ebebeb;
    --rz-secondary-dark: #5c5c5c;
    --rz-secondary-darker: #4d4d4d;
    --rz-info: #00666d;
    --rz-info-light: #80b3b6;
    --rz-info-lighter: #deebec;
    --rz-info-dark: #005c62;
    --rz-info-darker: #004d52;
    --rz-success: #0b6a0b;
    --rz-success-light: #85b585;
    --rz-success-lighter: #dfecdf;
    --rz-success-dark: #0a5f0a;
    --rz-success-darker: #085008;
    --rz-warning: #ffc80a;
    --rz-warning-light: #ffe485;
    --rz-warning-lighter: #fff8df;
    --rz-warning-dark: #e6b409;
    --rz-warning-darker: #bf9608;
    --rz-danger: #a4262c;
    --rz-danger-light: #d29396;
    --rz-danger-lighter: #f3e3e4;
    --rz-danger-dark: #942228;
    --rz-danger-darker: #7b1d21;
    --rz-on-base: #292929;
    --rz-on-base-light: #292929;
    --rz-on-base-lighter: #292929;
    --rz-on-base-dark: #ffffff;
    --rz-on-base-darker: #ffffff;
    --rz-on-primary: #ffffff;
    --rz-on-primary-light: #000000;
    --rz-on-primary-lighter: #003b69;
    --rz-on-primary-dark: #ffffff;
    --rz-on-primary-darker: #ffffff;
    --rz-on-secondary: #ffffff;
    --rz-on-secondary-light: #000000;
    --rz-on-secondary-lighter: #4d4d4d;
    --rz-on-secondary-dark: #ffffff;
    --rz-on-secondary-darker: #ffffff;
    --rz-on-info: #ffffff;
    --rz-on-info-light: #000000;
    --rz-on-info-lighter: #004d52;
    --rz-on-info-dark: #ffffff;
    --rz-on-info-darker: #ffffff;
    --rz-on-success: #ffffff;
    --rz-on-success-light: #000000;
    --rz-on-success-lighter: #085008;
    --rz-on-success-dark: #ffffff;
    --rz-on-success-darker: #ffffff;
    --rz-on-warning: #000000;
    --rz-on-warning-light: #000000;
    --rz-on-warning-lighter: #000000;
    --rz-on-warning-dark: #000000;
    --rz-on-warning-darker: #000000;
    --rz-on-danger: #ffffff;
    --rz-on-danger-light: #000000;
    --rz-on-danger-lighter: #7b1d21;
    --rz-on-danger-dark: #ffffff;
    --rz-on-danger-darker: #ffffff;
    --rz-series-1: #5b8ff0;
    --rz-series-2: #56c1ea;
    --rz-series-3: #a97bf0;
    --rz-series-4: #f4709a;
    --rz-series-5: #2ebfae;
    --rz-series-6: #ffb83d;
    --rz-series-7: #f7875c;
    --rz-series-8: #8d9ab0;
    --rz-series-9: #a3c0f4;
    --rz-series-10: #9cd9f0;
    --rz-series-11: #d6c0f8;
    --rz-series-12: #f8b9cd;
    --rz-series-13: #64d6c8;
    --rz-series-14: #fcd38c;
    --rz-series-15: #f8bea7;
    --rz-series-16: #bbc2cf;
    --rz-series-17: #145be0;
    --rz-series-18: #1a9dd0;
    --rz-series-19: #762de7;
    --rz-series-20: #ee1f61;
    --rz-series-21: #1d796e;
    --rz-series-22: #e59100;
    --rz-series-23: #f04b0c;
    --rz-series-24: #5e6e88;
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
.platform-page > label, .platform-page form label, .platform-page .rz-card label { display: block; margin: .5rem 0; }
.platform-page label > input:not([type=checkbox]), .platform-page label > select, .platform-page label > textarea {
 display: block; width: min(100%, 40rem); padding: .65rem .8rem; margin-top: .3rem;
 border: 1px solid var(--rz-base-300); border-radius: var(--rz-border-radius); background: var(--rz-base-background-color); color: inherit;
}
.platform-page textarea { min-height: 6rem; }
.platform-table { width: 100%; border-collapse: collapse; }
.platform-table th, .platform-table td { padding: .75rem; border-bottom: 1px solid var(--rz-base-300); text-align: left; }
.platform-table th { background: var(--rz-base-100); }
.platform-content-shell { box-sizing:border-box; max-width:1440px; width:100%; margin:0 auto; padding:2rem; }
.platform-brand { padding:1.5rem 1rem; border-bottom:1px solid var(--rz-base-200); }
.platform-sidebar { border-right:1px solid var(--rz-base-200); }
.platform-sidebar .platform-navigation { padding:.65rem .6rem; }
.platform-navigation .rz-navigation-item-wrapper { border:0; border-radius:.5rem; margin:.15rem 0; }
.platform-navigation .rz-navigation-item-link { font-size:.85rem; min-height:2.7rem; gap:.5rem; }
.platform-navigation > .rz-navigation-item > .rz-navigation-item-wrapper .rz-navigation-item-text { font-weight:650; }
.platform-navigation .rz-navigation-menu { padding:.15rem 0 .4rem .65rem; }
.platform-navigation .rz-navigation-menu .rz-navigation-item-link { font-size:.8rem; min-height:2.4rem; }
.platform-navigation .rz-navigation-item-icon { font-size:1.15rem; }
.platform-page { --rz-card-border-radius:.75rem; --rz-card-shadow:0 3px 14px rgba(25,52,76,.04); --rz-card-border:1px solid var(--rz-base-200); gap:1.25rem!important; }
:root { --platform-heading-background: linear-gradient(115deg, var(--rz-base-background-color), color-mix(in srgb, var(--rz-primary) 10%, var(--rz-base-background-color))); }
.platform-page-header { display:flex; justify-content:space-between; align-items:center; gap:1rem 1.5rem; flex-wrap:wrap; padding:1rem; border-radius:.75rem; background:var(--platform-heading-background); }
.platform-page-heading { display:flex; align-items:center; gap:1rem; min-width:0; }
.platform-page-intro { min-width:0; overflow-wrap:anywhere; }
.platform-page-icon {
    display:grid; place-items:center; flex:0 0 3rem; height:3rem; border-radius:50%;
    background:var(--rz-primary); color:var(--rz-on-primary, #fff);
}
.platform-eyebrow { color:var(--rz-primary); font-size:.68rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; margin-bottom:.4rem; }
.platform-page-header h1 { font-size:1.85rem; font-weight:700; line-height:1.2; margin:0 0 .45rem; }
.platform-page-header p, .platform-description { color:var(--rz-text-secondary-color); font-size:.88rem; line-height:1.5; margin:0; max-width:55rem; }
.platform-page-actions { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.platform-page .rz-card { border-radius:.75rem; border:1px solid var(--rz-base-200); box-shadow:0 3px 14px rgba(25,52,76,.04); padding:1.3rem; }
.platform-page .rz-card .platform-description { margin:-.25rem 0 1rem; }
.platform-page .rz-data-grid { border-radius:.75rem; border:1px solid var(--rz-base-200); overflow:hidden; box-shadow:0 3px 14px rgba(25,52,76,.04); background:var(--rz-base-background-color); }
.platform-page .rz-data-grid .rz-grid-table { background:var(--rz-base-background-color); }
.platform-page .rz-data-grid .rz-grid-table th { background:var(--rz-base-100); color:var(--rz-text-secondary-color); font-size:.75rem; font-weight:650; }
.platform-page .rz-data-grid .rz-grid-table td { font-size:.82rem; padding:.85rem .9rem; }
.platform-page .rz-data-grid .rz-grid-table th, .platform-page .rz-data-grid .rz-grid-table td { border-inline-end:0; }
.platform-page .rz-data-grid .rz-button { padding:.35rem .65rem; min-height:1.9rem; font-size:.75rem; margin:.15rem; }
.platform-page .rz-tabview { border:1px solid var(--rz-base-200); border-radius:.75rem; box-shadow:0 3px 14px rgba(25,52,76,.04); background:var(--rz-base-background-color); overflow:hidden; }
.platform-page .rz-tabview-nav {
    padding:.35rem .75rem 0; border-bottom:1px solid var(--rz-base-200);
    overflow-x:auto; flex-wrap:nowrap;
}
.platform-page .rz-tabview-nav > li { flex:0 0 auto; white-space:nowrap; }
.platform-page .rz-tabview-nav > li > a { gap:.45rem; }
.platform-page > .rz-tabview { border:0; background:transparent; box-shadow:none; }
.platform-page > .rz-tabview > .rz-tabview-nav {
    border:1px solid var(--rz-base-200); border-radius:.75rem; background:var(--rz-base-background-color);
}
.platform-page > .rz-tabview > .rz-tabview-panels {
    margin-top:1rem; border:1px solid var(--rz-base-200);
    border-radius:.75rem; background:var(--rz-base-background-color);
}
.contact-profile.platform-page > .rz-tabview > .rz-tabview-panels {
    margin-top:0; border:0; background:transparent;
}
.platform-page .rz-tabview-panel { padding:1.25rem; }
.platform-page .rz-tabview-panel .rz-card { box-shadow:none; }
/* Keep enabled/disabled and hover colours from passing through low-contrast
   intermediate values while retaining movement and shadow transitions. */
.platform-page .rz-button { border-radius:.45rem; align-self:flex-start; transition-property:box-shadow, transform; }
.platform-page .rz-button:only-child { width:auto; }
.platform-page > .rz-button, .platform-page .rz-card > .rz-stack > .rz-button { align-self:flex-start; min-width:8rem; }
.platform-page input:not([type=checkbox]):not([type=radio]), .platform-page select, .platform-page textarea { border-radius:.45rem!important; }
.platform-page label { color:var(--rz-text-secondary-color); font-size:.82rem; }
.platform-page label > input, .platform-page label > textarea, .platform-page label > select { color:var(--rz-text-color); font-size:.88rem; }
.platform-page .platform-form-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem 1.25rem!important; align-items:start; }
.platform-page .platform-form-grid > label { margin:0; min-width:0; }
.platform-page .platform-form-grid > label > input:not([type=checkbox]), .platform-page .platform-form-grid > label > select, .platform-page .platform-form-grid > label > textarea { width:100%; }
.platform-page .platform-form-grid > .rz-button, .platform-page .platform-form-grid > p, .platform-page .platform-form-grid > .rz-text-body1 { grid-column:1/-1; justify-self:start; }
.platform-page .platform-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; grid-column:1/-1; margin-top:.5rem; }
.platform-list-toolbar, .platform-filter-panel { padding:1rem 1.1rem; border:1px solid var(--rz-base-200); background:var(--rz-base-background-color); border-radius:.75rem; }
.platform-filter-panel { margin-bottom:.8rem; }
.platform-list-toolbar .rz-textbox { min-width:min(100%,18rem); }
.platform-result-count { margin-inline-start:auto; font-size:.8rem; color:var(--rz-text-secondary-color); }
.platform-button-link { display:inline-flex; align-items:center; border:1px solid var(--rz-base-300); border-radius:.45rem; padding:.6rem .9rem; font-size:.8rem; text-decoration:none; white-space:nowrap; }
.platform-empty-state { text-align:center; padding:3rem 1.5rem!important; }
.platform-empty-state .rz-icon { font-size:2.25rem; color:var(--rz-primary); margin-bottom:.75rem; }
.platform-empty-state h2 { font-size:1.2rem; margin:0 0 .5rem; }
.platform-empty-state p { color:var(--rz-text-secondary-color); margin:0 0 1.25rem; }
.platform-page details:not(.platform-plain-details) { border:1px solid var(--rz-base-200); border-radius:.65rem; background:var(--rz-base-background-color); padding:.9rem 1rem; }
.platform-page details > summary { font-size:.85rem; font-weight:600; cursor:pointer; }
.platform-page details[open] > summary { margin-bottom:1rem; }
.platform-page .platform-page { padding:0; gap:1rem!important; }
.platform-field-options { grid-column:1/-1; border:1px solid var(--rz-base-200); border-radius:.5rem; padding:1rem; margin:0; }
.platform-field-options legend { font-size:.8rem; font-weight:650; padding:0 .4rem; }
.platform-field-options > div { display:flex; gap:.6rem 1.2rem; flex-wrap:wrap; }
.platform-page .platform-field-options label { display:flex; align-items:center; gap:.35rem; margin:0; }
.platform-status-badge { display:inline-flex; align-items:center; border-radius:1rem; padding:.22rem .6rem; font-size:.7rem; font-weight:650; line-height:1.4; white-space:nowrap; }
.platform-status-success { color:#126646; background:#e5f4ed; }
.platform-status-warning { color:#805300; background:#fff3d6; }
.platform-status-danger { color:#9c2734; background:#fce9ec; }
.platform-status-neutral { color:var(--rz-text-secondary-color); background:var(--rz-base-100); }
.platform-page label > .rz-datepicker, .platform-page label > .rz-dropdown, .platform-page label > .rz-numeric { display:flex; width:min(100%,40rem); margin-top:.3rem; }
.platform-page .rz-row > [class*="rz-col"] > .rz-card { height:100%; box-sizing:border-box; }
.platform-portal-header { border-bottom:1px solid var(--rz-base-200); background:var(--rz-base-background-color); padding:1rem 1.5rem; }
.platform-portal-bar { max-width:1000px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.platform-portal-bar nav { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.platform-portal-bar form { margin:0; }
.platform-portal-main { max-width:1000px; margin:auto; padding:2rem 1.5rem; }
@media(max-width:767px) {
 .platform-content-shell { padding:1.25rem 1rem; }
 .platform-page-header { gap:1rem; align-items:flex-start; }
 .platform-page-header h1 { font-size:1.6rem; }
 .platform-page-actions { width:100%; }
 .platform-page .platform-form-grid { grid-template-columns:1fr; }
 .platform-list-toolbar .rz-textbox { min-width:0; flex:1; }
 .platform-page .rz-card, .platform-page .rz-tabview-panel { padding:1rem; }
 .platform-result-count { width:100%; margin-inline-start:0; }
 .platform-page .rz-data-grid .rz-grid-table td { padding:.7rem; }
 .platform-page .rz-grid-table { min-width:46rem; }
 .platform-portal-main { padding:1.25rem 1rem; }
}
.membership-dashboard { max-width: 1600px; margin: 0 auto; --rz-tile-layout-item-border-radius:.75rem; --rz-tile-layout-item-header-background-color:transparent; --rz-tile-layout-item-border:1px solid var(--rz-base-200); --rz-tile-layout-item-shadow:0 3px 14px rgba(25,52,76,.04); }
.dashboard-toolbar, .dashboard-customiser-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.membership-dashboard > .platform-page-header { margin-bottom:1.2rem; }
.dashboard-toolbar { margin-bottom:1rem; color:var(--rz-text-secondary-color); font-size:.85rem; }
.dashboard-customiser { margin-bottom:1rem; }
.dashboard-customiser p { margin:.3rem 0 1rem; font-size:.85rem; color:var(--rz-text-secondary-color); }
.dashboard-widget-options { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; margin-bottom:1rem; }
.dashboard-widget-options label { display:flex; align-items:center; gap:.5rem; }
.dashboard-widget-options input[type="checkbox"] { width:1rem; height:1rem; accent-color:var(--rz-primary); }
.dashboard-position-controls { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin:.7rem 0; }
.dashboard-position-controls strong { width:11rem; }
.dashboard-position-controls label { display:flex; align-items:center; gap:.3rem; }
.dashboard-position-controls .rz-numeric { width:4.5rem; }
.membership-dashboard .dashboard-tile { border-radius:.75rem; border:1px solid var(--rz-base-200); box-shadow:0 3px 14px rgba(25,52,76,.04); background:var(--rz-base-background-color); }
.membership-dashboard .rz-tile-layout-item-header { background:transparent!important; border-bottom:0!important; padding:.4rem 1.1rem .1rem!important; }
.membership-dashboard .rz-tile-layout-item-content { padding:.6rem 1.1rem 1rem!important; }
.membership-dashboard .dashboard-tile-members .rz-tile-layout-item-content, .membership-dashboard .dashboard-tile-balances .rz-tile-layout-item-content, .membership-dashboard .dashboard-tile-requests .rz-tile-layout-item-content, .membership-dashboard .dashboard-tile-events .rz-tile-layout-item-content { padding:0 1.1rem .6rem!important; }
.dashboard-tile-heading { display:flex; align-items:center; justify-content:space-between; width:100%; font-weight:650; gap:.5rem; }
.dashboard-metric-icon { display:flex; padding:.4rem; border-radius:.65rem; background:var(--rz-primary-lighter); color:var(--rz-primary); }
.dashboard-metric-icon .rz-icon { font-size:1.1rem; }
.dashboard-metric { font-size:2rem; font-weight:750; line-height:1.15; letter-spacing:-.04em; margin-bottom:.45rem; }
.dashboard-money { font-size:1.65rem; white-space:nowrap; }
.dashboard-caption { font-size:.78rem; color:var(--rz-text-secondary-color); line-height:1.5; }
.dashboard-tile-members .dashboard-tile-heading, .dashboard-tile-balances .dashboard-tile-heading, .dashboard-tile-requests .dashboard-tile-heading, .dashboard-tile-events .dashboard-tile-heading { font-size:.75rem; color:var(--rz-text-secondary-color); }
.dashboard-year-chart { display:grid; gap:.9rem; margin:1rem 0; }
.dashboard-year-row { display:grid; grid-template-columns:2.5rem 1fr 3rem; align-items:center; gap:.7rem; font-size:.8rem; }
.dashboard-year-row > strong { text-align:right; }
.dashboard-year-row .rz-progressbar { height:.7rem; border-radius:1rem; }
.dashboard-footnote { color:var(--rz-text-secondary-color); font-size:.68rem; margin-bottom:0; }
.dashboard-queue-row, .dashboard-activity-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.9rem 0; border-bottom:1px solid var(--rz-base-200); font-size:.85rem; }
.dashboard-queue-row:last-child, .dashboard-activity-row:last-child { border-bottom:0; }
.dashboard-action-link { border:1px solid var(--rz-base-300); border-radius:.4rem; padding:.35rem .6rem; white-space:nowrap; font-size:.75rem; }
.dashboard-activity-row { padding:.65rem 0; }
.dashboard-activity-row strong { font-size:.82rem; }
.dashboard-activity-row .dashboard-caption { margin-top:.25rem; }
.dashboard-status { font-size:.7rem; padding:.2rem .5rem; border-radius:1rem; background:var(--rz-primary-lighter); color:var(--rz-primary); white-space:nowrap; }
.dashboard-quick-actions { display:grid; gap:.85rem; padding:.3rem 0; }
.dashboard-quick-actions .rz-button { width:100%; justify-content:center; }
.dashboard-save-status { margin-top:1rem; color:var(--rz-text-secondary-color); font-size:.72rem; }
@media(max-width:767px) {
 .membership-dashboard .dashboard-tiles { display:flex!important; flex-direction:column; height:auto!important; gap:1rem!important; }
 .membership-dashboard .dashboard-tiles .rz-tile-layout-cells { display:flex!important; flex-direction:column; height:auto!important; min-height:0!important; gap:1rem!important; }
 .membership-dashboard .dashboard-tile { position:relative!important; inset:auto!important; transform:none!important; width:100%!important; height:auto!important; min-height:130px; }
 .membership-dashboard .dashboard-tile-history, .membership-dashboard .dashboard-tile-activity, .membership-dashboard .dashboard-tile-actions { min-height:280px; }
 .dashboard-position-controls { display:grid; grid-template-columns:1fr 1fr; }
 .dashboard-position-controls strong { grid-column:1/-1; }
}

/* Payment ledger: preserve readable columns within the available page width. */
.payment-ledger-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: .75rem;
}

.payment-ledger-scroll:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 3px;
}

.payment-ledger-scroll .rz-data-grid {
    min-width: 89rem;
}

.payment-ledger-scroll .payment-payer {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.payment-ledger-hint {
    margin: 0;
    color: var(--rz-text-secondary-color);
    font-size: .85rem;
}


.nomination-queue-scroll { max-width:100%; min-width:0; overflow-x:auto; border-radius:.75rem; }
.nomination-queue-scroll:focus-visible { outline:2px solid var(--rz-primary); outline-offset:3px; }
.nomination-queue-scroll .rz-data-grid { min-width:84rem; }

.mailing-subscriber-scroll { max-width:100%; min-width:0; overflow-x:auto; border-radius:.75rem; }
.mailing-subscriber-scroll:focus-visible { outline:2px solid var(--rz-primary); outline-offset:3px; }
.mailing-subscriber-scroll .rz-data-grid { min-width:42rem; }
.mailing-subscriber-scroll.list-scope .rz-data-grid { min-width:95rem; }
.mailing-cell-text { display:block; white-space:normal; overflow-wrap:anywhere; }

.login-credentials-form { display: grid; gap: .75rem; }
.login-credentials-form input { width: 100%; }
.login-credentials-form button { margin-top: .5rem; }

.platform-skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 10000; padding: .75rem 1rem; background: var(--rz-base-background-color); color: var(--rz-text-color); border: 2px solid var(--rz-primary); border-radius: .45rem; }
.platform-skip-link:focus { transform: translateY(0); outline: 2px solid var(--rz-primary); outline-offset: 2px; }

/* Flow-based automation editing: canvas and selected-step inspector. */
.automation-flow-workspace { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(19rem,1fr); gap:1rem; align-items:start; margin:1rem 0; }
.automation-flow-canvas { min-width:0; border:1px solid var(--rz-base-300,#d5d9df); border-radius:.75rem; overflow:hidden; }
.automation-flow-canvas-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding:.8rem; background:var(--rz-base-background-color,#fff); border-bottom:1px solid var(--rz-base-300,#d5d9df); }
.automation-flow-zoom { display:flex; align-items:center; gap:.4rem; }
.automation-flow-scroll { overflow:auto; max-height:70vh; min-height:32rem; padding:1.5rem 1rem; background-color:var(--rz-base-100,#f5f7fa); background-image:radial-gradient(var(--rz-base-300,#cfd6df) 1px,transparent 1px); background-size:16px 16px; }
.automation-flow-scroll:focus-visible { outline:2px solid var(--rz-primary); outline-offset:-3px; }
.automation-flow-content { min-width:22rem; padding:.25rem; }
.automation-flow-stem { display:flex; flex-direction:column; align-items:center; }
.automation-flow-node { display:flex; flex-direction:column; gap:.5rem; width:100%; max-width:24rem; padding:0 1rem 1rem; text-align:left; border:1px solid var(--rz-base-400,#b9c3cf); border-radius:.55rem; color:var(--rz-text-color,#202631); background:var(--rz-base-background-color,#fff); box-shadow:0 2px 5px #00000012; font:inherit; cursor:pointer; overflow-wrap:anywhere; }
.automation-flow-node > strong { font-size:1rem; }
.automation-flow-node-band { display:block; margin:0 -1rem .25rem; padding:.5rem 1rem; border-radius:.5rem .5rem 0 0; color:#fff; background:#155a95; font-weight:600; }
.automation-flow-node.condition .automation-flow-node-band { background:#07685f; }
.automation-flow-node.action .automation-flow-node-band { background:#604097; }
.automation-flow-node.selected { outline:3px solid var(--rz-primary,#005a9e); outline-offset:2px; }
.automation-flow-node:focus-visible { outline:3px solid var(--rz-primary,#005a9e); outline-offset:4px; }
.automation-flow-node:disabled { cursor:wait; }
.automation-flow-node small,.automation-flow-detail { font-size:.8rem; }
.automation-flow-connector { font-size:1.5rem; color:var(--rz-text-secondary-color,#56616f); text-align:center; padding:.4rem; }
.automation-flow-branches { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; border-top:2px solid var(--rz-base-400,#b9c3cf); }
.automation-flow-branch { min-width:0; display:flex; flex-direction:column; align-items:stretch; padding:.75rem .2rem; gap:.25rem; }
.automation-flow-branch h3 { display:flex; flex-direction:column; gap:.25rem; margin:.25rem 0 1rem; font-size:1rem; text-align:center; }
.automation-flow-branch h3 small { color:var(--rz-text-secondary-color,#56616f); font-weight:400; font-size:.8rem; }
.automation-flow-branch.yes h3 { color:var(--rz-text-color,#202631); border-bottom:3px solid #146638; padding-bottom:.5rem; }
.automation-flow-branch.no h3 { color:var(--rz-text-secondary-color,#56616f); }
.automation-flow-end { padding:1rem; border:1px dashed var(--rz-base-400,#b9c3cf); border-radius:.5rem; background:var(--rz-base-background-color,#fff); }
.automation-flow-properties { min-width:0; max-height:76vh; overflow:auto; border:1px solid var(--rz-base-300,#d5d9df); border-radius:.75rem; padding:1rem; background:var(--rz-base-background-color,#fff); }
.automation-flow-properties > h3 { font-size:1.15rem; margin-top:0; }
.automation-flow-properties > fieldset { border:0; padding:0; margin:0; min-width:0; }
.automation-flow-properties .platform-form-grid { grid-template-columns:1fr; }
.automation-flow-properties .rz-card { padding:.8rem; }
@media(max-width:1100px) { .automation-flow-workspace { grid-template-columns:minmax(0,1fr); } .automation-flow-properties { max-height:none; } .automation-flow-scroll { min-height:24rem; max-height:65vh; } }

.automation-flow-node.flow-dragging { opacity:.55; }
.automation-flow-node.flow-drop-target { outline:3px dashed var(--rz-primary,#005a9e); outline-offset:3px; }

.automation-flow-node { user-select:none; }
.automation-flow-node[draggable="true"] { cursor:grab; }
.automation-flow-node.flow-dragging { cursor:grabbing; }

.automation-flow-title { display:flex; flex:1 1 12rem; flex-direction:column; gap:.25rem; min-width:0; overflow-wrap:anywhere; }
.automation-flow-title small { color:var(--rz-text-secondary-color,#56616f); }

/* Task panels are non-modal: the directory stays available and drafts survive closing. */
.platform-task-panel[hidden] { display:none!important; }
.platform-task-panel { position:fixed; top:0; bottom:0; right:0; width:min(48rem,100vw); max-width:100vw; box-sizing:border-box; z-index:950; display:flex; flex-direction:column; background:var(--rz-base-background-color); color:var(--rz-text-color); box-shadow:-.5rem 0 2rem #0003; border-left:1px solid var(--rz-base-300); }
.platform-task-panel > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; border-bottom:1px solid var(--rz-base-300); }
.platform-task-panel h2 { margin:0; font-size:1.25rem; overflow-wrap:anywhere; }
.platform-task-panel h2:focus-visible { outline:2px solid var(--rz-primary); outline-offset:4px; }
.platform-task-hint { margin:0; padding:.65rem 1.25rem; font-size:.8rem; color:var(--rz-text-secondary-color); }
.platform-task-panel-body { padding:0 1.25rem 1.25rem; overflow:auto; min-height:0; display:flex; flex-direction:column; gap:1rem; }
.platform-task-panel-body .platform-form-grid { grid-template-columns:1fr!important; }
.platform-task-panel-body .rz-card { min-width:0; }
.platform-task-panel-body .rz-tabview { min-width:0; }
.platform-task-launcher { display:flex; gap:.5rem; flex-wrap:wrap; }
.platform-workspace-tabs > .rz-tabview-nav { overflow-x:auto; flex-wrap:nowrap; }
.platform-workspace-tabs > .rz-tabview-nav > li { flex:0 0 auto; }
.platform-workspace-tabs > .rz-tabview-nav a { white-space:nowrap; }
@media(max-width:600px) { .platform-task-panel > header { padding:.75rem; } .platform-task-panel-body { padding:0 .75rem .75rem; } }

/* RadzenBody's identity transform otherwise anchors fixed drawers to scrolled content. */
.platform-body { transform:none!important; }
.platform-task-panel { top:3rem; }

.report-studio { border:1px solid var(--rz-base-300); border-radius:.65rem; background:var(--rz-base-background-color); min-width:0; }
.report-studio-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:1rem; border-bottom:1px solid var(--rz-base-300); }
.report-studio-toolbar > div:first-child { display:grid; gap:.25rem; }
.report-studio-toolbar span,.report-studio-message { font-size:.8rem; }
.report-studio-message { padding:.6rem 1rem; margin:0; border-bottom:1px solid var(--rz-base-300); }
.report-studio-workspace { display:grid; grid-template-columns:11rem minmax(0,1fr) 20rem; min-height:38rem; }
.report-studio h3 { font-size:1rem; margin:.2rem 0 .8rem; }
.report-studio-tools,.report-studio-inspector { padding:1rem; min-width:0; overflow:auto; max-height:78vh; }
.report-studio-tools { border-right:1px solid var(--rz-base-300); }
.report-studio-inspector { border-left:1px solid var(--rz-base-300); }
.report-studio-palette { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; margin-bottom:1.5rem; }
.report-studio-palette button,.report-studio-fields button { background:var(--rz-base-background-color); color:var(--rz-text-color); border:1px solid var(--rz-base-300); border-radius:.4rem; cursor:grab; padding:.6rem .35rem; }
.report-studio-palette button { display:grid; justify-items:center; gap:.25rem; font-size:.72rem; }
.report-studio-fields { display:grid; gap:.35rem; }
.report-studio-fields button { display:flex; align-items:center; gap:.35rem; text-align:left; overflow-wrap:anywhere; font-size:.8rem; }
.report-studio button:disabled { opacity:.55; cursor:default; }
.report-studio button:focus-visible { outline:2px solid var(--rz-primary); outline-offset:2px; }
.report-studio-board { padding:1rem; background-color:var(--rz-base-100); background-image:radial-gradient(var(--rz-base-300) 1px,transparent 1px); background-size:16px 16px; min-width:0; max-height:80vh; overflow:auto; }
.report-studio-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:1rem; align-content:start; }
.report-studio-widget { border:1px solid var(--rz-base-400); border-radius:.45rem; background:var(--rz-base-background-color); min-width:0; overflow:hidden; box-shadow:0 2px 6px #0001; }
.report-studio-widget.selected { outline:2px solid var(--rz-primary); outline-offset:2px; }
.report-studio-widget-header button { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; width:100%; text-align:left; border:0; border-bottom:1px solid var(--rz-base-300); background:var(--rz-base-background-color); color:var(--rz-text-color); padding:.6rem; cursor:grab; }
.report-studio-widget-header strong { flex:1; overflow-wrap:anywhere; font-size:.85rem; }
.report-studio-widget-header small { width:100%; padding-left:1.6rem; color:var(--rz-text-secondary-color); }
.report-studio-widget-preview { height:18rem; overflow:auto; padding:.5rem; }
.report-studio-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem; text-align:center; min-height:15rem; padding:.75rem; font-size:.8rem; }
.report-studio-placeholder > .rzi,.report-studio-empty > .rzi { font-size:3rem; color:var(--rz-primary); }
.report-studio-live { pointer-events:none; min-width:0; }
.report-studio-live .rz-card { padding:.5rem; box-shadow:none; }
.report-studio-widget footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--rz-base-300); padding:.25rem .5rem; font-size:.7rem; }
.report-studio-widget footer button { cursor:ew-resize; touch-action:none; border:0; background:transparent; color:var(--rz-text-color); padding:.25rem; }
.report-studio-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:28rem; text-align:center; }
.report-studio-inspector fieldset { border:0; padding:0; display:flex; flex-direction:column; gap:.85rem; min-width:0; }
.report-studio-inspector label { display:block; font-size:.8rem; }
.report-studio-inspector select,.report-studio-inspector input:not([type=checkbox]),.report-studio-inspector textarea { display:block; box-sizing:border-box; width:100%; max-width:100%; margin-top:.25rem; }
.report-studio-well { border:1px dashed var(--rz-base-500); padding:.65rem; border-radius:.4rem; display:grid; gap:.35rem; }
.report-studio-well small { font-size:.75rem; }
.report-studio-field-check { display:flex!important; align-items:center; gap:.35rem; }
.report-studio-filter { padding:.5rem 0; border-bottom:1px solid var(--rz-base-300); }
.report-drop-target { outline:3px dashed var(--rz-primary); outline-offset:-3px; }
@media(max-width:1250px) { .report-studio-workspace { grid-template-columns:9rem minmax(0,1fr); } .report-studio-inspector { grid-column:1/-1; max-height:none; border-left:0; border-top:1px solid var(--rz-base-300); } .report-studio-inspector fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; } }
@media(max-width:700px) { .report-studio-workspace { grid-template-columns:minmax(0,1fr); } .report-studio-tools { max-height:none; border-right:0; border-bottom:1px solid var(--rz-base-300); } .report-studio-palette { grid-template-columns:repeat(3,minmax(0,1fr)); } .report-studio-fields { display:flex; flex-wrap:wrap; } .report-studio-widget { grid-column:span 12!important; } .report-studio-inspector fieldset { display:flex; } .report-studio-board { min-height:24rem; max-height:65vh; } }


.contact-profile-identity, .contact-profile-section-heading, .contact-profile-card h2 {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.contact-profile-identity { gap: 1rem; min-width: 0; overflow-wrap: anywhere; }
.contact-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--rz-primary);
    color: var(--rz-on-primary, #fff);
    font-size: 1.35rem;
    font-weight: 700;
}
.platform-page-header .platform-button-link { gap:.45rem; background:var(--rz-base-background-color); }
.contact-profile details.contact-profile-actions { position: relative; padding: 0; }
.contact-profile .contact-profile-actions > summary {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    margin: 0;
}
.contact-profile-actions > summary::-webkit-details-marker { display: none; }
.contact-profile-action-list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + .3rem);
    z-index: 2;
    min-width: max-content;
    padding: .7rem;
    border: 1px solid var(--rz-base-200);
    border-radius: .5rem;
    background: var(--rz-base-background-color);
    box-shadow: 0 4px 16px rgba(25,52,76,.15);
}
.contact-profile .rz-tabview-panel { padding: 1rem 0 .25rem; }
.contact-profile .contact-profile-card { padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.contact-profile .contact-profile-section-heading { justify-content: space-between; flex-wrap: wrap; }
.contact-profile .contact-profile-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.contact-profile .contact-profile-card h2 .rz-icon { color: var(--rz-primary); }
.contact-profile .contact-profile-card p { margin: 0; }
.contact-profile-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: .5rem;
    background: var(--rz-base-100);
}
.contact-profile-entry > :first-child { min-width: 0; }
.contact-profile-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .55rem .75rem;
    margin: .8rem 0 0;
}
.contact-profile-facts dd { margin: 0; font-weight: 600; }
.contact-profile .contact-profile-voting {
    background: color-mix(in srgb, var(--rz-primary) 6%, var(--rz-base-background-color));
}
.contact-profile-type { text-transform: capitalize; }


.platform-account-form { width:min(100%, 36rem); }
.platform-route-message { width:min(calc(100% - 2rem), 42rem); margin:2rem auto; }
.platform-auth-layout { background:var(--platform-heading-background); }
.platform-auth-shell { width:min(calc(100% - 2rem), 30rem); margin:clamp(2rem, 12vh, 7rem) auto 2rem; }
.platform-auth-brand { display:flex; align-items:center; gap:.7rem; font-weight:700; }
.platform-auth-brand img { width:2rem; height:2rem; }
.platform-auth-card .platform-page-header h1 { font-size:1.5rem; margin:0; }
.platform-auth-card .platform-page-header { margin-bottom:1rem; }
.platform-auth-card .platform-page > .platform-page-header { margin-bottom:0; }
