.pwa-header-install[hidden],
.footer-install-button[hidden] {
    display: none !important;
}

.footer-install-button {
    margin-top: 14px;
}

.pwa-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 360px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: #10161f;
    color: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
    font-size: 11px;
    line-height: 1.5;
}

.pwa-toast.is-success {
    border-color: rgba(37, 217, 132, 0.4);
}

.pwa-toast.is-error {
    border-color: rgba(255, 48, 79, 0.45);
}

.push-settings-page {
    padding: 46px 0 80px;
}

.push-settings-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.push-settings-hero h1 {
    margin-top: 7px;
    font-size: clamp(30px, 5vw, 52px);
}

.push-settings-hero p {
    max-width: 680px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.push-settings-grid {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.push-device-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.push-card {
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            var(--panel),
            #0a0f16
        );
}

.push-card + .push-card {
    margin-top: 18px;
}

.push-device-panel .push-card + .push-card {
    margin-top: 0;
}

.push-card-label {
    color: var(--red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.push-card h2 {
    margin-top: 6px;
    font-size: 20px;
}

.push-card > p,
.push-section-description {
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.push-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 10px;
}

.push-status > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #778291;
}

.push-status strong {
    color: inherit;
    font-size: inherit;
    font-weight: 650;
}

.push-status.is-enabled > span {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(37, 217, 132, 0.1);
}

.push-status.is-blocked > span,
.push-status.is-error > span {
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(255, 48, 79, 0.1);
}

.push-device-actions {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.push-device-actions button,
.push-location-button,
.push-save-button {
    width: 100%;
    justify-content: center;
}

.push-device-panel small {
    display: block;
    margin-top: 12px;
    color: #6f7987;
    font-size: 8px;
}

.push-preferences-form {
    min-width: 0;
}

.push-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.push-master-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 9px;
}

.push-master-toggle input,
.push-option input,
.push-category-option input {
    accent-color: var(--red);
}

.push-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-top: 18px;
}

.push-option {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.push-option input {
    margin-top: 3px;
}

.push-option strong,
.push-option small {
    display: block;
}

.push-option strong {
    font-size: 10px;
}

.push-option small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.5;
}

.push-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.push-category-option {
    position: relative;
    cursor: pointer;
}

.push-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.push-category-option span {
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.push-category-option input:checked + span {
    border-color: rgba(229, 31, 63, 0.5);
    background: rgba(229, 31, 63, 0.1);
    color: #fff;
}

.push-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 16px;
}

.push-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.push-form-group input,
.push-form-group select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #0b1017;
    color: var(--text);
}

.push-form-full {
    grid-column: 1 / -1;
}

.push-location-button {
    margin-top: 14px;
}

.push-location-message {
    min-height: 18px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
}

.push-quiet-toggle {
    margin-top: 15px;
}

.push-save-button {
    min-height: 48px;
    margin-top: 18px;
}

.push-setup-warning {
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 211, 105, 0.3);
    border-radius: 12px;
    background: rgba(255, 211, 105, 0.07);
}

.push-setup-warning strong {
    color: #ffd369;
}

.push-setup-warning p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.public-alert {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 10px;
}

.public-alert-success {
    border: 1px solid rgba(37, 217, 132, 0.35);
    background: rgba(37, 217, 132, 0.08);
    color: var(--green);
}

.public-alert-error {
    border: 1px solid rgba(255, 48, 79, 0.35);
    background: rgba(255, 48, 79, 0.08);
    color: #ff7187;
}

.offline-page {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding: 50px 0;
}

.offline-card {
    max-width: 640px;
    margin-inline: auto;
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, var(--panel), #090d13);
    text-align: center;
}

.offline-symbol {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ff304f, #980f26);
    color: #fff;
    font-size: 34px;
    font-weight: 950;
}

.offline-card h1 {
    margin-top: 8px;
    font-size: 36px;
}

.offline-card p {
    margin: 12px auto 22px;
    color: var(--muted);
    line-height: 1.7;
}

.offline-card .secondary-button {
    margin-left: 8px;
}

@media (max-width: 900px) {
    .push-settings-grid {
        grid-template-columns: 1fr;
    }

    .push-device-panel {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .push-settings-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .push-device-panel,
    .push-option-grid,
    .push-form-grid {
        grid-template-columns: 1fr;
    }

    .push-form-full {
        grid-column: 1;
    }

    .offline-card {
        padding: 28px 20px;
    }

    .offline-card .secondary-button {
        margin: 10px 0 0;
    }
}
