html,
body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100%;
}

#blazor-error-ui {
    background: #b00020;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #fff;
    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 {
    --ch-canvas: #f4f4f0;
    --ch-surface: #ffffff;
    --ch-ink: #17211b;
    --ch-muted: #69736b;
    --ch-line: #e3e5df;
    --ch-primary: #1f5d50;
    --ch-primary-soft: #e6f0ec;
    --ch-sand: #c9895b;
    --ch-sand-soft: #f6ede6;
    --ch-terracotta: #d97757;
    --ch-amber: #a66a18;
    --ch-amber-soft: #fbf0dd;
    --ch-red: #a63d32;
    --ch-red-soft: #f8e7e4;
    --ch-radius: 14px;
    --ch-shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 8px 24px rgba(20, 30, 25, .05);
}

body {
    background: var(--ch-canvas);
    color: var(--ch-ink);
    font-size: .875rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ch-ink);
    letter-spacing: -.02em;
}

.mud-typography-h4 {
    font-size: 1.55rem !important;
    font-weight: 750 !important;
    letter-spacing: -.04em;
}

.mud-typography-h5 {
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

.mud-typography-h6 {
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

.mud-button-root {
    border-radius: 9px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.mud-paper {
    border-radius: var(--ch-radius);
}

.mud-table-head .mud-table-cell {
    background: #fafbf9;
    border-bottom: 1px solid var(--ch-line);
    color: #8b948d;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mud-table-cell {
    border-color: var(--ch-line);
    font-size: .82rem;
}

.mud-table-row:hover {
    background: #fbfcfa;
}

.mud-dialog {
    border-radius: 16px !important;
}

.mud-nav-link {
    border-radius: 9px;
    font-weight: 550;
}

.ch-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
}

.ch-sidebar {
    background: var(--ch-surface);
    border-right: 1px solid var(--ch-line);
    display: flex;
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 30;
}

.ch-sidebar-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 14px 14px;
    min-width: 0;
}

.ch-brand {
    align-items: center;
    color: var(--ch-ink);
    display: flex;
    gap: 10px;
    padding: 2px 8px 18px;
    text-decoration: none;
}

.ch-brand-mark {
    align-items: center;
    background: var(--ch-primary);
    border-radius: 10px;
    color: #fff;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    letter-spacing: .02em;
    width: 32px;
}

.ch-brand-name {
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ch-workspace {
    align-items: center;
    background: #fbfcfa;
    border: 1px solid var(--ch-line);
    border-radius: 11px;
    color: var(--ch-ink);
    display: flex;
    gap: 9px;
    margin-bottom: 14px;
    padding: 8px 10px;
    text-decoration: none;
}

.ch-workspace:hover {
    border-color: #cbd4cc;
}

.ch-workspace-avatar {
    align-items: center;
    background: var(--ch-sand-soft);
    border-radius: 8px;
    color: #7a4a28;
    display: flex;
    flex: none;
    font-size: .68rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    overflow: hidden;
    width: 28px;
}

.ch-workspace-avatar img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ch-workspace-copy {
    flex: 1;
    min-width: 0;
}

.ch-workspace-eyebrow {
    color: var(--ch-muted);
    display: block;
    font-size: .62rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ch-workspace-name {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.ch-nav-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 6px;
}

.ch-nav-label {
    color: #9aa29b;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .09em;
    margin: 12px 10px 6px;
    text-transform: uppercase;
}

.ch-nav-link {
    align-items: center;
    border-radius: 9px;
    color: #4e5a52;
    display: flex;
    font-size: .78rem;
    font-weight: 550;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
}

.ch-nav-link:hover {
    background: #f6f8f5;
    color: var(--ch-ink);
}

.ch-nav-link.active {
    background: var(--ch-primary-soft);
    color: var(--ch-primary);
    font-weight: 750;
}

.ch-nav-link .mud-icon-root {
    font-size: 1.08rem;
    opacity: .92;
}

.ch-nav-badge {
    background: var(--ch-red-soft);
    border-radius: 20px;
    color: var(--ch-red);
    font-size: .58rem;
    font-weight: 800;
    margin-left: auto;
    padding: 1px 6px;
}

.ch-sidebar-footer {
    border-top: 1px solid var(--ch-line);
    margin-top: 10px;
    padding-top: 8px;
}

.ch-nav-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.ch-user-chip {
    align-items: center;
    display: flex;
    gap: 9px;
    padding: 8px;
}

.ch-avatar {
    align-items: center;
    background: #dfe9e5;
    border-radius: 50%;
    color: var(--ch-primary);
    display: flex;
    flex: none;
    font-size: .68rem;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.ch-user-copy {
    min-width: 0;
}

.ch-user-copy b {
    display: block;
    font-size: .74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-user-copy small {
    color: var(--ch-muted);
    display: block;
    font-size: .62rem;
}

.ch-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ch-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ch-line);
    display: flex;
    gap: 14px;
    height: 64px;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.ch-menu-button {
    display: none;
}

.ch-topbar-title {
    color: var(--ch-muted);
    font-size: .74rem;
}

.ch-topbar-title b {
    color: var(--ch-ink);
    font-weight: 650;
}

.ch-topbar-spacer {
    flex: 1;
}

.ch-icon-button {
    align-items: center;
    background: var(--ch-surface);
    border: 1px solid var(--ch-line);
    border-radius: 9px;
    color: #5d675f;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    width: 36px;
}

.ch-icon-button:hover {
    border-color: #cbd4cc;
    color: var(--ch-ink);
}

.ch-content {
    margin: 0 auto;
    max-width: 1280px;
    padding: 28px 30px 40px;
    width: 100%;
}

.ch-page-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.ch-page-title {
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin: 0 0 4px;
}

.ch-page-subtitle {
    color: var(--ch-muted);
    font-size: .78rem;
    margin: 0;
}

.ch-page-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.ch-context-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.ch-context-body {
    min-width: 0;
}

.ch-breadcrumb {
    align-items: center;
    color: var(--ch-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .72rem;
    gap: 6px;
    margin-bottom: 8px;
}

.ch-breadcrumb a {
    color: var(--ch-muted);
    text-decoration: none;
}

.ch-breadcrumb a:hover {
    color: var(--ch-ink);
    text-decoration: underline;
}

.ch-breadcrumb-sep {
    color: #b7c2ba;
}

.ch-context-identity {
    align-items: center;
    display: flex;
    gap: 12px;
}

.ch-avatar-lg {
    font-size: .92rem;
    height: 46px;
    width: 46px;
}

.ch-context-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ch-context-email {
    color: var(--ch-muted);
    font-size: .74rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-context-description {
    margin-top: 6px;
}

.ch-card {
    background: var(--ch-surface);
    border: 1px solid var(--ch-line);
    border-radius: var(--ch-radius);
    box-shadow: var(--ch-shadow);
}

.ch-card-body {
    padding: 16px;
}

.ch-card-head {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ch-card-head h2,
.ch-card-head h3 {
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: -.01em;
    margin: 0;
}

.ch-card-head a {
    color: var(--ch-primary);
    font-size: .7rem;
    font-weight: 700;
    margin-left: auto;
    text-decoration: none;
}

.ch-kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 16px;
}

.ch-kpi {
    padding: 15px 16px 14px;
}

.ch-kpi-label {
    color: var(--ch-muted);
    font-size: .68rem;
    font-weight: 650;
}

.ch-kpi-value {
    font-size: 1.55rem;
    font-weight: 760;
    letter-spacing: -.05em;
    line-height: 1.1;
    margin: 8px 0 4px;
}

.ch-kpi-meta {
    color: var(--ch-muted);
    font-size: .66rem;
    line-height: 1.45;
}

.ch-kpi-meta b {
    color: var(--ch-primary);
}

.ch-kpi-meta .warn {
    color: var(--ch-amber);
    font-weight: 750;
}

.ch-main-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
}

.ch-priority {
    align-items: flex-start;
    border-top: 1px solid #eef0eb;
    color: inherit;
    display: flex;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
}

a.ch-priority:hover {
    background: #f7f8f4;
}

.ch-priority:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.ch-priority-check {
    border: 1.5px solid #c9cec7;
    border-radius: 5px;
    flex: none;
    height: 17px;
    margin-top: 1px;
    width: 17px;
}

.ch-priority-check.hot {
    background: var(--ch-sand-soft);
    border-color: var(--ch-sand);
}

.ch-priority b {
    display: block;
    font-size: .76rem;
    font-weight: 650;
}

.ch-priority small {
    color: var(--ch-muted);
    display: block;
    font-size: .66rem;
    margin-top: 2px;
}

.ch-tag {
    border-radius: 20px;
    font-size: .58rem;
    font-weight: 800;
    margin-left: auto;
    padding: 3px 7px;
    white-space: nowrap;
}

.ch-tag.green {
    background: var(--ch-primary-soft);
    color: var(--ch-primary);
}

.ch-tag.amber {
    background: var(--ch-amber-soft);
    color: var(--ch-amber);
}

.ch-tag.red {
    background: var(--ch-red-soft);
    color: var(--ch-red);
}

.ch-quick-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ch-quick {
    align-items: center;
    background: #fbfcfa;
    border: 1px solid var(--ch-line);
    border-radius: 10px;
    color: var(--ch-ink);
    display: flex;
    font-size: .7rem;
    font-weight: 650;
    gap: 7px;
    padding: 9px 10px;
    text-decoration: none;
}

.ch-quick:hover {
    background: var(--ch-primary-soft);
    border-color: #cfe0d8;
    color: var(--ch-primary);
}

.ch-donut {
    background: conic-gradient(var(--ch-primary) 0 var(--ch-donut-value, 0%), #e8ebe6 var(--ch-donut-value, 0%) 100%);
    border-radius: 50%;
    display: grid;
    height: 132px;
    margin: 4px auto 10px;
    place-items: center;
    position: relative;
    width: 132px;
}

.ch-donut::before {
    background: #fff;
    border-radius: 50%;
    content: "";
    inset: 12px;
    position: absolute;
}

.ch-donut > div {
    position: relative;
    text-align: center;
}

.ch-donut b {
    display: block;
    font-size: 1.4rem;
    letter-spacing: -.05em;
}

.ch-donut small {
    color: var(--ch-muted);
    font-size: .6rem;
}

.ch-money-row {
    border-top: 1px solid #eef0eb;
    display: flex;
    font-size: .7rem;
    justify-content: space-between;
    padding: 7px 0;
}

.ch-money-row span {
    color: var(--ch-muted);
}

.ch-money-row b {
    font-weight: 650;
}

.ch-event-row {
    align-items: flex-start;
    border-top: 1px solid #eef0eb;
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.ch-event-row:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.ch-event-date {
    background: var(--ch-primary-soft);
    border-radius: 8px;
    color: var(--ch-primary);
    flex: none;
    padding: 5px 0;
    text-align: center;
    width: 34px;
}

.ch-event-date b {
    display: block;
    font-size: .82rem;
    line-height: 1;
}

.ch-event-date small {
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ch-event-row b {
    display: block;
    font-size: .72rem;
}

.ch-event-row small {
    color: var(--ch-muted);
    display: block;
    font-size: .64rem;
    margin-top: 2px;
}

.ch-event-row .ch-tag {
    margin-left: auto;
}

.ch-progress {
    background: #e8ebe6;
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}

.ch-progress > i {
    background: var(--ch-primary);
    border-radius: 20px;
    display: block;
    height: 100%;
}

.ch-text-muted {
    color: var(--ch-muted);
}

/* Member portal shell */

.ch-member-shell {
    background: #fbf7f0;
    min-height: 100vh;
}

.ch-member-header {
    align-items: center;
    background: rgba(251, 247, 240, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8dfd1;
    display: flex;
    gap: 28px;
    height: 72px;
    padding: 0 42px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.ch-member-brand {
    align-items: center;
    color: #20312a;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: -.02em;
    text-decoration: none;
}

.ch-member-brand-logo {
    border-radius: 50%;
    height: 34px;
    object-fit: cover;
    width: 34px;
}

.ch-member-brand-mark {
    align-items: center;
    background: #153f35;
    border-radius: 50%;
    color: #f4c9a8;
    display: flex;
    font-family: Inter, sans-serif;
    font-size: .62rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ch-member-nav {
    display: flex;
    gap: 22px;
}

.ch-member-nav a {
    color: #58645c;
    font-size: .78rem;
    font-weight: 600;
    padding: 25px 0 24px;
    position: relative;
    text-decoration: none;
}

.ch-member-nav a.active {
    color: var(--ch-brand-ink, #153f35);
}

.ch-member-nav a.active::after {
    background: var(--ch-brand-secondary, #d97757);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.ch-member-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.ch-member-content {
    margin: 0 auto;
    max-width: 1220px;
    padding: 30px 42px 48px;
}

.ch-member-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.04em;
    margin: 0 0 3px;
}

.ch-member-hero p {
    color: #6f7a72;
    font-size: .8rem;
    margin: 0 0 22px;
}

.ch-member-quick-access {
    margin-bottom: 18px;
}

.ch-member-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    margin-top: 12px;
}

.ch-member-quick-grid .ch-quick {
    font-size: .82rem;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
}

.ch-member-quick-grid .mud-icon-root {
    font-size: 1.3rem;
}

.ch-member-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
}

.ch-member-card {
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(55, 48, 36, .04);
}

.ch-member-event {
    background: linear-gradient(125deg, #123a30 0%, #1a4b3d 58%, #245d4d 100%);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(21, 63, 53, .18);
    color: #fff;
    min-height: 300px;
    overflow: hidden;
    padding: 28px 30px 26px;
    position: relative;
}

.ch-member-event::before,
.ch-member-event::after {
    border: 1px solid rgba(244, 201, 168, .2);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.ch-member-event::before {
    height: 420px;
    right: -170px;
    top: -160px;
    width: 420px;
}

.ch-member-event::after {
    height: 300px;
    right: -90px;
    top: -80px;
    width: 300px;
}

.ch-member-kicker {
    align-items: center;
    color: #f4c9a8;
    display: flex;
    font-size: .62rem;
    font-weight: 800;
    gap: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ch-member-kicker::before {
    background: #f4c9a8;
    content: "";
    height: 1px;
    width: 22px;
}

.ch-member-event h2 {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 16px 0 10px;
    max-width: 470px;
    position: relative;
}

.ch-member-event p {
    color: #c9d8d0;
    font-size: .78rem;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 440px;
    position: relative;
}

.ch-member-meta {
    color: #dce8e1;
    display: flex;
    font-size: .68rem;
    gap: 22px;
    margin-bottom: 20px;
    position: relative;
}

.ch-member-meta b {
    color: #fff;
    display: block;
    font-size: .74rem;
    margin-top: 2px;
}

.ch-member-actions-row {
    display: flex;
    gap: 10px;
    position: relative;
}

.ch-member-card-body {
    padding: 20px;
}

.ch-member-card-label {
    color: #9a8a76;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ch-member-profile {
    align-items: center;
    display: flex;
    gap: 11px;
    margin-top: 13px;
}

.ch-member-profile .ch-avatar {
    background: #e9d3bf;
    color: #7a5138;
    height: 44px;
    width: 44px;
}

.ch-member-profile h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    margin: 0 0 2px;
}

.ch-member-profile small {
    color: #6f7a72;
    font-size: .66rem;
}

.ch-member-fee {
    border-top: 1px dashed #ddd0bc;
    margin-top: 16px;
    padding-top: 14px;
}

.ch-member-news {
    display: grid;
    gap: 14px;
}

.ch-member-news-card {
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 14px;
    overflow: hidden;
}

.ch-member-news-cover {
    background: linear-gradient(125deg, #d98b6b, #a9573d);
    height: 82px;
}

.ch-member-news-body {
    padding: 13px 15px 15px;
}

.ch-member-news-body h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.25;
    margin: 7px 0 4px;
}

.ch-member-news-body small {
    color: #7c887f;
    font-size: .64rem;
}

.ch-chip {
    background: #faece4;
    border-radius: 20px;
    color: #9b5b3f;
    display: inline-block;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 7px;
    text-transform: uppercase;
}

.ch-member-bottom-nav {
    display: none;
}

/* Public shell */

.ch-public-shell {
    background: #f4f4f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ch-public-header {
    align-items: center;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ch-line);
    display: flex;
    gap: 14px;
    height: 64px;
    padding: 0 30px;
}

.ch-public-brand {
    align-items: center;
    display: inline-flex;
    height: 48px;
    text-decoration: none;
}

.ch-public-brand img {
    display: block;
    height: 40px;
    width: auto;
}

.ch-public-content {
    flex: 1;
    margin: 0 auto;
    max-width: 1100px;
    padding: 26px 24px 40px;
    width: 100%;
}

.ch-public-footer {
    border-top: 1px solid var(--ch-line);
    color: var(--ch-muted);
    font-size: .68rem;
    padding: 16px 30px;
    text-align: center;
}

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

    .ch-main-grid,
    .ch-member-grid {
        grid-template-columns: 1fr;
    }

    .ch-member-header {
        padding: 0 24px;
    }

    .ch-member-nav {
        display: none;
    }
}

@media (max-width: 960px) {
    .ch-shell {
        grid-template-columns: 1fr;
    }

    .ch-sidebar {
        box-shadow: 0 20px 50px rgba(20, 30, 25, .18);
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .18s ease;
        width: 250px;
    }

    .ch-sidebar.is-open {
        transform: translateX(0);
    }

    .ch-menu-button {
        display: inline-flex;
    }

    .ch-scrim {
        background: rgba(20, 30, 25, .32);
        inset: 0;
        position: fixed;
        z-index: 25;
    }

    .ch-topbar {
        padding: 0 16px;
    }

    .ch-content {
        padding: 20px 16px 32px;
    }

    .ch-page-head {
        flex-direction: column;
    }

    .ch-page-actions {
        margin-left: 0;
        width: 100%;
    }

    .ch-context-head {
        flex-direction: column;
    }

    .ch-context-head .ch-page-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .ch-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ch-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-member-header {
        height: 58px;
        padding: 0 16px;
    }

    .ch-member-brand {
        font-size: 1.1rem;
    }

    .ch-member-content {
        padding: 20px 16px 92px;
    }

    .ch-member-event {
        min-height: 0;
        padding: 22px 20px;
    }

    .ch-member-event h2 {
        font-size: 1.7rem;
    }

    .ch-member-meta {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .ch-member-bottom-nav {
        background: rgba(255, 253, 249, .97);
        border-top: 1px solid #e8dfd1;
        bottom: 0;
        display: flex;
        height: 66px;
        justify-content: space-around;
        left: 0;
        padding: 6px 4px 8px;
        position: fixed;
        right: 0;
        z-index: 20;
    }

    .ch-member-bottom-nav a {
        align-items: center;
        color: #8b958e;
        display: flex;
        flex-direction: column;
        font-size: .55rem;
        font-weight: 700;
        gap: 3px;
        text-decoration: none;
    }

    .ch-member-bottom-nav a.active {
        color: var(--ch-brand-ink, #153f35);
    }

    .ch-member-bottom-nav .mud-icon-root {
        font-size: 1.15rem;
    }
}

/* Member portal refinements */

:root {
    --ch-brand-primary: #1f5d50;
    --ch-brand-secondary: #c9895b;
    --ch-brand-ink: #153f35;
    --ch-focus-ring: #1f5d50;
    --ch-on-brand: #ffffff;
}

.ch-skip-link {
    background: #153f35;
    border-radius: 8px;
    color: #fff;
    left: -9999px;
    padding: 10px 14px;
    position: absolute;
    top: 10px;
    z-index: 100;
}

.ch-skip-link:focus {
    left: 10px;
}

.ch-member-content:focus {
    outline: none;
}

.ch-member-brand-mark {
    background: var(--ch-brand-primary, #153f35);
    color: var(--ch-on-brand, #f4c9a8);
}

.ch-member-nav a.active {
    color: var(--ch-brand-ink, #153f35);
}

.ch-member-nav a.active::after {
    background: var(--ch-brand-secondary, #d97757);
}

.ch-member-icon-button.is-active,
.ch-icon-button.is-active {
    background: var(--ch-primary-soft);
    color: var(--ch-brand-ink, #153f35);
}

.ch-member-kicker {
    color: #f4c9a8;
}

.ch-member-kicker::before {
    background: #f4c9a8;
}

.ch-progress > i {
    background: var(--ch-brand-primary, #1f5d50);
}

.ch-member-section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    margin: 0;
}

.ch-member-muted {
    color: #6f7a72;
    font-size: .76rem;
    line-height: 1.55;
    margin: 9px 0;
}

.ch-member-fee-line {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.ch-member-fee-progress {
    color: #7c887f;
    display: flex;
    font-size: .65rem;
    justify-content: space-between;
    margin-top: 6px;
}

.ch-member-fee-progress a {
    color: #9b6a4b;
    font-weight: 700;
    text-decoration: none;
}

.ch-member-confirmed {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    padding: 8px 13px;
}

.ch-member-task-panel {
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
}

.ch-member-task-panel.is-clear {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 16px 20px;
}

.ch-member-task-panel.is-clear h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    margin: 0 0 2px;
}

.ch-member-task-panel.is-clear p {
    color: #6f7a72;
    font-size: .76rem;
    margin: 0;
}

.ch-member-clear-icon {
    color: var(--ch-primary, #1f5d50);
    font-size: 1.8rem !important;
}

.ch-member-task-head {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ch-member-task-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    margin: 0;
}

.ch-member-task-head span {
    color: #9a8a76;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ch-member-task {
    align-items: center;
    border-top: 1px solid #f0e7da;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 13px 0;
}

.ch-member-task h3 {
    font-size: .92rem;
    margin: 0 0 2px;
}

.ch-member-task p {
    color: #6f7a72;
    font-size: .74rem;
    margin: 0;
}

.ch-member-task.is-primary {
    background: #f7f1e7;
    border-radius: 12px;
    border-top: 0;
    margin-top: 4px;
    padding: 13px 14px;
}

.ch-member-list {
    display: grid;
    gap: 12px;
}

.ch-member-list-card {
    align-items: flex-start;
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    padding: 18px;
}

.ch-member-list-copy {
    flex: 1;
    min-width: 0;
}

.ch-member-list-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.ch-member-list-head h2,
.ch-member-list-head h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.ch-member-list-copy p {
    color: #6f7a72;
    font-size: .76rem;
    line-height: 1.5;
    margin: 6px 0 0;
}

.ch-member-list-meta {
    color: #7c887f;
    display: flex;
    flex-wrap: wrap;
    font-size: .66rem;
    gap: 5px 16px;
    margin-top: 10px;
}

.ch-member-list-meta span {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.ch-member-list-meta .mud-icon-root {
    font-size: .95rem;
}

.ch-member-list-actions {
    align-items: center;
    display: flex;
}

.ch-member-date-block {
    background: #f6ede6;
    border-radius: 12px;
    min-width: 54px;
    padding: 8px 9px;
    text-align: center;
}

.ch-member-date-block span {
    color: #9b5b3f;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1;
}

.ch-member-date-block small {
    color: #9b5b3f;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ch-member-doc-icon {
    align-items: center;
    background: #f6ede6;
    border-radius: 12px;
    color: #9b5b3f;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.ch-member-pager {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 20px;
}

.ch-member-empty {
    background: #fffdf9;
    border: 1px dashed #e0d6c6;
    border-radius: 16px;
    padding: 38px 20px;
    text-align: center;
}

.ch-member-empty h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    margin: 8px 0 0;
}

.ch-member-empty p {
    color: #6f7a72;
    font-size: .78rem;
    margin: 6px auto 16px;
    max-width: 420px;
}

.ch-member-empty-icon {
    color: #b9a68e;
    font-size: 2rem !important;
}

.ch-member-state {
    align-items: flex-start;
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
}

.ch-member-state.is-error {
    background: #fdf3f1;
    border-color: #e7c4bf;
}

.ch-member-state-icon {
    color: #a63d32;
    flex: 0 0 auto;
    font-size: 1.75rem !important;
    margin-top: 2px;
}

.ch-member-state-copy {
    flex: 1;
    min-width: 0;
}

.ch-member-state-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    margin: 0;
}

.ch-member-state-copy p {
    color: #5d675f;
    font-size: .8rem;
    margin: 6px 0 0;
}

.ch-member-state-actions {
    align-self: center;
    flex: 0 0 auto;
}

.ch-member-status {
    align-items: center;
    border: 1px solid #cfe2d8;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 14px;
}

.ch-member-status.is-success {
    background: #eef7f1;
    color: #215a43;
}

.ch-member-status.is-error {
    background: #fdf3f1;
    border-color: #e7c4bf;
    color: #8d2e26;
}

.ch-member-status-icon {
    flex: 0 0 auto;
}

.ch-member-search {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.ch-member-search .mud-input-control {
    flex: 1;
}

.ch-member-toolbar {
    margin-bottom: 18px;
}

.ch-member-org-list {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.ch-member-org-card {
    align-items: center;
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    color: inherit;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
}

.ch-member-org-avatar {
    align-items: center;
    background: var(--ch-brand-primary, #1f5d50);
    border-radius: 50%;
    color: var(--ch-on-brand, #fff);
    display: flex;
    font-size: .8rem;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.ch-member-org-avatar img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ch-member-org-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ch-member-org-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.ch-member-org-copy small {
    color: #7c887f;
    font-size: .68rem;
}

.ch-member-more-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ch-member-more-card {
    align-items: flex-start;
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 16px;
    color: inherit;
    display: flex;
    gap: 13px;
    padding: 16px 18px;
    text-decoration: none;
}

.ch-member-more-card span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ch-member-more-card strong {
    font-size: .92rem;
}

.ch-member-more-card small {
    color: #6f7a72;
    font-size: .72rem;
    line-height: 1.4;
}

.ch-member-more-icon {
    color: var(--ch-primary, #1f5d50);
    font-size: 1.35rem !important;
}

.ch-member-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.ch-member-summary {
    background: #fffdf9;
    border: 1px solid #e8dfd1;
    border-radius: 14px;
    padding: 13px 14px;
}

.ch-member-summary span {
    color: #8b948d;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ch-member-summary strong {
    display: block;
    font-size: .92rem;
    margin-top: 4px;
}

.ch-progress-lg {
    height: 9px;
    margin-bottom: 6px;
}

.ch-member-details {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0;
}

.ch-member-details div {
    background: #faf6ef;
    border-radius: 10px;
    padding: 9px 11px;
}

.ch-member-details dt {
    color: #8b948d;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ch-member-details dd {
    font-size: .8rem;
    margin: 3px 0 0;
}

.ch-member-amounts {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(60px, 1fr));
    margin: 0;
    text-align: right;
}

.ch-member-amounts dt {
    color: #8b948d;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ch-member-amounts dd {
    font-size: .78rem;
    font-weight: 700;
    margin: 1px 0 0;
}

.ch-member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ch-member-chips .ch-tag,
.ch-member-list-head .ch-tag {
    margin-left: 0;
}

.ch-tag.grey {
    background: #eef0ec;
    color: #5d675f;
}

.ch-member-warning {
    align-items: center;
    color: #a66a18;
    display: flex;
    font-size: .72rem;
    gap: 5px;
    margin: 8px 0 0;
}

.ch-member-warning .mud-icon-root {
    font-size: .95rem;
}

.ch-member-news-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.ch-member-news-head .ch-tag {
    margin-left: 0;
}

.ch-member-news-body h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 7px 0 4px;
}

.ch-member-news-body p {
    color: #6f7a72;
    font-size: .76rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.ch-member-details-help {
    border-top: 1px solid #f0e7da;
    margin-top: 8px;
    padding-top: 8px;
}

.ch-member-details-help summary {
    color: var(--ch-brand-ink, #153f35);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 700;
}

.ch-member-details-help p {
    color: #6f7a72;
    font-size: .74rem;
    margin: 6px 0 0;
}

.ch-member-actions .ch-icon-button,
.ch-member-actions .ch-avatar {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.ch-member-list-actions .mud-button-root,
.ch-member-task .mud-button-root {
    white-space: nowrap;
}

.ch-member-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
    .ch-member-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-member-details {
        grid-template-columns: 1fr;
    }

    .ch-member-more-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ch-member-state {
        flex-direction: column;
    }

    .ch-member-state-actions {
        width: 100%;
    }

    .ch-member-state-actions .mud-button-root {
        width: 100%;
    }

    .ch-member-task,
    .ch-member-list-card {
        align-items: stretch;
        flex-direction: column;
    }

    .ch-member-list-card {
        gap: 12px;
    }

    .ch-member-list-actions,
    .ch-member-task .mud-button-root {
        width: 100%;
    }

    .ch-member-list-actions .mud-button-root {
        width: 100%;
    }

    .ch-member-list-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ch-member-date-block {
        align-items: baseline;
        display: inline-flex;
        gap: 6px;
        min-width: 0;
        padding: 6px 10px;
        width: fit-content;
    }

    .ch-member-date-block span {
        font-size: 1.05rem;
    }

    .ch-member-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }

    .ch-member-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-member-pager {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ch-member-search {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--ch-focus-ring, #1f5d50);
    outline-offset: 2px;
}

/* Digital member card and board validation */

.ch-member-digital-card {
    background: var(--ch-brand-primary, #153f35);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(18, 58, 48, .24);
    color: var(--ch-on-brand, #fff);
    max-width: 420px;
    overflow: hidden;
    padding: 24px 26px;
    position: relative;
}

.ch-member-digital-card::after {
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    height: 320px;
    opacity: .12;
    position: absolute;
    right: -140px;
    top: -150px;
    width: 320px;
}

.ch-member-digital-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.ch-member-digital-org {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ch-member-digital-status {
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: .6rem;
    font-weight: 800;
    padding: 3px 9px;
    text-transform: uppercase;
}

.ch-member-digital-card h2 {
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    letter-spacing: -.03em;
    margin: 18px 0 2px;
    position: relative;
    z-index: 1;
}

.ch-member-digital-number {
    color: inherit;
    font-size: .72rem;
    margin: 0;
    opacity: .82;
}

.ch-member-digital-qr {
    background: #fff;
    border-radius: 14px;
    margin: 18px auto 0;
    max-width: 260px;
    padding: 10px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.ch-member-digital-qr svg {
    display: block;
    height: auto;
    width: 100%;
}

.ch-member-digital-foot {
    align-items: center;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    font-size: .68rem;
    gap: 10px;
    justify-content: space-between;
    margin-top: 14px;
    opacity: .92;
    position: relative;
    z-index: 1;
}

.ch-member-digital-refresh {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    min-height: 40px;
    padding: 8px 12px;
}

.ch-member-digital-refresh:disabled {
    cursor: default;
    opacity: .6;
}

.ch-card-check {
    max-width: 640px;
}

.ch-card-check h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin: 8px 0 4px;
}

.ch-card-check p {
    color: #6f7a72;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.ch-card-check-icon {
    color: var(--ch-brand-ink, #153f35);
    font-size: 2.3rem !important;
}

.ch-card-check-result {
    border: 1px solid transparent;
    border-radius: 18px;
    max-width: 640px;
    padding: 24px;
}

.ch-card-check-result.is-valid {
    background: #eef6f1;
    border-color: #cfe4d8;
}

.ch-card-check-result.is-invalid {
    background: #fbf0dd;
    border-color: #ecd9b9;
}

.ch-card-check-result h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    margin: 8px 0 4px;
}

.ch-card-check-result p {
    color: #5d675f;
    font-size: .8rem;
    margin: 0 0 16px;
}

.ch-card-check-result-icon {
    color: var(--ch-brand-ink, #153f35);
    font-size: 2.5rem !important;
}

.ch-card-check-result.is-invalid .ch-card-check-result-icon {
    color: var(--ch-amber, #a66a18);
}

.ch-card-check-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px 0;
}

.ch-card-check-details div {
    background: rgba(255, 255, 255, .65);
    border-radius: 10px;
    padding: 9px 11px;
}

.ch-card-check-details dt {
    color: #7c887f;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ch-card-check-details dd {
    font-size: .82rem;
    font-weight: 700;
    margin: 2px 0 0;
}

@media (max-width: 700px) {
    .ch-member-digital-card {
        border-radius: 18px;
        padding: 18px;
    }

    .ch-member-digital-card h2 {
        font-size: 1.55rem;
    }

    .ch-card-check-details {
        grid-template-columns: 1fr;
    }
}

/* Branding editor: color swatches, suggested combinations and live preview */

.ch-color-field {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ch-color-field > *:last-child {
    flex: 1 1 220px;
    min-width: 0;
}

.ch-color-swatch {
    border: 1px solid rgba(23, 33, 27, .14);
    border-radius: 12px;
    box-shadow: inset 0 0 0 3px #fff;
    flex: 0 0 46px;
    height: 46px;
    width: 46px;
}

.ch-brand-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch-brand-preset {
    align-items: center;
    background: #fff;
    border: 1px solid #e3e5df;
    border-radius: 10px;
    color: #3f4a43;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ch-brand-preset:hover {
    border-color: #b9c3bb;
}

.ch-brand-preset.is-active {
    border-color: var(--ch-brand-ink, #153f35);
    box-shadow: 0 0 0 1px var(--ch-brand-ink, #153f35);
}

.ch-brand-preset:focus-visible {
    outline: 2px solid var(--ch-focus-ring, #1f5d50);
    outline-offset: 2px;
}

.ch-brand-preset-colors {
    border-radius: 6px;
    display: flex;
    height: 24px;
    overflow: hidden;
    width: 36px;
}

.ch-brand-preset-colors span {
    flex: 1;
}

.ch-brand-preset-name {
    font-size: .72rem;
    font-weight: 600;
}

.ch-logo-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ch-logo-row > div:last-child {
    flex: 1 1 360px;
    min-width: 0;
}

.ch-logo-row input[type="file"] {
    color: #5d675f;
    font-size: .76rem;
    max-width: 100%;
    width: 420px;
}

.ch-logo-row input[type="file"]::file-selector-button {
    background: #fff;
    border: 1px solid var(--ch-brand-ink, #153f35);
    border-radius: 8px;
    color: var(--ch-brand-ink, #153f35);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-right: 10px;
    padding: 7px 14px;
}

.ch-logo-row input[type="file"]::file-selector-button:hover {
    background: #f4f4f0;
}

.ch-logo-avatar {
    background: #fff;
}

.ch-brand-preview {
    background: #f4f4f0;
    border: 1px solid #e3e5df;
    border-radius: 16px;
    overflow: hidden;
}

.ch-brand-preview-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eceee9;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
}

.ch-brand-preview-logo {
    height: 28px;
    object-fit: contain;
    width: 28px;
}

.ch-brand-preview-mark {
    align-items: center;
    background: var(--ch-preview-primary, #1f5d50);
    border-radius: 8px;
    color: var(--ch-preview-on-primary, #fff);
    display: flex;
    font-size: .6rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.ch-brand-preview-name {
    color: var(--ch-preview-ink, #1f5d50);
    font-size: .8rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-brand-preview-nav {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.ch-brand-preview-nav span {
    color: #69736b;
    font-size: .7rem;
}

.ch-brand-preview-nav .is-active {
    color: var(--ch-preview-ink, #1f5d50);
    font-weight: 700;
    position: relative;
}

.ch-brand-preview-nav .is-active::after {
    background: var(--ch-preview-secondary, #c9895b);
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.ch-brand-preview-body {
    padding: 18px 16px 20px;
}

.ch-brand-preview-kicker {
    color: var(--ch-preview-ink, #1f5d50);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ch-brand-preview-title {
    color: #17211b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    margin: 4px 0 6px;
}

.ch-brand-preview-text {
    color: #5d675f;
    font-size: .76rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.ch-brand-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch-brand-preview-button {
    background: var(--ch-preview-primary, #1f5d50);
    border-radius: 8px;
    color: var(--ch-preview-on-primary, #fff);
    font-size: .72rem;
    font-weight: 700;
    padding: 8px 12px;
}

.ch-brand-preview-button.is-outline {
    background: transparent;
    border: 1px solid var(--ch-preview-primary, #1f5d50);
    color: var(--ch-preview-ink, #1f5d50);
}

.ch-brand-preview-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.ch-brand-preview-chip {
    background: var(--ch-preview-secondary, #c9895b);
    border-radius: 999px;
    color: var(--ch-preview-on-secondary, #17211b);
    font-size: .66rem;
    font-weight: 700;
    padding: 4px 10px;
}

.ch-brand-preview-link {
    color: var(--ch-preview-ink, #1f5d50);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: underline;
}

.ch-brand-contrast {
    display: grid;
    gap: 10px;
}

.ch-brand-contrast-row {
    align-items: center;
    display: flex;
    gap: 12px;
}

.ch-brand-contrast-sample {
    align-items: center;
    border-radius: 10px;
    display: flex;
    flex: 0 0 40px;
    font-size: .8rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.ch-brand-contrast-copy {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 600px) {
    .ch-brand-preview-nav {
        display: none;
    }
}
