[data-unread-badge][hidden] {
    display: none !important;
}

.push-soft-prompt {
    position: fixed;
    z-index: 1200;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.75rem;
    width: min(380px, calc(100vw - 2rem));
    padding: 0.95rem 1rem;
    border: 1px solid var(--border, #d5dde8);
    border-radius: 16px;
    background: var(--surface, #fff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.push-soft-prompt[hidden] {
    display: none;
}

.push-soft-prompt__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-soft, rgba(29, 78, 216, 0.1));
    color: var(--accent, #1d4ed8);
}

.push-soft-prompt__icon svg {
    width: 22px;
    height: 22px;
}

.push-soft-prompt__body {
    min-width: 0;
}

.push-soft-prompt__title {
    margin: 0 0 0.2rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.push-soft-prompt__text,
.push-soft-prompt__message {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.push-soft-prompt__message {
    margin-top: 0.35rem;
    color: #b91c1c;
}

.push-soft-prompt__actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 0.5rem;
}

.push-soft-prompt__actions .btn {
    min-height: 40px;
}

@media (max-width: 640px) {
    .push-soft-prompt {
        right: 0.75rem;
        left: 0.75rem;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: auto;
    }

    .push-soft-prompt__actions .btn {
        flex: 1;
    }
}

.push-devices {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.push-devices__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border, #d5dde8);
    border-radius: 12px;
}

.push-devices__item.is-inactive {
    opacity: 0.7;
}

.push-devices__main {
    min-width: 0;
}

.push-devices__label,
.push-devices__meta {
    margin: 0;
}

.push-devices__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.push-devices__name {
    overflow-wrap: anywhere;
}

.push-devices__current {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft, rgba(29, 78, 216, 0.1));
    color: var(--accent, #1d4ed8);
    font-size: 0.72rem;
    font-weight: 700;
}

.push-devices__meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.push-devices__item.is-active .push-devices__state {
    color: #15803d;
    font-weight: 600;
}

.push-devices__item .btn {
    flex: 0 0 auto;
    min-height: 40px;
}

@media (max-width: 640px) {
    .push-devices__item {
        flex-direction: column;
        align-items: stretch;
    }

    .push-devices__item .btn {
        width: 100%;
    }
}
