.nt-pwa-install {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(86px, calc(16px + env(safe-area-inset-bottom)));
    z-index: 9997;
    min-height: 46px;
    max-width: min(300px, calc(100vw - 32px));
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 999px;
    padding: 7px 12px 7px 8px;
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nt-pwa-install.is-visible {
    display: inline-flex;
}

.nt-pwa-install-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0f172a;
    flex: 0 0 auto;
}

.nt-pwa-install-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
}

.nt-pwa-install-copy strong {
    font-size: 11px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: .01em;
}

.nt-pwa-install-copy span {
    color: #64748b;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 850;
}

.nt-pwa-install-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
    border: 0;
    flex: 0 0 auto;
}

.nt-pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nt-pwa-sheet.is-visible {
    display: flex;
}

.nt-pwa-card {
    width: min(440px, 100%);
    border-radius: 22px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.nt-pwa-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.nt-pwa-card-head img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0);
}

.nt-pwa-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
}

.nt-pwa-card-head p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.nt-pwa-steps {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.nt-pwa-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    background: #f8fafc;
}

.nt-pwa-step b {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.nt-pwa-step span {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;
}

.nt-pwa-card-actions {
    padding: 0 14px 14px;
}

.nt-pwa-card-actions button {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .nt-pwa-install {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(74px, calc(12px + env(safe-area-inset-bottom)));
        max-width: none;
    }
}

@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body,
    .h-screen {
        min-height: 100dvh;
    }

    .h-screen {
        height: 100dvh !important;
    }

    .min-h-screen {
        min-height: 100dvh !important;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }
}
