.dashboard-topbar .topbar-left {
    flex: 0 0 auto;
}

.dashboard-topbar .topbar-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    container-type: inline-size;
    container-name: topbar-right;
}

.dashboard-topbar .topbar-right > :not(.topbar-push-warning) {
    flex-shrink: 0;
}

.topbar-push-warning {
    display: none;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border: 1px solid #fdba74;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.topbar-push-warning:not([hidden]) {
    display: inline-flex;
    flex: 0 1 auto;
    overflow: hidden;
}

.topbar-push-warning i {
    color: #ea580c;
    flex: 0 0 auto;
}

.topbar-push-warning-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@container topbar-right (max-width: 34rem) {
    .topbar-push-warning:not([hidden]) {
        flex: 0 0 auto;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
    }

    .topbar-push-warning-text {
        display: none;
    }
}

.topbar-push-warning:hover,
.topbar-push-warning:focus-visible {
    background: #ffedd5;
    color: #9a3412;
}

@media (max-width: 768px) {
    .topbar-push-warning:not([hidden]) {
        justify-content: center;
        width: 40px;
        height: 40px;
        max-width: none;
        padding: 0;
        border-radius: 8px;
    }

    .topbar-push-warning-text {
        display: none;
    }
}

@media (max-width: 999px) {
    body[data-mobile-breakpoint="999"] .topbar-push-warning:not([hidden]) {
        justify-content: center;
        width: 40px;
        height: 40px;
        max-width: none;
        padding: 0;
        border-radius: 8px;
    }

    body[data-mobile-breakpoint="999"] .topbar-push-warning-text {
        display: none;
    }
}

#web-push-prompt {
    position: fixed;
    inset: 0;
    z-index: 4080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.45);
}

#web-push-prompt.is-open {
    display: flex;
}

#web-push-prompt[hidden] {
    display: none !important;
}

#web-push-prompt .web-push-prompt-content {
    width: 26rem;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

#web-push-prompt .web-push-prompt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.2rem 1.2rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

#web-push-prompt .web-push-prompt-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

#web-push-prompt .web-push-prompt-body {
    padding: 1rem 1.2rem 0.4rem;
}

#web-push-prompt .web-push-prompt-body p {
    margin: 0 0 0.85rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.45;
}

#web-push-prompt .web-push-prompt-status {
    color: #b45309;
}

#web-push-prompt .web-push-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem 1.2rem;
}

#web-push-prompt .web-push-prompt-later,
#web-push-prompt .web-push-prompt-enable {
    min-height: 2.75rem;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

#web-push-prompt .web-push-prompt-later {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

#web-push-prompt .web-push-prompt-enable {
    border: none;
    background: var(--primary-button-color, #0696fe);
    color: #fff;
}

#web-push-prompt .web-push-prompt-enable:disabled {
    opacity: 0.7;
    cursor: progress;
}

@media (max-width: 480px) {
    #web-push-prompt .web-push-prompt-actions {
        flex-direction: column-reverse;
    }

    #web-push-prompt .web-push-prompt-later,
    #web-push-prompt .web-push-prompt-enable {
        width: 100%;
    }
}
