.nexus-install-open {
    display: block;
    margin: 10px auto 0;
    padding: 9px 12px;
    min-height: 44px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #c5d0ff;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.login-reset-mode .nexus-install-open {
    display: none;
}

.nexus-install-dialog {
    position: fixed;
    inset: auto 0 max(12px, env(safe-area-inset-bottom)) 0;
    width: min(420px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #43516c;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgb(3 7 18 / 60%);
    background: #171e30;
    color: #f5f6fb;
    font-size: 15px;
    line-height: 1.5;
}

.nexus-install-dialog::backdrop {
    background: rgb(5 8 17 / 66%);
}

.nexus-install-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nexus-install-icon {
    display: block;
    flex: 0 0 52px;
    background: #fff;
    border-radius: 8px;
}

.nexus-install-platform {
    color: #cad5f6;
    font-size: 12px;
    font-weight: 700;
}

.nexus-install-header h2 {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.nexus-install-header h2:focus {
    outline: none;
}

.nexus-install-summary {
    margin-top: 14px;
    color: #d8def0;
}

.nexus-install-steps {
    margin-top: 14px;
    padding: 12px 12px 12px 33px;
    border: 1px solid #465471;
    border-radius: 6px;
    background: #222c42;
    overflow-wrap: anywhere;
}

.nexus-install-steps li + li {
    margin-top: 6px;
}

.nexus-install-steps li::marker {
    color: #becbff;
    font-weight: 700;
}

.nexus-install-note {
    margin-top: 12px;
    color: #c2cbe0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.nexus-install-summary:empty,
.nexus-install-steps:empty,
.nexus-install-note:empty {
    display: none;
}

.nexus-install-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.nexus-install-actions button {
    min-height: 44px;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.nexus-install-actions button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.nexus-install-actions .nexus-install-later {
    border-color: #657292;
    background: #222c42;
    color: #f5f6fb;
}

.nexus-install-actions .nexus-install-primary {
    background: #aec0ff;
    color: #121a34;
}

.nexus-install-open:focus-visible,
.nexus-install-actions button:focus-visible {
    outline: 2px solid #d7e0ff;
    outline-offset: 2px;
}

@media (max-width: 359px), (max-height: 450px) {
    .nexus-install-dialog {
        padding: 14px;
    }
}
