/* "Install the app" prompt (js/install.js), shared by the site and the /app panel */
.st-install-fab {
    position: fixed;
    left: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 13px;
    border: 1.5px solid #38bdf8;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(249, 115, 22, .45), 0 2px 6px rgba(2, 132, 199, .35);
    cursor: pointer;
    animation: st-install-pulse 2.4s ease-in-out infinite;
}

.st-install-fab[hidden] {
    display: none;
}

@keyframes st-install-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(249, 115, 22, .45), 0 2px 6px rgba(2, 132, 199, .35); }
    50% { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(249, 115, 22, .6), 0 2px 6px rgba(2, 132, 199, .35); }
}

.st-install {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(12, 45, 72, 0);
    transition: background .25s ease;
}

.st-install[hidden] {
    display: none;
}

.st-install.open {
    background: rgba(12, 45, 72, .45);
}

.st-install-card {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    border: 1.5px solid #38bdf8;
    border-radius: 22px;
    background: #fff;
    color: #0c2d48;
    box-shadow: 0 10px 34px rgba(249, 115, 22, .35), 0 4px 14px rgba(2, 132, 199, .25);
    transform: translateY(30px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}

.st-install.open .st-install-card {
    transform: none;
    opacity: 1;
}

@media (min-width: 768px) {
    .st-install {
        align-items: center;
    }
}

.st-install-head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.st-install-head img {
    flex: none;
    border-radius: 14px;
    box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(249, 115, 22, .45);
}

.st-install-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
}

.st-install-sub {
    margin-top: 4px;
    color: #5b7a93;
    font-size: 14px;
    line-height: 1.35;
}

.st-install-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.st-install-points li {
    position: relative;
    padding: 3px 0 3px 26px;
}

.st-install-points li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid #0ea5e9;
    border-bottom: 2.5px solid #0ea5e9;
    transform: rotate(-45deg);
}

.st-install-steps {
    display: none;
    margin: 14px 0 0;
    padding: 12px 14px 12px 34px;
    border-radius: 14px;
    background: #f0f9ff;
    font-size: 15px;
}

.st-install-steps li {
    padding: 2px 0;
}

.st-install-steps svg {
    vertical-align: -3px;
    color: #0284c7;
}

.st-install[data-mode="ios"] .st-install-steps[data-for="ios"],
.st-install[data-mode="manual"] .st-install-steps[data-for="manual"] {
    display: block;
}

.st-install-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.st-install-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.st-install-go {
    border: 1.5px solid #38bdf8;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
}

.st-install-later {
    border: 1.5px solid #bae6fd;
    background: #fff;
    color: #0284c7;
}

/* without the browser's own install dialog only the instructions are shown */
.st-install:not([data-mode="native"]):not([data-mode="site"]) .st-install-go {
    display: none;
}

[data-theme="dark"] .st-install-card {
    background: #0f2236;
    color: #e2f0fb;
}

[data-theme="dark"] .st-install-sub {
    color: #93b4cc;
}

[data-theme="dark"] .st-install-steps {
    background: rgba(56, 189, 248, .1);
}

[data-theme="dark"] .st-install-later {
    background: transparent;
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, .4);
}

[data-theme="dark"] .st-install-head img {
    box-shadow: 0 0 0 3px #0f2236, 0 4px 12px rgba(249, 115, 22, .45);
}
