.social-pwa-trigger,
.social-pwa-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid rgba(199, 253, 114, .22);
    border-radius: 8px;
    background: transparent;
    color: #c9d3cf;
    cursor: pointer;
}

.social-pwa-tabs[hidden],
.social-pwa-installed[hidden],
.social-pwa-trigger[hidden],
.social-pwa-native[hidden],
.social-pwa-panel[hidden],
.social-pwa-dialog:not([open]) {
    display: none;
}

.landing-hero-actions > .social-pwa-trigger {
    align-self: center;
}

.login-screen > .public-legal-links {
    align-items: center;
}

.social-pwa-trigger:hover,
.social-pwa-close:hover {
    border-color: #c7fd72;
    color: #c7fd72;
}

.social-pwa-trigger:focus-visible,
.social-pwa-dialog button:focus-visible {
    outline: 2px solid #c7fd72;
    outline-offset: 3px;
}

.social-pwa-dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow: auto;
    border: 1px solid #384537;
    border-radius: 16px;
    background: #101817;
    color: #f2f6f4;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    font: 14px/1.6 "WebHat Manrope", "Segoe UI", sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}

.social-pwa-dialog::backdrop {
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
}

body:has(.social-pwa-dialog[open]) {
    overflow: hidden;
}

.social-pwa-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.social-pwa-dialog h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
}

.social-pwa-dialog p {
    margin: 14px 0;
    color: #bdc9c3;
}

.social-pwa-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 20px 0;
}

.social-pwa-tabs button {
    min-width: 0;
    min-height: 42px;
    padding: 8px 4px;
    border: 1px solid #3c4940;
    border-radius: 8px;
    background: transparent;
    color: #d6dfd9;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.social-pwa-tabs button[aria-selected="true"] {
    border-color: #c7fd72;
    background: rgba(199, 253, 114, .09);
    color: #c7fd72;
}

.social-pwa-panel ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 21px;
}

.social-pwa-secondary {
    margin-top: 16px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #c7fd72;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.social-pwa-native {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #c7fd72;
    color: #101714;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.social-pwa-native:disabled {
    cursor: wait;
    opacity: .7;
}

.social-pwa-dialog .social-pwa-status:empty {
    display: none;
}

.social-pwa-dialog .social-pwa-note {
    margin-bottom: 0;
    font-size: 12px;
}

@media (max-width: 380px) {
    .social-pwa-dialog {
        padding: 18px;
    }
}
