.campaign-topbar-slot {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

.campaign-topbar-card {
    display: block;
    max-width: 100%;
}

.campaign-topbar-card picture,
.campaign-topbar-card img {
    display: block;
}

.campaign-topbar-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
    border-radius: .7rem;
}

.app-admin-shell .campaign-topbar-slot + .topbar-context {
    display: none;
}

.app-admin-shell .app-topbar:has(> .campaign-topbar-slot) .topbar-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.top:has(> .top-inner) > .campaign-topbar-slot,
.k3-header > .campaign-topbar-slot {
    padding: 0 1rem .65rem;
}

.campaign-public {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    align-items: start;
    gap: 1.25rem;
    padding-block: clamp(1.25rem, 3vw, 2.75rem);
}

.campaign-public-card {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f5f3f7;
    border: 1px solid #d9d4df;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px #24192c14;
}

.campaign-public-card picture,
.campaign-dialog picture {
    display: block;
    width: 100%;
}

.campaign-public-card img,
.campaign-dialog img {
    display: block;
    width: 100%;
    height: auto;
}

.campaign-dialog img {
    max-height: 60vh;
    object-fit: contain;
}

.campaign-dialog {
    width: min(42rem, calc(100% - 2rem));
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    color: #24192c;
    box-shadow: 0 24px 70px #140d23a6;
}

.campaign-dialog::backdrop { background: #171122b3; }
.campaign-dialog-header,
.campaign-dialog-footer { padding: .9rem 1rem; }
.campaign-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.campaign-dialog-header h2 { font: inherit; font-weight: 750; font-size: 1.1rem; margin: 0; }
.campaign-dialog-header button {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: #f0ebf3;
    color: #24192c;
    font-size: 1.5rem;
    cursor: pointer;
}
.campaign-dialog-footer a { display: block; text-align: center; border-radius: .65rem; padding: .7rem; color: #fff; background: #584264; font-weight: 700; }

@media (max-width: 991px) {
    header:has(> .campaign-topbar-slot) {
        flex-wrap: wrap;
        height: auto;
    }

    header > .campaign-topbar-slot {
        flex: 1 0 100%;
        order: 1;
    }

    .campaign-topbar-card img {
        max-height: 120px;
    }
}
