/* CrowdFundPro advanced workspace components */
:root {
    --cfp-ink: #102033;
    --cfp-muted: #64748b;
    --cfp-line: rgba(15, 23, 42, .1);
    --cfp-teal: #0f766e;
    --cfp-blue: #2563eb;
    --cfp-coral: #ea580c;
    --cfp-rose: #db2777;
    --cfp-yellow: #eab308;
}

.is-hidden {
    display: none !important;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .42);
    outline-offset: 3px;
}

.sidebar-toggle,
.sidebar-close,
.sidebar-backdrop,
.public-menu-toggle {
    display: none;
}

.badge-scheduled {
    color: #4338ca;
    background: #e0e7ff;
}

/* Subscription packages */
.package-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 30px;
    color: #e2e8f0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(122deg, #081526, #0f4c5c 54%, #5b214e);
    background-size: 30px 30px, 30px 30px, auto;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
}

.package-hero::after {
    position: absolute;
    right: -4%;
    bottom: 18%;
    width: 38%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2dd4bf, #fb923c, transparent);
    content: "";
    transform: rotate(-12deg);
}

.package-hero > * {
    position: relative;
    z-index: 1;
}

.package-hero h1 {
    max-width: 780px;
    margin: 6px 0 10px;
    color: #ffffff;
    font-size: 2.65rem;
    line-height: 1.04;
}

.package-hero .eyebrow {
    color: #5eead4;
}

.package-hero .muted {
    max-width: 760px;
    color: #cbd5e1;
}

.package-hero .button:not(.button-primary) {
    border-color: rgba(255, 255, 255, .22);
    color: #ffffff;
    background: rgba(255, 255, 255, .1);
}

.package-hero-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.package-hero-summary > span {
    display: grid;
    width: 52px;
    height: 52px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 8px;
    color: #062e2b;
    background: #5eead4;
}

.package-hero-summary .icon {
    width: 25px;
    height: 25px;
}

.package-hero-summary > strong {
    color: #ffffff;
    font-size: 2.15rem;
    line-height: 1;
}

.package-hero-summary > small,
.package-hero-summary div span {
    color: #cbd5e1;
    font-weight: 800;
}

.package-hero-summary div {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 12px;
}

.package-hero-summary div b {
    color: #fdba74;
    font-size: 1.35rem;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.package-card {
    --package-accent: var(--cfp-blue);
    position: relative;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cfp-line);
    border-top: 4px solid var(--package-accent);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.package-card:nth-child(3n + 2) {
    --package-accent: var(--cfp-teal);
}

.package-card:nth-child(3n) {
    --package-accent: var(--cfp-coral);
}

.package-card:hover {
    border-color: color-mix(in srgb, var(--package-accent) 44%, #ffffff);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .12);
    transform: translateY(-3px);
}

.package-card-featured {
    --package-accent: var(--cfp-rose);
    background: linear-gradient(145deg, #ffffff, #fff1f2);
}

.package-card-inactive {
    opacity: .72;
}

.package-card header,
.package-card footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.package-card h2 {
    margin: 5px 0 0;
    color: var(--cfp-ink);
    font-size: 1.5rem;
}

.package-card > p {
    min-height: 66px;
    color: var(--cfp-muted);
    line-height: 1.55;
}

.package-key {
    color: var(--package-accent);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.package-price {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 10px 0 18px;
}

.package-price strong {
    color: var(--cfp-ink);
    font-size: 2.35rem;
    line-height: 1;
}

.package-price span {
    color: var(--cfp-muted);
    font-weight: 800;
}

.package-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.package-stat-row > span {
    display: grid;
    min-height: 88px;
    place-items: center;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 9px 5px;
    text-align: center;
    background: #f8fafc;
}

.package-stat-row .icon {
    width: 18px;
    height: 18px;
    color: var(--package-accent);
}

.package-stat-row strong,
.package-stat-row small {
    display: block;
}

.package-stat-row strong {
    color: var(--cfp-ink);
    font-size: .96rem;
}

.package-stat-row small {
    color: var(--cfp-muted);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.package-tenant-count {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
    border-left: 3px solid var(--package-accent);
    padding: 10px 12px;
    color: #334155;
    background: #f8fafc;
}

.package-tenant-count .icon {
    width: 18px;
    height: 18px;
    color: var(--package-accent);
}

.package-card footer {
    margin-top: auto;
    align-items: center;
}

.recommended-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9d174d;
    font-size: .76rem;
    font-weight: 900;
}

.recommended-mark .icon {
    width: 16px;
    height: 16px;
}

.entitlement-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.entitlement-guide h2 {
    margin: 4px 0 0;
}

.entitlement-flow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entitlement-flow > span {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 8px 11px;
    color: #334155;
    background: #f8fafc;
    font-size: .8rem;
    font-weight: 850;
}

.entitlement-flow b {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--cfp-blue);
}

.entitlement-flow > .icon {
    width: 16px;
    height: 16px;
    color: var(--cfp-muted);
    transform: rotate(90deg);
}

/* Package editor and tenant inheritance */
.plan-editor {
    display: grid;
    gap: 18px;
}

.plan-editor-section {
    border: 1px solid var(--cfp-line);
    border-left: 5px solid var(--cfp-blue);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.plan-editor-section:nth-of-type(2) {
    border-left-color: var(--cfp-teal);
}

.plan-editor-section:nth-of-type(3) {
    border-left-color: var(--cfp-coral);
}

.plan-editor-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.plan-editor-intro > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cfp-blue), var(--cfp-teal));
}

.plan-editor-intro h2,
.plan-editor-intro p {
    margin: 0;
}

.plan-editor-intro h2 {
    color: var(--cfp-ink);
    font-size: 1.25rem;
}

.plan-editor-intro p {
    color: var(--cfp-muted);
}

.selection-count {
    display: grid;
    min-width: 76px;
    margin-left: auto;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 11px;
    text-align: center;
    background: #eff6ff;
}

.selection-count strong {
    color: #1d4ed8;
    font-size: 1.25rem;
}

.selection-count span {
    color: #64748b;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-feature-grid,
.plan-gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gateway-package-groups {
    display: grid;
    gap: 18px;
}

.gateway-package-groups h3 {
    margin: 0 0 9px;
    color: #334155;
    font-size: .82rem;
    text-transform: uppercase;
}

.plan-feature-option,
.plan-gateway-option {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    min-height: 96px;
    align-items: start;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 13px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.plan-feature-option:hover,
.plan-gateway-option:hover {
    border-color: #93c5fd;
    background: #ffffff;
    transform: translateY(-2px);
}

.plan-feature-option input,
.plan-gateway-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option-check {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: transparent;
    background: #ffffff;
}

.plan-option-check .icon {
    width: 16px;
    height: 16px;
}

.plan-feature-option input:checked + .plan-option-check,
.plan-gateway-option input:checked + .plan-option-check {
    border-color: var(--cfp-teal);
    color: #ffffff;
    background: var(--cfp-teal);
}

.plan-feature-option:has(input:checked),
.plan-gateway-option:has(input:checked) {
    border-color: rgba(15, 118, 110, .32);
    background: #f0fdfa;
}

.plan-feature-option strong,
.plan-gateway-option strong,
.plan-feature-option small,
.plan-gateway-option small {
    display: block;
}

.plan-feature-option strong,
.plan-gateway-option strong {
    color: var(--cfp-ink);
    font-size: .88rem;
}

.plan-feature-option small,
.plan-gateway-option small {
    margin-top: 4px;
    color: var(--cfp-muted);
    line-height: 1.4;
}

.plan-switch {
    min-height: 70px;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.plan-switch strong,
.plan-switch small {
    display: block;
}

.plan-switch small {
    margin-top: 3px;
    color: var(--cfp-muted);
}

.entitlement-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0 12px;
    border-left: 4px solid var(--cfp-teal);
    padding: 10px 14px;
    background: #f0fdfa;
}

.entitlement-editor-head strong,
.entitlement-editor-head span {
    display: block;
}

.entitlement-editor-head span {
    margin-top: 3px;
    color: var(--cfp-muted);
    font-size: .84rem;
}

.entitlement-editor-head a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cfp-blue);
    font-size: .82rem;
    font-weight: 900;
}

.entitlement-editor-head .icon {
    width: 17px;
    height: 17px;
}

.entitlement-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.entitlement-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(175px, .72fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 11px;
    background: #ffffff;
}

.entitlement-control strong,
.entitlement-control small {
    display: block;
}

.entitlement-control small {
    margin-top: 2px;
    color: var(--cfp-muted);
    line-height: 1.35;
}

.entitlement-control select {
    width: 100%;
}

/* Campaign launch readiness and impact amounts */
.campaign-readiness-panel {
    display: grid;
    grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--cfp-line);
    border-radius: 8px;
    padding: 18px;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.campaign-readiness-score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.campaign-readiness-score .radial-meter {
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
}

.campaign-readiness-score h2,
.campaign-readiness-score p {
    margin: 3px 0;
}

.campaign-readiness-score h2 {
    color: var(--cfp-ink);
    font-size: 1.35rem;
}

.campaign-readiness-score p:last-child {
    color: var(--cfp-muted);
}

.campaign-readiness-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.campaign-readiness-checks a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 10px;
    color: #9a3412;
    background: #fff7ed;
}

.campaign-readiness-checks a.is-complete {
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.campaign-readiness-checks a > span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: currentColor;
    background: rgba(255, 255, 255, .8);
}

.campaign-readiness-checks .icon {
    width: 17px;
    height: 17px;
}

.campaign-readiness-checks strong,
.campaign-readiness-checks small {
    display: block;
}

.campaign-readiness-checks strong {
    font-size: .82rem;
}

.campaign-readiness-checks small {
    margin-top: 2px;
    color: #64748b;
    line-height: 1.3;
}

.impact-level-editor-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px;
    border-left: 4px solid var(--cfp-coral);
    padding: 11px 14px;
    background: #fff7ed;
}

.impact-level-editor-intro > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--cfp-coral);
}

.impact-level-editor-intro strong,
.impact-level-editor-intro p {
    display: block;
    margin: 0;
}

.impact-level-editor-intro p {
    margin-top: 3px;
    color: var(--cfp-muted);
    font-size: .84rem;
}

.impact-level-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.impact-level-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--cfp-line);
    border-top: 3px solid var(--cfp-coral);
    border-radius: 8px;
    padding: 13px;
    background: #ffffff;
}

.impact-giving-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.impact-amount-button {
    position: relative;
    display: grid;
    min-height: 138px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: start;
    gap: 3px 9px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    padding: 12px;
    color: #334155;
    text-align: left;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.impact-amount-button:hover,
.impact-amount-button.is-selected {
    border-color: var(--tenant-accent);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--tenant-accent) 16%, transparent);
    transform: translateY(-2px);
}

.impact-amount-button.is-selected {
    background: color-mix(in srgb, var(--tenant-accent) 8%, #ffffff);
}

.impact-amount-button > span {
    display: grid;
    width: 34px;
    height: 34px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 8px;
    color: var(--tenant-accent);
    background: color-mix(in srgb, var(--tenant-accent) 12%, #ffffff);
}

.impact-amount-button .icon {
    width: 18px;
    height: 18px;
}

.impact-amount-button strong,
.impact-amount-button b,
.impact-amount-button small {
    display: block;
}

.impact-amount-button strong {
    color: var(--tenant-accent);
    font-size: 1.03rem;
}

.impact-amount-button b {
    grid-column: 1 / -1;
    margin-top: 5px;
    color: #0f172a;
    font-size: .86rem;
}

.impact-amount-button small {
    grid-column: 1 / -1;
    color: #64748b;
    line-height: 1.35;
}

.impact-amount-button em {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 6px;
    padding: 3px 6px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.impact-selection-summary {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border-left: 4px solid var(--tenant-accent);
    padding: 9px 11px;
    background: color-mix(in srgb, var(--tenant-accent) 7%, #ffffff);
}

.impact-selection-summary > .icon {
    width: 22px;
    height: 22px;
    color: var(--tenant-accent);
}

.impact-selection-summary strong,
.impact-selection-summary small {
    display: block;
}

.impact-selection-summary small {
    margin-top: 2px;
    color: #64748b;
}

/* Responsive navigation and component layout */
@media (max-width: 1180px) {
    .package-grid,
    .plan-feature-grid,
    .plan-gateway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .entitlement-control-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 110;
        width: min(326px, 88vw);
        height: 100dvh;
        max-height: none;
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .sidebar-open .app-shell .sidebar {
        transform: translateX(0);
    }

    .sidebar-close,
    .sidebar-toggle {
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        padding: 0;
        cursor: pointer;
    }

    .sidebar-close {
        position: absolute;
        top: 20px;
        right: 16px;
        z-index: 2;
        border-color: rgba(255, 255, 255, .2);
        color: #ffffff;
        background: rgba(255, 255, 255, .1);
    }

    .sidebar-toggle {
        flex: 0 0 40px;
        color: #0f172a;
        background: #ffffff;
    }

    .sidebar-close .icon,
    .sidebar-toggle .icon {
        width: 20px;
        height: 20px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: block;
        border: 0;
        padding: 0;
        opacity: 0;
        background: rgba(2, 6, 23, .58);
        pointer-events: none;
        transition: opacity .24s ease;
        backdrop-filter: blur(3px);
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-shell .nav-list {
        grid-template-columns: 1fr;
    }

    .console-toolbar {
        gap: 10px;
    }

    .package-hero,
    .campaign-readiness-panel {
        grid-template-columns: 1fr;
    }

    .package-hero-summary {
        max-width: 420px;
    }

    .entitlement-guide {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .public-header,
    .theme-impact .public-header,
    .theme-launchpad .public-header,
    .theme-community .public-header,
    .theme-ocean .public-header,
    .theme-summit .public-header,
    .theme-urban .public-header {
        position: sticky;
        top: 0;
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 10px;
        margin: 0;
        border-radius: 0;
    }

    .public-header-kicker,
    .theme-impact .public-header-kicker,
    .theme-community .public-header-kicker,
    .theme-ocean .public-header-kicker,
    .theme-summit .public-header-kicker {
        display: none;
    }

    .public-brand,
    .theme-community .public-brand {
        min-width: 0;
        grid-column: 1;
        justify-self: start;
    }

    .public-brand > span:last-child {
        min-width: 0;
    }

    .public-brand strong,
    .public-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        grid-column: 2;
        place-items: center;
        align-self: center;
        border: 1px solid rgba(15, 23, 42, .14);
        border-radius: 8px;
        padding: 0;
        color: var(--tenant-accent);
        background: rgba(255, 255, 255, .9);
        cursor: pointer;
    }

    .public-menu-toggle .icon {
        width: 21px;
        height: 21px;
    }

    .public-menu-close-icon {
        display: none;
    }

    .public-menu-open .public-menu-open-icon {
        display: none;
    }

    .public-menu-open .public-menu-close-icon {
        display: block;
    }

    .public-nav,
    .theme-community .public-nav {
        display: grid;
        width: 100%;
        max-height: 0;
        grid-column: 1 / -1;
        gap: 4px;
        overflow: hidden;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height .24s ease, opacity .2s ease, padding .2s ease;
    }

    .public-menu-open .public-nav {
        max-height: min(70vh, 540px);
        overflow-y: auto;
        padding: 8px 0;
        opacity: 1;
        pointer-events: auto;
    }

    .public-nav a {
        display: flex;
        min-height: 42px;
        align-items: center;
        border-radius: 8px;
        padding: 9px 11px;
        white-space: normal;
        background: rgba(255, 255, 255, .08);
    }

    .theme-impact .public-nav a,
    .theme-community .public-nav a,
    .theme-ocean .public-nav a {
        background: rgba(15, 23, 42, .04);
    }

    .public-nav-cta,
    .theme-community .public-nav-cta {
        width: 100%;
        min-height: 44px;
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .package-hero {
        padding: 21px;
    }

    .package-hero h1 {
        font-size: 2rem;
    }

    .package-grid,
    .plan-feature-grid,
    .plan-gateway-grid,
    .impact-level-editor-grid,
    .impact-giving-grid,
    .campaign-readiness-checks {
        grid-template-columns: 1fr;
    }

    .package-card {
        min-height: 0;
    }

    .plan-editor-section {
        padding: 16px;
    }

    .plan-editor-intro,
    .entitlement-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .selection-count {
        margin-left: 0;
    }

    .entitlement-control {
        grid-template-columns: 1fr;
    }

    .entitlement-flow {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .entitlement-flow > .icon {
        align-self: center;
        transform: rotate(180deg);
    }

    .campaign-readiness-score {
        align-items: flex-start;
        flex-direction: column;
    }

    .impact-level-editor {
        grid-template-columns: 1fr;
    }

    .impact-level-editor .span-2 {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .console-toolbar-context .console-live,
    .console-toolbar-actions > span {
        display: none;
    }

    .console-toolbar-actions a span {
        display: none;
    }

    .console-toolbar-actions a {
        width: 40px;
        height: 40px;
        justify-content: center;
        padding: 0;
    }

    .package-stat-row {
        grid-template-columns: 1fr;
    }

    .package-stat-row > span {
        min-height: 66px;
        grid-template-columns: 28px minmax(0, 1fr);
        text-align: left;
    }

    .package-stat-row small {
        grid-column: 2;
    }

    .campaign-readiness-score .radial-meter {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }
}

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

/* Final visual QA refinements */
.campaign-readiness-score {
    align-self: start;
}

@media (max-width: 760px) {
    .public-header .public-nav {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
    }

    .public-header .public-nav a {
        width: 100%;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .public-header.public-menu-open .public-nav {
        max-height: min(70vh, 540px);
        padding: 8px 0;
        opacity: 1;
        pointer-events: auto;
    }
}