.pwa-app {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
}

.pwa-hero {
    margin-bottom: 1rem;
    padding: 1.6rem 1.2rem 1.4rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 22px;
    background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 58%, #fff 100%);
    text-align: center;
}

.pwa-hero-logo {
    display: inline-flex;
    margin-bottom: 0.9rem;
    border-radius: 22px;
}

.pwa-hero-logo img {
    width: 88px;
    height: 88px;
    border: 3px solid #fff;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.pwa-hero h1 {
    margin: 0;
    color: var(--emasir-navy);
    font-size: 1.45rem;
    font-weight: 800;
}

.pwa-hero-note {
    max-width: 32rem;
    margin: 0.35rem auto 0;
    color: var(--emasir-muted, #5d6b78);
    font-size: 0.95rem;
    line-height: 1.7;
}

.pwa-hero p {
    max-width: 32rem;
    margin: 0.45rem auto 0;
    color: var(--emasir-muted);
    line-height: 1.7;
}

.pwa-card,
.pwa-banner {
    margin-bottom: 0.85rem;
    padding: 1.15rem 1.1rem 1.2rem;
    border: 1px solid var(--emasir-line);
    border-radius: 18px;
    background: var(--emasir-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.pwa-card h2 {
    margin: 0 0 0.8rem;
    color: var(--emasir-navy);
    font-size: 1.05rem;
    font-weight: 800;
}

.pwa-card p,
.pwa-hint {
    margin: 0.35rem 0 0;
    color: var(--emasir-muted);
    line-height: 1.65;
}

.pwa-note {
    margin: 0 0 0.9rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
}

.pwa-install,
.pwa-go,
.pwa-copy button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(160deg, #2563eb, #1d4ed8);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.pwa-install,
.pwa-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.35rem;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

.pwa-install.is-busy {
    cursor: wait;
    opacity: 0.75;
}

.pwa-steps {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pwa-steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.pwa-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.85rem;
}

.pwa-steps strong {
    color: var(--emasir-navy);
}

.pwa-copy {
    display: flex;
    gap: 0.45rem;
    margin: 0.2rem 0 0.9rem;
}

.pwa-copy input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--emasir-line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--emasir-navy);
    font: inherit;
    font-size: 0.78rem;
}

.pwa-copy button {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
}

.pwa-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.pwa-banner strong,
.pwa-banner small {
    display: block;
}

.pwa-banner strong {
    color: var(--emasir-navy);
    font-size: 1rem;
}

.pwa-banner small {
    margin-top: 0.15rem;
    color: var(--emasir-muted);
}

.pwa-banner .icon {
    width: 1.35rem;
    height: 1.35rem;
    color: #1d4ed8;
}

html.theme-dark .pwa-hero {
    border-color: #1f2937;
    background: linear-gradient(165deg, #172554 0%, #111827 70%);
}

html.theme-dark .pwa-card,
html.theme-dark .pwa-banner,
html.theme-dark .pwa-copy input {
    border-color: #1f2937;
    background: #111827;
    color: #e5e7eb;
}

html.theme-dark .pwa-hero h1,
html.theme-dark .pwa-card h2,
html.theme-dark .pwa-steps strong,
html.theme-dark .pwa-banner strong {
    color: #f8fafc;
}
