@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Erfolgslady-Mastery workflow */
.launch-readiness {
    display: grid;
    gap: 1.2rem;
}

.launch-readiness__summary {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
    gap: 2rem;
    align-items: end;
    padding: 0 0 1.2rem;
    border-bottom: 1px solid var(--line);
}

.launch-readiness__summary h2 {
    margin: .3rem 0 0;
    color: var(--brand-primary);
    font-size: 1.45rem;
}

.launch-readiness__summary > p {
    margin: 0;
    color: var(--muted);
}

.launch-approvals {
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.launch-approvals__heading {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.launch-approvals__heading h2 {
    margin: .25rem 0 0;
    color: var(--brand-primary);
    font-size: 1.45rem;
}

.launch-approvals__heading > p {
    margin: 0;
    color: var(--muted);
}

.launch-approval-list {
    border-block: 1px solid var(--line);
}

.launch-approval-row {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.25fr) auto;
    gap: 1.2rem;
    align-items: end;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.launch-approval-row:last-child {
    border-bottom: 0;
}

.launch-approval-row__status > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
}

.launch-approval-row__status h3,
.launch-approval-row__status p {
    margin: 0;
}

.launch-approval-row__status p,
.launch-approval-row__status small,
.launch-approval-row__action small {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: .8rem;
}

.launch-approval-row textarea {
    min-height: 88px;
}

.launch-approval-row__action {
    min-width: 190px;
}

.launch-approval-row__action .button {
    width: 100%;
}

.button:disabled {
    cursor: not-allowed;
    filter: grayscale(.35);
    opacity: .52;
}

.program-welcome {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    scroll-margin-top: 6rem;
}

.program-welcome__copy h2 {
    margin: .35rem 0 .75rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.program-welcome__copy p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.program-welcome__video {
    width: 100%;
    margin: 0;
}

.mastery-workflow {
    margin: 0 0 2rem;
    padding: 1.6rem 0;
    border-block: 1px solid var(--line, #e7dfe8);
}

.mastery-workflow__heading {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(280px, 1.25fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.35rem;
}

.mastery-workflow__heading h2 {
    margin: .25rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.mastery-workflow__heading > p {
    max-width: 65ch;
    margin: 0;
    color: var(--muted);
}

.mastery-workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mastery-workflow__steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .7rem;
    min-width: 0;
    padding-left: .9rem;
    border-left: 2px solid color-mix(in srgb, var(--brand-accent) 38%, white);
}

.mastery-workflow__steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.mastery-workflow__steps strong {
    display: block;
    line-height: 1.35;
}

.mastery-workflow__steps p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.mastery-module-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 56px;
    padding: 12px 16px;
    border-top: 1px solid var(--line, #e7dfe8);
}

.mastery-admin-preview {
    width: 100%;
}

.mastery-admin-preview > details {
    margin-top: .8rem;
}

.mastery-admin-preview > details > summary {
    justify-content: flex-start;
    color: var(--brand-primary);
    font-size: .84rem;
    font-weight: 750;
}

.mastery-admin-preview__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}

.mastery-admin-preview__content ul {
    margin: .55rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: .82rem;
}

.mastery-form,
.ticket-thread {
    display: grid;
    gap: 20px;
}

.mastery-form .form-field,
.submission-answer {
    display: grid;
    gap: 7px;
}

.mastery-form label,
.mastery-form .form-field > label {
    color: var(--ink, #2f2432);
    font-weight: 700;
}

.mastery-form textarea,
.mastery-form input,
.mastery-form select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line, #d9cfdc);
    border-radius: 6px;
    background: #fff;
    color: var(--ink, #2f2432);
    font: inherit;
}

.mastery-form textarea {
    min-height: 132px;
    resize: vertical;
}

.mastery-form textarea:focus,
.mastery-form input:focus,
.mastery-form select:focus {
    outline: 3px solid color-mix(in srgb, var(--brand-primary) 24%, transparent);
    border-color: var(--brand-primary);
}

.mastery-form .check-row input {
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
}

.online-workbook {
    margin-top: 24px;
}

.online-workbook__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.online-workbook__intro h2 {
    margin: 4px 0 0;
    color: var(--brand-primary);
}

.online-workbook__intro > span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    border-radius: 6px;
    color: var(--brand-primary);
    font-size: .78rem;
    font-weight: 750;
}

.workbook-section {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, white);
    border-radius: 8px;
    background: #fff;
}

.workbook-section > summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.workbook-section > summary::-webkit-details-marker {
    display: none;
}

.workbook-section__number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 9%, white);
    color: var(--brand-primary);
    font-size: .78rem;
    font-weight: 800;
}

.workbook-section__title {
    display: grid;
    gap: 2px;
}

.workbook-section__title strong {
    color: var(--ink);
}

.workbook-section__title small {
    color: var(--muted);
}

.workbook-section__toggle {
    color: var(--brand-primary);
    font-size: 1.25rem;
    transition: transform .18s ease;
}

.workbook-section[open] .workbook-section__toggle {
    transform: rotate(45deg);
}

.workbook-section__fields {
    display: grid;
    gap: 28px;
    padding: 24px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--brand-primary) 2%, white);
}

.workbook-section__fields .form-field + .form-field {
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}

.online-workbook__save {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    background: #fff;
}

.online-workbook__save .button {
    justify-self: start;
}

.online-workbook__save small {
    color: var(--muted);
}

.lesson-workbook-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.lesson-workbook-actions p {
    margin: 0;
}

.field-error {
    color: #a12626;
    font-weight: 650;
}

.mastery-review h3,
.submission-answer h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.ticket-message {
    padding: 18px;
    border: 1px solid var(--line, #e2d9e4);
    border-radius: 6px;
    background: #fff;
}

.ticket-message--admin {
    border-left: 4px solid var(--brand-primary);
    background: #faf7fb;
}

.ticket-message small {
    display: block;
    margin: 3px 0 10px;
    color: var(--muted, #6f6472);
}

@media (max-width: 720px) {
    .launch-readiness__summary {
        grid-template-columns: 1fr;
    }

    .mastery-workflow__heading,
    .mastery-workflow__steps,
    .mastery-admin-preview__content,
    .program-welcome {
        grid-template-columns: 1fr;
    }

    .mastery-module-action {
        align-items: stretch;
        justify-content: flex-start;
    }

    .mastery-module-action .button {
        width: 100%;
        text-align: center;
    }

    .online-workbook__intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .workbook-section > summary {
        grid-template-columns: 36px minmax(0, 1fr) 20px;
        gap: 10px;
        padding: 12px;
    }

    .workbook-section__number {
        width: 36px;
        height: 36px;
    }

    .workbook-section__fields {
        padding: 18px 14px;
    }

    .lesson-workbook-actions,
    .lesson-workbook-actions .button,
    .lesson-workbook-actions .action-with-tooltip {
        width: 100%;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    .mastery-workflow__steps,
    .mastery-admin-preview__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Prata";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/prata-latin.woff2") format("woff2");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #172026;
    --muted: #665d68;
    --line: #e8dfe7;
    --soft: var(--brand-background, #faf9f8);
    --paper: var(--brand-surface, #ffffff);
    --brand-gold: var(--brand-accent);
    --brand-gold-ink: color-mix(in srgb, var(--brand-accent) 55%, black);
    --brand-teal: var(--brand-primary);
    --shadow: 0 22px 60px rgba(59, 31, 53, .11);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--brand-accent) 5%, transparent), transparent 24rem),
        var(--soft);
}

.brand-mark__logo {
    display: block;
    width: auto;
    max-width: 140px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark__text strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.brand-mark__text small {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-mark--compact .brand-mark__logo {
    max-width: 80px;
    height: 40px;
}

.guest-body {
    background:
        radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--brand-accent) 16%, transparent), transparent 28%),
        radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--brand-teal) 13%, transparent), transparent 28%),
        linear-gradient(135deg, #fffefd 0%, var(--soft) 52%, #f6eef5 100%);
}

.guest-card {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--brand-primary) 18%, white);
    box-shadow: 0 28px 75px rgba(59, 31, 53, .14);
}

.guest-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent) 58%, var(--brand-gold));
    content: "";
}

.guest-card::after {
    position: absolute;
    top: -76px;
    right: -64px;
    width: 150px;
    height: 150px;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 38%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.guest-footer {
    color: color-mix(in srgb, var(--muted) 88%, var(--brand-primary));
}

.demo-login {
    display: grid;
    gap: .28rem;
    margin: 1.15rem 0;
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, white);
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand-accent) 5%, white);
    color: var(--muted);
    font-size: .82rem;
}

.demo-login strong {
    color: var(--brand-primary);
    font-size: .88rem;
}

.demo-login code {
    color: var(--ink);
    font-size: .78rem;
}

.content-editor {
    gap: 1.25rem;
    padding: 0;
    overflow: hidden;
}

.editor-section {
    display: grid;
    gap: 1.15rem;
    padding: clamp(1.15rem, 3vw, 1.7rem);
    border-bottom: 1px solid var(--line);
}

.editor-section__header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.editor-section__header h2,
.editor-section__header p {
    margin: 0;
}

.editor-section__header h2 {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.35rem;
}

.editor-section__header p {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .86rem;
}

.editor-step {
    display: grid;
    flex: 0 0 2rem;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 10%, white);
    color: var(--brand-accent);
    font-weight: 850;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.field-label-row a {
    font-size: .78rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem;
    border: 1px solid #cec6d0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--soft);
}

.editor-toolbar button {
    min-height: 34px;
    padding: .35rem .65rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, white);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: .78rem;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
    border-color: var(--brand-accent);
    color: var(--brand-primary);
}

.editor-toolbar + textarea {
    border-radius: 0 0 10px 10px;
}

.editor-advanced {
    margin: 0 clamp(1.15rem, 3vw, 1.7rem);
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.editor-advanced summary {
    color: var(--brand-primary);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 800;
}

.editor-advanced[open] summary {
    margin-bottom: 1rem;
}

.editor-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.15rem, 3vw, 1.7rem) 1.35rem;
}

.editor-savebar > span {
    color: var(--muted);
    font-size: .8rem;
}

.structure-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: .85rem 0 0;
}

.structure-actions form {
    display: inline-flex;
    margin: 0;
}

.structure-actions button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.structure-actions--lesson {
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 720px) {
    .editor-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-savebar .actions,
    .editor-savebar .button {
        width: 100%;
    }

    .lesson-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .structure-actions--lesson {
        justify-content: flex-start;
        width: 100%;
        padding-left: 2.9rem;
    }
}

/* Einheitliche Passwortbedienung in Anmeldung, Konto und Administration. */
.password-control {
    position: relative;
}

.password-control input {
    padding-right: 6.4rem;
}

.password-control__toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    min-width: 5.25rem;
    min-height: 34px;
    padding: .35rem .65rem;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-primary) 5%, white);
    color: var(--brand-primary);
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
}

.password-control__toggle:hover {
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
}

.password-control__toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-accent) 55%, white);
    outline-offset: 2px;
}

.admin-shell,
.admin-main,
.table-wrap {
    min-width: 0;
}

.table-wrap {
    max-width: 100%;
}

@media (max-width: 720px) {
    .admin-sidebar,
    .admin-main {
        max-width: 100%;
        overflow-x: clip;
    }

    .admin-sidebar nav {
        max-width: 100%;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .admin-sidebar__bottom {
        display: flex;
        align-items: center;
        gap: .35rem;
        margin-top: .55rem;
        padding-top: .55rem;
    }

    .admin-sidebar__bottom a,
    .admin-sidebar__bottom .link-button {
        padding: .45rem .6rem;
        font-size: .78rem;
    }

    .admin-sidebar__bottom form {
        margin: 0;
    }

    .admin-sidebar__bottom small {
        display: none;
    }
}

.member-dashboard-heading {
    margin-bottom: 1.4rem;
}

.member-last-active {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.learning-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, .45fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.continue-card {
    position: relative;
    display: flex;
    min-height: 315px;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand-gold) 38%, transparent), transparent 11rem),
        linear-gradient(140deg, #66096b 0%, #4a074e 62%, #2f1835 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(62, 16, 64, .18);
    isolation: isolate;
}

.continue-card::before,
.continue-card::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    content: "";
}

.continue-card::before {
    top: -45%;
    right: -8%;
    width: 48%;
    aspect-ratio: 1;
}

.continue-card::after {
    right: 10%;
    bottom: -65%;
    width: 38%;
    aspect-ratio: 1;
}

.continue-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
}

.continue-card__eyebrow {
    margin: 0;
    color: #f1d587;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.continue-card__program {
    margin: .7rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
}

.continue-card h2 {
    max-width: 18ch;
    margin: .5rem 0 .8rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.08;
}

.continue-card__content > p:not([class]) {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, .77);
}

.continue-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.continue-card__actions .button {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(24, 8, 25, .2);
}

.continue-card__actions > span {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

.continue-card__number {
    align-self: flex-end;
    color: rgba(255, 255, 255, .1);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: .8;
}

.continue-card--complete {
    background: linear-gradient(140deg, #284f48, #17342f);
}

.learning-stats {
    display: grid;
    gap: 1rem;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 18px;
    background: #fff;
}

.stat-tile small,
.stat-tile span {
    color: var(--muted);
}

.stat-tile small {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stat-tile strong {
    margin: .15rem 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.stat-tile span {
    font-size: .75rem;
}

.member-programs {
    margin-top: 1rem;
}

.program-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.program-section-heading h2 {
    margin: .2rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.program-section-heading > span {
    color: var(--muted);
    font-size: .8rem;
}

.member-program-card {
    display: flex;
    flex-direction: column;
}

.member-program-card__cover {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.member-program-card .card__image {
    object-position: center;
    transition: transform .3s ease;
}

.member-program-card__cover:hover .card__image {
    transform: scale(1.018);
}

.member-program-card .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.program-card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}

.program-card-kicker p {
    margin: 0;
}

.program-card-kicker span {
    padding: .2rem .55rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--brand-primary) 7%, white);
    color: var(--brand-primary);
    font-size: .68rem;
    font-weight: 800;
}

.program-card-progress {
    margin-top: auto;
    padding-top: .8rem;
}

.program-card-progress > span {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .72rem;
}

.member-program-card .card__meta strong {
    color: var(--brand-primary);
    font-size: .82rem;
}

.member-program-card h2 a {
    color: inherit;
    text-decoration: none;
}

.member-program-card h2 a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.program-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem;
}

.program-card-actions a:first-child {
    color: var(--muted);
}

.program-card-actions a:last-child {
    font-weight: 750;
}

.program-hero__continue,
.program-hero__complete {
    margin-top: .8rem;
}

.member-mobile-logout {
    display: none;
}

@media (max-width: 980px) {
    .launch-approvals__heading,
    .launch-approval-row {
        grid-template-columns: 1fr;
    }

    .launch-approval-row__action {
        min-width: 0;
    }

    .learning-overview {
        grid-template-columns: 1fr;
    }

    .learning-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .learning-stats {
        grid-template-columns: 1fr;
    }

    .continue-card {
        min-height: 360px;
    }

    .continue-card__number {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
    }

    .continue-card__content {
        position: relative;
        z-index: 1;
    }

    .continue-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .program-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.portal-body {
    min-height: 100vh;
    background: #fffdf9;
}

.portal-shell {
    width: min(calc(100% - 2rem), 1240px);
    margin: 0 auto;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

.portal-header > a:first-child {
    text-decoration: none;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    min-height: min(720px, calc(100vh - 110px));
    padding: clamp(3rem, 8vw, 7rem) 0;
}

.portal-hero h1 {
    max-width: 12ch;
    margin: .6rem 0 1.2rem;
    color: var(--brand-primary);
    font-family: "Prata", Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.08;
}

.portal-hero__lead {
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-actions .button {
    min-height: 52px;
    padding-inline: 1.4rem;
}

.portal-text-link {
    color: var(--brand-primary);
    font-weight: 800;
}

.portal-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    margin: 2rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .85rem;
    list-style: none;
}

.portal-checks li::before {
    margin-right: .4rem;
    color: var(--brand-gold-ink);
    content: "✓";
    font-weight: 900;
}

.portal-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.25;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, white);
    border-radius: 46% 46% 24px 24px;
    background: color-mix(in srgb, var(--brand-accent) 8%, white);
    box-shadow: 0 35px 80px rgba(62, 24, 65, .16);
}

.portal-visual::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.portal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-visual__badge {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 32px rgba(31, 16, 32, .14);
    backdrop-filter: blur(12px);
}

.portal-visual__badge strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 2rem;
}

.portal-visual__badge span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.3;
}

.portal-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 0 6rem;
}

.portal-benefits article {
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
}

.portal-benefits article > span {
    color: var(--brand-gold-ink);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.portal-benefits h2 {
    margin: .6rem 0;
    color: var(--brand-primary);
    font-size: 1.15rem;
}

.portal-benefits p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.portal-programs {
    margin-bottom: 5rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-radius: 30px;
    background: #f6f0f5;
}

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.portal-section-heading h2 {
    margin: .3rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
}

.portal-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-program-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 1.5rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 16px 35px rgba(41, 19, 43, .1);
}

.portal-program-card--purple {
    background: linear-gradient(145deg, #66096b, #3d0640);
}

.portal-program-card--gold {
    background: linear-gradient(145deg, #8b681b, #5f450d);
}

.portal-program-card--ink {
    background: linear-gradient(145deg, #2d2a32, #17151a);
}

.portal-program-card small {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-program-card h3 {
    margin: .65rem 0;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.portal-program-card p {
    color: rgba(255, 255, 255, .78);
}

.portal-program-card > span {
    margin-top: auto;
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    font-weight: 800;
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}

.checkout-main {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.checkout-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.checkout-heading h1 {
    margin: .45rem 0 1rem;
    color: var(--brand-primary);
    font-family: "Prata", Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.12;
}

.checkout-heading > p:last-child,
.checkout-terms p,
.checkout-unavailable p {
    color: var(--muted);
    font-size: 1rem;
}

.checkout-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.checkout-offer {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(51, 25, 53, .08);
}

.checkout-offer h2 {
    margin: .45rem 0 0;
    color: var(--brand-primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.checkout-total {
    margin: .25rem 0 1.2rem;
    color: var(--muted);
    font-weight: 700;
}

.checkout-includes {
    display: grid;
    gap: .65rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.checkout-includes li::before {
    margin-right: .5rem;
    color: var(--brand-gold-ink);
    content: "✓";
    font-weight: 900;
}

.checkout-offer form {
    display: grid;
    gap: .75rem;
    margin-top: auto;
}

.checkout-consent {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
    text-align: left;
}

.checkout-consent input {
    width: 1rem;
    height: 1rem;
    margin: .16rem 0 0;
    accent-color: var(--brand-primary);
}

.checkout-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-offer .button {
    width: 100%;
    min-height: 52px;
}

.checkout-offer > small {
    display: block;
    margin-top: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.checkout-terms,
.checkout-unavailable {
    max-width: 820px;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.checkout-terms h2,
.checkout-unavailable h2 {
    margin-top: 0;
    color: var(--brand-primary);
    font-size: 1.35rem;
}

@media (max-width: 900px) {
    .portal-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .portal-hero__content {
        max-width: 760px;
    }

    .portal-visual {
        width: min(100%, 620px);
        aspect-ratio: 16 / 10;
        border-radius: 24px;
    }

    .portal-benefits,
    .portal-program-grid,
    .checkout-offers {
        grid-template-columns: 1fr;
    }

    .portal-program-card {
        min-height: 230px;
    }
}

@media (max-width: 560px) {
    .portal-shell {
        width: min(calc(100% - 1.25rem), 1240px);
    }

    .portal-header .brand-mark__text {
        display: none;
    }

    .portal-header .button {
        min-height: 38px;
        padding: .45rem .75rem;
        font-size: .8rem;
    }

    .portal-hero {
        gap: 2.2rem;
        padding: 2.5rem 0 4rem;
    }

    .portal-hero h1 {
        font-size: clamp(2.05rem, 9vw, 2.7rem);
    }

    .portal-visual {
        aspect-ratio: 4 / 4.4;
    }

    .portal-section-heading,
    .portal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-programs {
        border-radius: 22px;
    }
}

.button {
    background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 58%, var(--brand-accent)));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 18%, transparent);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.button:hover {
    box-shadow: 0 11px 25px color-mix(in srgb, var(--brand-primary) 24%, transparent);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.button:focus-visible,
.link-button:focus-visible,
a:focus-visible {
    outline-color: color-mix(in srgb, var(--brand-primary) 72%, white);
}

.button--secondary,
.button--danger {
    box-shadow: none;
}

.button--secondary {
    background: #fff;
}

.button--danger {
    background: #fff;
}

.site-header {
    border-top: 3px solid var(--brand-primary);
    border-bottom-color: color-mix(in srgb, var(--brand-primary) 13%, white);
    box-shadow: 0 10px 30px rgba(59, 31, 53, .05);
}

.site-header__nav .is-active {
    position: relative;
}

.site-header__nav .is-active::after {
    position: absolute;
    right: 0;
    bottom: -.55rem;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--brand-gold);
    content: "";
}

.page-heading h1,
.hero h1,
.lesson-main h1,
.admin-heading h1 {
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: -.025em;
}

.eyebrow {
    color: var(--brand-gold-ink);
}

.card,
.panel,
.module,
.lesson-main,
.lesson-aside,
.program-hero,
.metric,
.admin-form,
.table-wrap {
    border-color: color-mix(in srgb, var(--brand-primary) 11%, white);
}

.card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
    border-color: color-mix(in srgb, var(--brand-accent) 28%, white);
    box-shadow: 0 18px 45px rgba(59, 31, 53, .09);
    transform: translateY(-2px);
}

.card__image--brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .35rem;
    overflow: hidden;
    padding: clamp(1.1rem, 4vw, 2rem);
    background:
        radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--brand-gold) 60%, transparent) 0 2px, transparent 3px),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 94%, black), color-mix(in srgb, var(--brand-primary) 66%, var(--brand-accent)));
    color: #fff;
    isolation: isolate;
}

.card__image--brand::before,
.card__image--brand::after {
    position: absolute;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 46%, transparent);
    border-radius: 50%;
    content: "";
}

.card__image--brand::before {
    top: -35%;
    right: -8%;
    width: 64%;
    aspect-ratio: 1;
}

.card__image--brand::after {
    top: -16%;
    right: 7%;
    width: 34%;
    aspect-ratio: 1;
}

.brand-cover__eyebrow {
    color: color-mix(in srgb, var(--brand-gold) 88%, white);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.card__image--brand strong {
    max-width: 16ch;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.02;
}

.card__image--brand small {
    color: rgba(255, 255, 255, .78);
}

.progress {
    background: color-mix(in srgb, var(--brand-primary) 9%, white);
}

.progress > span {
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-gold));
}

.program-hero {
    background:
        linear-gradient(120deg, #fff 0%, #fff 58%, color-mix(in srgb, var(--brand-accent) 5%, white) 100%);
    box-shadow: 0 20px 55px rgba(59, 31, 53, .06);
}

.module[open] {
    border-color: color-mix(in srgb, var(--brand-accent) 24%, white);
    box-shadow: 0 12px 30px rgba(59, 31, 53, .045);
}

.module summary > span:last-child {
    color: var(--brand-gold-ink);
    font-size: 1.15rem;
}

.editor-step,
.empty-state__icon {
    color: var(--brand-gold-ink);
}

.lesson-row:not(.lesson-row--locked):hover {
    background: color-mix(in srgb, var(--brand-accent) 6%, white);
}

.lesson-row__number {
    background: color-mix(in srgb, var(--brand-accent) 8%, white);
    color: var(--brand-primary);
}

.lesson-aside {
    border-top: 4px solid var(--brand-gold);
}

.admin-sidebar {
    border-top: 4px solid var(--brand-primary);
    background: linear-gradient(180deg, #fff 0%, #fff 72%, color-mix(in srgb, var(--brand-accent) 4%, white));
}

@media (min-width: 721px) {
    .admin-sidebar {
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
    }

    .admin-sidebar > * {
        flex-shrink: 0;
    }
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
}

.admin-sidebar nav a.is-active {
    box-shadow: inset 3px 0 var(--brand-accent);
}

.metric {
    position: relative;
    overflow: hidden;
}

.metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--brand-accent);
    content: "";
}

.metric:nth-child(2)::before {
    background: var(--brand-teal);
}

.metric:nth-child(3)::before {
    background: var(--brand-gold);
}

.metric:nth-child(4)::before {
    background: var(--brand-primary);
}

.metric strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tabs .is-active {
    border-bottom-color: var(--brand-accent);
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .card,
    .member-program-card .card__image {
        transition: none;
    }
}

@media (max-width: 720px) {
    .brand-mark__logo {
        max-width: 48px;
        height: 42px;
    }

    .site-header__nav .is-active::after {
        bottom: -.3rem;
    }

    .card:hover,
    .button:hover {
        transform: none;
    }

    .member-program-card__cover:hover .card__image {
        transform: none;
    }
}

/* Member help center */
.help-center-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 5%, rgba(215, 168, 61, .3), transparent 13rem),
        linear-gradient(140deg, #66096b 0%, #4c0750 66%, #311b37 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(62, 16, 64, .18);
    isolation: isolate;
}

.help-center-hero::before,
.help-center-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.help-center-hero::before {
    top: -52%;
    right: -10%;
    width: 42%;
    aspect-ratio: 1;
}

.help-center-hero::after {
    right: 24%;
    bottom: -75%;
    width: 34%;
    aspect-ratio: 1;
}

.help-center-hero .eyebrow {
    color: #f2d889;
}

.help-center-hero h1 {
    max-width: 12ch;
    margin: .55rem 0 1rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.help-center-hero__copy > p:last-child {
    max-width: 54ch;
    margin: 0;
    color: rgba(255, 255, 255, .76);
}

.help-search {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.help-search label {
    display: block;
    margin-bottom: .55rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.help-search__control {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 54px;
    padding: .25rem .4rem .25rem .9rem;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.help-search__control > span {
    color: var(--brand-primary);
    font-size: 1.5rem;
    line-height: 1;
}

.help-search__control input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.help-search__control button {
    padding: .55rem .65rem;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 750;
}

.help-search > p {
    margin: .55rem 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
}

.help-section-heading h2 {
    margin: .2rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.help-quick-actions {
    margin-bottom: 2rem;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.help-quick-card {
    display: flex;
    min-height: 155px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.help-quick-card:hover {
    border-color: color-mix(in srgb, var(--brand-accent) 34%, white);
    box-shadow: 0 16px 35px rgba(59, 31, 53, .08);
    transform: translateY(-2px);
}

.help-quick-card > span {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    margin-bottom: auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 9%, white);
    color: var(--brand-primary);
    font-size: .65rem;
    font-weight: 850;
}

.help-quick-card strong {
    margin-top: 1rem;
}

.help-quick-card small {
    margin-top: .2rem;
    color: var(--muted);
}

.help-category-nav {
    position: sticky;
    top: 76px;
    z-index: 10;
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    margin-bottom: 1.3rem;
    padding: .7rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(59, 31, 53, .05);
    backdrop-filter: blur(14px);
}

.help-category-nav a {
    flex: 0 0 auto;
    padding: .55rem .75rem;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 750;
}

.help-category-nav a:hover {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
    color: var(--brand-primary);
}

.help-category-list {
    display: grid;
    gap: 1rem;
}

.help-category {
    display: grid;
    grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 5vw, 4rem);
    scroll-margin-top: 155px;
    padding: clamp(1.3rem, 4vw, 2.2rem);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 20px;
    background: #fff;
}

.help-category[hidden],
.help-faq[hidden] {
    display: none;
}

.help-category__intro {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.help-category__intro > span {
    color: var(--brand-gold-ink);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.help-category__intro h2 {
    margin: -.15rem 0 .55rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.help-category__intro p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.help-faq-list {
    display: grid;
    align-content: start;
}

.help-faq {
    border-bottom: 1px solid var(--line);
}

.help-faq:first-child {
    border-top: 1px solid var(--line);
}

.help-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem .25rem;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.help-faq summary::-webkit-details-marker {
    display: none;
}

.help-faq summary > span:last-child {
    color: var(--brand-gold-ink);
    font-size: 1.1rem;
    transition: transform .18s ease;
}

.help-faq[open] summary > span:last-child {
    transform: rotate(45deg);
}

.help-faq > p {
    max-width: 72ch;
    margin: -.25rem 2.5rem 1.1rem .25rem;
    color: var(--muted);
    font-size: .9rem;
}

.help-empty {
    margin-top: 1rem;
    padding: 2.5rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--brand-primary) 25%, white);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.help-empty p {
    margin: .35rem 0 0;
    color: var(--muted);
}

.help-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    scroll-margin-top: 120px;
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 9%, white), #fff);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
}

.help-contact h2 {
    margin: .35rem 0 .55rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.help-contact p {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
}

.help-contact__action {
    display: flex;
    min-width: min(100%, 280px);
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
}

.help-contact__action small {
    color: var(--muted);
}

.member-help-strip,
.program-help-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 18px;
    background: #fff;
}

.member-help-strip h2,
.program-help-callout h2 {
    margin: .25rem 0 .35rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.member-help-strip p:last-child,
.program-help-callout p:last-child {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.member-help-strip__links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .8rem;
    font-size: .82rem;
}

.lesson-context-help {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.lesson-context-help strong {
    display: block;
    margin: .3rem 0;
    line-height: 1.35;
}

.lesson-context-help > p:not(.eyebrow) {
    margin: .35rem 0 .65rem;
    color: var(--muted);
    font-size: .8rem;
}

.lesson-context-help a {
    font-size: .82rem;
    font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
    .help-quick-card,
    .help-faq summary > span:last-child {
        transition: none;
    }
}

@media (max-width: 980px) {
    .help-center-hero,
    .help-category {
        grid-template-columns: 1fr;
    }

    .help-center-hero h1 {
        max-width: 16ch;
    }

    .help-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-help-strip,
    .program-help-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-help-strip__links {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .help-center-hero {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .help-quick-grid {
        grid-template-columns: 1fr;
    }

    .help-quick-card {
        min-height: 130px;
    }

    .help-category-nav {
        top: 88px;
        margin-right: -1rem;
        margin-left: -1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .help-category {
        scroll-margin-top: 190px;
    }

    .help-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-contact__action,
    .help-contact__action .button {
        width: 100%;
    }

    .member-help-strip__links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .help-search__control {
        align-items: stretch;
        flex-wrap: wrap;
        padding: .6rem;
    }

    .help-search__control > span {
        display: none;
    }

    .help-search__control input {
        width: 100%;
        flex-basis: 100%;
        padding: .3rem;
    }

    .help-search__control button {
        margin-left: auto;
    }
}

/* Accessible contextual tooltips */
.tooltip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    vertical-align: middle;
}

.tooltip__trigger {
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, white);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 5%, white);
    color: var(--brand-primary);
    cursor: help;
    font-size: .67rem;
    font-weight: 850;
    line-height: 1;
}

.tooltip__trigger:hover,
.tooltip__trigger:focus-visible {
    border-color: color-mix(in srgb, var(--brand-accent) 48%, white);
    background: color-mix(in srgb, var(--brand-accent) 9%, white);
    outline: 2px solid color-mix(in srgb, var(--brand-accent) 26%, white);
    outline-offset: 2px;
}

.tooltip__bubble {
    position: absolute;
    right: auto;
    bottom: calc(100% + .65rem);
    left: 50%;
    z-index: 50;
    width: max-content;
    max-width: min(260px, calc(100vw - 2rem));
    padding: .7rem .8rem;
    border-radius: 10px;
    background: #291d2c;
    box-shadow: 0 12px 28px rgba(31, 18, 34, .2);
    color: #fff;
    font-size: .75rem;
    font-weight: 550;
    letter-spacing: 0;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transform: translate(-50%, .3rem);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    visibility: hidden;
}

.tooltip__bubble::after {
    position: absolute;
    top: 100%;
    left: 50%;
    border: .35rem solid transparent;
    border-top-color: #291d2c;
    content: "";
    transform: translateX(-50%);
}

.tooltip:hover .tooltip__bubble,
.tooltip:focus-within .tooltip__bubble {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.tooltip--left .tooltip__bubble {
    right: -.2rem;
    left: auto;
    transform: translateY(.3rem);
}

.tooltip--left .tooltip__bubble::after {
    right: .5rem;
    left: auto;
    transform: none;
}

.tooltip--left:hover .tooltip__bubble,
.tooltip--left:focus-within .tooltip__bubble {
    transform: translateY(0);
}

.label-with-tooltip,
.heading-with-tooltip,
.action-with-tooltip,
.lesson-row__state--explained {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.label-with-tooltip {
    flex-wrap: wrap;
}

.heading-with-tooltip {
    justify-content: space-between;
}

.action-with-tooltip {
    width: fit-content;
}

.action-with-tooltip form {
    display: inline-flex;
    margin: 0;
}

.lesson-row__state--explained {
    flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .tooltip__bubble {
        transition: none;
    }
}

@media (max-width: 720px) {
    .tooltip__bubble {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        transform: translateY(.4rem);
    }

    .tooltip__bubble::after,
    .tooltip--left .tooltip__bubble::after {
        display: none;
    }

    .tooltip:hover .tooltip__bubble,
    .tooltip:focus-within .tooltip__bubble,
    .tooltip--left:hover .tooltip__bubble,
    .tooltip--left:focus-within .tooltip__bubble {
        transform: translateY(0);
    }

    .lesson-row__state--explained {
        margin-left: 2.9rem;
    }
}

/* Step-by-step member guides */
.guides-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .65fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    overflow: hidden;
    margin-bottom: 1.2rem;
    padding: clamp(2rem, 6vw, 4.7rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 91% 2%, rgba(215, 168, 61, .28), transparent 13rem),
        linear-gradient(142deg, #66096b 0%, #4b0750 65%, #2d1833 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(62, 16, 64, .18);
}

.guides-hero .eyebrow {
    color: #f2d889;
}

.guides-hero h1 {
    max-width: 11ch;
    margin: .55rem 0 1rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.guides-hero > div > p:not(.eyebrow) {
    max-width: 58ch;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .76);
}

.guides-hero .button {
    background: #fff;
    color: var(--brand-primary);
}

.guides-hero__checklist {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.guides-hero__checklist > span {
    color: #f2d889;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.guides-hero__checklist ol {
    display: grid;
    gap: .85rem;
    margin: 1rem 0 0;
    padding: 0;
    counter-reset: guide-checklist;
    list-style: none;
}

.guides-hero__checklist li {
    position: relative;
    display: grid;
    gap: .05rem;
    min-height: 2.3rem;
    padding-left: 3rem;
    counter-increment: guide-checklist;
}

.guides-hero__checklist li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #f2d889;
    content: counter(guide-checklist, decimal-leading-zero);
    font-size: .62rem;
    font-weight: 850;
}

.guides-hero__checklist strong {
    font-size: .84rem;
}

.guides-hero__checklist small {
    color: rgba(255, 255, 255, .65);
}

.guide-index {
    position: sticky;
    top: 76px;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .55rem;
    scroll-margin-top: 120px;
    margin-bottom: 1.2rem;
    padding: .7rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 30px rgba(59, 31, 53, .06);
    backdrop-filter: blur(14px);
}

.guide-index a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 .55rem;
    padding: .65rem;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
}

.guide-index a:hover {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
}

.guide-index a > span {
    grid-row: 1 / 3;
    color: var(--brand-gold-ink);
    font-size: .64rem;
    font-weight: 850;
}

.guide-index strong {
    overflow: hidden;
    font-size: .79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-index small {
    overflow: hidden;
    color: var(--muted);
    font-size: .62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-list {
    display: grid;
    gap: 1.2rem;
}

.guide-detail {
    scroll-margin-top: 165px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(59, 31, 53, .045);
}

.guide-detail__header {
    display: grid;
    grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand-accent) 5%, white), #fff 62%);
}

.guide-detail__header > div:first-child > span {
    display: inline-flex;
    padding: .4rem .65rem;
    border-radius: 99px;
    background: var(--brand-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.guide-detail__header > div:first-child > p {
    margin: .55rem 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.guide-detail__header h2 {
    margin: .35rem 0 .6rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.guide-detail__header > div:last-child > p:last-child {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
}

.guide-steps {
    display: grid;
    margin: 0;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    list-style: none;
}

.guide-steps > li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.guide-steps > li:last-child {
    border-bottom: 0;
}

.guide-step__number {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, white);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
    color: var(--brand-primary);
    font-size: .67rem;
    font-weight: 850;
}

.guide-steps h3 {
    margin: .1rem 0 .4rem;
    color: var(--ink);
    font-size: 1rem;
}

.guide-steps p {
    max-width: 76ch;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.guide-steps a:not(.button) {
    display: inline-block;
    margin-top: .65rem;
    font-size: .83rem;
    font-weight: 750;
}

.guide-example {
    display: grid;
    max-width: 430px;
    gap: .15rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--brand-primary), #351a3b);
    color: #fff;
}

.guide-example > span {
    color: #f2d889;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guide-example strong {
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
}

.guide-example small {
    margin-top: .35rem;
    color: rgba(255, 255, 255, .68);
}

.guide-example--light {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
    background: var(--soft);
    color: var(--brand-primary);
}

.guide-example--light small {
    color: var(--muted);
}

.guide-detail__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem clamp(1.5rem, 5vw, 3rem);
    border-top: 1px solid var(--line);
    background: var(--soft);
    font-size: .83rem;
}

.guides-next-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 22px;
    background: linear-gradient(130deg, color-mix(in srgb, var(--brand-accent) 9%, white), #fff);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
}

.guides-next-help h2 {
    margin: .3rem 0 .45rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.guides-next-help p:last-child {
    margin: 0;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .guide-index a {
        scroll-behavior: auto;
    }
}

@media (max-width: 980px) {
    .guides-hero,
    .guide-detail__header {
        grid-template-columns: 1fr;
    }

    .guide-index {
        display: flex;
        overflow-x: auto;
    }

    .guide-index a {
        min-width: 165px;
        flex: 1 0 165px;
    }
}

@media (max-width: 720px) {
    .guides-hero {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .guide-index {
        top: 88px;
        margin-right: -1rem;
        margin-left: -1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .guide-detail {
        scroll-margin-top: 200px;
    }

    .guide-steps > li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: .75rem;
    }

    .guide-step__number {
        width: 2.25rem;
        height: 2.25rem;
    }

    .guide-detail__footer,
    .guides-next-help {
        align-items: flex-start;
        flex-direction: column;
    }

    .guides-next-help .button {
        width: 100%;
    }

    .site-header {
        align-items: center;
        min-height: 66px;
        padding: .65rem 1rem;
        backdrop-filter: none;
    }

    .site-header__nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: .3rem .35rem max(.3rem, env(safe-area-inset-bottom));
        border-top: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 30px rgba(59, 31, 53, .08);
        backdrop-filter: blur(16px);
    }

    .site-header__nav a {
        display: flex;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: .4rem .25rem;
        border-radius: 9px;
        font-size: .68rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .site-header__nav a.is-active {
        background: color-mix(in srgb, var(--brand-accent) 7%, white);
    }

    .site-header__nav .is-active::after {
        top: -.3rem;
        right: 20%;
        bottom: auto;
        left: 20%;
    }

    .site-header__nav form {
        display: none;
    }

    .page-shell {
        padding-bottom: 6.5rem;
    }

    .site-footer {
        margin-bottom: 4.3rem;
    }

    .member-mobile-logout {
        display: block;
    }

    .program-card-actions {
        gap: .55rem;
    }
}

/* Customer colors apply to every member-area layout. */
body, .guest-body, .admin-body { background: var(--brand-background, #faf9f8); }
.guest-card, .public-card, .panel, .admin-form, .admin-sidebar, .program-card, .metric, .table-wrap, .empty-state { background: var(--brand-surface, #ffffff); }
.button:not(.button--secondary):not(.button--danger) { background: var(--brand-primary); color: #ffffff; }
.guest-card::before { background: var(--brand-accent); }
.guest-card::after { border-color: color-mix(in srgb, var(--brand-accent) 38%, transparent); }

/* Keep customer logos in normal layout and below overlays. */
.brand-mark { position: relative; z-index: 0; }
.brand-mark__logo { position: static; z-index: auto; }
.public-header { position: relative; z-index: 0; }
.public-header > a:first-child { display: flex; align-items: center; text-decoration: none; }
.public-header .brand-mark { align-items: center; }

/* Clear customer surfaces and editable public homepage. */
.customer-portal { background: var(--brand-background, #faf9f8); }
.customer-portal .portal-header { padding: 1.6rem 0; border-bottom: 1px solid #e9e6e2; }
.customer-portal .brand-mark { align-items: center; }
.brand-mark__text { min-width: 0; }
.brand-mark__text strong, .brand-mark__text small { overflow-wrap: anywhere; }
.admin-sidebar .brand-mark { flex-direction: column; align-items: flex-start; gap: .8rem; max-width: 100%; }
.admin-sidebar .brand-mark__logo { max-width: 150px; height: auto; max-height: 65px; object-fit: contain; }
.admin-sidebar .brand-mark__text { max-width: 100%; }
.admin-sidebar > a { text-decoration: none; }
.admin-sidebar { border-right: 1px solid #e9e6e2; box-shadow: none; }
.admin-body .panel, .admin-body .metric, .admin-body .admin-form { box-shadow: none; border-color: #e9e6e2; }
.home-section { margin: 0; padding: clamp(2.5rem, 5vw, 5rem) 0; }
.home-section__body { max-width: 60ch; white-space: pre-line; color: #59535b; font-size: 1.08rem; line-height: 1.8; }
.home-section h1 { max-width: 15ch; margin: .7rem 0 1.5rem; font-family: Prata, Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1.18; letter-spacing: -.02em; color: var(--brand-primary); }
.home-section h2 { margin: .5rem 0 1rem; color: var(--brand-primary); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.home-section--hero, .home-section--content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.home-section--content:not(:has(.home-section__image)) { display: block; }
.home-section__image { margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 4.5; background: var(--brand-surface); }
.home-section__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-section--hero .home-section__image { border-radius: 44% 44% 22px 22px; }
.home-section__placeholder { aspect-ratio: 4 / 4.5; border: 1px solid var(--brand-accent); border-radius: 44% 44% 22px 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; background: var(--brand-surface); color: var(--brand-primary); padding: 2rem; text-align: center; }
.home-section__placeholder span:first-child { font-family: Prata, Georgia, serif; font-size: 2rem; }
.home-section__placeholder span:last-child { color: #59535b; }
.home-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; grid-column: 1 / -1; }
.home-cards article { padding: 2rem; background: var(--brand-surface); border: 1px solid #e9e6e2; border-radius: 16px; }
.home-card__number { color: color-mix(in srgb,var(--brand-accent) 65%,black); font-weight: 700; font-size: .8rem; }
.home-cards h3 { margin: .8rem 0; font-size: 1.2rem; color: var(--brand-primary); }
.home-cards p { margin: 0; white-space: pre-line; color: #59535b; }
.home-section--cta { padding: clamp(2rem, 5vw, 4rem); margin: 2rem 0 4rem; border: 1px solid #e9e6e2; border-radius: 20px; background: var(--brand-surface); }
.customer-portal .portal-footer { border-top: 1px solid #e9e6e2; padding: 2rem 0; }
.portal-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.homepage-editor .panel { margin-bottom: 1.5rem; }
.homepage-section-bar, .homepage-section-tools, .homepage-toolbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.homepage-section-bar { justify-content: space-between; margin-bottom: 1rem; }
.homepage-section-bar h2 { margin: 0; }
.homepage-toggle { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.5rem; }
.homepage-toggle input { width: auto; }
.homepage-editor-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid #e9e6e2; }
.homepage-editor-row .field { flex: 1 1 200px; }
.homepage-subeditor { margin-top: 1.8rem; }
.homepage-subeditor > button { margin-top: 1rem; }
.homepage-toolbar .field { margin: 0; }
@media(max-width: 760px) {
    .home-section--hero, .home-section--content { grid-template-columns: 1fr; }
    .home-section h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .home-cards { grid-template-columns: 1fr; }
    .home-section__image, .home-section__placeholder { max-width: 440px; width: 100%; justify-self: center; }
    .customer-portal .portal-header .brand-mark__logo { max-width: 95px; max-height: 48px; }
    .customer-portal .portal-header .brand-mark__text strong { font-size: .85rem; }
    .customer-portal .portal-header .brand-mark__text small { font-size: .6rem; }
    .customer-portal .portal-header { gap: .6rem; }
    .customer-portal .portal-header .button { padding: .6rem .8rem; font-size: .85rem; }
    .customer-portal .portal-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .admin-sidebar .brand-mark { flex-direction: row; align-items: center; }
    .admin-sidebar .brand-mark__logo { max-width: 110px; }
}

.home-section--cards .home-section__image, .home-section--cta .home-section__image { width: min(460px, 100%); margin-top: 2rem; }
.customer-portal .button, .admin-body .button { box-shadow: none; }

/* Configurable typography and accent palette. */
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-regular.ttf") format("truetype"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-bold.woff2") format("woff2"); }
:root { --brand-lavender: var(--brand-soft-accent, #cbd5e1); --brand-neutral-line: #d9d9d9; --ink: #555555; --muted: #555555; }
body { font-family: var(--brand-body-font, MemberSans, Arial, sans-serif); color: #555555; }
h1, h2, h3, h4, .home-section h1, .home-section h2, .guest-card h1, .admin-heading h1, .panel h2 { font-family: var(--brand-heading-font, MemberSans, Arial, sans-serif) !important; font-weight: var(--brand-heading-weight, 600); }
.home-section h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.15; max-width: 20ch; }
.home-section h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem); line-height: 1.25; }
.guest-card h1, .admin-heading h1, .portal-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem); line-height: 1.2; }
.customer-portal .home-section__body, .guest-card .lead { font-family: var(--brand-body-font, MemberSans, Arial, sans-serif); font-size: 1.0625rem; color: #555555; }
.home-cards p, .home-section--cta p { font-size: 1rem; }
.button, button, .eyebrow, .portal-text-link { font-family: var(--brand-heading-font, MemberSans, Arial, sans-serif); }
input, select, textarea, label, .admin-sidebar nav, .guest-footer, .portal-footer { font-family: var(--brand-body-font, MemberSans, Arial, sans-serif); }
.customer-portal .portal-header .brand-mark__logo { width: 270px; max-width: 270px; height: auto; max-height: 110px; }
.guest-card > .brand-mark { display: flex; justify-content: center; width: 100%; }
.guest-card > .brand-mark .brand-mark__logo { width: 300px; max-width: 100%; height: auto; max-height: 125px; object-position: center; }
.admin-sidebar .brand-mark__logo { width: 200px; max-width: 100%; max-height: 90px; }
.site-header .brand-mark__logo { width: 220px; max-width: 220px; height: auto; max-height: 90px; }
.guest-card::before { background: linear-gradient(90deg, var(--brand-accent), var(--brand-lavender)); }
.guest-card::after { display: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-lavender); outline-offset: 3px; }
.customer-portal .portal-header, .customer-portal .portal-footer, .home-cards article, .home-section--cta { border-color: var(--brand-neutral-line); }
.home-card__number { color: #555555; border-bottom: 2px solid var(--brand-lavender); padding-bottom: .35rem; }
.home-cards h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; }
.admin-sidebar { border-top-color: var(--brand-accent); }
@media(max-width: 760px) {
    .customer-portal .portal-header .brand-mark__logo { width: min(220px, 48vw); max-width: 220px; height: auto; max-height: 90px; }
    .guest-card > .brand-mark .brand-mark__logo { width: 260px; }
    .admin-sidebar .brand-mark__logo { width: 170px; max-width: 170px; }
    .site-header .brand-mark__logo { width: 170px; max-width: 170px; }
}

/* Readable legal pages and the reusable Markdown editor. */
.guest-body--legal .guest-shell { width: min(calc(100% - 2rem), 940px); max-width: 940px; margin-inline: auto; padding-top: 2rem; }
.guest-body--legal .guest-card { width: 100%; max-width: none; }
.guest-body--legal .guest-card__content { max-width: 76ch; margin-inline: auto; }
.legal-copy { overflow-wrap: anywhere; font-size: 1.15rem; line-height: 1.8; }
.legal-copy p { margin: 0 0 1.3rem; }
.legal-copy h2 { margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid #d9d9d9; font-size: 1.9rem; line-height: 1.3; }
.legal-copy h3 { margin: 1.8rem 0 .7rem; font-size: 1.5rem; }
.legal-copy ul, .legal-copy ol { padding-left: 1.5rem; margin: 1rem 0 1.5rem; }
.legal-copy li { margin-bottom: .4rem; }
.legal-copy a { text-decoration: underline; }
.legal-copy strong { font-weight: 700; }
.legal-back { padding-top: 1.5rem; border-top: 1px solid #d9d9d9; margin-top: 2rem; }
.legal-editor { margin-bottom: 2.5rem; }
.legal-editor textarea { min-height: 300px; font-family: "Roboto Condensed", Arial, sans-serif; line-height: 1.65; }
.legal-editor .editor-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }

/* Admin onboarding and reference help. */
.admin-guidance-link { display:flex; justify-content:flex-end; margin-bottom:1rem; font-size:.95rem; }
.admin-setup-banner { margin-bottom:1.5rem; border-left:4px solid var(--brand-accent); }
.admin-setup { margin-bottom:1.5rem; }
.admin-setup__list { list-style:none; padding:0; counter-reset:setup; }
.admin-setup__list li { display:flex; gap:1rem; padding:1.5rem 0; border-top:1px solid #d9d9d9; counter-increment:setup; }
.admin-setup__list li::before { content:counter(setup); display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:50%; background:#e7eef1; color:#333; }
.admin-setup__list p { max-width:75ch; line-height:1.7; }
.admin-help-nav { display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; margin:1.5rem 0; }
.admin-help-topic { margin-bottom:1.5rem; scroll-margin-top:1.5rem; }
.admin-help-topic details { margin:.75rem 0; padding:1rem; border:1px solid #d9d9d9; border-radius:8px; }
.admin-help-topic summary { cursor:pointer; font-weight:700; }
.admin-help-topic details p { max-width:80ch; line-height:1.8; margin-bottom:0; }
.field > .tooltip { margin:0 .35rem .35rem; }
.admin-setup-banner[hidden], [data-help-item][hidden], [data-help-category][hidden], [data-help-empty][hidden] { display:none!important; }
@media(max-width:600px) { .admin-setup__list li {gap:.6rem;} .admin-help-topic details {padding:.8rem;} .admin-setup .toolbar {flex-wrap:wrap;} }

@font-face { font-family: MemberSans; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/dm-sans-normal-latin.woff2") format("woff2"); }
@font-face { font-family: MemberCondensed; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-regular.woff2") format("woff2"); }
@font-face { font-family: MemberCondensed; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-bold.woff2") format("woff2"); }
@font-face { font-family: MemberOpenSans; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/open-sans-regular.woff2") format("woff2"); }
@font-face { font-family: MemberOpenSans; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/open-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: MemberOpenSans; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/open-sans-bold.woff2") format("woff2"); }

/* Aisha: QUEENEFFEKT reference palette */
.portal-body, .guest-body {
    background-color: #faf9f8;
    background-image: url("/assets/queeneffekt-background.jpg");
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.home-section h1, .home-section h2, .home-section h3,
.guest-card h1, .guest-card h2, .guest-card h3,
.member-body h1, .member-body h2, .member-body h3,
.admin-body h1, .admin-body h2, .admin-body h3 {
    color: #000;
}
.home-section__placeholder {
    background: rgba(247, 247, 247, .47);
    border-color: rgba(255, 114, 255, .35);
    color: #000;
}
.customer-portal .eyebrow { color: #3f3f46; }

/* Aisha: smaller portrait with the complete original image */
.home-section--hero .home-section__image:has(img[src$="/assets/aisha-portrait.jpeg"]) {
    width: min(100%, 300px);
    max-width: 300px;
    aspect-ratio: auto;
    border-radius: 24px;
    justify-self: center;
}
.home-section--hero .home-section__image img[src$="/assets/aisha-portrait.jpeg"] {
    height: auto;
    object-fit: contain;
}
@media (max-width: 700px) {
    .home-section--hero .home-section__image:has(img[src$="/assets/aisha-portrait.jpeg"]) {
        width: min(100%, 240px);
        max-width: 240px;
    }
}
